* arm-tdep.c: Include frame-unwind.h, frame-base.h, and
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
eb5492fa
DJ
12003-09-03 Daniel Jacobowitz <drow@mvista.com>
2
3 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
4 trad-frame.h.
5 (arm_get_cache): Delete macro.
6 (struct arm_prologue_cache): Update comments. Make saved_regs into
7 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
8 to prev_sp.
9 (thumb_scan_prologue): Update for cache changes. Don't call
10 DEPRECATED_PC_IN_CALL_DUMMY.
11 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
12 argument and use it in desperation search for our prologue. Do not
13 search past the specified PC.
14 (arm_make_prologue_cache): Simplify.
15
16 (arm_prologue_this_id, arm_prologue_prev_register)
17 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
18 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
19 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
20 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
21 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
22
23 (arm_frame_chain_valid, arm_find_callers_reg)
24 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
25 (arm_pop_frame): Delete obsolete methods.
26 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
27
28 (arm_gdbarch_init): Update for new frame methods. Register prologue
29 and sigtramp unwinders. Set the default frame base method.
30
31 * Makefile.in (arm-tdep.o): Update dependencies.
32 * varobj.c (find_frame_addr_in_frame_chain): Call
33 get_frame_base_address.
34 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
35
24de872b
DJ
362003-09-03 Daniel Jacobowitz <drow@mvista.com>
37
38 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
39 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
40 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
41 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
42 Take NEXT_FRAME and CACHE arguments. Call
43 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
44 Set unwound_pc in CACHE instead of modifying the frame argument.
45 Don't bother checking the frame type when looking for sigtramp
46 frames.
47 (arm_make_prologue_cache, arm_frame_chain)
48 (arm_init_extra_frame_info): New functions.
49
9b8d791a
DJ
502003-09-03 Daniel Jacobowitz <drow@mvista.com>
51
52 * arm-tdep.c (arm_get_cache): Define.
53 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
54 unwound_sp, unwound_pc, and saved_regs.
55 (thumb_scan_prologue): Take a cache instead of the frame.
56 (arm_scan_prologue): Likewise.
57 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
58 instead of a temporary frame.
59 (arm_init_extra_frame_info): Allocate and use a cache.
60 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
61
7ee3275f
AC
622003-09-03 Andrew Cagney <cagney@redhat.com>
63
64 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
65 * config/mips/wince.mt (TM_CLIBS): Ditto.
66 * config/sh/wince.mt (TM_CLIBS): Ditto.
67 * config/pa/hppa64.mt (TM_CLIBS): Delete.
68 * config/sparc/sp64.mt (CC): Delete.
69
57b29be7
AC
702003-09-03 Andrew Cagney <cagney@redhat.com>
71
72 * defs.h: Do not include "arch-utils.h".
73 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
74 GDB_MULTI_ARCH_PURE.
75 * configure.in (GDB_MULTI_ARCH): Do not define.
76 * configure, config.in: Regenerate.
77 * configure.tgt: Do not set variable "gdb_multi_arch".
78 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
79 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
80 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
81 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
82 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
83 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
84 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
85 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
86 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
87 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
88 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
89 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
90 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
91 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
92 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
93 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
94 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
95 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
96
12e035e2
MC
972003-08-30 Michael Chastain <mec@shout.net>
98
99 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
100 * config/m68k/nm-hp300hpux.h: Delete.
101 * config/m68k/tm-hp300hpux.h: Delete.
102 * config/m68k/xm-hp300hpux.h: Delete.
103 * config/m68k/xm-hp300bsd.h: Delete.
104 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
105 tm-hp300hpux.h, xm-hp300hpux.h.
106 * somsolib.c: Remove comment about hp300 shared libraries.
107
bda34dc2
MK
1082003-08-31 Mark Kettenis <kettenis@gnu.org>
109
5bca7895
MK
110 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
111 Only define PTRACE_GET_THREAD_AREA is not already defined.
112 Various style fixes in code and comments and some additional
113 spelling fixes in comments. Move after functions dealing with
114 debug registers.
115 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
116 Fix coding-style.
117
bda34dc2
MK
118 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
119 frame_unwind_register_unsigned instead of
120 frame_unwind_unsigned_register.
121
c890192f
MK
1222003-08-30 Mark Kettenis <kettenis@gnu.org>
123
124 * configure.in: Search for gethostbyname in libnsl.
125 * configure: Regenerated.
126
60fac5b8
MK
1272003-08-29 Mark Kettenis <kettenis@gnu.org>
128
e294916c
MK
129 * configure.in: Remove redundant AC_MSG_RESULT in check for
130 uintptr_t in stdint.h.
131 * configure: Regenerated.
132
c40d267a
MK
133 * amd64-nat.h (struct regcache): Add opaque declaration.
134
60fac5b8
MK
135 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
136 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
137 Change "register array" to "register cache" in comments.
138 (x86_64_linux_gregset64_reg_offset): New variable.
139 (GETREGS_SUPPLIES): Remove macro.
140 (supply_gregset): Call amd64_supply_native_gregset instead of
141 x86_64_linux_supply_gregset.
142 (fill_gregset): Rename `regno' to `regnum'. Call
143 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
144 (store_regs): Rename `regno' to `regnum'.
145 (store_fpregs): Rename `regno' to `regnum'.
146 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
147 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
148 Reorganize function a bit.
149 (store_inferior_registers): Rename `regno' to `regnum'. Use
150 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
151 Reorganize function a bit.
152 (_initialize_x86_64_linux_nat): New function.
153 * config/i386/x86-64linux.mh.
154
546143b6
AC
1552003-08-29 Andrew Cagney <cagney@redhat.com>
156
157 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
158 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
159 (target_remove_watchpoint): Delete macro.
160 (target_insert_watchpoint): Delete macro.
161 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
162 (remote_mips_stopped_by_watchpoint): Delete declaration.
163 (remote_mips_remove_watchpoint): Delete declaration.
164 (remote_mips_set_watchpoint): Delete declaration.
165 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
166 * remote-mips.c (_initialize_remote_mips): Set
167 "to_insert_watchpoint", "to_stopped_by_watchpoint",
168 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
169 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
170 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
171 (mips_stopped_by_watchpoint): Rename
172 remote_mips_stopped_by_watchpoint.
173 (mips_can_hardware_watchpoint): Rename
174 remote_mips_can_use_hardware_watchpoint, update function
175 signature.
176
7bace51b
MK
1772003-08-29 Mark Kettenis <kettenis@gnu.org>
178
b0f5c6f2
MK
179 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
180 USER_DS. We haven't given them a register number yet.
181
2a6d284d
MK
182 * amd64-nat.h: New file.
183 * amd64-nat.c: New file.
184 * amd64fbsd-nat.c: Include "amd64-nat.h".
185 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
186 (amd64fbsd32_r_reg_offset): New variable.
187 (supply_gregset): Simply call amd64_supply_native_gregset.
188 (fill_gregset): Rename `regno' to `regnum'. Simply call
189 amd64_collect_native_gregset.
190 (fill_fpregset): Rename `regno' to `regnum'.
191 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
192 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
193 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
194 `fpregset_t'. Call amd64_supply_native_gregset instead of
195 supply_gregset. Call x86_64_supply_fxsave instead of
196 supply_fpregset.
197 (store_inferior_registers): Rename `regno' to `regnum'. Replace
198 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
199 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
200 `fpregset_t'. Call amd64_collect_native_gregset instead of
201 fill_gregset. Call x86_64_collect_fxsave instead of
202 fill_fpregset.
203 (_initialize_am64fbsd_nat): Initialize
204 amd64_native_gregset32_reg_offset and
205 amd64_native_gregset64_reg_offset.
206 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
207
a16d75cc
MK
208 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
209 null pointer. Fix typo in comment.
210
7bace51b
MK
211 * regcache.c (supply_register): Reimplement to call
212 regcache_raw_supply.
213 (regcache_collect): Reimplement by calling regcache_raw_collect.
214
9a661b68
MK
2152003-08-28 Mark Kettenis <kettenis@gnu.org>
216
217 * regcache.c (register_buffer): Consitify first argument.
218 (regcache_raw_supply, regcache_raw_collect): New
219 functions.
220
e94cc8fa
DJ
2212003-08-28 Daniel Jacobowitz <drow@mvista.com>
222
223 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
224 by Nathan J. Williams.
225
c64bd0ce
DJ
2262003-08-28 Daniel Jacobowitz <drow@mvista.com>
227
228 * lin-lwp.c (wait_lwp): New function, copied from
229 stop_wait_callback. Clean up.
230 (stop_wait_callback): Use wait_lwp.
231
e5ab0dce
AC
2322003-08-28 Andrew Cagney <cagney@redhat.com>
233
234 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
235 flavour and disassembler options.
236 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
237 (mips_gdbarch_init): Set "print_insn". Delete initialization of
238 deprecated_tm_print_insn_info.
239
a788de9b
AC
2402003-08-27 Andrew Cagney <cagney@redhat.com>
241
242 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
243 Use target_read_memory.
244 (s390_get_frame_info): Update. Do not reference
245 deprecated_tm_print_insn_info.
246 (s390_check_function_end, s390_is_sigreturn): Ditto.
247
36482093
AC
2482003-08-27 Andrew Cagney <cagney@redhat.com>
249
250 * Makefile.in (cris-tdep.o): Update dependencies.
251 * cris-tdep.c: Include "gdb_assert.h".
252 (cris_gdbarch_init): Set print_insn.
253 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
254 (cris_delayed_get_disassembler): Simplify, directly call the
255 disassembler returned by cris_get_disassembler.
256 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
257 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
258 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
259 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
260 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
261 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
262 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
263 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
264 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
265 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
266 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
267 (gdb_print_insn_sparc): Delete function.
268 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
269 deprecated_tm_print_insn_info.
270 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
271 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
272 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
273 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
274 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
275 * s390-tdep.c (gdb_print_insn_s390): Delete function.
276 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
277 (s390_gdbarch_init): Set print_insn.
278
0285512f
AC
2792003-08-27 Andrew Cagney <cagney@redhat.com>
280
281 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
282 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
283 * infcall.c (call_function_by_hand): Convert the entry point
284 address into a code address.
285
cdcd5552
AC
2862003-08-27 Andrew Cagney <cagney@redhat.com>
287
288 * dsrec.c: Include "gdb_string.h".
289 * Makefile.in (dsrec.o): Update dependencies.
290
e85cddad
MC
2912003-08-27 Michael Chastain <mec@shout.net>
292
293 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
294
8bbfbb23
AC
2952003-08-27 Andrew Cagney <cagney@redhat.com>
296
297 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
298 (alpha_osf1_init_abi): Do not set call_dummy_address.
299
ba058b66
DC
3002003-08-27 David Carlton <carlton@kealia.com>
301
302 From Randolph Chung <tausq@debian.org>:
303 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
304 compiles with -Wformat-nonliteral -Werror.
305
87f84c9d
JB
3062003-08-26 Jim Blandy <jimb@redhat.com>
307
308 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
309 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
310 bfd_lookup_symbol, since we only want symbols in code sections.
311 (look_for_base): Pass zero as the SECT_FLAGS argument to
312 bfd_lookup_symbol, since we're not concerned about which section
313 the symbol is in.
314
102d615a
JJ
3152003-08-26 Jeff Johnston <jjohnstn@redhat.com>
316
317 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
318 we are frameless or the return address register is already known.
319
cc7ad3ea
AC
3202003-08-26 Andrew Cagney <cagney@redhat.com>
321
322 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
323 in size. Add comments.
324
af8b88dd
JJ
3252003-08-26 Jeff Johnston <jjohnstn@redhat.com>
326
327 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
328 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
329
e0a4f5a1
JM
3302003-08-26 Jason Merrill <jason@redhat.com>
331
332 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
333 case out of #ifdef MIPS block.
334
4ae9ee8e
DJ
3352003-08-25 Daniel Jacobowitz <drow@mvista.com>
336
337 PR java/1322
338 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
339 available before calling SECT_OFF_TEXT.
3c164570 340 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 341
004d836a
JJ
3422003-08-25 Jeff Johnston <jjohnstn@redhat.com>
343
344 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
345 bof, and nat0-nat127 as pseudo-registers.
346 (ia64_frame_cache): New struct used to cache frame info.
347 (ia64_register_reggroup_p): New routine used to override default
348 register grouping so registers without names are still saved and
349 restored.
350 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
351 pseudo values.
352 (ia64_pseudo_register_read): New routine to read pseudo-registers.
353 (ia64_pseudo_register_write): New routine to write pseudo-registers.
354 (ia64_alloc_frame_cache): New routine to create a new
355 ia64_frame_cache.
356 (examine_prologue): Change prototype to add next_frame pointer.
357 Assume frameless until otherwise proven. Verify that the cfm for
358 current frame matches the cfm that should occur for the prologues
359 alloc insn and if equal, mark as not frameless. At end of routine,
360 if not frameless, calculate registers for the previous frame and store
361 in the cache, if a cache is provided.
362 (ia64_skip_prologue): Use new prototype when calling examine_prologue
363 and pass 0 for next_frame.
364 (ia64_store_return_value): Change to use convert_typed_floating()
365 instead of calling ia64_convert_to_raw().
366 (ia64_extract_return_value): Change to use convert_typed_floating()
367 instead of calling ia64_convert_to_virtual().
368 (ia64_frame_cache): New routine to support new frame model.
369 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
370 (ia64_frame_sniffer): Ditto.
371 (ia64_sigtramp_frame_init_saved_regs): Ditto.
372 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
373 (ia64_sigtramp_frame_prev_register): Ditto.
374 (ia64_sigtramp_frame_sniffer): Ditto.
375 (ia64_frame_base_address): Ditto.
376 (ia64_extract_struct_value_address): Change to issue error message.
377 (ia64_frame_align): New routine to align sp.
378 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
379 (ia64_push_arguments): Removed. Logic moved to
380 ia64_push_dummy_call().
381 (ia64_push_return_address): Ditto.
382 (ia64_unwind_dummy_id): New function.
383 (ia64_unwind_pc): Ditto.
384 (ia64_convert_register_p): Ditto.
385 (ia64_register_to_value): Ditto.
386 (ia64_value_to_register): Ditto.
387 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
388 (ia64_register_byte, ia64_register_raw_size): Ditto.
389 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
390 (ia64_saved_pc_after_call): Ditto.
391 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
392 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
393 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
394 (ia64_register_convert_to_raw): Ditto.
395 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
396 (ia64_init_extra_frame_info): Ditto.
397 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
398 (ia64_gdbarch_init): Remove registering of deprecated functions that
399 are no longer used. Add registration of new gdbarch functions.
400 Remove registering deprecated_write_sp. Replace
401 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
402 Delete set_gdbarch_deprecated_register_convertible(),
403 set_gdbarch_deprecated_register_convert_to_virtual(), and
404 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
405 set_gdbarch_deprecated_register_size(),
406 set_gdbarch_deprecated_register_bytes(),
407 set_gdbarch_pcregnum(),
408 set_gdbarch_deprecated_register_byte(),
409 set_gdbarch_deprecated_register_raw_size(),
410 set_gdbarch_deprecated_max_register_raw_size(),
411 set_gdbarch_deprecated_register_virtual_size(),
412 and set_gdbarch_deprecated_max_register_virtual_size() calls.
413 Replace set_gdbarch_deprecated_extract_return_value() with
414 set_gdbarch_extract_return_value(). Remove calls to:
415 set_gdbarch_deprecated_saved_pc_after_call();
416 set_gdbarch_deprecated_frame_chain(),
417 set_gdbarch_deprecated_frame_saved_pc(),
418 set_gdbarch_deprecated_frame_init_saved_regs(),
419 set_gdbarch_deprecated_get_saved_register(),
420 set_gdbarch_deprecated_call_dummy_words(),
421 set_gdbarch_deprecated_sizeof_call_dummy_words(),
422 set_gdbarch_deprecated_init_extra_frame_info(),
423 set_gdbarch_deprecated_frame_args_address(),
424 set_gdbarch_deprecated_frame_locals_address(),
425 and set_gdbarch_deprecated_dummy_write_sp().
426 Add set_gdbarch_convert_register_p(),
427 set_gdbarch_register_to_value(),
428 set_gdbarch_value_to_register(),
429 set_gdbarch_push_dummy_call(),
430 set_gdbarch_frame_align(),
431 set_gdbarch_unwind_dummy_id(),
432 set_gdbarch_unwind_pc(),
433 frame_unwind_append_sniffer(),
434 frame_unwind_append_sniffer(),
435 and frame_base_set_default().
436
aede7613
CD
4372003-08-25 Chris Demetriou <cgd@broadcom.com>
438
439 * configure.tgt: Document need for special "mipsisa64" handling.
440 (mipsisa64*-*-linux64): Handle as target linux64.
441 (mipsisa64*-*-*): Handle as target embed64.
442
43c3a82e
MC
4432003-08-18 Michael Chastain <mec@shout.net>
444
445 * PROBLEMS: Document pr gdb/1322, the Java anonymous
446 objfile bug.
447
6564f77d
MK
4482003-08-24 Mark Kettenis <kettenis@gnu.org>
449
2de139ba
MK
450 * i387-tdep.h: Update copyright date.
451 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
452
6564f77d
MK
453 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
454 CFLAGS games to reflect reality.
455
42cf1509
AC
4562003-08-24 Andrew Cagney <cagney@redhat.com>
457
458 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
459 GDB_MULTI_ARCH is always non-zero.
460 * osabi.c (_initialize_gdb_osabi): Ditto.
461 (gdbarch_init_osabi): Ditto.
462 * sparc-tdep.c: Ditto for #if code.
463
0485f6ad
MK
4642003-08-23 Mark Kettenis <kettenis@gnu.org>
465
466 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
467 Update comments.
468 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
469 comments.
470 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
471 x86_64_supply_fxsave.
472 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
473 x86_64_supply_fxsave.
474 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
475 x86_64_supply_fxsave.
476
c7716133
AJ
4772003-08-23 Andreas Jaeger <aj@suse.de>
478
479 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
480 i387_supply_fxsave.
481
ed504bdf
MK
4822003-08-23 Mark Kettenis <kettenis@gnu.org>
483
484 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
485 i387_supply_register.
486 (go32_fetch_registers): Adjust call to i387_supply_fsave.
487 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
488 i387_supply_fsave.
489 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
490 i387_supply_fxsave.
491 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
492 i387_supply_fsave.
493 * i386bsd-nat.c (supply_fpregset): Adjust call to
494 i387_supply_fsave.
495 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
496 call to i387_supply_fxsave. Call i387_supply_fsave instead of
497 supply_fpregset.
498 (store_inferior_registers): Remove extraneous whitespace. Call
499 i387_fill_fsave instead of fill_fpregset.
500 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
501 (supply_fpregset): Likewise.
502 * i386v4-nat.c (supply_fpregset): Adjust call to
503 i387_supply_fsave.
504 * i386-interix-nat.c (supply_fpregset): Adjust call to
505 i387_supply_fsave.
506 * i386-linux-nat.c (supply_fpregset): Adjust call to
507 i387_supply_fsave.
508 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
509 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
510 i387supply_fsave and i387_supply_fxsave.
511 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
512 Incorporate code from `i387_supply_register.
513 (i387_supply_register): Remove.
514 (i387_supply_fxsave): Add `regnum' argument.
515 Update comments.
516 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
517 prototype.
518 (i387_supply_register): remove prototype.
519 Update comments.
520
4be5d520
MC
5212003-08-22 Michael Chastain <mec@shout.net>
522
523 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
524 Add lines for files in gdb/testsuite/gdb.cp/* that are
525 still not 8.3 unique.
526
7ed85d26
DJ
5272003-08-22 Daniel Jacobowitz <drow@mvista.com>
528
529 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
530 TYPE_VPTR_FIELDNO is valid.
531
eb0d3137
MK
5322003-08-19 Mark Kettenis <kettenis@gnu.org>
533
534 * utils.c (set_width_command): Remove prototypes.
535 (set_screen_size): New prototype.
536 (init_page_info): Simplify by fetching the screen size from
537 Readline. Call set_screen_size.
538 (set_screen_size): New function.
539 (set_width): Add missing whitespace in comment.
540 (set_width_command): Call set_screen_size.
541 (set_height_command): New function.
542 (initialize_utils): Fix formatting. Make "set height" command
543 call set_height_command. Remove redundant code that turns off
544 pagination if output isn't a terminal. Remove redundant call to
545 set_width_command.
546
7e6d0ac8
MK
5472003-08-22 Mark Kettenis <kettenis@gnu.org>
548
3567a8ea
MK
549 * sparc64-tdep.h (sparc64_regnum): Fix comment.
550 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
551 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
552 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
553 `case' keyword.
554 (sparc64_register_info): Give the reister with number
555 SPARC64_STATE_REGNUM a name.
556 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
557 %asi and %ccr.
558 (sparc64_push_dummy_call): Take BIAS into account when checking
559 stcak alignment.
560 (sparc_software_single_step): Remove assertions that check whether
561 NPC and NNPC were zero.
562 (sparc_supply_rwindow): Make public. Merge functionality with
563 sparc64_supply_rwindow.
564 (sparc_fill_rwindow): Make public. Merge functionality with
565 sparc64_fill_rwindow.
566 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
567 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
568 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
569 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
570 sparc_supply_rwindow instead of sparc64_supply_rwindow.
571
7e6d0ac8
MK
572 * reggroups.c: Add whitespace after declarations of local
573 variables in functions.
574
72e5f484
MC
5752003-08-21 Michael Chastain <mec@shout.net>
576
577 * gdbtypes.h: Change array bound type from an int to enum.
578
435ac228
AC
5792003-08-21 Andrew Cagney <cagney@redhat.com>
580
581 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
582 * config/sparc/tm-sparc.h: Ditto.
583 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
584 unconditionally.
585 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
586
0d0e1a63
MK
5872003-07-13 Mark Kettenis <kettenis@gnu.org>
588
589 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
590 (register_objfile_data, set_objfile_data, objfile_data): New
591 prototypes.
592 * objfiles.c (objfile_alloc_data, objfile_free_data): New
593 prototypes.
594 (allocate_objfile): Call objfile_alloc_data.
595 (free_objfile): Call objfile_free_data.
596 (struct objfile_data): New.
597 (struct objfile_data_registration): New.
598 (struct objfile_data_registry): New.
599 (objfile_data_registry): New variable.
600 (register_objfile_data): New function.
601 (objfile_alloc_data, objfile_free_data): New functions.
602 (set_objfile_data, objfile_data): New functions.
603 * dwarf2-frame.c (dwarf2_frame_data): New variable.
604 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
605 (_initialize_dwarf2_frame): New function and prototype.
606
d90cf509
AC
6072003-08-21 Andrew Cagney <cagney@redhat.com>
608
609 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
610 a specific architecture.
611 * arch-utils.h (set_architecture_from_arch_mach): Delete
612 declaration.
613 (target_architecture_hook): Delete declaration.
614 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
615 (default_float_format): Assume GDB_MULTI_ARCH.
616 (default_double_format): Assume GDB_MULTI_ARCH.
617 (set_endian_from_file): Delete function.
618 (arch_ok): Delete function.
619 (set_arch): Delete function.
620 (set_architecture_from_arch_mach): Delete function.
621 (set_architecture_from_file): Delete function.
622 (set_architecture): Assume GDB_MULTI_ARCH.
623 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
624
8b39fe56
MK
6252003-08-21 Mark Kettenis <kettenis@gnu.org>
626
627 Rewrite FreeBSD/sparc64 native configuration.
628 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
629 * sparc64fbsd-nat.c: New file.
630 * sparc64fbsd-tdep.c: New file.
631 * sparc64-tdep.c sparc64-tdep.h: New files.
632 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
633 sparc64fbsd-tdep.o): New dependencies.
634 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
635 and sparc64fbsd-tdep.c.
636 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
637 * config/sparc/fbsd.mh: Remove copyright notice.
638 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
639 sparcbsd-nat.o.
640 * config/sparc/fbsd.mt: Remove copyright notice.
641 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
642 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
643 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
644 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
645 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
646 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
647 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
648 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
649 "sparc/tm-sp64.h".
650 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
651 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
652
a7f19c79
MC
6532003-08-21 Michael Chastain <mec@shout.net>
654
655 * symtab.h: Add doco on the space critical structures and
656 some measurements of space usage.
657
da08ea5b
MS
6582003-08-21 Michael Snyder <msnyder@redhat.com>
659
660 * tracepoint.c (trace_dump_command): Trace break address
661 is subject to DECR_PC_AFTER_BREAK.
662 (set_traceframe_context): Make "trace_line" an int.
663 Fixes suggested by Mark Newman <mark.newman@lmco.com>
664
6df2bf50
MS
6652003-08-20 Michael Snyder <msnyder@redhat.com>
666
667 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
668 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
669 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
670 argument passing.
671 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
672 functions, replace sh_push_dummy_call.
673 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
674
0955bbf0
MC
6752003-08-20 Michael Chastain <mec@shout.net>
676
677 * gdbtypes.h (struct main_type): Rearrange to save space.
678
260a4188
MS
6792003-08-20 Michael Snyder <msnyder@redhat.com>
680
681 * trad-frame.c: Comment typo fix.
682
8baa6f92
KB
6832003-08-20 Michael Snyder <msnyder@redhat.com>
684 Kevin Buettner <kevinb@redhat.com>
685
686 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
687 (frv_frame_init_saved_regs): Add declaration.
688 (frame_extra_info): Add new field ``saved_regs''.
689 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
690 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
691 Update frame related code.
692 (frv_extract_struct_value_address): Adjust formatting.
693 * Makefile.in (frv-tdep.o): Update dependencies.
694 * config/frv/tm-frv.h (target_insert_watchpoint)
695 (target_remove_watchpoint, target_insert_hw_breakpoint)
696 (target_remove_hw_breakpoint): Delete these macros.
697 (remote_insert_watchpoint, remote_remove_watchpoint)
698 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
699 these declarations.
700
87193939
MC
7012003-08-20 Michael Chastain <mec@shout.net>
702
703 * defs.h (ENUM_BITFIELD): New macro.
704 * symtab.h (ENUM_BITFIELD): Use it.
705 (BYTE_BITFIELD): Remove old macro, which was already disabled.
706
062103ba
SA
7072003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
708
709 * MAINTAINERS (write after approval): Add myself.
710
8b148df9
AC
7112003-08-18 Andrew Cagney <cagney@redhat.com>
712
713 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
714 * gdbarch.h, gdbarch.c: Re-generate.
715 * infcall.c (call_function_by_hand): Adjust the SP by
716 frame_red_zone_size before allocating any stack space.
717 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
718 * x86-64-tdep.c (x86_64_frame_align): New function.
719 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
720
721 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
722 Remove code adjusting SP so that it skips over the Red Zone.
723
954a4db8
MK
7242003-08-18 Mark Kettenis <kettenis@gnu.org>
725
726 * NEWS (New native configurations): Mention FreeBSD/amd64.
727
1a241548
AC
7282003-08-18 Andrew Cagney <cagney@redhat.com>
729
730 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
731 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
732 "m68k_frame_p".
733 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
734
f82b2acd
MK
7352003-08-18 Mark Kettenis <kettenis@gnu.org>
736
737 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
738
4056d258
ML
7392003-08-18 Michal Ludvig <mludvig@suse.cz>
740
741 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
742 Define.
743 * i386-linux-nat.c: Include "linux-nat.h".
744 (child_post_startup_inferior): New function.
745
99ab4326
MK
7462003-08-18 Mark Kettenis <kettenis@gnu.org>
747
748 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
749 at the start of a frameless function. This probably fixes PR
750 backtrace/1338.
751
c8d5f0d6
MC
7522003-08-17 Michael Chastain <mec@shout.net>
753
754 * symfile.c (find_sym_fns): Remove special case for apollo target.
755
9016a515
DJ
7562003-08-17 Daniel Jacobowitz <drow@mvista.com>
757
758 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
759 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
760 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
761 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
762 (linux_supports_tracevforkdone): New function.
763 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
764 TRACEVFORKDONE.
765 (child_follow_fork): Handle vfork.
766 (linux_handle_extended_wait): Likewise. Also handle exec.
767 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
768 * NEWS: Mention fork tracing.
769
c538c11c
DJ
7702003-08-17 Daniel Jacobowitz <drow@mvista.com>
771
772 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
773
4de4c07c
DJ
7742003-08-17 Daniel Jacobowitz <drow@mvista.com>
775
776 * Makefile.in (i386-linux-nat.o): Update dependencies.
777 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
778 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
779 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
780 * i386-linux-nat.c: Include "linux-nat.h".
781 (child_post_startup_inferior): New function.
782 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
783 * infptrace.c (kill_inferior): Wrap in #ifdef.
784 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
785 attaching to each LWP.
786 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
787 (init_lin_lwp_ops): Fill in some more operations.
788 * linux-nat.h (linux_enable_event_reporting)
789 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
790 prototypes.
791 * linux-nat.c (linux_enable_event_reporting): New function.
792 (child_post_attach, linux_child_post_startup_inferior)
793 (child_post_startup_inferior, child_follow_fork)
794 (linux_handle_extended_wait, kill_inferior): New functions.
795
7996bcec
AC
7962003-08-16 Andrew Cagney <cagney@redhat.com>
797
798 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
799 * gdbarch.h, gdbarch.c: Re-generate.
800
3d48a7a0
MK
8012003-08-16 Mark Kettenis <kettenis@gnu.org>
802
803 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
804
7989c619
AC
8052003-08-16 Andrew Cagney <cagney@redhat.com>
806
807 * NEWS: Mention that "set prompt-escape-char" was deleted.
808 * top.c (get_prompt_1): Delete function.
809 (gdb_prompt_escape):
810 (init_main): Do not clear "gdb_prompt_escape". Delete "set
811 prompt-escape-char" command.
812 (MAX_PROMPT_SIZE): Delete macro.
813 (get_prompt): Simplify, do not call get_prompt_1.
814
07978cd8
AC
8152003-08-16 Andrew Cagney <cagney@redhat.com>
816
817 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
818 -Werror. -Wformat-nonliteral problems.
819
3ff7cf9e
JB
8202003-08-15 J. Brobecker <brobecker@gnat.com>
821
822 Further multiarching work mostly for hppa64-*-hpux11:
823 * hppa-tdep.h: New file.
824 * hppa-tdep.c: #include hppa-tdep.c.
825 (hppa32_num_regs): Renamed from hppa_num_regs.
826 (hppa64_num_regs): New constant.
827 (hppa64_call_dummy_breakpoint_offset): New constant.
828 (hppa32_call_dummy_length): New constant.
829 (hppa64_call_dummy_length): New constant.
830 (hppa32_stack_align): Make name 32bit explicit.
831 (hppa32_register_virtual_type): Likewise.
832 (hppa32_extract_return_value): Likewise.
833 (hppa32_use_struct_convention): Likewise.
834 (hppa32_store_return_value): Likewise.
835 (hppa64_register_virtual_type): New function.
836 (hppa64_extract_return_value): New function.
837 (hppa64_use_struct_convention): New function.
838 (hppa64_store_return_value): New function.
839 (hppa_frame_locals_address): Remove declaration, function does
840 not exist anymore.
841 (hppa_register_byte): Add support for PA64 ABI.
842 (hppa_gdbarch_init): Add support for PA64 ABI.
843 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
844 Make name 32bit explicit.
845 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
846 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
847 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
848 (hppa64_hpux_frame_base_before_sigtramp): New function.
849 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
850 * config/pa/tm-hppa64.h: Remove macros that are no longer
851 necessary now that the gdbarch vector is properly setup.
852 Transform some macros into function calls. Some minor cleanup.
853 * config/pa/tm-hppah.h: Update function calls in macros
854 following the function renaming in hppa-hpux-tdep.c.
855 * Makefile.in (hppa_tdep_h): New variable.
856 (hppa-tdep.o): Add dependency over hppa_tdep_h.
857
5d05ca6d
MS
8582003-08-14 Michael Snyder <msnyder@redhat.com>
859
860 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
861
37ba2569
JB
8622003-08-13 J. Brobecker <brobecker@gnat.com>
863
864 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
865 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
866 routine.
867
aed7f26a
MS
8682003-08-13 Michael Snyder <msnyder@redhat.com>
869
870 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
871 (frv_saved_pc_after_call): Use deprecated ftype.
872 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
873 (frv_remote_translate_xfer_address): Remove.
874 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
875
752d4ac1
JB
8762003-08-13 J. Brobecker <brobecker@gnat.com>
877
878 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
879 initialization after the common gdbarch initialization, not before.
880
1426ac1d
JB
8812003-08-13 J. Brobecker <brobecker@gnat.com>
882
883 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
884 (ADDR_BITS_REMOVE): Remove, redundant.
885
b6fbdd1d
JB
8862003-08-13 J. Brobecker <brobecker@gnat.com>
887
888 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
889 gdbarch method to clear the 2 low bits of text addresses.
890
44160db3
AC
8912003-08-12 Andrew Cagney <cagney@redhat.com>
892
893 * Makefile.in (dsrec.o): Update dependencies.
894 * dsrec.c: Include "gdb_assert.h".
895 (make_srec): Use snprintf instead of sprintf, use a literal format
896 string.
897
bcf7d3ca
AC
8982003-08-12 Andrew Cagney <cagney@redhat.com>
899
900 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
901 FRAME_OBSTACK_ZALLOC.
902
49ed40de
KB
9032003-08-12 Kevin Buettner <kevinb@redhat.com>
904
905 * i386-tdep.c (i386_gdbarch_init): Enable default support for
906 SSE registers.
907
b246147c
MK
9082003-08-10 Mark Kettenis <kettenis@gnu.org>
909
910 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
911 amd64fbsd_sc_reg_offset): Add extern declarations.
912 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
913 declarations.
914
d95fdc0d
BE
9152003-08-11 Ben Elliston <bje@wasabisystems.com>
916
917 * MAINTAINERS (write after approval): Update my mail address.
918
cf6a0e73
AC
9192003-08-10 Andrew Cagney <cagney@redhat.com>
920
921 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
922
f837910f
MK
9232003-08-10 Mark Kettenis <kettenis@gnu.org>
924
e2dbbd2d
MK
925 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
926 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
927 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
928 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
929 i386bsd_sc_reg_offset): Add extern declarations.
930 * i386obsd-nat.c: Include "i386-tdep.h"
931 (_initialize_i386obsd_nat): Remove extern declarations.
932 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
933 declarations.
934 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
935 declarations.
936
f837910f
MK
937 * i386-tdep.c (i386_register_to_value): Use get_frame_register
938 instead of frame_read_register.
939 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
940 instead of frame_read_register. Use I386_ESP_REGNUM instead of
941 SP_REGNUM.
942 (i386_frame_prev_register): Use frame_unwind_register_unsigned
943 instead of frame_unwind_unsigned_register. Use
944 I386_EFLAGS_REGISTER instead of PS_REGNUM.
945 (i386_get_longjmp_target): Use regcache_read_unsigned_register
946 instead of read_register. Use builtin_type_void_data_ptr instead
947 of builtin_type_void_func_ptr when extracting the address of the
948 jmp_buf.
949 (i386_extract_return_value, i386_store_return_value,
950 i386_pseudo_register_read, i386_pseudo_register_write): Use
951 register_size instead REGISTER_RAW_SIZE.
952
edcf254d
AC
9532003-08-10 Andrew Cagney <cagney@redhat.com>
954
955 * infcall.c (call_function_by_hand): Use xstrprintf instead of
956 sprintf. Make "name" constant.
957
26604a34
MK
9582003-08-10 Mark Kettenis <kettenis@gnu.org>
959
192285c6
MK
960 * i387-tdep.c (i387_register_to_value): Use get_frame_register
961 instead of frame_read_register.
f837910f
MK
962 (i387_print_float_info): Use get_frame_register and
963 get_frame_register_unsigned instead of frame_register_read.
192285c6 964
f0925262
MK
965 * i386fbsd-nat.c: Include "i386-tdep.h".
966 (child_resume): Make `eflags' an ULONGEST. Use
967 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
968 instead of register_read and register_write.
969
a144416f
MK
970 * i386bsd-nat.c (fetch_inferior_registers,
971 store_inferior_registers): Don't use && at the end of a line.
972 (_initialize_i386bsd_nat): Fix typo.
973
fec74868
MK
974 * frame.c (_initialize_frame): Add missing backslash.
975
87232496
MK
976 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
977 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
978 and supply_register instead of manipulating the register buffer
979 directly.
980
c9b9de0b
MK
981 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
982 * config/i386/nm-i386sol2.h
983 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
984
26604a34
MK
985 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
986 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
987 instructions that GCC likes to mingle into the prologue. Fixes
988 gdb/1253 and gdb/1255.
989
25d29d70
AC
9902003-08-09 Andrew Cagney <cagney@redhat.com>
991
992 Fix GDB PR cli/926.
993 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
994 * command.h (add_setshow_uinteger_cmd): Declare.
995 * frame.c (set_backtrace_cmd): New function.
996 (show_backtrace_cmd): New function.
997 * frame.c (_initialize_frame): Replace "set/show
998 backtrace-below-main" with "set/show backtrace past-main". Add
999 command "set/show backtrace limit".
1000 (backtrace_past_main): Rename "backtrace_below_main".
1001 (backtrace_limit): New variable.
1002 (get_prev_frame): Update. Check the backtrace_limit.
1003
9ebf4acf
AC
10042003-08-09 Andrew Cagney <cagney@redhat.com>
1005
1006 * defs.h (xstrprintf): Declare.
1007 * utils.c (xstrprintf): New function.
1008 * breakpoint.c (insert_breakpoints): Replace sprintf and
1009 non-literal format strings, with xstrprintf and cleanups.
1010 (delete_breakpoint,breakpoint_re_set): Ditto.
1011 (commands_command, insert_breakpoints): Ditto.
1012 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1013 (break_at_finish_command_1): Ditto.
1014
3771659b
AC
10152003-08-09 Andrew Cagney <cagney@redhat.com>
1016
1017 * MAINTAINERS (language support): List Adam Fedor as Objective C
1018 maintainer.
1019
b4263afa
JB
10202003-08-08 J. Brobecker <brobecker@gnat.com>
1021
1022 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1023 are now multiarched.
1024
d84defb1
JB
10252003-08-08 J. Brobecker <brobecker@gnat.com>
1026
1027 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1028 longer necessary now that hppa64 is partially multiarch'ed.
1029
f786f615
AC
10302003-08-08 Andrew Cagney <cagney@redhat.com>
1031
1032 * interps.c (interp_set): Check for a NULL "old_interp".
1033
c938e9b0
L
10342003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1035
1036 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1037 (install-only): Support DESTDIR.
1038 (uninstall): Likewise.
1039 (install-gdbtk): Likewise.
1040
9a146a11
EZ
10412003-08-08 Elena Zannoni <ezannoni@redhat.com>
1042
1043 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1044 contains something meaningful at all times.
1045
1046Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1047
62599e99 1048 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1049
56296155
BC
1050Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1051
62599e99 1052 * MAINTAINERS (write after approval): Added self.
56296155 1053
9710e734
AC
10542003-08-07 Andrew Cagney <cagney@redhat.com>
1055
1056 * inferior.h (AT_SYMBOL): Define.
1057 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1058 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1059 * mips-tdep.c (mips_call_dummy_address): Delete function.
1060 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1061 set call_dummy_address.
1062
98b3ab73
AC
10632003-08-07 Andrew Cagney <cagney@redhat.com>
1064
1065 * language.c (op_error): Delete function.
1066 (binop_type_check): Delete function.
1067 * language.h (type_op_error, range_op_error): Delete macros.
1068 (op_error): Delete declaration.
1069
2fcf52f0
AC
10702003-08-07 Andrew Cagney <cagney@redhat.com>
1071
1072 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1073
abd4220e 10742003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1075
abd4220e 1076 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1077 (x86_64_push_arguments): Skip the red zone.
abd4220e 1078
9dd5f34f
AC
10792003-08-05 Andrew Cagney <cagney@redhat.com>
1080
1081 * reggroups.c (reggroup_next): Check for the final entry.
1082
e5e78edc
AC
10832003-08-04 Andrew Cagney <cagney@redhat.com>
1084
ab4e3d93
AC
1085 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1086 * cli/cli-script.c (define_command): Call query directly, instead
1087 of passing it a buffer.
1088 * ocd.c (ocd_error): Pass error a constant format string.
1089 * remote-mips.c (mips_error): Use fputs_filtered.
1090
1062ca82
AC
1091 * solib-svr4.c (_initialize_svr4_solib): Update
1092 register_gdbarch_data call.
1093 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1094
fcc1c85c
AC
1095 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1096 (register_gdbarch_data): Delete "free" parameter. Update
1097 comments.
1098 * gdbarch.h, gdbarch.c: Re-generate.
1099 * reggroups.c (_initialize_reggroup): Update.
1100 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1101 * frame-base.c (_initialize_frame_base): Update.
1102 * frame-unwind.c (_initialize_frame_unwind): Update.
1103 * user-regs.c (_initialize_user_regs): Update.
1104 * remote.c (_initialize_remote): Update.
1105 * regcache.c (_initialize_regcache): Update.
1106
116f06ea
AC
1107 * regcache.c (xfree_regcache_descr): Delete function.
1108 (_initialize_regcache): Update call to register_gdbarch_data.
1109 (init_regcache_descr, init_legacy_regcache_descr): Use
1110 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1111
e5e78edc
AC
1112 * remote.c (free_remote_state): Delete function.
1113 (_initialize_remote): Update register_gdbarch_data.
1114 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1115 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1116
6c7d17ba
AC
11172003-08-04 Andrew Cagney <cagney@redhat.com>
1118
1119 * reggroups.c (struct reggroup_el): Define.
1120 (struct reggroups): Delete field "nr_group". Replace array
1121 "group" with a "first" to "last" linked list.
1122 (reggroups_init): Update. Allocate using gdbarch's obstack.
1123 (reggroups_free): Delete function.
1124 (add_group): Update. Add "el" parameter.
1125 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1126 (default_groups): Update.
1127 (reggroup_next): Replace reggroups.
1128 (reggroups_dump): Update.
1129 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1130 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1131 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1132
89b7795b
DJ
11332003-08-04 Daniel Jacobowitz <drow@mvista.com>
1134
1135 * Makefile.in (tui-interp.o): Update dependencies.
1136
306d9ac5
DC
11372003-08-04 David Carlton <carlton@kealia.com>
1138
1139 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1140 to internal_error call.
1141 * source.c (forward_search_command): Add "%s" format argument.
1142 (reverse_search_command): Ditto.
1143 * top.c (quit_confirm): Ditto.
1144 * cli/cli-setshow.c (do_setshow_command): Ditto.
1145 * cp-valprint.c (cp_print_class_method): Replace
1146 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1147 (cp_print_class_member): Ditto.
1148 * event-top.c (command_line_handler): Ditto.
1149 * linux-proc.c (linux_info_proc_cmd): Ditto.
1150 * p-typeprint.c (pascal_type_print_base): Ditto.
1151 * p-valprint.c (pascal_object_print_class_method): Ditto.
1152 (pascal_object_print_class_member): Ditto.
1153 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1154 * remote.c (remote_cisco_section_offsets): Ditto.
1155 * top.c (command_line_input): Ditto.
1156 * utils.c (vwarning,error_stream,quit): Ditto.
1157 * valprint.c (print_floating,print_binary_chars)
1158 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1159
57bfe177
AC
11602003-08-04 Andrew Cagney <cagney@redhat.com>
1161
1162 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1163
e546b999
AC
11642003-08-02 Andrew Cagney <cagney@redhat.com>
1165
1166 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1167 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1168 amd64fbsd-nat.c.
1169
91092ee5
AC
11702003-08-02 Andrew Cagney <cagney@redhat.com>
1171
1172 * Makefile.in: Update all dependencies and definitions.
1173
889f28e2
AF
11742003-08-02 Adam Fedor <fedor@gnu.org>
1175
1176 * linespec.c (is_objc_method_format): New function
1177 (decode_line_1, locate_first_half): Use it.
1178 Fixes PR objc/1298
1179
880bc914
AC
11802003-08-01 Andrew Cagney <cagney@redhat.com>
1181
1182 * NEWS: Mention that m32r is multi-arch.
1183 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1184 * configure.tgt: Recognize m32r-*-*.
1185 * config/m32r/tm-m32r.h: Delete file.
1186 * config/m32r/m32r.mt: New file.
1187 * m32r-rom.c (m32r_upload_command): Use hostent only when
1188 gethostname succeeds, in order to avoid a compilation
1189 warning.
1190 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1191 compiler warning.
1192
19f59343
MS
11932003-08-01 Michael Snyder <msnyder@redhat.com>
1194
1195 * sh-tdep.c (sh_frame_align): New gdbarch method.
1196 (sh_gdbarch_init): Set up frame_align method.
1197
4e7d7511
MS
11982003-07-31 Michael Snyder <msnyder@redhat.com>
1199
1200 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1201 which is already covered by the new frames infrastructure.
1202
63022984
AC
12032003-07-31 Andrew Cagney <cagney@redhat.com>
1204
1205 * user-regs.c (struct user_reg): Add "next" link.
1206 (struct user_regs): Replace "user" with "first" and "last" links.
1207 (append_user_reg): Add pre-allocated "reg" parameter.
1208 (builtin_user_regs): Provide initial value for "last".
1209 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1210 (user_regs_init): Allocate memory from the gdbarch obstack.
1211 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1212 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1213 linked list.
1214 (usernum_to_user_reg): New function.
1215 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1216 (value_of_user_reg): Use usernum_to_user_reg.
1217 (user_regs_free): Delete function.
1218 (_initialize_user_regs): Update register_gdbarch_data call.
1219
7cf6e574
DJ
12202003-07-31 Daniel Jacobowitz <drow@mvista.com>
1221
1222 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1223
c48a845b
MS
12242003-07-30 Michael Snyder <msnyder@redhat.com>
1225
4e7d7511 1226 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1227 * infcall.c (call_function_by_hand): Pass struct_addr to
1228 value_being_returned.
1229 * infcmd.c (print_return_value): Pass zero as struct_addr.
1230 * values.c (value_being_returned): If struct_addr is passed,
1231 use it instead of trying to recover it from the inferior.
1232
f0d8db19
KB
12332003-07-30 Kevin Buettner <kevinb@redhat.com>
1234
1235 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1236 the prologue analyzer won't need to attempt to extract the pc
1237 value from the woefully incomplete dummy frame.
1238 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1239 possible. Disable code which modifies the frame.
1240
e5c113a1
AC
12412003-07-28 Andrew Cagney <cagney@redhat.com>
1242
1243 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1244 to level 2.
1245 (annotate_breakpoints_table, annotate_record): Ditto.
1246 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1247 (annotate_field_name_end, annotate_field_value): Ditto.
1248 (annotate_field_end, annotate_frame_source_begin): Ditto.
1249 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1250 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1251 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1252 (annotate_frame_address_end, annotate_frame_address): Ditto.
1253 (annotate_frame_args, annotate_frame_end): Ditto.
1254 (annotate_frame_where, annotate_arg_begin): Ditto.
1255 (annotate_arg_name_end, annotate_arg_value): Ditto.
1256 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1257 (annotate_function_call, annotate_signal_name): Ditto.
1258 (annotate_signal_string, annotate_signal_name_end): Ditto.
1259 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1260 (annotate_value_begin, annotate_value_history_value): Ditto.
1261 (annotate_value_history_end, annotate_value_end): Ditto.
1262 (annotate_display_begin, annotate_display_number_end): Ditto.
1263 (annotate_display_format, annotate_display_expression): Ditto.
1264 (annotate_display_expression_end, annotate_display_value): Ditto.
1265 (annotate_display_end, annotate_array_section_begin): Ditto.
1266 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1267 (annotate_elt, annotate_array_section_end): Ditto.
1268
bb1db049
AC
12692003-07-28 Andrew Cagney <cagney@redhat.com>
1270
1271 * regcache.c (struct regcache_descr): Update comments on
1272 nr_raw_registers.
1273 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1274 sizeof_raw_register_valid_p.
1275 (init_regcache_descr): Set nr_raw_registers and
1276 sizeof_raw_register_valid_p before calling
1277 init_legacy_regcache_descr.
1278
20e6603c
AC
12792003-07-28 Andrew Cagney <cagney@redhat.com>
1280
1281 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1282 MOD NUM_REGS.
1283
db742940
DJ
12842003-07-28 Daniel Jacobowitz <drow@mvista.com>
1285
1286 * thread.c (info_threads_command): Use get_selected_frame ().
1287 Check that there is at least one non-sentinel frame.
1288
ce7f4371
SC
12892003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1290
1291 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1292 (m68hc11_pop_frame): Remove.
1293 (m68hc11_frame_saved_pc): Remove.
1294 (m68hc11_frame_chain): Remove.
1295 (m68hc11_frame_init_saved_regs): Remove.
1296 (m68hc11_init_extra_frame_info): Remove.
1297 (m68hc11_store_struct_return): Remove.
1298 (m68hc11_saved_pc_after_call): Remove.
1299
1ea653ae
SC
13002003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1301
1302 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1303 frame unwind information.
1304 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1305 and adapted for frame unwinding.
1306 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1307 (m68hc11_unwind_pc): New function.
1308 (m68hc11_frame_unwind_cache): New function to analyze frames.
1309 (m68hc11_frame_this_id): New function to create new frame struct.
1310 (m68hc11_frame_prev_register): New function to unwind a register from
1311 the frame.
1312 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1313 (m68hc11_frame_p): New function for the above.
1314 (m68hc11_frame_base_address): New function to return fp of frame.
1315 (m68hc11_frame_args_address): Update for frame.
1316 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1317 (m68hc11_unwind_sp): New function.
1318 (m68hc11_unwind_dummy_id): New function.
1319 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1320 calls.
1321
c8a7f6ac
SC
13222003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1323
1324 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1325 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1326 when we are beyond the current pc.
1327
3dc990bf
SC
13282003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1329
1330 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1331 from m68hc11_push_arguments.
1332 (m68hc11_push_arguments): Remove.
1333 (m68hc11_push_return_address): Remove.
1334 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1335 handlers; remove deprecated_extra_stack_alignment_needed.
1336
222e5d1d
AC
13372003-07-27 Andrew Cagney <cagney@redhat.com>
1338
1339 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1340 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1341 REAL_PC and not the pointer.
1342 * hppa-hpux-tdep.c: Include frame.h
1343
a7e9a47e
AC
13442003-07-27 Andrew Cagney <cagney@redhat.com>
1345
1346 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1347 GDB_MULTI_ACH_PARTIAL.
1348
7e3dd49e
AC
13492003-07-27 Andrew Cagney <cagney@redhat.com>
1350
1351 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1352 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1353 operator at start and not end of line.
1354 (decode_prologue): Ditto.
1355 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1356 frame_unwind_register_unsigned instead of
1357 frame_unwind_unsigned_register.
1358 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1359 read_register.
1360 (m32r_push_dummy_call): Use register_size instead of
1361 REGISTER_RAW_SIZE.
1362 (m32r_frame_sniffer): Replace m32r_frame_p.
1363 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1364 * m32r-rom.c (report_transfer_performance): Delete extern
1365 declaration.
1366 (m32r_load, m32r_upload_command): Use print_transfer_performance
1367 instead of report_transfer_performance.
1368 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1369 / add_show_from_set.
1370
0880807f
AC
13712003-07-26 Andrew Cagney <cagney@redhat.com>
1372
1373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1374 store_return_value and extract_struct_value_address.
1375
64ae9269
DJ
13762003-07-26 Daniel Jacobowitz <drow@mvista.com>
1377
1378 PR c++/1267
1379 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1380 NULL, default to the section containing PC.
1381
e286caf2
SC
13822003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1383
1384 * NEWS: Mention "regs" deprecated for m68hc11 too.
1385
1386 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1387 (m68hc11_print_register): New function to print out one register.
1388 (m68hc11_print_registers_info): New function to print registers.
1389 (show_regs): Deprecate and use the above.
1390 (m68hc11_gdbarch_init): Install the print_registers_info.
1391
705b278b
JJ
13922003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1393
1394 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1395 that we have a SIGTRAP before returning non-zero.
1396
63cd4198
EZ
13972003-07-23 Michal Ludvig <mludvig@suse.cz>
1398 Elena Zannoni <ezannoni@redhat.com>
1399
1400 * linespec.c (decode_line_2): Avoid crash if
1401 find_function_start_sal() returns empty record.
1402
6926787d
AS
14032003-07-23 Andreas Schwab <schwab@suse.de>
1404
1405 * ia64-tdep.c (ia64_print_insn): New function.
1406 (ia64_gdbarch_init): Set print_insn to it.
1407 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1408 deprecated_tm_print_insn_info.
1409
708cc1b6
MS
14102003-07-22 Michael Snyder <msnyder@redhat.com>
1411
1412 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1413 handle 8-bit returns (long long).
1414 (h8300h_extract_return_value): Ditto.
1415 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1416
aebd7893
AC
14172003-07-22 Andrew Cagney <cagney@redhat.com>
1418
1419 * gdbarch.c Include "gdb_obstack.h".
1420 (struct gdbarch): Add an "obstack".
1421 (alloc_gdbarch_data): Allocate the gdbarch data using
1422 GDBARCH_OBSTACK_CALLOC.
1423 (free_gdbarch_data): Delete function.
1424 (gdbarch_obstack_zalloc): New function.
1425 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1426 Assert that the architecture is not initialized.
1427 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1428 vector from the obstack.
1429 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1430 architecture obstack.
1431 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1432 (set_gdbarch_data): Assert that the data is not initialized.
1433 (struct gdbarch_data): Delete member "free".
1434 (register_gdbarch_data): Do not initialize "free".
1435 * gdbarch.h, gdbarch.c: Re-generate.
1436
153721e6
AC
14372003-07-22 Andrew Cagney <cagney@redhat.com>
1438
1439 * configure.in (build_warnings): Add -Wformat-nonliteral.
1440 * configure: Re-generate.
1441
c193f044 14422003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1443
1444 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1445
c3228f12
EZ
14462003-07-22 Elena Zannoni <ezannoni@redhat.com>
1447
1448 * findvar.c (read_var_value): Remove case for thread local storage
1449 variables. It is now entirely handled by the dwarf2 location
1450 expression code.
1451 * printcmd.c (address_info): Ditto.
1452 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1453 enumeration value.
1454 (struct symbol): Remove objfile field, which was used by
1455 LOC_THREAD_LOCAL_STATIC only.
1456 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1457 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1458 usage of objfile pointer.
1459 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1460 thread local variables.
1461 Add include of objfiles.h.
1462 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1463 storage variables.
1464 * Makefile.in (dwarf2loc.o): Update dependencies.
1465
aef9bcd2
AC
14662003-07-22 Andrew Cagney <cagney@redhat.com>
1467
1468 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1469 get_frame_base.
1470 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1471 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1472 (struct value): Add opaque declaration.
1473 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1474
d95a8903
AC
14752003-07-21 Andrew Cagney <cagney@redhat.com>
1476
1477 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1478 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1479
4db73d49
SC
14802003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1481
1482 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1483 regcache_cooked_read_unsigned instead of read_register.
1484 (m68hc11_saved_pc_after_call): Likewise.
1485 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1486 instead of write_register.
1487 (m68hc11_register_type): New function.
1488 (m68hc11_register_virtual_type): Remove.
1489 (m68hc11_store_return_value): Convert to use the regcache.
1490 (m68hc11_extract_struct_value_address): Likewise.
1491 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1492 m68hc11_register_type; undeprecate store_return_value and
1493 extract_struct_value_address.
1494
ef2b8fcd
SC
14952003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1496
1497 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1498 and translate to use regcache.
1499 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1500
625b0b97
AC
15012003-07-18 Andrew Cagney <cagney@redhat.com>
1502
1503 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1504 * gdbarch.h, gdbarch.c: Re-generate.
1505 * i386-tdep.c (i386_gdbarch_init): Do not set
1506 DWARF2_BUILD_FRAME_INFO.
1507 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1508 unconditionally.
1509 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1510 DWARF2_BUILD_FRAME_INFO.
1511
22b0d388
AC
15122003-07-18 Andrew Cagney <cagney@redhat.com>
1513
1514 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1515 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1516
1ce5d6dd
AC
15172003-07-18 Andrew Cagney <cagney@redhat.com>
1518
1519 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1520 frame_unwind_address_in_block, instead of frame_pc_unwind.
1521 (dwarf2_frame_cache): Ditto.
1522
e6e5e94c
AC
15232003-07-18 Andrew Cagney <cagney@redhat.com>
1524
1525 * user-regs.h (struct gdbarch): Declare opaque.
1526 * ui-out.h (struct ui_file): Declare opaque.
1527 * dwarf2-frame.h (struct frame_info): Declare opaque.
1528
5483d879
KW
15292003-07-18 Kris Warkentin <kewarken@qnx.com>
1530
1531 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1532 #include "...".
1533 (procfs_meminfo): Change strerror to safe_strerror.
1534 (procfs_can_run): Remove K&R badness.
1535
278a7cf7
MS
15362003-07-17 Michael Snyder <msnyder@redhat.com>
1537
1538 * remote-sim.c: Comment typo fix.
1539
606e3b82
AC
15402003-07-17 Andrew Cagney <cagney@redhat.com>
1541
1542 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1543 configure.
1544 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1545 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1546 GDB_MULTI_ARCH_PARTIAL.
1547
c43af07c
EZ
15482003-07-17 Elena Zannoni <ezannoni@redhat.com>
1549
1550 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1551 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1552 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1553
3b85b0f1
TR
15542003-07-16 Theodore A. Roth <troth@openavr.org>
1555
1556 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1557 found.
1558 (avr_frame_unwind_cache): Don't unwind FP for main.
1559 Update a comment.
1560 Save the computed prev_sp.
1561 (avr_saved_regs_unwinder): Remove function.
1562 (avr_frame_prev_register): Use PC unwind logic from
1563 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1564
336d1bba
AC
15652003-07-16 Andrew Cagney <cagney@redhat.com>
1566
1567 * frame-base.h (frame_base_p_ftype): Delete definition.
1568 (frame_base_append_predicate): Delete declaration.
1569 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1570 (frame_unwind_append_predicate): Delete declaration.
1571 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1572 (append_predicate): Delete parameter "p".
1573 (frame_unwind_append_predicate): Delete function.
1574 (frame_unwind_append_sniffer): Update call to append_predicate.
1575 (frame_unwind_free): Delete function.
1576 (_initialize_frame_unwind): Pass NULL as "free" to
1577 register_gdbarch_data.
1578 (frame_unwind_init): Append the dummy_frame_sniffer.
1579 (frame_unwind_find_by_frame): Simplify.
1580 * frame-base.c (struct frame_base_table): Delete field "p".
1581 (append_predicate): Delete parameter "p".
1582 (frame_base_append_predicate): Delete function.
1583 (frame_base_append_sniffer): Update call to append_predicate.
1584 (frame_base_free): Delete function.
1585 (frame_base_find_by_frame): Simplify.
1586 (_initialize_frame_base): Pass NULL as "free" to
1587 register_gdbarch_data.
1588 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1589 (x86_64_sigtramp_frame_sniffer): Replace
1590 "x86_64_sigtramp_frame_p".
1591 (x86_64_init_abi): Set the frame unwind sniffers.
1592 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1593 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1594 (m68k_gdbarch_init): Set the frame unwind sniffers.
1595 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1596 "i386_sigtramp_frame_p".
1597 (i386_frame_sniffer): Replace "i386_frame_p".
1598 (i386_gdbarch_init): Set the frame unwind sniffers.
1599 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1600 (avr_gdbarch_init): Set the frame unwind sniffers.
1601 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1602 "alpha_sigtramp_frame_p"
1603 (alpha_heuristic_frame_sniffer): Replace
1604 "alpha_heuristic_frame_p".
1605 (alpha_gdbarch_init): Set the frame unwind sniffers.
1606 (alpha_dwarf2_init_abi): Ditto.
1607 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1608 "alpha_debug_frame_p".
1609 (alpha_mdebug_frame_base_sniffer): Replace
1610 "alpha_mdebug_frame_base_p".
1611 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1612 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1613 (d10v_gdbarch_init): Set the frame unwind sniffer.
1614 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1615 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1616 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1617 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1618 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1619 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1620
48db5a3c
CV
16212003-07-16 Michael Snyder <msnyder@redhat.com>
1622
1623 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1624 should go thru sh_dsp_register_sim_regno, else the dsp regs
1625 will not get the right values.
1626
16272003-07-16 Corinna Vinschen <vinschen@redhat.com>
1628
1629 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1630 deprecated_store_floating by call to store_typed_floating.
1631 (sh_sh4_register_convert_to_raw): Substitute call to
1632 deprecated_extract_floating by call to extract_typed_floating.
1633
16342003-07-16 Corinna Vinschen <vinschen@redhat.com>
1635
1636 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1637
16382003-07-16 Corinna Vinschen <vinschen@redhat.com>
1639
1640 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1641 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1642 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1643 as possible.
1644 (do_pseudo_register): Remove.
1645 (sh_push_dummy_code): New function.
1646 (sh64_store_struct_return): Rename from sh_store_struct_return.
1647 Only called for sh64 now.
1648 (sh_extract_struct_value_address): Regcache'ify.
1649 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1650 and accomodate new tasks.
1651 (sh64_push_return_address): Rename from sh_push_return_address.
1652 Only called for sh64 now.
1653 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1654 Regcache'ify.
1655 (sh3e_sh4_extract_return_value): Regcache'ify.
1656 (sh_default_store_return_value): Ditto.
1657 (sh3e_sh4_store_return_value): Ditto.
1658 (sh_default_register_byte): Remove.
1659 (sh_sh4_register_byte): Remove.
1660 (sh_default_register_raw_size): Remove.
1661 (sh_sh4_register_raw_size): Remove.
1662 (sh_register_virtual_size): Remove.
1663 (sh_sh3e_register_virtual_type): Remove.
1664 (sh_sh3e_register_type): New function.
1665 (sh_sh4_register_virtual_type): Remove.
1666 (sh_sh4_register_type): New function.
1667 (sh_default_register_virtual_type): Remove.
1668 (sh_default_register_type): New function.
1669 (do_fv_register_info): Add parameters to accomodate call from
1670 sh_print_registers_info.
1671 (do_dr_register_info): Ditto.
1672 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1673 Add parameters to accomodate call from sh_print_registers_info.
1674 (sh_do_fp_register): Ditto.
1675 (sh64_do_pseudo_register): Call do_dr_register_info,
1676 do_fv_register_info and sh_do_fp_register with default parameters.
1677 (sh_do_register): Add parameters to accomodate call from
1678 sh_print_registers_info.
1679 (sh_print_register): Ditto.
1680 (sh_print_registers_info): Rename from sh_do_registers_info.
1681 Add parameters to be used as gdbarch_print_registers_info
1682 implementation. Accomodate removed do_pseudo_register function
1683 pointer.
1684 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1685 function pointer. Call sh_print_register with default parameters.
1686 (sh64_do_registers_info): Call sh_print_registers_info instead of
1687 sh_do_registers_info.
1688 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1689 detection of deprecated vs. non-deprecated functionality.
1690 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1691 function pointer assignments by direct function calls.
1692
e8a89fe2
AC
16932003-07-15 Andrew Cagney <cagney@redhat.com>
1694
1695 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1696 (frame_register_unwind, create_new_frame): Ditto.
1697 (legacy_get_prev_frame, get_frame_type): Ditto.
1698 (get_frame_base_address): Use frame_base_find_by_frame.
1699 (get_frame_locals_address): Use frame_base_find_by_frame.
1700 (get_frame_args_address): Use frame_base_find_by_frame.
1701 * frame-base.h (frame_base_sniffer_ftype): Declare.
1702 (frame_base_append_sniffer): Declare.
1703 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1704 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1705 (frame_base_append_sniffer): New function.
1706 (frame_base_append_predicate): Add a NULL sniffer.
1707 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1708 (struct frame_base_table): Add "sniffer".
1709 (frame_base_free): Free the "sniffer" table.
1710 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1711 (frame_unwind_append_sniffer): Declare.
1712 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1713 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1714 (struct frame_unwind_table): Add "sniffer", delete "middle".
1715 (append_predicate): Add "sniffer" parameter, append the sniffer.
1716 (frame_unwind_init): Update append_predicate call.
1717 (frame_unwind_append_sniffer): New function.
1718 (frame_unwind_append_predicate): Update append_predicate call.
1719 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1720
0714963c
AC
17212003-07-15 Andrew Cagney <cagney@redhat.com>
1722
1723 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1724 before code inhibiting repeated unwind attempts. Add to
1725 commentary on that test's problems.
1726 * blockframe.c (inside_main_func): Look for "main" in the minimal
1727 symbol table.
1728 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1729 identical.
1730
d9170e22
AC
17312003-07-15 Andrew Cagney <cagney@redhat.com>
1732
1733 * complaints.c (struct explanation): Define.
1734 (struct complaints): Change type of "explanation" to "struct
1735 explanation".
1736 (symfile_explanations): Convert to a "struct explanation" table.
1737 (vcomplaint): Update.
1738
eba29c8c
ML
17392003-07-15 Michal Ludvig <mludvig@suse.cz>
1740
1741 * x86-64-linux-nat.c (regmap): Removed.
1742 (supply_gregset, fill_gregset): Call
1743 x86_64_linux_(fill,supply)_gregset functions.
1744 * x86-64-linux-tdep.c (USER_*): New defines.
1745 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1746 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1747 New functions.
1748 (fetch_core_registers): Ditto.
1749 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1750 * x86-64-linux-tdep.h: New file.
1751 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1752 and core-regset.o.
1753 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1754
68cc0bfb
MK
17552003-07-13 Mark Kettenis <kettenis@gnu.org>
1756
88a115f7
MK
1757 * x86-64-tdep.c (x86_64_store_return_value): Use
1758 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1759
68cc0bfb
MK
1760 * configure.host: Add x86_64-*-freebsd*.
1761 * configure.tgt: Add x86_64-*-freebsd*.
1762 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1763 * amd64fbsd-nat.c: New file.
1764 * amd64fbsd-tdep.c: New file.
1765 * config/i386/nm-fbsd64.h: New file.
1766 * config/i386/fbsd64.mh: New file.
1767 * config/i386/fbsd64.mt: New file.
1768
138e7be5
MK
17692003-07-11 Mark Kettenis <kettenis@gnu.org>
1770
1771 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1772 `sc_regs_offset' and `sc_fpregs_offset'.
1773 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1774 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1775 (alpha_sigtramp_register_address): Rewrite to use new members of
1776 `struct gdbarch_tdep'.
1777 (alpha_gdbarch_init): Initialize new members of struct
1778 gdbarch_tdep'.
1779 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1780 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1781 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1782 (alphafbsd_pc_in_sigtramp): Implement.
1783 (alphafbsd_sigtramp_offset): New function.
1784 (alphafbsd_sigcontext_addr): New function.
1785 (alphafbsd_init_abi): Initialize signal trampoline related members
1786 of `struct gdbarch_tdep'.
1787 (_initialize_alphafbsd_tdep): Add prototype.
1788
95303a68
TR
17892003-07-11 Theodore A. Roth <troth@openavr.org>
1790
ba292e4c
TR
1791 * Makefile.in (install-only): Quote sed expression when generating
1792 transformed_name.
95303a68 1793
6896c0c7
RH
17942003-07-11 Richard Henderson <rth@redhat.com>
1795
1796 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1797 * dwarf2-frame.c: Include complaints.h.
1798 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1799 variable initialization; return NULL on error.
1800 (decode_frame_entry): New.
1801
8edd5d01
AC
18022003-07-11 Andrew Cagney <cagney@redhat.com>
1803
c4a09524
AC
1804 * frame.h (frame_address_in_block): Delete declaration.
1805 * blockframe.c (frame_address_in_block): Delete function.
1806 (get_frame_block): Use get_frame_address_in_block.
1807 (block_innermost_frame): Ditto.
1808 * stack.c (print_frame, backtrace_command_1): Ditto.
1809
8edd5d01
AC
1810 * frame.h (get_frame_address_in_block): Declare.
1811 (frame_unwind_address_in_block): Declare.
1812 * frame.c (frame_unwind_address_in_block): New function.
1813 (get_frame_address_in_block): New function.
1814
f7968451
AC
18152003-07-10 Andrew Cagney <cagney@redhat.com>
1816
1817 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1818 pre-default. Note: re-generate has no effect.
1819
ae99b398
AC
18202003-07-10 Andrew Cagney <cagney@redhat.com>
1821
1822 * gdbarch.sh: When a variable, but not a function, compare against
1823 0. Fix problem in previous patch.
1824 * gdbarch.c: Re-generate.
1825
956ac328
AC
18262003-07-10 Andrew Cagney <cagney@redhat.com>
1827
1828 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1829 functions against NULL, not 0.
1830 * gdbarch.c: Re-generate.
1831
287c3240
FF
18322003-07-10 Fred Fish <fnf@ninemoons.com>
1833
1834 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1835 null string instead of a null pointer.
1836 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1837
32f63c4b
MS
18382003-07-09 Michael Snyder <msnyder@redhat.com>
1839
1840 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1841
402ecd56
MK
18422003-07-09 Mark Kettenis <kettenis@gnu.org>
1843
1844 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1845 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1846 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1847 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1848 * x86-64-tdep.c: ... from here.
1849
c481dac7
AS
18502003-07-09 Andreas Schwab <schwab@suse.de>
1851
1852 * m68k-tdep.h (enum struct_return): Define.
1853 (struct gdbarch_tdep): Add struct_return.
1854 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1855 bytes are padded to the right, not to the left. Pass struct value
1856 address in register %a1, not on stack.
1857 (m68k_use_struct_convention): New function.
1858 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1859 struct_return in tdep to pcc_struct_return.
1860 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1861 reg_struct_return.
1862
64176fa3
JB
18632003-07-09 Joel Brobecker <brobecker@gnat.com>
1864
1865 * somread.c (som_symfile_offsets): Fix compilation error.
1866
96a4ee76
AC
18672003-07-09 Andrew Cagney <cagney@redhat.com>
1868
1869 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1870 Add comments about the checks.
1871
1517c6d1
AC
18722003-07-08 Andrew Cagney <cagney@redhat.com>
1873
1874 * Makefile.in: Make dependency section headers consistent.
1875 (config_h): Move to $BUILD headers section.
1876 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1877 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1878 (ada-exp.tab.c): Move to YACC/LEX section.
1879 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1880 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1881
dc5dd1eb
KW
18822003-07-08 Kris Warkentin <kewarken@qnx.com>
1883
1884 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
1885 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1886 of strerror with safe_strerror, use ISO C function definitions,
1887 and replace instances of sprintf with snprintf.
dc5dd1eb 1888
612dde91
AC
18892003-07-07 Andrew Cagney <cagney@redhat.com>
1890
1891 * frame.c (get_prev_frame): Enable check for identical frames.
1892 Update comments. Update error messages.
1893
492c11d3
JB
18942003-07-07 Joel Brobecker <brobecker@gnat.com>
1895
1896 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1897
376a5a49
JB
18982003-07-07 Joel Brobecker <brobecker@gnat.com>
1899
1900 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1901 sort_symtab_syms, no longer necessary.
1902
22b4a9ad
JB
19032003-07-07 Joel Brobecker <brobecker@gnat.com>
1904
1905 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1906
5bbcb741
JB
19072003-07-07 Joel Brobecker <brobecker@gnat.com>
1908
1909 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1910 (mips_register_byte): Likewise.
1911
c139e7d9
DJ
19122003-07-07 Daniel Jacobowitz <drow@mvista.com>
1913
1914 * Makefile.in (sparc_tdep_h): New.
1915 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1916 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1917 * sparc-linux-nat.c: Include "sparc-tdep.h".
1918 * sparc-nat.c: Likewise.
1919 * sparc-tdep.c: Likewise.
1920 * sparc64nbsd-nat.c: Likewise.
1921 * sparcnbsd-nat.c: Likewise.
1922 * sparcnbsd-tdep.c: Likewise.
1923 * sparc-tdep.h: New file.
1924 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1925 and sparc_npc_regnum.
1926
fd8f87c5
DJ
19272003-07-07 Daniel Jacobowitz <drow@mvista.com>
1928
1929 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1930 (mips_linux_cannot_store_register): List supported instead of
1931 unsupported registers.
1932
13adf674
DJ
19332003-07-07 Daniel Jacobowitz <drow@mvista.com>
1934
1935 * disasm.c (dump_insns): Separate instructions from addresses.
1936
8de307e0
AS
19372003-07-07 Andreas Schwab <schwab@suse.de>
1938
1939 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1940 dependencies.
1941 * m68k-tdep.c (NUM_FREGS): Delete.
1942 (SIG_PC_FP_OFFSET): Delete.
1943 (TARGET_M68K): Delete.
1944 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1945 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1946 P_MOVEL_SP, P_MOVEML_SP): Define.
1947 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1948 P_TRAP): Delete.
1949 (m68k_register_raw_size): Delete.
1950 (m68k_register_virtual_size): Delete.
1951 (m68k_register_type): Renamed from m68k_register_virtual_type and
1952 add gdbarch argument.
1953 (m68k_store_struct_return): Delete.
1954 (m68k_deprecated_extract_return_value): Delete.
1955 (m68k_deprecated_extract_struct_value_address): Delete.
1956 (m68k_frame_chain): Delete.
1957 (m68k_frame_saved_pc): Delete.
1958 (m68k_fix_call_dummy): Delete.
1959 (m68k_push_dummy_frame): Delete.
1960 (m68k_pop_frame): Delete.
1961 (m68k_extract_return_value): New function.
1962 (m68k_store_return_value): Rewrite using regcache.
1963 (m68k_extract_struct_value_address): Rewrite using regcache.
1964 (m68k_push_dummy_call): New function.
1965 (struct m68k_frame_cache): Define.
1966 (m68k_alloc_frame_cache): New function.
1967 (m68k_analyze_frame_setup): New function.
1968 (m68k_analyze_register_saves): New function.
1969 (m68k_analyze_prologue): New function.
1970 (m68k_skip_prologue): Rewrite using above functions.
1971 (m68k_unwind_pc): New function.
1972 (m68k_frame_cache): New function.
1973 (m68k_frame_this_id): New function.
1974 (m68k_frame_prev_register): New function.
1975 (m68k_frame_unwind): New variable.
1976 (m68k_frame_p): New function.
1977 (m68k_sigtramp_frame_cache): New function.
1978 (m68k_sigtramp_frame_this_id): New function.
1979 (m68k_sigtramp_frame_prev_register): New function.
1980 (m68k_sigtramp_frame_unwind): New variable.
1981 (m68k_sigtramp_frame_p): New function.
1982 (m68k_frame_base_address): New function.
1983 (m68k_frame_base): New function.
1984 (m68k_unwind_dummy_id): New function.
1985 (fill_gregset): Use regcache_collect.
1986 (fill_fpregset): Likewise.
1987 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1988 defined.
1989 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1990 deprecated_init_frame_pc, deprecated_store_struct_return,
1991 deprecated_extract_return_value, deprecated_store_return_value,
1992 deprecated_frame_chain, deprecated_frame_saved_pc,
1993 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1994 deprecated_register_virtual_size,
1995 deprecated_max_register_raw_size,
1996 deprecated_max_register_virtual_size,
1997 deprecated_register_virtual_type, deprecated_register_size,
1998 deprecated_register_byte, deprecated_register_bytes,
1999 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2000 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2001 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2002 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2003 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2004 deprecated_push_dummy_frame, deprecated_pop_frame,
2005 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2006 only if SYSCALL_TRAP is defined. Set extract_return_value,
2007 store_return_value, extract_struct_value_address, register_type,
2008 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2009 predicates.
2010 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2011 M68K_MAX_REGISTER_SIZE): Define.
2012 (struct m68k_sigtramp_info): Define.
2013 (struct gdbarch_tdep): Add get_sigtramp_info.
2014 * m68klinux-nat.c (fetch_register): Use register_size instead of
2015 REGISTER_RAW_SIZE. Don't put assignment in if.
2016 (store_register): Likewise.
2017 (fetch_inferior_registers): Likewise.
2018 (store_inferior_registers): Likewise.
2019 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2020 (m68k_linux_frame_saved_pc): Delete.
2021 (m68k_linux_sigcontext_reg_offset,
2022 m68k_linux_ucontext_reg_offset): Define.
2023 (m68k_linux_get_sigtramp_info): New function.
2024 (m68k_linux_extract_return_value): Rewrite using regcache.
2025 (m68k_linux_store_return_value): Likewise.
2026 (m68k_linux_extract_struct_value_address): Likewise.
2027 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2028 Don't set deprecated_frame_saved_pc,
2029 deprecated_extract_return_value, deprecated_store_return_value,
2030 deprecated_extract_struct_value_address. Set
2031 extract_return_value, store_return_value,
2032 extract_struct_value_address.
2033
eb8bc282
AC
20342003-07-07 Andrew Cagney <cagney@redhat.com>
2035
2036 * expprint.c: Include "user-regs.h" instead of "frame.h".
2037 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2038 frame_map_regnum_to_name.
2039 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2040 (frame_map_name_to_regnum): Simplify, call
2041 user_reg_map_name_to_regnum.
2042 (frame_map_regnum_to_name): Simplify, call
2043 user_reg_map_regnum_to_name.
2044 (frame_register_unwind): Update.
2045 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2046 (_initialize_frame_reg): Call user_reg_add_builtin.
2047 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2048 (value_of_register): Use value_of_user_reg.
2049 * eval.c (evaluate_subexp_standard): Update.
2050 * parse.c (write_dollar_variable): Update.
2051 * d10v-tdep.c (d10v_print_registers_info): Update.
2052 * infcmd.c (registers_info): Update.
2053 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2054 (builtin_regs_h): Delete macro.
2055 (user_regs_h): Define.
2056 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2057 (builtin-regs.o): Delete target.
2058 (user-regs.o): Specify dependencies.
2059 (expprint.o): Update dependencies.
2060 (findvar.o): Update dependencies.
2061 (frame.o): Update dependencies.
2062 (std-regs.o): Update dependencies.
2063
9f476a01
CF
20642003-07-06 Christopher Faylor <cgf@redhat.com>
2065
2066 * win32-nat.c (solib_symbols_add): Use one variable for all section
2067 address stuff. Pass variable rather than address of variable to
2068 safe_symbol_file_add.
2069
a731b831
AS
20702003-07-06 Andreas Schwab <schwab@suse.de>
2071
2072 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2073
9f83329d
JB
20742003-07-04 Joel Brobecker <brobecker@gnat.com>
2075
2076 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2077
27e28cc5
KW
20782003-07-04 Kris Warkentin <kewarken@qnx.com>
2079
2080 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2081
20822003-07-04 Kris Warkentin <kewarken@qnx.com>
2083
2084 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2085 * config/i386/nto.mh: New file.
2086 * config/i386/nm-nto.h: New file.
2087 * configure.host: Add i[3456]86-*-nto*.
2088
100f2e98
JB
20892003-07-03 Joel Brobecker <brobecker@gnat.com>
2090
2091 * remote-vx.c (vx_add_symbols): Fix compilation error.
2092
e23457df
AC
20932003-07-03 Andrew Cagney <cagney@redhat.com>
2094
2095 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2096 * gdbarch.h, gdbarch.c: Re-generate.
2097 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2098 (legacy_register_name): Declare.
2099 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2100 (REGISTER_NAME): Define.
2101 * sparc-tdep.c (legacy_register_name): New function.
2102 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2103 (REGISTER_NAME): Define.
2104 (hppa64_register_name): Declare.
2105 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2106 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2107 (hppa64_register_name): New function.
2108 (hppa_register_name): New function.
2109 * arch-utils.c (legacy_register_name): Delete.
2110 * arch-utils.h (legacy_register_name): Delete.
2111
38caaeec
DJ
21122003-07-03 Daniel Jacobowitz <drow@mvista.com>
2113
2114 * cli/cli-interp.c (cli_interpreter_resume): Update the
2115 cli_uiout's stream to gdb_stdout.
2116
dadd712e
AC
21172003-07-03 Andrew Cagney <cagney@redhat.com>
2118
2119 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2120 predicate.
2121 * gdbarch.h, gdbarch.c: Re-generate.
2122 * regcache.c (init_regcache_descr): Use legacy code when either
2123 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2124
c7f1390e
DJ
21252003-07-02 Daniel Jacobowitz <drow@mvista.com>
2126
2127 * NEWS: Move "set logging" entry into GDB 6.0 section.
2128
4bc8c588
JB
21292003-07-02 Jim Blandy <jimb@redhat.com>
2130
a9dd42f1
JB
2131 * s390-tdep.c (struct frame_extra_info): new member:
2132 'stack_bought_valid'.
2133 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2134 initialize fextra_info->stack_bought.
2135 (s390_frameless_function_invocation): Don't trust the value of
2136 fextra_info_ptr->stack_bought unless
2137 fextra_info->stack_bought_valid is set.
2138
4bc8c588
JB
2139 New S390 prologue analyzer.
2140 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2141 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2142 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2143 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2144 compute_x_addr, s390_on_stack, s390_store,
2145 s390_get_signal_frame_info): New functions.
2146 (S390_NUM_SPILL_SLOTS): New macro.
2147 (s390_get_frame_info): Rewritten.
2148 (is_arg_reg): Deleted.
2149
2150 Break out the decoding of S/390 instructions into separate
2151 functions, to make it more legible, and easier to check
2152 against the spec.
2153 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2154 is_rx, is_rxe): New functions.
2155 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2156 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2157 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2158 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2159 enums for opcode values. (Is this an improvement?)
2160
fd13a04a
AC
21612003-07-02 Andrew Cagney <cagney@redhat.com>
2162
2163 * i386-tdep.c: Revert change committed as part of trad-frame code
2164 below.
2165
3f8091c1
DJ
21662003-07-02 Daniel Jacobowitz <drow@mvista.com>
2167
2168 * breakpoint.c (insert_catchpoint): Make static.
2169
8dd5115e
AS
21702003-07-02 Andreas Schwab <schwab@suse.de>
2171
2172 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2173 former ia64_push_arguments and ia64_push_return_address, and use
2174 regcache functions instead of read/write_register.
2175 (ia64_gdbarch_init): Set push_dummy_call instead of
2176 deprecated_push_arguments and deprecated_push_return_address.
2177
a2229c23
AJ
21782003-07-01 Andreas Jaeger <aj@suse.de>
2179
2180 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2181 before the call.
2182 Set %rax only to number of SSE registers used.
2183
3b3850e8
AC
21842003-07-01 Andrew Cagney <cagney@redhat.com>
2185
2186 * trad-frame.h: Update comments, a -1 .addr is reserved.
2187 (trad_frame_value_p, trad_frame_addr_p): Declare.
2188 (trad_frame_reg_p): Declare.
2189 (trad_frame_set_value): Rename trad_frame_register_value.
2190 (trad_frame_set_unknown): Declare.
2191 * trad-frame.c (trad_frame_realreg_p): New function.
2192 (trad_frame_addr_p, trad_frame_value_p): New function.
2193 (trad_frame_set_unknown): New function.
2194 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2195 (trad_frame_prev_register): Use trad_frame_realreg_p,
2196 trad_frame_addr_p and trad_frame_value_p.
2197 (trad_frame_set_value): Rename trad_frame_register_value.
2198 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2199 and trad_frame_set_value.
a2229c23 2200
4d819d0e
JB
22012003-06-30 Jim Blandy <jimb@redhat.com>
2202
2203 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2204 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2205 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2206 for 16 registers, and then 32 more bytes.
2207 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2208 New macros.
2209 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2210 Move up in the file, since it's now used by is_simple_arg.
2211 (is_simple_arg): Don't assume registers are four bytes long.
2212 Exclude all double arguments. Extended floats are not simple
2213 args.
2214 (is_power_of_two): New function.
2215 (pass_by_copy_ref): Call is_power_of_two, and check that the
2216 length fits in a register, rather than listing all the acceptable
2217 sizes. Extended floats are not passed by reference.
2218 (s390_push_arguments): Don't assume registers are four bytes long.
2219 Reserve an argument register to point to the buffer for structures
2220 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2221 S390_STACK_FRAME_OVERHEAD.
2222
1ad828f1
AS
22232003-06-30 Andreas Schwab <schwab@suse.de>
2224
2225 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2226 format error message.
2227
39b00981
JB
22282003-06-30 Joel Brobecker <brobecker@gnat.com>
2229
2230 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2231
b2a7f303
DC
22322003-06-30 David Carlton <carlton@kealia.com>
2233
2234 Band-aid for PR c++/1245.
2235 * Makefile.in (cp-support.o): Depend on complaints_h.
2236 * cp-support.c: Include complaints.h. Add declaration for
2237 find_last_component.
2238 (cp_find_first_component): Separate code into
2239 cp_find_first_component_aux.
2240 (cp_find_first_component_aux): Call demangled_name_complaint.
2241 (demangled_name_complaint): New.
2242
a257b5bb
AC
22432003-06-30 Andrew Cagney <cagney@redhat.com>
2244
2245 * remote.c (remote_write_bytes): Explicitly compute and then use
2246 the payload size. Update comments to reflect. Fixes problem of
2247 GDB not sending small packets as found by Fred Fish.
2248
0a2cfde4
AC
22492003-06-30 Andrew Cagney <cagney@redhat.com>
2250
2251 * remote.c (remote_async_wait): Fix -Wformat problem.
2252
3fcb8548
AC
22532003-06-29 Andrew Cagney <cagney@redhat.com>
2254
2255 * remote.c (remote_wait): Call error, and not warning, when the
2256 packet is corrupt.
2257 (remote_async_wait): Ditto.
2258
9f9970a3
DJ
22592003-06-29 Daniel Jacobowitz <drow@mvista.com>
2260
2261 * sparc-tdep.c (sparc_y_regnum): Make external again.
2262
83a8ccca
DJ
22632003-06-29 Daniel Jacobowitz <drow@mvista.com>
2264
2265 * cli/cli-logging.c (pop_output_files): Add void to function
2266 definition.
2267
d2cf594a
AC
22682003-06-29 Andrew Cagney <cagney@redhat.com>
2269
2270 * frame.c (frame_register_unwind): Use unsigned char when dumping
2271 the buffer contents.
2272
0fac0b41
DJ
22732003-06-28 Daniel Jacobowitz <drow@mvista.com>
2274
2275 * cli/cli-logging.c: New file.
2276 * cli-out.c (struct ui_out_data): Add original_stream.
2277 (cli_redirect): New function.
2278 (cli_ui_out_impl): Add cli_redirect.
2279 (cli_out_new): Initialize original_stream.
2280 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2281 (uo_redirect, ui_out_redirect): New.
2282 * ui-out.h (struct ui_out_impl): Add redirect member.
2283 (redirect_ftype): New.
2284 (ui_out_redirect): Add prototype.
2285 * Makefile.in: Add rules for cli-logging.c.
2286 * NEWS: Mention "set logging".
2287
88a07d7c
EZ
22882003-06-27 Elena Zannoni <ezannoni@redhat.com>
2289
2290 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2291
4eb58876
AC
22922003-06-27 Andrew Cagney <cagney@redhat.com>
2293
2294 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2295 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2296 * avr-tdep.c (avr_call_dummy_address): Delete function.
2297 (avr_gdbarch_init): Do not set call_dummy_address.
2298
1549f619
EZ
22992003-06-27 Elena Zannoni <ezannoni@redhat.com>
2300
2301 * symfile.c (syms_from_objfile): Move variables to inner block.
2302 Move the checks for the non-mainline case a bit earlier to avoid
2303 doing some useless computations.
2304
3cb3398d
EZ
23052003-06-27 Elena Zannoni <ezannoni@redhat.com>
2306
2307 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2308
3799ccc6
EZ
23092003-06-26 Elena Zannoni <ezannoni@redhat.com>
2310
2311 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2312 sections.
2313
ce1f6491
MC
23142003-06-26 Michael Chastain <mec@shout.net>
2315
2316 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2317 gdb/testsuite/gdb.c++/pr-1210.exp.
2318
d958dfd0
AC
23192003-06-26 Andrew Cagney <cagney@redhat.com>
2320
2321 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2322 altivec_expression.h and altivec_registers.h.
2323
d31431ed
AC
23242003-06-26 Andrew Cagney <cagney@redhat.com>
2325
2326 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2327 info->mach when MIPS16. Patch suggested by Fred Fish.
2328
714b1282
AC
23292003-06-26 Andrew Cagney <cagney@redhat.com>
2330
2331 * utils.c (internal_vproblem): Print the problem to a reason
2332 buffer and then pass to query. Make the msg variable more local.
2333
42efa47a
AC
23342003-06-26 Andrew Cagney <cagney@redhat.com>
2335
2336 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2337 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2338 * gdbarch.h, gdbarch.c: Re-generate.
2339 * frame-base.c (default_frame_args_address): Update. Use
2340 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2341 not available.
2342 (default_frame_locals_address): Ditto for
2343 DEPRECATED_FRAME_LOCALS_ADDRESS.
2344 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2345 (vax_frame_num_args): Update.
2346 (vax_gdbarch_init): Update.
2347 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2348 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2349 * mcore-tdep.c (mcore_gdbarch_init): Update.
2350 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2351 * ia64-tdep.c (ia64_gdbarch_init): Update.
2352 * symtab.h (address_class): Update comments.
2353 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2354 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2355 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2356 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2357 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2358 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2359 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2360 * alpha-mdebug-tdep.c: Update.
2361 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2362
8ffd9b1b
AJ
23632003-06-26 Andreas Jaeger <aj@suse.de>
2364
2365 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2366 of SSE registers so that varargs functions work. Rework handling
2367 of passing arguments on the stack.
2368 (x86_64_store_return_value): Return double and float values in SSE
2369 register.
2370
e8ac10a6
MC
23712003-06-24 Michael Chastain <mec@shout.net>
2372
2373 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2374 the "constructor breakpoints ignored" bug.
2375
986af8e6
DC
23762003-06-25 David Carlton <carlton@kealia.com>
2377
2378 * MAINTAINERS: Update e-mail address.
2379
d64558a5
JB
23802003-06-24 Jim Blandy <jimb@redhat.com>
2381
e538d2d7
JB
2382 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2383
02631ec0
JB
2384 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2385 function.
2386 (ppc_linux_init_abi): Register it as the
2387 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2388
e716d87a
JB
2389 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2390 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2391 method.
2392
d64558a5
JB
2393 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2394 (ppc64_standard_linkage_target): Use it.
2395
449a5da4
AC
23962003-06-23 Andrew Cagney <cagney@redhat.com>
2397
2398 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2399 for 0 "int0" and 4 "int32" sized registers.
2400 * gdbtypes.c (builtin_type_int0): Define.
2401 (build_gdbtypes): Initialize builtin_type_int0.
2402 * gdbtypes.h (builtin_type_int0): Declare.
2403
b2a02dda
SC
24042003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2405
2406 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2407 as characters are unsigned.
2408
fba3138e
DJ
24092003-06-22 Daniel Jacobowitz <drow@mvista.com>
2410
2411 PR gdb/1179
2412 * dwarfread.c (struct_type): Skip static fields without crashing.
2413
f6c8180b
AC
24142003-06-22 Andrew Cagney <cagney@redhat.com>
2415
2416 GDB 6.0 branch created.
f2c06f52
AC
2417 * README: Update.
2418 * PROBLEMS: Update. Empty.
2419 * NEWS: Update.
f6c8180b 2420
ae822768
DJ
24212003-06-22 Daniel Jacobowitz <drow@mvista.com>
2422
2423 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2424 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2425
261de166
AC
24262003-06-22 Andrew Cagney <cagney@redhat.com>
2427
2428 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2429 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2430 Velikov.
2431
30e94205
DJ
24322003-06-22 Daniel Jacobowitz <drow@mvista.com>
2433
2434 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2435 compilers.
2436
9e14d721
DJ
24372003-06-21 Daniel Jacobowitz <drow@mvista.com>
2438
2439 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2440 argument of val_print.
2441 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2442 to the address argument of baseclass_offset or target_read_memory.
2443 Do add it to the argument of cp_print_value_fields.
2444
a4b8ebc8
AC
24452003-06-21 Andrew Cagney <cagney@redhat.com>
2446
2447 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2448 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2449 instead of 0..NUM_REGS.
2450 (mips_register_reggroup_p): New function.
2451 (mips_pseudo_register_write): New function.
2452 (mips_pseudo_register_read): New function.
2453 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2454 based on the register's type.
2455 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2456 cooked.
2457 (mips_get_saved_register): Simplify. Assert that REGNO is a
2458 pseudo / cooked.
2459 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2460 (mips_register_type): Replace mips_register_virtual_type. Map
2461 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2462 when available.
2463 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2464 that the register is cooked / virtual.
2465 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2466 Only get the extra info when needed.
2467 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2468 (mips32_heuristic_proc_desc): Fetch the cooked register.
2469 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2470 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2471 (mips_print_register): Use gdbarch_register_type, instead of
2472 REGISTER_VIRTUAL_TYPE.
2473 (print_gp_register_row): Use gdbarch_register_type, instead of
2474 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2475 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2476 Print the pseudo / cooked registers.
2477 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2478 Print the pseudo / cooked registers.
2479 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2480 REG_NUM is pseudo / cooked.
2481 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2482 (mips_n32n64_xfer_return_value): Ditto.
2483 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2484 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2485 (mips_register_sim_regno): New function.
2486 (mips_gdbarch_init): Set deprecated_register_byte,
2487 register_group_p, pseudo_register_write, pseudo_register_read,
2488 register_sim_regno, and num_pseudo_regs. Set register_type,
2489 instead of register_virtual_type.
2490 * Makefile.in (mips-tdep.o): Update dependencies.
2491 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2492 REGISTER_VIRTUAL_TYPE.
2493 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2494 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2495 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2496 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2497 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2498
325ed089
DJ
24992003-06-21 Daniel Jacobowitz <drow@mvista.com>
2500
2501 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2502 * cli/cli-cmds.c: Include "gdb_vfork.h".
2503 (shell_escape): Use vfork.
2504
f0e7d0e8
AC
25052003-06-21 Andrew Cagney <cagney@redhat.com>
2506
c57bb9fa
AC
2507 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2508 32 bit floating-point register saves.
2509
6e51443a
AC
2510 * frame.h (deprecated_unwind_get_saved_register): Delete.
2511 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2512 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2513 and deprecated_get_next_frame_hack instead of
2514 deprecated_unwind_get_saved_register.
2515
ed183c7c
AC
2516 * mips-tdep.c (mips_dump_tdep): Do not print
2517 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2518
f0e7d0e8
AC
2519 * frame.c (get_frame_register): New function.
2520 (frame_unwind_register_signed): New function.
2521 (get_frame_register_signed): New function.
2522 (frame_unwind_register_unsigned): New function.
2523 (get_frame_register_unsigned): New function.
2524 * frame.h: Add comments on naming schema.
2525 (get_frame_register, frame_unwind_register_signed): Declare.
2526 (get_frame_register_signed, get_frame_register_signed): Declare.
2527 (frame_unwind_register_unsigned): Declare.
2528 (get_frame_register_unsigned): Declare.
2529
2224d941
TR
25302003-06-20 Theodore A. Roth <troth@openavr.org>
2531
2532 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2533
8619218d
TR
25342003-06-20 Theodore A. Roth <troth@openavr.org>
2535
2536 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2537 (avr_read_sp): Ditto.
2538
0b1b50c0
DJ
25392003-06-20 Daniel Jacobowitz <drow@mvista.com>
2540
2541 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2542 * config/arm/nm-linux.h: Likewise.
2543 * config/arm/tm-linux.h: Likewise.
2544 * config/ia64/nm-linux.h: Likewise.
2545 * config/ia64/tm-ia64.h: Likewise.
2546 * config/s390/tm-linux.h: Likewise.
2547 * config/s390/tm-s390.h: Likewise.
2548 * s390-nat.c: Likewise.
2549 * s390-tdep.c: Likewise.
2550
2551 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2552 * config/ia64/linux.mt: Likewise.
2553 * config/m68k/linux.mh: Likewise.
2554 * config/mips/linux.mt: Likewise.
2555 * config/powerpc/linux.mh: Likewise.
2556 * config/sh/linux.mt: Likewise.
2557
c8c18e65
KW
25582003-06-19 Kris Warkentin <kewarken@qnx.com>
2559
2560 * solib.c (solib_open): Change tests for whether to search
2561 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2562 comments.
2563
dcccef2e
TR
25642003-06-19 Theodore A. Roth <troth@openavr.org>
2565
2566 * avr-tdep.c (avr_frame_address): Delete function.
2567 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2568 set_gdbarch_frame_args_address.
2569
5861a190
AC
25702003-06-19 Andrew Cagney <cagney@redhat.com>
2571
2572 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2573 (REGISTER_CONVERT_FROM_TYPE): Delete.
2574 (mips_register_convert_to_type): Delete declaration.
2575 (mips_register_convert_from_type): Delete declaration.
2576 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2577 kernel/.
2578
0274a8ce
MS
25792003-06-19 Michael Snyder <msnyder@redhat.com>
2580
2581 * linux-nat.h: New file.
2582 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2583 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2584 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2585 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2586 (linux_make_note_section): Iterate over lwps instead of threads.
2587 (linux_do_thread_registers): Use lwp instead of merged pid.
2588 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2589 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2590 Add dependency on linux_nat_h.
2591
adf5f719
TR
25922003-06-19 Theodore A. Roth <troth@openavr.org>
2593
2594 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2595
6766a268
DJ
25962003-06-19 Daniel Jacobowitz <drow@mvista.com>
2597
2598 * varobj.c (get_type, get_target_type): Use check_typedef.
2599
1171114a
DJ
26002003-06-19 Daniel Jacobowitz <drow@mvista.com>
2601
2602 * breakpoint.c (insert_catchpoint): Call internal_error.
2603
adcf68a2
TR
26042003-06-19 Theodore A. Roth <troth@openavr.org>
2605
2606 * avr-tdep.c (avr_push_dummy_code): Delete function.
2607 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2608
ea67f13b
DJ
26092003-06-19 Daniel Jacobowitz <drow@mvista.com>
2610
2611 * arch-utils.c (default_prepare_to_proceed): Remove.
2612 (generic_prepare_to_proceed): Remove.
2613 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2614 (generic_prepare_to_proceed): Remove prototype.
2615 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2616 * gdbarch.c: Regenerate.
2617 * gdbarch.h: Regenerate.
2618 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2619 * hppah-nat.c (hppa_switched_threads): Remove.
2620 * infrun.c (prepare_to_proceed): New static function, copied from
2621 generic_prepare_to_proceed. Remove select_it argument.
2622 (proceed): Call prepare_to_proceed.
2623 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2624 variables.
2625 (ptrace_wait): Don't set the removed variables.
2626 (hppa_switched_threads): Remove.
2627 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2628 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2629 (lin_lwp_prepare_to_proceed): Remove prototype.
2630 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2631 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2632
4add8633
TR
26332003-06-18 Theodore A. Roth <troth@openavr.org>
2634
2635 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2636 trad-frame.h.
2637 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2638 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2639 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2640 (AVR_PROLOGUE_*): Enumerate prologue types.
2641 (struct frame_extra_info): Remove.
2642 (struct avr_unwind_cache): Define.
2643 (avr_write_sp): Delete function.
2644 (avr_read_fp): Ditto.
2645 (avr_init_extra_frame_info): Ditto.
2646 (avr_pop_frame): Ditto.
2647 (avr_frame_saved_pc): Ditto.
2648 (avr_saved_pc_after_call): Ditto.
2649 (avr_push_return_address): Ditto.
2650 (avr_frame_chain): Ditto.
2651 (avr_store_struct_return): Ditto.
2652 (avr_push_arguments): Ditto.
2653 (avr_scan_prologue): Update comments. Changed to set up the info for
2654 cache unwinding. Now returns end of prologue PC.
2655 (avr_skip_prologue): Better handling of functions lacking a prologue
2656 by using avr_scan_prologue.
2657 (avr_scan_arg_moves): New function.
2658 (avr_saved_regs_unwinder): Ditto.
2659 (avr_frame_unwind_cache): Ditto.
2660 (avr_unwind_pc): Ditto.
2661 (avr_frame_this_id): Ditto.
2662 (avr_frame_prev_register): Ditto.
2663 (avr_frame_p): Ditto.
2664 (avr_frame_base_address ): Ditto.
2665 (avr_unwind_dummy_id): Ditto.
2666 (avr_push_dummy_code): Ditto.
2667 (push_stack_item): Ditto.
2668 (pop_stack_item): Ditto.
2669 (avr_push_dummy_call): Ditto.
2670 (struct stack_item): Define.
2671 (avr_frame_unwind): Declare structure.
2672 (avr_frame_base): Ditto.
2673 (avr_gdbarch_init): Remove calls to
2674 set_gdbarch_deprecated_init_frame_pc,
2675 set_gdbarch_deprecated_target_read_fp,
2676 set_gdbarch_deprecated_dummy_write_sp,
2677 set_gdbarch_deprecated_fp_regnum,
2678 set_gdbarch_deprecated_push_arguments,
2679 set_gdbarch_deprecated_push_return_address,
2680 set_gdbarch_deprecated_pop_frame,
2681 set_gdbarch_deprecated_store_struct_return,
2682 set_gdbarch_deprecated_frame_init_saved_regs,
2683 set_gdbarch_deprecated_init_extra_frame_info,
2684 set_gdbarch_deprecated_frame_chain,
2685 set_gdbarch_deprecated_frame_saved_pc,
2686 set_gdbarch_deprecated_saved_pc_after_call.
2687 Add calls to set_gdbarch_push_dummy_call,
2688 set_gdbarch_push_dummy_code,
2689 frame_unwind_append_predicate,
2690 frame_base_set_default,
2691 set_gdbarch_unwind_dummy_id,
2692 set_gdbarch_unwind_pc.
2693 Wrap a long line.
2694
7be04a68
MS
26952003-06-18 Corinna Vinschen <vinschen@redhat.com>
2696
2697 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2698 registers for H8/300S.
2699 (h8300_print_registers_info): Ditto.
8ffd9b1b 2700 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2701
ae087d01
DJ
27022003-06-18 Daniel Jacobowitz <drow@mvista.com>
2703
2704 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2705 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2706 (lin_lwp_wait): Likewise. Update comments.
2707 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2708 (pull_pid_from_list, linux_record_stopped_pid): New.
2709
07d8f827
SC
27102003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2711
2712 * ada-lang.c (scan_discrim_bound): Name first argument.
2713 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2714 declared by ALL_BLOCK_SYMBOLS.
2715
7cb47b14
SC
27162003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2717
2718 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2719 ("regcache.h"): Include it.
2720 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2721
6ad8ae5c
DJ
27222003-06-17 Daniel Jacobowitz <drow@mvista.com>
2723
2724 * NEWS: Mention gdbserver detach change and "disconnect" command.
2725 * infcmd.c (disconnect_command): New function.
2726 (_initialize_infcmd): Add ``disconnect'' command.
2727 * remote.c (remote_async_detach): Delete.
2728 (remote_detach): Merge remote_async_detach.
2729 (remote_disconnect): New.
2730 (init_remote_ops): Set to_disconnect.
2731 (init_remote_cisco_ops): Likewise.
2732 (init_remote_async_ops): Likewise. Use remote_detach.
2733 * target.c (cleanup_target): Default to_disconnect.
2734 (update_current_target): Inherit to_disconnect.
2735 (target_disconnect, debug_to_disconnect): New functions.
2736 (setup_target_debug): Set to_disconnect.
2737 * target.h (struct target_ops): Add to_disconnect.
2738 (target_disconnect): Add prototype.
2739
687595f9
DJ
27402003-06-17 Daniel Jacobowitz <drow@mvista.com>
2741
2742 * breakpoint.c (insert_catchpoint): New function.
2743 (insert_breakpoints): Use catch_exceptions to call
2744 insert_catchpoint. Disable catchpoints if they fail to insert.
2745
29239a8f
DJ
27462003-06-17 Daniel Jacobowitz <drow@mvista.com>
2747
2748 * symfile.c (reread_symbols): Clear sym_private.
2749
2cdf3c63
AC
27502003-06-17 Andrew Cagney <cagney@redhat.com>
2751
2752 * trad-frame.h (struct frame_info): Add opaque declaration.
2753 * remote-fileio.h (struct cmd_list_element): Add opaque
2754 declaration.
2755 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2756 comments.
2757
cf0e1e0d
DJ
27582003-06-17 Daniel Jacobowitz <drow@mvista.com>
2759
2760 * remote.c (remote_prepare_to_store): Replace call to
2761 deprecated_read_register_bytes with multiple regcache_raw_read
2762 calls.
2763
192cdb19
KW
27642003-06-17 Kris Warkentin <kewarken@qnx.com>
2765
2766 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2767 (nto_find_and_open_solib): Likewise.
2768 (nto_init_solib_absolute_prefix): Likewise.
2769 (_initialize_nto_tdep): Fix indentation.
2770
89929b45
KW
27712003-06-17 Kris Warkentin <kewarken@qnx.com>
2772
2773 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2774
46019f27
KW
27752003-06-17 Kris Warkentin <kewarken@qnx.com>
2776
2777 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2778
1a38736e
JB
27792003-06-17 Jim Blandy <jimb@redhat.com>
2780
2781 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2782
3605c34a
TR
27832003-06-16 Theodore A. Roth <troth@openavr.org>
2784
2785 * avr-tdep.c (avr_extract_return_value): New function.
2786 (avr_gdbarch_init): Set extract_return_value method.
2787
870b3035
AC
27882003-06-16 Andrew Cagney <cagney@redhat.com>
2789
2790 * frame.h (deprecated_get_next_frame_hack): Declare.
2791 * frame.c (legacy_saved_regs_prev_register): Only require
2792 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2793 there are always saved regs.
2794 (deprecated_generic_get_saved_register): Do not require
2795 DEPRECATED_FRAME_INIT_SAVED_REGS.
2796 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2797 use frame ID unwind instead.
2798 (deprecated_get_next_frame_hack): New function.
2799
63d47a7d
CV
28002003-06-16 Corinna Vinschen <vinschen@redhat.com>
2801
2802 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2803 (h8300_push_dummy_call): ...this function. Some minor optimization.
2804 (h8300_push_return_address): Remove.
2805 (h8300_gdbarch_init): Remove calls to
2806 set_gdbarch_deprecated_dummy_write_sp,
2807 set_gdbarch_deprecated_push_arguments and
2808 set_gdbarch_deprecated_push_return_address.
2809 Add call to set_gdbarch_push_dummy_call.
2810
4bb1dc5e
CV
28112003-06-16 Corinna Vinschen <vinschen@redhat.com>
2812
2813 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2814 (E_PSEUDO_EXR_REGNUM): Ditto.
2815 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2816 registers into safe registers.
4bb1dc5e
CV
2817 (h8300_skip_prologue): Check for stm instruction to push registers
2818 used for register variables onto stack.
2819 (gdb_print_insn_h8300): Remove.
2820 (h8300_examine_prologue): Add a comment.
2821 (h8300_register_name): Take pseudo registers into account.
2822 (h8300s_register_name): Ditto.
2823 (h8300sx_register_name): Ditto.
2824 (h8300_print_register): Ditto.
2825 (h8300_print_registers_info): Define "nice" printing order.
2826 (h8300_saved_pc_after_call): Take pseudo registers into account.
2827 (h8300_register_type): Ditto. Return type used for remote connection
2828 when requesting real CCR or EXR register, return actual type when
2829 requesting pseudo CCR or EXR.
2830 (h8300_pseudo_register_read): New function.
2831 (h8300_pseudo_register_write): Ditto.
2832 (h8300_dbg_reg_to_regnum): Ditto.
2833 (h8300s_dbg_reg_to_regnum): Ditto.
2834 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2835 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2836 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2837 set_gdbarch_print_insn architecture dependent.
2838 Call set_gdbarch_pseudo_register_read and
2839 set_gdbarch_pseudo_register_write.
2840 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2841
a59fe496
AC
28422003-06-16 Andrew Cagney <cagney@redhat.com>
2843
2844 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2845 * gdbarch.h, gdbarch.c: Re-generate.
2846 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2847 * s390-tdep.c (s390_gdbarch_init): Update.
2848 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2849 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2850 * mips-tdep.c (mips_gdbarch_init): Update.
2851 * mcore-tdep.c (mcore_gdbarch_init): Update.
2852 * cris-tdep.c (cris_gdbarch_init): Update.
2853 * infcall.c (call_function_by_hand): Update.
2854 * ia64-tdep.c (ia64_push_arguments): Update comment.
2855 * frame.c (legacy_get_prev_frame): Do not assume
2856 SAVE_DUMMY_FRAME_TOS_P.
2857 * dummy-frame.c (find_dummy_frame): Update comment.
2858
6f4e5a41
AC
28592003-06-16 Andrew Cagney <cagney@redhat.com>
2860
2861 * regcache.c (do_cooked_read): Do not use register_valid_p.
2862
72fab697
TR
28632003-06-15 Theodore A. Roth <troth@openavr.org>
2864
2865 * avr-tdep.c (avr_register_type): Remove a blank line.
2866 (avr_scan_prologue): Correct some comments.
2867
e3d8b004
TR
28682003-06-15 Theodore A. Roth <troth@openavr.org>
2869
2870 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2871 prologue types.
8ffd9b1b 2872 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
2873 option.
2874 Add code to scan -mcall-prologues for mega devices.
2875
866b76ea
TR
28762003-06-15 Theodore A. Roth <troth@openavr.org>
2877
2878 * avr-tdep.c (avr_register_byte): Delete function.
2879 (avr_register_raw_size): Delete function.
2880 (avr_register_virtual_size): Delete function.
2881 (avr_register_virtual_type): Delete function.
2882 (avr_register_type): New function.
2883 (avr_address_to_pointer): Remove unused code.
2884 (avr_read_fp): Need to read FP as two separate bytes due to change to
2885 avr_register_type() usage.
2886 (avr_gdbarch_init): Don't set deprecated_register_size.
2887 Don't set deprecated_register_bytes.
2888 Don't set deprecated_register_byte.
2889 Don't set deprecated_register_raw_size.
2890 Don't set deprecated_max_register_raw_size.
2891 Don't set deprecated_register_virtual_size.
2892 Don't set deprecated_max_register_virtual_size.
2893 Don't set deprecated_register_virtual_type.
2894 Set register_type method.
2895
3993f6b1
DJ
28962003-06-15 Daniel Jacobowitz <drow@mvista.com>
2897
2898 * Makefile.in (linux-nat.o): Add rule.
2899 * linux-nat.c: New file.
2900 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2901 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2902 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2903 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2904 * config/arm/linux.mh (NATDEPFILES): Likewise.
2905 * config/i386/linux.mh (NATDEPFILES): Likewise.
2906 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2907 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2908 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2909 * config/mips/linux.mh (NATDEPFILES): Likewise.
2910 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2911 * config/s390/s390.mh (NATDEPFILES): Likewise.
2912 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2913
786a90bb
MK
29142003-06-15 Mark Kettenis <kettenis@gnu.org>
2915
2916 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2917 replace out-of-date comment.
2918
3bd3f01e
AC
29192003-06-15 Andrew Cagney <cagney@redhat.com>
2920
2921 * rdi-share/host.h (Fail): Change to a varargs function.
2922 * remote-rdi.c (Fail): Update.
8ffd9b1b 2923
de5b9bb9
MK
29242003-06-15 Mark Kettenis <kettenis@gnu.org>
2925
2926 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2927 (i386_convert_register_p, i386_register_to_value,
2928 i386_register_from_value): Handle types longer than 8 bytes.
2929
d532c08f
MK
29302003-06-15 Mark Kettenis <kettenis@gnu.org>
2931
2932 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2933 Move floating-point code to new function in i387-tdep.c.
2934 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2935 New functions containing code moved here from i386-tdep.c.
2936 * i387-tdep.h: Add opaque declaration for `struct type'.
2937 (i387_register_to_value, i387_value_to_register): New prototypes.
2938 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2939 (x86_64_init_abi): Set convert_register_p, register_to_value and
2940 value_to_register here.
8ffd9b1b 2941
42c466d7
AC
29422003-06-14 Andrew Cagney <cagney@redhat.com>
2943
2944 * mips-tdep.c (mips_register_to_value): Make static.
2945 (mips_value_to_register): Make static.
2946 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2947 * ia64-tdep.c (ia64_register_raw_size): Make static.
2948 (ia64_register_virtual_size): Make static.
2949 (ia64_register_byte): Make static.
2950 * i387-tdep.c: Include "i387-tdep.h".
2951 (print_387_control_word): Delete function.
2952 (print_387_status_word): Delete function.
2953 (print_387_status_bits): Delete function.
2954 (print_387_control_bits): Delete function.
2955 * Makefile.in (i387-tdep.o): Update dependencies.
2956 * rdi-share/host.h (Fail): Declare.
2957 * remote-rdi.c (Fail): Update to match declaration.
2958
2a9cda49
AC
29592003-06-14 Andrew Cagney <cagney@redhat.com>
2960
2961 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2962 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2963 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2964 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2965 * README: Delete reference to remote-array.
2966 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2967 (remote-array.o): Delete target.
2968 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2969 * remote-array.c: Delete file.
2970
ff2e87ac
AC
29712003-06-14 Andrew Cagney <cagney@redhat.com>
2972 Mark Kettenis <kettenis@gnu.org>
2973
2974 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2975 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2976 parameter with "frame".
2977 * gdbarch.h, gdbarch.c: Re-generate.
2978 * frame.h (put_frame_register): Declare.
2979 * frame.c (put_frame_register): New function.
2980 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2981 (legacy_register_to_value): Rewrite, use "frame" to get the
2982 register value.
2983 (legacy_value_to_register): Rewrite, use "frame" to find the
2984 register's location before storing.
2985 * arch-utils.h (legacy_convert_register_p): Update.
2986 (legacy_register_to_value, legacy_value_to_register): Update.
2987 * findvar.c (value_from_register): Rewrite, eliminate use of
2988 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2989 "frame" to REGISTER_TO_VALUE.
2990 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2991 lval_reg_frame_relative + lval_register branch of the switch. Do
2992 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2993 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2994 I386_EDI_REGNUM): New defines.
2995 (i386_next_regnum, i386_convert_register_p,
2996 i386_register_to_value, i386_value_to_register): New functions.
2997 (i386_register_convertible, i386_register_convert_to_virtual,
2998 i386_convert_to_raw): Remove functions.
2999 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3000 value_to_register instead of register_convertible,
3001 register_convert_to_virtual and register_convert_to_raw.
3002 * mips-tdep.c (mips_convert_register_p): New function.
3003 (mips_value_to_register): Replace mips_register_convert_from_type.
3004 (mips_register_to_value): Replace mips_register_convert_to_type.
3005 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3006 register_to_value.
3007 * alpha-tdep.c (alpha_convert_register_p): Update.
3008 (alpha_value_to_register): Update, store the register.
3009 (alpha_register_to_value): Update, fetch the register.
3010
98be1e77
TR
30112003-06-14 Theodore A. Roth <troth@openavr.org>
3012
3013 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3014 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3015 Don't set deprecated_call_dummy_words.
3016 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3017 Don't set remote_translate_xfer_address.
3018 (avr_io_reg_read_command): Remove commented out debug printf.
3019 Wrap a long line.
3020
57bc6122
TR
30212003-06-14 Theodore A. Roth <troth@openavr.org>
3022
3023 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3024 causes gdb to seg fault.
3025
eb01fc62
DJ
30262003-06-14 Daniel Jacobowitz <drow@mvista.com>
3027
3028 * sparc-nat.c (fetch_inferior_registers): Correct
3029 a reference to "registers".
3030
3b3e6bee
DJ
30312003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3032
3033 * Makefile.in (exc_request_U_h): Define
3034 (exc_request_S_h): Likewise.
3035 (msg_reply_S_h): Likewise.
3036 (msg_U_h): Likewise.
3037 (notify_S_h): Likewise.
3038 (process_reply_S_h): Likewise.
3039 (gnu-nat.o): Depend on gdb_obstack_h
3040 * gnu-nat.c: Include "gdb_obstack.h".
3041
b8de8283
AC
30422003-06-13 Andrew Cagney <cagney@redhat.com>
3043
3044 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3045 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3046
f3be58bc
AC
30472003-06-13 Andrew Cagney <cagney@redhat.com>
3048
3049 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3050 when deprecated REGISTER macros can be deleted.
3051 * gdbarch.h, gdbarch.c: Re-generate.
3052
4c0122c8
JB
30532003-06-13 Jim Blandy <jimb@redhat.com>
3054
3055 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3056 Linux entry point symbols for _dl_debug_state, too.
3057
3e210248
AC
30582003-06-13 Andrew Cagney <cagney@redhat.com>
3059
3060 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3061 available, do not use the FP register, and always save the TOS.
3062 * dummy-frame.c (dummy_frame_this_id): Do not assert
3063 SAVE_DUMMY_FRAME_TOS.
3064 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3065 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3066 (i386_push_dummy_call): Add 8 to the returned SP.
3067 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3068 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3069 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3070 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3071 (x86_64_push_dummy_call): Return "sp + 16".
3072 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3073 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3074 save_dummy_frame_tos.
3075
0b65af49
JB
30762003-06-13 Jim Blandy <jimb@redhat.com>
3077
3078 * frv-tdep.c (frv_use_struct_convention): Delete static
3079 declaration for function deleted in my change of 2003-06-12.
3080
4ea2465e
TR
30812003-06-13 Theodore A. Roth <troth@openavr.org>
3082
3083 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3084 (avr_pointer_to_address): Shift code addrs left 1 bit.
3085 (avr_convert_from_func_ptr_addr): Delete function since operation is
3086 better handled by avr_address_to_pointer and avr_pointer_to_address.
3087 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3088
1581182a
MK
30892003-06-13 Mark Kettenis <kettenis@gnu.org>
3090
3091 From Kelley Cook <kelleycook@wideopenwest.com>:
3092 * configure.host: Accept i[34567]86 variants.
3093 * configure.tgt: Likewise.
3094 * nlm/configure.in: Likewise.
3095 * nlm/configure: Regenerated.
3096
7aa1783e
RE
30972003-06-13 Richard Earnshaw <rearnsha@arm.com>
3098
3099 * arm-tdep.c (solib-svr4.h): Dont' include it.
3100 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3101 * arm-linux-tdep.c: ... here. Make static.
3102 (arm_linux_init_abi): Register it.
3103 (solib-svr4.h): Include it.
3104 * Makefile.in: Update dependencies.
3105 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3106 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3107
0261a0d0
CV
31082003-06-13 Corinna Vinschen <vinschen@redhat.com>
3109
3110 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3111 indicate registers used for return values.
3112 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3113 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3114 members.
3115 (h8300_init_extra_frame_info): Ditto.
3116 (h8300_frame_locals_address): Removed.
3117 (h8300_frame_args_address): Removed.
3118 (h8300_extract_return_value): Use new regcache structure. Only care
3119 for 16 bit CPUs.
3120 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3121 (h8300_store_return_value): Use new regcache structure. Only care
3122 for 16 bit CPUs.
3123 (h8300h_store_return_value): Same function for 32 bit CPUs.
3124 (h8300_store_struct_return): Removed.
3125 (h8300_extract_struct_value_address): Use new regcache structure.
3126 (h8300h_extract_struct_value_address): Removed.
3127 (h8300_push_dummy_code): New function.
3128 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3129 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3130 set_gdbarch_store_return_value architecture dependent.
3131 Call set_gdbarch_push_dummy_code and
3132 set_gdbarch_extract_struct_value_address.
3133 Remove calls to set_gdbarch_frame_args_address,
3134 set_gdbarch_frame_locals_address,
3135 set_gdbarch_deprecated_store_struct_return,
3136 set_gdbarch_deprecated_extract_return_value,
3137 set_gdbarch_deprecated_extract_struct_value_address,
3138 set_gdbarch_deprecated_call_dummy_words and
3139 set_gdbarch_deprecated_sizeof_call_dummy_words.
3140
055c394a
CV
31412003-06-13 Corinna Vinschen <vinschen@redhat.com>
3142
3143 * h8300-tdep.c (h8300_register_byte): Remove.
3144 (h8300h_register_byte): Remove.
3145 (h8300_register_virtual_type): Remove. Substitute by...
3146 (h8300_register_type): New function.
3147 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3148 (h8300h_extract_struct_value_address): Ditto.
3149 (h8300_gdbarch_init): Drop calls to
3150 set_gdbarch_deprecated_register_byte and
3151 set_gdbarch_deprecated_register_virtual_type.
3152 Add call to set_gdbarch_register_type.
3153
9c04cab7
AC
31542003-06-13 Andrew Cagney <cagney@redhat.com>
3155
3156 * gdbarch.sh: Update comments on registers.
3157 (deprecated_register_byte): Rename register_byte.
3158 (deprecated_register_raw_size): Rename register_raw_size.
3159 (deprecated_register_virtual_size): Rename register_virtual_size.
3160 (deprecated_register_virtual_type): Rename register_virtual_type.
3161 * gdbarch.h, gdbarch.c: Re-generate.
3162 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3163 * vax-tdep.c (vax_gdbarch_init): Update.
3164 * v850-tdep.c (v850_gdbarch_init): Update.
3165 * sparc-tdep.c (sparc_gdbarch_init): Update.
3166 * sh-tdep.c (sh_gdbarch_init): Update.
3167 * s390-tdep.c (s390_gdbarch_init): Update.
3168 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3169 * ns32k-tdep.c: Update.
3170 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3171 * mips-tdep.c (mips_gdbarch_init): Update.
3172 * mcore-tdep.c (mcore_gdbarch_init): Update.
3173 * m68k-tdep.c (m68k_gdbarch_init): Update.
3174 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3175 * ia64-tdep.c (ia64_gdbarch_init): Update.
3176 * hppa-tdep.c (hppa_gdbarch_init): Update.
3177 * h8300-tdep.c (h8300_gdbarch_init): Update.
3178 * frv-tdep.c (frv_gdbarch_init): Update.
3179 * cris-tdep.c (cris_gdbarch_init): Update.
3180 * avr-tdep.c (avr_gdbarch_init): Update.
3181 * alpha-tdep.c (alpha_gdbarch_init): Update.
3182 * arm-tdep.c (arm_gdbarch_init): Update.
3183
b060cbea
AC
31842003-06-13 Andrew Cagney <cagney@redhat.com>
3185
3186 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3187 mips_o32_use_struct_convention with always_use_struct_convention.
3188
0fc9922a
DC
31892003-06-12 David Carlton <carlton@kealia.com>
3190
3191 * cp-namespace.c (cp_set_block_scope): Comment out
3192 processing_has_namespace_info branch.
3193
1fd35568
JB
31942003-06-12 Jim Blandy <jimb@redhat.com>
3195
f470a70a
JB
3196 Recognize and skip 64-bit PowerPC Linux linkage functions.
3197 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3198 insn_pattern, insns_match_pattern, d_field, ds_field): New
3199 functions, macros, and types for working with PPC instructions.
3200 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3201 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3202 ppc64_skip_trampoline_code): New functions, variables, and macros
3203 for recognizing and skipping linkage functions.
3204 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3205 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3206
49ff75ad
JB
3207 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3208 register offsets for both the 32- and 64-bit interfaces.
3209
bd918c83
JB
3210 Actually finish the job started by my change of 2003-05-29.
3211 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3212 other #definition of this.
3213 (ppc_linux_skip_trampoline_code): Remove declaration.
3214 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3215 static.
3216 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3217 method for GDBARCH.
3218
3219 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3220 'long' on ppc64-*-linux*.
3221
f8c59253
JB
3222 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3223 isn't #defined, assume the register doesn't exist: act as if
3224 tdep->ppc_mq_regnum were -1.
3225
8fbb30b1
JB
3226 * configure.host, configure.tgt: Add entries for
3227 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3228 powerpc/linux.mt.
3229 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3230 New files.
3231
1fd35568
JB
3232 * arch-utils.c (always_use_struct_convention): New function.
3233 * arch-utils.h (always_use_struct_convention): New prototype.
3234 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3235 (alpha_gdbarch_init): Register always_use_struct_convention,
3236 instead of alpha_use_struct_convention.
3237 * cris-tdep.c (cris_use_struct_convention): Delete.
3238 (cris_gdbarch_init): Register always_use_struct_convention,
3239 instead of cris_use_struct_convention.
3240 * frv-tdep.c (frv_use_struct_convention): Delete.
3241 (frv_gdbarch_init): Register always_use_struct_convention,
3242 instead of frv_use_struct_convention.
3243 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3244 (h8300_gdbarch_init): Register always_use_struct_convention,
3245 instead of h8300_use_struct_convention.
e3305dd9 3246 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3247 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3248 instead of mips_o32_use_struct_convention.
3249
e14e6e9c
AC
32502003-06-12 Andrew Cagney <cagney@redhat.com>
3251
3252 * wince.c: Include "mips-tdep.h".
3253 * mips-tdep.h (mips_next_pc): Declare.
3254 * mcore-tdep.c: Make more local functions static.
3255 * Makefile.in (wince.o): Update dependencies.
3256
2335f48e
DC
32572003-06-12 David Carlton <carlton@kealia.com>
3258
3259 * symtab.c (lookup_symbol_aux_minsyms): Replace
3260 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3261 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3262 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3263 SYMBOL_NATURAL_NAME.
3264
f70a7d61
AS
32652003-06-12 Andreas Schwab <schwab@suse.de>
3266
3267 * Makefile.in (tuiDisassem.o): Update dependencies.
3268
b6429628
DC
32692003-06-12 David Carlton <carlton@bactrian.org>
3270
3271 * symtab.h: Delete declaration of make_symbol_overload_list.
3272 Add declaration of lookup_partial_symbol.
3273 * symtab.c (remove_params): Move to cp-support.c.
3274 (overload_list_add_symbol, make_symbol_overload_list)
3275 (sym_return_val_size, sym_return_val_index): Ditto.
3276 (lookup_partial_symbol): Make extern.
3277 * cp-support.h: Add declaration of make_symbol_overload_list.
3278 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3279 symtab.h, and block.h.
3280 (remove_params): Move here from symtab.c.
3281 (overload_list_add_symbol, make_symbol_overload_list)
3282 (sym_return_val_size, sym_return_val_index): Ditto.
3283 * valops.c: Include cp-support.h.
3284 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3285 frame_h, and block_h.
3286 (valops.o): Depend on cp_support_h.
3287
084edea5
CV
32882003-06-12 Corinna Vinschen <vinschen@redhat.com>
3289
3290 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3291 substitute by NUM_REGS throughout.
3292 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3293 (h8300s_register_name): New function for H8S registers.
3294 (h8300sx_register_name): Ditto for H8SX registers.
3295 (h8300_print_register): Revise register printing, avoid depending
3296 on 32 bit long.
0261a0d0 3297 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3298 (h8300h_register_byte): New function for any other architecture.
3299 (h8300_register_raw_size): Remove.
3300 (h8300_register_virtual_type): Revise to return actually useful
3301 type.
3302 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3303 (h8300h_extract_struct_value_address): New function for any other
3304 architecture.
3305 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3306 set_gdbarch_register_name, set_gdbarch_register_byte,
3307 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3308 Remove calls to set_gdbarch_deprecated_register_size,
3309 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3310 set_gdbarch_deprecated_max_register_raw_size,
3311 set_gdbarch_register_virtual_size and
3312 set_gdbarch_deprecated_max_register_virtual_size entirely.
3313 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3314 set_gdbarch_long_double_bit.
3315
06194148
JJ
33162003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3317
8ffd9b1b
AJ
3318 * doublest.c (convert_doublest_to_floatformat): When dealing
3319 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3320 processing a full 32 bits of mantissa.
3321
de4f826b
DC
33222003-06-11 David Carlton <carlton@bactrian.org>
3323
3324 * dictionary.h: New.
3325 * dictionary.c: New.
3326 * block.h: Add opaque declaration for struct dictionary.
3327 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3328 'sym' members.
3329 (BLOCK_DICT): New macro.
3330 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3331 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3332 BLOCK_SHOULD_SORT.
3333 (ALL_BLOCK_SYMBOLS): Update definition.
3334 * Makefile.in (SFILES): Add dictionary.c.
3335 (dictionary_h): New.
3336 (COMMON_OBS): Add dictionary.o.
3337 (dictionary.o): New.
3338 (ada-lang.o): Depend on dictionary_h.
3339 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3340 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3341 (mi-cmd-stack.o): Ditto.
3342 (gdbtk-cmds.o): Update dependencies.
3343 (gdbtk-stack.o): Ditto.
3344 * ada-lang.c: Include dictionary.h.
3345 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3346 (fill_in_ada_prototype, debug_print_block): Ditto.
3347 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3348 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3349 'is_sorted'.
3350 * mdebugread.c: Include dictionary.h.
3351 (struct parse_stack): Delete 'maxsyms' member.
3352 (parse_symbol): Update calls to new_block. Delete calls to
3353 shrink_block. Use dictionary methods.
3354 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3355 Update calls to new_symtab. Don't maintain maxsyms data.
3356 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3357 (add_symbol): Just call dict_add_symbol.
3358 (new_symtab): Delete 'maxsyms' argument.
3359 (new_symtab): Update calls to new_block.
3360 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3361 (shrink_block): Delete function.
3362 (fixup_sigtramp): Update call to new_block. Add symbol via
3363 dict_add_symbol.
3364 * jv-lang.c: Include dictionary.h.
3365 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3366 appropriately. Set class_symtab->free_func. Make sure the
3367 blockvector is big enough to hold two blocks.
3368 (add_class_symtab_symbol): Use dictionary methods.
3369 (free_class_block): New function.
3370 (type_from_class): Replace explicit iteration by
3371 ALL_BLOCK_SYMBOLS.
3372 * symtab.h (struct symtab): Replace 'free_ptr' method by
3373 'free_func'.
3374 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3375 sort_symtab_syms.
3376 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3377 sort_symtab_syms.
3378 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3379 Include dictionary.h.
3380 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3381 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3382 sort_symtab_syms.
3383 * objfiles.c: Include dictionary.h.
3384 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3385 * buildsym.c: Include dictionary.h.
3386 (finish_block): Use dictionary methods.
3387 (end_symtab): Set free_func to NULL, not free_ptr.
3388 * tracepoint.c: Include dictionary.h.
3389 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3390 (scope_info): Ditto.
3391 * stack.c: Include dictionary.h.
3392 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3393 (print_block_frame_labels, print_frame_arg_vars)
3394 (print_frame_args): Ditto.
3395 * symmisc.c (free_symtab_block): Use dictionary methods.
3396 (dump_symtab): Ditto.
3397 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3398 Include dictionary.h.
3399 * symfile.h: Delete declarations of sort_block_syms,
3400 sort_symtab_syms.
3401 * symfile.c (sort_block_syms): Delete.
3402 (sort_symtab_syms): Delete.
3403 * symtab.c: Include dictionary.h.
3404 (lookup_block_symbol): Use dictionary iterators.
3405 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3406 (search_symbols, make_symbol_completion_list): Ditto.
3407 (make_symbol_overload_list): Ditto.
3408 * valops.c (value_of_local): Use dict_empty.
3409 Include dictionary.h.
3410
a31f978c
JB
34112003-06-11 J. Brobecker <brobecker@gnat.com>
3412
3413 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3414
526e70c0
DC
34152003-06-11 David Carlton <carlton@bactrian.org>
3416
3417 * block.h (BLOCK_SHOULD_SORT): Delete.
3418 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3419 blocks.
3420 * ada-lang.c (ada_add_block_symbols): Ditto.
3421 * symfile.c (sort_block_syms): Delete.
3422 (sort_symtab_syms): Ditto.
3423 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3424 declarations.
3425 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3426 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3427 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3428 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3429 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3430 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3431 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3432
33c08150
JJ
34332003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3434
8ffd9b1b 3435 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3436 bits to 128.
3437
781a750d
AC
34382003-06-11 Andrew Cagney <cagney@redhat.com>
3439
3440 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3441 REGISTER_CONVERTIBLE.
3442 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3443 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3444 * gdbarch.h, gdbarch.c: Re-generate.
3445 * arch-utils.h (deprecated_register_convertible_not): Rename
3446 generic_register_convertible_not.
3447 * arch-utils.c (deprecated_register_convertible_not): Rename
3448 generic_register_convertible.
3449 (legacy_convert_register_p, legacy_register_to_value): Update.
3450 * sh-tdep.c (sh64_push_arguments): Update.
3451 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3452 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3453 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3454 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3455 * arch-utils.c (legacy_value_to_register): Update.
3456 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3457 (rs6000_register_convert_to_raw): Make parameter "from" const.
3458 * mips-tdep.c (mips_gdbarch_init): Update.
3459 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3460 * infcmd.c (default_print_registers_info): Update.
3461 * ia64-tdep.c (ia64_gdbarch_init): Update.
3462 (ia64_register_convert_to_raw): Make parameter "from" const.
3463 * i386-tdep.c (i386_gdbarch_init): Update.
3464 (i386_register_convert_to_raw): Update.
3465
cd90e54f
AC
34662003-06-11 Andrew Cagney <cagney@redhat.com>
3467
3468 * remote-fileio.c: Include "remote-fileio.h".
3469 * Makefile.in (remote-fileio.o): Update dependencies.
3470 (remote_fileio_h): Fix typo.
3471
a78f21af
AC
34722003-06-11 Andrew Cagney <cagney@redhat.com>
3473
3474 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3475 (xstormy16_save_dummy_frame_tos): Make static.
3476 (_initialize_xstormy16_tdep): Add declaration.
3477 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3478 * v850-tdep.c: Make local functions static.
3479 (_initialize_v850_tdep): Add declaration.
3480 * sparc-tdep.c: Make local functions static.
3481 (_initialize_sparc_tdep): Add declaration.
3482 * sh-tdep.c: Make local functions static.
3483 (_initialize_sh_tdep): Add declaration.
3484 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3485 * s390-tdep.c: Make local functions static.
3486 (_initialize_s390_tdep): Add declaration.
3487 * dbxread.c (find_stab_function_addr): Make static.
3488 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3489 * ocd.c (_initialize_remote_ocd): Add declaration.
3490 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3491 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3492 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3493 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3494 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3495 * remote-array.c (_initialize_array): Add declaration.
3496 (_initialize_remote_monitors): Add declaration.
3497 * remote-mips.c: Make local functions static.
3498 (_initialize_remote_mips): Add declaration.
3499 * mcore-tdep.c: Make all local functions static.
3500 (_initialize_mcore_tdep): Add declaration.
3501 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3502 * abug-rom.c (_initialize_abug_rom): Add declaration.
3503 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3504 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3505 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3506 * remote-est.c (_initialize_est): Add declaration.
3507 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3508 (m68hc11_call_dummy_address): Make static.
3509 * ia64-tdep.c: Make local functions static.
3510 (_initialize_ia64_tdep): Add declaration.
3511 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3512 * monitor.c (monitor_wait_filter): Make static.
3513 (_initialize_remote_monitors): Add declaration.
3514 * remote-hms.c (_initialize_remote_hms): Add declaration.
3515 * remote-e7000.c (fetch_regs_from_dump): Make static.
3516 (expect_n): Make static.
3517 (_initialize_remote_e7000): Add declaration.
3518 * ser-e7kpc.c: Always include "defs.h".
3519 (_initialize_ser_e7000pc): Add declaration.
3520 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3521 * cris-tdep.c: Make all but one function static.
3522 (_initialize_cris_tdep): Add declaration.
3523 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3524 * solib.c (update_solib_list): Make static.
3525 (_initialize_solib): Add declaration.
3526 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3527 (_initialize_avr_tdep): Add declaration.
3528 * remote-rdi.c (voiddummy): Make static.
3529 (_initialize_remote_rdi): Add declaration.
3530 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3531 * remote-rdp.c (send_rdp): Make static.
3532 (_initialize_remote_rdp): Add declaration.
3533 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3534
cbcdb1f5
CV
35352003-06-11 Corinna Vinschen <vinschen@redhat.com>
3536
3537 * remote-fileio.c: Make ari happy.
3538
a191ea8d
JB
35392003-06-10 J. Brobecker <brobecker@gnat.com>
3540
3541 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3542 fetching the trailing bytes of the buffer we are about to write.
3543
0ef75e11
AC
35442003-06-10 Andrew Cagney <cagney@redhat.com>
3545
3546 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3547 * Makefile.in (remote-fileio.o): Update dependencies.
3548 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3549 include <setjmp.h>, or <sys/types.h> conditional on USG.
3550 (remote_fio_jmp_buf): Delete global variable.
3551
449092f6 35522003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3553 Martin M. Hunt <hunt@redhat.com>
449092f6 3554
559fa028
AC
3555 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3556 (SFILES): Add remote-fileio.c.
3557 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3558 dependencies for building remote.o.
449092f6
CV
3559 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3560 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3561 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3562 static storage class.
3563 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3564 'F' packet.
3565 (_initialize_remote): Call initialize_remote_fileio().
3566 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3567 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3568 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3569 (captured_main): Initialize new ui_files.
3570 * ui-file.c: Add read and fgets input functions.
3571 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3572 (null_file_read): New function.
3573 (ui_file_read): New function.
3574 (set_ui_file_read): New function.
3575 (stdio_file_read): New function.
3576 * ui-file.h: New type ui_file_read_ftype.
3577 (set_ui_file_read): Declare.
3578 (ui_file_read): Declare.
3579
248de703
AC
35802003-06-09 Andrew Cagney <cagney@redhat.com>
3581
3582 * frame.h (deprecated_unwind_get_saved_register): Rename
3583 generic_unwind_get_saved_register, update comments.
3584 * mips-tdep.c (mips_get_saved_register): Update.
3585 * frame.c (deprecated_unwind_get_saved_register): Update.
3586
0ed8aa57
AC
35872003-06-09 Andrew Cagney <cagney@redhat.com>
3588
3589 * vax-tdep.c (vax_frame_locals_address): Delete function.
3590 (vax_gdbarch_init): Do not set frame_locals_address.
3591 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3592 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3593 * s390-tdep.c (s390_frame_args_address): Delete function.
3594 (s390_gdbarch_init): Do not set frame_args_address or
3595 frame_locals_address.
3596 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3597 (ns32k_gdbarch_init): Do not set frame_locals_address.
3598 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3599 (hppa_frame_locals_address): Delete function.
3600 (hppa_gdbarch_init): Do not set frame_args_address, or
3601 frame_locals_address.
3602 * arm-tdep.c (arm_frame_args_address): Delete.
3603 (arm_frame_locals_address): Delete.
3604 (arm_gdbarch_init): Do not set frame_args_address, or
3605 frame_locals_address.
3606
983a287a
AC
36072003-06-09 Andrew Cagney <cagney@redhat.com>
3608
3609 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3610 * gdbarch.h, gdbarch.c: Re-generate.
3611 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3612 * arch-utils.c (frame_num_args_unknown): Delete function.
3613 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3614 (frame_info): Use FRAME_NUM_ARGS_P.
3615 * arm-tdep.c (arm_frame_num_args): Delete function.
3616 (arm_gdbarch_init): Do not set frame_num_args.
3617 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3618 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3619 (hppa_gdbarch_init): Do not set frame_num_args.
3620 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3621 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3622 frame_num_args to default frame_num_args_unknown.
3623 * v850-tdep.c (v850_gdbarch_init): Ditto.
3624 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3625 * sh-tdep.c (sh_gdbarch_init): Ditto.
3626 * s390-tdep.c (s390_gdbarch_init): Ditto.
3627 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3628 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3629 * mips-tdep.c (mips_gdbarch_init): Ditto.
3630 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3631 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3632 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3633 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3634 * i386-tdep.c (i386_gdbarch_init): Ditto.
3635 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3636 * frv-tdep.c (frv_gdbarch_init): Ditto.
3637 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3638 * cris-tdep.c (cris_gdbarch_init): Ditto.
3639 * avr-tdep.c (avr_gdbarch_init): Ditto.
3640 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3641
8d3b0994
AC
36422003-06-09 Andrew Cagney <cagney@redhat.com>
3643
3644 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3645 (print_frame_args): Moved to "stack.c".
3646 * stack.c: Include "gdb_assert.h".
3647 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3648 (print_frame_args): Moved from "printcmd.c".
3649 * frame.h (print_frame_args): Delete declaration.
3650 * Makefile.in (stack.o): Update dependencies.
3651
25e3a86b
AC
36522003-06-08 Andrew Cagney <cagney@redhat.com>
3653
3654 * frame.c (get_prev_frame): Remove reference to
3655 frame_args_address_correct in comments.
3656 * frame-base.c (default_frame_args_address): Delete code
3657 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3658 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3659 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3660 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3661 (vax_frame_args_address_correct): Delete declaration.
3662
a9e5fdc2
AC
36632003-06-08 Andrew Cagney <cagney@redhat.com>
3664
3665 * gdbarch.sh (UNWIND_SP): Add.
3666 * gdbarch.h, gdbarch.c: Re-generate.
3667 * frame.c (frame_sp_unwind): New function.
3668 (get_frame_sp): New function.
3669 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3670 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3671 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3672 value.
3673 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3674 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3675
8983bd83
AC
36762003-06-08 Andrew Cagney <cagney@redhat.com>
3677
7fec2c59
AC
3678 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3679 REMOTE_BREAKPOINT.
3680 * remote.c: Update.
3681 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3682 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3683 * config/m68k/tm-sun3.h: Update.
3684 * config/m68k/tm-m68klynx.h: Update.
3685 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3686
8983bd83
AC
3687 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3688 trad_frame". Update comments.
3689 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3690 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3691 (trad_frame_register_value, trad_frame_prev_register): Update.
3692
b9362cc7
AC
36932003-06-08 Andrew Cagney <cagney@redhat.com>
3694
3695 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3696 from GCC's acinclude.m4.
3697 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3698 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3699 * main.c (error_init): Delete declaration.
3700 * defs.h (error_init): Declare.
3701 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3702 (rs6000_convert_from_func_ptr_addr): Make static.
3703 (_initialize_rs6000_tdep): Add declaration.
3704 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3705 (show_commands, set_verbose, show_history): Delete declaration.
3706 * top.h (set_verbose): Add declaration.
3707 (show_history, set_history, show_commands): Add declaration.
3708 (do_restore_instream_cleanup): Add declaration.
3709 * objc-lang.c (specialcmp): Make static.
3710 (print_object_command): Make static.
3711 (find_objc_msgsend): Make static.
3712 (find_objc_msgcall_submethod_helper): Make static.
3713 (find_objc_msgcall_submethod): Make static.
3714 (_initialize_objc_language): Add declaration.
3715 (find_implementation_from_class): Make static.
3716 (find_implementation): Make static.
3717 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3718 * objc-lang.h (lookup_struct_typedef): Add declaration.
3719 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3720 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3721 (do_restore_user_call_depth): Make static.
3722 (do_restore_instream_cleanup): Delete declaration.
3723 (dont_repeat): Delete declaration.
3724 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3725 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3726 * reggroups.c (_initialize_reggroup): Add declaration.
3727 * cp-support.c (_initialize_cp_support): Add declaration.
3728 * cp-abi.c (_initialize_cp_abi): Add declaration.
3729 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3730 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3731 (_initialize_gnu_v3_abi): Add declaration.
3732 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3733 (_initialize_gnu_v2_abi): Add declaration.
3734 * frame-base.c (_initialize_frame_base): Add declaration.
3735 * doublest.c (floatformat_from_length): Make static.
3736 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3737 * frame.c (create_sentinel_frame): Make static.
3738 (_initialize_frame): Add declaration.
3739 * top.c (do_catch_errors): Make static.
3740 (gdb_rl_operate_and_get_next_completion): Make static.
3741 * typeprint.c: Include "typeprint.h".
3742 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3743 (sentinel_frame_this_id): Make static.
3744 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3745 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3746 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3747 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3748 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3749 * maint.c (maintenance_print_architecture): Make static.
3750 * signals/signals.c (_initialize_signals): Add declaration.
3751 * std-regs.c (_initialize_frame_reg): Add declaration.
3752 * jv-exp.y (push_variable): ISO C definition.
3753 (push_qualified_expression_name): Ditto.
3754 * memattr.c (_initialize_mem): Add declaration.
3755 * remote.c (remote_check_watch_resources): Make static.
3756 (remote_stopped_by_watchpoint): Make static.
3757 (remote_stopped_data_address): Make static.
3758 * d10v-tdep.c (nr_dmap_regs): Make static.
3759 (a0_regnum): Make static.
3760 (d10v_frame_unwind_cache): Make static.
3761 (d10v_frame_p): Make static.
3762 * osabi.c (show_osabi): Make static.
3763 (_initialize_gdb_osabi): Add extern declaration.
3764 * gdbtypes.c (make_qualified_type): Make static.
3765 (safe_parse_type): Make static.
3766 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3767 * macrotab.c (macro_bcache_free): Make static.
3768 * interps.c (interp_set_quiet): Make static.
3769 (interpreter_exec_cmd): Make static.
3770 * stack.h (select_frame_command): New file.
3771 * stack.c: Include "stack.h".
3772 (select_frame_command_wrapper): Delete function.
3773 (select_frame_command): Make global.
3774 * infcall.c: Include "infcall.h".
3775 * linespec.c: Include "linespec.h".
3776 * symfile.c (sections_overlap): Make static.
3777 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3778 * charset.c (_initialize_charset): Add missing prototype.
3779 * regcache.c (init_legacy_regcache_descr): Make static.
3780 (do_regcache_xfree): Make static.
3781 (regcache_xfer_part): Make static.
3782 (_initialize_regcache): Add missing prototype.
3783 * breakpoint.c (parse_breakpoint_sals): Make static.
3784 (breakpoint_sals_to_pc): Make static.
3785 * interps.h (clear_interpreter_hooks): ISO C declaration.
3786 * Makefile.in (stack_h): Define.
3787 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3788 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3789
a0f267c7
AC
37902003-06-08 Andrew Cagney <cagney@redhat.com>
3791
3792 * Makefile.in (d10v-tdep.o): Update dependencies.
3793 (SFILES): Add trad-frame.c.
3794 (trad_frame_h): Define.
3795 (COMMON_OBS): Add trad-frame.o.
3796 (trad-frame.o): Specify dependencies.
3797 * d10v-tdep.c: Include "trad-frame.h".
3798 (saved_regs_unwinder): Delete function.
3799 (d10v_frame_prev_register): Use trad_frame_prev_register.
3800 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3801 trad_frame", delete "regs" and "prev_sp".
3802 (prologue_find_regs): Use trad-frame.
3803 * trad-frame.h, trad-frame.c: New files.
3804
4538b4f4
MK
38052003-06-08 Mark Kettenis <kettenis@gnu.org>
3806
3807 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3808
a0273b2f
AF
38092003-06-07 Adam Fedor <fedor@gnu.org>
3810
3811 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3812 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3813 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3814 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3815 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3816 Use it.
3817
3a6c3343
AC
38182003-06-07 Andrew Cagney <cagney@redhat.com>
3819
3820 * symfile.h: Re-indent, clean up comments.
3821
b46e02f6
AC
38222003-06-07 Andrew Cagney <cagney@redhat.com>
3823
3824 * inferior.h (deprecated_write_sp): Replace
3825 generic_target_write_sp.
3826 * regcache.c (deprecated_write_sp): Replace
3827 generic_target_write_sp.
3828 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3829 * vax-tdep.c (vax_gdbarch_init): Update.
3830 * v850-tdep.c (v850_gdbarch_init): Update.
3831 * sparc-tdep.c (sparc_gdbarch_init): Update.
3832 * sh-tdep.c (sh_gdbarch_init): Update.
3833 * s390-tdep.c (s390_gdbarch_init): Update.
3834 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3835 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3836 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3837 * mcore-tdep.c (mcore_gdbarch_init): Update.
3838 * m68k-tdep.c (m68k_gdbarch_init): Update.
3839 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3840 * ia64-tdep.c (ia64_gdbarch_init): Update.
3841 * h8300-tdep.c (h8300_gdbarch_init): Update.
3842 * frv-tdep.c (frv_gdbarch_init): Update.
3843 * cris-tdep.c (cris_gdbarch_init): Update.
3844 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3845
a42e117c
AC
38462003-06-07 Andrew Cagney <cagney@redhat.com>
3847
3848 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3849 Assert that PC_REGNUM is valid.
3850 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3851
bd1ce8ba
AC
38522003-06-07 Andrew Cagney <cagney@redhat.com>
3853
3854 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3855 * gdbarch.h, gdbarch.c: Regenerate.
3856 * mn10300-tdep.c: Include "gdb_assert.h".
3857 (mn10300_read_fp): New function.
3858 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3859 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3860 * ia64-tdep.c: Include "gdb_assert.h".
3861 (ia64_read_fp): New function.
3862 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3863 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3864 * regcache.c (generic_target_read_sp): Delete function.
3865 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3866 * inferior.h (generic_target_read_sp): Delete declaration.
3867 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3868 generic_target_read_sp.
3869 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3870 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3871 * sh-tdep.c (sh_gdbarch_init): Ditto.
3872 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3873 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3874
ec5cbaec
AC
38752003-06-07 Andrew Cagney <cagney@redhat.com>
3876
3877 * gdbarch.sh: Comment each field of startup_gdbarch.
3878 * gdbarch.h, gdbarch.c: Re-generate.
3879
cde9ea48
AC
38802003-06-07 Andrew Cagney <cagney@redhat.com>
3881
3882 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3883 * gdbarch.h, gdbarch.c: Re-generate.
3884 * regcache.c: Update comments on read_pc et.al.
3885 (generic_target_read_pc): Delete function.
3886 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3887 * inferior.h (generic_target_read_pc): Delete declaration.
3888 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3889 generic_target_read_pc.
3890 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3891 * sh-tdep.c (sh_gdbarch_init): Ditto.
3892 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 3894
9a90a780
AC
38952003-06-07 Andrew Cagney <cagney@redhat.com>
3896
3897 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3898 "index" with "special_local_sect". Use strcmp instead of STREQ.
3899 Append period to coments.
3900
a39a16c4
MM
39012003-06-06 Mark Mitchell <mark@codesourcery.com>
3902
3903 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3904 (elfstab_offset_sections): Likewise.
3905 * gdb-stabs.h (stab_section_info): Likewise.
3906 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3907 * objfiles.c (objfile_relocate): Likewise.
3908 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3909 * remote.c (get_offsets): Likewise.
3910 (remote_cisco_objfile_relocate): Likewise.
3911 * somread.c (som_symfile_offsets): Likewise.
3912 * symfile.c (alloc_section_addr_info): New function.
3913 (build_section_addr_info_from_section_tab): Use it.
3914 (free_section_addr_info): Adjust.
3915 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3916 (syms_from_objfile): Allocate local_addr dynamically.
3917 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3918 dynamically.
3919 (add_symbol_file_command): Allocate sect_opts dynamically.
3920 (reread_symbols): Avoid use of SECT_OFF_MAX.
3921 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3922 (alloc_section_addr_info): Declare it.
3923 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3924 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3925 dynamically.
3926 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 3927
20c6c2f8
AC
39282003-06-06 Andrew Cagney <cagney@redhat.com>
3929
3930 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3931 (d10v_frame_unwind_cache): Do not set "return_pc".
3932
884a26c8
MS
39332003-06-06 Michael Snyder <msnyder@redhat.com>
3934
3935 * h8300-tdep.c: Make tidy (long lines).
3936
088ce440
ML
39372003-06-06 Michal Ludvig <mludvig@suse.cz>
3938
8ffd9b1b 3939 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
3940 to regcache_collect().
3941
7d773d96
JB
39422003-06-05 J. Brobecker <brobecker@gnat.com>
3943
3944 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3945 pc_in_sigtramp multiarch method.
3946 (hppa_hpux_som_init_abi): Use it.
3947 (hppa_hpux_elf_init_abi): Likewise.
3948 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3949 macro has been multiarched.
3950 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3951 macro here, as hppa64 isn't multiarched yet.
3952
1df6926e
AC
39532003-06-05 Andrew Cagney <cagney@redhat.com>
3954
3955 * Makefile.in (value_h): Add $(frame_h).
3956 * value.h: Include "frame.h".
3957 (struct value): Replace "frame_addr" with "frame_id".
3958 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3959 * values.c (allocate_value): Use VALUE_FRAME_ID.
3960 (value_copy): Use VALUE_FRAME_ID.
3961 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3962 * valops.c (value_assign): Update. Use frame_find_by_id.
3963
6b53acc6
ML
39642003-06-05 Michal Ludvig <mludvig@suse.cz>
3965
3966 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3967 in each pass.
3968
4d9850d3
JJ
39692003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3970
3971 * thread-db.c (check_event): For create/death event breakpoints,
3972 loop through all messages to ensure that we read the message
3973 corresponding to the breakpoint we are at.
3974
8efca6ba
MS
39752003-06-04 Michael Snyder <msnyder@redhat.com>
3976
3977 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3978
0912c7f2
MK
39792003-06-04 Mark Kettenis <kettenis@gnu.org>
3980
3981 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3982 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3983 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3984 when handling .eh_frame sections.
3985
4e370325
JB
39862003-06-04 J. Brobecker <brobecker@gnat.com>
3987
3988 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3989 prepare_to_proceed procedure instead of the hppa-specific one.
3990 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3991
b757528f 39922003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 3993
b757528f
JJ
3994 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3995 * config.in: Regenerated.
3996 * configure.in: Add test for syscall function and check for
3997 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3998 * configure: Regenerated.
3999 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4000 <sys/syscall.h>.
4001 (kill_lwp): New function that uses tkill syscall or
4002 uses kill, depending on whether threading model is nptl or not.
4003 All callers of kill() changed to use kill_lwp().
4004 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4005 see if all threads have already exited in the nptl model.
4006 (stop_and_resume_callback): New callback function used by the
4007 lin_lwp_wait thread exit handling code.
4008 (stop_wait_callback): Check for threads already having exited and
4009 delete such threads fromt the lwp list when discovered.
4010 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4011
b757528f
JJ
4012 Roland McGrath <roland@redhat.com>
4013 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4014 nptl libthread_db.
4015
087779b1
RH
40162003-06-03 Richard Henderson <rth@redhat.com>
4017
b21fd293
RH
4018 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4019 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4020 (alpha_sigtramp_frame_prev_register): Likewise.
4021 (alpha_heuristic_frame_prev_register): Likewise.
4022 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4023
8ffd9b1b 4024 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4025 alpha-specific register id names.
4026 (alpha_mdebug_frame_unwind_cache): Likewise.
4027 (alpha_mdebug_frame_prev_register): Likewise.
4028
baa490c4
RH
40292003-06-03 Richard Henderson <rth@redhat.com>
4030
4031 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4032 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4033 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4034 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4035 unwind routines.
4036 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4037 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4038 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4039
4040 * alpha-linux-tdep.c: Remove unnecessary includes.
4041 * Makefile.in (alpha-linux-tdep.o): Update.
4042
40432003-06-03 Richard Henderson <rth@redhat.com>
4044
4045 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4046 (alphabsd_fill_fpreg): Likewise.
4047
f534e522
JB
40482003-06-03 J. Brobecker <brobecker@gnat.com>
4049
4050 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4051 references to struct frame_info fields by calls to the equivalent
4052 accessors. Necessary now that frame_info is opaque.
4053
4035536b
JB
40542003-06-03 J. Brobecker <brobecker@gnat.com>
4055
4056 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4057 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4058 structure, field no longer exists.
4059
0bd79c5c
JB
40602003-06-03 J. Brobecker <brobecker@gnat.com>
4061
4062 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4063 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4064
37bb6d9f
JB
40652003-06-03 J. Brobecker <brobecker@gnat.com>
4066
4067 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4068 references to struct frame_info fields by calls to the equivalent
4069 accessors. Necessary now that frame_info is opaque.
4070
852ee05c
JB
40712003-06-03 J. Brobecker <brobecker@gnat.com>
4072
4073 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4074 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4075 structure, field no longer exists.
4076
7d58c67d
TR
40772003-06-03 Theodore A. Roth <troth@openavr.org>
4078
8ffd9b1b 4079 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4080 accumulation of the size of all registers instead of blindly using
4081 DEPRECATED_REGISTER_BYTES.
4082
0a48e7e8
MS
40832003-06-03 Michael Snyder <msnyder@redhat.com>
4084
4085 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4086 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4087 for h8300sx.
4088
9798ab0d
JB
40892003-06-03 J. Brobecker <brobecker@gnat.com>
4090
4091 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4092 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4093
00b037e2
AC
40942003-06-03 Andrew Cagney <cagney@redhat.com>
4095
4096 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4097 (sparc_convert_to_raw): Delete function.
4098 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4099 register_convert_to_virtual.
4100
043b2f77
JJ
41012003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4102
4103 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4104 layer if not dealing with a statically-linked threaded program.
4105
f43caff8
KW
41062003-06-03 Kris Warkentin <kewarken@qnx.com>
4107
4108 * solib.c (solib_open): Update comment to reflect actual search order.
4109
ae1e7417
AC
41102003-06-03 Andrew Cagney <cagney@redhat.com>
4111
4112 * frame.c (get_frame_memory_signed): New function.
4113 (get_frame_memory, get_frame_memory_unsigned): New function.
4114 (get_frame_arch): New function.
4115 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4116 (get_frame_memory, get_frame_unsigned_memory): Declare.
4117 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4118 get_frame_memory_unsigned and get_frame_arch.
4119 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4120
cb123844
RG
41212003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4122
4123 * MAINTAINERS (write after approval): Add myself.
4124
1bb792e9
JB
41252003-06-03 Jim Blandy <jimb@redhat.com>
4126
4127 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4128 elements of gregset_t are 64 bits each, but access registers
4129 are still 32 bits, so they're packed two per gregset_t
4130 element. Unpack/pack them properly.
4131
aee8d8ba
DC
41322003-06-02 David Carlton <carlton@bactrian.org>
4133
4134 * linespec.c (find_methods): Break out code into
4135 add_matching_methods and add_constructors.
4136 (add_matching_methods): New.
4137 (add_constructors): Ditto.
4138
bf7488d2
AC
41392003-06-02 Andrew Cagney <cagney@redhat.com>
4140
bf7488d2
AC
4141 * sparc-tdep.c (sparc_print_registers): Delete call to
4142 REGISTER_CONVERTIBLE.
4143 (sparc_gdbarch_init): Do not set register_convertible.
4144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4145 * frv-tdep.c (frv_gdbarch_init): Ditto.
4146 * cris-tdep.c (cris_gdbarch_init): Ditto.
4147
adedef68
EZ
41482003-06-02 Elena Zannoni <ezannoni@redhat.com>
4149
8ffd9b1b 4150 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4151 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4152 (syms_from_objfile): Ditto.
4153
650fcc91
AS
41542003-06-03 Andreas Schwab <schwab@suse.de>
4155
4156 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4157 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4158
df4a182b
RH
41592003-06-02 Richard Henderson <rth@redhat.com>
4160
4161 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4162 a member of all_reggroup.
4163
c483c494
RH
41642003-06-02 Richard Henderson <rth@redhat.com>
4165
4166 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4167 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4168 (alpha_lds, alpha_sts): New.
4169 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4170 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4171 restructure and fail for type sizes other than 4 or 8.
4172 (alpha_value_to_register): Similarly.
4173 (alpha_extract_return_value): Use alpha_sts.
4174 (alpha_store_return_value): Use alpha_lds.
4175 (alpha_gdbarch_init): Update hooks.
4176
b38b6be2
RH
41772003-06-02 Richard Henderson <rth@redhat.com>
4178
4179 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4180 regnum identifiers.
4181 (alpha_sigtramp_register_address): Likewise.
4182
98a8e1e5
RH
41832003-06-02 Richard Henderson <rth@redhat.com>
4184
4185 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4186 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4187 * alpha-tdep.h: Declare them.
4188
4189 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4190 Remove zerobuf. Don't error on UNIQUE.
4191 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4192 (ALPHA_REGSET_UNIQUE): Provide default.
4193 (supply_gregset): Use alpha_supply_int_regs.
4194 (fill_gregset): Use alpha_fill_int_regs.
4195 (supply_fpregset): Use alpha_supply_fp_regs.
4196 (fill_fpregset): Use alpha_fill_fp_regs.
4197 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4198 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4199 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4200 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4201 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4202 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4203
67dfac52
RH
42042003-06-02 Richard Henderson <rth@redhat.com>
4205
f75d70cc
RH
4206 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4207
67dfac52
RH
4208 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4209 (alpha_store_return_value): Likewise.
4210
0cf566ec
DC
42112003-06-02 David Carlton <carlton@math.stanford.edu>
4212
4213 * block.c (contained_in): Add 'const' to arguments.
4214 (block_function): Ditto.
4215 * block.h: Update declarations for block_function and
4216 contained_in.
4217
cdef89d0
DC
42182003-06-02 David Carlton <carlton@math.stanford.edu>
4219
4220 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4221 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4222 * p-valprint.c (pascal_val_print): Ditto.
4223 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4224
72667056
RH
42252003-06-02 Richard Henderson <rth@redhat.com>
4226
98a8e1e5
RH
4227 * alpha-tdep.c (alpha_push_dummy_call): Use
4228 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4229
8ffd9b1b 4230 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4231 sign-extension of 32-bit values.
4232 (alpha_store_return_value): Similarly.
0ede8eca 4233
98a8e1e5
RH
4234 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4235 (alpha_extract_return_value): Likewise.
4236 (alpha_store_return_value): Likewise.
7b5e1cb3 4237
98a8e1e5
RH
4238 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4239 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4240
98a8e1e5
RH
4241 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4242 (alpha_extract_struct_value_address): Likewise.
4243 (alpha_store_return_value): Likewise.
4244 (alpha_store_struct_return): Remove.
4245 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4246
98a8e1e5
RH
4247 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4248 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4249 macros where appropriate.
4250 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4251 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4252
98a8e1e5
RH
4253 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4254 for SP, GP; void_func_ptr for PC; non-language-specific types
4255 for all others.
4256 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4257
6dd77b81
RH
42582003-06-02 Richard Henderson <rth@redhat.com>
4259
4260 * top.h (lim_at_start): Declare.
4261 * main.c (captured_main): Set it.
4262 * top.c (lim_at_start): Define.
4263 (command_loop): Use it instead of &environ.
4264 * event-top.c (command_handler): Likewise.
4265
f4dbdb54
JT
42662003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4267
4268 * mipsnbsd-tdep.c: Update copyright years.
4269 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4270
8f285956
RH
42712003-06-01 Richard Henderson <rth@redhat.com>
4272
98a8e1e5
RH
4273 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4274 (alpha-linux-tdep.o): Update dependencies.
4275 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4276 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4277
615967cb
RH
42782003-06-01 Richard Henderson <rth@redhat.com>
4279
98a8e1e5
RH
4280 * alpha-tdep.c (alpha_register_reggroup_p): New.
4281 (alpha_gdbarch_init): Register it.
615967cb 4282
b59661bd
AC
42832003-06-02 Andrew Cagney <cagney@redhat.com>
4284
4285 * dwarfread.c: Eliminate "register"
4286 (decode_die_type): Eliminate assignment within "if".
4287 (struct_type, decode_array_element_type): Ditto.
4288 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4289 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4290 (decode_modified_type, completedieinfo): Ditto.
4291 * block.c: Eliminate "register".
4292 (blockvector_for_pc_sect): Eliminate assignment within "if".
4293 * cp-support.h (struct symbol): Opaque declaration.
4294 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4295
5ef165c2
RH
42962003-06-01 Richard Henderson <rth@redhat.com>
4297
98a8e1e5
RH
4298 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4299 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4300
143985b7
AF
43012003-06-01 Adam Fedor <fedor@gnu.org>
4302
4303 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4304 * gdbarch.[ch]: Regenerate.
4305 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4306 (hppa_gdbarch_init): Set it in the gdbarch vector.
4307 * i386-tdep.c (i386_fetch_pointer_argument): New
4308 (i386_gdbarch_init): Set it into gdbarch.
4309 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4310 (rs6000_gdbarch_init): Set it in gdbarch.
4311 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4312 (sparc_gdbarch_init): Set it in gdbarch.
4313
ae0167b9
AC
43142003-06-01 Andrew Cagney <cagney@redhat.com>
4315
7c0b4a20
AC
4316 * defs.h (extract_address): Delete declaration.
4317 * findvar.c (extract_address): Delete function.
4318 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4319 extract_address with the inline equivalent,
4320 extract_unsigned_integer.
4321 (xstormy16_extract_struct_value_address): Ditto.
4322 (xstormy16_pointer_to_address): Ditto.
4323 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4324 * v850-tdep.c (v850_push_arguments): Ditto.
4325 (v850_extract_return_value): Ditto.
4326 (v850_extract_struct_value_address): Ditto.
4327 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4328 (sparcnbsd_get_longjmp_target_64): Ditto.
4329 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4330 (get_longjmp_target): Ditto.
4331 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4332 (sh64_extract_struct_value_address): Ditto.
4333 (sh_push_arguments): Ditto.
4334 (sh64_push_arguments): Ditto.
4335 * remote-vxsparc.c (vx_read_register): Ditto.
4336 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4337 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4338 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4339 * mipsv4-nat.c (get_longjmp_target): Ditto.
4340 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4341 * mips-nat.c (get_longjmp_target): Ditto.
4342 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4343 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4344 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4345 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4346 * irix5-nat.c (get_longjmp_target): Ditto.
4347 * irix4-nat.c (get_longjmp_target): Ditto.
4348 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4349 (ia64_push_arguments): Ditto.
4350 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4351 * h8300-tdep.c (h8300_push_arguments): Ditto.
4352 (h8300_store_return_value): Ditto.
4353 (h8300_extract_struct_value_address): Ditto.
4354 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4355 (frv_push_arguments): Ditto.
4356 * avr-tdep.c (avr_pointer_to_address): Ditto.
4357 (avr_push_arguments): Ditto.
4358 * arm-tdep.c (arm_push_dummy_call): Ditto.
4359 (arm_get_longjmp_target): Ditto.
4360 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4361 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4362 (alpha_get_longjmp_target): Ditto.
4363
ae0167b9
AC
4364 * solib-irix.c (extract_mips_address): Inline extract_address,
4365 replacing it with extract_signed_integer.
4366 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4367 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4368 (first_link_map_member, open_symbol_file_object): Ditto.
4369 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4370 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4371 (LM_NEXT, LM_NAME): Ditto.
4372
44d88583
RH
43732003-06-01 Richard Henderson <rth@redhat.com>
4374
98a8e1e5
RH
4375 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4376 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4377 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4378 (alpha_cannot_store_register): Likewise.
4379 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4380 * alpha-nat.c (supply_gregset): Likewise.
4381 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4382
310e9b6a
AC
43832003-06-01 Andrew Cagney <cagney@redhat.com>
4384
4385 * infcall.c (call_function_by_hand): Update comment on
4386 DEPRECATED_DUMMY_WRITE_SP.
4387
4388 * mips-tdep.c (mips_gdbarch_init): Do not set
4389 deprecated_dummy_write_sp.
4390 (mips_eabi_push_dummy_call): Set the SP register.
4391 (mips_o64_push_dummy_call): Set the SP register.
4392 (mips_o32_push_dummy_call): Set the SP register.
4393 (mips_n32n64_push_dummy_call): Set the SP register.
4394
5ab84872
RH
43952003-06-01 Richard Henderson <rth@redhat.com>
4396
98a8e1e5
RH
4397 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4398 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4399 (supply_gregset): Likewise.
4400 * alpha-tdep.c (alpha_store_return_value): Likewise.
4401 (alpha_get_longjmp_target): Likewise.
4402 (alpha_register_name): Constify array.
4403 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4404 deprecated_register_size, deprecated_register_bytes,
4405 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4406 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4407 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4408
09cc52fd
RH
44092003-06-01 Richard Henderson <rth@redhat.com>
4410
4411 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4412 from arg_reg_buffer to regcache to avoid double conversion.
4413
c7f16359
MK
44142003-06-01 Mark Kettenis <kettenis@gnu.org>
4415
4416 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4417 SP_REGNUM.
4418 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4419 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4420
7131cb6e
RH
44212003-06-01 Richard Henderson <rth@redhat.com>
4422
98a8e1e5
RH
4423 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4424 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4425
f3e0f90b
RH
44262003-06-01 Richard Henderson <rth@redhat.com>
4427
98a8e1e5
RH
4428 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4429 not overlapping PC_REGNUM.
f3e0f90b 4430
c88e30c0
RH
44312003-06-01 Richard Henderson <rth@redhat.com>
4432
98a8e1e5
RH
4433 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4434 alpha_push_arguments. Don't dump argument register data to
4435 the target stack. Fix float and 128-bit long double semantics.
4436 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4437 (alpha_fix_call_dummy): Remove.
4438 (alpha_call_dummy_words): Remove.
4439 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4440
f1a559ae
RH
44412003-06-01 Richard Henderson <rth@redhat.com>
4442
4443 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4444
5e045346
AC
44452003-06-01 Andrew Cagney <cagney@redhat.com>
4446
95404a3e
AC
4447 * mips-tdep.c (is_mips16_addr): New function.
4448 (make_mips16_addr, unmake_mips16_addr): New functions.
4449 (pc_is_mips16, mips_fetch_instruction): Use.
4450 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4451 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4452 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4453 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4454 TARGET_MIPS.
4455 * config/mips/tm-mips.h: Update copyright.
4456 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4457 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4458 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4459 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4460 (TM_PRINT_INSN_MACH): Delete.
4461 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4462
5e045346
AC
4463 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4464 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4465 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4466 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4467 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4468 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4469 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4470 mips*-*-riscos* and mips*-*-sysv* onto mips.
4471 * config/mips/mips64.mt: New file.
4472 * config/mips/mips.mt: New file.
4473 * config/mips/littlemips.mt: Delete file.
4474 * config/mips/decstation.mt: Delete file.
4475 * config/mips/vr4300el.mt: Delete file.
4476 * config/mips/vr5000el.mt: Delete file.
4477 * config/mips/vr5000.mt: Delete file.
4478 * config/mips/vr4100.mt: Delete file.
4479 * config/mips/vr4xxxel.mt: Delete file.
4480 * config/mips/vr4300.mt: Delete file.
4481 * config/mips/vr4xxx.mt: Delete file.
4482 * config/mips/bigmips.mt: Delete file.
4483 * config/mips/bigmips64.mt: Delete file.
4484 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4485 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4486 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4487 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4488 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4489 "tm-bigmips.h".
4490 * config/mips/tm-irix3.h: Ditto.
4491 * config/mips/tm-mipsv4.h: Ditto.
4492 * config/mips/tm-embed.h: Ditto.
4493 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4494 "tm-bigmips64.h".
4495 * config/mips/tm-vr5000el.h: Delete file.
4496 * config/mips/tm-tx39l.h: Delete file.
4497 * config/mips/tm-vr4300el.h: Delete file.
4498 * config/mips/tm-vr4xxxel.h: Delete file.
4499 * config/mips/tm-vr4300.h: Delete file.
4500 * config/mips/tm-vr4100.h: Delete file.
4501 * config/mips/tm-vr4xxx.h: Delete file.
4502 * config/mips/tm-vr5000.h: Delete file.
4503 * config/mips/tm-embedl64.h: Delete file.
4504 * config/mips/tm-embedl.h: Delete file.
4505 * config/mips/tm-embed64.h: Delete file.
4506 * config/mips/tm-bigmips64.h: Delete file.
4507 * config/mips/tm-bigmips.h: Delete file.
4508
2473a4a9
MK
45092003-06-01 Mark Kettenis <kettenis@gnu.org>
4510
97a5b208
MK
4511 Fix gdb/1216.
4512 * shnbsd-nat.c: Include "sh-tdep.h".
4513
2473a4a9
MK
4514 From Richard Henderson <rth@redhat.com>:
4515 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4516
e0f7ec59
AC
45172003-05-31 Andrew Cagney <cagney@redhat.com>
4518
4519 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4520 forward declaration.
4521 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4522 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4523 (mips_find_saved_regs): Use set_reg_offset.
4524 (mips_frame_init_saved_regs): Delete function.
4525 (mips_pop_frame): Call mips_find_saved_regs instead of
4526 DEPRECATED_FRAME_INIT_SAVED_REGS.
4527
68dcc709
AC
45282003-05-31 Andrew Cagney <cagney@redhat.com>
4529
4530 * mips-tdep.c (mips_gdbarch_init): Do not set
4531 deprecated_max_register_raw_size, register_virtual_size, and
4532 deprecated_max_register_virtual_size.
4533
cfc14b3a
MK
45342003-05-31 Mark Kettenis <kettenis@gnu.org>
4535
6405b0a6
MK
4536 * i386-tdep.c: Include "dwarf2-frame.h".
4537 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4538 * Makefile.in (i386-tdep.o): Update dependencies.
4539
cfc14b3a
MK
4540 * dwarf2-frame.c, dwarf2-frame.h: New files.
4541 * Makefile.in (SFILES): Add dwarf2-frame.c.
4542 (dwarf2_frame_h): Define.
4543 (COMMON_OBS): Add dwarf2-frame.o.
4544 (dwarf2-frame.o): Add dependencies.
4545
6a2751d2
AJ
45462003-05-31 Andreas Jaeger <aj@suse.de>
4547
4548 * x86-64-linux-nat.c: Fix comment.
4549
1c3545ae
MK
45502003-05-31 Mark Kettenis <kettenis@gnu.org>
4551
10f93086
MK
4552 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4553 function signature.
4554
1c3545ae
MK
4555 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4556 have a sigcontext_addr handler.
4557 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4558 sigcontext_addr handler.
4559
e11c53d2
AC
45602003-05-31 Andrew Cagney <cagney@redhat.com>
4561
4562 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4563 (print_fp_register_row): Replace do_fp_register_row.
4564 (mips_print_fp_register): Add "file" and "frame" parameters.
4565 (mips_print_register): Add "file" and "frame" parameters.
4566 (mips_print_registers_info): Replace mips_do_registers_info.
4567 (mips_gdbarch_init): Set print_registers_info instead of
4568 deprecated_do_registers_info.
4569 (mips_read_fp_register_single): Add "frame" parameter.
4570 (mips_read_fp_register_double): Add "frame" parameter.
4571
a3386186
MK
45722003-05-31 Mark Kettenis <kettenis@gnu.org>
4573
70913449
MK
4574 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4575 Fixes a bug where GDB would print the wrong register names for
4576 targets without SSE.
4577
2b5e0749
MK
4578 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4579 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4580 registers.
4581
4582 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4583 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4584 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4585 TDEP->sc_sp_offset.
4586
a3386186
MK
4587 From Michal Ludvig <mludvig@suse.cz>:
4588 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4589 and `sc_num_regs'.
4590 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4591 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4592 I386_ST0_REGNUM): Move here from...
4593 * i386-tdep.c: ... here.
4594 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4595 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4596 registers if possible.
4597 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4598 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4599 Remove variables.
4600 (i386bsd_sc_reg_offset): New variable.
4601 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4602 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4603 TDEP->sc_sp_offset.
4604 (i386fbsd_sc_reg_offset): New variable.
4605 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4606 TDEP->sc_num_regs.
4607 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4608 variables.
4609 (i386fbsd4_sc_reg_offset): New variable.
4610 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4611 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4612 TDEP->sc_sp_offset.
4613 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4614 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4615 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4616 Remove variables.
4617 (i386nbsd_sc_reg_offset): New variable.
4618 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4619 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4620 TDEP->sc_sp_offset.
4621 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4622 Remove variables.
4623 (i386obsd_sc_reg_offset): New variable.
4624 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4625 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4626 TDEP->sc_sp_offset.
4627 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4628 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4629 for frame pointer offset in `struct sigcontext'.
4630
25ab4790
AC
46312003-05-31 Andrew Cagney <cagney@redhat.com>
4632
4633 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4634 architecture methods call_dummy_words, sizeof_call_dummy_words,
4635 push_return_address, store_struct_return, and fix_call_dummy. Set
4636 push_dummy_call instead of deprecated_push_arguments.
4637 (mips_store_struct_return): Delete function.
4638 (mips_fix_call_dummy): Delete function.
4639 (mips_push_return_address): Delete function.
4640 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4641 RA_REGNUM and T9_REGNUM.
4642 (mips_n32n64_push_dummy_call): Ditto for
4643 mips_n32n64_push_arguments.
4644 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4645 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4646
6a65450a
AC
46472003-05-31 Andrew Cagney <cagney@redhat.com>
4648
4649 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4650 "dummy_addr" to "bp_addr".
4651 * infcall.c (call_function_by_hand): Pass "funaddr" to
4652 gdbarch_push_dummy_call.
4653 * gdbarch.h, gdbarch.c: Re-generate.
4654 * i386-tdep.c (i386_push_dummy_call): Update.
4655 * arm-tdep.c (arm_push_dummy_call): Update.
4656 * d10v-tdep.c (d10v_push_dummy_call): Update.
4657
c4f35dd8
MK
46582003-05-31 Mark Kettenis <kettenis@gnu.org>
4659
4660 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4661 variable declarations.
4662 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4663 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4664 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4665 x86_64_init_frame_pc, x86_64_init_frame_pc,
4666 x86_64_function_has_prologue): Remove prototypes.
4667 (X86_64_NUM_GREGS): New define.
4668 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4669 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4670 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4671 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4672 XMM1_REGNUM): Remove defines.
4673 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4674 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4675 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4676 X86_64_XMM1_REGNUM): New defines.
4677 (struct x86_64_register_info): Renamed from `struct
4678 register_info'. Remove `size' member.
4679 (x86_64_register_info_table): Remove variable.
4680 (x86_64_register_info): New variable.
4681 (X86_64_NUM_REGS): New define.
4682 (X86_64_NUM_GREGS): Remove define.
4683 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4684 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4685 Remove variables.
4686 (x86_54_dwarf2_reg_to_regnum): Remove function.
4687 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4688 (x86_64_dwarf_reg_to_regnum): New function.
4689 (x86_64_register_name): Rewrite.
4690 (x86_64_register_raw_size): Remove function.
4691 (x86_64_register_byte_table): Remove variable.
4692 (x86_64_register_byte): Remove function.
4693 (x86_64_register_virtual_type): Remove function.
4694 (x86_64_register_type): New function.
4695 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4696 x86_64_register_convert_to_raw): Remove functions.
4697 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4698 (x86_64_use_struct_convention): Make static. Adjust for renamed
4699 defines.
4700 (x86_64_frame_init_saved_regs): Remove function.
4701 (x86_64_push_arguments): Make static. Change to accept a regcache
4702 as argument.
4703 (x86_64_store_return_value, x86_64_extract_return_value): Make
4704 static. Rewrite based on i386 counterparts.
4705 (x86_64_push_dummy_call): New function.
4706 (X86_64_NUM_SAVED_REGS): New define.
4707 (x86_64_register_number): Remove function.
4708 (x86_64_store_struct_return): Remove function.
4709 (x86_64_frameless_function_invocation,
4710 x86_64_function_has_prologue): Remove functions.
4711 (PROLOG_BUFSIZE): Remove define.
4712 (struct x86_64_frame_cache): New structure.
4713 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4714 x86_64_frame_cache, x86_64_frame_this_id,
4715 x86_64_frame_prev_register, x86_64_frame_p,
4716 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4717 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4718 functions.
4719 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4720 variables.
4721 (x86_64_skip_prologue): Rewrite in terms of
4722 x86_64_analyze_prologue.
4723 (x86_64_frame_base_address): New function.
4724 (x86_64_frame_base): New variable.
4725 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4726 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4727 set deprecated_fp_regnum, deprecated_register_size,
4728 deprecated_register_bytes, register_raw_size, register_byte,
4729 register_virtual_type, register_convertiable,
4730 register_convert_to_virtual, convert_to_raw,
4731 deprecated_get_saved_register, deprecated_target_read_fp,
4732 deprecated_push_arguments, deprecated_push_return_address,
4733 deprecated_pop_frame, deprecated_store_struct_return,
4734 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4735 frameless_function_invocation, deprecated_frame_saved_pc,
4736 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4737 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4738 deprecated_init_frame_pc and virtual_frame_pointer. Call
4739 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4740 and x86_64_frame_p. Call frame_base_set_default to register
4741 x86_64_frame_base.
4742 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4743 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4744 (_initialize_x86_64_tdep): Remove function.
4745 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4746 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4747 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4748 define.
4749 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4750 (x86_64_linux_sigcontext_addr): Rewrite.
4751 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4752 x86_64_linux_frame_saved_pc): Remove functions.
4753 (x86_64_linux_pc_in_sigtramp): Renamed from
4754 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4755 trampoline.
4756 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4757 Remove_functions.
4758 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4759 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4760 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4761 (x86_64_regmap): Rename to regmap.
4762 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4763 x86_64_num_gregs.
4764 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4765 x86_64_regmap.
4766 (x86_64_fxsave_offset): Remove function.
4767 (supply_fpregset): Simply call x86_64_supply_fxsave.
4768 (fill_fpregset): Simply call x86_64_fill_fxsave.
4769 (fetch_inferior_registers, store_inferior_registers): Avoid
4770 asignment in if-statement.
4771 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4772 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4773 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4774 (fetch_core_registers): Remove function.
4775 (linux_elf_core_fns): Remove.
4776 (offsetoff): Don't define.
4777 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4778 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4779 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4780 add core-regset.o.
4781 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4782 protection against multiple includes instead of NM_X86_64_h. Add
4783 various comments. Include "config/nm-linux.h". Don't include
4784 <signal.h>.
4785 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4786 GET_THREAD_SIGNALS): Remove defines.
4787 (x86_64_register_u_addr, kernel_u_size,
4788 lin_thread_get_thread_signals): Remove prototypes.
4789 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4790 [HAVE_LINK_H]: Don't include "solib.h".
4791 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4792 * config/i386/tm-x86-64linux.h: Fix comments.
4793 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4794 x86-64-tdep.o): Update dependencies.
4795
c25083af
AC
47962003-05-30 Andrew Cagney <cagney@redhat.com>
4797
c8f55a7b
AC
4798 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4799 Change parameter type to a "struct regcache *".
4800
c25083af
AC
4801 * gdbarch.sh: Regardless of the multi-arch level, always define
4802 the macro when not already defined.
4803 * gdbarch.h, gdbarch.c: Re-generate.
4804
fbe586ae
RH
48052003-05-30 Richard Henderson <rth@redhat.com>
4806
4807 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4808 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4809 (alpha_mdebug_frame_this_id): Likewise.
4810 (alpha_mdebug_frame_prev_register): Likewise.
4811 (alpha_mdebug_frame_base_address): Likewise.
4812 (alpha_mdebug_frame_locals_address): Likewise.
4813 (alpha_mdebug_frame_args_address): Likewise.
4814 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4815 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4816 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4817 loop increment.
4818 (alpha_heuristic_frame_this_id): Make static.
4819 (alpha_heuristic_frame_prev_register): Likewise.
4820 (alpha_heuristic_frame_base_address): Likewise.
4821 * alpha-tdep.h: Update.
4822
acd5c798
MK
48232003-05-30 Mark Kettenis <kettenis@gnu.org>
4824
4825 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4826 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4827 defenitions.
4828 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4829 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4830 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4831 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4832 I386_ST0_REGNUM): New defines.
4833 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4834 codestream_get): Remove define.
4835 (codestream_next_addr, condestream_addr, condestream_buf,
4836 codestream_off, codestream_cnt): Remove variables.
4837 (codestream_fill, codestream_seek, codestream_read): Remove
4838 functions.
4839 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4840 functionality.
4841 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4842 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4843 i386_frame_saved_pc, i386_saved_pc_after_call,
4844 i386_frame_num_args, i386_frame_init_saved_regs,
4845 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4846 i386_push_arguments): Remove functions.
4847 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4848 functionality. Use i386_analyze_prologue instead of
4849 i386_get_frame_setup.
4850 (I386_NUM_SAVED_REGS): New define.
4851 (struct i386_frame_cache): New structure.
4852 (i386_alloc_frame_cache, i386_analyze_struct_return,
4853 i386_skip_probe, i386_analyze_frame_setup,
4854 i386_analyze_register_saves, i386_analyze_prologue,
4855 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4856 i386_frame_prev_register, i386_sigtramp_frame_cache,
4857 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4858 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4859 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4860 New functions.
4861 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4862 New variables.
4863 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4864 I386_EAX_REGNUM and I386_EDX_REGNUM.
4865 (i386_extract_return_value, i386_store_return_value): Use
4866 I386_ST0_REGNUM where appropriate.
4867 (i386_extract_struct_value_address): Rewrite to use extract_address.
4868 (i386_svr4_pc_in_sigtramp): Add comment.
4869 (i386_svr4_sigcontext_addr): Rewrite.
4870 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4871 TDEP->sc_sp_offset.
4872 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4873 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4874 of new defines. Set push_dummy_call, don't set
4875 deprecated_push_arguments, deprecated_push_return_address,
4876 deprecated_pop_frame. Don't set parm_boundary. Don't set
4877 deprecated_frame_chain, deprecated_frame_saved_pc,
4878 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4879 save_dummy_frame_tos, unwind_pc. Call
4880 frame_unwind_append_predicate and frame_base_set_default. Don't
4881 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4882 Don't set frameless_function_invocation. Don't set
4883 deprecated_register_bytes, deprecated_register_size,
4884 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4885 * i386-linux-tdep.c: Fix formatting in some comments.
4886 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4887 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4888 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4889 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4890 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4891 redundant parentheses.
4892 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4893 (i386_linux_sigcontext_addr): Use it. Rewrite.
4894 (find_minsym_and_objfile): Change name of second argument.
4895 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4896 changed. Use frame_pc_unwind instead of
4897 DEPRECATED_SAVED_PC_AFTER_CALL.
4898 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4899 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4900 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4901 unwinder.
4902 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4903 "dummy-frame.h".
4904 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4905 (_initialize_i386_cygwin_tdep): New prototype.
4906 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4907 deprecated_frame_chain_valid.
4908 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4909 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4910 Rely on the SVR4 defaults.
4911 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4912 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4913
c89b70f1
AC
49142003-05-30 Andrew Cagney <cagney@redhat.com>
4915
4916 * infcall.c (call_function_by_hand): Always call
4917 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4918
85b32d22
RH
49192003-05-30 Richard Henderson <rth@redhat.com>
4920
c89b70f1
AC
4921 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4922 increment.
85b32d22 4923
bfe51b1e
JB
49242003-05-29 Jim Blandy <jimb@redhat.com>
4925
4926 Use gdbarch methods for solib stuff on PowerPC Linux.
4927 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4928 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4929 show through.
4930 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4931 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4932 giving the same effect as the #definitions above.
4933
1abf022c
AF
49342003-05-29 Adam Fedor <fedor@gnu.org>
4935
4936 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4937 (find_implementation_from_class): Replace it with the standard
4938 case i.e. do nothing.
4939
d2427a71
RH
49402003-05-29 Richard Henderson <rth@redhat.com>
4941
4942 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4943 (alpha_linux_sigtramp_offset): Use it. Make static.
4944 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4945 update for new frame model.
4946 * alpha-mdebug-tdep.c: New file.
4947 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4948 (alpha_osf1_init_abi): Install it.
4949 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4950 (linked_proc_desc_table): Remove.
4951 (alpha_frame_past_sigtramp_frame): Remove.
4952 (alpha_dynamic_sigtramp_offset): Remove.
4953 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4954 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4955 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4956 (push_sigtramp_desc): Remove.
4957 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4958 (alpha_cannot_store_register): Likewise.
4959 (alpha_sigcontext_addr): Remove.
4960 (alpha_find_saved_regs): Remove.
4961 (alpha_frame_init_saved_regs): Remove.
4962 (alpha_init_frame_pc_first): Remove.
4963 (read_next_frame_reg): Remove.
4964 (alpha_frame_saved_pc): Remove.
4965 (alpha_saved_pc_after_call): Remove.
4966 (temp_proc_desc, temp_saved_regs): Remove.
4967 (alpha_about_to_return): Remove.
4968 (cached_proc_desc): Remove.
4969 (alpha_frame_chain): Remove.
4970 (alpha_print_extra_frame_info): Remove.
4971 (alpha_init_extra_frame_info): Remove.
4972 (alpha_frame_locals_address): Remove.
4973 (alpha_frame_args_address): Remove.
4974 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4975 (alpha_push_dummy_frame): Remove.
4976 (alpha_pop_frame): Remove.
4977 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4978 (alpha_read_insn): New.
4979 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4980 for different insn encodings.
4981 (alpha_in_lenient_prologue): Remove.
4982 (struct alpha_sigtramp_unwind_cache): New.
4983 (alpha_sigtramp_frame_unwind_cache): New.
4984 (alpha_sigtramp_register_address): New.
4985 (alpha_sigtramp_frame_this_id): New.
4986 (alpha_sigtramp_frame_prev_register): New.
4987 (alpha_sigtramp_frame_unwind): New.
4988 (alpha_sigtramp_frame_p): New.
4989 (struct alpha_heuristic_unwind_cache): New.
4990 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4991 don't count nop insns that occur between functions.
4992 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4993 heuristic_proc_desc, but without the mdebug wrapping.
4994 (alpha_heuristic_frame_this_id): New.
4995 (alpha_heuristic_frame_prev_register): New.
4996 (alpha_heuristic_frame_unwind): New.
4997 (alpha_heuristic_frame_p): New.
4998 (alpha_heuristic_frame_base_address): New.
4999 (alpha_heuristic_frame_base): New.
5000 (alpha_unwind_dummy_id): New.
5001 (alpha_unwind_pc): New.
5002 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5003 frame related deprecated initializations; install replacements.
5004 (alpha_dump_tdep): Remove.
5005 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5006 (alpha_read_insn, alpha_after_prologue,
5007 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5008 alpha_heuristic_frame_prev_register,
5009 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5010 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5011 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5012 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5013
93ec1121
AC
50142003-05-29 Andrew Cagney <cagney@redhat.com>
5015
5016 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5017 dependant on the availability of ASSERT_FUNCTION.
5018 (ASSERT_FUNCTION): Do not define when there is no function name.
5019
98f08d3d
KB
50202003-05-29 Kevin Buettner <kevinb@redhat.com>
5021
5022 From Jimi X <jimix@watson.ibm.com>:
5023 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5024
0897f59b
JB
50252003-05-28 Jim Blandy <jimb@redhat.com>
5026
5027 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5028 argument to ptrace to int; the system headers should give it the
5029 right type, and pointers don't fit in ints on powerpc64-*-*.
5030
14898363
L
50312003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5032
5033 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5034 DW_TAG_catch_block.
5035
a7a48797
EZ
50362003-05-26 Elena Zannoni <ezannoni@redhat.com>
5037
5038 * stabsread.c (dbx_lookup_type): Make static.
5039 (read_type): Ditto.
5040 (add_undefined_type): Ditto.
5041 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5042 not export.
5043
f5479e9c
EZ
50442003-05-26 Elena Zannoni <ezannoni@redhat.com>
5045
5046 * hpread.c (hpread_has_name): Make static.
5047 (hpread_psymtab_to_symtab): Ditto.
5048 (file_exists): Ditto.
5049 (hpread_call_pxdb): Ditto.
5050 (hpread_pxdb_needed): Ditto.
5051 (hpread_quick_traverse): Ditto.
5052 (hpread_get_header): Ditto.
5053 (hpread_get_lntt): Ditto.
5054 (hpread_get_slt): Ditto.
5055 (class_of): Ditto.
5056
eb2e12d7
AS
50572003-05-25 Andreas Schwab <schwab@suse.de>
5058
78bf922a
AS
5059 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5060 stack_align and deprecated_extra_stack_alignment_needed.
5061 (m68k_stack_align): Delete.
5062
eb2e12d7
AS
5063 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5064 (m68k_register_virtual_size): Likewise.
5065 (altos_skip_prologue): Remove obsolete function.
5066 (isi_frame_num_args): Likewise.
5067 (news_frame_num_args): Likewise.
5068 (m68k_fix_call_dummy): Make static.
5069 (m68k_push_dummy_frame): Likewise.
5070 (m68k_pop_frame): Likewise.
5071 (m68k_skip_prologue): Likewise.
5072 (m68k_frame_init_saved_regs): Likewise.
5073 (m68k_saved_pc_after_call): Likewise.
5074 (m68k_get_longjmp_target): Make multi-arch.
5075 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5076 structure. Register m68k_get_longjmp_target if enabled.
5077 * m68k-tdep.h (struct gdbarch_tdep): Define.
5078 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5079
5080 * Makefile.in (config.status): Also depend on configure.tgt
5081 and configure.host.
5082 (m68klinux-tdep.o): Update dependencies.
5083 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5084 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5085 (M68K_LINUX_JB_PC): Define.
5086 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5087 and take additional parameter.
5088 (m68k_linux_sigtramp_saved_pc): Update.
5089 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5090 m68k_linux_pc_in_sigtramp, in_plt_section,
5091 find_solib_trampoline_target.
5092 * config/m68k/tm-linux.h: Don't include any tm headers.
5093 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5094 (JB_ELEMENT_SIZE): Likewise.
5095 (JB_PC): Likewise.
5096 (GET_LONGJMP_TARGET): Likewise.
5097 (IN_SIGTRAMP): Likewise.
5098 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5099
eb2c22dc
MK
51002003-05-25 Mark Kettenis <kettenis@gnu.org>
5101
5102 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5103 (sparc32_push_arguments): Re-implement by calling
5104 sparc32_do_push_arguments.
5105
44b7b84e
MK
51062003-05-25 Mark Kettenis <kettenis@gnu.org>
5107
5108 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5109 SPARC_O1_REGNUM): New defines.
5110 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5111 (sparc32_store_return_value): New function.
5112 (sparc_extract_struct_value_address): Rewrite to operate on a
5113 regcache.
5114 (sparc_gdbarch_init): Don't set
5115 deprecated_extract_struct_value_address. Set
5116 extract_struct_value_address instead. Don't set
5117 deprecated_extract_return_value and deprecated_store_return_value
5118 for 32-bit targets. Set extract_return_value and
5119 store_return_value instead.
5120 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5121 DEPRECTAED_EXTRACT_RETURN_VALUE,
5122 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5123 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5124 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5125 (sparc_store_return_value): Remove prototype.
5126 (sparc32_store_return_value): New prototype.
5127 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5128 Adjust prototypes.
5129
f6ad61e3
MK
51302003-05-24 Mark Kettenis <kettenis@gnu.org>
5131
5132 * sparcnbsd-tdep.c: Include "gdb_string.h".
5133
b276f1bb
AC
51342003-05-23 Andrew Cagney <cagney@redhat.com>
5135
5136 * p-valprint.c (pascal_val_print): Replace extract_address with
5137 the inline equivalent extract_unsigned_integer.
5138 * jv-valprint.c (java_value_print): Ditto.
5139 * ada-valprint.c (ada_val_print_1): Ditto.
5140 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5141
e76c5fcc
TR
51422003-05-23 Theodore A. Roth <troth@openavr.org>
5143
5144 * blockframe.c (frameless_look_for_prologue): Remove unused
5145 after_prologue variable.
5146
2cdd89cb
MK
51472003-05-23 Mark Kettenis <kettenis@gnu.org>
5148
5149 * blockframe.c (get_pc_function_start): Rewrite to avoid
5150 asignments in if-statements.
5151
182d43bc
EZ
51522003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5153
5154 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5155 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5156 files, don't relocate absolute symbols (and do use mst_abs).
5157
e8f3fcdd
AC
51582003-05-23 Andrew Cagney <cagney@redhat.com>
5159
5160 * objc-lang.c: Include "gdb_assert.h".
5161 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5162 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5163 (gdb_check, gdb_check_fatal): Delete functions.
5164 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5165 gdb_assert.
5166 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5167 * Makefile.in (objc-lang.o): Update dependencies.
5168
3c23e6fb
ILT
51692003-05-22 Ian Lance Taylor <ian@airs.com>
5170
5171 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5172 with fprintf_filtered, not fprintf_unfiltered.
5173
af1342ab
AC
51742003-05-22 Andrew Cagney <cagney@redhat.com>
5175
5176 * stack.c (frame_info): Inline extract_address, replacing it with
5177 extract_unsigned_integer.
5178 * findvar.c (unsigned_pointer_to_address): Ditto.
5179 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5180 * dwarf2expr.c (dwarf2_read_address): Ditto.
5181 * frame.c (frame_pc_unwind): Update comment.
5182 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5183
47e242ec
JJ
51842003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5185
5186 * infptrace.c (detach): Call print_sys_errmsg rather than
5187 perror_with_name to issue warning message when errno is non-zero
5188 after calling ptrace detach.
5189
e2ac8128
JB
51902003-05-21 J. Brobecker <brobecker@gnat.com>
5191
5192 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5193 macro definitions from here...
5194 * hppa-tdep.c: ...to there.
5195
92b3541e
KB
51962003-05-20 Kevin Buettner <kevinb@redhat.com>
5197
5198 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5199 register_ptrace_addr(). Fix all callers.
5200
55809acb
AS
52012003-05-21 Andreas Schwab <schwab@suse.de>
5202
5203 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5204 dependencies.
5205 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5206 end.
5207 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5208 (_initialize_m68k_linux_tdep): New function.
5209 (m68k_linux_frame_saved_pc): Make static.
5210 (m68k_linux_extract_return_value): Likewise.
5211 (m68k_linux_store_return_value): Likewise.
5212 (m68k_linux_extract_struct_value_address): Likewise.
5213 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5214 Remove.
5215 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5216 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5217 (DEPRECATED_FRAME_SAVED_PC): Remove.
5218
0fbc10f7
KW
52192003-05-20 Kris Warkentin <kewarken@qnx.com>
5220
5221 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5222 regset numbering rather than our own.
5223
58da2eb2
DC
52242003-05-19 David Carlton <carlton@bactrian.org>
5225
5226 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5227
1fcb5155
DC
52282003-05-19 David Carlton <carlton@bactrian.org>
5229
5230 Partial fix for PR c++/827.
5231 * cp-support.h: Include symtab.h.
5232 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5233 * cp-namespace.c: Update contributors.
5234 (cp_lookup_symbol_nonlocal): New.
5235 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5236 (lookup_symbol_file): Ditto.
5237 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5238 * block.h: Declare block_scope, block_using, block_global_block.
5239 * block.c (block_scope): New.
5240 (block_using, block_global_block): Ditto.
5241 * Makefile.in (cp_support_h): Depend on symtab_h.
5242 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5243
5f9a71c3
DC
52442003-05-19 David Carlton <carlton@bactrian.org>
5245
5246 * language.h (struct language_defn): Add 'la_value_of_this'
5247 and 'la_lookup_symbol_nonlocal' members.
5248 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5249 lookup_symbol_static, lookup_symbol_global,
5250 lookup_symbol_aux_block.
5251 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5252 if we should search fields of this and how to do static/global
5253 lookup.
5254 (lookup_symbol_aux_block): Make extern.
5255 (basic_lookup_symbol_nonlocal): New.
5256 (lookup_symbol_static, lookup_symbol_global): Ditto.
5257 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5258 'la_lookup_symbol_nonlocal' members.
5259 * c-lang.c (c_language_defn, cplus_language_defn)
5260 (asm_language_defn, minimal_language_defn): Ditto.
5261 * jv-lang.c (java_language_defn): Ditto.
5262 * language.c (unknown_language_defn, auto_language_defn)
5263 (local_language_defn): Ditto.
5264 * m2-lang.c (m2_language_defn): Ditto.
5265 * objc-lang.c (objc_language_defn): Ditto.
5266 * scm-lang.c (scm_language_defn): Ditto.
5267 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5268 * p-lang.c (pascal_language_defn): Ditto for both.
5269 * Makefile.in (f-lang.o): Depend on value_h.
5270 (p-lang.o): Ditto.
5271
89a9d1b1
DC
52722003-05-19 David Carlton <carlton@bactrian.org>
5273
5274 * block.h: Declare block_static_block.
5275 * block.c (block_static_block): New.
5276 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5277 lookup_symbol_aux_local, calling block_static_block instead.
5278 (lookup_symbol_aux_local): Delete 'static_block' argument.
5279
eed3f8ab
DC
52802003-05-19 David Carlton <carlton@bactrian.org>
5281
5282 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5283
a09d8bda
ML
52842003-05-19 Michal Ludvig <mludvig@suse.cz>
5285
5286 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5287 register numbers mapping.
5288
69636828
AF
52892003-05-18 Adam Fedor <fedor@gnu.org>
5290
5291 * symtab.c (completion_list_objc_symbol): New function.
5292 (make_symbol_completion_list): Use it to add ObjC symbols
5293 when looking though the list.
5294 (language_search_unquoted_string): New function.
5295 (make_file_symbol_completion_list): Use it.
5296
55baeb84
AS
52972003-05-18 Andreas Schwab <schwab@suse.de>
5298
d0b45d99
AS
5299 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5300 dependencies.
5301 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5302 as m68k_linux_extract_return_value.
5303 (DEPRECATED_STORE_RETURN_VALUE): Define as
5304 m68k_linux_store_return_value.
5305 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5306 m68k_linux_extract_struct_value_address.
5307 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5308 get_next_frame, get_frame_base, get_frame_pc.
5309 (m68k_linux_frame_saved_pc): Use get_frame_base.
5310 (m68k_linux_extract_return_value): New function.
5311 (m68k_linux_store_return_value): New function.
5312 (m68k_linux_extract_struct_value_address): New function.
5313 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5314
55baeb84
AS
5315 * c-exp.y (typebase): Remove duplicate occurence of
5316 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5317 of lookup_signed_typename.
55baeb84 5318
b6b08ebf
MK
53192003-05-18 Mark Kettenis <kettenis@gnu.org>
5320
5321 * dwarf2loc.c (find_location_expression): Change type of second
5322 argument to `size_t *'.
5323 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5324 for size variable.
5325
5ad1c190
DC
53262003-05-18 David Carlton <carlton@bactrian.org>
5327
5328 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5329 'linkage_name'. Add comment.
5330 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5331 'linkage_name'.
5332 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5333 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5334 (lookup_block_symbol): Ditto.
5335
b8b527c5
AC
53362003-05-16 Andrew Cagney <cagney@redhat.com>
5337
5338 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5339 * gdbarch.h, gdbarch.c: Re-generate.
5340 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5341 * TODO (REGISTER_BYTES): Delete reference.
5342 * alpha-tdep.c (alpha_gdbarch_init): Update.
5343 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5344 * x86-64-tdep.c (x86_64_init_abi): Update.
5345 * vax-tdep.c (vax_gdbarch_init): Update.
5346 * v850-tdep.c (v850_gdbarch_init): Update.
5347 * sparc-tdep.c (sparc_gdbarch_init): Update.
5348 * sh-tdep.c (sh_gdbarch_init): Update.
5349 * s390-tdep.c (s390_gdbarch_init): Update.
5350 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5351 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5352 (ns32k_gdbarch_init_32382): Update.
5353 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5354 * mcore-tdep.c (mcore_gdbarch_init): Update.
5355 * m68k-tdep.c (m68k_gdbarch_init): Update.
5356 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5357 * ia64-tdep.c (ia64_gdbarch_init): Update.
5358 * i386-tdep.c (i386_gdbarch_init): Update.
5359 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5360 * hppa-tdep.c (hppa_gdbarch_init): Update.
5361 * h8300-tdep.c (h8300_gdbarch_init): Update.
5362 * frv-tdep.c (frv_gdbarch_init): Update.
5363 * cris-tdep.c (cris_gdbarch_init): Update.
5364 * avr-tdep.c (avr_gdbarch_init): Update.
5365 * arm-tdep.c (arm_gdbarch_init): Update.
5366 * sparc-tdep.c (sparc_pop_frame): Update.
5367 * rs6000-tdep.c (rs6000_pop_frame): Update.
5368 * remote.c (init_remote_state): Update.
5369 (remote_prepare_to_store): Update.
5370 * remote-vx.c (vx_prepare_to_store): Update.
5371 * remote-sds.c (sds_fetch_registers): Update.
5372 (sds_prepare_to_store): Update.
5373 * remote-array.c: Update.
5374 * regcache.c (init_legacy_regcache_descr): Update.
5375 (init_regcache_descr): Update.
5376 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5377 (mips_o64_extract_return_value): Update.
5378 * irix5-nat.c (fetch_core_registers): Update.
5379 * irix4-nat.c (fetch_core_registers): Update.
5380 * i386-tdep.h: Update.
5381 * hppa-tdep.c (pa_do_registers_info): Update.
5382 (pa_do_strcat_registers_info): Update.
5383 * cris-tdep.c (cris_register_bytes_ok): Update.
5384 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5385 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5386 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5387 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5388 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5389 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5390 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5391 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5392 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5393 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5394 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5395 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5396 (REGISTER_BYTES_OK): Update.
5397 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5398 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5399
ee2842e2
ILT
54002003-05-16 Ian Lance Taylor <ian@airs.com>
5401
5402 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5403 (vax_print_insn, print_insn_arg): Remove static functions.
5404 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5405 print_insn_vax from opcodes library.
5406 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5407
973177d3
AC
54082003-05-15 Andrew Cagney <cagney@redhat.com>
5409
aaab4dba
AC
5410 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5411 * target.h (memory_breakpoint_from_pc): Delete declaration.
5412 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5413 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5414 * monitor.c (monitor_insert_breakpoint): Use
5415 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5416 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5417 * gdbarch.h, gdbarch.c: Re-generate.
5418 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5419 (sparc_gdbarch_init): Set breakpoint_from_pc to
5420 sparc_breakpoint_from_pc.
5421 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5422 (BREAKPOINT_FROM_PC): Define.
5423 (sparc_breakpoint_from_pc): Declare.
5424 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5425 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5426 (BREAKPOINT_FROM_PC): Define.
5427 (BREAKPOINT): Delete macro.
5428 * target.h: Update comment.
5429 * s390-tdep.c (s390_gdbarch_init): Update comments.
5430 * remote.c: Update comments.
5431 * remote-mips.c: Update comments.
5432 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5433 * mem-break.c: Update comment.
5434 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5435 (ia64_memory_insert_breakpoint): Update.
5436 * config/sparc/tm-sparc.h: Update comment.
5437 * config/pa/tm-hppa64.h: Update comment.
5438 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5439 (rs6000_breakpoint_from_pc): Update.
5440 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5441 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5442 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5443 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5444 (mips_breakpoint_from_pc): Update.
5445 (mips_dump_tdep): Update.
5446
e06963ff
AC
5447 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5448 * minsyms.c (lookup_minimal_symbol): Inline
5449 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5450
973177d3
AC
5451 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5452 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5453 * p-lang.c (pascal_printstr): Ditto.
5454 * objc-lang.c (objc_printstr): Ditto.
5455 * m2-lang.c (m2_printstr): Ditto.
5456 * jv-valprint.c (java_print_value_fields): Ditto.
5457 * f-lang.c (f_printstr): Ditto.
5458 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5459 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5460 for repeat_count_threshold.
5461 * Makefile.in (cp-valprint.o): Update dependencies.
5462
5ea2bd7f 54632003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5464
5ea2bd7f
JJ
5465 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5466 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5467 they start with mov r2,r12. Support skipping over indirect stores
5468 of the input registers. Upon hitting a non-nop branch instruction
5469 or predicated instruction, bail out by setting lim_pc to the current
5470 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5471 beyond our calculated value and we have trust_limit set,
5472 use the lim_pc value.
5473
cc8c88f3
AC
54742003-05-15 Andrew Cagney <cagney@redhat.com>
5475
5476 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5477 generic_find_dummy_frame.
5478 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5479 (deprecated_generic_find_dummy_frame): Update.
5480 (deprecated_read_register_dummy): Update.
5481 * frame.c (deprecated_generic_get_saved_register): Update.
5482
909cd28e
TR
54832003-05-15 Theodore A. Roth <troth@openavr.org>
5484
5485 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5486 (avr_gdbarch_init): Set breakpoint_from_pc method.
5487
b923b08d
AC
54882003-05-15 Andrew Cagney <cagney@redhat.com>
5489
5490 * regcache.c (build_regcache): Set deprecated_register_valid
5491 directly.
5492 (deprecated_grub_regcache_for_register_valid): Delete function.
5493 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5494 declaration.
5495
ae2f03ac 54962003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5497
5498 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5499 * symtab.c (lookup_symbol_aux): Delete calls to
5500 lookup_symbol_aux_minsyms.
5501 (lookup_symbol_aux_minsyms): Comment out function and
5502 prototype. Delete lookup by mangled name.
ae2f03ac 5503
18ec9831
KB
55042003-05-14 Kevin Buettner <kevinb@redhat.com>
5505
5506 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5507 correctly indicate an empty stack and ``stack_allocated'' to the
5508 indicate the number of elements initially allocated.
5509 (dwarf_expr_grow_stack): Simplify method for computing new
5510 stack size. Don't loop infinitely if ``stack_len'' is zero.
5511 (execute_stack_op): Move ``ctx->in_reg'' initialization
5512 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5513 be used in conjuction with DW_OP_piece. Revise error message
5514 accordingly.
5515
de18ac1f
TR
55162003-05-14 Theodore A. Roth <troth@openavr.org>
5517
5518 * MAINTAINERS: Update my email address.
5519 * avr-tdep.c: Ditto.
5520
176620f1
EZ
55212003-05-14 Elena Zannoni <ezannoni@redhat.com>
5522
5523 * symtab.h (enum domain_enum): Rename from namespace_enum.
5524 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5525 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5526 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5527 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5528 TYPES_NAMESPACE, METHODS_NAMESPACE.
5529 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5530 (struct symbol, struct partial_symbol): Rename field
5531 'namespace_enum namespace' to 'domain_enum domain'.
5532 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5533 Delete old define kludge for namespace.
5534
5535 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5536 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5537 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5538 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5539 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5540 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5541 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5542 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5543 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5544 occurrences of the above.
5545
b7f31508
ILT
55462003-05-14 Ian Lance Taylor <ian@airs.com>
5547
5548 * Makefile.in (install-only): Use $(SHELL) when running
5549 mkinstalldirs.
5550
2fdbdd39
ILT
55512003-05-13 Ian Lance Taylor <ian@airs.com>
5552
a208d82c
ILT
5553 * MAINTAINERS (write after approval): Add myself.
5554
2fdbdd39
ILT
5555 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5556 second and third arguments.
5557 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5558 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5559
fbd9dcd3
AC
55602003-05-13 Andrew Cagney <cagney@redhat.com>
5561
5562 * defs.h (store_address): Delete declaration.
5563 findvar.c (store_address): Delete function.
5564 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5565 store_unsigned_integer.
5566 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5567 * v850-tdep.c (v850_push_arguments): Ditto.
5568 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5569 * sh-tdep.c (sh64_get_saved_register): Ditto.
5570 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5571 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5572 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5573 (mips_get_saved_register): Ditto.
5574 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5575 (find_func_descr, ia64_push_arguments): Ditto.
5576 * i386-tdep.c (i386_push_arguments): Ditto.
5577 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5578 * frv-tdep.c (frv_push_arguments): Ditto.
5579 * frame.c (legacy_saved_regs_prev_register): Ditto.
5580 (deprecated_generic_get_saved_register): Ditto.
5581 * findvar.c (unsigned_address_to_pointer): Ditto.
5582 * dwarf2read.c (dwarf2_const_value): Ditto.
5583 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5584 * alpha-tdep.c (alpha_push_arguments): Ditto.
5585
6760f9e6
JB
55862003-05-12 J. Brobecker <brobecker@gnat.com>
5587
5588 * NEWS: Mention that the hppa-hpux port has been partially
5589 multiarched (32bit ABIT only, so far).
5590
30e221b4
AC
55912003-05-11 Andrew Cagney <cagney@redhat.com>
5592
5593 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5594 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5595 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5596 sim/testsuite/sim/arm/misaligned2.ms, and
5597 sim/testsuite/sim/arm/misaligned3.ms.
5598 * disasm.h (struct ui_file): Add opaque struct declaration.
5599 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5600 * frame.h (struct ui_file): Ditto.
5601
dea7f9ba
MK
56022003-05-11 Mark Kettenis <kettenis@gnu.org>
5603
5604 * value.h: Pretty print.
5605
01986c48
MK
56062003-05-10 Mark Kettenis <kettenis@gnu.org>
5607
5608 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5609
123a958e
AC
56102003-05-08 Andrew Cagney <cagney@redhat.com>
5611
5612 * regcache.h (max_register_size): Delete declaration.
5613 * regcache.c (max_register_size): Delete function.
5614 (struct regcache_descr): Delete field "max_register_size".
5615 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5616 registers fit in MAX_REGISTER_SIZE.
5617 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5618 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5619 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5620 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5621 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5622 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5623 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5624 * dve3900-rom.c, hppa-tdep.c: Ditto.
5625
eb294659
DC
56262003-05-08 David Carlton <carlton@math.stanford.edu>
5627
5628 * valops.c (push_word): Fix typo.
5629
d9d9c31f
AC
56302003-05-08 Andrew Cagney <cagney@redhat.com>
5631
5632 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5633 * gdbarch.h: Re-generate.
5634 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5635 (legacy_max_register_raw_size): Delete declaration.
5636 * regcache.c (legacy_max_register_raw_size): Delete function.
5637 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5638 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5639 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5640 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5641 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5642 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5643 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5644 * findvar.c, dwarf2cfi.c: Ditto.
5645
22540ece
AC
56462003-05-08 Andrew Cagney <cagney@redhat.com>
5647
5648 * mips-tdep.c (read_signed_register): New function, moved to here
5649 from "regcache.c".
5650 (read_signed_register_pid): Ditto.
5651 * regcache.c (read_signed_register_pid): Delete function, moved to
5652 "mips-tdep.c".
5653 (read_signed_register): Ditto.
5654 * regcache.h (read_signed_register): Delete declaration.
5655 (read_signed_register_pid): Delete declaration.
5656
0c92afe8
AC
56572003-05-08 Andrew Cagney <cagney@redhat.com>
5658
5659 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5660 * gdbarch.h: Re-generate.
5661 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5662 (legacy_max_register_virtual_size): Delete declaration.
5663 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5664 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5665 * tracepoint.c (memrange_sortmerge): Ditto.
5666 * sparc-tdep.c (sparc_print_registers): Ditto.
5667 * regcache.c (legacy_max_register_virtual_size): Delete function.
5668
6037b830
JB
56692002-05-08 J. Brobecker <brobecker@gnat.com>
5670
5671 * fork-child.c (escape_bang_in_quoted_argument): New function.
5672 (fork_inferior): Escape '!' characters in quoted arguments
5673 only when needed.
5674
5d62c8b1
JB
56752003-05-08 J. Brobecker <brobecker@gnat.com>
5676
5677 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5678 the language of the CU is not currently supported by GDB.
5679
20a0e81d
JB
56802003-05-08 J. Brobecker <brobecker@gnat.com>
5681
5682 * defs.h (language): Add language_minimal enum value.
5683 * c-lang.c (minimal_language_defn): New language definition.
5684 (_initialize_c_language): Add the new minimal language to the list
5685 of languages known to GDB.
5686
710ee10a
KB
56872003-05-08 Kevin Buettner <kevinb@redhat.com>
5688
5689 * frame.c (get_frame_type): Don't attempt to lazily initialize
5690 frame's unwinder for legacy frames.
5691
1750fa04
AC
56922003-05-07 Andrew Cagney <cagney@redhat.com>
5693
5694 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5695 and "regcache" parameters.
5696 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5697
ddf9f258 56982003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5699
5700 * dwarf2read.c (dwarf_decode_lines): Only use output of
5701 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5702 the current address.
5703
87767c29
AC
57042003-05-07 Andrew Cagney <cagney@redhat.com>
5705
5706 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5707 code.
5708
5e7b2f39
JB
57092003-05-07 Jim Blandy <jimb@redhat.com>
5710
5711 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5712 'maint info symtabs' and 'maint info psymtabs'.
5713 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5714 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5715 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5716 Declarations updated.
5717 * maint.c (maintenance_list_command): Delete.
5718 (_initialize_maint_cmds): Update calls to add_cmd.
5719 * gdbcmd.h (maintenancelistlist): Delete declaration.
5720 * cli/cli-cmds.c (maintenancelistlist): Delete.
5721 (init_cmd_lists): Don't initialize it.
5722 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5723
f6684c31
AC
57242003-05-07 Andrew Cagney <cagney@redhat.com>
5725
5726 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5727 "regcache".
5728 (d10v_print_registers_info): Update.
5729 (d10v_dmap_register, d10v_imap_register): Delete functions.
5730 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5731 and "imap_register".
5732 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5733 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5734 * arch-utils.c (generic_remote_translate_xfer_address): Add
5735 "regcache" and "gdbarch" parameters.
5736 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5737 parameter. Change class to multi-arch.
5738 * gdbarch.h, gdbarch.c: Re-generate.
5739 * remote.c (remote_xfer_memory): Use
5740 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5741
e4846b08
JJ
57422003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5743
5744 * infrun.c (prev_pc): Move declaration ahead of proceed().
5745 (proceed): Refresh prev_pc value before resuming.
5746 (stop_stepping): Remove code to refresh prev_pc.
5747
6b71b8ac
KW
57482003-05-06 Kris Warkentin <kewarken@qnx.com>
5749
5750 * nto-tdep.c: Removed stray comment.
5751
47979a4b
KW
57522003-05-06 Kris Warkentin <kewarken@qnx.com>
5753
5754 * i386-nto-tdep.c: Fix old K&R function definitions.
5755 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5756 Also change add_show_from_set() call to add_setshow_cmd().
5757 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5758
00905d52
AC
57592003-05-05 Andrew Cagney <cagney@redhat.com>
5760
5761 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5762 (fprint_dummy_frames): New function.
5763 (maintenance_print_dummy_frames): New function.
5764 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5765 * frame.c (fprint_frame_id): Make global.
5766 * frame.h (fprint_frame_id): Declare.
5767 * Makefile.in (dummy-frame.o): Update dependencies.
5768
b1e29e33
AC
57692003-05-05 Andrew Cagney <cagney@redhat.com>
5770
5771 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5772 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5773 SIZEOF_CALL_DUMMY_WORDS.
5774 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5775 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5776 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5777 CALL_DUMMY_BREAKPOINT_OFFSET.
5778 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5779 CALL_DUMMY_START_OFFSET.
5780 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5781 * gdbarch.h, gdbarch.c: Re-generate.
5782 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5783 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5784 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5785 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5786 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5787 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5788 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5789 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5790 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5791 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5792 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5793 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5794 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5795 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5796 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5797
57982003-05-05 Kris Warkentin <kewarken@qnx.com>
5799
5800 * configure.tgt: Add i[3456]86-*-nto*.
5801 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5802 * nto-tdep.c: New file. Neutrino target support routines.
5803 * nto-tdep.h: New file. Neutrino target header.
5804 * config/tm-qnxnto.h: New file.
5805 * config/i386/i386nto.mt: New file.
5806 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5807
0ce3d317
AC
58082003-05-04 Andrew Cagney <cagney@redhat.com>
5809
5810 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5811 (load_infrun_state): Ditto.
5812 (struct thread_info): Drop "prev_func_name" field.
5813 * thread.c (load_infrun_state): Update.
5814 (save_infrun_state): Update.
5815 * infrun.c (prev_func_name): Delete variable.
5816 (init_wait_for_inferior): Do not clear prev_func_name.
5817 (stop_stepping, keep_going, context_switch): Do not swap
5818 prev_func_name.
5819 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5820 instead of PC_IN_SIGTRAMP.
5821
46654a5b
AC
58222003-05-04 Andrew Cagney <cagney@redhat.com>
5823
5824 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5825 REGISTER_BYTE with register_offset_hack.
5826 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5827 that REGISTER_BYTE is consistent with the regcache.
5828 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5829 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5830
14b08c1b
MK
58312003-05-04 Mark Kettenis <kettenis@gnu.org>
5832
04c8243f
MK
5833 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5834 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5835
14b08c1b
MK
5836 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5837
c7a11e01
JB
58382003-05-03 J. Brobecker <brobecker@gnat.com>
5839
5840 From Thierry Schneider <tpschneider1@yahoo.com>
5841 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5842 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5843 (mi-cmd-symbol.o): Add rule.
5844
7043d8dc
AC
58452003-05-03 Andrew Cagney <cagney@redhat.com>
5846
5847 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5848 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5849 * gdbarch.h, gdbarch.c: Re-generate.
5850 * d10v-tdep.c (d10v_push_dummy_code): New function.
5851 (d10v_gdbarch_init): Set push_dummy_code.
5852 * infcall.c (legacy_push_dummy_code): New function.
5853 (generic_push_dummy_code): New function.
5854 (push_dummy_code): New function.
5855 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5856 instead of dummy_addr, to push_dummy_call. Move call to
5857 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5858 switch.
5859 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5860
92bf2b80
AC
58612003-05-03 Andrew Cagney <cagney@redhat.com>
5862
5863 * disasm.h (print_insn): Declare.
5864 * disasm.c (init_gdb_disassemble_info): New function.
5865 (gdb_disassembly): Call init_gdb_disassemble_info.
5866 (gdb_print_insn): New function.
5867 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5868 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5869 * mcore-tdep.c: Include "disasm.h"
5870 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5871 * d10v-tdep.c: Include "disasm.h".
5872 (display_trace): Call gdb_print_insn, instead of print_insn.
5873 (print_insn): Delete function.
5874 * printcmd.c: Include "disasm.h".
5875 (print_insn): Delete function.
5876 (print_formatted): Call gdb_print_insn, instead of print_insn.
5877 * Makefile.in (printcmd.o): Update dependencies.
5878 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 5879
27d94c49
AC
58802003-05-02 Andrew Cagney <cagney@redhat.com>
5881
82de1e5b
AC
5882 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5883 PC_REGNUM, re-indent.
5884 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5885 PC_REGNUM isn't set.
5886
27d94c49
AC
5887 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5888 * gdbarch.h, gdbarch.c: Re-generate.
5889 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5890 register_virtual_size, pc_regnum, or register_bytes.
5891 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5892 (d10v_register_type): Use D10V_PC_REGNUM.
5893 (d10v_print_registers_info, d10v_read_pc): Ditto.
5894 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5895 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5896
a9c0dc7f
DC
58972003-05-02 David Carlton <carlton@bactrian.org>
5898
5899 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5900 the name with mstrsave.
5901
e33d66ec
EZ
59022003-05-02 Elena Zannoni <ezannoni@redhat.com>
5903
5904 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5905 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5906 (host_charset_name, target_charset_name): New vars for use by
5907 set/show commands.
5908 (host_charset_enum, target_charset_enum): New enums for set/show
5909 commands.
5910 (set_charset_sfunc, set_host_charset_sfunc,
5911 set_target_charset_sfunc): New functions.
5912 (set_host_charset, set_target_charset): Make static.
5913 (list_charsets, set_host_charset_command,
5914 set_target_charset_command): Delete functions.
5915 (show_charset_command): Rewrite as....
5916 (show_charset): Hook this up with the set/show command mechanism.
5917 (_initialize_charset): Change names of charsets to match the
5918 set/show enums. Use host_charset_name and target_charset_name.
5919 Use set/show mechanism for charset, host-charset, target-charset
5920 commands. Do not make 'show host-charset' and 'show
5921 target-charset' be aliases of 'show charset'.
5922
5923 * charset.h (set_host_charset, set_target_charset): Don't export,
5924 they are not used outside the file.
5925
2b6fd0d8
AC
59262003-05-01 Andrew Cagney <cagney@redhat.com>
5927
5928 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5929 (gdb_disassembly): Make "di" non static, always initialize and
5930 cleanup. Always use dis_asm_read_memory.
5931 (gdb_dis_asm_read_memory): Delete function.
5932
6ae2f580
AC
59332003-05-01 Andrew Cagney <cagney@redhat.com>
5934
5935 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5936 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5937
810ecf9f
AC
59382003-04-30 Andrew Cagney <cagney@redhat.com>
5939
5940 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5941 "tm_print_insn_info".
5942 (TARGET_PRINT_INSN_INFO): Delete macro.
5943 (dis_asm_read_memory): Delete function declaration.
5944 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5945 (tm_print_insn_info): Delete variable definition.
5946 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5947 * gdbarch.h, gdbarch.c: Re-generate.
5948 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5949 "deprecated_tm_print_insn_info".
5950 * mcore-tdep.c (mcore_dump_insn): Ditto.
5951 * mips-tdep.c (mips_gdbarch_init): Ditto.
5952 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5953 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5954 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5955 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5956 instead of TARGET_PRINT_INSN_INFO, add comment.
5957 * s390-tdep.c (s390_get_frame_info): Instead of
5958 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5959 (s390_check_function_end, s390_is_sigreturn): Ditto.
5960 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5961 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5962 * disasm.c: Include "gdbcore.h".
5963 (_initialize_disasm): New function, initialize
5964 "deprecated_tm_print_insn_info".
5965 (deprecated_tm_print_insn_info): New variable.
5966 (dis_asm_read_memory): Moved from "corefile.c", made static.
5967 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5968 * Makefile.in (disasm.o): Update dependencies.
5969
07020390
AC
59702003-04-30 Andrew Cagney <cagney@redhat.com>
5971
5972 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5973
a9fa03de
AF
59742003-04-29 Adam Fedor <fedor@gnu.org>
5975
5976 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5977 * infcall.c (find_function_addr): Make non-static.
5978 * infcall.h (find_function_addr): Declare.
5979 * Makefile.in (eval.o): Update dependencies.
5980
1bae87b9
AF
59812003-04-28 Adam Fedor <fedor@gnu.org>
5982
5983 * symtab.c (symbol_find_demangled_name): Check for and demangle
5984 ObjC symbols.
5985 (symbol_init_demangled_name): Init for language_objc as well.
5986
0ba6dca9
AC
59872003-04-28 Andrew Cagney <cagney@redhat.com>
5988
5989 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5990 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5991 * gdbarch.h, gdbarch.c: Re-generate.
5992 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5993 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5994 * inferior.h (deprecated_read_fp): Rename read_fp.
5995 (generic_target_read_fp): Delete declaration.
5996 * regcache.c (generic_target_read_fp): Delete function.
5997 (deprecated_read_fp): Replace read_fp, use
5998 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5999 * d10v-tdep.c (d10v_read_fp): Delete function.
6000 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6001
6002 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6003 deprecated_target_read_fp to generic_target_read_fp.
6004 * sh-tdep.c (sh_gdbarch_init): Ditto.
6005 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6007 * frv-tdep.c (frv_gdbarch_init): Ditto.
6008
6009 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6010 deprecated_fp_regnum.
6011 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6012 * vax-tdep.c (vax_gdbarch_init): Ditto.
6013 * v850-tdep.c (v850_gdbarch_init): Ditto.
6014 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6015 * sh-tdep.c (sh_gdbarch_init): Ditto.
6016 * s390-tdep.c (s390_gdbarch_init): Ditto.
6017 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6018 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6019 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6020 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6022 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6023 * i386-tdep.c (i386_gdbarch_init): Ditto.
6024 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6025 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6026 * frv-tdep.c (frv_gdbarch_init): Ditto.
6027 * cris-tdep.c (cris_gdbarch_init): Ditto.
6028 * avr-tdep.c (avr_gdbarch_init): Ditto.
6029 * arm-tdep.c (arm_gdbarch_init): Ditto.
6030 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6031
6032 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6033 * v850-tdep.c (v850_gdbarch_init): Ditto.
6034 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6035 * sh-tdep.c (sh_gdbarch_init): Ditto.
6036 * s390-tdep.c (s390_gdbarch_init): Ditto.
6037 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6038 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6039 * mips-tdep.c (mips_gdbarch_init): Ditto.
6040 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6041 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6042 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6043 * frv-tdep.c (frv_gdbarch_init): Ditto.
6044 * avr-tdep.c (avr_gdbarch_init): Ditto.
6045 * arm-tdep.c (arm_gdbarch_init): Ditto.
6046
6047 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6048 DEPRECATED_FP_REGNUM.
6049 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6050 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6051 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6052 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6053 (sparc32_register_virtual_type): Ditto.
6054 * sh-tdep.c (sh64_frame_chain): Ditto.
6055 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6056 (sh_nofp_frame_init_saved_regs): Ditto.
6057 (sh64_nofp_frame_init_saved_regs): Ditto.
6058 (sh_fp_frame_init_saved_regs): Ditto.
6059 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6060 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6061 * procfs.c (procfs_fetch_registers): Ditto.
6062 (procfs_store_registers): Ditto.
6063 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6064 (store_inferior_registers, fetch_core_registers): Ditto.
6065 (fetch_kcore_registers, clear_regs): Ditto.
6066 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6067 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6068 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6069 * nlm/i386.c (do_status): Ditto.
6070 * mipsv4-nat.c (supply_gregset): Ditto.
6071 * mips-tdep.c: Ditto for comments.
6072 * mips-nat.c (fetch_inferior_registers): Ditto.
6073 (store_inferior_registers, fetch_core_registers): Ditto.
6074 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6075 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6076 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6077 (i386_do_pop_frame, i386_register_type): Ditto.
6078 * hppa-tdep.c (hppa_frame_chain): Ditto.
6079 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6080 (hppa_pop_frame, hppa_read_fp): Ditto.
6081 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6082 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6083 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6084 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6085 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6086 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6087 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6088 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6089 * blockframe.c: Ditto for comments.
6090 * arch-utils.h: Ditto for comments.
6091 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6092 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6093 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6094 * alpha-tdep.h: Ditto for comments.
6095 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6096 (alpha_cannot_store_register): Ditto.
6097 (alpha_push_dummy_frame): Ditto.
6098 * alpha-nat.c (supply_gregset): Ditto.
6099
6100 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6101 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6102 * config/sparc/tm-sparc.h: Update comment.
6103
6104 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6105 deprecated_read_fp instead of TARGET_READ_FP.
6106 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6107 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6108 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6109 deprecated_read_fp instead of read_fp.
6110 * s390-tdep.c (s390_push_arguments): Ditto.
6111 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6112 * frame.h: Ditto in comments.
6113 * frame.c (legacy_get_prev_frame): Ditto.
6114 * dummy-frame.c (dummy_frame_this_id): Ditto.
6115 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6116
d7a27068
AC
61172003-04-28 Andrew Cagney <cagney@redhat.com>
6118
6119 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6120 * gdbarch.h, gdbarch.c: Re-generate.
6121 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6122 * vax-tdep.c (_initialize_vax_tdep): Update.
6123 * v850-tdep.c (_initialize_v850_tdep): Update.
6124 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6125 * s390-tdep.c (_initialize_s390_tdep): Update.
6126 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6127 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6128 * mips-tdep.c (_initialize_mips_tdep): Update.
6129 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6130 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6131 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6132 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6133 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6134 * frv-tdep.c (_initialize_frv_tdep): Update.
6135 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6136 (_initialize_cris_tdep): Update.
6137 * arch-utils.c (legacy_print_insn): Update.
6138 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6139
d2630e69
AF
61402003-04-26 Adam Fedor <fedor@gnu.org>
6141
6142 * linespec.c (decode_objc): New function to decode ObjC calls
6143 (decode_line_1): Check for ObjC calls (using decode_objc)
6144 * Makefile (linespec.o): Update dependencies.
6145
3086aeae
DJ
61462003-04-26 Daniel Jacobowitz <drow@mvista.com>
6147
6148 * breakpoint.h (struct breakpoint_ops): New.
6149 (struct breakpoint): Add ops member.
6150
6151 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6152 (mention): Use new breakpoint ops member.
6153 (set_raw_breakpoint): Initialize ops field to NULL.
6154 (print_exception_catchpoint, print_one_exception_catchpoint)
6155 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6156 (gnu_v3_exception_catchpoint_ops): New.
6157 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6158
1fbec6c3
AF
61592003-04-25 Adam Fedor <fedor@gnu.org>
6160
6161 * Makefile.in (COMMON_OBS): Add objc-lang.o
6162
0ef21242
AC
61632003-04-25 Andrew Cagney <cagney@redhat.com>
6164
6165 * d10v-tdep.c (print_insn): Delete function.
6166 (display_trace): Use TARGET_PRINT_INSN.
6167 (_initialize_d10v_tdep): Do not set tm_print_insn.
6168 (d10v_gdbarch_init): Set print_insn.
6169
f75493ed
AC
61702003-04-25 Andrew Cagney <cagney@redhat.com>
6171
6172 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6173 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6174 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6175 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6176 (nr_dmap_regs, a0_regnum): ... new functions.
6177 (d10v_print_registers_info): Use a0_regnum, use register_size.
6178 (d10v_register_byte): Delete function.
6179 (d10v_register_raw_size): Delete function.
6180 (d10v_register_type): Use a0_regnum.
6181 (d10v_print_registers_info): Use a0_regnum.
6182 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6183 (d10v_gdbarch_init): Do not set register_byte or
6184 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6185 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6186 extract_address.
6187 (trace_command): Use XCALLOC.
6188 (print_insn): Delete reference to tm_print_insn.
6189 (saved_regs_unwinder): Use store_unsigned_integer instead of
6190 store_address.
6191 * frame.h (FRAME_OBSTACK_CALLOC): Define
6192
2202b100
DC
61932003-04-25 David Carlton <carlton@bactrian.org>
6194
6195 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6196
4e45ca2e
AF
61972003-04-24 Adam Fedor <fedor@gnu.org>
6198
6199 * objc-lang.c: Include "valprint.h"
6200 * Makefile.in (objc-lang.o): Update dependencies.
6201
93de3e7f
AF
62022003-04-24 Adam Fedor <fedor@gnu.org>
6203
8ffd9b1b 6204 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6205 architecture dependant compilation and mark as unimplemented
6206 (until they get put in the gdbarch vector).
6207
0f20eeea
DC
62082003-04-23 David Carlton <carlton@bactrian.org>
6209
6210 * cp-support.c (cp_find_first_component): Accept 'operator' in
6211 more locations.
6212
74cfe982
AC
62132003-04-23 Andrew Cagney <cagney@redhat.com>
6214
6215 * infcall.c (call_function_by_hand): Eliminate redundant
6216 indentation. Move "saved_async" and "old_cleanups" to where they
6217 are needed.
8ffd9b1b 6218
52557533
AC
62192003-04-23 Andrew Cagney <cagney@redhat.com>
6220
6221 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6222 and "buffer". Move the "name" code to where it is needed.
6223
158775de
AC
62242003-04-23 Andrew Cagney <cagney@redhat.com>
6225
6226 * infcall.c (call_function_by_hand): Move variables "start_sp",
6227 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6228 code to ON_STACK switch branch.
8ffd9b1b 6229
ebc7896c
AC
62302003-04-23 Andrew Cagney <cagney@redhat.com>
6231
6232 * infcall.c (call_function_by_hand): Make declaration of "i",
6233 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6234 lint.
6235
d727590f
AC
62362003-04-23 Andrew Cagney <cagney@redhat.com>
6237
6238 * infcall.c (call_function_by_hand): Delete variable
6239 "n_method_args". Localize "param_type"'s declaration to the loop
6240 that it is used. Reinstate code assigning to said variable -
6241 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6242 Rationalize code using "param_type".
6243
d585e13a
AC
62442003-04-22 Andrew Cagney <cagney@redhat.com>
6245
6246 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6247 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6248 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6249 to DEPRECATED_PUSH_RETURN_ADDRESS.
6250
051caad9
KB
62512003-04-22 Kevin Buettner <kevinb@redhat.com>
6252
6253 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6254 on the DWARF2 register number prior to fetching a register.
6255
77296879
JB
62562003-04-22 J. Brobecker <brobecker@gnat.com>
6257
6258 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6259 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6260 this macro was always set to 0.
77296879
JB
6261 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6262 considering the fact that this macro was always set to 0.
6263 * hppa-tdep.h (hppa_store_return_value): Likewise.
6264 (hppa_extract_return_value): Likewise.
6265
4252f1df
JB
62662003-04-22 J. Brobecker <brobecker@gnat.com>
6267
6268 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6269 the hppa-pro target only.
6270
14604c6b
JB
62712003-04-21 J. Brobecker <brobecker@gnat.com>
6272
6273 Ongoing multi-arch conversion effort for HP/UX:
6274 * config/pa/tm-hppa.h: Move all macro that are no longer
6275 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6276 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6277
77eb01d1
JB
62782003-04-21 J. Brobecker <brobecker@gnat.com>
6279
6280 * config/pa/tm-hppa.h: Obsolete a section that was only used
6281 for hppa-pro.
6282
61995b3b
JB
62832003-04-21 J. Brobecker <brobecker@gnat.com>
6284
6285 Ongoing multi-arch conversion for HP/UX.
6286 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6287 if already defined (allows hppa64 to stay non-multiarched for now).
6288 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6289
4aa79dcc
AC
62902003-04-21 Andrew Cagney <cagney@redhat.com>
6291
6292 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6293
0f751ff2
AC
62942003-04-21 Andrew Cagney <cagney@redhat.com>
6295
6296 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6297 "i386_num_mmx_regs".
6298
04714b91
AC
62992003-04-21 Andrew Cagney <cagney@redhat.com>
6300
6301 * infcall.c: New file.
6302 * infcall.h: New file.
6303 * valarith.c: Include "infcall.h".
6304 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6305 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6306 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6307 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6308 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6309 (SFILES): Add "infcall.c"
6310 (COMMON_OBS): Add "infcall.o".
6311 (infcall.o): Specify dependencies.
6312 * value.h (call_function_by_hand): Delete declaration.
6313 * inferior.h (run_stack_dummy): Delete declaration.
6314 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6315 (run_stack_dummy): Move to "infcall.c", merged into
6316 call_function_by_hand.
6317 * valops.c (call_function_by_hand): Moved to "infcall.c".
6318 (find_function_addr, value_arg_coerce): Ditto.
6319 (unwindonsignal_p, coerce_float_to_double): Ditto.
6320 (_initialize_valops): Move "set/show coerce-float-to-double", and
6321 "set/show unwindonsignal" commands to "infcall.c".
6322 * v850-tdep.c, target.h: Update comments.
6323 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6324 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6325 (sh64_init_extra_frame_info): Update comments.
6326 * mn10300-tdep.c: Update comments.
6327 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6328 * config/sparc/tm-sparc.h: Update comments.
6329 * breakpoint.h: Update comments.
6330 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6331 * arm-tdep.c: Update comment.
6332
f9d3c2a8
MK
63332003-04-19 Mark Kettenis <kettenis@gnu.org>
6334
c40e1eab
MK
6335 * i386-tdep.c (i386_num_register_names): New variable.
6336 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6337 (MM0_REGNUM): Remove redundant parentheses in define.
6338 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6339 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6340 i386_mxcsr_regnum_p): Remove redundant parentheses.
6341 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6342
94ea66b3
MK
6343 * i386-tdep.c (i386_extract_return_value,
6344 i386_store_return_value): Correct check for availability of
6345 floating-point registers.
6346
54299a1d
MK
6347 * i386-tdep.c (i386_frame_num_args): Remove function.
6348 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6349
c86c27af
MK
6350 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6351 mmx_regnum_to_fp_regnum. Adjust all callers.
6352
f9d3c2a8
MK
6353 * i386-tdep.c (i386_get_longjmp_target): Use
6354 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6355 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6356 extract_address.
6357
94ba74a9
MK
63582003-04-19 Mark Kettenis <kettenis@gnu.org>
6359
6360 * core-regset.c: Update comments to reflect reality. Re-order
6361 includes.
6362 (fetch_core_registers): Use switch instead of if. Remove
6363 redundant prototype.
6364
4074e13c
JB
63652003-04-18 Jim Blandy <jimb@redhat.com>
6366
6367 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6368 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6369
e3ab4aba
RH
63702003-04-17 Richard Henderson <rth@redhat.com>
6371
6372 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6373
627bf7c1
EZ
63742003-04-17 Michael Snyder <msnyder@redhat.com>
6375 Karen Bennet <bennet@redhat.com>
6376
6377 Committed by Elena Zannoni <ezannoni@redhat.com>
6378 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6379
514621a9
EZ
63802003-04-17 Elena Zannoni <ezannoni@redhat.com>
6381
6382 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6383 value if the return type is void.
514621a9 6384
b4acd559
JJ
63852003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6386
6387 * thread-db.c: Reindented.
8ffd9b1b 6388
530b167e 63892003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6390
6391 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6392 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6393 as types.
6394
0a48e7e8
MS
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
8ffd9b1b 6418
ab9fe00e
KB
64192003-04-16 Kevin Buettner <kevinb@redhat.com>
6420
610a3745 6421 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6422 the size of ``long double'' to 16, instead of 8.
6423
e64a344c
MK
64242003-04-16 Mark Kettenis <kettenis@gnu.org>
6425
6426 * i386-linux-nat.c: Add some whitespace to make things more
6427 readable.
6428 (fetch_register, store_register, fetch_inferior_registers,
6429 store_inferior_registers): Get rid of assignment in if-statement.
6430 (store_register): Fix typo in error message.
6431
25d41031
AC
64322003-04-16 Andrew Cagney <cagney@redhat.com>
6433
6434 * utils.c (xmmalloc): Always allocate something, matches
6435 libiberty/xmalloc's semantics.
6436 (xmrealloc, xmcalloc): Ditto.
6437
c50901fd
AC
64382003-04-16 Andrew Cagney <cagney@redhat.com>
6439
6440 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6441 update comments.
6442 (get_frame_type): Initialize unwind and type when needed.
6443 (get_frame_id, frame_register_unwind): Ditto.
6444
f81824a9
AC
64452003-04-16 Andrew Cagney <cagney@redhat.com>
6446
6447 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6448 obsolete.
6449 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6450 * sparcl-stub.c: Obsolete file.
6451 * config/sparc/tm-sparclet.h: Obsolete file.
6452 * sparclet-stub.c: Obsolete file.
6453 * sparclet-rom.c: Obsolete file.
6454 * sparcl-tdep.c: Obsolete file.
6455 * config/sparc/tm-sparclite.h: Obsolete file.
6456 * config/sparc/sparclite.mt: Obsolete file.
6457 * config/sparc/sparclet.mt: Obsolete file.
6458 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6459 sparc86x-*-* obsolete.
6460
9219021c
DC
64612003-04-15 David Carlton <carlton@math.stanford.edu>
6462
6463 * Makefile.in (SFILES): Add cp-namespace.c.
6464 (COMMON_OBS): Add cp-namespace.o.
6465 (block.o): Depend on gdb_obstack_h and cp_support_h.
6466 (buildsym.o): Depend on cp_support_h.
6467 (cp-namespace.o): New.
6468 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6469 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6470 (dwarf2read.o): Depend on cp_support_h.
6471 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6472 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6473 processing_current_namespace.
6474 (read_namespace): Update processing_current_namespace; check for
6475 anonymous namespaces.
6476 (dwarf2_name): New function.
6477 (dwarf2_extension): Ditto.
6478 * cp-support.h: Update copyright, contributors.
6479 Add inclusion guards.
6480 Add opaque declaration for structs obstack, block, symbol.
6481 (struct using_direct): New struct.
6482 Add declarations for cp_find_first_component,
6483 cp_entire_prefix_len, processing_has_namespace_info,
6484 processing_current_namespace, cp_is_anonymous,
6485 cp_add_using_directive, cp_initialize_namespace,
6486 cp_finalize_namespace, cp_set_block_scope,
6487 cp_scan_for_anonymous_namespaces.
6488 * cp-namespace.c: New file.
6489 * cp-support.c: Update copyright.
6490 Include ctype.h, gdb_assert.h, gdbcmd.h.
6491 New variable maint_cplus_cmd_list.
6492 (cp_find_first_component): New function.
6493 (cp_entire_prefix_len, maint_cplus_command)
6494 (first_component_command, _initialize_cp_support): Ditto.
6495 * buildsym.c: Include cp-support.h.
6496 New variable using_list.
6497 (add_symbol_to_list): Check for anonymous namespaces.
6498 (finish_block): Set block's scope.
6499 (start_symtab): Initialize C++ namespace support.
6500 (end_symtab): Finalize C++ namespace support.
6501 * block.h: Add opaque declarations for structs
6502 block_namespace_info, using_direct, and obstack.
6503 Add declarations for block_set_scope and block_set_using.
6504 (struct block): Add 'language_specific' member.
6505 (BLOCK_NAMESPACE): New macro.
6506 * block.c: Include gdb_obstack.h and cp-support.h.
6507 (struct block_namespace_info): New struct.
6508 (block_set_scope): New function.
6509 (block_set_using, block_initialize_namespace): Ditto.
6510
d5a921c9
KB
65112003-04-14 Kevin Buettner <kevinb@redhat.com>
6512
6513 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6514 (locate_base): Return early if there aren't any link map offsets.
6515 (svr4_solib_create_inferior_hook): Warn if shared library support
6516 is unavailable.
6517
d2a52b27
DC
65182003-04-14 David Carlton <carlton@math.stanford.edu>
6519
6520 * symtab.c (symbol_set_names): Add prefix when storing Java names
6521 in hash table. Fix for PR java/1039.
6522
980cae7a
DC
65232003-04-14 David Carlton <carlton@math.stanford.edu>
6524
6525 * symtab.c (symbol_set_names): Rename 'name' arg to
6526 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6527 * symtab.h: Change 'name' argument in declaration of
6528 symbol_set_names to 'linkage_name'.
6529 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6530
e227b13c
AC
65312003-04-14 Andrew Cagney <cagney@redhat.com>
6532
6533 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6534 return the fully sign-extended register value.
6535 (get_frame_pointer): Ditto.
6536 (mips_pop_frame): Initialize "proc_desc" after checking for a
6537 dummy frame.
6538
36712a20
AC
65392003-04-14 Andrew Cagney <cagney@redhat.com>
6540
6541 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6542 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6543 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6544 (mips_push_register): Delete function.
6545 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6546 PUSH_FP_REGNUM.
6547
44ea7b70
JB
65482003-04-14 Jim Blandy <jimb@redhat.com>
6549
6550 * symmisc.c: #include "gdb_regex.h".
6551 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6552 functions.
6553 * maint.c (maintenance_list_command): New function.
6554 (_initialize_maint_cmds): Register the above as commands.
6555 * symtab.h (maintenance_list_symtabs,
6556 maintenance_list_psymtabs): New declarations.
6557 * cli/cli-cmds.c (maintenancelistlist): New variable.
6558 (init_cmd_lists): Initialize it.
6559 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6560 * gdbcmd.h (maintenancelistlist): New declaration.
6561 * Makefile.in (symmisc.o): Update dependencies.
6562
2d0c7962
EZ
65632003-04-14 Elena Zannoni <ezannoni@redhat.com>
6564
6565 * s390-nat.c: Include asm/types.h for addr_t.
6566
1947a811
CV
65672003-04-14 Corinna Vinschen <vinschen@redhat.com>
6568
6569 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6570 actually incoming type.
6571
adb616d7
AC
65722003-04-13 Andrew Cagney <cagney@redhat.com>
6573
6574 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6575 get_next_frame and get_frame_saved_regs.
6576
9b5e151c
AC
65772003-04-13 Andrew Cagney <cagney@redhat.com>
6578
6579 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6580 of gdbarch_num_regs.
6581
ef6e7e13
AC
65822003-04-13 Andrew Cagney <cagney@redhat.com>
6583
6584 * frame.h: Mention what replaced what in "struct frame_info".
6585 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6586 deprecated_update_frame_base_hack and
6587 deprecated_update_frame_pc_hack.
6588 * hppa-tdep.c: Ditto.
6589
61fbb938
DJ
65902003-04-13 Daniel Jacobowitz <drow@mvista.com>
6591
6592 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6593 to read_reg and update its comment. Remove regnum member.
6594 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6595 Don't call read_reg when setting in_reg. Call read_reg to get
6596 the frame base if it's in a register. Return the register number
6597 on the stack instead of in the context. Remove extra arguments
6598 to read_reg.
6599 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6600 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6601 the register number on the expression stack.
6602 (needs_frame_read_reg): Remove extra arguments.
6603
0d53c4c4
DJ
66042003-04-13 Daniel Jacobowitz <drow@mvista.com>
6605
6606 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6607 made non-static.
6608 (execute_stack_op): All callers updated.
6609 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6610 * dwarf2loc.c (find_location_expression): New function.
6611 (dwarf_expr_frame_base): Call it.
6612 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6613 (dwarf2_tracepoint_var_ref): New function, broken out from
6614 locexpr_tracepoint_var_ref.
6615 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6616 Make static.
6617 (loclist_read_variable, loclist_read_needs_frame): New functions.
6618 (loclist_describe_location, loclist_tracepoint_var_ref): New
6619 functions.
6620 (dwarf2_loclist_funcs): New struct location_funcs.
6621 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6622 (struct dwarf2_locexpr_baton): Add comments.
6623 (dwarf2_loclist_funcs): New extern.
6624 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6625 base_address and base_known.
6626 (dwarf_loc_buffer): New variable.
6627 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6628 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6629 (dwarf2_has_info): Initialize dwarf_loc_offset.
6630 (dwarf2_build_psymtabs): Read in .debug_loc.
6631 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6632 DWARF_LOC_SIZE.
6633 (psymtab_to_symtab_1): Likewise. Move base address calculation
6634 here, from...
6635 (dwarf2_get_pc_bounds): ... here. Use the base address from
6636 cu_header.
6637 (dwarf2_symbol_mark_computed): Handle location lists.
6638
6aca59a3
DJ
66392003-04-13 Daniel Jacobowitz <drow@mvista.com>
6640
6641 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6642 if the linkage name demangled successfully.
6643
aca1fcd0
MK
66442003-04-13 Mark Kettenis <kettenis@gnu.org>
6645
97095916
MK
6646 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6647 disassmbly_flavour): Removed.
6648
aca1fcd0
MK
6649 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6650
562a961f
MK
66512003-04-13 Mark Kettenis <kettenis@gnu.org>
6652
6653 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6654
bd013d54
AC
66552003-04-12 Andrew Cagney <cagney@redhat.com>
6656
6657 * frame.h (struct frame_info): Move definition from here ...
6658 * frame.c (struct frame_info): ... to here.
6659
167ef8b1
AC
66602003-04-12 Andrew Cagney <cagney@redhat.com>
6661
6662 * gdbthread.h (save_infrun_state): Delete parameter
6663 "prev_func_start".
6664 (struct thread_info): Delete field "prev_func_start".
6665 (load_infrun_state): Ditto.
6666 * thread.c (load_infrun_state, save_infrun_state): Update.
6667 * infrun.c (prev_func_start): Delete variable.
6668 (context_switch, init_wait_for_inferior): Update.
6669 (stop_stepping, keep_going): Update.
6670
da3331ec
AC
66712003-04-12 Andrew Cagney <cagney@redhat.com>
6672
6673 * gdbarch.sh: Add missing opaque declarations.
6674 * gdbarch.h: Regnerate.
6675 * symtab.h: Add missing opaque declarations.
6676 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6677 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6678 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6679 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6680 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6681 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6682 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6683 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6684 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6685 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6686 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6687 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6688 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6689
18adea3f
AC
66902003-04-11 Andrew Cagney <cagney@redhat.com>
6691
6692 * frame.c (get_frame_id): Return this frame's "id".
6693 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6694 function start.
6695 (legacy_saved_regs_this_id): Replace function body with
6696 internal-error.
6697 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6698 FRAME_OBSTACK_ZALLOC.
6699 (create_new_frame): Mark the frame ID as valid.
6700
2252e863
AO
67012003-04-11 Alexandre Oliva <aoliva@redhat.com>
6702
6703 * Makefile.in (libbfd_h): Added missing setting.
6704 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6705 according to the selected ABI.
6706
a8245ab8
JJ
67072003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6708
6709 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6710
6913c89a
AC
67112003-04-11 Andrew Cagney <cagney@redhat.com>
6712
6713 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6714 SAVED_PC_AFTER_CALL.
6715 * gdbarch.h, gdbarch.c: Regenerate.
6716 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6717 * x86-64-tdep.c (x86_64_init_abi): Update.
6718 * vax-tdep.c (vax_gdbarch_init): Update.
6719 * v850-tdep.c (v850_gdbarch_init): Update.
6720 * sparc-tdep.c (sparc_gdbarch_init): Update.
6721 * sh-tdep.c (sh_gdbarch_init): Update.
6722 * s390-tdep.c (s390_gdbarch_init): Update.
6723 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6724 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6725 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6726 * mips-tdep.c (mips_gdbarch_init): Update.
6727 * mcore-tdep.c (mcore_gdbarch_init): Update.
6728 * m68k-tdep.c (m68k_gdbarch_init): Update.
6729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6730 * ia64-tdep.c (ia64_gdbarch_init): Update.
6731 (ia64_saved_pc_after_call): Update declaration.
6732 * i386ly-tdep.c (i386lynx_init_abi): Update.
6733 * i386-tdep.c (i386_gdbarch_init): Update.
6734 * hppa-tdep.c (hppa_gdbarch_init): Update.
6735 * h8300-tdep.c (h8300_gdbarch_init): Update.
6736 * frv-tdep.c (frv_gdbarch_init): Update.
6737 * cris-tdep.c (cris_gdbarch_init): Update.
6738 * avr-tdep.c (avr_gdbarch_init): Update.
6739 * arm-tdep.c (arm_gdbarch_init): Update.
6740 * alpha-tdep.c (alpha_gdbarch_init): Update.
6741 * ns32knbsd-nat.c (frame_num_args): Update.
6742 * ns32k-tdep.c (umax_frame_num_args): Update.
6743 * mips-tdep.c (mips_init_frame_pc_first): Update.
6744 * infrun.c (step_over_function): Update.
6745 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6746 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6747 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6748 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6749 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6750 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6751 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6752 * arch-utils.c (init_frame_pc_default): Update.
6753 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6754 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6755 declaration.
8ffd9b1b 6756
38edeab8
AC
67572003-04-11 Andrew Cagney <cagney@redhat.com>
6758
6759 * i387-tdep.c: Update copyright.
6760 (i387_to_double): Delete function.
6761 (double_to_i387): Delete function.
6762
81f8a206
AC
67632003-04-10 Andrew Cagney <cagney@redhat.com>
6764
6765 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6766 frame's function's address. Simplify.
6767 (d10v_frame_unwind_cache): Check that the frame's function is
6768 non-zero.
6769
6e691f7a
JB
67702003-04-10 Jim Blandy <jimb@redhat.com>
6771
6772 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6773 call to set_gdbarch_deprecated_push_arguments.
6774
7f78e237
AC
67752003-04-10 Andrew Cagney <cagney@redhat.com>
6776
6777 * frame.c (fprint_frame_id): New function.
6778 (fprint_frame_type, fprint_frame): New function.
6779 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6780 (create_sentinel_frame, get_frame_id): Ditto.
6781 (frame_id_p, frame_id_eq): Ditto.
6782 (frame_id_inner, create_new_frame): Ditto.
6783 (legacy_get_prev_frame, get_prev_frame): Ditto.
6784 (deprecated_update_frame_pc_hack): Ditto.
6785 (frame_register_unwind): Ditto.
6786 (deprecated_update_frame_base_hack): Ditto.
6787
f870b49b
CV
67882003-04-10 Corinna Vinschen <vinschen@redhat.com>
6789
6790 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6791 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6792 frame_chain function.
6793 * Makefile.in: Add dependencies due to above change.
6794
7c86889b
CV
67952003-04-10 Corinna Vinschen <vinschen@redhat.com>
6796
6797 * blockframe.c (legacy_frame_chain_valid): Move call to
6798 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6799 inside_entry_file.
6800
d0a55772
AC
68012003-04-09 Andrew Cagney <cagney@redhat.com>
6802
6803 * frame.h (struct frame_id): Replace "pc" and "base" with
6804 "stack_addr" and "code_addr". Update comments.
6805 (frame_id_build): Update parameter names and comment.
6806 (struct frame_info): Replace "id_p" and "id" with "this_id".
6807 * dummy-frame.c (dummy_frame_this_id): Update.
6808 * breakpoint.c (print_one_breakpoint): Update.
6809 * frame.c (get_frame_id): Update.
6810 (get_frame_base, frame_id_build): Update.
6811 (create_sentinel_frame, legacy_get_prev_frame): Update.
6812 (deprecated_update_frame_base_hack): Update.
6813 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6814 (frame_id_inner): Ditto.
6815
ac16bf07
AC
68162003-04-09 Andrew Cagney <cagney@redhat.com>
6817
6818 * defs.h (gdb_print_host_address): Make "addr" parameter a
6819 pointer constant.
6820 * utils.c (gdb_print_host_address): Update.
6821
366cfc9e
KB
68222003-04-09 Kevin Buettner <kevinb@redhat.com>
6823
6824 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6825 register number for R0 is 0.
6826
cd983b5c
JB
68272003-04-09 J. Brobecker <brobecker@gnat.com>
6828
6829 * frame.h (struct gdbarch): Add opaque structure definition
6830 to avoid a compilation warning on LynxOS 4.0.
6831
d1340264
AC
68322003-04-09 Andrew Cagney <cagney@redhat.com>
6833
6834 * frame.h (struct frame_info): Delete field "pc". Replace
6835 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6836 structure.
6837 * frame.c (frame_pc_unwind): Update.
6838 (create_sentinel_frame): Do not set "pc".
6839 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6840 (get_frame_pc): Call frame_pc_unwind.
6841 (deprecated_update_frame_pc_hack): Update.
6842 (create_new_frame): Use "pc" not "->pc".
6843
90a6fffb
AC
68442003-04-09 Andrew Cagney <cagney@redhat.com>
6845
6846 * frame.c (get_frame_id): Eliminate code updating "frame".
6847 (legacy_get_prev_frame): Ditto.
6848 (get_frame_base): Return id.base directly.
6849 (deprecated_update_frame_base_hack): Update "id.base".
6850 * frame.h (struct frame_info): Delete field "frame".
6851
2fbce691
AC
68522003-04-09 Andrew Cagney <cagney@redhat.com>
6853
6854 * NEWS: Mention that the "Sequent family" is obsolete.
6855 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6856 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6857 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6858 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6859 * config/i386/tm-ptx4.h: Obsolete file.
6860 * config/i386/tm-ptx.h: Obsolete file.
6861 * symm-tdep.c: Obsolete file.
6862 * config/i386/symmetry.mt: Obsolete file.
6863 * config/i386/tm-symmetry.h: Obsolete file.
6864 * symm-nat.c: Obsolete file.
6865 * config/i386/nm-symmetry.h: Obsolete file.
6866 * config/i386/xm-symmetry.h: Obsolete file.
6867 * config/i386/symmetry.mh: Obsolete file.
6868 * config/i386/nm-ptx4.h: Obsolete file.
6869 * config/i386/ptx4.mh: Obsolete file.
6870 * config/i386/ptx.mt: Obsolete file.
6871 * config/i386/ptx.mh: Obsolete file.
6872 * config/i386/xm-ptx4.h: Obsolete file.
6873 * config/i386/xm-ptx.h: Obsolete file.
6874
78c43945
AC
68752003-04-09 Andrew Cagney <cagney@redhat.com>
6876
6877 Obsolete mips*-*-mach3*.
6878 * NEWS: Mention that mips*-*-mach3* is obsolete.
6879 * m3-nat.c: Obsolete file.
6880 * config/nm-m3.h: Obsolete file.
6881 * config/mips/tm-mipsm3.h: Obsolete file.
6882 * config/mips/mipsm3.mt: Obsolete file.
6883 * config/mips/mipsm3.mh: Obsolete file.
6884 * config/mips/xm-mipsm3.h: Obsolete file.
6885 * mipsm3-nat.c: Obsolete file.
6886 * configure.host: Obsolete mips-dec-mach3*.
6887 * configure.tgt: Obsolete mips*-*-mach3*.
6888
f1908289
AC
68892003-04-09 Andrew Cagney <cagney@redhat.com>
6890
6891 * doublest.h: Update copyright.
6892 (deprecated_store_floating, deprecated_extract_floating): Rename
6893 store_floating and extract_floating. Update comments.
6894 * doublest.c: Update copyright.
6895 (extract_floating_by_length): Replace extract_floating.
6896 (store_floating_by_length): Replace store_floating.
6897 (deprecated_extract_floating): New function.
6898 (deprecated_store_floating): New function.
6899 (extract_typed_floating): Call extract_floating_by_length.
6900 (store_typed_floating): Call store_floating_by_length.
6901 * x86-64-tdep.c (x86_64_store_return_value): Update.
6902 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6903 (sh64_extract_return_value): Update.
6904 (sh_sh4_register_convert_to_virtual): Update.
6905 (sh_sh64_register_convert_to_virtual): Update.
6906 (sh_sh4_register_convert_to_raw): Update.
6907 (sh_sh64_register_convert_to_raw): Update.
6908 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6909 (rs6000_register_convert_to_raw): Update.
6910 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6911 (ia64_register_convert_to_raw): Update.
6912 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6913 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6914 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6915 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6916 (alpha_register_convert_to_raw): Update.
6917
4443bd83
AC
69182003-04-08 Andrew Cagney <cagney@redhat.com>
6919
6920 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6921 * gdbarch.h, gdbarch.c: Re-generate.
6922 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6923 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6924 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6925 conditionally, use frame_pc_unwind as an alternative. Add
6926 comments.
6927 * arch-utils.c (init_frame_pc_default): Only call
6928 SAVED_PC_AFTER_CALL when available.
6929
c0236d92
EZ
69302003-04-08 Elena Zannoni <ezannoni@redhat.com>
6931
fbe586ae 6932 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6933 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6934 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6935 (start_remote): Ditto.
6936 (handle_inferior_event): Ditto.
6937 (save_inferior_status): Ditto.
6938 (restore_inferior_status): Ditto.
6939 * infcmd.c (attach_command): Ditto.
6940 * fork-child.c (startup_inferior): Ditto.
fbe586ae 6941 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6942 * alpha-tdep.c (heuristic_proc_start): Ditto.
6943 * mips-tdep.c (heuristic_proc_start): Ditto.
6944 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6945 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6946 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6947 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6948 * remote-vx.c (vx_create_inferior): Ditto.
6949
69502003-04-08 Elena Zannoni <ezannoni@redhat.com>
6951
6952 * infrun.c (stop_soon_quietly): Make it an enum, to better
6953 override the default behavior of handle_inferior_event.
6954 (clear_proceed_status): Update uses of stop_soon_quietly to
6955 reflect that it is now an enum.
6956 (start_remote): Ditto.
6957 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6958 is set to handle the new GNU/Linux kernel behavior for
6959 attach/sigstop. Update uses of stop_soon_quietly.
6960 * inferior.h (enum stop_kind): New enum.
6961 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6962 Reset normal handle_inferior_event behavior, afterwards.
6963 * fork-child.c (startup_inferior): Update.
6964 * alpha-tdep.c (heuristic_proc_start): Update.
6965 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6966 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6967 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6968 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6969 * remote-vx.c (vx_create_inferior): Update.
6970 * mips-tdep.c (heuristic_proc_start): Update.
6971
1211bce3
EZ
69722003-04-07 Elena Zannoni <ezannoni@redhat.com>
6973
6974 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 6975 be freed more than once, causing wild memory corruptions.
1211bce3 6976 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 6977 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 6978 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 6979 with the "core" target.
1211bce3 6980
f0ef6b29
KB
69812003-04-07 Kevin Buettner <kevinb@redhat.com>
6982
6983 * mips-tdep.c (mips_print_fp_register): New function, created from
6984 do_fp_register_row(). Registers are now (also) printed as hex.
6985 Only one register is printed per row.
6986 (mips_print_register, do_fp_register_row): Print floating point
6987 registers with mips_print_fp_register().
6988
8cf71652
AC
69892003-04-06 Andrew Cagney <cagney@redhat.com>
6990
5e488a7b
AC
6991 * valprint.h (inspect_it): Add extern declaration.
6992 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6993 (selectors_info, classes_info): Ditto.
6994 (find_objc_msgcall): Fix indentation.
6995 (objc_printstr): Delete extern declarations.
6996
8cf71652
AC
6997 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6998
e6ba3bc9
AC
69992003-04-06 Andrew Cagney <cagney@redhat.com>
7000
7001 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7002 Update comment.
7003 * frame.c (legacy_saved_regs_this_id): Update.
7004 (legacy_get_prev_frame): Update.
7005 * xstormy16-tdep.c: Update comment.
7006 * sparc-tdep.c (sparc_frame_chain): Update comment.
7007 * blockframe.c (legacy_frame_chain_valid): Update.
7008
55e1d7e7
AC
70092003-04-06 Andrew Cagney <cagney@redhat.com>
7010
996179ee
AC
7011 * valprint.c (val_print_type_code_int): Delete #ifdef
7012 PRINT_TYPELESS_INTEGER code.
7013
55e1d7e7
AC
7014 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7015 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7016 multi-arch definition.
7017 * gdbarch.h: Re-generate.
7018
43bd9a9e
AC
70192003-04-05 Andrew Cagney <cagney@redhat.com>
7020
7021 Eliminate FRAME_FIND_SAVED_REGS.
7022 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7023 Change FSR parameter to a pointer.
7024 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7025 Assume FSR parameter is a pointer.
7026 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7027 Make fsr a pointer.
7028 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7029 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7030 saved_regs a pointer.
7031 (hppa_frame_saved_pc): Ditto.
7032 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7033 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7034 pointer.
7035 (restore_pc_queue): Make fsr a pointer.
7036 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7037 (hppa_frame_chain): Make saved_regs a pointer, call
7038 hppa_frame_init_saved_regs.
7039 * sparc-tdep.c: Include "gdb_assert.h".
7040 (sparc_frame_find_saved_regs): Replace internal_error with
7041 gdb_assert.
7042 * remote-vxsparc.c (vx_read_register): Delete reference to
7043 FRAME_FIND_SAVED_REGS.
7044 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7045 * gdbarch.h: Regenerate.
7046 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7047 (deprecated_get_frame_saved_regs): Delete declaration.
7048 (struct frame_saved_regs): Delete definition.
7049 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7050 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7051 (hppa_frame_find_saved_regs): Delete declaration.
7052 (FRAME_FIND_SAVED_REGS): Delete macro.
7053 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7054 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7055 FRAME_FIND_SAVED_REGS in comment.
7056
be41e9f4
AC
70572003-04-05 Andrew Cagney <cagney@redhat.com>
7058
7059 * frame.c (frame_func_unwind, get_frame_func): New functions.
7060 * frame.h (get_frame_func, frame_func_unwind): Declare.
7061 (struct frame_info): Add field "prev_func" for caching the
7062 previous frame's function address.
7063 * arm-tdep.c (arm_frameless_function_invocation): Combine
7064 get_pc_function_start and get_frame_pc into get_frame_func.
7065 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7066 (sh64_nofp_frame_init_saved_regs): Ditto.
7067 * s390-tdep.c (s390_function_start): Ditto.
7068 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7069 (rs6000_frameless_function_invocation): Ditto.
7070 (rs6000_frame_saved_pc): Ditto.
7071 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7072 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7073 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7074 (i386_frame_init_saved_regs): Ditto.
7075 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7076 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7077 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7078 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7079 * blockframe.c (frameless_look_for_prologue): Ditto.
7080
a01dd7cc
AC
70812003-04-05 Andrew Cagney <cagney@redhat.com>
7082
7083 * frame.c (legacy_get_prev_frame): Link prev to next at the
7084 function start. Update comments.
7085
5e5592e6
AC
70862003-04-05 Andrew Cagney <cagney@redhat.com>
7087
7088 * frame.c (get_frame_id): Update comment.
7089 (legacy_get_prev_frame): Update comment.
7090 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7091 * gdbarch.h: Regenerate.
7092 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7093 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7094
6fba5002
AC
70952003-04-05 Andrew Cagney <cagney@redhat.com>
7096
7097 * stack.c (print_frame_info): Use get_frame_pc.
7098
7df05f2b
AC
70992003-04-04 Andrew Cagney <cagney@redhat.com>
7100
7101 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7102 the frame's type from the unwinder.
7103 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7104 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7105 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7106 (get_frame_base_address): Use get_frame_type.
7107 (get_frame_locals_address, get_frame_args_address): Ditto.
7108 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7109 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7110 (struct frame_info): Add comment explaining why the frame contains
7111 a "type" field.
7112 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7113 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7114 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7115 NORMAL_FRAME.
7116 * frame-unwind.h: Include "frame.h".
7117 (struct frame_unwind): Add "type" field.
7118 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7119
11889732
AC
71202003-04-04 Andrew Cagney <cagney@redhat.com>
7121
7122 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7123 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7124 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7125 get_frame_base.
7126 (d10v_unwind_dummy_id): Use frame_id_build.
7127 * frame.c (find_frame_sal): Use get_frame_pc.
7128 (create_new_frame): Use deprecated_update_frame_pc_hack and
7129 deprecated_update_frame_base_hack.
7130 (create_sentinel_frame): Add comment about ->pc going away.
7131 (get_prev_frame): Add comment about ->pc going away.
7132 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7133 frame_id_build, deprecated_update_frame_pc_hack and
7134 deprecated_update_frame_base_hack.
7135 (select_frame): Use get_frame_pc.
7136 (legacy_saved_regs_this_id): Use frame_id_build.
7137
50c46a0d
EZ
71382003-04-04 Elena Zannoni <ezannoni@redhat.com>
7139
fbe586ae
RH
7140 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7141 signed integer case.
7142 (classify_argument): Handle enumerations and references.
50c46a0d 7143
50bbdbd9
AC
71442003-04-04 Andrew Cagney <cagney@redhat.com>
7145
7146 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7147 ID to NULL.
7148
36018d2e
AF
71492003-04-01 Adam Fedor <fedor@gnu.org>
7150
7151 * gdb/objc-lang.c (selectors_info): Replace calls to
7152 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7153 SYMBOL_NATURAL_NAME.
7154 (classes_info, find_methods): Likewise.
7155
35cec841
KB
71562003-04-03 Kevin Buettner <kevinb@redhat.com>
7157
7158 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7159 ``mach'' to the value determined by bfd_default_set_arch_mach().
7160
43136899
BR
71612003-04-02 Bob Rossi <bob_rossi@cox.net>
7162
7163 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7164 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7165 (mi-cmd-file.o): Update dependencies.
7166
040b99fd
KB
71672003-04-01 Kevin Buettner <kevinb@redhat.com>
7168
7169 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7170 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7171
9a3d7dfd
AF
71722003-04-01 Adam Fedor <fedor@gnu.org>
7173
7174 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7175 * language.h (struct language_defn): Add la_demangle.
7176 (language_demangle): Declare.
7177 * language.c (language_demangle): New function.
7178 (unk_lang_demangle): Likewise.
7179 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7180 Add ukn_lang_demangle.
9a3d7dfd 7181 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7182 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7183 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7184 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7185 * jv-lang.c (java_demangle): New function
7186 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7187 * objc-lang.c (objc_demangle): Add options argument
7188 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7189 * maint.c (maintenance_demangle): Replace switch with
7190 call to language_demangle.
7191 * utils.c (fprintf_symbol_filtered): Likewise.
7192
5e074003
AC
71932003-04-01 Andrew Cagney <cagney@redhat.com>
7194
7195 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7196 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7197 PRINT_TYPELESS_INTEGER.
7198 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7199 PUSH_RETURN_ADDRESS.
7200
270cb5d6
AC
72012003-04-01 Andrew Cagney <cagney@redhat.com>
7202
7203 * Makefile.in (d10v-tdep.o): Update dependencies.
7204 * d10v-tdep.c: Include "frame-base.h".
7205 (d10v_frame_unwind): Make constant.
7206 (d10v_frame_base_address): New function.
7207 (d10v_frame_base): New variable.
7208 (d10v_gdbarch_init): Set frame_base default.
7209 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7210 comment for base.
7211 (d10v_frame_unwind_cache): Set and use "prev_sp".
7212 (d10v_frame_this_id): Use the previous frame's inner most stack
7213 address and this frame's func address for the frame ID. Use
7214 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7215
6bfb3e36
AC
72162003-04-01 Andrew Cagney <cagney@redhat.com>
7217
7218 * frame.h (get_frame_locals_address, get_frame_args_address):
7219 Refer to the base address, instead of the address of the first
7220 local or parameter.
8ffd9b1b 7221
da62e633
AC
72222003-04-01 Andrew Cagney <cagney@redhat.com>
7223
7224 Add frame debug info addresses:
7225 * frame-base.c: New file.
7226 * frame-base.h: New file.
7227 * frame.h (struct frame_base): Add opaque declaration.
7228 (get_frame_base): Update comment.
7229 (get_frame_base_address): Declare.
7230 (get_frame_locals_address): Declare.
7231 (get_frame_args_address): Declare.
7232 (struct frame_info): Add "base" and "base_cache". Update
7233 comments on the unwinder.
7234 * frame.c: Include "frame-base.h".
7235 (get_frame_locals_address): New function.
7236 (get_frame_base_address): New function.
7237 (get_frame_args_address): New function.
7238 * findvar.c (read_var_value): Use get_frame_locals_address and
7239 get_frame_args_address.
7240 * stack.c (frame_info): Use get_frame_locals_address and
7241 get_frame_args_address.
7242 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7243 moved to "frame-base.c".
7244 * printcmd.c (print_frame_nameless_args): Ditto.
7245 * symtab.h (address_class): Update comments.
7246 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7247 get_frame_base_address.
7248 * dwarf2expr.c (execute_stack_op): Ditto.
7249 * Makefile.in (frame_base_h): Define.
7250 (frame.o): Update dependencies.
7251 (frame-base.o): Add dependencies.
7252 (SFILES): Add frame-base.c.
7253 (COMMON_OBS): Add frame-base.o.
7254
3d30e9c2
AC
72552003-04-01 Andrew Cagney <cagney@redhat.com>
7256
7257 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7258 CALL_DUMMY_LENGTH): Ditto.
7259 * gdbarch.c: Re-generate.
7260 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7261 (CALL_DUMMY_LENGTH): Delete macro.
7262 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7263 * arm-tdep.c (arm_gdbarch_init): Ditto.
7264 * avr-tdep.c (avr_gdbarch_init): Ditto.
7265 * cris-tdep.c (cris_gdbarch_init): Ditto.
7266 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7267 * frv-tdep.c (frv_gdbarch_init): Ditto.
7268 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7269 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7270 * i386-tdep.c (i386_gdbarch_init): Ditto.
7271 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7272 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7273 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7274 * mips-tdep.c (mips_gdbarch_init): Ditto.
7275 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7276 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7277 * s390-tdep.c (s390_gdbarch_init): Ditto.
7278 * sh-tdep.c (sh_gdbarch_init): Ditto.
7279 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7280 * v850-tdep.c (v850_gdbarch_init): Ditto.
7281 * vax-tdep.c (vax_gdbarch_init): Ditto.
7282 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7283
ce0c7262
CV
72842003-04-01 Corinna Vinschen <vinschen@redhat.com>
7285
7286 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7287
73dd234f
AC
72882003-04-01 Andrew Cagney <cagney@redhat.com>
7289
7290 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7291 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7292 * gdbarch.h, gdbarch.c: Re-generate.
7293 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7294 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7295 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7296 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7297 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7298 * infcmd.c (run_stack_dummy): Simplify assuming
7299 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7300 * infrun.c (handle_inferior_event): Ditto.
7301 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7302 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7303 * arm-tdep.c (arm_gdbarch_init): Ditto.
7304 * avr-tdep.c (avr_gdbarch_init): Ditto.
7305 * cris-tdep.c (cris_gdbarch_init): Ditto.
7306 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7307 * frv-tdep.c (frv_gdbarch_init): Ditto.
7308 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7309 * i386-tdep.c (i386_gdbarch_init): Ditto.
7310 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7312 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7313 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7314 * mips-tdep.c (mips_gdbarch_init): Ditto.
7315 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7316 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7317 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7318 * s390-tdep.c (s390_gdbarch_init): Ditto.
7319 * sh-tdep.c (sh_gdbarch_init): Ditto.
7320 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7321 * v850-tdep.c (v850_gdbarch_init): Ditto.
7322 * vax-tdep.c (vax_gdbarch_init): Ditto.
7323 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7324
97606a13
DJ
73252003-04-01 Daniel Jacobowitz <drow@mvista.com>
7326
7327 * symfile.c (symfile_relocate_debug_section): Update call to
7328 bfd_simple_get_relocated_section_contents.
7329
e8ab51f7
AC
73302003-03-31 Andrew Cagney <cagney@redhat.com>
7331
7332 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7333 * gdbarch.h, gdbarch.c: Regenerate.
7334 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7335 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7336 available.
7337 * frame.h (generic_fix_call_dummy): Delete declaration.
7338 * dummy-frame.h: Update comment.
7339 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7340 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7341 fix_call_dummy.
7342 * sh-tdep.c (sh_gdbarch_init): Ditto.
7343 * s390-tdep.c (s390_gdbarch_init): Ditto.
7344 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7345 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7346 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7347 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7348 * i386-tdep.c (i386_gdbarch_init): Ditto.
7349 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7350 * frv-tdep.c (frv_gdbarch_init): Ditto.
7351 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7352 * cris-tdep.c (cris_gdbarch_init): Ditto.
7353 * avr-tdep.c (avr_gdbarch_init): Ditto.
7354 * arm-tdep.c (arm_gdbarch_init): Ditto.
7355
018d1b48
JB
73562003-03-31 J. Brobecker <brobecker@gnat.com>
7357
7358 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7359 (INIT_FRAME_AP): Likewise.
7360 (EXTRA_FRAME_INFO): Likewise.
7361
e9a2674e
AC
73622003-03-31 Andrew Cagney <cagney@redhat.com>
7363
7364 * gdbarch.sh: Include "symfile.h".
7365 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7366 * gdbarch.h, gdbarch.c: Re-generate.
7367 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7368 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7369 call_dummy_address, the default is at entry_point_address.
7370 * v850-tdep.c (v850_gdbarch_init): Ditto.
7371 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7372 * sh-tdep.c (sh_gdbarch_init): Ditto.
7373 * s390-tdep.c (s390_gdbarch_init): Ditto.
7374 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7375 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7376 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7377 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7378 * i386-tdep.c (i386_gdbarch_init): Ditto.
7379 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7380 * frv-tdep.c (frv_gdbarch_init): Ditto.
7381 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7382 * cris-tdep.c (cris_gdbarch_init): Ditto.
7383 * arm-tdep.c (arm_gdbarch_init): Ditto.
7384
e8a8712a
AC
73852003-03-31 Andrew Cagney <cagney@redhat.com>
7386
7387 * gdbarch.sh (CALL_DUMMY_P): Delete.
7388 * gdbarch.h, gdbarch.c: Re-generate.
7389 * inferior.h (CALL_DUMMY_P): Delete macro.
7390 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7391 * vax-tdep.c (vax_gdbarch_init): Update.
7392 * v850-tdep.c (v850_gdbarch_init): Update.
7393 * sparc-tdep.c (sparc_gdbarch_init): Update.
7394 * sh-tdep.c (sh_gdbarch_init): Update.
7395 * s390-tdep.c (s390_gdbarch_init): Update.
7396 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7397 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7398 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7399 * mips-tdep.c (mips_gdbarch_init): Update.
7400 * mcore-tdep.c (mcore_gdbarch_init): Update.
7401 * m68k-tdep.c (m68k_gdbarch_init): Update.
7402 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7403 * ia64-tdep.c (ia64_gdbarch_init): Update.
7404 * i386-tdep.c (i386_gdbarch_init): Update.
7405 * h8300-tdep.c (h8300_gdbarch_init): Update.
7406 * frv-tdep.c (frv_gdbarch_init): Update.
7407 * d10v-tdep.c (d10v_gdbarch_init): Update.
7408 * cris-tdep.c (cris_gdbarch_init): Update.
7409 * breakpoint.c (deprecated_frame_in_dummy): Update.
7410 * avr-tdep.c (avr_gdbarch_init): Update.
7411 * alpha-tdep.c (alpha_gdbarch_init): Update.
7412 * arm-tdep.c (arm_gdbarch_init): Update.
7413 * dummy-frame.c (dummy_frame_this_id): Update comments.
7414 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7415 * frame.c (legacy_get_prev_frame): Ditto.
7416 * valops.c (call_function_by_hand): Delete function.
7417 (hand_function_call): Rename to call_function_by_hand
7418
ed234cf8
AC
74192003-03-30 Andrew Cagney <cagney@redhat.com>
7420
7421 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7422 * value.h (struct value): Update comment.
ed234cf8 7423
06c77151
AC
74242003-03-30 Andrew Cagney <cagney@redhat.com>
7425
6c2b5168
AC
7426 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7427 D10V_FP_REGNUM.
7428 (d10v_gdbarch_init): Do not set fp_regnum.
7429
06c77151
AC
7430 * frame.c (get_frame_base): Force ID initialization.
7431 (get_prev_frame): Move computation of the frame ID from here ...
7432 (get_frame_id): ... to here.
7433 (legacy_get_prev_frame): Mark the frame ID as valid.
7434 * frame.h (struct frame_info): Add field "id_p".
7435
97a1a11c
MK
74362003-03-30 Mark Kettenis <kettenis@gnu.org>
7437
7438 * i386-tdep.c (i386_store_struct_return): Removed.
7439 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7440
6c0e89ed
AC
74412003-03-30 Andrew Cagney <cagney@redhat.com>
7442
7443 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7444 * gdbarch.h, gdbarch.c: Regenerate.
7445 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7446 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7447 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7448 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7449 * i386-tdep.c (i386_gdbarch_init): Ditto.
7450 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7451 * cris-tdep.c (cris_gdbarch_init): Ditto.
7452 * vax-tdep.c (vax_gdbarch_init): Ditto.
7453 * s390-tdep.c (s390_gdbarch_init): Ditto.
7454 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7455 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7456 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7457 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7458 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7459 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7460 * sparc-tdep.c (sparc_gdbarch_init): Update.
7461 * sh-tdep.c (sh_gdbarch_init): Update.
7462 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7463 * mips-tdep.c (mips_gdbarch_init): Update.
7464 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7465 * ia64-tdep.c (ia64_gdbarch_init): Update.
7466 * frv-tdep.c (frv_gdbarch_init): Update.
7467 * avr-tdep.c (avr_gdbarch_init): Update.
7468 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7469 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7470 instead of when push_dummy_call is not available.
8ffd9b1b 7471
f7dd6af2
AC
74722003-03-30 Andrew Cagney <cagney@redhat.com>
7473
7474 * infttrace.c: Include "gdbthread.h".
7475 (parent_attach_all): Fix function signature.
7476 (call_ptrace): Update call.
7477 * Makefile.in (infttrace.o): Update dependencies.
7478
28f617b3
AC
74792003-03-30 Andrew Cagney <cagney@redhat.com>
7480
7481 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7482 PUSH_RETURN_ADDRESS.
7483 * gdbarch.h, gdbarch.c: Regenerate.
7484 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7485 * x86-64-tdep.c (x86_64_init_abi): Update.
7486 * v850-tdep.c (v850_gdbarch_init): Update.
7487 * sparc-tdep.c (sparc_gdbarch_init): Update.
7488 * sh-tdep.c (sh_gdbarch_init): Update.
7489 * s390-tdep.c (s390_gdbarch_init): Update.
7490 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7491 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7492 * mips-tdep.c (mips_gdbarch_init): Update.
7493 * mcore-tdep.c (mcore_gdbarch_init): Update.
7494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7495 * ia64-tdep.c (ia64_gdbarch_init): Update.
7496 * i386-tdep.c (i386_gdbarch_init): Update.
7497 * h8300-tdep.c (h8300_gdbarch_init): Update.
7498 * frv-tdep.c (frv_gdbarch_init): Update.
7499 * cris-tdep.c (cris_gdbarch_init): Update.
7500 * avr-tdep.c (avr_gdbarch_init): Update.
7501 * arm-tdep.c (arm_gdbarch_init): Update.
7502 * valops.c (hand_function_call): Update.
7503
4d628cd7
AC
75042003-03-29 Andrew Cagney <cagney@redhat.com>
7505
7506 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7507 sizeof_call_dummy_words.
7508 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7509 define.
7510 * gdbarch.h: Regenerate.
8ffd9b1b 7511
65e82032
AC
75122003-03-29 Andrew Cagney <cagney@redhat.com>
7513
7514 * infttrace.h: New file.
7515 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7516 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7517 (hpread_read_doc_function_type): Detect an initialized type1.
7518 (hpread_quick_traverse): Initialize mod_name_string.
7519 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7520 (som_solib_get_solib_by_pc): Declare.
7521 (so_lib_thread_start_addr): Declare.
7522 (no_shared_libraries): Declare.
7523 * somread.c (init_import_symbols): Make static. Add forward
7524 declaration.
7525 * config/pa/nm-hppah.h: Include "infttrace.h" for
7526 parent_attach_all.
7527 (hppa_insert_hw_watchpoint): Declare.
7528 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7529 * hppah-nat.c: Include "gdb_string.h".
7530 (parent_attach_all): Delete extern declaration, moved to
7531 "infttrace.h".
7532 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7533 int.
7534 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7535 * Makefile.in (infttrace_h): Define.
7536 (hpread.o): Update dependencies.
7537 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7538 * hppa-hpux-tdep.c: Include "gdb_string.h".
7539 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7540 * infrun.c (handle_inferior_event): Always initialize
7541 stepped_after_stopped_by_watchpoint. Add default and remove
7542 fallthrough in switch statement.
7543 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7544 parameter to int.
7545 (hppa_remove_hw_watchpoint): Ditto.
7546
2c3bbe77
AC
75472003-03-29 Andrew Cagney <cagney@redhat.com>
7548
7549 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7550 offset.
7551
2dd604e7
RE
75522003-03-29 Richard Earnshaw <rearnsha@arm.com>
7553
7554 * arm-tdep.c (arm_push_arguments): Delete.
7555 (struct stack_item): New type.
7556 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7557 (arm_store_struct_return): Delte.
7558 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7559 arm_push_arguments or arm_store_struct_return.
7560
e8933a55
AC
75612003-03-28 Andrew Cagney <cagney@redhat.com>
7562
7563 * Makefile.in (d10v-tdep.o): Update dependencies.
7564 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7565 * d10v-tdep.c: Include "remote.h".
7566 (target_resume_hook): Delete extern declaration.
7567 (target_wait_loop_hook): Ditto.
7568 (tdisassemble_command): Eliminate assignment in "if" conditional.
7569 (d10v_ts2_register_sim_regno): Eliminate call to
7570 legacy_register_sim_regno.
7571 (d10v_ts3_register_sim_regno): Ditto.
7572
6949171e
JJ
75732003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7574
7575 * thread.c: Reindented.
7576 * lin-lwp.c: Ditto.
7577 * linux-proc.c: Ditto.
7578
98c7071f
BR
75792003-03-28 Bob Rossi <bob_rossi@cox.net>
7580
fbe586ae 7581 * MAINTAINERS (write after approval): Add myself.
98c7071f 7582
5edc9ca6
TR
75832003-03-27 Theodore A. Roth <troth@openavr.org>
7584
7585 * objc-exp.y: Add missing semi-colons.
7586
378bfd1b
AC
75872003-03-27 Andrew Cagney <cagney@redhat.com>
7588
7589 * regcache.c (write_sp): Delete function and references.
7590 * inferior.h (write_sp): Delete declaration.
7591 * valops.c (hand_function_call): Replace write_sp with
7592 TARGET_WRITE_SP.
7593 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7594 (sparc_pop_frame): Ditto.
8ffd9b1b 7595
56056df7
AC
75962003-03-27 Andrew Cagney <cagney@redhat.com>
7597
7598 * NEWS: Mention removal of support for hppa*-*-bsd* and
7599 hppa*-*-osf* natives, and hppa*-*-pro* target.
7600 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7601 * config/pa/xm-pa.h: Obsolete file.
7602 * config/pa/xm-hppab.h: Obsolete file.
7603 * config/pa/nm-hppab.h: Obsolete file.
7604 * config/pa/tm-hppab.h: Obsolete file.
7605 * config/pa/tm-hppao.h: Obsolete file.
7606 * config/pa/nm-hppao.h: Obsolete file.
7607 * config/pa/tm-pro.h: Obsolete file.
7608 * config/pa/hppaosf.mt: Obsolete file.
7609 * config/pa/hppaosf.mh: Obsolete file.
7610 * config/pa/hppapro.mt: Obsolete file.
7611 * config/pa/hppabsd.mt: Obsolete file.
7612 * config/pa/hppabsd.mh: Obsolete file.
7613 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7614 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7615 hppa*-*-osf*.
7616
5873a88d
AC
76172003-03-27 Andrew Cagney <cagney@redhat.com>
7618
7619 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7620 push_arguments. Don't set push_return_address or write_sp.
7621 (d10v_push_dummy_call): Replace d10v_push_arguments.
7622 (d10v_push_return_address, d10v_write_sp): Delete function,
7623 handled by push_dummy_call.
7624
b81774d8
AC
76252003-03-26 Andrew Cagney <cagney@redhat.com>
7626
7627 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7628 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7629 regcache and dummy_addr parameters.
7630 * gdbarch.h, gdbarch.c: Re-generate.
7631 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7632 available; assume it will handle stack alignment and return
7633 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7634 legacy_push_arguments.
7635 (legacy_push_arguments): Rename default_push_arguments.
7636 * value.h (legacy_push_arguments): Rename default_push_arguments.
7637 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7638 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7639 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7640 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7641 * config/i386/tm-symmetry.h: Update.
7642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7643 * x86-64-tdep.c (x86_64_init_abi): Update.
7644 * v850-tdep.c (v850_gdbarch_init): Update.
7645 * sparc-tdep.c (sparc_gdbarch_init): Update.
7646 * sh-tdep.c (sh_gdbarch_init): Update.
7647 * s390-tdep.c (s390_gdbarch_init): Update.
7648 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7649 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7650 * mips-tdep.c (mips_gdbarch_init): Update.
7651 * mcore-tdep.c (mcore_gdbarch_init): Update.
7652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7653 * ia64-tdep.c (ia64_gdbarch_init): Update.
7654 * i386-tdep.c (i386_gdbarch_init): Update.
7655 * hppa-tdep.c (hppa_gdbarch_init): Update.
7656 * h8300-tdep.c (h8300_gdbarch_init): Update.
7657 * frv-tdep.c (frv_gdbarch_init): Update.
7658 * d10v-tdep.c (d10v_gdbarch_init): Update.
7659 * cris-tdep.c (cris_gdbarch_init): Update.
7660 * avr-tdep.c (avr_gdbarch_init): Update.
7661 * arm-tdep.c (arm_gdbarch_init): Update.
7662 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7663 * alpha-tdep.c (alpha_gdbarch_init): Update.
7664
f541410f
DJ
76652003-03-26 Daniel Jacobowitz <drow@mvista.com>
7666
7667 * signals/signals.c (do_target_signal_to_host): Correct realtime
7668 signal range test.
7669
69f567ae
DJ
76702003-03-26 Daniel Jacobowitz <drow@mvista.com>
7671
7672 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7673 (struct sal_chain, map_catch_names): Remove.
7674 (catch_exception_command_1): Don't call
7675 handle_gnu_4_16_catch_command.
7676
d5d14a5a
DJ
76772003-03-26 Daniel Jacobowitz <drow@mvista.com>
7678
7679 From Mark Dettinger <dettinge@de.ibm.com>:
7680 * dwarf2cfi.c (read_2u): Increment pointer by two.
7681
bdd73e22
DJ
76822003-03-26 Daniel Jacobowitz <drow@mvista.com>
7683
7684 * signals/signals.c: Fix typos in last change.
7685
960cb555
DJ
76862003-03-26 Daniel Jacobowitz <drow@mvista.com>
7687
7688 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7689 not already defined. Use __SIGRTMIN if available.
7690 (target_signal_from_host): Remove SIGRTMIN block.
7691 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7692 the signal is within the realtime range.
7693
f636b87d
AF
76942003-03-25 Adam Fedor <fedor@gnu.org>
7695
7696 * Makefile.in (infrun.o): Add $(language_h)
7697 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7698 for language specific trampolines.
7699 * language.h (struct language_defn): Add skip_trampoline.
7700 (skip_language_trampoline): Declare.
7701 * language.c (unk_lang_trampoline, skip_language_trampoline):
7702 New functions.
7703 (unknown_language_defn, auto_language_defn, local_language_defn):
7704 Add ukn_lang_trampoline.
7705 * ada-lang.c (ada_language_defn): Add NULL for language
7706 specific skip_trampoline.
7707 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7708 scm-lang.c: Likewise.
7709 * objc-lang.c (objc_skip_trampoline): New function.
7710 (objc_language_defn): Add objc_skip_trampoline.
7711
28f617b3 77122003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7713
7714 * frame.c (get_prev_frame): Delay validating a frame's ID -
7715 non-NULL, didn't go backwards - until an attempt to unwind it to
7716 the previous frame.
7717
f933a9c5
AC
77182003-03-25 Andrew Cagney <cagney@redhat.com>
7719
7720 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7721 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7722 * gdbarch.h, gdbarch.c: Re-generate.
7723 * config/sparc/tm-sparc.h
7724 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7725 * sparc-tdep.c (sparc_gdbarch_init): Set
7726 deprecated_extra_stack_alignment_needed.
7727 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7728 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7729 extra_stack_alignment_needed.
7730 * v850-tdep.c (v850_gdbarch_init): Ditto.
7731 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7732 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7733 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7734 * cris-tdep.c (cris_gdbarch_init): Ditto.
7735 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7736 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7737
4183d812
AC
77382003-03-25 Andrew Cagney <cagney@redhat.com>
7739
7740 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7741 STORE_STRUCT_RETURN.
7742 * gdbarch.h, gdbarch.c: Regenerate.
7743 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7744 (d10v_push_arguments): Set the struct return register.
7745 (d10v_gdbarch_init): Update.
7746 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7747 * x86-64-tdep.c (x86_64_init_abi): Update.
7748 * vax-tdep.c (vax_gdbarch_init): Update.
7749 * v850-tdep.c (v850_gdbarch_init): Update.
7750 * sparc-tdep.c (sparc_gdbarch_init): Update.
7751 * sh-tdep.c (sh_gdbarch_init): Update.
7752 * s390-tdep.c (s390_gdbarch_init): Update.
7753 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7754 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7755 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7756 * mips-tdep.c (mips_gdbarch_init): Update.
7757 * mcore-tdep.c (mcore_gdbarch_init): Update.
7758 * m68k-tdep.c (m68k_gdbarch_init): Update.
7759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7760 * ia64-tdep.c (ia64_gdbarch_init): Update.
7761 * i386-tdep.c (i386_gdbarch_init): Update.
7762 * hppa-tdep.c (hppa_gdbarch_init): Update.
7763 * h8300-tdep.c (h8300_gdbarch_init): Update.
7764 * frv-tdep.c (frv_gdbarch_init): Update.
7765 * cris-tdep.c (cris_gdbarch_init): Update.
7766 * avr-tdep.c (avr_gdbarch_init): Update.
7767 * arm-tdep.c (arm_gdbarch_init): Update.
7768 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7769
1bf6d5cc
AC
77702003-03-25 Andrew Cagney <cagney@redhat.com>
7771
7772 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7773 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7774 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7775 * gdbarch.h, gdbarch.c: Regenerate.
7776 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7777 call_dummy_stack_adjust_p.
7778 * vax-tdep.c (vax_gdbarch_init): Ditto.
7779 * v850-tdep.c (v850_gdbarch_init): Ditto.
7780 * sh-tdep.c (sh_gdbarch_init): Ditto.
7781 * s390-tdep.c (s390_gdbarch_init): Ditto.
7782 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7783 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7784 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7785 * mips-tdep.c (mips_gdbarch_init): Ditto.
7786 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7787 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7788 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7789 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7790 * i386-tdep.c (i386_gdbarch_init): Ditto.
7791 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7792 * frv-tdep.c (frv_gdbarch_init): Ditto.
7793 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7794 * cris-tdep.c (cris_gdbarch_init): Ditto.
7795 * avr-tdep.c (avr_gdbarch_init): Ditto.
7796 * arm-tdep.c (arm_gdbarch_init): Ditto.
7797 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7798 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7799 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7800 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7801 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7802 call_dummy_stack_adjust_p.
7803 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7804 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7805 * sparc-tdep.c (sparc32_push_arguments): Update.
7806 * valops.c (hand_function_call): Update.
7807
71c08af0
CV
78082003-03-25 Corinna Vinschen <vinschen@redhat.com>
7809
7810 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7811 set_gdbarch_char_signed.
7812
30757f90
RE
78132003-03-25 Richard Earnshaw <rearnsha@arm.com>
7814
7815 PR cli/548
7816 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7817
03d48a7d
RE
78182003-03-25 Richard Earnshaw <rearnsha@arm.com>
7819
7820 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7821 (_initialize_arm_tdep): Don't set tm_print_insn.
7822
2cf6873c
AF
78232003-03-24 Adam Fedor <fedor@gnu.org>
7824
7825 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7826 * objc-lang.h: Add multiple inclusion protection.
7827 (start_msglist, add_msglist, end_msglist): Additional declarations.
7828
17c0759e
RE
78292003-03-24 Richard Earnshaw <rearnsha@arm.com>
7830
7831 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7832 value was renamed to ARM_FLOAT_SOFT_FPA.
7833
618ce49f
AC
78342003-03-23 Andrew Cagney <cagney@redhat.com>
7835
7836 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7837 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7838 * gdbarch.h, gdbarch.c: Regenerate.
7839 * valops.c (hand_function_call): Update.
7840 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7841 * frame.c (legacy_saved_regs_this_id): Update.
7842 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7843 * dummy-frame.h: Update.
7844 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7845 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7846 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7847 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7848 * config/m68k/tm-sun3.h: Update.
7849 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7850 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7851 * x86-64-tdep.c (x86_64_init_abi): Update.
7852 * vax-tdep.c (vax_gdbarch_init): Update.
7853 * v850-tdep.c (v850_gdbarch_init): Update.
7854 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7855 * sh-tdep.c (sh_gdbarch_init): Update.
7856 * s390-tdep.c (s390_gdbarch_init): Update.
7857 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7858 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7859 (frame_get_saved_regs): Update.
7860 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7861 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7862 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7863 * mips-tdep.c (mips_gdbarch_init): Update.
7864 * mcore-tdep.c (mcore_gdbarch_init): Update.
7865 * m68k-tdep.c (m68k_gdbarch_init): Update.
7866 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7867 * ia64-tdep.c (ia64_gdbarch_init): Update.
7868 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7869 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7870 (i386_interix_back_one_frame): Update.
7871 * hppa-tdep.c (hppa_gdbarch_init): Update.
7872 (hppa_init_extra_frame_info): Update.
7873 * h8300-tdep.c (h8300_gdbarch_init): Update.
7874 * frv-tdep.c (frv_gdbarch_init): Update.
7875 * cris-tdep.c (cris_gdbarch_init): Update.
7876 * avr-tdep.c (avr_gdbarch_init): Update.
7877 * arm-tdep.c (arm_gdbarch_init): Update.
7878 * alpha-tdep.c (alpha_gdbarch_init): Update.
7879
fd50bc42
RE
78802003-03-22 Richard Earnshaw <rearnsha@arm.com>
7881
7882 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7883 (arm_get_fp_model): Declare.
7884 * arm-tdep.c (fp_model_strings): New string array.
7885 (arm_fp_model, current_fp_model): New variables.
7886 (arm_get_fp_model): New function.
7887 (arm_set_fp): New function.
7888 (set_fp_model_sfunc): New function.
7889 (show_fp_model): New function.
7890 (_initialize_arm_tdep): Add new command to set/show the FPU.
7891 (arm_extract_return_value): Use arm_get_fp_model.
7892 (arm_store_return_value): Likewise.
7893 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7894 to initialize the floating-point data types.
7895 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7896 model is FPA.
7897
26304000
RE
78982003-03-22 Richard Earnshaw <rearnsha@arm.com>
7899
7900 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7901 the current setting of each value.
7902 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 7903 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
7904 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7905 commands and add new version as subcommands of "set/show arm".
7906
afd7eef0
RE
79072003-03-22 Richard Earnshaw <rearnsha@arm.com>
7908
7909 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7910 (set_arm_command, show_arm_command): New functions.
7911 (_initialize_arm_tdep): Add them.
7912 (num_disassembly_options): Renamed from num_flavor_options.
7913 (valid_disassembly_styles): Renamed from valid_flavors.
7914 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 7915 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
7916 set_disassembly_flavor_sfunc.
7917 (set_disassembly_style): Renamed from set_disassembly_flavor.
7918 (arm_othernames): Updated.
7919 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7920 command. Add "set/show arm disassembly" commands. Deprecate
7921 "othernames" command.
7922
299a7944
RE
79232003-03-22 Richard Earnshaw <rearnsha@arm.com>
7924
7925 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7926 (arm-tdep.o): Depend on elf_arm_h.
7927
c1dac9e6
RE
79282003-03-22 Richard Earnshaw <rearnsha@arm.com>
7929
7930 * Makefile.in (coff_internal_h): Define.
7931 (arm-tdep.o): Update dependencies.
7932
2702d96c
RE
79332003-03-22 Richard Earnshaw <rearnsha@arm.com>
7934
7935 * arm-tdep.c (prologue_cache): Delete.
7936 (check_prologue_cache, save_prologue_cache): Delete.
7937 (arm_scan_prologue): Don't check or update the prologue_cache.
7938 (arm_gdb_arch_init): Don't initialize it.
7939 (_initialize_arm_tdep): Likewise.
7940
27d5d74b
SC
79412003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7942
7943 * MAINTAINERS (tui): Maintainer of tui code.
7944
1762d96d
CV
79452003-03-21 Corinna Vinschen <vinschen@redhat.com>
7946
7947 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7948 (i386-cygwin-tdep.o): Add dependencies.
7949 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7950 * i386-cygwin-tdep.c: New file.
7951 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7952 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7953
4c2e2391
AC
79542003-03-20 Andrew Cagney <cagney@redhat.com>
7955
f20d38b7
AC
7956 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7957 (handle_inferior_event): Remove code calling
7958 DYNAMIC_TRAMPOLINE_NEXTPC.
7959
0022b738
AC
7960 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7961 already has a full path.
7962
864dbc90
AC
7963 * main.c (gdb_main): Return 1.
7964 (captured_main): Call error to report an invalid interpreter.
7965
4c2e2391
AC
7966 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7967 * alpha-osf1-tdep.c: Include "gdb_string.h".
7968
5ef7553b
JB
79692003-03-19 J. Brobecker <brobecker@gnat.com>
7970
7971 Continuing work to convert the hppa targets to multiarch partial.
7972
7973 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7974 method, now that hppa_push_dummy_frame has a conformant prototype.
7975 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7976 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7977 for the switch to multiarch partial.
7978
7bde8967
KB
79792003-03-19 Kevin Buettner <kevinb@redhat.com>
7980
7981 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7982 when iss is issNull.
7983
b006a9e9
KB
79842003-03-18 Kevin Buettner <kevinb@redhat.com>
7985
7986 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7987 NUM_REGS bounds check.
7988
5e2e9765
KB
79892003-03-18 Kevin Buettner <kevinb@redhat.com>
7990
7991 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7992 * mips-tdep.c (gdb_assert.h): Include.
7993 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7994 (mips_register_name): Handle integer registers explicitly. Add
7995 bounds checking.
7996 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7997 (mips_lsi33k_reg_names): Don't list integer registers; they're
7998 handled by mips_register_name() now.
7999 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8000 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8001 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8002 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8003 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8004
a2867626
AC
80052003-03-18 Andrew Cagney <cagney@redhat.com>
8006
8007 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8008 a void pointer.
8009 * gdbtypes.h (print_scalar_formatted): Update declaration.
8010 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8011
06600e06
JB
80122003-03-18 J. Brobecker <brobecker@gnat.com>
8013
8014 * infrun.c (observer.h): Add #include.
8015 (normal_stop): Add call to observer_notify_normal_stop.
8016 * Makefile.in (infrun.o): Add dependency on observer.h.
8017
7daf4f5b
JB
80182003-03-18 J. Brobecker <brobecker@gnat.com>
8019
8020 Continuing work to convert the hppa targets to multiarch partial.
8021 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8022 parameter. Reformat comment.
8023 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8024 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8025 to match new profile.
8026
3371ccc0
JB
80272003-03-18 J. Brobecker <brobecker@gnat.com>
8028
8029 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8030 appear to be working in any case.
8031
4fbe891e
JB
80322003-03-18 J. Brobecker <brobecker@gnat.com>
8033
8034 * observer.c (observer_test_first_observer): New static variable.
8035 (observer_test_second_observer): Likewise.
8036 (observer_test_third_observer): Likewise.
8037 (observer_test_first_notification_function): New static function.
8038 (observer_test_second_notification_function): Likewise.
8039 (observer_test_third_notification_function): Likewise.
8040
a7ff40e7
JB
80412003-03-17 J. Brobecker <brobecker@gnat.com>
8042
8043 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8044 * somsolib.c (gdb_assert.h): Likewise.
8045 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8046 (somsolib.o): Likewise.
8047
26ca4152
AC
80482003-03-17 Andrew Cagney <cagney@redhat.com>
8049
8050 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8051 BFD. Simplify setting of di.endian.
8052
0a613259
AC
80532003-03-17 Andrew Cagney <cagney@redhat.com>
8054
8055 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8056 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8057
8058 From Elena Zannoni <ezannoni@redhat.com>
8059 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8060 vector and floating-point parameters.
8061 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8062 convention.
8063 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8064
1132738f
FN
80652003-03-17 Fernando Nasser <fnasser@redhat.com>
8066
8067 * MAINTAINERS: Remove my name from several maintainership roles.
8068
6dc42492
AC
80692003-03-17 Andrew Cagney <cagney@redhat.com>
8070
8071 Fix frame off-by-one bug.
8072 * frame-unwind.h (frame_this_id_ftype): Replace
8073 frame_unwind_id_ftype.
8074 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8075 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8076 with "prev_register".
8077 * frame-unwind.c (frame_unwind_find_by_pc): Return
8078 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8079 comment.
8080 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8081 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8082 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8083 (dummy_frame_unwind): Update.
8084 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8085 sentinel_frame_register_unwind.
8086 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8087 (sentinel_frame_unwinder): Update.
8088 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8089 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8090 * frame.c (create_sentinel_frame): Update. Initialize
8091 "prologue_cache" instead of "unwind_cache".
8092 (frame_register_unwind): Call this frame's prev_register with the
8093 next frame and this frame's prologue cache.
8094 (get_prev_frame): Simplify. Always call prev frame's this_id with
8095 this frame and prev frame's prologue cache. Document that this
8096 call is shifted one to the left when compared to the
8097 frame_register_unwind call.
8098 (legacy_saved_regs_prev_register): Replace
8099 frame_saved_regs_register_unwind.
8100 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8101 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8102 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8103 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8104 (d10v_frame_unwind): Update.
8105 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8106 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8107 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8108 "saved_regs" with "this_saved_regs".
8109
efd710d6
AC
81102003-03-16 Andrew Cagney <cagney@redhat.com>
8111
8112 * frame.c (frame_pop): Don't call target_store_registers. Fix
8113 problem reported by Mark Kettenis.
8114
4e259f09
MK
81152003-03-16 Mark Kettenis <kettenis@gnu.org>
8116
8117 * i386-tdep.c (i386_register_type): Renamed from
8118 i386_register_virtual_type. Adjust function signature.
8119 (i386_gdbarch_init): Set register_type instead of
8120 deprecated_max_register_raw_size,
8121 deprecated_max_register_virtual_size and register_virtual_type.
8122
055bb976
AC
81232003-03-14 Andrew Cagney <cagney@redhat.com>
8124
8125 * frame.c (get_prev_frame): When a legacy frame, always call
8126 legacy_get_prev_frame. Simplify unwind code using assumption that
8127 the unwinder is new.
8128 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8129 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8130 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8131
ac2adee5
AC
81322003-03-14 Andrew Cagney <cagney@redhat.com>
8133
8134 * frame.c (get_saved_register): Delete function.
8135 * frame.h (get_saved_register): Delete declaration.
8136 * xstormy16-tdep.c: Update comment.
8137 * regcache.h: Update comments.
8138 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8139 get_saved_register and extract_address, use
8140 frame_read_unsigned_register.
8141 (sparc_frame_saved_pc): Ditto.
8142 (sparc_get_saved_register): Instead of get_saved_register, use
8143 frame_register.
8144 (sparc_pop_frame): Ditto.
8145 * findvar.c: Update comments.
8146 (value_of_register): Call frame_register instead of
8147 get_saved_register.
8148 (value_from_register): Ditto.
8149 * config/sparc/tm-sparc.h: Update comment.
8150 * breakpoint.c: Update comment.
8151
129c1cd6
AC
81522003-03-14 Andrew Cagney <cagney@redhat.com>
8153
8154 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8155 GET_SAVED_REGISTER.
8156 * gdbarch.h, gdbarch.c: Re-generate.
8157 * frame.h: Update comments.
8158 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8159 * x86-64-tdep.c (x86_64_init_abi): Update.
8160 * sparc-tdep.c (sparc_gdbarch_init): Update.
8161 * sh-tdep.c (sh_gdbarch_init): Update.
8162 * mips-tdep.c (mips_gdbarch_init): Update.
8163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8164 * cris-tdep.c (cris_gdbarch_init): Update.
8165 * ia64-tdep.c (ia64_gdbarch_init): Update.
8166 * frame.c (frame_register): Update.
8167 (get_saved_register): Update.
8168 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8169
749b82f6
AC
81702003-03-13 Andrew Cagney <cagney@redhat.com>
8171
8172 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8173 * gdbarch.h, gdbarch.c: Regenerate.
8174 * valops.c (hand_function_call): Update comment.
8175 * stack.c (return_command): Update comment.
8176 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8177 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8178 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8179 * x86-64-tdep.c (x86_64_init_abi): Update.
8180 * vax-tdep.c (vax_gdbarch_init): Update.
8181 * v850-tdep.c (v850_gdbarch_init): Update.
8182 * sparc-tdep.c (sparc_gdbarch_init): Update.
8183 * sh-tdep.c (sh_gdbarch_init): Update.
8184 * s390-tdep.c (s390_gdbarch_init): Update.
8185 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8186 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8187 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8188 * mips-tdep.c (mips_gdbarch_init): Update.
8189 * mcore-tdep.c (mcore_gdbarch_init): Update.
8190 * m68k-tdep.c (m68k_gdbarch_init): Update.
8191 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8192 * ia64-tdep.c (ia64_gdbarch_init): Update.
8193 * i386-tdep.c (i386_gdbarch_init): Update.
8194 * hppa-tdep.c (hppa_gdbarch_init): Update.
8195 * h8300-tdep.c (h8300_gdbarch_init): Update.
8196 * frv-tdep.c (frv_gdbarch_init): Update.
8197 * cris-tdep.c (cris_gdbarch_init): Update.
8198 * avr-tdep.c (avr_gdbarch_init): Update.
8199 * arm-tdep.c (arm_gdbarch_init): Update.
8200 * alpha-tdep.c (alpha_gdbarch_init): Update.
8201
1594fa56
AC
82022003-03-13 Andrew Cagney <cagney@redhat.com>
8203
8204 * frame.c (legacy_frame_p): New function.
8205 (get_prev_frame): Use legacy_frame_p.
8206 * frame.h (legacy_frame_p): Declare.
8207
7717fda3
V
82082003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8209
fbe586ae 8210 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8211 listing corrected.
8212
0c67cbe9
V
82132003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8214
fbe586ae 8215 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8216
03febf99
AC
82172003-03-12 Andrew Cagney <cagney@redhat.com>
8218
8219 * frame.c (get_prev_frame): Rename the frame parameter to
8220 "this_frame".
8221 (get_next_frame, legacy_get_prev_frame): Ditto.
8222
0a1e1ca1
AC
82232003-03-12 Andrew Cagney <cagney@redhat.com>
8224
8225 * frame.c (get_current_frame): Check target_has_registers before
8226 checking target_has_stack.
8227 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8228 instead of deprecated_selected_frame.
8229 * findvar.c (value_of_register): Pass "frame", not
8230 deprecated_selected_frame, to value_of_builtin_reg.
8231
a66a9c23
AC
82322003-03-12 Andrew Cagney <cagney@redhat.com>
8233
8234 * regcache.c (regcache_cooked_write_signed): New function.
8235 (regcache_cooked_write_unsigned): New function.
8236 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8237 (regcache_cooked_read_signed): Fix regnum in range assertion.
8238 * regcache.h (regcache_cooked_write_signed): Declare.
8239 (regcache_cooked_write_unsigned): Declare.
8240
8bedc050
AC
82412003-03-12 Andrew Cagney <cagney@redhat.com>
8242
8243 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8244 * gdbarch.h, gdbarch.c: Re-generate.
8245 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8246 * x86-64-tdep.h: Update.
8247 * x86-64-tdep.c (x86_64_init_abi): Update.
8248 * v850-tdep.c (v850_gdbarch_init): Update.
8249 * sparc-tdep.c (sparc_gdbarch_init): Update.
8250 * sh-tdep.c (sh_gdbarch_init): Update.
8251 * s390-tdep.c (s390_gdbarch_init): Update.
8252 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8253 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8254 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8255 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8256 * mips-tdep.c (mips_gdbarch_init): Update.
8257 * mcore-tdep.c (mcore_gdbarch_init): Update.
8258 * m68k-tdep.c (m68k_gdbarch_init): Update.
8259 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8260 * ia64-tdep.c (ia64_gdbarch_init): Update.
8261 * i386-tdep.c (i386_gdbarch_init): Update.
8262 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8263 * hppa-tdep.c (hppa_gdbarch_init): Update.
8264 * h8300-tdep.c (h8300_gdbarch_init): Update.
8265 * frv-tdep.c (frv_gdbarch_init): Update.
8266 * cris-tdep.c (cris_gdbarch_init): Update.
8267 * avr-tdep.c (avr_gdbarch_init): Update.
8268 * arm-tdep.c (arm_gdbarch_init): Update.
8269 * alpha-tdep.c (alpha_gdbarch_init): Update.
8270 * sh-tdep.c (sh_init_extra_frame_info): Update.
8271 (sh64_init_extra_frame_info): Update.
8272 * ns32knbsd-nat.c (frame_num_args): Update.
8273 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8274 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8275 (xstormy16_frame_chain_valid): Update.
8276 * vax-tdep.c (vax_saved_pc_after_call): Update.
8277 * v850-tdep.c (v850_frame_chain): Update.
8278 (v850_pop_frame): Update.
8279 (v850_init_extra_frame_info): Update.
8280 * sparc-tdep.c (setup_arbitrary_frame): Update.
8281 * ns32k-tdep.c (umax_frame_num_args): Update.
8282 * s390-tdep.c (s390_pop_frame_regular): Update.
8283 * mn10300-tdep.c (mn10300_frame_chain): Update.
8284 (mn10300_pop_frame_regular): Update.
8285 (mn10300_init_extra_frame_info): Update.
8286 * mips-tdep.c (mips_init_frame_pc_first): Update.
8287 (mips_frame_chain): Update.
8288 (mips_pop_frame): Update.
8289 * mcore-tdep.c (mcore_frame_chain): Update.
8290 (mcore_pop_frame): Update.
8291 (mcore_init_extra_frame_info): Update.
8292 * arch-utils.c (init_frame_pc_default): Update.
8293 * m68k-tdep.c (isi_frame_num_args): Update.
8294 (delta68_frame_num_args): Update.
8295 (news_frame_num_args): Update.
8296 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8297 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8298 (alpha_frame_chain): Update.
8299 (alpha_pop_frame): Update.
8300 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8301 (hppa_init_extra_frame_info): Update.
8302 (hppa_frame_chain): Update.
8303 (hppa_frame_chain_valid): Update.
8304 * cris-tdep.c (cris_init_extra_frame_info): Update.
8305 * avr-tdep.c (avr_init_extra_frame_info): Update.
8306 * arm-tdep.c (arm_frame_chain_valid): Update.
8307 (arm_init_extra_frame_info): Update.
8308 (arm_pop_frame): Update.
8309 * frame.c (frame_pc_unwind): Update.
8310 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8311 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8312 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8313 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8314 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8315 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8316
7a25a7c1
AC
83172003-03-12 Andrew Cagney <cagney@redhat.com>
8318
8319 Eliminate the need for POP_FRAME.
8320 * frame.c (do_frame_unwind_register): New function.
8321 (frame_pop): When no POP_FRAME, pop the frame using register
8322 unwind and a scratch regcache.
8323 (frame_saved_regs_pop): Delete function.
8324 (trad_frame_unwinder): Update.
8325 * d10v-tdep.c (d10v_frame_pop): Delete function.
8326 (d10v_frame_unwind): Update.
8327 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8328 (sentinel_frame_unwinder): Update.
8329 * dummy-frame.c (dummy_frame_pop): Delete function.
8330 (dummy_frame_unwind): Update.
8331 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8332 (struct frame_unwind): Update.
8333
2f38ef89
KB
83342003-03-11 Kevin Buettner <kevinb@redhat.com>
8335
8336 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8337 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8338 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8339 Do range checks on register number obtained from debugging info.
8340 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8341 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8342 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8343 mapping function.
8344 (do_fp_register_row): Fix typo which caused double type to be
8345 used when attempting to unpack a float.
8346
552f4abf
JB
83472003-03-11 J. Brobecker <brobecker@gnat.com>
8348
8349 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8350
e0d2ae16
AC
83512003-03-11 Andrew Cagney <cagney@redhat.com>
8352
8353 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8354 frame. Problem found by Corinna Vinschen.
8355
ddbfdd06
PM
83562003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8357
8358 * doublest.c (floatformat_from_length): Accept also
8359 the real size of 'long double' type.
8360
088b2ddc 83612003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8362
088b2ddc 8363 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8364 * breakpoint.c (bpstat_copy): Copy the command lines as well
8365 as the old value, to match what is freed in bpstat_clear.
8366
f56f77c1
DC
83672003-03-10 David Carlton <carlton@math.stanford.edu>
8368
8369 * minsyms.c (add_minsym_to_hash_table): Replace
8370 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8371 (compare_minimal_symbols, compact_minimal_symbols)
8372 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8373 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8374 of DEPRECATED_SYMBOL_MATCHES_NAME.
8375 (lookup_minimal_symbol_solib_trampoline): Ditto.
8376
5602984a
AC
83772003-03-10 Andrew Cagney <cagney@redhat.com>
8378
8379 * regcache.h (regcache_cooked_read_ftype): Define.
8380 (regcache_save, regcache_restore): Add a cooked_read parameter.
8381 * regcache.c (regcache_save, regcache_restore): Update.
8382 (do_cooked_read): New function.
8383 (regcache_cpy): Pass do_cooked_read to regcache_save and
8384 regcache_restore.
8385
8bedc050
AC
83862003-03-10 Andrew Cagney <cagney@redhat.com>
8387
8388 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8389 * gdbarch.h, gdbarch.c: Re-generate.
8390 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8391 * x86-64-tdep.h: Update.
8392 * x86-64-tdep.c (x86_64_init_abi): Update.
8393 * v850-tdep.c (v850_gdbarch_init): Update.
8394 * sparc-tdep.c (sparc_gdbarch_init): Update.
8395 * sh-tdep.c (sh_gdbarch_init): Update.
8396 * s390-tdep.c (s390_gdbarch_init): Update.
8397 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8398 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8399 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8400 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8401 * mips-tdep.c (mips_gdbarch_init): Update.
8402 * mcore-tdep.c (mcore_gdbarch_init): Update.
8403 * m68k-tdep.c (m68k_gdbarch_init): Update.
8404 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8405 * ia64-tdep.c (ia64_gdbarch_init): Update.
8406 * i386-tdep.c (i386_gdbarch_init): Update.
8407 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8408 * hppa-tdep.c (hppa_gdbarch_init): Update.
8409 * h8300-tdep.c (h8300_gdbarch_init): Update.
8410 * frv-tdep.c (frv_gdbarch_init): Update.
8411 * cris-tdep.c (cris_gdbarch_init): Update.
8412 * avr-tdep.c (avr_gdbarch_init): Update.
8413 * arm-tdep.c (arm_gdbarch_init): Update.
8414 * alpha-tdep.c (alpha_gdbarch_init): Update.
8415 * sh-tdep.c (sh_init_extra_frame_info): Update.
8416 (sh64_init_extra_frame_info): Update.
8417 * ns32knbsd-nat.c (frame_num_args): Update.
8418 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8419 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8420 (xstormy16_frame_chain_valid): Update.
8421 * vax-tdep.c (vax_saved_pc_after_call): Update.
8422 * v850-tdep.c (v850_frame_chain): Update.
8423 (v850_pop_frame): Update.
8424 (v850_init_extra_frame_info): Update.
8425 * sparc-tdep.c (setup_arbitrary_frame): Update.
8426 * ns32k-tdep.c (umax_frame_num_args): Update.
8427 * s390-tdep.c (s390_pop_frame_regular): Update.
8428 * mn10300-tdep.c (mn10300_frame_chain): Update.
8429 (mn10300_pop_frame_regular): Update.
8430 (mn10300_init_extra_frame_info): Update.
8431 * mips-tdep.c (mips_init_frame_pc_first): Update.
8432 (mips_frame_chain): Update.
8433 (mips_pop_frame): Update.
8434 * mcore-tdep.c (mcore_frame_chain): Update.
8435 (mcore_pop_frame): Update.
8436 (mcore_init_extra_frame_info): Update.
8437 * arch-utils.c (init_frame_pc_default): Update.
8438 * m68k-tdep.c (isi_frame_num_args): Update.
8439 (delta68_frame_num_args): Update.
8440 (news_frame_num_args): Update.
8441 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8442 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8443 (alpha_frame_chain): Update.
8444 (alpha_pop_frame): Update.
8445 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8446 (hppa_init_extra_frame_info): Update.
8447 (hppa_frame_chain): Update.
8448 (hppa_frame_chain_valid): Update.
8449 * cris-tdep.c (cris_init_extra_frame_info): Update.
8450 * avr-tdep.c (avr_init_extra_frame_info): Update.
8451 * arm-tdep.c (arm_frame_chain_valid): Update.
8452 (arm_init_extra_frame_info): Update.
8453 (arm_pop_frame): Update.
8454 * frame.c (frame_pc_unwind): Update.
8455 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8456 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8457 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8458 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8459 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8460 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8461
12cc2063
AC
84622003-03-10 Andrew Cagney <cagney@redhat.com>
8463
8464 * gdbarch.sh (gdbarch_unwind_pc): New method.
8465 * gdbarch.h, gdbarch.c: Regenerate.
8466 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8467 but use read_pc and FRAME_SAVED_PC as fall backs.
8468 (frame_saved_regs_pc_unwind): Delete function.
8469 (trad_frame_unwinder): Update.
8470 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8471 (struct frame_unwind): Update.
8472 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8473 (dummy_frame_unwind): Update.
8474 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8475 (sentinel_frame_unwinder): Update.
8476 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8477 (d10v_frame_unwind): Update.
8478 (d10v_unwind_pc): New function.
8479 (d10v_gdbarch_init): Set unwind_pc.
8480
ef840a37
AC
84812003-03-10 Andrew Cagney <cagney@redhat.com>
8482
a2ce2e56
AC
8483 * gdbarch.h: Re-generate.
8484
ef840a37
AC
8485 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8486 PC.
8487 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8488 the PC register.
8489
08f3424b
MK
84902003-03-08 Mark Kettenis <kettenis@gnu.org>
8491
8492 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8493
1248ede2
AC
84942003-03-08 Andrew Cagney <cagney@redhat.com>
8495
8496 * cli-out.c: Update copyright.
8497 (cli_out_data): Define typedef. Use instead of ui_out_data.
8498
f49bacc8
AC
84992003-03-08 Andrew Cagney <cagney@redhat.com>
8500
8501 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8502 the result.
8503
9b05f993
AC
85042003-03-07 Andrew Cagney <cagney@redhat.com>
8505
8506 * gdbarch.sh: Don't generate two macro definitions when an
8507 undefined macro taking no arguments.
8508 * gdbarch.h: Regenerate.
8ffd9b1b 8509
166f4c7b
ML
85102002-03-07 Michal Ludvig <mludvig@suse.cz>
8511
8512 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8513 (x86_64_unwind_dummy_id): New functions.
8514 (x86_64_init_abi): Register these two new functions.
8515
6d686a84
ML
85162003-03-07 Michal Ludvig <mludvig@suse.cz>
8517
8518 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8519 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8520 separate function.
8521 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8522
6314f104
AC
85232003-03-05 Andrew Cagney <cagney@redhat.com>
8524
8525 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8526 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8527 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8528 to use unwind_dummy_id when a dummy frame.
8529 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8530 predicate.
8531 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8532
ceea5145
AC
85332003-03-05 Andrew Cagney <cagney@redhat.com>
8534
8535 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8536 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8537 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8538 values.
8539
0d843116
AC
85402003-03-05 Andrew Cagney <cagney@redhat.com>
8541
8542 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8543 (struct d10v_unwind_cache): Delete field "frameless". Replace
8544 "next_addr" with "sp_offset". Add "r11_offset".
8545 (d10v_frame_unwind_cache): Update.
8546 (prologue_find_regs): Update. When "mv r11, sp", save the
8547 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8548 RN was saved in r11_offset.
8549
b2579786
AC
85502003-03-05 Andrew Cagney <cagney@redhat.com>
8551
8552 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8553 cached PC value in the next frame.
8554
218e5956
AC
85552003-03-05 Andrew Cagney <cagney@redhat.com>
8556
8557 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8558 "id_unwind_cache" with "id".
8559 (frame_id_unwind): Delete declaration.
8560 * frame.c (frame_id_unwind): Delete function.
8561 (get_prev_frame): Call the frame id unwind method directly. Store
8562 the returned next frame's ID value in NEXT_FRAME. Note that there
8563 is a problem with the wrong unwind ID being called with the wrong
8564 unwind cache.
8565
ed363b1b
DJ
85662003-03-05 Daniel Jacobowitz <drow@mvista.com>
8567
8568 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8569
fe1f4a5e
DJ
85702003-03-05 James Ingham <jingham@apple.com>
8571 Daniel Jacobowitz <drow@mvista.com>
8572
8573 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8574 (auto_cp_abi): New variable.
8575 (current_cp_abi, num_cp_abis): Make static.
8576 (CP_ABI_MAX): Define.
8577 (cp_abis): Turn into an array.
8578 (value_virtual_fn_field): Fix formatting.
8579 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8580 takes a pointer.
8581 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8582 (list_cp_abis, _initialize_cp_abi): New functions.
8583 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8584 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8585 switch_to_cp_abi. Update prototype for register_cp_abi.
8586 * Makefile.in (cp-abi.o): Update dependencies.
8587 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8588 instead of switch_to_cp_abi.
8589 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8590 register_cp_abi.
8591 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8592 register_cp_abi.
8593 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8594
e4adbba9
DJ
85952003-03-05 Daniel Jacobowitz <drow@mvista.com>
8596
8597 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8598 * dwarf2loc.c: Include "regcache.h".
8599 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8600 register_size.
8601 * Makefile.in (dwarf2loc.o): Update dependencies.
8602
91ccbfc1
TR
86032003-03-04 Theodore A. Roth <troth@openavr.org>
8604
8605 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8606 number of io registers reported by remote target is not a multiple of
8607 step.
8608
3d4e8fd2
DC
86092003-03-04 David Carlton <carlton@math.stanford.edu>
8610
8611 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8612 (lookup_symbol_aux_psymtabs): Update call to
8613 lookup_partial_symbol.
8614 (lookup_transparent_type, find_main_psymtab)
8615 (make_symbol_overload_list): Ditto.
8616
ed42d87b
KH
86172003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8618
8619 * MAINTAINERS (Write after approval): Update my email address.
8620
a0ed5532
AC
86212003-03-03 Andrew Cagney <cagney@redhat.com>
8622
8623 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8624 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8625 predicate. Replace MAX_REGISTER_RAW_SIZE.
8626 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8627 MAX_REGISTER_VIRTUAL_SIZE.
8628 * regcache.c (legacy_max_register_raw_size): New function.
8629 (legacy_max_register_virtual_size): New function.
8630 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8631 (MAX_REGISTER_RAW_SIZE): Define.
8632 (legacy_max_register_raw_size): Declare.
8633 (legacy_max_register_virtual_size): Declare.
8634 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8635 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8636 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8637 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8638 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8639 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8640 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8641 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8642 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8643 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8644 * vax-tdep.c (vax_gdbarch_init): Update.
8645 * v850-tdep.c (v850_gdbarch_init): Update.
8646 * sparc-tdep.c (sparc_gdbarch_init): Update.
8647 * sh-tdep.c (sh_gdbarch_init): Update.
8648 * s390-tdep.c (s390_gdbarch_init): Update.
8649 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8650 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8651 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8652 * mips-tdep.c (mips_gdbarch_init): Update.
8653 * mcore-tdep.c (mcore_gdbarch_init): Update.
8654 * m68k-tdep.c (m68k_gdbarch_init): Update.
8655 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8656 * ia64-tdep.c (ia64_gdbarch_init): Update.
8657 * i386-tdep.c (i386_gdbarch_init): Update.
8658 * hppa-tdep.c (hppa_gdbarch_init): Update.
8659 * h8300-tdep.c (h8300_gdbarch_init): Update.
8660 * frv-tdep.c (frv_gdbarch_init): Update.
8661 * cris-tdep.c (cris_gdbarch_init): Update.
8662 * avr-tdep.c (avr_gdbarch_init): Update.
8663 * arm-tdep.c (arm_gdbarch_init): Update.
8664 * alpha-tdep.c (alpha_gdbarch_init): Update.
8665 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8666 max_register_raw_size or max_register_virtual_size.
8667
8e437497
DC
86682003-03-03 David Carlton <carlton@math.stanford.edu>
8669
8670 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8671 SYMBOL_MATCHES_NAME, add comment.
8672 (SYMBOL_MATCHES_NATURAL_NAME): New.
8673 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8674 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8675 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8676 * symtab.c (lookup_partial_symbol): Use
8677 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8678 unhelpful comment.
8679 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8680 SYMBOL_MATCHES_NAME.
8681 Fix for PR c++/33.
8682
25120b0d
DC
86832003-03-03 David Carlton <carlton@math.stanford.edu>
8684
8685 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8686 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8687 by regexp matching against SYMBOL_NATURAL_NAME.
8688
78a11fb4
DC
86892003-03-03 David Carlton <carlton@math.stanford.edu>
8690
8691 * linespec.c (find_method): Extract code into collect_methods.
8692 (collect_methods): New.
8693
645dd519
MK
86942003-03-02 Mark Kettenis <kettenis@gnu.org>
8695
b4700d91
MK
8696 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8697 get_frame_base.
8698
645dd519
MK
8699 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8700 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8701
0aa7e1aa
SC
87022003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8703
8ffd9b1b 8704 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8705 and not regnum when summing the size of all registers up to regnum.
8706
f30ee0bc
AC
87072003-03-01 Andrew Cagney <cagney@redhat.com>
8708
8709 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8710 FRAME_INIT_SAVED_REGS.
8711 * gdbarch.h, gdbarch.c: Regenerate.
8712 * stack.c (frame_info): Update.
8713 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8714 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8715 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8716 * ns32k-tdep.c (ns32k_pop_frame): Update.
8717 * mips-tdep.c (mips_pop_frame): Update.
8718 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8719 * ia64-tdep.c (ia64_frame_chain): Update.
8720 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8721 (ia64_frameless_function_invocation): Update.
8722 (ia64_init_extra_frame_info): Update.
8723 (ia64_pop_frame_regular): Update.
8724 * frame.h (struct frame_info): Update comment.
8725 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8726 * frame.c (frame_saved_regs_register_unwind): Update.
8727 (frame_saved_regs_register_unwind): Update.
8728 (deprecated_generic_get_saved_register): Update.
8729 * cris-tdep.c: Update comment.
8730 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8731 Rename macro.
8732 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8733 * x86-64-tdep.c (x86_64_init_abi): Update.
8734 * vax-tdep.c (vax_gdbarch_init): Update.
8735 * v850-tdep.c (v850_gdbarch_init): Update.
8736 * sparc-tdep.c (sparc_gdbarch_init): Update.
8737 * sh-tdep.c (sh_gdbarch_init): Update.
8738 * s390-tdep.c (s390_gdbarch_init): Update.
8739 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8740 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8741 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8742 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8743 * mips-tdep.c (mips_gdbarch_init): Update.
8744 * mcore-tdep.c (mcore_gdbarch_init): Update.
8745 * m68k-tdep.c (m68k_gdbarch_init): Update.
8746 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8747 * ia64-tdep.c (ia64_gdbarch_init): Update.
8748 * i386-tdep.c (i386_gdbarch_init): Update.
8749 * frv-tdep.c (frv_gdbarch_init): Update.
8750 * avr-tdep.c (avr_gdbarch_init): Update.
8751 * arm-tdep.c (arm_gdbarch_init): Update.
8752 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8753
42fa7c0f
AC
87542003-03-01 Andrew Cagney <cagney@redhat.com>
8755
8756 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8757 option enum and switch. When no windows, set the interpreter to
8758 INTERP_CONSOLE.
8ffd9b1b 8759
49c7e338
AC
87602003-03-01 Andrew Cagney <cagney@redhat.com>
8761
8762 * main.c (captured_main): Replace magic option characters with an
8763 enum.
8764
e9582e71
AC
87652003-03-01 Andrew Cagney <cagney@redhat.com>
8766
8767 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8768 INIT_EXTRA_FRAME_INFO.
8769 * gdbarch.h, gdbarch.c: Regenerate.
8770 * arm-tdep.c: Update comments.
8771 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8772 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8773 * frame.h, avr-tdep.c: Ditto.
8774 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8775 (create_new_frame, legacy_get_prev_frame): Ditto.
8776 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8777 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8778 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8779 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8780 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8781 * v850-tdep.c (v850_gdbarch_init): Ditto.
8782 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8783 * sh-tdep.c (sh_gdbarch_init): Ditto.
8784 * s390-tdep.c (s390_gdbarch_init): Ditto.
8785 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8786 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8787 * mips-tdep.c (mips_gdbarch_init): Ditto.
8788 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8789 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8790 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8791 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8792 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8793 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8794 * frv-tdep.c (frv_gdbarch_init): Ditto.
8795 * cris-tdep.c (cris_gdbarch_init): Ditto.
8796 * avr-tdep.c (avr_gdbarch_init): Ditto.
8797 * arm-tdep.c (arm_gdbarch_init): Ditto.
8798 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8799 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8800
35cac7cf
AC
88012003-03-01 Andrew Cagney <cagney@redhat.com>
8802
8803 * gdbarch.sh (register_type): New function with predicate.
8804 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8805 * gdbarch.h, gdbarch.c: Re-generate.
8806 * arch-utils.c (generic_register_byte): Use generic_register_size.
8807 (generic_register_size): When available, use
8808 gdbarch_register_type.
8809 * regcache.c (init_regcache_descr): When available, initialize the
8810 register type array using gdbarch_register_type. If the
8811 architecture supplies gdbarch_register_type, do not use the legacy
8812 regcache layout.
8813 * d10v-tdep.c (d10v_register_type): Replace
8814 d10v_register_virtual_type.
8815 (d10v_gdbarch_init): Set register_type instead of
8816 register_virtual_type.
8817
7b83296f
AC
88182003-03-01 Andrew Cagney <cagney@redhat.com>
8819
8820 * Makefile.in (ax-gdb.o): Update dependencies.
8821 * ax-gdb.c: Include "regcache.h".
8822 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8823 * findvar.c (value_of_register): Ditto.
8824 * infcmd.c (default_print_registers_info): Ditto.
8825
eadc1c87
MK
88262003-03-01 Mark Kettenis <kettenis@gnu.org>
8827
8828 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8829 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8830
14143612
MK
88312003-03-01 Mark Kettenis <kettenis@gnu.org>
8832
8833 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8834 of STREQ.
8835
a55cc764
DJ
88362003-02-28 Daniel Jacobowitz <drow@mvista.com>
8837
8838 * Makefile.in (dwarf2loc.o): Update dependencies.
8839 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8840 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8841 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8842 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8843 (locexpr_tracepoint_var_ref): New function.
8844 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8845
08a617da
AC
88462003-02-28 Andrew Cagney <cagney@redhat.com>
8847
8848 * regcache.c (register_size): New function.
8849 * regcache.h (register_size): Declare
8850 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8851 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8852
4224873a
DC
88532003-02-28 David Carlton <carlton@math.stanford.edu>
8854
8855 * linespec.c (decode_compound): Extract code into find_method.
8856 (find_method): New.
8857
ccdc5d7f
JB
88582003-02-28 J. Brobecker <brobecker@gnat.com>
8859
8860 * Makefile.in: Add rules to build and link in observer.o.
8861
974e8ced
JB
88622003-02-27 J. Brobecker <brobecker@gnat.com>
8863
8864 * observer.c: Minor comments edits.
8865
7a28f973
JB
88662003-02-27 J. Brobecker <brobecker@gnat.com>
8867
8868 * observer.h, observer.c: New file.
8869
27cddce2
AC
88702003-02-27 Andrew Cagney <cagney@redhat.com>
8871
8872 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8873
b94a41a1
SC
88742003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8875
8876 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8877 (M6812_OP_STS_EXT): Likewise.
8878 (m6811_prologue): Use the above to recognize prologue.
8879 (m6812_prologue): Likewise.
8880
c8be8951
DC
88812003-02-27 David Carlton <carlton@math.stanford.edu>
8882
8883 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8884 SYMBOL_PRINT_NAME.
8885 (compare_psymbols): Ditto.
8886 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8887
d05bb1fc
MS
88882003-02-27 Michael Snyder <msnyder@redhat.com>
8889
4e845cd3
MS
8890 * f-lang.c (build_fortran_types): New function.
8891 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
8892 * doublest.c (extract_floating): Fix warning text.
8893
f3824013
AC
88942003-02-27 Andrew Cagney <cagney@redhat.com>
8895
8896 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8897 predicate. Replaces PUSH_DUMMY_FRAME.
8898 * gdbarch.h, gdbarch.c: Regnerate.
8899 * valops.c (hand_function_call): Update. Call
8900 generic_push_dummy_frame directly.
8901 * vax-tdep.c (vax_gdbarch_init): Update.
8902 * sparc-tdep.c (sparc_gdbarch_init): Update.
8903 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8904 * m68k-tdep.c (m68k_gdbarch_init): Update.
8905 * hppa-tdep.c (hppa_gdbarch_init): Update.
8906 * alpha-tdep.c (alpha_gdbarch_init): Update.
8907 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8908 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8909 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8910 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8911 push_dummy_frame to generic_push_dummy_frame.
8912 * v850-tdep.c (v850_gdbarch_init): Ditto.
8913 * sh-tdep.c (sh_gdbarch_init): Ditto.
8914 * s390-tdep.c (s390_gdbarch_init): Ditto.
8915 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8916 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8917 * mips-tdep.c (mips_gdbarch_init): Ditto.
8918 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8919 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8920 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8921 * i386-tdep.c (i386_gdbarch_init): Ditto.
8922 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8923 * frv-tdep.c (frv_gdbarch_init): Ditto.
8924 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8925 * cris-tdep.c (cris_gdbarch_init): Ditto.
8926 * avr-tdep.c (avr_gdbarch_init): Ditto.
8927 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 8928
ad188201
KB
89292003-02-26 Kevin Buettner <kevinb@redhat.com>
8930
8931 * mips-tdep.c (show_mips_abi): New function.
8932 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8933 command ``show mips abi''.
8934
6b37567a 89352003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8936
6b37567a 8937 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 8938 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
8939 more sline entries have been seen for the function.
8940
d3e0a5bf
MC
89412003-02-26 Michael Chastain <mec@shout.net>
8942
8943 * configure: Regenerate with autoconf 000227.
8944
18972eea
MC
89452003-02-26 Michael Chastain <mec@shout.net>
8946
8947 Close PR build/660.
8948 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8949 for old libc5/glibc.
8950 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8951
0bbde931
KW
89522003-02-26 Kris Warkentin <kewarken@qnx.com>
8953
8954 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8955 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8956
27ca5dad
MC
89572003-02-26 Michael Chastain <mec@shout.net>
8958
8959 * configure.in: New variable HAVE_UINTPTR_T.
8960 * configure, config.in: Regenerated.
8961
6f88d630
DJ
89622003-02-26 Daniel Jacobowitz <drow@mvista.com>
8963
8964 Fix PR build/1097.
8965 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8966
b14185ce
AC
89672003-02-25 Andrew Cagney <cagney@redhat.com>
8968
8969 * frame.c (get_prev_frame): Add comment on check for
8970 inside_entry_func. Only check for inside_entry_file when not a
8971 dummy and not a sentinel. Check that the new frame is not inner
8972 to the old frame.
8973
ac2bd0a9
AC
89742003-02-25 Andrew Cagney <cagney@redhat.com>
8975
8976 * frame.c (frame_debug): New variable.
8977 (_initialize_frame): Add "set/show debug frame" command.
8978 (get_prev_frame): When frame_debug, print reason why unwind
8979 failed.
8980
b18a0fd2
MC
89812003-02-25 Michael Chastain <mec@shout.net>
8982
8983 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8984 to avoid uintptr_t definition problems.
8985
22abf04a
DC
89862003-02-25 David Carlton <carlton@math.stanford.edu>
8987
8988 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8989 (SYMBOL_LINKAGE_NAME): Ditto.
8990 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8991 SYMBOL_LINKAGE_NAME.
8992 (struct general_symbol_info): Expand comment.
8993 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8994 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8995 (SYMBOL_MATCHES_REGEXP): Ditto.
8996 * symtab.c (symbol_natural_name): New function.
8997 * objfiles.h: Replace all uses of SYMBOL_NAME by
8998 DEPRECATED_SYMBOL_NAME.
8999 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9000 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9001 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9002 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9003 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9004 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9005 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9006 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9007 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9008 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9009 * ada-exp.y: Ditto.
9010 * ada-exp.y: Update copyright.
9011 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9012 * cp-valprint.c: Ditto.
9013
1a5848f6
JJ
90142003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9015
9016 * infptrace.c (detach): Do not flag error if ptrace detach fails
9017 and errno is set to ESRCH.
9018
7343d46a
AC
90192003-02-24 Andrew Cagney <cagney@redhat.com>
9020
9021 * infptrace.c (udot_info): Change type of udot_off to long. Use
9022 paddr when printing udot_off's value.
9023
49fa1dc2
DC
90242003-02-24 David Carlton <carlton@math.stanford.edu>
9025
9026 * symtab.c (make_symbol_overload_list): Only read in partial
9027 symtabs containing a matching partial symbol.
9028
0fe19209
DC
90292003-02-24 David Carlton <carlton@math.stanford.edu>
9030
9031 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9032 do the comparison, not strcmp.
9033 * symfile.c (compare_psymbols): Ditto.
9034 * defs.h: Declare strcmp_iw_ordered.
9035 * utils.c (strcmp_iw_ordered): New function.
9036
8e3ee7b5
JB
90372003-02-24 Jim Blandy <jimb@redhat.com>
9038
9039 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9040 support, shared libs): Remove my name from here, to better reflect
9041 reality.
9042
7df1a324
KW
90432003-02-24 Kris Warkentin <kewarken@qnx.com>
9044
9045 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9046 (target_ops): Add to_have_continuable_watchpoint.
9047 * target.c (update_current_target): Add INHERIT line for
9048 to_have_continuable_watchpoint.
9049 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9050 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9051 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9052 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9053
d1c76907
EZ
90542003-02-24 Elena Zannoni <ezannoni@redhat.com>
9055
9056 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9057 maintainership.
9058
2610b0bf
KW
90592003-02-24 Kris Warkentin <kewarken@qnx.com>
9060
f46169db
KW
9061 * solib.c (solib_open): Call target defined search function after
9062 failing with solib-search-path.
9063 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9064 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9065
9a3c34fe
KW
90662003-02-24 Kris Warkentin <kewarken@qnx.com>
9067
f46169db 9068 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9069
2417dd25
SC
90702003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9071
9072 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9073
b631436b
SC
90742003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9075
9076 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9077 (m68hc11_add_reggroups): New function.
9078 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9079 (m68hc11_gdbarch_init): Install the reggroups.
9080 (_initialize_m68hc11_tdep): Initialize them.
9081
0aa8c1e4
JW
90822003-02-21 James E Wilson <wilson@tuliptree.org>
9083
9084 * MAINTAINERS: Update my email address.
9085
50ceaba5
DC
90862003-02-21 David Carlton <carlton@math.stanford.edu>
9087
9088 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9089
4c2df51b
DJ
90902003-02-21 Daniel Jacobowitz <drow@mvista.com>
9091
9092 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9093 * symtab.h: Add opaque declarations of struct axs_value and
9094 struct agent_expr.
9095 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9096 (struct location_funcs): New type.
9097 (struct symbol): Add "loc" to aux_value.
9098 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9099 * dwarf2read.c: Include "dwarf2expr.h".
9100 (dwarf2_symbol_mark_computed): New function.
9101 (read_func_scope): Use it.
9102 (var_decode_location): New function.
9103 (new_symbol): Use it.
9104 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9105
9106 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9107 (dwarf2expr_h, dwarf2loc_h): New variables.
9108 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9109 (dwarf2expr.o, dwarf2loc.o): New rules.
9110 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9111 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9112 LOC_COMPUTED_ARG.
9113 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9114 * m2-exp.y (yylex): Likewise.
9115 * printcmd.c (address_info, print_frame_args): Likewise.
9116 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9117 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9118 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9119 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9120 * symtab.c (lookup_block_symbol): Likewise.
9121
5784d15e
AF
91222003-02-20 Adam Fedor <fedor@gnu.org>
9123
9124 * symtab.h: Remove objc_specific struct
9125 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9126 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9127 Have language_objc use cplus_specific struct.
9128
d4cad8db
TT
91292003-02-20 Tom Tromey <tromey@redhat.com>
9130
9131 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9132 TYPE_NAME, when printing a String value. PR java/1075.
9133
2f9a90b4
AF
91342003-02-20 Adam Fedor <fedor@gnu.org>
9135
d38074a8 9136 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9137 * objc-lang.c (find_methods): Make static.
2f9a90b4 9138
6f17862b
CF
91392003-02-20 Christopher Faylor <cgf@redhat.com>
9140
9141 * win32-nat.c (get_image_name): Check return value from
9142 ReadProcessMemory.
9143 (child_xfer_memory): Ditto.
9144
715d1656
AO
91452003-02-20 Alexandre Oliva <aoliva@redhat.com>
9146
9147 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9148 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9149 '${exec_prefix}' (in addition to the expansion thereof) as
9150 relocatable.
9151 * configure: Rebuilt.
9152
b1262a02
DC
91532003-02-20 David Carlton <carlton@math.stanford.edu>
9154
9155 * symtab.c (search_symbols): Revert the search_symbols part of my
9156 2002-12-23 patch. Add comment.
9157
7134143f
DJ
91582002-02-20 Daniel Jacobowitz <drow@mvista.com>
9159
9160 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9161 * dbxread.c (elfstab_build_psymtabs): Don't call
9162 install_minimal_symbols.
9163 (stabsect_build_psymtabs): Likewise.
9164 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9165 earlier.
9166 * somread.c (som_symfile_read): Call install_minimal_symbols
9167 and do_cleanups earlier.
9168 * nlmread.c (nlm_symfile_read): Likewise.
9169 * mdebugread.c (elfmdebug_build_psymtabs): Call
9170 install_minimal_symbols and make appropriate cleanups.
9171
cf466558
KB
91722003-02-20 Kevin Buettner <kevinb@redhat.com>
9173
9174 * solib.c (reload_shared_libraries): New function.
9175 (_initialize_solib): Add callbacks for ``set solib-search-path''
9176 and ``set solib-absolute-prefix''.
9177
de5ad195
DC
91782003-02-20 David Carlton <carlton@math.stanford.edu>
9179
9180 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9181 expand comment.
9182 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9183 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9184 * ada-typeprint.c (ada_typedef_print): Ditto.
9185 * ax-gdb.c (gen_var_ref): Ditto.
9186 * breakpoint.c (print_one_breakpoint): Ditto.
9187 * buildsym.c (finish_block): Ditto.
9188 * c-valprint.c (c_val_print): Ditto.
9189 * expprint.c (print_subexp): Ditto.
9190 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9191 * infcmd.c (jump_command): Ditto.
9192 * linespec.c (decode_line_2, decode_compound): Ditto.
9193 * maint.c (maintenance_translate_address): Ditto.
9194 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9195 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9196 Ditto.
8ffd9b1b
AJ
9197 * p-valprint.c (pascal_val_print): Ditto.
9198 * stabsread.c (define_symbol): Ditto.
de5ad195 9199 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9200 (print_frame_arg_vars, return_command): Ditto.
9201 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9202 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9203 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9204 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9205 (rbreak_command): Ditto.
9206 * tracepoint.c (tracepoints_info): Ditto.
9207 * typeprint.c (typedef_print): Ditto.
9208 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9209 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9210 * ada-typeprint.c: Update Copyright.
9211 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9212 * tracepoint.c, cli/cli-cmds.c: Ditto.
9213
f796e4be
KB
92142003-02-20 Kevin Buettner <kevinb@redhat.com>
9215
9216 * frame.c (generic_unwind_get_saved_register): Make non-static.
9217 * frame.h (generic_unwind_get_saved_register): Declare.
9218 * mips-tdep.c (read_next_frame_reg): Fetch register from
9219 current regcache when frame is NULL.
9220 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9221 that must be NULL.
9222 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9223 instead of frame_register_unwind().
9224
836cc9f4
AC
92252003-02-20 Andrew Cagney <ac131313@redhat.com>
9226
9227 * remote-sim.c (gdbsim_insert_breakpoint)
9228 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9229 code.
9230
501eef12
AC
92312003-02-20 Andrew Cagney <ac131313@redhat.com>
9232
9233 * remote.c (_initialize_remote): Add commands "set/show remote
9234 hardware-watchpoint-limit" and "set/show remote
9235 hardware-breakpoint-limit".
9236 (remote_hw_watchpoint_limit): Initialize to -1.
9237 (remote_hw_breakpoint_limit): Ditto.
9238 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9239
1b6bc7e0
CF
92402003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9241
9242 * coff-pe-read.c: New file - support reading of minimal symbols from a
9243 portable executable using the export table.
9244 * coff-pe-read.h: New file.
9245 * coffread.c: Include coff-pe-read.h.
9246 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9247 debugging symbols found.
9248 * Makefile.in (SFILES): Add coff-pe-read.o.
9249 (coff_pe_read_h): Define.
9250 (COMMON_OBS): Add coff-pe-read.o.
9251 (coffread.o): Add coff_pe_read_h dependency.
9252 (coff-pe-read.o): New target.
9253
fe898f56
DC
92542003-02-19 David Carlton <carlton@math.stanford.edu>
9255
9256 * Makefile.in (SFILES): Add block.c.
9257 (block_h): New.
9258 (COMMON_OBS): Add block.o.
9259 (block.o): New.
9260 (x86-64-tdep.o): Add $(block_h).
9261 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9262 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9263 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9264 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9265 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9266 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9267 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9268 * value.h: Add opaque declaration for struct block.
9269 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9270 * ada-lang.h: Ditto.
9271 * x86-64-tdep.c: #include "block.h"
9272 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9273 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9274 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9275 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9276 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9277 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9278 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9279 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9280 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9281 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9282 * symtab.c (block_function): Ditto.
9283 (contained_in): Ditto.
9284 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9285 block.h. Add opaque declaration for struct block.
9286 * symtab.h: Move block_function and contained_in declarations to
9287 block.h. Add opaque declarations for struct block, struct
9288 blockvector.
9289 (struct block): Move to block.h.
9290 (struct blockvector): Ditto.
9291 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9292 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9293 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9294 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9295 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9296 Ditto.
9297 * block.c: New file.
9298 * block.h: New file.
9299
173345b5
TR
93002003-02-19 Theodore A. Roth <troth@openavr.org>
9301
9302 * avr-tdep.c (avr_extract_return_value): Remove function.
9303 (avr_store_return_value): Remove function.
9304 (avr_extract_struct_value_address): Remove function.
9305 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9306
338ef23d
AC
93072003-02-19 Andrew Cagney <ac131313@redhat.com>
9308
9309 * rs6000-tdep.c: Include "gdb_assert.h".
9310 (registers_e500): Add "acc" and "spefscr".
9311 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9312 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9313 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9314 really is "r0".
9315 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9316
5412f5f3
KS
93172003-02-18 Keith Seitz <keiths@redhat.com>
9318
9319 * Makefile.in: Add gdbtk-interps.c.
9320
881324eb
KB
93212003-02-18 Kevin Buettner <kevinb@redhat.com>
9322
9323 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9324 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9325
6a2f5abf
AC
93262003-02-18 Andrew Cagney <cagney@redhat.com>
9327
9328 * symtab.h (struct objfile): Add opaque declaration.
9329
54c7009d
EZ
93302003-02-18 Elena Zannoni <ezannoni@redhat.com>
9331
9332 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9333 * dbxread.c (process_one_symbol): Use last_function_start rather
9334 than function_start_offset to find the real beginning of the
9335 current function. The latter is just the text section offset on
9336 some systems, the former is always the real function start.
54c7009d 9337
7ee6d7eb
AC
93382003-02-17 Andrew Cagney <cagney@redhat.com>
9339
9340 * configure.in: Revert ${target} != ${host}.
9341
2846da9b
AC
93422003-02-17 Andrew Cagney <ac131313@redhat.com>
9343
9344 * configure.in (Makefile): Use the test ${target} != ${host},
9345 instead of the absence of the "nm.h" file, to determine of the
9346 configuration non-native.
9347 * configure: Regenerate.
8ffd9b1b 9348
3b27aeea
EZ
93492003-02-14 Elena Zannoni <ezannoni@redhat.com>
9350
fbe586ae 9351 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9352
9353 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9354 conditionalize tui_active test.
9355 (lookup_cmd_1): Ditto.
9356
b0b1c2c0
MK
93572003-02-14 Mark Kettenis <kettenis@gnu.org>
9358
9359 * configure.in: Add check for _etext.
9360 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9361 available.
9362 * config.in, configure: regenerated.
9363
8f05cde5
DJ
93642003-02-14 Daniel Jacobowitz <drow@mvista.com>
9365
9366 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9367
021e7609
AC
93682003-02-14 Andrew Cagney <ac131313@redhat.com>
9369
9370 * main.c (tui_version): Delete variable.
9371 (captured_main): When --tui, set interpreter_p to "tui" instead of
9372 enabling tui_version.
9373 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9374 tui_version.
9375 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9376 * cli/cli-cmds.c (disassemble_command): Ditto.
9377 * defs.h (tui_version): Delete declaration.
9378 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9379 (tui-interp.o): Add rules.
9380 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9381
e325dcec
CF
93822003-02-14 Christopher Faylor <cgf@redhat.com>
9383
36ffb041 9384 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9385 just-loaded dll.
9386
c4f90d87
JM
93872003-02-12 Jason Molenda (jmolenda@apple.com)
9388
fbe586ae
RH
9389 * symmisc.c (print_objfile_statistics): Include information about
9390 the number of psymtabs and symtabs in each object file.
c4f90d87 9391
e46e5ccd
KS
93922003-02-13 Keith R Seitz <keiths@redhat.com>
9393
9394 * main.h (struct captured_main_args): Add interpreter_p.
9395 * main.c (captured_main): Initialize interpreter_p from context.
9396 * gdb.c (main): Set interpreter_p argument.
9397 * Makefile.in (gdb.o): Add dependency for interps.h.
9398
fe97fe9c
AC
93992003-02-12 Andrew Cagney <ac131313@redhat.com>
9400
9401 * event-top.c (cli_command_loop): Delete declaration.
9402 (_initialize_event_loop): Delete function setting event_loop_hook.
9403 * event-top.h (cli_command_loop): Declare. Update copyright.
9404 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9405 * interps.c (current_interp_command_loop): When event_loop_p, call
9406 cli_command_loop.
9407
1cdac4ef
AC
94082003-02-12 Andrew Cagney <ac131313@redhat.com>
9409
9410 * interps.h (interp_command_loop_ftype): Change return type to
9411 void.
9412
48037ead
ML
94132003-02-12 Michal Ludvig <mludvig@suse.cz>
9414
9415 * x86-64-tdep.c (x86_64_extract_return_value)
9416 (x86_64_store_return_value): Use regcache instead of regbuf.
9417 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9418 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9419
033afc63
AC
94202003-02-11 Andrew Cagney <ac131313@redhat.com>
9421
9422 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9423 * aclocal.m4: Regenerate.
9424 * configure: Regenerate.
9425
9426 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9427 TCL_LD_SEARCH_FLAGS.
9428
40d02bca
ML
94292003-02-10 Michal Ludvig <mludvig@suse.cz>
9430
9431 * dwarf2cfi.c: Reindented.
9432
11308a41
AC
94332003-02-09 Andrew Cagney <ac131313@redhat.com>
9434
9435 * interps.c (clear_interpreter_hooks): Convert function definition
9436 to ISO C.
9437
e1c1c0f6
DC
94382003-02-07 David Carlton <carlton@math.stanford.edu>
9439
9440 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9441
ab5d3da6
KB
94422003-02-07 Kevin Buettner <kevinb@redhat.com>
9443
9444 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9445 (struct type): ...to here.
9446 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9447 field.
9448 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9449 (replace_type): Set length on all type variants for a given type.
9450
b8a92b82
AC
94512003-02-07 Andrew Cagney <ac131313@redhat.com>
9452
9453 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9454 <sys/stat.h>.
9455 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9456
5cb316ef
AC
94572003-02-06 Andrew Cagney <ac131313@redhat.com>
9458
2555fe1a
AC
9459 * Makefile.in (symm-nat.o): Update dependencies.
9460 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9461 (lynx-nat.o, ia64-linux-nat.): Ditto.
9462 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9463 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9464 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9465
44270758
AC
9466 * Makefile.in (inflow_h): Define.
9467 (procfs.o, inflow.o, procfs.o): Update dependencies.
9468 * inftarg.c (child_stop): Delete extern declaration of
9469 inferior_process_group. Include "inflow.h".
9470 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9471 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9472 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9473 (our_process_group, inferior_process_group): Extern declarations.
9474
df8f7274
AC
9475 * procfs.c: Include "gdb_assert.h".
9476
5cb316ef
AC
9477 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9478 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9479 * jv-typeprint.c (java_type_print_base): Ditto.
9480 * typeprint.c (typedef_print): Eliminate STREQ.
9481 * cli/cli-script.c (define_command, define_command): Ditto.
9482 * main.c (captured_main): Ditto.
9483 * values.c (lookup_internalvar): Ditto.
9484 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9485 within `if' conditional.
9486 * linespec.c (decode_line_2): Ditto.
9487 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9488 (bfd_openw_with_cleanup): Ditto.
9489
2a28ccea
MK
94902003-02-07 Mark Kettenis <kettenis@gnu.org>
9491
9492 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9493 legacy_extract_return_value and store_return_value to
9494 legacy_return_value.
9495
786b8124
CF
94962003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9497
9498 * win32-nat.c (get_relocated_section_addrs): New function. Find
9499 section load addresses for symbol handling in relocated DLLs.
9500 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9501
b871e4ec
FF
95022003-02-05 Fred Fish <fnf@intrinsity.com>
9503
9504 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9505 '=' and '!='.
9506 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9507 with '&' and '=='.
9508 (angel_RDI_info): Ditto.
9509 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9510 with '&' and '!='.
9511 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9512
4389a95a 95132003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9514 Keith Seitz <keiths@redhat.com>
9515 Elena Zannoni <ezannoni@redhat.com>
9516 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9517
9518 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9519 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9520 (SUBDIR_MI_OBS): Add "mi-interp.o".
9521 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9522 (SFILES): Add "interps.c".
9523 (COMMON_OBS): Add "interps.o".
9524 (interps_h, mi_main_h): Define.
9525 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9526 (mi-main.o, main.o, event-top.o): Update dependencies.
9527 * cli/cli-interp.c: New file.
9528 * interps.h, interps.c: New files.
9529 * top.c: (gdb_init): Don't install the default interpreter, handed
9530 by captured_main.
9531 * main.c: Include "interps.h".
9532 (interpreter_p): Note that it should malloc'ed.
9533 (captured_command_loop): Call current_interp_command_loop.
9534 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9535 xfree and xstrdup when updating interpreter_p. Install the
9536 default interpreter. Add hack to stop mi1's copyright notice
9537 being encoded.
9538 * event-top.h (gdb_setup_readline): Declare.
9539 (gdb_disable_readline): Declare.
9540 * event-top.c: Include "interps.h".
9541 (display_gdb_prompt): Call current_interp_display_prompt_p.
9542 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9543 gdb_stdlog, and gdb_stdtarg.
9544 (_initialize_event_loop): Don't call gdb_setup_readline.
9545 * cli-out.c (cli_out_set_stream): New function.
9546 * cli-out.h (cli_out_set_stream): Declare.
9547
ff3b5810
MK
95482003-02-06 Mark Kettenis <kettenis@gnu.org>
9549
9550 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9551 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9552 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9553 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9554 config/i386/i386v42mp.mt: Removed.
9555
5b729aa5
MK
95562003-02-05 Mark Kettenis <kettenis@gnu.org>
9557
9558 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9559 GDB_OSABI_SOLARIS.
9560
8cc15142
MC
95612003-02-05 Michael Chastain <mec@shout.net>
9562
9563 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9564 2.12.1 and earlier versions.
9565
5aa5d4b9
AC
95662003-02-05 Andrew Cagney <ac131313@redhat.com>
9567
9568 Remove orphaned hosts, targets and files.
9569 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9570 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9571 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9572 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9573 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9574 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9575 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9576 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9577 * config/sparc/tm-sp64sim.h: Delete.
9578 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9579 hosts.
9580 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9581 mips*-dec-mach3* targets.
9582
b68767c1
MC
95832003-02-04 Michael Chastain <mec@shout.net>
9584
9585 * NEWS: Fix typo: sepcifying -> specifying.
9586
5ae7ca1d
MC
95872003-02-04 Michael Chastain <mec@shout.net>
9588
9589 * dwarfread.c: Add documentation on the state of dwarf-1,
9590 looking towards obsoletion.
9591
d08a4280
MC
95922003-02-03 Michael Chastain <mec@shout.net>
9593
9594 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9595 gdb/testsuite/gdb.c++/pr-1023.exp.
9596
e9be73e4
AC
95972003-02-04 Andrew Cagney <ac131313@redhat.com>
9598
9599 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9600 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9601
9602 * utils.c (init_page_info): Delete reference to MPW in comments.
9603 * main.c (captured_main): Delete #ifdef MPW.
9604
05d57f6f
AC
96052003-02-04 Andrew Cagney <ac131313@redhat.com>
9606
8ffd9b1b 9607 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9608 * monitor.c (monitor_expect): Obsolete reference to m32r.
9609 * configure.tgt: Mark m32r-*-elf* as obsolete.
9610 * MAINTAINERS: Mark m32k as obsolete.
9611 * m32r-rom.c: Obsolete file.
9612 * config/m32r/m32r.mt: Obsolete file.
9613 * config/m32r/tm-m32r.h: Obsolete file.
9614 * m32r-stub.c: Obsolete file.
9615 * m32r-tdep.c: Obsolete file.
9616
8b0e5691
AC
96172003-02-04 Andrew Cagney <ac131313@redhat.com>
9618
9619 * NEWS: Mention that the z8k-zilog-none is obsolete.
9620 * MAINTAINERS: Mark z8k as obsolete.
9621 * configure.tgt: Obsolete the z8k-*-coff* target.
9622 * config/z8k/z8k.mt: Obsolete file.
9623 * config/z8k/tm-z8k.h: Obsolete file.
9624 * z8k-tdep.c: Obsolete file.
9625
67f16606
AC
96262003-02-04 Andrew Cagney <ac131313@redhat.com>
9627
9628 * NEWS: Mention that the mn10200-elf is obsolete.
9629 * configure.tgt: Obsolete mn10200-*-* target.
9630 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9631 mention that the mn10200 is obsolete.
9632 * breakpoint.h: Ditto.
9633 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9634 * config/mn10200/mn10200.mt: Obsolete file.
9635 * config/mn10200/tm-mn10200.h: Obsolete file.
9636 * mn10200-tdep.c: Obsolete file.
9637
fd2299bd
AC
96382003-02-04 Andrew Cagney <ac131313@redhat.com>
9639
9640 * MAINTAINERS: Mark h8500 as obsolete.
9641 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9642 * findvar.c (value_from_register): Ditto.
9643 * h8500-tdep.c: Mark file as obsolete.
9644 * config/h8500/h8500.mt: Ditto.
9645 * config/h8500/tm-h8500.h: Ditto.
9646 * NEWS: Mention that h8500 is obsolete.
9647
eb9a305d
DC
96482003-02-04 David Carlton <carlton@math.stanford.edu>
9649
9650 * objfiles.c (allocate_objfile): Always set name. Add comment at
9651 start of function.
9652 * jv-lang.c (get_dynamics_objfile): Add comment.
9653
406fc7fb
DC
96542003-02-04 David Carlton <carlton@math.stanford.edu>
9655
9656 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9657 * printcmd.c (build_address_symbolic): Replace uses of
9658 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9659 SYMBOL_NAME, and asm_demangle.
9660 Update copyright.
9661
93d91629
DC
96622003-02-04 David Carlton <carlton@math.stanford.edu>
9663
9664 * linespec.c (decode_compound): Extract code into
9665 lookup_prefix_sym.
9666 (lookup_prefix_sym): New function.
9667
1c5cb38e
DC
96682003-02-04 David Carlton <carlton@math.stanford.edu>
9669
9670 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9671 FLOAT_COERCION_BADNESS.
9672 * gdbtypes.c (rank_one_type): Replace all uses of
9673 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9674
0cf824c9
JB
96752003-02-04 Jim Blandy <jimb@redhat.com>
9676
9677 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9678 section, let dwarf_macinfo_section point to it, not
9679 dwarf_loc_section.
9680
a2d356b0
DJ
96812003-02-04 Daniel Jacobowitz <drow@mvista.com>
9682
9683 Pointed out by Anton Blanchard <anton@samba.org>.
9684 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9685 (ppc_linux_at_sigtramp_return_path): Use it.
9686
2de7ced7
DJ
96872003-02-04 Daniel Jacobowitz <drow@mvista.com>
9688
9689 * defs.h (streq): Add prototype.
9690 * utils.c (streq): New function.
9691
9692 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9693 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9694 * mdebugread.c (new_symbol): Likewise.
9695 * stabsread.c (define_symbol): Likewise.
9696 * coffread.c (process_coff_symbol): Likewise.
9697 * dwarfread.c (new_symbol): Likewise.
9698
9699 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9700 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9701 here.
9702 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9703 SYMBOL_INIT_DEMANGLED_NAME.
9704 * objfiles.c: Include "hashtab.h".
9705 (allocate_objfile): Call htab_set_functions_ex for the
9706 demangled_names_hash.
9707 (free_objfile): Call htab_delete for the demangled_names_hash.
9708 * objfiles.h (struct htab): Add declaration.
9709 (struct objfile): Add demangled_names_hash.
9710 * symfile.c: Include "hashtab.h".
9711 (reread_symbols): Call htab_delete for the demangled_names_hash.
9712 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9713 SYMBOL_NAME in the bcache.
9714 * symtab.c: Include "hashtab.h". Update comments.
9715 (create_demangled_names_hash, symbol_set_names): New functions.
9716 (symbol_find_demangled_name): New function, broken out from
9717 symbol_init_demangled_names.
9718 (symbol_init_demangled_names): Use it.
9719 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9720 (SYMBOL_SET_NAMES): New macro.
9721 (symbol_set_names): Add prototype.
9722
15831452
JB
97232003-02-03 Jim Blandy <jimb@redhat.com>
9724
9725 Use a single, consistent representation for an empty minimal
9726 symbol table in an objfile.
9727 * objfiles.c (terminate_minimal_symbol_table): New function.
9728 (allocate_objfile): Call it.
9729 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9730 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9731 non-NULL.
15831452
JB
9732 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9733 objfile has minimal symbols, compare minimal_symbol_count to zero,
9734 instead of comparing msymbols with NULL.
9735 * objfiles.c (have_minimal_symbols): Same.
9736 * solib-sunos.c (solib_add_common_symbols): Call
9737 terminate_minimal_symbol_table.
9738 * symfile.c (reread_symbols): Same.
8ffd9b1b 9739
ffc65945
KB
97402003-02-03 Kevin Buettner <kevinb@redhat.com>
9741
9742 * s390-tdep.c (s390_address_class_type_flags)
9743 (s390_address_class_type_flags_to_name)
9744 (s390_address_class_name_to_type_flags): New functions.
9745 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9746 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9747
f211c6d4
MS
97482003-02-03 Michael Snyder <msnyder@redhat.com>
9749
9750 * arm-tdep.c: Fix spell-o in comment.
9751
659b0389
ML
97522003-02-03 Michal Ludvig <mludvig@suse.cz>
9753
9754 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9755 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9756 error messages to contain BFD filename.
659b0389 9757
3b31d625
EZ
97582003-02-02 Elena Zannoni <ezannoni@redhat.com>
9759
997b089a 9760 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9761 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9762 (do_mixed_source_and_assembly): Use
9763 make_cleanup_ui_out_tuple_begin_end and
9764 make_cleanup_ui_out_tuple_begin_end.
9765 (do_mixed_source_and_assembly): Ditto.
9766 * thread.c (do_captured_list_thread_ids): Ditto.
9767 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9768 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9769 ui_out_tuple_end): Delete prototypes.
9770 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9771 ui_out_list_end, ui_out_tuple_end): Delete.
9772
9773 From Kevin Buettner <kevinb@redhat.com>:
9774 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9775 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9776 (do_cleanup_table_end): New functions.
9777 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9778 Use cleanups to invoke_ui_out_tuple_end().
9779 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9780 * cli/cli-setshow.c (cmd_show_list): Use
9781 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9782
5b181d62
AC
97832003-02-02 Andrew Cagney <ac131313@redhat.com>
9784
9785 * frame.c (frame_unwind_register): New function.
9786 (frame_unwind_unsigned_register): Use.
9787 (frame_unwind_signed_register): Use.
9788 (frame_read_register): New function.
9789 * frame.h (frame_unwind_register): Declare.
9790 (frame_read_register): Declare.
9791
9792 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9793 and frame_unwind_register instead of read_memory, write_register
9794 and deprecated_write_register_bytes.
9795
5f601589
AC
97962003-02-02 Andrew Cagney <ac131313@redhat.com>
9797
9798 * frame.h: Note that namelen can be negative.
9799 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9800 NAME's length.
9801
9802 * NEWS: Mention that the d10v's `regs' command is deprecated.
9803 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9804 (d10v_print_registers_info): New function.
9805 (show_regs): Call d10v_print_registers_info.
9806 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9807
6a3fe0a4
MK
98082003-02-02 Mark Kettenis <kettenis@gnu.org>
9809
9810 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9811 lost in the previous patch.
9812
075559bc
AC
98132003-02-01 Andrew Cagney <ac131313@redhat.com>
9814
9815 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
9816 * stack.c (print_frame_info_base): Output complete FRAME tuple
9817 for synthesized frames.
075559bc 9818
6789195b
AC
98192003-02-02 Andrew Cagney <ac131313@redhat.com>
9820
9821 * mips-nat.c (zerobuf): Delete.
9822 (fetch_inferior_registers): Alloc local zerobuf.
9823 (fetch_core_registers): Alloc local zerobuf.
9824 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9825 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9826 * thread-db.c (thread_db_store_registers): Ditto.
9827 * sh-tdep.c (sh_do_register): Ditto.
9828 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9829 * remote-sim.c (gdbsim_store_register): Ditto.
9830 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9831 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9832 * monitor.c (monitor_supply_register): Ditto.
9833 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9834 * mips-nat.c (fetch_inferior_registers): Ditto.
9835 * m68klinux-nat.c (fetch_register): Ditto.
9836 * lynx-nat.c (fetch_inferior_registers): Ditto.
9837 (fetch_inferior_registers): Ditto.
9838 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9839 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9840 (hpux_thread_store_registers): Ditto.
9841 * hppah-nat.c (fetch_register): Ditto.
9842 * hppab-nat.c (fetch_register): Ditto.
9843 * hppa-tdep.c (pa_register_look_aside): Ditto.
9844 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9845 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9846
e669114a
AC
98472003-02-01 Andrew Cagney <ac131313@redhat.com>
9848
9849 * gdbarch.sh: Explictly specify all method levels. When a
9850 variable with an empty level, provide a non-multi-arch default.
9851 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9852 * gdbarch.h: Re-generate.
9853 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9854 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9855
9a043c1d
AC
98562003-02-01 Andrew Cagney <ac131313@redhat.com>
9857
9858 * defs.h (host_pointer_to_address): Delete declaration.
9859 (address_to_host_pointer): Delete declaration.
9860 * utils.c (host_pointer_to_address): Delete function.
9861 (address_to_host_pointer): Delete function.
9862 * procfs.c (procfs_address_to_host_pointer): New function.
9863 * procfs.c (proc_set_watchpoint): Use.
9864 (procfs_can_use_hw_breakpoint): Update comments.
9865 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9866 (som_solib_add): Use.
9867 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9868 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 9869
7ca9f392
AC
98702003-02-01 Andrew Cagney <ac131313@redhat.com>
9871
94bbfd30
AC
9872 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9873 strlen d_name.
9874
7ca9f392
AC
9875 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9876 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9877 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9878 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9879 (define_symbol): Update.
9880 * symfile.c (generic_load): Remove references to nindy.
9881 * symtab.c: Remove references to nindy.
9882
31a85ea2
AC
98832003-02-01 Andrew Cagney <ac131313@redhat.com>
9884
9885 * infcmd.c (print_float_info): Delete code conditional on
9886 FLOAT_INFO.
9887 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9888 * config/m68k/nm-apollo68b.h: Ditto.
9889 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9890 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9891 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9892
f6e85fc8
MK
98932003-02-01 Mark Kettenis <kettenis@gnu.org>
9894
6015b6a0
MK
9895 * config/i386/tm-i386os9k.h: Removed.
9896
f7a30bdf
MK
9897 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9898 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9899 they're identical to i[3456]86-*-sysv* now.
9900 * config/i386/i386v32.mh: Removed.
9901 * config/i386/xm-i386v32.h: Removed.
9902 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9903
28d52111
MK
9904 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9905
4d3f6bce
MK
9906 * config/i386/i386dgux.mh: Removed.
9907 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9908
f6e85fc8
MK
9909 * configure.in: Fix typo.
9910 * configure: Regenerated.
9911
53955967
DC
99122003-01-31 David Carlton <carlton@math.stanford.edu>
9913
9914 * dwarf2read.c (dwarf2_locate_sections): Set
9915 dwarf_ranges_section.
9916
b1364885
AC
99172003-01-31 Andrew Cagney <ac131313@redhat.com>
9918
8dbb1c65
AC
9919 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9920 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 9921
8731e58e
AC
9922 * utils.c: Re-indent.
9923
b1364885
AC
9924 * config/djgpp/fnchange.lst: Delete nindy files.
9925 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9926 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9927 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9928 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9929 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9930 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9931 * Makefile.in (init.c): Remove nindy references.
9932 (saber_gdb): Delete rule.
9933 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9934 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9935 and a68v-nat.c.
9936 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9937 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9938 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9939 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9940 nindy-share/stop.h.
9941 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9942 * saber.suppress: Delete file.
9943
086df311
DJ
99442003-01-31 Daniel Jacobowitz <drow@mvista.com>
9945
9946 * dbxread.c (stabs_data): New static variable.
9947 (fill_symbuf): Support an in-memory buffer for stabs data.
9948 (stabs_seek): New function.
9949 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9950 (read_ofile_symtab): Use stabs_seek.
9951 (elfstab_build_psymtabs): Take an asection* instead of
9952 an offset and size. Relocate the stabs data if necessary.
9953 Save the section* for dbx_psymtab_to_symtab.
9954 * dwarf2read.c: Add section variables for each debug section.
9955 (dwarf2_locate_sections): Fill them in.
9956 (dwarf2_read_section): Take an asection* argument.
9957 Relocate the section contents if necessary.
9958 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9959 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9960 it to dwarf2_read_section.
9961 (dwarf2_build_frame_info): Update callers.
9962 * elfread.c (elf_symfile_read): Update call to
9963 elfstab_build_psymtabs.
9964 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9965 (DBX_STAB_SECTION): New macro.
8ffd9b1b 9966 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
9967 * symfile.c (symfile_dummy_outputs): New function.
9968 (symfile_relocate_debug_section): New function.
9969 * symfile.h (symfile_relocate_debug_section): Add prototype.
9970
87d1b352
RH
99712003-01-31 Richard Henderson <rth@redhat.com>
9972
9973 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9974 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9975 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9976 * alpha-tdep.c (alpha_register_name): Add "unique".
9977 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9978 (ALPHA_UNIQUE_REGNUM): New.
9979 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9980
c48861fb
AC
99812003-01-31 Andrew Cagney <ac131313@redhat.com>
9982
9983 * README: Remove reference to Ericsson 1800 monitor.
9984 * Makefile.in (remote-es.o): Delete rule.
9985 (ALLDEPFILES): Delete remote-es.c.
9986 * remote-es.c: Delete file.
9987 * config/m68k/es1800.mt: Delete file.
9988 * config/djgpp/fnchange.lst: Update.
9989 * configure.tgt: Delete m68*-ericsson-* target.
9990
d764a824
AF
99912003-01-31 Adam Fedor <fedor@gnu.org>
9992
9993 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9994 Remove duplicate/shadowing variable of same name.
9995
fe36c4f4
JB
99962003-01-30 Jim Blandy <jimb@redhat.com>
9997
9998 * symfile.c (find_separate_debug_file): Assert that the objfile's
9999 directory name we compute ends with a slash, and then assume that
10000 that's so everywhere we use it.
10001
cb741690
DJ
100022003-01-30 Daniel Jacobowitz <drow@mvista.com>
10003
10004 * valops.c (value_assign): Flush frame cache after stores to memory
10005 also.
10006
96ee5227
AC
100072003-01-30 Andrew Cagney <ac131313@redhat.com>
10008
10009 * Makefile.in (mon960-rom.o): Delete rule.
10010 * mon960-rom.c: Delete file.
10011
7f6104a9
AC
100122003-01-30 Andrew Cagney <ac131313@redhat.com>
10013
10014 * d10v-tdep.c: Include "frame-unwind.h".
10015 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10016 list.
10017 (next_addr, uses_frame): Delete.
10018 (struct d10v_unwind_cache): Define.
10019 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10020 Use info instead of next_addr and uses_frame globals.
10021 (d10v_frame_init_saved_regs): Delete function.
10022 (d10v_init_extra_frame_info): Delete function.
10023 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10024 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10025 init_frame_pc or frame_saved_pc.
10026 (d10v_pop_frame): Delete function.
10027 (do_d10v_pop_frame): Delete function.
10028 (d10v_frame_chain): Delete function.
10029 (d10v_frame_chain_valid): Delete function.
10030 (d10v_frame_pc_unwind): New function.
10031 (d10v_frame_id_unwind): New function.
10032 (saved_regs_unwinder): New function.
10033 (d10v_frame_register_unwind): New function.
10034 (d10v_frame_pop): New function.
10035 (d10v_frame_unwind): New variable.
10036 (d10v_frame_p): New function.
10037 (d10v_frame_saved_pc): Delete function.
10038 * Makefile.in (d10v-tdep.o): Update dependencies.
10039
cad2e848
JB
100402003-01-30 J. Brobecker <brobecker@gnat.com>
10041
10042 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10043 causing some regressions due to a change in the default value
10044 for this macro.
10045
af34e669
DJ
100462003-01-29 Richard Henderson <rth@redhat.com>
10047 Elena Zannoni <ezannoni@redhat.com>
10048 Daniel Jacobowitz <drow@mvista.com>
10049
10050 Fix PR gdb/961.
8ffd9b1b 10051 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10052 variables.
10053 (RANGES_SECTION): New.
10054 (dwarf_ranges_buffer): New variable.
10055 (struct comp_unit_head): Add member "die".
10056 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10057 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10058 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10059 (dwarf2_locate_sections): Likewise.
10060 (dwarf2_build_psymtabs): Read .debug_ranges.
10061 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10062 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10063 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10064 Look for DW_AT_ranges and return the bounding box.
10065
baa93fa6
CF
100662003-01-29 Brian Ford <ford@vss.fsi.com>
10067
10068 * win32-nat.c (cygwin_pid): Removed as unused.
10069 (child_attach): Try fall back to Cygwin pid.
10070
c63f977f
JB
100712003-01-29 Jim Blandy <jimb@redhat.com>
10072
10073 * objfiles.h (struct objfile): Doc fix.
10074
d62d1979
AC
100752003-01-29 Andrew Cagney <ac131313@redhat.com>
10076
10077 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10078 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10079 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10080 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10081 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10082 (FRAME_SAVED_PC): Change to a function with predicate.
10083 * gdbarch.h, gdbarch.c: Re-generate.
10084
1ae18a04
AC
100852003-01-28 Andrew Cagney <ac131313@redhat.com>
10086
52287340
AC
10087 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10088
1ae18a04
AC
10089 * complaints.c (complain): Delete function.
10090 * complaints.h (struct deprecated_complaint): Delete definition.
10091 (complain): Delete declaration.
10092
f2c16bd6
KB
100932003-01-28 Kevin Buettner <kevinb@redhat.com>
10094
10095 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10096 dummy frames.
10097
a94dd1fd
AC
100982003-01-27 Andrew Cagney <ac131313@redhat.com>
10099
10100 * sentinel-frame.h, sentinel-frame.c: New files.
10101 * Makefile.in (frame.o): Update dependencies.
10102 (SFILES): Add sentinel-frame.c.
10103 (sentinel_frame_h): Define.
10104 (COMMON_OBS): Add sentinel-frame.o.
10105 (sentinel-frame.o): Specify dependencies.
10106 * frame.c: Include "sentinel-frame.h".
10107 (frame_register_unwind): Rewrite assuming that there is always a a
10108 ->next frame.
10109 (frame_register, generic_unwind_get_saved_register): Ditto.
10110 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10111 (create_sentinel_frame, unwind_to_current_frame): New functions.
10112 (get_current_frame): Rewrite using create_sentinel_frame and
10113 unwind_to_current_frame. When possible, always create a frame.
10114 (create_new_frame): Set next to the sentinel frame.
10115 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10116 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10117 ID cache when necessary.
10118 (frame_saved_regs_id_unwind): Use frame_relative_level.
10119 (deprecated_generic_get_saved_register): Use frame_relative_level,
10120 get_frame_saved_regs, get_frame_pc, get_frame_base and
10121 get_next_frame.
10122 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10123 frame_register.
10124
5378adc4
DJ
101252003-01-27 Daniel Jacobowitz <drow@mvista.com>
10126
10127 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10128
51ee2ddc
DJ
101292003-01-27 Daniel Jacobowitz <drow@mvista.com>
10130
10131 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10132 (maintenance_set_profile_cmd): Use error () instead of warning ().
10133
d9feb4e7
DJ
101342003-01-27 Daniel Jacobowitz <drow@mvista.com>
10135
10136 * configure.in: Check that -pg works if using --enable-profiling.
10137 Check for monstartup and _mcleanup regardless of --enable-profiling.
10138 * maint.c: Check for monstartup and _mcleanup before using them.
10139 * config.in: Regenerated.
10140 * configure: Regenerated.
10141
2d188dd3
NC
101422003-01-24 Nick Clifton <nickc@redhat.com>
10143
10144 * Add sh2e support:
10145
10146 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10147
10148 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10149 (sh2e_show_regs): New.
10150 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10151 * config/sh/tm-sh.h: Added sh2e to comments.
10152
cb3c37b2
JB
101532003-01-23 Jim Blandy <jimb@redhat.com>
10154
10155 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10156 symbols found)" message here; we haven't checked for a separate
10157 debug info file yet, so we don't know yet.
10158 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10159 we've looked everywhere. Also, there's no need to print a special
10160 message when we're loading the separate debug info file: the one
10161 symbol_file_add prints is fine.
10162
5b5d99cf
JB
101632003-01-23 Alexander Larsson <alexl@redhat.com>
10164 Jim Blandy <jimb@redhat.com>
10165
10166 Add support for executables whose debug info has been separated
10167 out into a separate file, leaving only a link behind.
10168 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10169 and separate_debug_objfile_backlink.
10170 (put_objfile_before): New declaration.
10171 * symfile.c: #include "filenames.h".
10172 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10173 debug info in a separate file, read that, too. Save the addrs
10174 argument, so we can use it again to read the separated debug info;
10175 syms_from_objfile modifies the table we pass it.
10176 (reread_symbols): After re-reading an objfile, call
10177 reread_separate_symbols to refresh its separate debug info
10178 objfile, if it has one.
10179 (reread_separate_symbols, find_separate_debug_file,
10180 get_debug_link_info, separate_debug_file_exists): New functions.
10181 (debug_file_directory): New global var.
10182 (_initialize_symfile): Initialize debug_file_directory, and
10183 provide the new `set debug-file-directory' command to let the user
10184 change it.
10185 * objfiles.c (free_objfile): If this objfile has its debug info in
10186 a separate objfile, free that one too. If this is itself a
10187 separate debug info objfile, clear our parent's backlink.
10188 (put_objfile_before): New function.
10189 * utils.c (gnu_debuglink_crc32): New function.
10190 * defs.h (gnu_debuglink_crc32): New declaration.
10191 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10192 * configure.in: Handle --with-separate-debug-dir config option.
10193 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10194 * acconfig.h (DEBUGDIR): New macro.
10195 * configure, aclocal.m4, config.in: Regenerated.
10196
7e8580c1
JB
101972003-01-22 Jim Blandy <jimb@redhat.com>
10198
7904e09f
JB
10199 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10200 like the old symbol_file_add, but taking new arguments: you can
10201 now pass in either a `struct section_addr_info' list to say where
10202 each section is loaded, or a `struct section_offsets' table. Pass
10203 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10204 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10205 with the appropriate quiescent values for the new arguments.
10206
7e8580c1
JB
10207 * symfile.c: #include "gdb_assert.h".
10208 (syms_from_objfile): Add the ability to pass in a section offset
10209 table directly, as an alternative to the section_addr_info table.
10210 Document arguments better.
10211 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10212 * symfile.h (syms_from_objfile): Update declaration.
10213 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10214 syms_from_objfile.
10215 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10216
d28f9cdf
DJ
102172003-01-22 Daniel Jacobowitz <drow@mvista.com>
10218
10219 Original patch by Tom Tromey <tromey@cygnus.com> and
10220 Jason Molenda <jmolenda@apple.com>.
10221 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10222 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10223 * NEWS: Mention profiling.
10224 * configure.in (--enable-gdbtk): Fix typo.
10225 (--enable-profiling): New. Set PROFILE_CFLAGS.
10226 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10227 Fill in function.
10228 (profiling_state): New variable.
10229 (mcleanup_wrapper): New function.
10230 (_initialize_maint): Remove NOTYET, fix call to
10231 add_setshow_boolean_cmd for "maint set profile".
10232 * configure: Regenerated.
10233
df21e465
MH
102342003-01-21 Martin M. Hunt <hunt@redhat.com>
10235
10236 * Makefile.in (install-gdbtk): Install PNG images too.
10237
73c1f219
AC
102382003-01-21 Andrew Cagney <ac131313@redhat.com>
10239
10240 * exec.c (text_start): Delete global variable.
10241 (exec_file_attach): Make text_start local to the function.
10242 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10243 * valops.c (hand_function_call): Delete code that handles
10244 BEFORE_TEXT_END and AFTER_TEXT_END.
10245 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10246 of CALL_DUMMY_LOCATION.
10247 * gdbarch.c: Regenerate.
10248 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10249 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10250 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10251 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10252 (text_end): Delete extern declaration.
10253
eb4f72c5
AC
102542003-01-21 Andrew Cagney <ac131313@redhat.com>
10255
10256 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10257 * blockframe.c (backtrace_below_main): Move to "frame.c".
10258 (frame_chain_valid): Delete check for backtrace_below_main.
10259 (_initialize_blockframe): Delete initialization, move ``set
10260 backtrace-below-main'' command to "frame.c".
10261 (do_flush_frames_sfunc): Delete function.
10262 * frame.c: Include "command.h" and "gdbcmd.h".
10263 (frame_type_from_pc): New function.
10264 (create_new_frame): Use frame_type_from_pc.
10265 (legacy_get_prev_frame): New function.
10266 (get_prev_frame): Rewrite. When an old style frame, call
10267 legacy_get_prev_frame. Otherwize, unwind the PC first.
10268 (_initialize_frame): Add ``set backtrace-below-main'' command.
10269 * Makefile.in (frame.o): Update dependencies.
10270
778ce8cc
AC
102712003-01-19 Andrew Cagney <ac131313@redhat.com>
10272
10273 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10274 DEPRECATED_REGISTERS_INFO.
10275
01c193c8
AC
102762003-01-19 Andrew Cagney <ac131313@redhat.com>
10277
10278 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10279 Maintainers'. Update `Various Maintainers'.
10280
dedc2a2b
AC
102812003-01-19 Andrew Cagney <ac131313@redhat.com>
10282
10283 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10284 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10285 Suppress actual parameters when `-'.
10286 * gdbarch.h, gdbarch.c: Regenerate.
10287
b7261c70
AC
102882003-01-19 Andrew Cagney <ac131313@redhat.com>
10289
10290 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10291 code handling dummy frames.
10292
dbe9fe58
AC
102932003-01-19 Andrew Cagney <ac131313@redhat.com>
10294
10295 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10296 (struct frame_unwind): Add field pop.
10297 * frame.h (frame_pop): Declare.
10298 * frame.c (frame_saved_regs_pop): New function.
10299 (trad_frame_unwinder): Add frame_saved_regs_pop.
10300 (frame_pop): New function.
10301 * dummy-frame.c (dummy_frame_pop): New function.
10302 (discard_innermost_dummy): New function.
10303 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10304 (dummy_frame_unwind): Add dummy_frame_pop.
10305 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10306 * valops.c (hand_function_call): Ditto.
10307 * stack.c (return_command): Ditto.
10308
570b8f7c
AC
103092003-01-18 Andrew Cagney <ac131313@redhat.com>
10310
10311 * cris-tdep.c: Fix function declaration indentation.
10312 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10313 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10314 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10315 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10316 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10317 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10318
103192003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10320
10321 * README (Unpacking and Installation -- quick overview):
10322 Warn against ".../gdb-5.3/gdb/configure".
10323
494cca16
AC
103242003-01-18 Andrew Cagney <ac131313@redhat.com>
10325
10326 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10327 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10328 (struct frame_unwind): Declare opaque.
10329 (dummy_frame_p): Declare function.
10330 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10331 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10332 * dummy-frame.c: Include "frame-unwind.h".
10333 (dummy_frame_p): New function.
10334 (dummy_frame_unwind): New variable.
10335 * frame.c: Include "frame-unwind.h".
10336 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10337 to use the new unwind field.
10338 (set_unwind_by_pc): Delete function.
10339 (create_new_frame, get_prev_frame): Set unwind field using
10340 frame_unwind_find_by_pc.
10341 (trad_frame_unwind, trad_frame_unwinder): New variables.
10342 * frame.h (trad_frame_unwind): Declare variable.
10343 (frame_id_unwind_ftype): Delete declaration.
10344 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10345 (struct frame_unwind): Declare opaque.
10346 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10347 register_unwind with a single unwind pointer.
10348 * frame-unwind.h, frame-unwind.c: New files.
10349 * Makefile.in (SFILES): Add frame-unwind.c.
10350 (frame_unwind_h): Define.
10351 (COMMON_OBS): Add frame-unwind.o.
10352 (frame-unwind.o): Specify dependencies.
10353 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10354
4efb68b1
AC
103552003-01-18 Andrew Cagney <ac131313@redhat.com>
10356
10357 * ada-valprint.c: Eliminate PTR.
10358 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10359 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10360 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10361 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10362 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10363 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10364 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10365
a84d24ee
AC
103662003-01-17 Andrew Cagney <ac131313@redhat.com>
10367
762f08a3
AC
10368 * main.c (captured_main): Don't use PTR.
10369 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10370 * gdbtypes.c (lookup_primitive_typename): Ditto.
10371 (lookup_struct_elt_type): Ditto.
10372 * f-valprint.c (info_common_command): Ditto.
10373 (list_all_visible_commons): Ditto.
10374 * jv-typeprint.c (java_type_print_base): Ditto.
10375
a84d24ee
AC
10376 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10377 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10378 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10379 i386-interix-nat.c and i386-interix-tdep.c. Rename
10380 m68klinux-nat.c and m68klinux-tdep.c. Rename
10381 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10382 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10383 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10384 * main.c (captured_main): Use xfree, not free.
10385
c170fb60
AC
103862003-01-16 Andrew Cagney <ac131313@redhat.com>
10387
10388 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10389 ID back using a parameter.
10390 * frame.c (frame_id_unwind): Update call.
10391 (frame_saved_regs_id_unwind): Update.
10392 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10393 * dummy-frame.h (struct frame_id): Add opaque declaration.
10394 (dummy_frame_id_unwind): Update declaration.
10395
867f3898
AC
103962003-01-15 Andrew Cagney <ac131313@redhat.com>
10397
10398 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10399
40622be8 104002003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10401
40622be8 10402 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10403
ae66c1fc
EZ
104042003-01-14 Elena Zannoni <ezannoni@redhat.com>
10405
997b089a 10406 Fix PR gdb/898
ae66c1fc
EZ
10407 * breakpoint.c (until_break_command): Add new argument. Use it to
10408 decide whether to stop only at the current frame or not.
10409 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10410 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10411 call.
10412 (advance_command): New function.
10413 (_initialize_infcmd): Update help string for 'until' command.
10414 Add new 'advance' command.
10415
a04257e6
DC
104162003-01-14 David Carlton <carlton@math.stanford.edu>
10417
10418 * linespec.c (decode_line_1): Normalize comments.
10419 (set_flags): Ditto.
10420 (locate_first_half): Ditto.
10421 (decode_compound): Ditto.
10422 (symtab_from_filename): Ditto.
10423 (decode_all_digits): Ditto.
10424 (decode_dollar): Ditto.
10425 (find_methods): Ditto.
10426 (find_toplevel_char): Ditto.
10427
1bac305b
AC
104282003-01-13 Andrew Cagney <ac131313@redhat.com>
10429
10430 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10431 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10432 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10433 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10434 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10435 * language.c, language.h, m32r-tdep.c: Update copyright.
10436 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10437 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10438 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10439 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10440 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10441 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10442
25caa7a8
EZ
104432003-01-13 Elena Zannoni <ezannoni@redhat.com>
10444
10445 * stabsread.h (process_later, resolve_cfront_continuation):
10446 Obsolete.
10447 Update copyright years.
10448 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10449 Update copyright year.
10450 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10451 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10452 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10453 Update copyright year.
10454 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10455 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10456 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10457 (parse_partial_symbols): Obsolete cfront support.
10458 * stabsread.c
10459 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10460 macros.
10461 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10462 read_cfront_baseclasses, read_cfront_member_functions,
10463 resolve_cfront_continuation,read_cfront_static_fields,
10464 copy_cfront_struct_fields): Obsolete functions.
10465 (define_symbol, read_one_struct_field): Obsolete cfront support.
10466 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10467 Update Copyright year.
10468
7789c6f5
EZ
104692003-01-13 Elena Zannoni <ezannoni@redhat.com>
10470
10471 * stack.c (print_frame_info, print_stack_frame_base_stub,
10472 print_stack_frame_base, show_and_print_stack_frame_stub,
10473 show_and_print_stack_frame, print_only_stack_frame_stub,
10474 print_only_stack_frame): Delete functions.
10475 (print_stack_frame_stub): Call print_frame_info instead of
10476 print_frame_info_base.
10477 (print_frame_info_base): Rename to print_frame_info.
10478 (backtrace_command_1): Call print_frame_info, instead of
10479 print_frame_info_base.
10480 (current_frame_command): Call print_stack_frame, instead of
10481 print_only_stack_frame.
10482 (frame_command): Call print_stack_frame, instead of
10483 show_and_print_stack_frame.
10484 (up_command): Ditto.
10485 (down_command): Ditto.
10486 * frame.h (print_only_stack_frame): Delete prototype.
10487 * infrun.c (normal_stop): Call print_stack_frame, instead of
10488 show_and_print_stack_frame.
10489 * thread.c (info_threads_command): Call print_stack_frame, instead
10490 of print_only_stack_frame.
10491
3f5a3016
AC
104922003-01-13 Andrew Cagney <ac131313@redhat.com>
10493
d99ba314
AC
10494 * README (Graphical interface to GDB): Update URL. Point at
10495 gdb/links/.
10496
3f5a3016
AC
10497 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10498 version match.
10499
083ae935
DJ
105002003-01-13 Daniel Jacobowitz <drow@mvista.com>
10501
10502 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10503 lines.
10504
5365276c
DJ
105052003-01-13 Daniel Jacobowitz <drow@mvista.com>
10506
10507 * thread-db.c (attach_thread): Prototype.
10508 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10509 thread information (ti), and valid flags (th_valid, ti_valid).
10510 (attach_thread): Move target_pid_to_str call to after the thread
10511 is added to GDB's list. Initialize the cache.
10512 (thread_get_info_callback, thread_db_map_id2thr)
10513 (thread_db_get_info): New functions.
10514 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10515 (thread_db_store_registers, thread_db_thread_alive)
10516 (thread_db_get_thread_local_address): Use them.
10517 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10518 of calling error() for threads in unknown state.
10519
10520 (clear_lwpid_callback): New function.
10521 (thread_db_resume): Use it to clear the cache.
10522
9fc30b6b
DJ
105232003-01-13 Daniel Jacobowitz <drow@mvista.com>
10524
10525 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10526 (resume_callback): Remove dead code.
10527
8f871025
AC
105282003-01-13 Andrew Cagney <ac131313@redhat.com>
10529
10530 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10531 predicate.
10532 * gdbarch.h, gdbarch.c: Regenerate.
10533 * stack.c (frame_info): Only initialize the saved registers when
10534 FRAME_INIT_SAVED_REGS_P.
10535 * frame.c (frame_saved_regs_register_unwind): Assert
10536 FRAME_INIT_SAVED_REGS_P.
10537 (deprecated_generic_get_saved_register): Ditto.
10538
3f565f1e
DJ
105392003-01-13 Daniel Jacobowitz <drow@mvista.com>
10540
10541 * source.c (openp): Squelch warning about "filename".
10542
072b1022
DJ
105432003-01-13 Daniel Jacobowitz <drow@mvista.com>
10544
10545 * source.c (openp): If the file does not exist don't necessarily
10546 search the path.
10547
973ccf8b
DJ
105482003-01-13 Daniel Jacobowitz <drow@mvista.com>
10549
10550 Fix PR gdb/872.
10551 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10552 (integer_types_same_name_p): New function.
10553 (rank_one_type): Use it.
10554 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10555
030292b7
DJ
105562003-01-13 Daniel Jacobowitz <drow@mvista.com>
10557
10558 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10559 variables.
10560 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10561 * configure.in: Add --with-sysroot.
10562 * configure: Regenerated.
10563 * main.c (gdb_sysroot): New variable.
10564 (captured_main): Initialize gdb_sysroot.
10565 * defs.h (gdb_sysroot): New extern declaration.
10566 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10567
afb5d334
MC
105682003-01-12 Michael Chastain <mec@shout.net>
10569
10570 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10571
751ceeb4
MC
105722003-01-12 Michael Chastain <mec@shout.net>
10573
10574 * top.c (print_gdb_version): Bump copyright year to 2003.
10575
94cd26f8
DC
105762003-01-12 David Carlton <carlton@bactrian.org>
10577
10578 * linespec.c (symtab_from_filename): Rename variable 's' to
10579 'file_symtab'.
10580
1ce79225
AC
105812003-01-12 Andrew Cagney <ac131313@redhat.com>
10582
10583 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10584 dummy frame.
10585 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10586
fa1fd571
AC
105872003-01-12 Andrew Cagney <ac131313@redhat.com>
10588
10589 * d10v-tdep.c: Include "gdb_assert.h".
10590 (d10v_store_return_value): Rewrite to match current interface.
10591 (d10v_extract_struct_value_address): Ditto.
10592 (d10v_extract_return_value): Ditto.
10593 (d10v_gdbarch_init): Set store_restore_value,
10594 extract_struct_value_address and extract_return_value.
10595
68b8d23e
JB
105962003-01-12 J. Brobecker <brobecker@gnat.com>
10597
10598 * hpread.c (set_namestring): New procedure replacing the
10599 SET_NAMESTRING macro.
10600 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10601 by calls to set_namestring.
10602
106032003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10604
10605 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10606 a compilation warning.
10607 (hpread_process_one_debug_symbol): Likewise.
10608
88d262ca
DC
106092003-01-10 David Carlton <carlton@math.stanford.edu>
10610
10611 * linespec.c (decode_line_1): Rename variable 's' to
10612 'file_symtab'.
10613 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10614 (decode_dollar): Ditto.
10615 (decode_variable): Ditto.
10616 (symbol_found): Ditto.
10617
86669319
MC
106182003-01-09 Michael Chastain <mec@shout.net>
10619
10620 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10621
616a9dc4
CV
106222003-01-07 Corinna Vinschen <vinschen@redhat.com>
10623
10624 * win32-nat.c (set_process_privilege): New function.
10625 (child_attach): Call set_process_privilege() to enable the
10626 SE_DEBUG_NAME user privilege if available in process token.
10627
3269bcfa
JB
106282003-01-10 J. Brobecker <brobecker@gnat.com>
10629
10630 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10631 compilation error in the previous revision.
10632
2b0ee454
DC
106332003-01-09 David Carlton <carlton@math.stanford.edu>
10634
10635 * linespec.c: Update copyright.
10636
b3ba1b44
DJ
106372003-01-09 Daniel Jacobowitz <drow@mvista.com>
10638
10639 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10640 than inferior_ptid.
10641 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10642
4ef3f3be
AC
106432003-01-09 Andrew Cagney <ac131313@redhat.com>
10644
479ab5a0
AC
10645 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10646 Update comments.
10647 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10648 (frame_saved_regs_zalloc): Update.
10649 (frame_saved_regs_register_unwind): Update.
10650 (create_new_frame): Update.
10651 (get_prev_frame): Update.
10652 (frame_extra_info_zalloc): Update.
10653 (deprecated_get_frame_saved_regs): Update.
10654 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10655 * cris-tdep.c: Update comment.
10656
bde58177
AC
10657 * somsolib.h: Fix function indentation.
10658 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10659 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10660 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10661 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10662 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10663
4ef3f3be
AC
10664 * infrun.c (follow_fork): Use ISO C definition.
10665 * expprint.c (print_subexp): Use xfree instead of free.
10666 * charset.c: Include "gdb_string.h" instead of <string.h>.
10667 (register_iconv_charsets): Use ISO C definition.
10668 (host_charset, target_charset): Ditto.
10669 * Makefile.in (charset.o): Update dependencies.
10670 (mi-cmd-env.o): Update dependencies.
10671
1c615f7a
AC
106722003-01-08 Andrew Cagney <cagney@redhat.com>
10673
10674 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10675 get_frame_base.
10676
c9a1dc08
AC
106772003-01-08 Andrew Cagney <ac131313@redhat.com>
10678
10679 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10680 build directories. Save edited gdb output in Mbuild.log. If a
10681 build fails, remove any final GDB executable.
10682
dbad9d94
AC
106832003-01-08 Andrew Cagney <ac131313@redhat.com>
10684
10685 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10686 replacing hex constants with function names and stripping leading
10687 file name directory prefixes.
10688
8d357cca
AC
106892003-01-08 Andrew Cagney <cagney@redhat.com>
10690
10691 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10692 get_frame_base.
10693
bca02a8a
DC
106942003-01-08 David Carlton <carlton@math.stanford.edu>
10695
10696 * linespec.c (decode_line_1): Move code into decode_variable.
10697 (decode_variable): New function.
10698
7f8ab3a0
AC
106992003-01-08 Andrew Cagney <ac131313@redhat.com>
10700
10701 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10702
7b5849cc
AC
107032003-01-08 Andrew Cagney <cagney@redhat.com>
10704
10705 * cris-tdep.c (cris_frame_init_saved_regs): Use
10706 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10707 saved_regs buffer.
10708 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10709 (sh64_nofp_frame_init_saved_regs): Ditto.
10710 (sh_fp_frame_init_saved_regs): Ditto.
10711 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10712 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10713 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10714 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10715
72a5efb3
DJ
107162003-01-08 Daniel Jacobowitz <drow@mvista.com>
10717
10718 * minsyms.c (lookup_minimal_symbol): Update comment.
10719 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10720 (lookup_minimal_symbol_solib_trampoline): Likewise.
10721
11c02a10
AC
107222003-01-08 Andrew Cagney <cagney@redhat.com>
10723
aab3ea25
AC
10724 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10725 frame_relative_level.
10726
da50a4b7
AC
10727 * alpha-tdep.c: Use get_frame_extra_info.
10728 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10729 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10730 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10731 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10732
11c02a10
AC
10733 * alpha-tdep.c: Use get_next_frame.
10734 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10735 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10736 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10737 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10738 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10739 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10740 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10741
1e2330ba
AC
107422003-01-07 Andrew Cagney <cagney@redhat.com>
10743
10744 * alpha-tdep.c: Use get_frame_base.
10745 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10746 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10747 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10748 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10749 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10750 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10751 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10752 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10753
2d75187b
AC
107542003-01-07 Andrew Cagney <cagney@redhat.com>
10755
10756 * frame.c (deprecated_get_frame_context): New function.
10757 (deprecated_set_frame_context): New function.
10758 * frame.h (deprecated_get_frame_context): Declare.
10759 (deprecated_set_frame_context): Declare.
10760 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10761 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10762
483d36b2
AC
107632003-01-07 Andrew Cagney <cagney@redhat.com>
10764
10765 * frame.c (deprecated_set_frame_next_hack): New function.
10766 (deprecated_set_frame_prev_hack): New function.
10767 * frame.h (deprecated_set_frame_next_hack): Declare.
10768 (deprecated_set_frame_prev_hack): Declare.
10769 * mcore-tdep.c (analyze_dummy_frame): Use
10770 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10771 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10772
14e91ac5
DC
107732003-01-07 David Carlton <carlton@math.stanford.edu>
10774
10775 * linespec.c (decode_line_1): Move code into decode_dollar.
10776 (decode_dollar): New function.
10777
b0c6b05c
AC
107782003-01-07 Andrew Cagney <cagney@redhat.com>
10779
10780 * arm-tdep.c (arm_init_extra_frame_info): Use
10781 deprecated_update_frame_base_hack.
10782 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10783 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10784 (fix_frame_pointer): Ditto.
10785 (mn10300_analyze_prologue): Ditto.
10786
a00a19e9
AC
107872003-01-07 Andrew Cagney <cagney@redhat.com>
10788
10789 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10790 extra_info using frame_extra_info_zalloc.
10791 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10792 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10793 (sh64_init_extra_frame_info): Ditto.
10794 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10795 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10796 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10797 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10798 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10799 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10800 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10801 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10802 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10803 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10804 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10805 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10806
10807 * mn10300-tdep.c (analyze_dummy_frame): Use
10808 deprecated_set_frame_extra_info_hack.
10809 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10810
1fb4c65b
JB
108112003-01-07 J. Brobecker <brobecker@gnat.com>
10812
10813 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10814 class is not scText. These do not define "real" procedures.
10815 (parse_partial_symbols): Likewise.
10816
9fe7d6bf
MS
108172003-01-06 Michael Snyder <msnyder@redhat.com>
10818
10819 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10820
f6c609c4
AC
108212003-01-06 Andrew Cagney <ac131313@redhat.com>
10822
10823 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10824 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10825 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10826 deprecated_frame_xmalloc_with_cleanup.
10827 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10828 deprecated_frame_xmalloc.
10829 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10830 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10831
d995ff4b
AC
108322003-01-06 Andrew Cagney <cagney@redhat.com>
10833
84dc46cb
AC
10834 * x86-64-linux-tdep.c: Include "osabi.h".
10835 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10836
d995ff4b
AC
10837 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10838
66140c26
AC
108392003-01-06 Andrew Cagney <cagney@redhat.com>
10840
10841 * MAINTAINERS (Target Instruction Set Architectures): Update
10842 arm-elf. Can be built with -Werror, has been multiarched.
10843
10844 * value.h (unpack_long): Make buffer parameter constant.
10845 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10846 * scm-lang.h (scm_parse): Ditto.
10847 * defs.h (extract_typed_address, extract_address): Ditto.
10848 (extract_long_unsigned_integer): Ditto.
10849 * inferior.h (unsigned_pointer_to_address): Ditto.
10850 (signed_pointer_to_address): Ditto.
10851 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10852 * gdbarch.h, gdbarch.c: Regenerate.
10853 * findvar.c (extract_long_unsigned_integer): Update.
10854 (extract_address): Update.
10855 (extract_typed_address): Update.
10856 (unsigned_pointer_to_address): Update.
10857 * values.c (unpack_long): Update.
10858 (unpack_double): Update.
10859 (unpack_pointer): Update.
10860 (unpack_field_as_long): Update.
10861 * d10v-tdep.c (d10v_pointer_to_address): Update.
10862 * avr-tdep.c (avr_pointer_to_address): Update.
10863 * scm-lang.c (scm_unpack): Update.
10864 * findvar.c (signed_pointer_to_address): Update.
10865
b089b3da
ML
108662003-01-06 Michal Ludvig <mludvig@suse.cz>
10867
8ffd9b1b 10868 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
10869 since it is in i386-tdep.c.
10870
aff87235
JB
108712003-01-06 J. Brobecker <brobecker@gnat.com>
10872
10873 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10874 failure introduced in the previous change.
10875
34f5e845
MC
108762003-01-05 Michael Chastain <mec@shout.net>
10877
10878 * README: Remove references to deleted remote-*.c files:
10879 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10880 remote-nrom.c, remote-os9k.c, remote-udi.c.
10881
28bcfd30
MK
108822003-01-05 Mark Kettenis <kettenis@gnu.org>
10883
10884 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10885 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10886 i386_get_longjmp_target.
10887
15a5b3ee
AC
108882003-01-05 Andrew Cagney <ac131313@redhat.com>
10889
10890 * arm-tdep.c (prologue_cache): Change to a pointer.
10891 (_initialize_arm_tdep): Allocate prologue_cache.
10892 (check_prologue_cache): Update.
10893 (save_prologue_cache): Update.
10894 (arm_gdbarch_init): Update.
10895
c263362b
DJ
108962003-01-04 Daniel Jacobowitz <drow@mvista.com>
10897
10898 * stabsread.c (update_method_name_from_physname): Call complaint()
10899 instead of error.
10900
51603483
DJ
109012003-01-04 Daniel Jacobowitz <drow@mvista.com>
10902
10903 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10904 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10905 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10906
10907 * blockframe.c: Include "gdbcmd.h" and "command.h".
10908 (backtrace_below_main): New variable.
10909 (file_frame_chain_valid, func_frame_chain_valid)
10910 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10911 (generic_func_frame_chain_valid): Remove functions.
10912 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10913 (_initialize_blockframe): New function.
10914 * Makefile.in (blockframe.o): Update dependencies.
10915 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10916 comment. Call frame_chain_valid ().
10917 * frame.h: Remove old prototypes. Add prototype for
10918 frame_chain_valid and update comments to match.
10919 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10920 Remove old comment.
10921 * gdbarch.h: Regenerated.
10922 * gdbarch.c: Regenerated.
10923
10924 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10925 set_gdbarch_frame_chain_valid.
10926 * avr-tdep.c (avr_gdbarch_init): Likewise.
10927 * cris-tdep.c (cris_gdbarch_init): Likewise.
10928 * frv-tdep.c (frv_gdbarch_init): Likewise.
10929 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10930 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10931 (i386_nw_init_abi): Likewise.
10932 (i386_gdbarch_init): Likewise.
10933 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10935 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10936 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10937 * mips-tdep.c (mips_gdbarch_init): Likewise.
10938 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10939 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10940 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10941 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10942 * s390-tdep.c (s390_gdbarch_init): Likewise.
10943 * sh-tdep.c (sh_gdbarch_init): Likewise.
10944 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10945 * v850-tdep.c (v850_gdbarch_init): Likewise.
10946 * vax-tdep.c (vax_gdbarch_init): Likewise.
10947 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10948
10949 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10950 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10951 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10952 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10953 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10954 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10955 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10956 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10957
b00a8037
DJ
109582002-01-04 Daniel Jacobowitz <drow@mvista.com>
10959
10960 * Makefile.in (acconfig_h): Remove incorrect macro.
10961 (config_h): Define.
10962 (osabi.o): Update dependencies.
10963 * configure.tgt: Set gdb_osabi based on target triplet.
10964 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10965 * configure: Regenerated.
10966 * config.in: Regenerated.
10967 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10968 (GDB_OSABI_DEFAULT): Define if not already defined.
10969 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10970 (set_osabi_string): New variables.
10971 (gdbarch_register_osabi): Add new OS ABI to
10972 gdb_osabi_available_names.
10973 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10974 (set_osabi, show_osabi): New functions.
10975 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10976
4be87837
DJ
109772003-01-04 Daniel Jacobowitz <drow@mvista.com>
10978
10979 * arch-utils.c (gdbarch_info_init): Set osabi to
10980 GDB_OSABI_UNINITIALIZED.
10981 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10982 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10983 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10984 * gdbarch.c: Regenerated.
10985 * gdbarch.h: Regenerated.
10986 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10987 there's no BFD.
10988 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10989 * osabi.h (enum gdb_osabi): Move to defs.h.
10990 (gdbarch_init_osabi): Update prototype.
10991 * defs.h (enum gdb_osabi): Moved here.
10992 * Makefile.in: Update dependencies.
10993
10994 * alpha-tdep.h: Don't include "osabi.h".
10995 (struct gdbarch_tdep): Remove osabi member.
10996 * alpha-tdep.c: Include "osabi.h".
10997 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10998 iterate over arches. Update call to gdbarch_init_osabi.
10999 (alpha_dump_tdep): Don't dump osabi.
11000 * alpha-linux-tdep.c: Include "osabi.h".
11001 * alpha-osf1-tdep.c: Include "osabi.h".
11002 * alphafbsd-tdep.c: Include "osabi.h".
11003 * alphanbsd-tdep.c: Include "osabi.h".
11004
11005 * arm-tdep.h: Don't include "osabi.h".
11006 (struct gdbarch_tdep): Remove osabi member.
11007 * arm-tdep.c: Include "osabi.h".
11008 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11009 iterate over arches. Update call to gdbarch_init_osabi.
11010 (arm_dump_tdep): Don't dump osabi.
11011 * arm-linux-tdep.c: Include "osabi.h".
11012 * armnbsd-tdep.c: Include "osabi.h".
11013
11014 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11015 Update call to gdbarch_init_osabi.
11016
11017 * i386-tdep.h: Don't include "osabi.h".
11018 (struct gdbarch_tdep): Remove osabi member.
11019 * i386-tdep.c: Include "osabi.h".
11020 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11021 iterate over arches. Update call to gdbarch_init_osabi.
11022 (i386_dump_tdep): Don't dump osabi.
11023 * i386-linux-tdep.c: Include "osabi.h".
11024 * i386-sol2-tdep.c: Include "osabi.h".
11025 * i386bsd-tdep.c: Include "osabi.h".
11026 * i386gnu-tdep.c: Include "osabi.h".
11027 * i386ly-tdep.c: Include "osabi.h".
11028 * i386nbsd-tdep.c: Include "osabi.h".
11029 * i386obsd-tdep.c: Include "osabi.h".
11030
11031 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11032 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11033 check osabi when iterating over arches. Update call to
11034 gdbarch_init_osabi.
11035 (mips_dump_tdep): Don't dump osabi.
11036
11037 * ns32k-tdep.h: Don't include "osabi.h".
11038 (struct gdbarch_tdep): Remove.
11039 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11040 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11041 allocate tdep. Update call to gdbarch_init_osabi.
11042 (ns32k_dump_tdep): Remove.
11043 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11044 * ns32knbsd-tdep.c: Include "osabi.h".
11045
11046 * ppc-tdep.h: Don't include "osabi.h".
11047 (struct gdbarch_tdep): Remove osabi member.
11048 * rs6000-tdep.c: Include "osabi.h".
11049 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11050 osabi when iterating over arches. Update call to
11051 gdbarch_init_osabi.
11052 (rs6000_dump_tdep): Don't dump osabi.
11053 * ppc-linux-tdep.c: Include "osabi.h".
11054 * ppcnbsd-tdep.c: Include "osabi.h".
11055
11056 * sh-tdep.h: Don't include "osabi.h".
11057 (struct gdbarch_tdep): Remove osabi member.
11058 * sh-tdep.c: Include "osabi.h".
11059 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11060 iterate over arches. Update call to gdbarch_init_osabi.
11061 (sh_dump_tdep): Don't dump osabi.
11062 * shnbsd-tdep.c: Include "osabi.h".
11063
11064 * sparc-tdep.c: Include "osabi.h".
11065 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11066 iterate over arches. Update call to gdbarch_init_osabi.
11067 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11068 tdep structure.
11069
11070 * vax-tdep.h: Don't include "osabi.h".
11071 (struct gdbarch_tdep): Remove.
11072 * vax-tdep.c: Include "osabi.h".
11073 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11074 iterate over arches. Don't allocate tdep. Update call
11075 to gdbarch_init_osabi.
11076 (vax_dump_tdep): Remove.
11077 (_initialize_vax_tdep): Update call to gdbarch_register.
11078
a881cf8e
DJ
110792003-01-04 Daniel Jacobowitz <drow@mvista.com>
11080
11081 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11082 entirely.
11083 (breakpoint_re_set_one): Don't fetch the value for a disabled
11084 watchpoint.
11085
1e698235
DJ
110862003-01-04 Daniel Jacobowitz <drow@mvista.com>
11087
11088 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11089 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11090 (COERCE_FLOAT_TO_DOUBLE): Remove.
11091 * gdbarch.c: Regenerate.
11092 * gdbarch.h: Regenerate.
11093 * Makefile.in: Remove value_h from gdbarch_h.
11094 * valops.c (coerce_float_to_double): New variable.
11095 (default_coerce_float_to_double): Remove.
11096 (standard_coerce_float_to_double): Remove.
11097 (value_arg_coerce): Use coerce_float_to_double.
11098 (_initialize_valops): Add "set coerce-float-to-double".
11099 * value.h (default_coerce_float_to_double): Remove prototype.
11100 (standard_coerce_float_to_double): Remove prototype.
11101
11102 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11103 prototyped.
11104 * mdebugread.c (parse_symbol): Likewise.
11105 * stabsread.c (define_symbol): Mark all functions as prototyped.
11106
11107 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11108 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11109 set_gdbarch_coerce_float_to_double.
11110 * arm-tdep.c (arm_gdbarch_init): Likewise.
11111 * frv-tdep.c (frv_gdbarch_init): Likewise.
11112 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11113 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11114 * mips-tdep.c (mips_gdbarch_init): Likewise.
11115 (mips_coerce_float_to_double): Remove.
11116 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11117 (rs6000_coerce_float_to_double): Remove.
11118 * s390-tdep.c (s390_gdbarch_init): Likewise.
11119 * sh-tdep.c (sh_gdbarch_init): Likewise.
11120 (sh_coerce_float_to_double): Remove.
11121 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11122 (sparc_coerce_float_to_double): Remove.
11123 * v850-tdep.c (v850_gdbarch_init): Likewise.
11124 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11125 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11126 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11127 (hppa_coerce_float_to_double): Remove prototype.
11128 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11129
f436a26a
DJ
111302003-01-04 Daniel Jacobowitz <drow@mvista.com>
11131
11132 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11133
248f8055
DJ
111342003-01-04 Daniel Jacobowitz <drow@mvista.com>
11135
11136 Suggested by Stewart Brown <sb24@avaya.com>:
11137 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11138 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11139 (c_type_print_varspec_suffix): Likewise.
11140
72cfdc76
MK
111412003-01-04 Mark Kettenis <kettenis@gnu.org>
11142
bfd260bb
MK
11143 * configure.in: Don't set and AC_SUBST SUBDIRS.
11144 * configure: Regenerated.
11145
72cfdc76
MK
11146 * configure.in: Remove code dealing with shared libraries.
11147 * Makefile.in: Remove HLDFLAGS and HLDENV.
11148 * configure: Regenerated.
11149
c8b8a898
AC
111502003-01-04 Andrew Cagney <ac131313@redhat.com>
11151
11152 * frame.c (deprecated_frame_xmalloc): New function.
11153 (deprecated_set_frame_saved_regs_hack): New function.
11154 (deprecated_set_frame_extra_info_hack): New function.
11155 * frame.h (deprecated_frame_xmalloc): Declare.
11156 (deprecated_set_frame_saved_regs_hack): Declare.
11157 (deprecated_set_frame_extra_info_hack): Declare.
11158
14abd0fb
MK
111592003-01-04 Mark Kettenis <kettenis@gnu.org>
11160
8ee53726
MK
11161 * configure.in: Move code that provides the --enable-gdbtk option
11162 right after the code that handles the --enable-tui option, and
11163 polish it somewhat.
11164 * configure: Regenerated.
11165
14abd0fb
MK
11166 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11167 AC_CHECK_FUNCS and remove the old check for pread64.
11168 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11169 * acconfig.h (_GNU_SOURCE): Add.
11170 (HAVE_PREAD64): Remove.
11171 * configure, aclocal.m4, config.in: Regenerated.
11172
b2fb4676
AC
111732003-01-03 Andrew Cagney <ac131313@redhat.com>
11174
11175 * alpha-tdep.c: Use get_frame_saved_regs.
11176 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11177 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11178 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11179 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11180 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11181
8dcde887
MK
111822003-01-03 Mark Kettenis <kettenis@gnu.org>
11183
11184 * configure.in: Remove all use of the SUBDIRS variable; add
11185 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11186 code providing the --enable-multi-ice option, and move it right in
11187 front of the code that checks whether gdbserver is supported.
11188 Polish that too.
11189 * configure: Regenerated.
11190 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11191 @SUBDIRS@.
11192
8ccd593b
AC
111932003-01-03 Andrew Cagney <cagney@redhat.com>
11194
11195 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11196 * avr-tdep.c, cris-tdep.c: Ditto.
11197 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11198 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11199
91151a06
MK
112002003-01-03 Mark Kettenis <kettenis@gnu.org>
11201
11202 * configure.in: Remove --enable-netrom option.
11203 * configure: Regenerated.
11204
8fe84d01
MK
112052003-01-03 Mark Kettenis <kettenis@gnu.org>
11206
11207 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11208 declaration for `struct re_pattern_buffer' instead.
11209 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11210
f0394be6
JB
112112003-01-03 J. Brobecker <brobecker@gnat.com>
11212
11213 * mdebugread.c (parse_symbol): Count until the stEnd matching
11214 the structure name.
11215
27e9bf90
MK
112162003-01-02 Mark Kettenis <kettenis@gnu.org>
11217
93d331ba
MK
11218 * configure.in: Remove --with-cpu option.
11219 subscripts. Remove evil changequotes here.
11220 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11221 * config.in, configure: Regenerated.
8ffd9b1b 11222
27e9bf90
MK
11223 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11224 * configure.in: Cleanup section that sources GDB and BFD configure
11225 subscripts. Remove evil changequotes here.
11226 * config.in, configure: Regenerated.
11227
50abf9e5
AC
112282003-01-02 Andrew Cagney <ac131313@redhat.com>
11229
11230 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11231 frame accessor methods.
11232 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11233 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11234 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11235 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11236 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11237 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11238 * z8k-tdep.c: Ditto.
8ffd9b1b 11239
287c1a40
MK
112402003-01-02 Mark Kettenis <kettenis@gnu.org>
11241
f5dbc56d
MK
11242 * configure.in: Remove UI_OUT configuration code.
11243 * ada-lang.c: Update assuming UI_OUT is always true.
11244 * Makefile.in (UIOUT_CFLAGS): Remove.
11245 * configure: Regenerated.
11246 * TODO: Remove blurb about elimination of -DUI_OUT.
11247
627af7ea
MK
11248 * configure.in: Move code that provides the --enable-gdbcli,
11249 --enable-gdbmi options right before the code that handles the
11250 --enable-tui option. Polish a bit.
11251 * configure: Regenerated.
11252
06825bd1
MK
11253 * configure.in: Rewrite check for GNU regex and the
11254 --without-included regex option, and move it into the "Checks for
11255 library functions" section. This makes us use the system regex
11256 again by default on systems with version 2 of the GNU C library.
11257 This was apparently broken.
11258 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11259 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11260 * config.in, configure: Regenerated.
11261
287c1a40
MK
11262 * configure.in: Move code that provides the --enable-tui option
11263 before the "Checks for libraries" section. Polish the code
11264 somewhat and set need_curses to yes if we build the TUI. Rewrite
11265 code that looks for a library providing termcap functionality to
11266 match more closely what's done in the Readline library, and move
11267 it into to the "Checks for libraries" section.
11268 * configure: Regenerated.
11269 * Makefile.in (TERMCAP): Remove variable.
11270 * config/i386/go32.mh (TERMCAP): Remove variable.
11271
684e56bf
AC
112722003-01-02 Andrew Cagney <ac131313@redhat.com>
11273
11274 * MAINTAINERS: Mention gdb_mbuild.sh.
11275 * gdb_mbuild.sh: Rewrite.
11276
e1ea1d75
MK
112772003-01-02 Mark Kettenis <kettenis@gnu.org>
11278
11279 * configure.in: Fix typo in last change.
11280 * config.in, configure: Regenerated.
11281
1b831c93
AC
112822003-01-02 Andrew Cagney <ac131313@redhat.com>
11283
11284 * valarith.c (value_binop): Delete obsolete code and comments.
11285 * configure.host: Ditto.
11286 * buildsym.h (make_blockvector): Ditto.
11287 * buildsym.c (make_blockvector): Ditto.
11288 * defs.h (enum language): Ditto.
11289 (chill_demangle): Ditto.
11290 * elfread.c (elf_symtab_read): Ditto.
11291 * dwarfread.c (CHILL_PRODUCER): Ditto.
11292 (set_cu_language): Ditto.
11293 (handle_producer): Ditto.
11294 * expprint.c (print_subexp): Ditto.
11295 * gdbtypes.c (chill_varying_type): Ditto.
11296 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11297 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11298 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11299 (chill_varying_type): Ditto.
11300 * language.h (_LANG_chill): Ditto.
11301 * language.c (binop_result_type, integral_type): Ditto.
11302 (character_type, string_type, structured_type): Ditto.
11303 (lang_bool_type, binop_type_check): Ditto.
11304 * stabsread.h (os9k_stabs): Ditto.
11305 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11306 (define_symbol, read_type, read_struct_fields): Ditto.
11307 (read_array_type, read_enum_type, read_huge_number): Ditto.
11308 (read_range_type, start_stabs): Ditto.
11309 * symfile.c (init_filename_language_table): Ditto.
11310 (add_psymbol_with_dem_name_to_list): Ditto.
11311 * symtab.c (symbol_init_language_specific): Ditto.
11312 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11313 * symtab.h (struct general_symbol_info): Ditto.
11314 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11315 * typeprint.c (typedef_print): Ditto.
11316 * utils.c (fprintf_symbol_filtered): Ditto.
11317 * valops.c (value_cast, search_struct_field, value_slice): Delete
11318 obsolete code.
11319 (varying_to_slice): Delete function.
11320 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11321 (varying_to_slice): Delete declaration.
11322 * MAINTAINERS: Update.
11323
8bb2c122
MK
113242003-01-02 Mark Kettenis <kettenis@gnu.org>
11325
97bf5e38
MK
11326 * configure.in: Reorganize "Checks for library functions section"
11327 a bit. Remove check for `btowc' and `isascii' functions.
11328 * configure: Regenerated.
11329
5ee754fc
MK
11330 * acconfig.h (_MSE_INT_H): Remove.
11331 * configure.in: Create "Checks for header files" section, and move
11332 appropriate tests there. Don't check for objlist.h, wchar.h,
11333 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11334 misdetection fix. Also add "Checks for types", "Checks for
11335 compiler characteristics" and "Checks for library functions"
11336 sections.
11337 * config.in, configure: Regenerated.
11338
8bb2c122
MK
11339 * configure.in: Create "Checks for programs" section, and move
11340 appropriate tests there.
11341
9a156167
MK
113422003-01-01 Mark Kettenis <kettenis@gnu.org>
11343
11344 * configure.in: Create "Checks for libraries" section, and move
11345 appropriate tests there. Cleanup check for wctype in libw. Use
11346 AC_SEARCH_LIBS to see whether we need libsocket.
11347 * configure: Regenerated.
11348
a80e2bcb 11349For older changes see ChangeLog-2002
c906108c
SS
11350\f
11351Local Variables:
11352mode: change-log
11353left-margin: 8
11354fill-column: 74
11355version-control: never
11356End:
This page took 0.935353 seconds and 4 git commands to generate.