Index: opcodes/ChangeLog
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3ffc3dda
MS
12003-09-03 Michael Snyder <msnyder@redhat.com>
2
3 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
4
52d16ba8
AC
52003-09-03 Andrew Cagney <cagney@redhat.com>
6
7 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
8 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
9 * symfile.c (syms_from_objfile): Update.
10 (reread_symbols): `Update
11 * exec.c (exec_file_attach): Update.
12 (exec_file_attach): Update.
13 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
14 2003-08-29 change.
15 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
16
eb5492fa
DJ
172003-09-03 Daniel Jacobowitz <drow@mvista.com>
18
19 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
20 trad-frame.h.
21 (arm_get_cache): Delete macro.
22 (struct arm_prologue_cache): Update comments. Make saved_regs into
23 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
24 to prev_sp.
25 (thumb_scan_prologue): Update for cache changes. Don't call
26 DEPRECATED_PC_IN_CALL_DUMMY.
27 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
28 argument and use it in desperation search for our prologue. Do not
29 search past the specified PC.
30 (arm_make_prologue_cache): Simplify.
31
32 (arm_prologue_this_id, arm_prologue_prev_register)
33 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
34 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
35 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
36 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
37 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
38
39 (arm_frame_chain_valid, arm_find_callers_reg)
40 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
41 (arm_pop_frame): Delete obsolete methods.
42 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
43
44 (arm_gdbarch_init): Update for new frame methods. Register prologue
45 and sigtramp unwinders. Set the default frame base method.
46
47 * Makefile.in (arm-tdep.o): Update dependencies.
48 * varobj.c (find_frame_addr_in_frame_chain): Call
49 get_frame_base_address.
50 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
51
24de872b
DJ
522003-09-03 Daniel Jacobowitz <drow@mvista.com>
53
54 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
55 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
56 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
57 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
58 Take NEXT_FRAME and CACHE arguments. Call
59 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
60 Set unwound_pc in CACHE instead of modifying the frame argument.
61 Don't bother checking the frame type when looking for sigtramp
62 frames.
63 (arm_make_prologue_cache, arm_frame_chain)
64 (arm_init_extra_frame_info): New functions.
65
9b8d791a
DJ
662003-09-03 Daniel Jacobowitz <drow@mvista.com>
67
68 * arm-tdep.c (arm_get_cache): Define.
69 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
70 unwound_sp, unwound_pc, and saved_regs.
71 (thumb_scan_prologue): Take a cache instead of the frame.
72 (arm_scan_prologue): Likewise.
73 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
74 instead of a temporary frame.
75 (arm_init_extra_frame_info): Allocate and use a cache.
76 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
77
7ee3275f
AC
782003-09-03 Andrew Cagney <cagney@redhat.com>
79
80 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
81 * config/mips/wince.mt (TM_CLIBS): Ditto.
82 * config/sh/wince.mt (TM_CLIBS): Ditto.
83 * config/pa/hppa64.mt (TM_CLIBS): Delete.
84 * config/sparc/sp64.mt (CC): Delete.
85
57b29be7
AC
862003-09-03 Andrew Cagney <cagney@redhat.com>
87
88 * defs.h: Do not include "arch-utils.h".
89 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
90 GDB_MULTI_ARCH_PURE.
91 * configure.in (GDB_MULTI_ARCH): Do not define.
92 * configure, config.in: Regenerate.
93 * configure.tgt: Do not set variable "gdb_multi_arch".
94 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
95 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
96 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
97 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
98 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
99 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
100 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
101 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
102 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
103 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
104 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
105 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
106 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
107 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
108 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
109 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
110 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
111 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
112
12e035e2
MC
1132003-08-30 Michael Chastain <mec@shout.net>
114
115 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
116 * config/m68k/nm-hp300hpux.h: Delete.
117 * config/m68k/tm-hp300hpux.h: Delete.
118 * config/m68k/xm-hp300hpux.h: Delete.
119 * config/m68k/xm-hp300bsd.h: Delete.
120 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
121 tm-hp300hpux.h, xm-hp300hpux.h.
122 * somsolib.c: Remove comment about hp300 shared libraries.
123
bda34dc2
MK
1242003-08-31 Mark Kettenis <kettenis@gnu.org>
125
5bca7895
MK
126 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
127 Only define PTRACE_GET_THREAD_AREA is not already defined.
128 Various style fixes in code and comments and some additional
129 spelling fixes in comments. Move after functions dealing with
130 debug registers.
131 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
132 Fix coding-style.
133
bda34dc2
MK
134 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
135 frame_unwind_register_unsigned instead of
136 frame_unwind_unsigned_register.
137
c890192f
MK
1382003-08-30 Mark Kettenis <kettenis@gnu.org>
139
140 * configure.in: Search for gethostbyname in libnsl.
141 * configure: Regenerated.
142
60fac5b8
MK
1432003-08-29 Mark Kettenis <kettenis@gnu.org>
144
e294916c
MK
145 * configure.in: Remove redundant AC_MSG_RESULT in check for
146 uintptr_t in stdint.h.
147 * configure: Regenerated.
148
c40d267a
MK
149 * amd64-nat.h (struct regcache): Add opaque declaration.
150
60fac5b8
MK
151 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
152 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
153 Change "register array" to "register cache" in comments.
154 (x86_64_linux_gregset64_reg_offset): New variable.
155 (GETREGS_SUPPLIES): Remove macro.
156 (supply_gregset): Call amd64_supply_native_gregset instead of
157 x86_64_linux_supply_gregset.
158 (fill_gregset): Rename `regno' to `regnum'. Call
159 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
160 (store_regs): Rename `regno' to `regnum'.
161 (store_fpregs): Rename `regno' to `regnum'.
162 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
163 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
164 Reorganize function a bit.
165 (store_inferior_registers): Rename `regno' to `regnum'. Use
166 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
167 Reorganize function a bit.
168 (_initialize_x86_64_linux_nat): New function.
169 * config/i386/x86-64linux.mh.
170
546143b6
AC
1712003-08-29 Andrew Cagney <cagney@redhat.com>
172
173 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
174 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
175 (target_remove_watchpoint): Delete macro.
176 (target_insert_watchpoint): Delete macro.
177 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
178 (remote_mips_stopped_by_watchpoint): Delete declaration.
179 (remote_mips_remove_watchpoint): Delete declaration.
180 (remote_mips_set_watchpoint): Delete declaration.
181 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
182 * remote-mips.c (_initialize_remote_mips): Set
183 "to_insert_watchpoint", "to_stopped_by_watchpoint",
184 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
185 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
186 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
187 (mips_stopped_by_watchpoint): Rename
188 remote_mips_stopped_by_watchpoint.
189 (mips_can_hardware_watchpoint): Rename
190 remote_mips_can_use_hardware_watchpoint, update function
191 signature.
192
7bace51b
MK
1932003-08-29 Mark Kettenis <kettenis@gnu.org>
194
b0f5c6f2
MK
195 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
196 USER_DS. We haven't given them a register number yet.
197
2a6d284d
MK
198 * amd64-nat.h: New file.
199 * amd64-nat.c: New file.
200 * amd64fbsd-nat.c: Include "amd64-nat.h".
201 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
202 (amd64fbsd32_r_reg_offset): New variable.
203 (supply_gregset): Simply call amd64_supply_native_gregset.
204 (fill_gregset): Rename `regno' to `regnum'. Simply call
205 amd64_collect_native_gregset.
206 (fill_fpregset): Rename `regno' to `regnum'.
207 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
208 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
209 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
210 `fpregset_t'. Call amd64_supply_native_gregset instead of
211 supply_gregset. Call x86_64_supply_fxsave instead of
212 supply_fpregset.
213 (store_inferior_registers): Rename `regno' to `regnum'. Replace
214 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
215 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
216 `fpregset_t'. Call amd64_collect_native_gregset instead of
217 fill_gregset. Call x86_64_collect_fxsave instead of
218 fill_fpregset.
219 (_initialize_am64fbsd_nat): Initialize
220 amd64_native_gregset32_reg_offset and
221 amd64_native_gregset64_reg_offset.
222 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
223
a16d75cc
MK
224 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
225 null pointer. Fix typo in comment.
226
7bace51b
MK
227 * regcache.c (supply_register): Reimplement to call
228 regcache_raw_supply.
229 (regcache_collect): Reimplement by calling regcache_raw_collect.
230
9a661b68
MK
2312003-08-28 Mark Kettenis <kettenis@gnu.org>
232
233 * regcache.c (register_buffer): Consitify first argument.
234 (regcache_raw_supply, regcache_raw_collect): New
235 functions.
236
e94cc8fa
DJ
2372003-08-28 Daniel Jacobowitz <drow@mvista.com>
238
239 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
240 by Nathan J. Williams.
241
c64bd0ce
DJ
2422003-08-28 Daniel Jacobowitz <drow@mvista.com>
243
244 * lin-lwp.c (wait_lwp): New function, copied from
245 stop_wait_callback. Clean up.
246 (stop_wait_callback): Use wait_lwp.
247
e5ab0dce
AC
2482003-08-28 Andrew Cagney <cagney@redhat.com>
249
250 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
251 flavour and disassembler options.
252 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
253 (mips_gdbarch_init): Set "print_insn". Delete initialization of
254 deprecated_tm_print_insn_info.
255
a788de9b
AC
2562003-08-27 Andrew Cagney <cagney@redhat.com>
257
258 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
259 Use target_read_memory.
260 (s390_get_frame_info): Update. Do not reference
261 deprecated_tm_print_insn_info.
262 (s390_check_function_end, s390_is_sigreturn): Ditto.
263
36482093
AC
2642003-08-27 Andrew Cagney <cagney@redhat.com>
265
266 * Makefile.in (cris-tdep.o): Update dependencies.
267 * cris-tdep.c: Include "gdb_assert.h".
268 (cris_gdbarch_init): Set print_insn.
269 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
270 (cris_delayed_get_disassembler): Simplify, directly call the
271 disassembler returned by cris_get_disassembler.
272 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
273 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
274 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
275 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
276 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
277 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
278 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
279 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
280 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
281 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
282 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
283 (gdb_print_insn_sparc): Delete function.
284 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
285 deprecated_tm_print_insn_info.
286 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
287 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
288 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
289 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
290 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
291 * s390-tdep.c (gdb_print_insn_s390): Delete function.
292 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
293 (s390_gdbarch_init): Set print_insn.
294
0285512f
AC
2952003-08-27 Andrew Cagney <cagney@redhat.com>
296
297 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
298 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
299 * infcall.c (call_function_by_hand): Convert the entry point
300 address into a code address.
301
cdcd5552
AC
3022003-08-27 Andrew Cagney <cagney@redhat.com>
303
304 * dsrec.c: Include "gdb_string.h".
305 * Makefile.in (dsrec.o): Update dependencies.
306
e85cddad
MC
3072003-08-27 Michael Chastain <mec@shout.net>
308
309 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
310
8bbfbb23
AC
3112003-08-27 Andrew Cagney <cagney@redhat.com>
312
313 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
314 (alpha_osf1_init_abi): Do not set call_dummy_address.
315
ba058b66
DC
3162003-08-27 David Carlton <carlton@kealia.com>
317
318 From Randolph Chung <tausq@debian.org>:
319 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
320 compiles with -Wformat-nonliteral -Werror.
321
87f84c9d
JB
3222003-08-26 Jim Blandy <jimb@redhat.com>
323
324 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
325 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
326 bfd_lookup_symbol, since we only want symbols in code sections.
327 (look_for_base): Pass zero as the SECT_FLAGS argument to
328 bfd_lookup_symbol, since we're not concerned about which section
329 the symbol is in.
330
102d615a
JJ
3312003-08-26 Jeff Johnston <jjohnstn@redhat.com>
332
333 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
334 we are frameless or the return address register is already known.
335
cc7ad3ea
AC
3362003-08-26 Andrew Cagney <cagney@redhat.com>
337
338 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
339 in size. Add comments.
340
af8b88dd
JJ
3412003-08-26 Jeff Johnston <jjohnstn@redhat.com>
342
343 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
344 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
345
e0a4f5a1
JM
3462003-08-26 Jason Merrill <jason@redhat.com>
347
348 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
349 case out of #ifdef MIPS block.
350
4ae9ee8e
DJ
3512003-08-25 Daniel Jacobowitz <drow@mvista.com>
352
353 PR java/1322
354 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
355 available before calling SECT_OFF_TEXT.
3c164570 356 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 357
004d836a
JJ
3582003-08-25 Jeff Johnston <jjohnstn@redhat.com>
359
360 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
361 bof, and nat0-nat127 as pseudo-registers.
362 (ia64_frame_cache): New struct used to cache frame info.
363 (ia64_register_reggroup_p): New routine used to override default
364 register grouping so registers without names are still saved and
365 restored.
366 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
367 pseudo values.
368 (ia64_pseudo_register_read): New routine to read pseudo-registers.
369 (ia64_pseudo_register_write): New routine to write pseudo-registers.
370 (ia64_alloc_frame_cache): New routine to create a new
371 ia64_frame_cache.
372 (examine_prologue): Change prototype to add next_frame pointer.
373 Assume frameless until otherwise proven. Verify that the cfm for
374 current frame matches the cfm that should occur for the prologues
375 alloc insn and if equal, mark as not frameless. At end of routine,
376 if not frameless, calculate registers for the previous frame and store
377 in the cache, if a cache is provided.
378 (ia64_skip_prologue): Use new prototype when calling examine_prologue
379 and pass 0 for next_frame.
380 (ia64_store_return_value): Change to use convert_typed_floating()
381 instead of calling ia64_convert_to_raw().
382 (ia64_extract_return_value): Change to use convert_typed_floating()
383 instead of calling ia64_convert_to_virtual().
384 (ia64_frame_cache): New routine to support new frame model.
385 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
386 (ia64_frame_sniffer): Ditto.
387 (ia64_sigtramp_frame_init_saved_regs): Ditto.
388 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
389 (ia64_sigtramp_frame_prev_register): Ditto.
390 (ia64_sigtramp_frame_sniffer): Ditto.
391 (ia64_frame_base_address): Ditto.
392 (ia64_extract_struct_value_address): Change to issue error message.
393 (ia64_frame_align): New routine to align sp.
394 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
395 (ia64_push_arguments): Removed. Logic moved to
396 ia64_push_dummy_call().
397 (ia64_push_return_address): Ditto.
398 (ia64_unwind_dummy_id): New function.
399 (ia64_unwind_pc): Ditto.
400 (ia64_convert_register_p): Ditto.
401 (ia64_register_to_value): Ditto.
402 (ia64_value_to_register): Ditto.
403 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
404 (ia64_register_byte, ia64_register_raw_size): Ditto.
405 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
406 (ia64_saved_pc_after_call): Ditto.
407 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
408 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
409 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
410 (ia64_register_convert_to_raw): Ditto.
411 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
412 (ia64_init_extra_frame_info): Ditto.
413 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
414 (ia64_gdbarch_init): Remove registering of deprecated functions that
415 are no longer used. Add registration of new gdbarch functions.
416 Remove registering deprecated_write_sp. Replace
417 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
418 Delete set_gdbarch_deprecated_register_convertible(),
419 set_gdbarch_deprecated_register_convert_to_virtual(), and
420 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
421 set_gdbarch_deprecated_register_size(),
422 set_gdbarch_deprecated_register_bytes(),
423 set_gdbarch_pcregnum(),
424 set_gdbarch_deprecated_register_byte(),
425 set_gdbarch_deprecated_register_raw_size(),
426 set_gdbarch_deprecated_max_register_raw_size(),
427 set_gdbarch_deprecated_register_virtual_size(),
428 and set_gdbarch_deprecated_max_register_virtual_size() calls.
429 Replace set_gdbarch_deprecated_extract_return_value() with
430 set_gdbarch_extract_return_value(). Remove calls to:
431 set_gdbarch_deprecated_saved_pc_after_call();
432 set_gdbarch_deprecated_frame_chain(),
433 set_gdbarch_deprecated_frame_saved_pc(),
434 set_gdbarch_deprecated_frame_init_saved_regs(),
435 set_gdbarch_deprecated_get_saved_register(),
436 set_gdbarch_deprecated_call_dummy_words(),
437 set_gdbarch_deprecated_sizeof_call_dummy_words(),
438 set_gdbarch_deprecated_init_extra_frame_info(),
439 set_gdbarch_deprecated_frame_args_address(),
440 set_gdbarch_deprecated_frame_locals_address(),
441 and set_gdbarch_deprecated_dummy_write_sp().
442 Add set_gdbarch_convert_register_p(),
443 set_gdbarch_register_to_value(),
444 set_gdbarch_value_to_register(),
445 set_gdbarch_push_dummy_call(),
446 set_gdbarch_frame_align(),
447 set_gdbarch_unwind_dummy_id(),
448 set_gdbarch_unwind_pc(),
449 frame_unwind_append_sniffer(),
450 frame_unwind_append_sniffer(),
451 and frame_base_set_default().
452
aede7613
CD
4532003-08-25 Chris Demetriou <cgd@broadcom.com>
454
455 * configure.tgt: Document need for special "mipsisa64" handling.
456 (mipsisa64*-*-linux64): Handle as target linux64.
457 (mipsisa64*-*-*): Handle as target embed64.
458
43c3a82e
MC
4592003-08-18 Michael Chastain <mec@shout.net>
460
461 * PROBLEMS: Document pr gdb/1322, the Java anonymous
462 objfile bug.
463
6564f77d
MK
4642003-08-24 Mark Kettenis <kettenis@gnu.org>
465
2de139ba
MK
466 * i387-tdep.h: Update copyright date.
467 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
468
6564f77d
MK
469 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
470 CFLAGS games to reflect reality.
471
42cf1509
AC
4722003-08-24 Andrew Cagney <cagney@redhat.com>
473
474 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
475 GDB_MULTI_ARCH is always non-zero.
476 * osabi.c (_initialize_gdb_osabi): Ditto.
477 (gdbarch_init_osabi): Ditto.
478 * sparc-tdep.c: Ditto for #if code.
479
0485f6ad
MK
4802003-08-23 Mark Kettenis <kettenis@gnu.org>
481
482 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
483 Update comments.
484 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
485 comments.
486 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
487 x86_64_supply_fxsave.
488 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
489 x86_64_supply_fxsave.
490 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
491 x86_64_supply_fxsave.
492
c7716133
AJ
4932003-08-23 Andreas Jaeger <aj@suse.de>
494
495 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
496 i387_supply_fxsave.
497
ed504bdf
MK
4982003-08-23 Mark Kettenis <kettenis@gnu.org>
499
500 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
501 i387_supply_register.
502 (go32_fetch_registers): Adjust call to i387_supply_fsave.
503 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
504 i387_supply_fsave.
505 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
506 i387_supply_fxsave.
507 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
508 i387_supply_fsave.
509 * i386bsd-nat.c (supply_fpregset): Adjust call to
510 i387_supply_fsave.
511 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
512 call to i387_supply_fxsave. Call i387_supply_fsave instead of
513 supply_fpregset.
514 (store_inferior_registers): Remove extraneous whitespace. Call
515 i387_fill_fsave instead of fill_fpregset.
516 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
517 (supply_fpregset): Likewise.
518 * i386v4-nat.c (supply_fpregset): Adjust call to
519 i387_supply_fsave.
520 * i386-interix-nat.c (supply_fpregset): Adjust call to
521 i387_supply_fsave.
522 * i386-linux-nat.c (supply_fpregset): Adjust call to
523 i387_supply_fsave.
524 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
525 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
526 i387supply_fsave and i387_supply_fxsave.
527 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
528 Incorporate code from `i387_supply_register.
529 (i387_supply_register): Remove.
530 (i387_supply_fxsave): Add `regnum' argument.
531 Update comments.
532 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
533 prototype.
534 (i387_supply_register): remove prototype.
535 Update comments.
536
4be5d520
MC
5372003-08-22 Michael Chastain <mec@shout.net>
538
539 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
540 Add lines for files in gdb/testsuite/gdb.cp/* that are
541 still not 8.3 unique.
542
7ed85d26
DJ
5432003-08-22 Daniel Jacobowitz <drow@mvista.com>
544
545 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
546 TYPE_VPTR_FIELDNO is valid.
547
eb0d3137
MK
5482003-08-19 Mark Kettenis <kettenis@gnu.org>
549
550 * utils.c (set_width_command): Remove prototypes.
551 (set_screen_size): New prototype.
552 (init_page_info): Simplify by fetching the screen size from
553 Readline. Call set_screen_size.
554 (set_screen_size): New function.
555 (set_width): Add missing whitespace in comment.
556 (set_width_command): Call set_screen_size.
557 (set_height_command): New function.
558 (initialize_utils): Fix formatting. Make "set height" command
559 call set_height_command. Remove redundant code that turns off
560 pagination if output isn't a terminal. Remove redundant call to
561 set_width_command.
562
7e6d0ac8
MK
5632003-08-22 Mark Kettenis <kettenis@gnu.org>
564
3567a8ea
MK
565 * sparc64-tdep.h (sparc64_regnum): Fix comment.
566 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
567 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
568 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
569 `case' keyword.
570 (sparc64_register_info): Give the reister with number
571 SPARC64_STATE_REGNUM a name.
572 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
573 %asi and %ccr.
574 (sparc64_push_dummy_call): Take BIAS into account when checking
575 stcak alignment.
576 (sparc_software_single_step): Remove assertions that check whether
577 NPC and NNPC were zero.
578 (sparc_supply_rwindow): Make public. Merge functionality with
579 sparc64_supply_rwindow.
580 (sparc_fill_rwindow): Make public. Merge functionality with
581 sparc64_fill_rwindow.
582 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
583 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
584 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
585 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
586 sparc_supply_rwindow instead of sparc64_supply_rwindow.
587
7e6d0ac8
MK
588 * reggroups.c: Add whitespace after declarations of local
589 variables in functions.
590
72e5f484
MC
5912003-08-21 Michael Chastain <mec@shout.net>
592
593 * gdbtypes.h: Change array bound type from an int to enum.
594
435ac228
AC
5952003-08-21 Andrew Cagney <cagney@redhat.com>
596
597 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
598 * config/sparc/tm-sparc.h: Ditto.
599 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
600 unconditionally.
601 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
602
0d0e1a63
MK
6032003-07-13 Mark Kettenis <kettenis@gnu.org>
604
605 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
606 (register_objfile_data, set_objfile_data, objfile_data): New
607 prototypes.
608 * objfiles.c (objfile_alloc_data, objfile_free_data): New
609 prototypes.
610 (allocate_objfile): Call objfile_alloc_data.
611 (free_objfile): Call objfile_free_data.
612 (struct objfile_data): New.
613 (struct objfile_data_registration): New.
614 (struct objfile_data_registry): New.
615 (objfile_data_registry): New variable.
616 (register_objfile_data): New function.
617 (objfile_alloc_data, objfile_free_data): New functions.
618 (set_objfile_data, objfile_data): New functions.
619 * dwarf2-frame.c (dwarf2_frame_data): New variable.
620 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
621 (_initialize_dwarf2_frame): New function and prototype.
622
d90cf509
AC
6232003-08-21 Andrew Cagney <cagney@redhat.com>
624
625 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
626 a specific architecture.
627 * arch-utils.h (set_architecture_from_arch_mach): Delete
628 declaration.
629 (target_architecture_hook): Delete declaration.
630 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
631 (default_float_format): Assume GDB_MULTI_ARCH.
632 (default_double_format): Assume GDB_MULTI_ARCH.
633 (set_endian_from_file): Delete function.
634 (arch_ok): Delete function.
635 (set_arch): Delete function.
636 (set_architecture_from_arch_mach): Delete function.
637 (set_architecture_from_file): Delete function.
638 (set_architecture): Assume GDB_MULTI_ARCH.
639 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
640
8b39fe56
MK
6412003-08-21 Mark Kettenis <kettenis@gnu.org>
642
643 Rewrite FreeBSD/sparc64 native configuration.
644 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
645 * sparc64fbsd-nat.c: New file.
646 * sparc64fbsd-tdep.c: New file.
647 * sparc64-tdep.c sparc64-tdep.h: New files.
648 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
649 sparc64fbsd-tdep.o): New dependencies.
650 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
651 and sparc64fbsd-tdep.c.
652 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
653 * config/sparc/fbsd.mh: Remove copyright notice.
654 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
655 sparcbsd-nat.o.
656 * config/sparc/fbsd.mt: Remove copyright notice.
657 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
658 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
659 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
660 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
661 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
662 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
663 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
664 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
665 "sparc/tm-sp64.h".
666 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
667 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
668
a7f19c79
MC
6692003-08-21 Michael Chastain <mec@shout.net>
670
671 * symtab.h: Add doco on the space critical structures and
672 some measurements of space usage.
673
da08ea5b
MS
6742003-08-21 Michael Snyder <msnyder@redhat.com>
675
676 * tracepoint.c (trace_dump_command): Trace break address
677 is subject to DECR_PC_AFTER_BREAK.
678 (set_traceframe_context): Make "trace_line" an int.
679 Fixes suggested by Mark Newman <mark.newman@lmco.com>
680
6df2bf50
MS
6812003-08-20 Michael Snyder <msnyder@redhat.com>
682
683 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
684 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
685 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
686 argument passing.
687 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
688 functions, replace sh_push_dummy_call.
689 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
690
0955bbf0
MC
6912003-08-20 Michael Chastain <mec@shout.net>
692
693 * gdbtypes.h (struct main_type): Rearrange to save space.
694
260a4188
MS
6952003-08-20 Michael Snyder <msnyder@redhat.com>
696
697 * trad-frame.c: Comment typo fix.
698
8baa6f92
KB
6992003-08-20 Michael Snyder <msnyder@redhat.com>
700 Kevin Buettner <kevinb@redhat.com>
701
702 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
703 (frv_frame_init_saved_regs): Add declaration.
704 (frame_extra_info): Add new field ``saved_regs''.
705 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
706 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
707 Update frame related code.
708 (frv_extract_struct_value_address): Adjust formatting.
709 * Makefile.in (frv-tdep.o): Update dependencies.
710 * config/frv/tm-frv.h (target_insert_watchpoint)
711 (target_remove_watchpoint, target_insert_hw_breakpoint)
712 (target_remove_hw_breakpoint): Delete these macros.
713 (remote_insert_watchpoint, remote_remove_watchpoint)
714 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
715 these declarations.
716
87193939
MC
7172003-08-20 Michael Chastain <mec@shout.net>
718
719 * defs.h (ENUM_BITFIELD): New macro.
720 * symtab.h (ENUM_BITFIELD): Use it.
721 (BYTE_BITFIELD): Remove old macro, which was already disabled.
722
062103ba
SA
7232003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
724
725 * MAINTAINERS (write after approval): Add myself.
726
8b148df9
AC
7272003-08-18 Andrew Cagney <cagney@redhat.com>
728
729 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
730 * gdbarch.h, gdbarch.c: Re-generate.
731 * infcall.c (call_function_by_hand): Adjust the SP by
732 frame_red_zone_size before allocating any stack space.
733 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
734 * x86-64-tdep.c (x86_64_frame_align): New function.
735 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
736
737 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
738 Remove code adjusting SP so that it skips over the Red Zone.
739
954a4db8
MK
7402003-08-18 Mark Kettenis <kettenis@gnu.org>
741
742 * NEWS (New native configurations): Mention FreeBSD/amd64.
743
1a241548
AC
7442003-08-18 Andrew Cagney <cagney@redhat.com>
745
746 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
747 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
748 "m68k_frame_p".
749 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
750
f82b2acd
MK
7512003-08-18 Mark Kettenis <kettenis@gnu.org>
752
753 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
754
4056d258
ML
7552003-08-18 Michal Ludvig <mludvig@suse.cz>
756
757 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
758 Define.
759 * i386-linux-nat.c: Include "linux-nat.h".
760 (child_post_startup_inferior): New function.
761
99ab4326
MK
7622003-08-18 Mark Kettenis <kettenis@gnu.org>
763
764 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
765 at the start of a frameless function. This probably fixes PR
766 backtrace/1338.
767
c8d5f0d6
MC
7682003-08-17 Michael Chastain <mec@shout.net>
769
770 * symfile.c (find_sym_fns): Remove special case for apollo target.
771
9016a515
DJ
7722003-08-17 Daniel Jacobowitz <drow@mvista.com>
773
774 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
775 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
776 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
777 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
778 (linux_supports_tracevforkdone): New function.
779 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
780 TRACEVFORKDONE.
781 (child_follow_fork): Handle vfork.
782 (linux_handle_extended_wait): Likewise. Also handle exec.
783 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
784 * NEWS: Mention fork tracing.
785
c538c11c
DJ
7862003-08-17 Daniel Jacobowitz <drow@mvista.com>
787
788 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
789
4de4c07c
DJ
7902003-08-17 Daniel Jacobowitz <drow@mvista.com>
791
792 * Makefile.in (i386-linux-nat.o): Update dependencies.
793 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
794 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
795 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
796 * i386-linux-nat.c: Include "linux-nat.h".
797 (child_post_startup_inferior): New function.
798 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
799 * infptrace.c (kill_inferior): Wrap in #ifdef.
800 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
801 attaching to each LWP.
802 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
803 (init_lin_lwp_ops): Fill in some more operations.
804 * linux-nat.h (linux_enable_event_reporting)
805 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
806 prototypes.
807 * linux-nat.c (linux_enable_event_reporting): New function.
808 (child_post_attach, linux_child_post_startup_inferior)
809 (child_post_startup_inferior, child_follow_fork)
810 (linux_handle_extended_wait, kill_inferior): New functions.
811
7996bcec
AC
8122003-08-16 Andrew Cagney <cagney@redhat.com>
813
814 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
815 * gdbarch.h, gdbarch.c: Re-generate.
816
3d48a7a0
MK
8172003-08-16 Mark Kettenis <kettenis@gnu.org>
818
819 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
820
7989c619
AC
8212003-08-16 Andrew Cagney <cagney@redhat.com>
822
823 * NEWS: Mention that "set prompt-escape-char" was deleted.
824 * top.c (get_prompt_1): Delete function.
825 (gdb_prompt_escape):
826 (init_main): Do not clear "gdb_prompt_escape". Delete "set
827 prompt-escape-char" command.
828 (MAX_PROMPT_SIZE): Delete macro.
829 (get_prompt): Simplify, do not call get_prompt_1.
830
07978cd8
AC
8312003-08-16 Andrew Cagney <cagney@redhat.com>
832
833 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
834 -Werror. -Wformat-nonliteral problems.
835
3ff7cf9e
JB
8362003-08-15 J. Brobecker <brobecker@gnat.com>
837
838 Further multiarching work mostly for hppa64-*-hpux11:
839 * hppa-tdep.h: New file.
840 * hppa-tdep.c: #include hppa-tdep.c.
841 (hppa32_num_regs): Renamed from hppa_num_regs.
842 (hppa64_num_regs): New constant.
843 (hppa64_call_dummy_breakpoint_offset): New constant.
844 (hppa32_call_dummy_length): New constant.
845 (hppa64_call_dummy_length): New constant.
846 (hppa32_stack_align): Make name 32bit explicit.
847 (hppa32_register_virtual_type): Likewise.
848 (hppa32_extract_return_value): Likewise.
849 (hppa32_use_struct_convention): Likewise.
850 (hppa32_store_return_value): Likewise.
851 (hppa64_register_virtual_type): New function.
852 (hppa64_extract_return_value): New function.
853 (hppa64_use_struct_convention): New function.
854 (hppa64_store_return_value): New function.
855 (hppa_frame_locals_address): Remove declaration, function does
856 not exist anymore.
857 (hppa_register_byte): Add support for PA64 ABI.
858 (hppa_gdbarch_init): Add support for PA64 ABI.
859 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
860 Make name 32bit explicit.
861 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
862 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
863 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
864 (hppa64_hpux_frame_base_before_sigtramp): New function.
865 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
866 * config/pa/tm-hppa64.h: Remove macros that are no longer
867 necessary now that the gdbarch vector is properly setup.
868 Transform some macros into function calls. Some minor cleanup.
869 * config/pa/tm-hppah.h: Update function calls in macros
870 following the function renaming in hppa-hpux-tdep.c.
871 * Makefile.in (hppa_tdep_h): New variable.
872 (hppa-tdep.o): Add dependency over hppa_tdep_h.
873
5d05ca6d
MS
8742003-08-14 Michael Snyder <msnyder@redhat.com>
875
876 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
877
37ba2569
JB
8782003-08-13 J. Brobecker <brobecker@gnat.com>
879
880 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
881 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
882 routine.
883
aed7f26a
MS
8842003-08-13 Michael Snyder <msnyder@redhat.com>
885
886 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
887 (frv_saved_pc_after_call): Use deprecated ftype.
888 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
889 (frv_remote_translate_xfer_address): Remove.
890 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
891
752d4ac1
JB
8922003-08-13 J. Brobecker <brobecker@gnat.com>
893
894 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
895 initialization after the common gdbarch initialization, not before.
896
1426ac1d
JB
8972003-08-13 J. Brobecker <brobecker@gnat.com>
898
899 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
900 (ADDR_BITS_REMOVE): Remove, redundant.
901
b6fbdd1d
JB
9022003-08-13 J. Brobecker <brobecker@gnat.com>
903
904 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
905 gdbarch method to clear the 2 low bits of text addresses.
906
44160db3
AC
9072003-08-12 Andrew Cagney <cagney@redhat.com>
908
909 * Makefile.in (dsrec.o): Update dependencies.
910 * dsrec.c: Include "gdb_assert.h".
911 (make_srec): Use snprintf instead of sprintf, use a literal format
912 string.
913
bcf7d3ca
AC
9142003-08-12 Andrew Cagney <cagney@redhat.com>
915
916 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
917 FRAME_OBSTACK_ZALLOC.
918
49ed40de
KB
9192003-08-12 Kevin Buettner <kevinb@redhat.com>
920
921 * i386-tdep.c (i386_gdbarch_init): Enable default support for
922 SSE registers.
923
b246147c
MK
9242003-08-10 Mark Kettenis <kettenis@gnu.org>
925
926 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
927 amd64fbsd_sc_reg_offset): Add extern declarations.
928 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
929 declarations.
930
d95fdc0d
BE
9312003-08-11 Ben Elliston <bje@wasabisystems.com>
932
933 * MAINTAINERS (write after approval): Update my mail address.
934
cf6a0e73
AC
9352003-08-10 Andrew Cagney <cagney@redhat.com>
936
937 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
938
f837910f
MK
9392003-08-10 Mark Kettenis <kettenis@gnu.org>
940
e2dbbd2d
MK
941 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
942 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
943 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
944 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
945 i386bsd_sc_reg_offset): Add extern declarations.
946 * i386obsd-nat.c: Include "i386-tdep.h"
947 (_initialize_i386obsd_nat): Remove extern declarations.
948 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
949 declarations.
950 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
951 declarations.
952
f837910f
MK
953 * i386-tdep.c (i386_register_to_value): Use get_frame_register
954 instead of frame_read_register.
955 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
956 instead of frame_read_register. Use I386_ESP_REGNUM instead of
957 SP_REGNUM.
958 (i386_frame_prev_register): Use frame_unwind_register_unsigned
959 instead of frame_unwind_unsigned_register. Use
960 I386_EFLAGS_REGISTER instead of PS_REGNUM.
961 (i386_get_longjmp_target): Use regcache_read_unsigned_register
962 instead of read_register. Use builtin_type_void_data_ptr instead
963 of builtin_type_void_func_ptr when extracting the address of the
964 jmp_buf.
965 (i386_extract_return_value, i386_store_return_value,
966 i386_pseudo_register_read, i386_pseudo_register_write): Use
967 register_size instead REGISTER_RAW_SIZE.
968
edcf254d
AC
9692003-08-10 Andrew Cagney <cagney@redhat.com>
970
971 * infcall.c (call_function_by_hand): Use xstrprintf instead of
972 sprintf. Make "name" constant.
973
26604a34
MK
9742003-08-10 Mark Kettenis <kettenis@gnu.org>
975
192285c6
MK
976 * i387-tdep.c (i387_register_to_value): Use get_frame_register
977 instead of frame_read_register.
f837910f
MK
978 (i387_print_float_info): Use get_frame_register and
979 get_frame_register_unsigned instead of frame_register_read.
192285c6 980
f0925262
MK
981 * i386fbsd-nat.c: Include "i386-tdep.h".
982 (child_resume): Make `eflags' an ULONGEST. Use
983 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
984 instead of register_read and register_write.
985
a144416f
MK
986 * i386bsd-nat.c (fetch_inferior_registers,
987 store_inferior_registers): Don't use && at the end of a line.
988 (_initialize_i386bsd_nat): Fix typo.
989
fec74868
MK
990 * frame.c (_initialize_frame): Add missing backslash.
991
87232496
MK
992 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
993 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
994 and supply_register instead of manipulating the register buffer
995 directly.
996
c9b9de0b
MK
997 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
998 * config/i386/nm-i386sol2.h
999 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1000
26604a34
MK
1001 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1002 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1003 instructions that GCC likes to mingle into the prologue. Fixes
1004 gdb/1253 and gdb/1255.
1005
25d29d70
AC
10062003-08-09 Andrew Cagney <cagney@redhat.com>
1007
1008 Fix GDB PR cli/926.
1009 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1010 * command.h (add_setshow_uinteger_cmd): Declare.
1011 * frame.c (set_backtrace_cmd): New function.
1012 (show_backtrace_cmd): New function.
1013 * frame.c (_initialize_frame): Replace "set/show
1014 backtrace-below-main" with "set/show backtrace past-main". Add
1015 command "set/show backtrace limit".
1016 (backtrace_past_main): Rename "backtrace_below_main".
1017 (backtrace_limit): New variable.
1018 (get_prev_frame): Update. Check the backtrace_limit.
1019
9ebf4acf
AC
10202003-08-09 Andrew Cagney <cagney@redhat.com>
1021
1022 * defs.h (xstrprintf): Declare.
1023 * utils.c (xstrprintf): New function.
1024 * breakpoint.c (insert_breakpoints): Replace sprintf and
1025 non-literal format strings, with xstrprintf and cleanups.
1026 (delete_breakpoint,breakpoint_re_set): Ditto.
1027 (commands_command, insert_breakpoints): Ditto.
1028 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1029 (break_at_finish_command_1): Ditto.
1030
3771659b
AC
10312003-08-09 Andrew Cagney <cagney@redhat.com>
1032
1033 * MAINTAINERS (language support): List Adam Fedor as Objective C
1034 maintainer.
1035
b4263afa
JB
10362003-08-08 J. Brobecker <brobecker@gnat.com>
1037
1038 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1039 are now multiarched.
1040
d84defb1
JB
10412003-08-08 J. Brobecker <brobecker@gnat.com>
1042
1043 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1044 longer necessary now that hppa64 is partially multiarch'ed.
1045
f786f615
AC
10462003-08-08 Andrew Cagney <cagney@redhat.com>
1047
1048 * interps.c (interp_set): Check for a NULL "old_interp".
1049
c938e9b0
L
10502003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1051
1052 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1053 (install-only): Support DESTDIR.
1054 (uninstall): Likewise.
1055 (install-gdbtk): Likewise.
1056
9a146a11
EZ
10572003-08-08 Elena Zannoni <ezannoni@redhat.com>
1058
1059 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1060 contains something meaningful at all times.
1061
1062Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1063
62599e99 1064 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1065
56296155
BC
1066Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1067
62599e99 1068 * MAINTAINERS (write after approval): Added self.
56296155 1069
9710e734
AC
10702003-08-07 Andrew Cagney <cagney@redhat.com>
1071
1072 * inferior.h (AT_SYMBOL): Define.
1073 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1074 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1075 * mips-tdep.c (mips_call_dummy_address): Delete function.
1076 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1077 set call_dummy_address.
1078
98b3ab73
AC
10792003-08-07 Andrew Cagney <cagney@redhat.com>
1080
1081 * language.c (op_error): Delete function.
1082 (binop_type_check): Delete function.
1083 * language.h (type_op_error, range_op_error): Delete macros.
1084 (op_error): Delete declaration.
1085
2fcf52f0
AC
10862003-08-07 Andrew Cagney <cagney@redhat.com>
1087
1088 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1089
abd4220e 10902003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1091
abd4220e 1092 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1093 (x86_64_push_arguments): Skip the red zone.
abd4220e 1094
9dd5f34f
AC
10952003-08-05 Andrew Cagney <cagney@redhat.com>
1096
1097 * reggroups.c (reggroup_next): Check for the final entry.
1098
e5e78edc
AC
10992003-08-04 Andrew Cagney <cagney@redhat.com>
1100
ab4e3d93
AC
1101 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1102 * cli/cli-script.c (define_command): Call query directly, instead
1103 of passing it a buffer.
1104 * ocd.c (ocd_error): Pass error a constant format string.
1105 * remote-mips.c (mips_error): Use fputs_filtered.
1106
1062ca82
AC
1107 * solib-svr4.c (_initialize_svr4_solib): Update
1108 register_gdbarch_data call.
1109 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1110
fcc1c85c
AC
1111 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1112 (register_gdbarch_data): Delete "free" parameter. Update
1113 comments.
1114 * gdbarch.h, gdbarch.c: Re-generate.
1115 * reggroups.c (_initialize_reggroup): Update.
1116 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1117 * frame-base.c (_initialize_frame_base): Update.
1118 * frame-unwind.c (_initialize_frame_unwind): Update.
1119 * user-regs.c (_initialize_user_regs): Update.
1120 * remote.c (_initialize_remote): Update.
1121 * regcache.c (_initialize_regcache): Update.
1122
116f06ea
AC
1123 * regcache.c (xfree_regcache_descr): Delete function.
1124 (_initialize_regcache): Update call to register_gdbarch_data.
1125 (init_regcache_descr, init_legacy_regcache_descr): Use
1126 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1127
e5e78edc
AC
1128 * remote.c (free_remote_state): Delete function.
1129 (_initialize_remote): Update register_gdbarch_data.
1130 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1131 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1132
6c7d17ba
AC
11332003-08-04 Andrew Cagney <cagney@redhat.com>
1134
1135 * reggroups.c (struct reggroup_el): Define.
1136 (struct reggroups): Delete field "nr_group". Replace array
1137 "group" with a "first" to "last" linked list.
1138 (reggroups_init): Update. Allocate using gdbarch's obstack.
1139 (reggroups_free): Delete function.
1140 (add_group): Update. Add "el" parameter.
1141 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1142 (default_groups): Update.
1143 (reggroup_next): Replace reggroups.
1144 (reggroups_dump): Update.
1145 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1146 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1147 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1148
89b7795b
DJ
11492003-08-04 Daniel Jacobowitz <drow@mvista.com>
1150
1151 * Makefile.in (tui-interp.o): Update dependencies.
1152
306d9ac5
DC
11532003-08-04 David Carlton <carlton@kealia.com>
1154
1155 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1156 to internal_error call.
1157 * source.c (forward_search_command): Add "%s" format argument.
1158 (reverse_search_command): Ditto.
1159 * top.c (quit_confirm): Ditto.
1160 * cli/cli-setshow.c (do_setshow_command): Ditto.
1161 * cp-valprint.c (cp_print_class_method): Replace
1162 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1163 (cp_print_class_member): Ditto.
1164 * event-top.c (command_line_handler): Ditto.
1165 * linux-proc.c (linux_info_proc_cmd): Ditto.
1166 * p-typeprint.c (pascal_type_print_base): Ditto.
1167 * p-valprint.c (pascal_object_print_class_method): Ditto.
1168 (pascal_object_print_class_member): Ditto.
1169 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1170 * remote.c (remote_cisco_section_offsets): Ditto.
1171 * top.c (command_line_input): Ditto.
1172 * utils.c (vwarning,error_stream,quit): Ditto.
1173 * valprint.c (print_floating,print_binary_chars)
1174 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1175
57bfe177
AC
11762003-08-04 Andrew Cagney <cagney@redhat.com>
1177
1178 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1179
e546b999
AC
11802003-08-02 Andrew Cagney <cagney@redhat.com>
1181
1182 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1183 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1184 amd64fbsd-nat.c.
1185
91092ee5
AC
11862003-08-02 Andrew Cagney <cagney@redhat.com>
1187
1188 * Makefile.in: Update all dependencies and definitions.
1189
889f28e2
AF
11902003-08-02 Adam Fedor <fedor@gnu.org>
1191
1192 * linespec.c (is_objc_method_format): New function
1193 (decode_line_1, locate_first_half): Use it.
1194 Fixes PR objc/1298
1195
880bc914
AC
11962003-08-01 Andrew Cagney <cagney@redhat.com>
1197
1198 * NEWS: Mention that m32r is multi-arch.
1199 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1200 * configure.tgt: Recognize m32r-*-*.
1201 * config/m32r/tm-m32r.h: Delete file.
1202 * config/m32r/m32r.mt: New file.
1203 * m32r-rom.c (m32r_upload_command): Use hostent only when
1204 gethostname succeeds, in order to avoid a compilation
1205 warning.
1206 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1207 compiler warning.
1208
19f59343
MS
12092003-08-01 Michael Snyder <msnyder@redhat.com>
1210
1211 * sh-tdep.c (sh_frame_align): New gdbarch method.
1212 (sh_gdbarch_init): Set up frame_align method.
1213
4e7d7511
MS
12142003-07-31 Michael Snyder <msnyder@redhat.com>
1215
1216 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1217 which is already covered by the new frames infrastructure.
1218
63022984
AC
12192003-07-31 Andrew Cagney <cagney@redhat.com>
1220
1221 * user-regs.c (struct user_reg): Add "next" link.
1222 (struct user_regs): Replace "user" with "first" and "last" links.
1223 (append_user_reg): Add pre-allocated "reg" parameter.
1224 (builtin_user_regs): Provide initial value for "last".
1225 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1226 (user_regs_init): Allocate memory from the gdbarch obstack.
1227 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1228 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1229 linked list.
1230 (usernum_to_user_reg): New function.
1231 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1232 (value_of_user_reg): Use usernum_to_user_reg.
1233 (user_regs_free): Delete function.
1234 (_initialize_user_regs): Update register_gdbarch_data call.
1235
7cf6e574
DJ
12362003-07-31 Daniel Jacobowitz <drow@mvista.com>
1237
1238 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1239
c48a845b
MS
12402003-07-30 Michael Snyder <msnyder@redhat.com>
1241
4e7d7511 1242 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1243 * infcall.c (call_function_by_hand): Pass struct_addr to
1244 value_being_returned.
1245 * infcmd.c (print_return_value): Pass zero as struct_addr.
1246 * values.c (value_being_returned): If struct_addr is passed,
1247 use it instead of trying to recover it from the inferior.
1248
f0d8db19
KB
12492003-07-30 Kevin Buettner <kevinb@redhat.com>
1250
1251 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1252 the prologue analyzer won't need to attempt to extract the pc
1253 value from the woefully incomplete dummy frame.
1254 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1255 possible. Disable code which modifies the frame.
1256
e5c113a1
AC
12572003-07-28 Andrew Cagney <cagney@redhat.com>
1258
1259 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1260 to level 2.
1261 (annotate_breakpoints_table, annotate_record): Ditto.
1262 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1263 (annotate_field_name_end, annotate_field_value): Ditto.
1264 (annotate_field_end, annotate_frame_source_begin): Ditto.
1265 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1266 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1267 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1268 (annotate_frame_address_end, annotate_frame_address): Ditto.
1269 (annotate_frame_args, annotate_frame_end): Ditto.
1270 (annotate_frame_where, annotate_arg_begin): Ditto.
1271 (annotate_arg_name_end, annotate_arg_value): Ditto.
1272 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1273 (annotate_function_call, annotate_signal_name): Ditto.
1274 (annotate_signal_string, annotate_signal_name_end): Ditto.
1275 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1276 (annotate_value_begin, annotate_value_history_value): Ditto.
1277 (annotate_value_history_end, annotate_value_end): Ditto.
1278 (annotate_display_begin, annotate_display_number_end): Ditto.
1279 (annotate_display_format, annotate_display_expression): Ditto.
1280 (annotate_display_expression_end, annotate_display_value): Ditto.
1281 (annotate_display_end, annotate_array_section_begin): Ditto.
1282 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1283 (annotate_elt, annotate_array_section_end): Ditto.
1284
bb1db049
AC
12852003-07-28 Andrew Cagney <cagney@redhat.com>
1286
1287 * regcache.c (struct regcache_descr): Update comments on
1288 nr_raw_registers.
1289 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1290 sizeof_raw_register_valid_p.
1291 (init_regcache_descr): Set nr_raw_registers and
1292 sizeof_raw_register_valid_p before calling
1293 init_legacy_regcache_descr.
1294
20e6603c
AC
12952003-07-28 Andrew Cagney <cagney@redhat.com>
1296
1297 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1298 MOD NUM_REGS.
1299
db742940
DJ
13002003-07-28 Daniel Jacobowitz <drow@mvista.com>
1301
1302 * thread.c (info_threads_command): Use get_selected_frame ().
1303 Check that there is at least one non-sentinel frame.
1304
ce7f4371
SC
13052003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1306
1307 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1308 (m68hc11_pop_frame): Remove.
1309 (m68hc11_frame_saved_pc): Remove.
1310 (m68hc11_frame_chain): Remove.
1311 (m68hc11_frame_init_saved_regs): Remove.
1312 (m68hc11_init_extra_frame_info): Remove.
1313 (m68hc11_store_struct_return): Remove.
1314 (m68hc11_saved_pc_after_call): Remove.
1315
1ea653ae
SC
13162003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1317
1318 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1319 frame unwind information.
1320 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1321 and adapted for frame unwinding.
1322 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1323 (m68hc11_unwind_pc): New function.
1324 (m68hc11_frame_unwind_cache): New function to analyze frames.
1325 (m68hc11_frame_this_id): New function to create new frame struct.
1326 (m68hc11_frame_prev_register): New function to unwind a register from
1327 the frame.
1328 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1329 (m68hc11_frame_p): New function for the above.
1330 (m68hc11_frame_base_address): New function to return fp of frame.
1331 (m68hc11_frame_args_address): Update for frame.
1332 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1333 (m68hc11_unwind_sp): New function.
1334 (m68hc11_unwind_dummy_id): New function.
1335 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1336 calls.
1337
c8a7f6ac
SC
13382003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1339
1340 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1341 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1342 when we are beyond the current pc.
1343
3dc990bf
SC
13442003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1345
1346 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1347 from m68hc11_push_arguments.
1348 (m68hc11_push_arguments): Remove.
1349 (m68hc11_push_return_address): Remove.
1350 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1351 handlers; remove deprecated_extra_stack_alignment_needed.
1352
222e5d1d
AC
13532003-07-27 Andrew Cagney <cagney@redhat.com>
1354
1355 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1356 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1357 REAL_PC and not the pointer.
1358 * hppa-hpux-tdep.c: Include frame.h
1359
a7e9a47e
AC
13602003-07-27 Andrew Cagney <cagney@redhat.com>
1361
1362 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1363 GDB_MULTI_ACH_PARTIAL.
1364
7e3dd49e
AC
13652003-07-27 Andrew Cagney <cagney@redhat.com>
1366
1367 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1368 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1369 operator at start and not end of line.
1370 (decode_prologue): Ditto.
1371 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1372 frame_unwind_register_unsigned instead of
1373 frame_unwind_unsigned_register.
1374 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1375 read_register.
1376 (m32r_push_dummy_call): Use register_size instead of
1377 REGISTER_RAW_SIZE.
1378 (m32r_frame_sniffer): Replace m32r_frame_p.
1379 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1380 * m32r-rom.c (report_transfer_performance): Delete extern
1381 declaration.
1382 (m32r_load, m32r_upload_command): Use print_transfer_performance
1383 instead of report_transfer_performance.
1384 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1385 / add_show_from_set.
1386
0880807f
AC
13872003-07-26 Andrew Cagney <cagney@redhat.com>
1388
1389 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1390 store_return_value and extract_struct_value_address.
1391
64ae9269
DJ
13922003-07-26 Daniel Jacobowitz <drow@mvista.com>
1393
1394 PR c++/1267
1395 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1396 NULL, default to the section containing PC.
1397
e286caf2
SC
13982003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1399
1400 * NEWS: Mention "regs" deprecated for m68hc11 too.
1401
1402 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1403 (m68hc11_print_register): New function to print out one register.
1404 (m68hc11_print_registers_info): New function to print registers.
1405 (show_regs): Deprecate and use the above.
1406 (m68hc11_gdbarch_init): Install the print_registers_info.
1407
705b278b
JJ
14082003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1409
1410 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1411 that we have a SIGTRAP before returning non-zero.
1412
63cd4198
EZ
14132003-07-23 Michal Ludvig <mludvig@suse.cz>
1414 Elena Zannoni <ezannoni@redhat.com>
1415
1416 * linespec.c (decode_line_2): Avoid crash if
1417 find_function_start_sal() returns empty record.
1418
6926787d
AS
14192003-07-23 Andreas Schwab <schwab@suse.de>
1420
1421 * ia64-tdep.c (ia64_print_insn): New function.
1422 (ia64_gdbarch_init): Set print_insn to it.
1423 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1424 deprecated_tm_print_insn_info.
1425
708cc1b6
MS
14262003-07-22 Michael Snyder <msnyder@redhat.com>
1427
1428 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1429 handle 8-bit returns (long long).
1430 (h8300h_extract_return_value): Ditto.
1431 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1432
aebd7893
AC
14332003-07-22 Andrew Cagney <cagney@redhat.com>
1434
1435 * gdbarch.c Include "gdb_obstack.h".
1436 (struct gdbarch): Add an "obstack".
1437 (alloc_gdbarch_data): Allocate the gdbarch data using
1438 GDBARCH_OBSTACK_CALLOC.
1439 (free_gdbarch_data): Delete function.
1440 (gdbarch_obstack_zalloc): New function.
1441 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1442 Assert that the architecture is not initialized.
1443 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1444 vector from the obstack.
1445 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1446 architecture obstack.
1447 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1448 (set_gdbarch_data): Assert that the data is not initialized.
1449 (struct gdbarch_data): Delete member "free".
1450 (register_gdbarch_data): Do not initialize "free".
1451 * gdbarch.h, gdbarch.c: Re-generate.
1452
153721e6
AC
14532003-07-22 Andrew Cagney <cagney@redhat.com>
1454
1455 * configure.in (build_warnings): Add -Wformat-nonliteral.
1456 * configure: Re-generate.
1457
c193f044 14582003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1459
1460 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1461
c3228f12
EZ
14622003-07-22 Elena Zannoni <ezannoni@redhat.com>
1463
1464 * findvar.c (read_var_value): Remove case for thread local storage
1465 variables. It is now entirely handled by the dwarf2 location
1466 expression code.
1467 * printcmd.c (address_info): Ditto.
1468 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1469 enumeration value.
1470 (struct symbol): Remove objfile field, which was used by
1471 LOC_THREAD_LOCAL_STATIC only.
1472 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1473 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1474 usage of objfile pointer.
1475 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1476 thread local variables.
1477 Add include of objfiles.h.
1478 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1479 storage variables.
1480 * Makefile.in (dwarf2loc.o): Update dependencies.
1481
aef9bcd2
AC
14822003-07-22 Andrew Cagney <cagney@redhat.com>
1483
1484 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1485 get_frame_base.
1486 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1487 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1488 (struct value): Add opaque declaration.
1489 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1490
d95a8903
AC
14912003-07-21 Andrew Cagney <cagney@redhat.com>
1492
1493 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1494 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1495
4db73d49
SC
14962003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1497
1498 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1499 regcache_cooked_read_unsigned instead of read_register.
1500 (m68hc11_saved_pc_after_call): Likewise.
1501 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1502 instead of write_register.
1503 (m68hc11_register_type): New function.
1504 (m68hc11_register_virtual_type): Remove.
1505 (m68hc11_store_return_value): Convert to use the regcache.
1506 (m68hc11_extract_struct_value_address): Likewise.
1507 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1508 m68hc11_register_type; undeprecate store_return_value and
1509 extract_struct_value_address.
1510
ef2b8fcd
SC
15112003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1512
1513 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1514 and translate to use regcache.
1515 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1516
625b0b97
AC
15172003-07-18 Andrew Cagney <cagney@redhat.com>
1518
1519 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1520 * gdbarch.h, gdbarch.c: Re-generate.
1521 * i386-tdep.c (i386_gdbarch_init): Do not set
1522 DWARF2_BUILD_FRAME_INFO.
1523 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1524 unconditionally.
1525 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1526 DWARF2_BUILD_FRAME_INFO.
1527
22b0d388
AC
15282003-07-18 Andrew Cagney <cagney@redhat.com>
1529
1530 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1531 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1532
1ce5d6dd
AC
15332003-07-18 Andrew Cagney <cagney@redhat.com>
1534
1535 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1536 frame_unwind_address_in_block, instead of frame_pc_unwind.
1537 (dwarf2_frame_cache): Ditto.
1538
e6e5e94c
AC
15392003-07-18 Andrew Cagney <cagney@redhat.com>
1540
1541 * user-regs.h (struct gdbarch): Declare opaque.
1542 * ui-out.h (struct ui_file): Declare opaque.
1543 * dwarf2-frame.h (struct frame_info): Declare opaque.
1544
5483d879
KW
15452003-07-18 Kris Warkentin <kewarken@qnx.com>
1546
1547 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1548 #include "...".
1549 (procfs_meminfo): Change strerror to safe_strerror.
1550 (procfs_can_run): Remove K&R badness.
1551
278a7cf7
MS
15522003-07-17 Michael Snyder <msnyder@redhat.com>
1553
1554 * remote-sim.c: Comment typo fix.
1555
606e3b82
AC
15562003-07-17 Andrew Cagney <cagney@redhat.com>
1557
1558 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1559 configure.
1560 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1561 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1562 GDB_MULTI_ARCH_PARTIAL.
1563
c43af07c
EZ
15642003-07-17 Elena Zannoni <ezannoni@redhat.com>
1565
1566 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1567 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1568 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1569
3b85b0f1
TR
15702003-07-16 Theodore A. Roth <troth@openavr.org>
1571
1572 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1573 found.
1574 (avr_frame_unwind_cache): Don't unwind FP for main.
1575 Update a comment.
1576 Save the computed prev_sp.
1577 (avr_saved_regs_unwinder): Remove function.
1578 (avr_frame_prev_register): Use PC unwind logic from
1579 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1580
336d1bba
AC
15812003-07-16 Andrew Cagney <cagney@redhat.com>
1582
1583 * frame-base.h (frame_base_p_ftype): Delete definition.
1584 (frame_base_append_predicate): Delete declaration.
1585 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1586 (frame_unwind_append_predicate): Delete declaration.
1587 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1588 (append_predicate): Delete parameter "p".
1589 (frame_unwind_append_predicate): Delete function.
1590 (frame_unwind_append_sniffer): Update call to append_predicate.
1591 (frame_unwind_free): Delete function.
1592 (_initialize_frame_unwind): Pass NULL as "free" to
1593 register_gdbarch_data.
1594 (frame_unwind_init): Append the dummy_frame_sniffer.
1595 (frame_unwind_find_by_frame): Simplify.
1596 * frame-base.c (struct frame_base_table): Delete field "p".
1597 (append_predicate): Delete parameter "p".
1598 (frame_base_append_predicate): Delete function.
1599 (frame_base_append_sniffer): Update call to append_predicate.
1600 (frame_base_free): Delete function.
1601 (frame_base_find_by_frame): Simplify.
1602 (_initialize_frame_base): Pass NULL as "free" to
1603 register_gdbarch_data.
1604 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1605 (x86_64_sigtramp_frame_sniffer): Replace
1606 "x86_64_sigtramp_frame_p".
1607 (x86_64_init_abi): Set the frame unwind sniffers.
1608 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1609 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1610 (m68k_gdbarch_init): Set the frame unwind sniffers.
1611 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1612 "i386_sigtramp_frame_p".
1613 (i386_frame_sniffer): Replace "i386_frame_p".
1614 (i386_gdbarch_init): Set the frame unwind sniffers.
1615 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1616 (avr_gdbarch_init): Set the frame unwind sniffers.
1617 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1618 "alpha_sigtramp_frame_p"
1619 (alpha_heuristic_frame_sniffer): Replace
1620 "alpha_heuristic_frame_p".
1621 (alpha_gdbarch_init): Set the frame unwind sniffers.
1622 (alpha_dwarf2_init_abi): Ditto.
1623 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1624 "alpha_debug_frame_p".
1625 (alpha_mdebug_frame_base_sniffer): Replace
1626 "alpha_mdebug_frame_base_p".
1627 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1628 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1629 (d10v_gdbarch_init): Set the frame unwind sniffer.
1630 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1631 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1632 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1633 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1634 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1635 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1636
48db5a3c
CV
16372003-07-16 Michael Snyder <msnyder@redhat.com>
1638
1639 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1640 should go thru sh_dsp_register_sim_regno, else the dsp regs
1641 will not get the right values.
1642
16432003-07-16 Corinna Vinschen <vinschen@redhat.com>
1644
1645 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1646 deprecated_store_floating by call to store_typed_floating.
1647 (sh_sh4_register_convert_to_raw): Substitute call to
1648 deprecated_extract_floating by call to extract_typed_floating.
1649
16502003-07-16 Corinna Vinschen <vinschen@redhat.com>
1651
1652 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1653
16542003-07-16 Corinna Vinschen <vinschen@redhat.com>
1655
1656 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1657 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1658 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1659 as possible.
1660 (do_pseudo_register): Remove.
1661 (sh_push_dummy_code): New function.
1662 (sh64_store_struct_return): Rename from sh_store_struct_return.
1663 Only called for sh64 now.
1664 (sh_extract_struct_value_address): Regcache'ify.
1665 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1666 and accomodate new tasks.
1667 (sh64_push_return_address): Rename from sh_push_return_address.
1668 Only called for sh64 now.
1669 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1670 Regcache'ify.
1671 (sh3e_sh4_extract_return_value): Regcache'ify.
1672 (sh_default_store_return_value): Ditto.
1673 (sh3e_sh4_store_return_value): Ditto.
1674 (sh_default_register_byte): Remove.
1675 (sh_sh4_register_byte): Remove.
1676 (sh_default_register_raw_size): Remove.
1677 (sh_sh4_register_raw_size): Remove.
1678 (sh_register_virtual_size): Remove.
1679 (sh_sh3e_register_virtual_type): Remove.
1680 (sh_sh3e_register_type): New function.
1681 (sh_sh4_register_virtual_type): Remove.
1682 (sh_sh4_register_type): New function.
1683 (sh_default_register_virtual_type): Remove.
1684 (sh_default_register_type): New function.
1685 (do_fv_register_info): Add parameters to accomodate call from
1686 sh_print_registers_info.
1687 (do_dr_register_info): Ditto.
1688 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1689 Add parameters to accomodate call from sh_print_registers_info.
1690 (sh_do_fp_register): Ditto.
1691 (sh64_do_pseudo_register): Call do_dr_register_info,
1692 do_fv_register_info and sh_do_fp_register with default parameters.
1693 (sh_do_register): Add parameters to accomodate call from
1694 sh_print_registers_info.
1695 (sh_print_register): Ditto.
1696 (sh_print_registers_info): Rename from sh_do_registers_info.
1697 Add parameters to be used as gdbarch_print_registers_info
1698 implementation. Accomodate removed do_pseudo_register function
1699 pointer.
1700 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1701 function pointer. Call sh_print_register with default parameters.
1702 (sh64_do_registers_info): Call sh_print_registers_info instead of
1703 sh_do_registers_info.
1704 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1705 detection of deprecated vs. non-deprecated functionality.
1706 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1707 function pointer assignments by direct function calls.
1708
e8a89fe2
AC
17092003-07-15 Andrew Cagney <cagney@redhat.com>
1710
1711 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1712 (frame_register_unwind, create_new_frame): Ditto.
1713 (legacy_get_prev_frame, get_frame_type): Ditto.
1714 (get_frame_base_address): Use frame_base_find_by_frame.
1715 (get_frame_locals_address): Use frame_base_find_by_frame.
1716 (get_frame_args_address): Use frame_base_find_by_frame.
1717 * frame-base.h (frame_base_sniffer_ftype): Declare.
1718 (frame_base_append_sniffer): Declare.
1719 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1720 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1721 (frame_base_append_sniffer): New function.
1722 (frame_base_append_predicate): Add a NULL sniffer.
1723 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1724 (struct frame_base_table): Add "sniffer".
1725 (frame_base_free): Free the "sniffer" table.
1726 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1727 (frame_unwind_append_sniffer): Declare.
1728 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1729 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1730 (struct frame_unwind_table): Add "sniffer", delete "middle".
1731 (append_predicate): Add "sniffer" parameter, append the sniffer.
1732 (frame_unwind_init): Update append_predicate call.
1733 (frame_unwind_append_sniffer): New function.
1734 (frame_unwind_append_predicate): Update append_predicate call.
1735 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1736
0714963c
AC
17372003-07-15 Andrew Cagney <cagney@redhat.com>
1738
1739 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1740 before code inhibiting repeated unwind attempts. Add to
1741 commentary on that test's problems.
1742 * blockframe.c (inside_main_func): Look for "main" in the minimal
1743 symbol table.
1744 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1745 identical.
1746
d9170e22
AC
17472003-07-15 Andrew Cagney <cagney@redhat.com>
1748
1749 * complaints.c (struct explanation): Define.
1750 (struct complaints): Change type of "explanation" to "struct
1751 explanation".
1752 (symfile_explanations): Convert to a "struct explanation" table.
1753 (vcomplaint): Update.
1754
eba29c8c
ML
17552003-07-15 Michal Ludvig <mludvig@suse.cz>
1756
1757 * x86-64-linux-nat.c (regmap): Removed.
1758 (supply_gregset, fill_gregset): Call
1759 x86_64_linux_(fill,supply)_gregset functions.
1760 * x86-64-linux-tdep.c (USER_*): New defines.
1761 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1762 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1763 New functions.
1764 (fetch_core_registers): Ditto.
1765 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1766 * x86-64-linux-tdep.h: New file.
1767 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1768 and core-regset.o.
1769 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1770
68cc0bfb
MK
17712003-07-13 Mark Kettenis <kettenis@gnu.org>
1772
88a115f7
MK
1773 * x86-64-tdep.c (x86_64_store_return_value): Use
1774 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1775
68cc0bfb
MK
1776 * configure.host: Add x86_64-*-freebsd*.
1777 * configure.tgt: Add x86_64-*-freebsd*.
1778 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1779 * amd64fbsd-nat.c: New file.
1780 * amd64fbsd-tdep.c: New file.
1781 * config/i386/nm-fbsd64.h: New file.
1782 * config/i386/fbsd64.mh: New file.
1783 * config/i386/fbsd64.mt: New file.
1784
138e7be5
MK
17852003-07-11 Mark Kettenis <kettenis@gnu.org>
1786
1787 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1788 `sc_regs_offset' and `sc_fpregs_offset'.
1789 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1790 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1791 (alpha_sigtramp_register_address): Rewrite to use new members of
1792 `struct gdbarch_tdep'.
1793 (alpha_gdbarch_init): Initialize new members of struct
1794 gdbarch_tdep'.
1795 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1796 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1797 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1798 (alphafbsd_pc_in_sigtramp): Implement.
1799 (alphafbsd_sigtramp_offset): New function.
1800 (alphafbsd_sigcontext_addr): New function.
1801 (alphafbsd_init_abi): Initialize signal trampoline related members
1802 of `struct gdbarch_tdep'.
1803 (_initialize_alphafbsd_tdep): Add prototype.
1804
95303a68
TR
18052003-07-11 Theodore A. Roth <troth@openavr.org>
1806
ba292e4c
TR
1807 * Makefile.in (install-only): Quote sed expression when generating
1808 transformed_name.
95303a68 1809
6896c0c7
RH
18102003-07-11 Richard Henderson <rth@redhat.com>
1811
1812 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1813 * dwarf2-frame.c: Include complaints.h.
1814 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1815 variable initialization; return NULL on error.
1816 (decode_frame_entry): New.
1817
8edd5d01
AC
18182003-07-11 Andrew Cagney <cagney@redhat.com>
1819
c4a09524
AC
1820 * frame.h (frame_address_in_block): Delete declaration.
1821 * blockframe.c (frame_address_in_block): Delete function.
1822 (get_frame_block): Use get_frame_address_in_block.
1823 (block_innermost_frame): Ditto.
1824 * stack.c (print_frame, backtrace_command_1): Ditto.
1825
8edd5d01
AC
1826 * frame.h (get_frame_address_in_block): Declare.
1827 (frame_unwind_address_in_block): Declare.
1828 * frame.c (frame_unwind_address_in_block): New function.
1829 (get_frame_address_in_block): New function.
1830
f7968451
AC
18312003-07-10 Andrew Cagney <cagney@redhat.com>
1832
1833 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1834 pre-default. Note: re-generate has no effect.
1835
ae99b398
AC
18362003-07-10 Andrew Cagney <cagney@redhat.com>
1837
1838 * gdbarch.sh: When a variable, but not a function, compare against
1839 0. Fix problem in previous patch.
1840 * gdbarch.c: Re-generate.
1841
956ac328
AC
18422003-07-10 Andrew Cagney <cagney@redhat.com>
1843
1844 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1845 functions against NULL, not 0.
1846 * gdbarch.c: Re-generate.
1847
287c3240
FF
18482003-07-10 Fred Fish <fnf@ninemoons.com>
1849
1850 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1851 null string instead of a null pointer.
1852 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1853
32f63c4b
MS
18542003-07-09 Michael Snyder <msnyder@redhat.com>
1855
1856 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1857
402ecd56
MK
18582003-07-09 Mark Kettenis <kettenis@gnu.org>
1859
1860 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1861 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1862 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1863 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1864 * x86-64-tdep.c: ... from here.
1865
c481dac7
AS
18662003-07-09 Andreas Schwab <schwab@suse.de>
1867
1868 * m68k-tdep.h (enum struct_return): Define.
1869 (struct gdbarch_tdep): Add struct_return.
1870 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1871 bytes are padded to the right, not to the left. Pass struct value
1872 address in register %a1, not on stack.
1873 (m68k_use_struct_convention): New function.
1874 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1875 struct_return in tdep to pcc_struct_return.
1876 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1877 reg_struct_return.
1878
64176fa3
JB
18792003-07-09 Joel Brobecker <brobecker@gnat.com>
1880
1881 * somread.c (som_symfile_offsets): Fix compilation error.
1882
96a4ee76
AC
18832003-07-09 Andrew Cagney <cagney@redhat.com>
1884
1885 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1886 Add comments about the checks.
1887
1517c6d1
AC
18882003-07-08 Andrew Cagney <cagney@redhat.com>
1889
1890 * Makefile.in: Make dependency section headers consistent.
1891 (config_h): Move to $BUILD headers section.
1892 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1893 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1894 (ada-exp.tab.c): Move to YACC/LEX section.
1895 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1896 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1897
dc5dd1eb
KW
18982003-07-08 Kris Warkentin <kewarken@qnx.com>
1899
1900 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
1901 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1902 of strerror with safe_strerror, use ISO C function definitions,
1903 and replace instances of sprintf with snprintf.
dc5dd1eb 1904
612dde91
AC
19052003-07-07 Andrew Cagney <cagney@redhat.com>
1906
1907 * frame.c (get_prev_frame): Enable check for identical frames.
1908 Update comments. Update error messages.
1909
492c11d3
JB
19102003-07-07 Joel Brobecker <brobecker@gnat.com>
1911
1912 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1913
376a5a49
JB
19142003-07-07 Joel Brobecker <brobecker@gnat.com>
1915
1916 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1917 sort_symtab_syms, no longer necessary.
1918
22b4a9ad
JB
19192003-07-07 Joel Brobecker <brobecker@gnat.com>
1920
1921 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1922
5bbcb741
JB
19232003-07-07 Joel Brobecker <brobecker@gnat.com>
1924
1925 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1926 (mips_register_byte): Likewise.
1927
c139e7d9
DJ
19282003-07-07 Daniel Jacobowitz <drow@mvista.com>
1929
1930 * Makefile.in (sparc_tdep_h): New.
1931 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1932 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1933 * sparc-linux-nat.c: Include "sparc-tdep.h".
1934 * sparc-nat.c: Likewise.
1935 * sparc-tdep.c: Likewise.
1936 * sparc64nbsd-nat.c: Likewise.
1937 * sparcnbsd-nat.c: Likewise.
1938 * sparcnbsd-tdep.c: Likewise.
1939 * sparc-tdep.h: New file.
1940 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1941 and sparc_npc_regnum.
1942
fd8f87c5
DJ
19432003-07-07 Daniel Jacobowitz <drow@mvista.com>
1944
1945 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1946 (mips_linux_cannot_store_register): List supported instead of
1947 unsupported registers.
1948
13adf674
DJ
19492003-07-07 Daniel Jacobowitz <drow@mvista.com>
1950
1951 * disasm.c (dump_insns): Separate instructions from addresses.
1952
8de307e0
AS
19532003-07-07 Andreas Schwab <schwab@suse.de>
1954
1955 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1956 dependencies.
1957 * m68k-tdep.c (NUM_FREGS): Delete.
1958 (SIG_PC_FP_OFFSET): Delete.
1959 (TARGET_M68K): Delete.
1960 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1961 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1962 P_MOVEL_SP, P_MOVEML_SP): Define.
1963 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1964 P_TRAP): Delete.
1965 (m68k_register_raw_size): Delete.
1966 (m68k_register_virtual_size): Delete.
1967 (m68k_register_type): Renamed from m68k_register_virtual_type and
1968 add gdbarch argument.
1969 (m68k_store_struct_return): Delete.
1970 (m68k_deprecated_extract_return_value): Delete.
1971 (m68k_deprecated_extract_struct_value_address): Delete.
1972 (m68k_frame_chain): Delete.
1973 (m68k_frame_saved_pc): Delete.
1974 (m68k_fix_call_dummy): Delete.
1975 (m68k_push_dummy_frame): Delete.
1976 (m68k_pop_frame): Delete.
1977 (m68k_extract_return_value): New function.
1978 (m68k_store_return_value): Rewrite using regcache.
1979 (m68k_extract_struct_value_address): Rewrite using regcache.
1980 (m68k_push_dummy_call): New function.
1981 (struct m68k_frame_cache): Define.
1982 (m68k_alloc_frame_cache): New function.
1983 (m68k_analyze_frame_setup): New function.
1984 (m68k_analyze_register_saves): New function.
1985 (m68k_analyze_prologue): New function.
1986 (m68k_skip_prologue): Rewrite using above functions.
1987 (m68k_unwind_pc): New function.
1988 (m68k_frame_cache): New function.
1989 (m68k_frame_this_id): New function.
1990 (m68k_frame_prev_register): New function.
1991 (m68k_frame_unwind): New variable.
1992 (m68k_frame_p): New function.
1993 (m68k_sigtramp_frame_cache): New function.
1994 (m68k_sigtramp_frame_this_id): New function.
1995 (m68k_sigtramp_frame_prev_register): New function.
1996 (m68k_sigtramp_frame_unwind): New variable.
1997 (m68k_sigtramp_frame_p): New function.
1998 (m68k_frame_base_address): New function.
1999 (m68k_frame_base): New function.
2000 (m68k_unwind_dummy_id): New function.
2001 (fill_gregset): Use regcache_collect.
2002 (fill_fpregset): Likewise.
2003 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2004 defined.
2005 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2006 deprecated_init_frame_pc, deprecated_store_struct_return,
2007 deprecated_extract_return_value, deprecated_store_return_value,
2008 deprecated_frame_chain, deprecated_frame_saved_pc,
2009 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2010 deprecated_register_virtual_size,
2011 deprecated_max_register_raw_size,
2012 deprecated_max_register_virtual_size,
2013 deprecated_register_virtual_type, deprecated_register_size,
2014 deprecated_register_byte, deprecated_register_bytes,
2015 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2016 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2017 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2018 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2019 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2020 deprecated_push_dummy_frame, deprecated_pop_frame,
2021 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2022 only if SYSCALL_TRAP is defined. Set extract_return_value,
2023 store_return_value, extract_struct_value_address, register_type,
2024 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2025 predicates.
2026 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2027 M68K_MAX_REGISTER_SIZE): Define.
2028 (struct m68k_sigtramp_info): Define.
2029 (struct gdbarch_tdep): Add get_sigtramp_info.
2030 * m68klinux-nat.c (fetch_register): Use register_size instead of
2031 REGISTER_RAW_SIZE. Don't put assignment in if.
2032 (store_register): Likewise.
2033 (fetch_inferior_registers): Likewise.
2034 (store_inferior_registers): Likewise.
2035 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2036 (m68k_linux_frame_saved_pc): Delete.
2037 (m68k_linux_sigcontext_reg_offset,
2038 m68k_linux_ucontext_reg_offset): Define.
2039 (m68k_linux_get_sigtramp_info): New function.
2040 (m68k_linux_extract_return_value): Rewrite using regcache.
2041 (m68k_linux_store_return_value): Likewise.
2042 (m68k_linux_extract_struct_value_address): Likewise.
2043 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2044 Don't set deprecated_frame_saved_pc,
2045 deprecated_extract_return_value, deprecated_store_return_value,
2046 deprecated_extract_struct_value_address. Set
2047 extract_return_value, store_return_value,
2048 extract_struct_value_address.
2049
eb8bc282
AC
20502003-07-07 Andrew Cagney <cagney@redhat.com>
2051
2052 * expprint.c: Include "user-regs.h" instead of "frame.h".
2053 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2054 frame_map_regnum_to_name.
2055 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2056 (frame_map_name_to_regnum): Simplify, call
2057 user_reg_map_name_to_regnum.
2058 (frame_map_regnum_to_name): Simplify, call
2059 user_reg_map_regnum_to_name.
2060 (frame_register_unwind): Update.
2061 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2062 (_initialize_frame_reg): Call user_reg_add_builtin.
2063 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2064 (value_of_register): Use value_of_user_reg.
2065 * eval.c (evaluate_subexp_standard): Update.
2066 * parse.c (write_dollar_variable): Update.
2067 * d10v-tdep.c (d10v_print_registers_info): Update.
2068 * infcmd.c (registers_info): Update.
2069 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2070 (builtin_regs_h): Delete macro.
2071 (user_regs_h): Define.
2072 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2073 (builtin-regs.o): Delete target.
2074 (user-regs.o): Specify dependencies.
2075 (expprint.o): Update dependencies.
2076 (findvar.o): Update dependencies.
2077 (frame.o): Update dependencies.
2078 (std-regs.o): Update dependencies.
2079
9f476a01
CF
20802003-07-06 Christopher Faylor <cgf@redhat.com>
2081
2082 * win32-nat.c (solib_symbols_add): Use one variable for all section
2083 address stuff. Pass variable rather than address of variable to
2084 safe_symbol_file_add.
2085
a731b831
AS
20862003-07-06 Andreas Schwab <schwab@suse.de>
2087
2088 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2089
9f83329d
JB
20902003-07-04 Joel Brobecker <brobecker@gnat.com>
2091
2092 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2093
27e28cc5
KW
20942003-07-04 Kris Warkentin <kewarken@qnx.com>
2095
2096 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2097
20982003-07-04 Kris Warkentin <kewarken@qnx.com>
2099
2100 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2101 * config/i386/nto.mh: New file.
2102 * config/i386/nm-nto.h: New file.
2103 * configure.host: Add i[3456]86-*-nto*.
2104
100f2e98
JB
21052003-07-03 Joel Brobecker <brobecker@gnat.com>
2106
2107 * remote-vx.c (vx_add_symbols): Fix compilation error.
2108
e23457df
AC
21092003-07-03 Andrew Cagney <cagney@redhat.com>
2110
2111 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2112 * gdbarch.h, gdbarch.c: Re-generate.
2113 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2114 (legacy_register_name): Declare.
2115 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2116 (REGISTER_NAME): Define.
2117 * sparc-tdep.c (legacy_register_name): New function.
2118 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2119 (REGISTER_NAME): Define.
2120 (hppa64_register_name): Declare.
2121 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2122 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2123 (hppa64_register_name): New function.
2124 (hppa_register_name): New function.
2125 * arch-utils.c (legacy_register_name): Delete.
2126 * arch-utils.h (legacy_register_name): Delete.
2127
38caaeec
DJ
21282003-07-03 Daniel Jacobowitz <drow@mvista.com>
2129
2130 * cli/cli-interp.c (cli_interpreter_resume): Update the
2131 cli_uiout's stream to gdb_stdout.
2132
dadd712e
AC
21332003-07-03 Andrew Cagney <cagney@redhat.com>
2134
2135 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2136 predicate.
2137 * gdbarch.h, gdbarch.c: Re-generate.
2138 * regcache.c (init_regcache_descr): Use legacy code when either
2139 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2140
c7f1390e
DJ
21412003-07-02 Daniel Jacobowitz <drow@mvista.com>
2142
2143 * NEWS: Move "set logging" entry into GDB 6.0 section.
2144
4bc8c588
JB
21452003-07-02 Jim Blandy <jimb@redhat.com>
2146
a9dd42f1
JB
2147 * s390-tdep.c (struct frame_extra_info): new member:
2148 'stack_bought_valid'.
2149 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2150 initialize fextra_info->stack_bought.
2151 (s390_frameless_function_invocation): Don't trust the value of
2152 fextra_info_ptr->stack_bought unless
2153 fextra_info->stack_bought_valid is set.
2154
4bc8c588
JB
2155 New S390 prologue analyzer.
2156 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2157 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2158 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2159 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2160 compute_x_addr, s390_on_stack, s390_store,
2161 s390_get_signal_frame_info): New functions.
2162 (S390_NUM_SPILL_SLOTS): New macro.
2163 (s390_get_frame_info): Rewritten.
2164 (is_arg_reg): Deleted.
2165
2166 Break out the decoding of S/390 instructions into separate
2167 functions, to make it more legible, and easier to check
2168 against the spec.
2169 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2170 is_rx, is_rxe): New functions.
2171 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2172 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2173 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2174 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2175 enums for opcode values. (Is this an improvement?)
2176
fd13a04a
AC
21772003-07-02 Andrew Cagney <cagney@redhat.com>
2178
2179 * i386-tdep.c: Revert change committed as part of trad-frame code
2180 below.
2181
3f8091c1
DJ
21822003-07-02 Daniel Jacobowitz <drow@mvista.com>
2183
2184 * breakpoint.c (insert_catchpoint): Make static.
2185
8dd5115e
AS
21862003-07-02 Andreas Schwab <schwab@suse.de>
2187
2188 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2189 former ia64_push_arguments and ia64_push_return_address, and use
2190 regcache functions instead of read/write_register.
2191 (ia64_gdbarch_init): Set push_dummy_call instead of
2192 deprecated_push_arguments and deprecated_push_return_address.
2193
a2229c23
AJ
21942003-07-01 Andreas Jaeger <aj@suse.de>
2195
2196 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2197 before the call.
2198 Set %rax only to number of SSE registers used.
2199
3b3850e8
AC
22002003-07-01 Andrew Cagney <cagney@redhat.com>
2201
2202 * trad-frame.h: Update comments, a -1 .addr is reserved.
2203 (trad_frame_value_p, trad_frame_addr_p): Declare.
2204 (trad_frame_reg_p): Declare.
2205 (trad_frame_set_value): Rename trad_frame_register_value.
2206 (trad_frame_set_unknown): Declare.
2207 * trad-frame.c (trad_frame_realreg_p): New function.
2208 (trad_frame_addr_p, trad_frame_value_p): New function.
2209 (trad_frame_set_unknown): New function.
2210 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2211 (trad_frame_prev_register): Use trad_frame_realreg_p,
2212 trad_frame_addr_p and trad_frame_value_p.
2213 (trad_frame_set_value): Rename trad_frame_register_value.
2214 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2215 and trad_frame_set_value.
a2229c23 2216
4d819d0e
JB
22172003-06-30 Jim Blandy <jimb@redhat.com>
2218
2219 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2220 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2221 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2222 for 16 registers, and then 32 more bytes.
2223 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2224 New macros.
2225 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2226 Move up in the file, since it's now used by is_simple_arg.
2227 (is_simple_arg): Don't assume registers are four bytes long.
2228 Exclude all double arguments. Extended floats are not simple
2229 args.
2230 (is_power_of_two): New function.
2231 (pass_by_copy_ref): Call is_power_of_two, and check that the
2232 length fits in a register, rather than listing all the acceptable
2233 sizes. Extended floats are not passed by reference.
2234 (s390_push_arguments): Don't assume registers are four bytes long.
2235 Reserve an argument register to point to the buffer for structures
2236 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2237 S390_STACK_FRAME_OVERHEAD.
2238
1ad828f1
AS
22392003-06-30 Andreas Schwab <schwab@suse.de>
2240
2241 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2242 format error message.
2243
39b00981
JB
22442003-06-30 Joel Brobecker <brobecker@gnat.com>
2245
2246 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2247
b2a7f303
DC
22482003-06-30 David Carlton <carlton@kealia.com>
2249
2250 Band-aid for PR c++/1245.
2251 * Makefile.in (cp-support.o): Depend on complaints_h.
2252 * cp-support.c: Include complaints.h. Add declaration for
2253 find_last_component.
2254 (cp_find_first_component): Separate code into
2255 cp_find_first_component_aux.
2256 (cp_find_first_component_aux): Call demangled_name_complaint.
2257 (demangled_name_complaint): New.
2258
a257b5bb
AC
22592003-06-30 Andrew Cagney <cagney@redhat.com>
2260
2261 * remote.c (remote_write_bytes): Explicitly compute and then use
2262 the payload size. Update comments to reflect. Fixes problem of
2263 GDB not sending small packets as found by Fred Fish.
2264
0a2cfde4
AC
22652003-06-30 Andrew Cagney <cagney@redhat.com>
2266
2267 * remote.c (remote_async_wait): Fix -Wformat problem.
2268
3fcb8548
AC
22692003-06-29 Andrew Cagney <cagney@redhat.com>
2270
2271 * remote.c (remote_wait): Call error, and not warning, when the
2272 packet is corrupt.
2273 (remote_async_wait): Ditto.
2274
9f9970a3
DJ
22752003-06-29 Daniel Jacobowitz <drow@mvista.com>
2276
2277 * sparc-tdep.c (sparc_y_regnum): Make external again.
2278
83a8ccca
DJ
22792003-06-29 Daniel Jacobowitz <drow@mvista.com>
2280
2281 * cli/cli-logging.c (pop_output_files): Add void to function
2282 definition.
2283
d2cf594a
AC
22842003-06-29 Andrew Cagney <cagney@redhat.com>
2285
2286 * frame.c (frame_register_unwind): Use unsigned char when dumping
2287 the buffer contents.
2288
0fac0b41
DJ
22892003-06-28 Daniel Jacobowitz <drow@mvista.com>
2290
2291 * cli/cli-logging.c: New file.
2292 * cli-out.c (struct ui_out_data): Add original_stream.
2293 (cli_redirect): New function.
2294 (cli_ui_out_impl): Add cli_redirect.
2295 (cli_out_new): Initialize original_stream.
2296 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2297 (uo_redirect, ui_out_redirect): New.
2298 * ui-out.h (struct ui_out_impl): Add redirect member.
2299 (redirect_ftype): New.
2300 (ui_out_redirect): Add prototype.
2301 * Makefile.in: Add rules for cli-logging.c.
2302 * NEWS: Mention "set logging".
2303
88a07d7c
EZ
23042003-06-27 Elena Zannoni <ezannoni@redhat.com>
2305
2306 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2307
4eb58876
AC
23082003-06-27 Andrew Cagney <cagney@redhat.com>
2309
2310 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2311 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2312 * avr-tdep.c (avr_call_dummy_address): Delete function.
2313 (avr_gdbarch_init): Do not set call_dummy_address.
2314
1549f619
EZ
23152003-06-27 Elena Zannoni <ezannoni@redhat.com>
2316
2317 * symfile.c (syms_from_objfile): Move variables to inner block.
2318 Move the checks for the non-mainline case a bit earlier to avoid
2319 doing some useless computations.
2320
3cb3398d
EZ
23212003-06-27 Elena Zannoni <ezannoni@redhat.com>
2322
2323 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2324
3799ccc6
EZ
23252003-06-26 Elena Zannoni <ezannoni@redhat.com>
2326
2327 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2328 sections.
2329
ce1f6491
MC
23302003-06-26 Michael Chastain <mec@shout.net>
2331
2332 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2333 gdb/testsuite/gdb.c++/pr-1210.exp.
2334
d958dfd0
AC
23352003-06-26 Andrew Cagney <cagney@redhat.com>
2336
2337 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2338 altivec_expression.h and altivec_registers.h.
2339
d31431ed
AC
23402003-06-26 Andrew Cagney <cagney@redhat.com>
2341
2342 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2343 info->mach when MIPS16. Patch suggested by Fred Fish.
2344
714b1282
AC
23452003-06-26 Andrew Cagney <cagney@redhat.com>
2346
2347 * utils.c (internal_vproblem): Print the problem to a reason
2348 buffer and then pass to query. Make the msg variable more local.
2349
42efa47a
AC
23502003-06-26 Andrew Cagney <cagney@redhat.com>
2351
2352 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2353 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2354 * gdbarch.h, gdbarch.c: Re-generate.
2355 * frame-base.c (default_frame_args_address): Update. Use
2356 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2357 not available.
2358 (default_frame_locals_address): Ditto for
2359 DEPRECATED_FRAME_LOCALS_ADDRESS.
2360 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2361 (vax_frame_num_args): Update.
2362 (vax_gdbarch_init): Update.
2363 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2364 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2365 * mcore-tdep.c (mcore_gdbarch_init): Update.
2366 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2367 * ia64-tdep.c (ia64_gdbarch_init): Update.
2368 * symtab.h (address_class): Update comments.
2369 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2370 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2371 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2372 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2373 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2374 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2375 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2376 * alpha-mdebug-tdep.c: Update.
2377 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2378
8ffd9b1b
AJ
23792003-06-26 Andreas Jaeger <aj@suse.de>
2380
2381 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2382 of SSE registers so that varargs functions work. Rework handling
2383 of passing arguments on the stack.
2384 (x86_64_store_return_value): Return double and float values in SSE
2385 register.
2386
e8ac10a6
MC
23872003-06-24 Michael Chastain <mec@shout.net>
2388
2389 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2390 the "constructor breakpoints ignored" bug.
2391
986af8e6
DC
23922003-06-25 David Carlton <carlton@kealia.com>
2393
2394 * MAINTAINERS: Update e-mail address.
2395
d64558a5
JB
23962003-06-24 Jim Blandy <jimb@redhat.com>
2397
e538d2d7
JB
2398 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2399
02631ec0
JB
2400 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2401 function.
2402 (ppc_linux_init_abi): Register it as the
2403 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2404
e716d87a
JB
2405 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2406 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2407 method.
2408
d64558a5
JB
2409 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2410 (ppc64_standard_linkage_target): Use it.
2411
449a5da4
AC
24122003-06-23 Andrew Cagney <cagney@redhat.com>
2413
2414 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2415 for 0 "int0" and 4 "int32" sized registers.
2416 * gdbtypes.c (builtin_type_int0): Define.
2417 (build_gdbtypes): Initialize builtin_type_int0.
2418 * gdbtypes.h (builtin_type_int0): Declare.
2419
b2a02dda
SC
24202003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2421
2422 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2423 as characters are unsigned.
2424
fba3138e
DJ
24252003-06-22 Daniel Jacobowitz <drow@mvista.com>
2426
2427 PR gdb/1179
2428 * dwarfread.c (struct_type): Skip static fields without crashing.
2429
f6c8180b
AC
24302003-06-22 Andrew Cagney <cagney@redhat.com>
2431
2432 GDB 6.0 branch created.
f2c06f52
AC
2433 * README: Update.
2434 * PROBLEMS: Update. Empty.
2435 * NEWS: Update.
f6c8180b 2436
ae822768
DJ
24372003-06-22 Daniel Jacobowitz <drow@mvista.com>
2438
2439 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2440 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2441
261de166
AC
24422003-06-22 Andrew Cagney <cagney@redhat.com>
2443
2444 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2445 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2446 Velikov.
2447
30e94205
DJ
24482003-06-22 Daniel Jacobowitz <drow@mvista.com>
2449
2450 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2451 compilers.
2452
9e14d721
DJ
24532003-06-21 Daniel Jacobowitz <drow@mvista.com>
2454
2455 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2456 argument of val_print.
2457 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2458 to the address argument of baseclass_offset or target_read_memory.
2459 Do add it to the argument of cp_print_value_fields.
2460
a4b8ebc8
AC
24612003-06-21 Andrew Cagney <cagney@redhat.com>
2462
2463 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2464 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2465 instead of 0..NUM_REGS.
2466 (mips_register_reggroup_p): New function.
2467 (mips_pseudo_register_write): New function.
2468 (mips_pseudo_register_read): New function.
2469 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2470 based on the register's type.
2471 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2472 cooked.
2473 (mips_get_saved_register): Simplify. Assert that REGNO is a
2474 pseudo / cooked.
2475 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2476 (mips_register_type): Replace mips_register_virtual_type. Map
2477 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2478 when available.
2479 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2480 that the register is cooked / virtual.
2481 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2482 Only get the extra info when needed.
2483 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2484 (mips32_heuristic_proc_desc): Fetch the cooked register.
2485 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2486 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2487 (mips_print_register): Use gdbarch_register_type, instead of
2488 REGISTER_VIRTUAL_TYPE.
2489 (print_gp_register_row): Use gdbarch_register_type, instead of
2490 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2491 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2492 Print the pseudo / cooked registers.
2493 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2494 Print the pseudo / cooked registers.
2495 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2496 REG_NUM is pseudo / cooked.
2497 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2498 (mips_n32n64_xfer_return_value): Ditto.
2499 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2500 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2501 (mips_register_sim_regno): New function.
2502 (mips_gdbarch_init): Set deprecated_register_byte,
2503 register_group_p, pseudo_register_write, pseudo_register_read,
2504 register_sim_regno, and num_pseudo_regs. Set register_type,
2505 instead of register_virtual_type.
2506 * Makefile.in (mips-tdep.o): Update dependencies.
2507 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2508 REGISTER_VIRTUAL_TYPE.
2509 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2510 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2511 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2512 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2513 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2514
325ed089
DJ
25152003-06-21 Daniel Jacobowitz <drow@mvista.com>
2516
2517 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2518 * cli/cli-cmds.c: Include "gdb_vfork.h".
2519 (shell_escape): Use vfork.
2520
f0e7d0e8
AC
25212003-06-21 Andrew Cagney <cagney@redhat.com>
2522
c57bb9fa
AC
2523 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2524 32 bit floating-point register saves.
2525
6e51443a
AC
2526 * frame.h (deprecated_unwind_get_saved_register): Delete.
2527 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2528 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2529 and deprecated_get_next_frame_hack instead of
2530 deprecated_unwind_get_saved_register.
2531
ed183c7c
AC
2532 * mips-tdep.c (mips_dump_tdep): Do not print
2533 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2534
f0e7d0e8
AC
2535 * frame.c (get_frame_register): New function.
2536 (frame_unwind_register_signed): New function.
2537 (get_frame_register_signed): New function.
2538 (frame_unwind_register_unsigned): New function.
2539 (get_frame_register_unsigned): New function.
2540 * frame.h: Add comments on naming schema.
2541 (get_frame_register, frame_unwind_register_signed): Declare.
2542 (get_frame_register_signed, get_frame_register_signed): Declare.
2543 (frame_unwind_register_unsigned): Declare.
2544 (get_frame_register_unsigned): Declare.
2545
2224d941
TR
25462003-06-20 Theodore A. Roth <troth@openavr.org>
2547
2548 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2549
8619218d
TR
25502003-06-20 Theodore A. Roth <troth@openavr.org>
2551
2552 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2553 (avr_read_sp): Ditto.
2554
0b1b50c0
DJ
25552003-06-20 Daniel Jacobowitz <drow@mvista.com>
2556
2557 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2558 * config/arm/nm-linux.h: Likewise.
2559 * config/arm/tm-linux.h: Likewise.
2560 * config/ia64/nm-linux.h: Likewise.
2561 * config/ia64/tm-ia64.h: Likewise.
2562 * config/s390/tm-linux.h: Likewise.
2563 * config/s390/tm-s390.h: Likewise.
2564 * s390-nat.c: Likewise.
2565 * s390-tdep.c: Likewise.
2566
2567 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2568 * config/ia64/linux.mt: Likewise.
2569 * config/m68k/linux.mh: Likewise.
2570 * config/mips/linux.mt: Likewise.
2571 * config/powerpc/linux.mh: Likewise.
2572 * config/sh/linux.mt: Likewise.
2573
c8c18e65
KW
25742003-06-19 Kris Warkentin <kewarken@qnx.com>
2575
2576 * solib.c (solib_open): Change tests for whether to search
2577 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2578 comments.
2579
dcccef2e
TR
25802003-06-19 Theodore A. Roth <troth@openavr.org>
2581
2582 * avr-tdep.c (avr_frame_address): Delete function.
2583 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2584 set_gdbarch_frame_args_address.
2585
5861a190
AC
25862003-06-19 Andrew Cagney <cagney@redhat.com>
2587
2588 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2589 (REGISTER_CONVERT_FROM_TYPE): Delete.
2590 (mips_register_convert_to_type): Delete declaration.
2591 (mips_register_convert_from_type): Delete declaration.
2592 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2593 kernel/.
2594
0274a8ce
MS
25952003-06-19 Michael Snyder <msnyder@redhat.com>
2596
2597 * linux-nat.h: New file.
2598 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2599 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2600 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2601 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2602 (linux_make_note_section): Iterate over lwps instead of threads.
2603 (linux_do_thread_registers): Use lwp instead of merged pid.
2604 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2605 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2606 Add dependency on linux_nat_h.
2607
adf5f719
TR
26082003-06-19 Theodore A. Roth <troth@openavr.org>
2609
2610 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2611
6766a268
DJ
26122003-06-19 Daniel Jacobowitz <drow@mvista.com>
2613
2614 * varobj.c (get_type, get_target_type): Use check_typedef.
2615
1171114a
DJ
26162003-06-19 Daniel Jacobowitz <drow@mvista.com>
2617
2618 * breakpoint.c (insert_catchpoint): Call internal_error.
2619
adcf68a2
TR
26202003-06-19 Theodore A. Roth <troth@openavr.org>
2621
2622 * avr-tdep.c (avr_push_dummy_code): Delete function.
2623 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2624
ea67f13b
DJ
26252003-06-19 Daniel Jacobowitz <drow@mvista.com>
2626
2627 * arch-utils.c (default_prepare_to_proceed): Remove.
2628 (generic_prepare_to_proceed): Remove.
2629 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2630 (generic_prepare_to_proceed): Remove prototype.
2631 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2632 * gdbarch.c: Regenerate.
2633 * gdbarch.h: Regenerate.
2634 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2635 * hppah-nat.c (hppa_switched_threads): Remove.
2636 * infrun.c (prepare_to_proceed): New static function, copied from
2637 generic_prepare_to_proceed. Remove select_it argument.
2638 (proceed): Call prepare_to_proceed.
2639 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2640 variables.
2641 (ptrace_wait): Don't set the removed variables.
2642 (hppa_switched_threads): Remove.
2643 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2644 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2645 (lin_lwp_prepare_to_proceed): Remove prototype.
2646 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2647 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2648
4add8633
TR
26492003-06-18 Theodore A. Roth <troth@openavr.org>
2650
2651 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2652 trad-frame.h.
2653 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2654 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2655 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2656 (AVR_PROLOGUE_*): Enumerate prologue types.
2657 (struct frame_extra_info): Remove.
2658 (struct avr_unwind_cache): Define.
2659 (avr_write_sp): Delete function.
2660 (avr_read_fp): Ditto.
2661 (avr_init_extra_frame_info): Ditto.
2662 (avr_pop_frame): Ditto.
2663 (avr_frame_saved_pc): Ditto.
2664 (avr_saved_pc_after_call): Ditto.
2665 (avr_push_return_address): Ditto.
2666 (avr_frame_chain): Ditto.
2667 (avr_store_struct_return): Ditto.
2668 (avr_push_arguments): Ditto.
2669 (avr_scan_prologue): Update comments. Changed to set up the info for
2670 cache unwinding. Now returns end of prologue PC.
2671 (avr_skip_prologue): Better handling of functions lacking a prologue
2672 by using avr_scan_prologue.
2673 (avr_scan_arg_moves): New function.
2674 (avr_saved_regs_unwinder): Ditto.
2675 (avr_frame_unwind_cache): Ditto.
2676 (avr_unwind_pc): Ditto.
2677 (avr_frame_this_id): Ditto.
2678 (avr_frame_prev_register): Ditto.
2679 (avr_frame_p): Ditto.
2680 (avr_frame_base_address ): Ditto.
2681 (avr_unwind_dummy_id): Ditto.
2682 (avr_push_dummy_code): Ditto.
2683 (push_stack_item): Ditto.
2684 (pop_stack_item): Ditto.
2685 (avr_push_dummy_call): Ditto.
2686 (struct stack_item): Define.
2687 (avr_frame_unwind): Declare structure.
2688 (avr_frame_base): Ditto.
2689 (avr_gdbarch_init): Remove calls to
2690 set_gdbarch_deprecated_init_frame_pc,
2691 set_gdbarch_deprecated_target_read_fp,
2692 set_gdbarch_deprecated_dummy_write_sp,
2693 set_gdbarch_deprecated_fp_regnum,
2694 set_gdbarch_deprecated_push_arguments,
2695 set_gdbarch_deprecated_push_return_address,
2696 set_gdbarch_deprecated_pop_frame,
2697 set_gdbarch_deprecated_store_struct_return,
2698 set_gdbarch_deprecated_frame_init_saved_regs,
2699 set_gdbarch_deprecated_init_extra_frame_info,
2700 set_gdbarch_deprecated_frame_chain,
2701 set_gdbarch_deprecated_frame_saved_pc,
2702 set_gdbarch_deprecated_saved_pc_after_call.
2703 Add calls to set_gdbarch_push_dummy_call,
2704 set_gdbarch_push_dummy_code,
2705 frame_unwind_append_predicate,
2706 frame_base_set_default,
2707 set_gdbarch_unwind_dummy_id,
2708 set_gdbarch_unwind_pc.
2709 Wrap a long line.
2710
7be04a68
MS
27112003-06-18 Corinna Vinschen <vinschen@redhat.com>
2712
2713 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2714 registers for H8/300S.
2715 (h8300_print_registers_info): Ditto.
8ffd9b1b 2716 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2717
ae087d01
DJ
27182003-06-18 Daniel Jacobowitz <drow@mvista.com>
2719
2720 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2721 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2722 (lin_lwp_wait): Likewise. Update comments.
2723 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2724 (pull_pid_from_list, linux_record_stopped_pid): New.
2725
07d8f827
SC
27262003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2727
2728 * ada-lang.c (scan_discrim_bound): Name first argument.
2729 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2730 declared by ALL_BLOCK_SYMBOLS.
2731
7cb47b14
SC
27322003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2733
2734 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2735 ("regcache.h"): Include it.
2736 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2737
6ad8ae5c
DJ
27382003-06-17 Daniel Jacobowitz <drow@mvista.com>
2739
2740 * NEWS: Mention gdbserver detach change and "disconnect" command.
2741 * infcmd.c (disconnect_command): New function.
2742 (_initialize_infcmd): Add ``disconnect'' command.
2743 * remote.c (remote_async_detach): Delete.
2744 (remote_detach): Merge remote_async_detach.
2745 (remote_disconnect): New.
2746 (init_remote_ops): Set to_disconnect.
2747 (init_remote_cisco_ops): Likewise.
2748 (init_remote_async_ops): Likewise. Use remote_detach.
2749 * target.c (cleanup_target): Default to_disconnect.
2750 (update_current_target): Inherit to_disconnect.
2751 (target_disconnect, debug_to_disconnect): New functions.
2752 (setup_target_debug): Set to_disconnect.
2753 * target.h (struct target_ops): Add to_disconnect.
2754 (target_disconnect): Add prototype.
2755
687595f9
DJ
27562003-06-17 Daniel Jacobowitz <drow@mvista.com>
2757
2758 * breakpoint.c (insert_catchpoint): New function.
2759 (insert_breakpoints): Use catch_exceptions to call
2760 insert_catchpoint. Disable catchpoints if they fail to insert.
2761
29239a8f
DJ
27622003-06-17 Daniel Jacobowitz <drow@mvista.com>
2763
2764 * symfile.c (reread_symbols): Clear sym_private.
2765
2cdf3c63
AC
27662003-06-17 Andrew Cagney <cagney@redhat.com>
2767
2768 * trad-frame.h (struct frame_info): Add opaque declaration.
2769 * remote-fileio.h (struct cmd_list_element): Add opaque
2770 declaration.
2771 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2772 comments.
2773
cf0e1e0d
DJ
27742003-06-17 Daniel Jacobowitz <drow@mvista.com>
2775
2776 * remote.c (remote_prepare_to_store): Replace call to
2777 deprecated_read_register_bytes with multiple regcache_raw_read
2778 calls.
2779
192cdb19
KW
27802003-06-17 Kris Warkentin <kewarken@qnx.com>
2781
2782 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2783 (nto_find_and_open_solib): Likewise.
2784 (nto_init_solib_absolute_prefix): Likewise.
2785 (_initialize_nto_tdep): Fix indentation.
2786
89929b45
KW
27872003-06-17 Kris Warkentin <kewarken@qnx.com>
2788
2789 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2790
46019f27
KW
27912003-06-17 Kris Warkentin <kewarken@qnx.com>
2792
2793 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2794
1a38736e
JB
27952003-06-17 Jim Blandy <jimb@redhat.com>
2796
2797 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2798
3605c34a
TR
27992003-06-16 Theodore A. Roth <troth@openavr.org>
2800
2801 * avr-tdep.c (avr_extract_return_value): New function.
2802 (avr_gdbarch_init): Set extract_return_value method.
2803
870b3035
AC
28042003-06-16 Andrew Cagney <cagney@redhat.com>
2805
2806 * frame.h (deprecated_get_next_frame_hack): Declare.
2807 * frame.c (legacy_saved_regs_prev_register): Only require
2808 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2809 there are always saved regs.
2810 (deprecated_generic_get_saved_register): Do not require
2811 DEPRECATED_FRAME_INIT_SAVED_REGS.
2812 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2813 use frame ID unwind instead.
2814 (deprecated_get_next_frame_hack): New function.
2815
63d47a7d
CV
28162003-06-16 Corinna Vinschen <vinschen@redhat.com>
2817
2818 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2819 (h8300_push_dummy_call): ...this function. Some minor optimization.
2820 (h8300_push_return_address): Remove.
2821 (h8300_gdbarch_init): Remove calls to
2822 set_gdbarch_deprecated_dummy_write_sp,
2823 set_gdbarch_deprecated_push_arguments and
2824 set_gdbarch_deprecated_push_return_address.
2825 Add call to set_gdbarch_push_dummy_call.
2826
4bb1dc5e
CV
28272003-06-16 Corinna Vinschen <vinschen@redhat.com>
2828
2829 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2830 (E_PSEUDO_EXR_REGNUM): Ditto.
2831 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2832 registers into safe registers.
4bb1dc5e
CV
2833 (h8300_skip_prologue): Check for stm instruction to push registers
2834 used for register variables onto stack.
2835 (gdb_print_insn_h8300): Remove.
2836 (h8300_examine_prologue): Add a comment.
2837 (h8300_register_name): Take pseudo registers into account.
2838 (h8300s_register_name): Ditto.
2839 (h8300sx_register_name): Ditto.
2840 (h8300_print_register): Ditto.
2841 (h8300_print_registers_info): Define "nice" printing order.
2842 (h8300_saved_pc_after_call): Take pseudo registers into account.
2843 (h8300_register_type): Ditto. Return type used for remote connection
2844 when requesting real CCR or EXR register, return actual type when
2845 requesting pseudo CCR or EXR.
2846 (h8300_pseudo_register_read): New function.
2847 (h8300_pseudo_register_write): Ditto.
2848 (h8300_dbg_reg_to_regnum): Ditto.
2849 (h8300s_dbg_reg_to_regnum): Ditto.
2850 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2851 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2852 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2853 set_gdbarch_print_insn architecture dependent.
2854 Call set_gdbarch_pseudo_register_read and
2855 set_gdbarch_pseudo_register_write.
2856 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2857
a59fe496
AC
28582003-06-16 Andrew Cagney <cagney@redhat.com>
2859
2860 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2861 * gdbarch.h, gdbarch.c: Re-generate.
2862 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2863 * s390-tdep.c (s390_gdbarch_init): Update.
2864 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2865 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2866 * mips-tdep.c (mips_gdbarch_init): Update.
2867 * mcore-tdep.c (mcore_gdbarch_init): Update.
2868 * cris-tdep.c (cris_gdbarch_init): Update.
2869 * infcall.c (call_function_by_hand): Update.
2870 * ia64-tdep.c (ia64_push_arguments): Update comment.
2871 * frame.c (legacy_get_prev_frame): Do not assume
2872 SAVE_DUMMY_FRAME_TOS_P.
2873 * dummy-frame.c (find_dummy_frame): Update comment.
2874
6f4e5a41
AC
28752003-06-16 Andrew Cagney <cagney@redhat.com>
2876
2877 * regcache.c (do_cooked_read): Do not use register_valid_p.
2878
72fab697
TR
28792003-06-15 Theodore A. Roth <troth@openavr.org>
2880
2881 * avr-tdep.c (avr_register_type): Remove a blank line.
2882 (avr_scan_prologue): Correct some comments.
2883
e3d8b004
TR
28842003-06-15 Theodore A. Roth <troth@openavr.org>
2885
2886 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2887 prologue types.
8ffd9b1b 2888 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
2889 option.
2890 Add code to scan -mcall-prologues for mega devices.
2891
866b76ea
TR
28922003-06-15 Theodore A. Roth <troth@openavr.org>
2893
2894 * avr-tdep.c (avr_register_byte): Delete function.
2895 (avr_register_raw_size): Delete function.
2896 (avr_register_virtual_size): Delete function.
2897 (avr_register_virtual_type): Delete function.
2898 (avr_register_type): New function.
2899 (avr_address_to_pointer): Remove unused code.
2900 (avr_read_fp): Need to read FP as two separate bytes due to change to
2901 avr_register_type() usage.
2902 (avr_gdbarch_init): Don't set deprecated_register_size.
2903 Don't set deprecated_register_bytes.
2904 Don't set deprecated_register_byte.
2905 Don't set deprecated_register_raw_size.
2906 Don't set deprecated_max_register_raw_size.
2907 Don't set deprecated_register_virtual_size.
2908 Don't set deprecated_max_register_virtual_size.
2909 Don't set deprecated_register_virtual_type.
2910 Set register_type method.
2911
3993f6b1
DJ
29122003-06-15 Daniel Jacobowitz <drow@mvista.com>
2913
2914 * Makefile.in (linux-nat.o): Add rule.
2915 * linux-nat.c: New file.
2916 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2917 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2918 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2919 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2920 * config/arm/linux.mh (NATDEPFILES): Likewise.
2921 * config/i386/linux.mh (NATDEPFILES): Likewise.
2922 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2923 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2924 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2925 * config/mips/linux.mh (NATDEPFILES): Likewise.
2926 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2927 * config/s390/s390.mh (NATDEPFILES): Likewise.
2928 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2929
786a90bb
MK
29302003-06-15 Mark Kettenis <kettenis@gnu.org>
2931
2932 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2933 replace out-of-date comment.
2934
3bd3f01e
AC
29352003-06-15 Andrew Cagney <cagney@redhat.com>
2936
2937 * rdi-share/host.h (Fail): Change to a varargs function.
2938 * remote-rdi.c (Fail): Update.
8ffd9b1b 2939
de5b9bb9
MK
29402003-06-15 Mark Kettenis <kettenis@gnu.org>
2941
2942 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2943 (i386_convert_register_p, i386_register_to_value,
2944 i386_register_from_value): Handle types longer than 8 bytes.
2945
d532c08f
MK
29462003-06-15 Mark Kettenis <kettenis@gnu.org>
2947
2948 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2949 Move floating-point code to new function in i387-tdep.c.
2950 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2951 New functions containing code moved here from i386-tdep.c.
2952 * i387-tdep.h: Add opaque declaration for `struct type'.
2953 (i387_register_to_value, i387_value_to_register): New prototypes.
2954 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2955 (x86_64_init_abi): Set convert_register_p, register_to_value and
2956 value_to_register here.
8ffd9b1b 2957
42c466d7
AC
29582003-06-14 Andrew Cagney <cagney@redhat.com>
2959
2960 * mips-tdep.c (mips_register_to_value): Make static.
2961 (mips_value_to_register): Make static.
2962 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2963 * ia64-tdep.c (ia64_register_raw_size): Make static.
2964 (ia64_register_virtual_size): Make static.
2965 (ia64_register_byte): Make static.
2966 * i387-tdep.c: Include "i387-tdep.h".
2967 (print_387_control_word): Delete function.
2968 (print_387_status_word): Delete function.
2969 (print_387_status_bits): Delete function.
2970 (print_387_control_bits): Delete function.
2971 * Makefile.in (i387-tdep.o): Update dependencies.
2972 * rdi-share/host.h (Fail): Declare.
2973 * remote-rdi.c (Fail): Update to match declaration.
2974
2a9cda49
AC
29752003-06-14 Andrew Cagney <cagney@redhat.com>
2976
2977 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2978 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2979 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2980 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2981 * README: Delete reference to remote-array.
2982 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2983 (remote-array.o): Delete target.
2984 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2985 * remote-array.c: Delete file.
2986
ff2e87ac
AC
29872003-06-14 Andrew Cagney <cagney@redhat.com>
2988 Mark Kettenis <kettenis@gnu.org>
2989
2990 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2991 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2992 parameter with "frame".
2993 * gdbarch.h, gdbarch.c: Re-generate.
2994 * frame.h (put_frame_register): Declare.
2995 * frame.c (put_frame_register): New function.
2996 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2997 (legacy_register_to_value): Rewrite, use "frame" to get the
2998 register value.
2999 (legacy_value_to_register): Rewrite, use "frame" to find the
3000 register's location before storing.
3001 * arch-utils.h (legacy_convert_register_p): Update.
3002 (legacy_register_to_value, legacy_value_to_register): Update.
3003 * findvar.c (value_from_register): Rewrite, eliminate use of
3004 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3005 "frame" to REGISTER_TO_VALUE.
3006 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3007 lval_reg_frame_relative + lval_register branch of the switch. Do
3008 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3009 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3010 I386_EDI_REGNUM): New defines.
3011 (i386_next_regnum, i386_convert_register_p,
3012 i386_register_to_value, i386_value_to_register): New functions.
3013 (i386_register_convertible, i386_register_convert_to_virtual,
3014 i386_convert_to_raw): Remove functions.
3015 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3016 value_to_register instead of register_convertible,
3017 register_convert_to_virtual and register_convert_to_raw.
3018 * mips-tdep.c (mips_convert_register_p): New function.
3019 (mips_value_to_register): Replace mips_register_convert_from_type.
3020 (mips_register_to_value): Replace mips_register_convert_to_type.
3021 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3022 register_to_value.
3023 * alpha-tdep.c (alpha_convert_register_p): Update.
3024 (alpha_value_to_register): Update, store the register.
3025 (alpha_register_to_value): Update, fetch the register.
3026
98be1e77
TR
30272003-06-14 Theodore A. Roth <troth@openavr.org>
3028
3029 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3030 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3031 Don't set deprecated_call_dummy_words.
3032 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3033 Don't set remote_translate_xfer_address.
3034 (avr_io_reg_read_command): Remove commented out debug printf.
3035 Wrap a long line.
3036
57bc6122
TR
30372003-06-14 Theodore A. Roth <troth@openavr.org>
3038
3039 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3040 causes gdb to seg fault.
3041
eb01fc62
DJ
30422003-06-14 Daniel Jacobowitz <drow@mvista.com>
3043
3044 * sparc-nat.c (fetch_inferior_registers): Correct
3045 a reference to "registers".
3046
3b3e6bee
DJ
30472003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3048
3049 * Makefile.in (exc_request_U_h): Define
3050 (exc_request_S_h): Likewise.
3051 (msg_reply_S_h): Likewise.
3052 (msg_U_h): Likewise.
3053 (notify_S_h): Likewise.
3054 (process_reply_S_h): Likewise.
3055 (gnu-nat.o): Depend on gdb_obstack_h
3056 * gnu-nat.c: Include "gdb_obstack.h".
3057
b8de8283
AC
30582003-06-13 Andrew Cagney <cagney@redhat.com>
3059
3060 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3061 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3062
f3be58bc
AC
30632003-06-13 Andrew Cagney <cagney@redhat.com>
3064
3065 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3066 when deprecated REGISTER macros can be deleted.
3067 * gdbarch.h, gdbarch.c: Re-generate.
3068
4c0122c8
JB
30692003-06-13 Jim Blandy <jimb@redhat.com>
3070
3071 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3072 Linux entry point symbols for _dl_debug_state, too.
3073
3e210248
AC
30742003-06-13 Andrew Cagney <cagney@redhat.com>
3075
3076 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3077 available, do not use the FP register, and always save the TOS.
3078 * dummy-frame.c (dummy_frame_this_id): Do not assert
3079 SAVE_DUMMY_FRAME_TOS.
3080 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3081 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3082 (i386_push_dummy_call): Add 8 to the returned SP.
3083 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3084 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3085 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3086 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3087 (x86_64_push_dummy_call): Return "sp + 16".
3088 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3089 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3090 save_dummy_frame_tos.
3091
0b65af49
JB
30922003-06-13 Jim Blandy <jimb@redhat.com>
3093
3094 * frv-tdep.c (frv_use_struct_convention): Delete static
3095 declaration for function deleted in my change of 2003-06-12.
3096
4ea2465e
TR
30972003-06-13 Theodore A. Roth <troth@openavr.org>
3098
3099 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3100 (avr_pointer_to_address): Shift code addrs left 1 bit.
3101 (avr_convert_from_func_ptr_addr): Delete function since operation is
3102 better handled by avr_address_to_pointer and avr_pointer_to_address.
3103 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3104
1581182a
MK
31052003-06-13 Mark Kettenis <kettenis@gnu.org>
3106
3107 From Kelley Cook <kelleycook@wideopenwest.com>:
3108 * configure.host: Accept i[34567]86 variants.
3109 * configure.tgt: Likewise.
3110 * nlm/configure.in: Likewise.
3111 * nlm/configure: Regenerated.
3112
7aa1783e
RE
31132003-06-13 Richard Earnshaw <rearnsha@arm.com>
3114
3115 * arm-tdep.c (solib-svr4.h): Dont' include it.
3116 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3117 * arm-linux-tdep.c: ... here. Make static.
3118 (arm_linux_init_abi): Register it.
3119 (solib-svr4.h): Include it.
3120 * Makefile.in: Update dependencies.
3121 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3122 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3123
0261a0d0
CV
31242003-06-13 Corinna Vinschen <vinschen@redhat.com>
3125
3126 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3127 indicate registers used for return values.
3128 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3129 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3130 members.
3131 (h8300_init_extra_frame_info): Ditto.
3132 (h8300_frame_locals_address): Removed.
3133 (h8300_frame_args_address): Removed.
3134 (h8300_extract_return_value): Use new regcache structure. Only care
3135 for 16 bit CPUs.
3136 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3137 (h8300_store_return_value): Use new regcache structure. Only care
3138 for 16 bit CPUs.
3139 (h8300h_store_return_value): Same function for 32 bit CPUs.
3140 (h8300_store_struct_return): Removed.
3141 (h8300_extract_struct_value_address): Use new regcache structure.
3142 (h8300h_extract_struct_value_address): Removed.
3143 (h8300_push_dummy_code): New function.
3144 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3145 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3146 set_gdbarch_store_return_value architecture dependent.
3147 Call set_gdbarch_push_dummy_code and
3148 set_gdbarch_extract_struct_value_address.
3149 Remove calls to set_gdbarch_frame_args_address,
3150 set_gdbarch_frame_locals_address,
3151 set_gdbarch_deprecated_store_struct_return,
3152 set_gdbarch_deprecated_extract_return_value,
3153 set_gdbarch_deprecated_extract_struct_value_address,
3154 set_gdbarch_deprecated_call_dummy_words and
3155 set_gdbarch_deprecated_sizeof_call_dummy_words.
3156
055c394a
CV
31572003-06-13 Corinna Vinschen <vinschen@redhat.com>
3158
3159 * h8300-tdep.c (h8300_register_byte): Remove.
3160 (h8300h_register_byte): Remove.
3161 (h8300_register_virtual_type): Remove. Substitute by...
3162 (h8300_register_type): New function.
3163 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3164 (h8300h_extract_struct_value_address): Ditto.
3165 (h8300_gdbarch_init): Drop calls to
3166 set_gdbarch_deprecated_register_byte and
3167 set_gdbarch_deprecated_register_virtual_type.
3168 Add call to set_gdbarch_register_type.
3169
9c04cab7
AC
31702003-06-13 Andrew Cagney <cagney@redhat.com>
3171
3172 * gdbarch.sh: Update comments on registers.
3173 (deprecated_register_byte): Rename register_byte.
3174 (deprecated_register_raw_size): Rename register_raw_size.
3175 (deprecated_register_virtual_size): Rename register_virtual_size.
3176 (deprecated_register_virtual_type): Rename register_virtual_type.
3177 * gdbarch.h, gdbarch.c: Re-generate.
3178 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3179 * vax-tdep.c (vax_gdbarch_init): Update.
3180 * v850-tdep.c (v850_gdbarch_init): Update.
3181 * sparc-tdep.c (sparc_gdbarch_init): Update.
3182 * sh-tdep.c (sh_gdbarch_init): Update.
3183 * s390-tdep.c (s390_gdbarch_init): Update.
3184 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3185 * ns32k-tdep.c: Update.
3186 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3187 * mips-tdep.c (mips_gdbarch_init): Update.
3188 * mcore-tdep.c (mcore_gdbarch_init): Update.
3189 * m68k-tdep.c (m68k_gdbarch_init): Update.
3190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3191 * ia64-tdep.c (ia64_gdbarch_init): Update.
3192 * hppa-tdep.c (hppa_gdbarch_init): Update.
3193 * h8300-tdep.c (h8300_gdbarch_init): Update.
3194 * frv-tdep.c (frv_gdbarch_init): Update.
3195 * cris-tdep.c (cris_gdbarch_init): Update.
3196 * avr-tdep.c (avr_gdbarch_init): Update.
3197 * alpha-tdep.c (alpha_gdbarch_init): Update.
3198 * arm-tdep.c (arm_gdbarch_init): Update.
3199
b060cbea
AC
32002003-06-13 Andrew Cagney <cagney@redhat.com>
3201
3202 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3203 mips_o32_use_struct_convention with always_use_struct_convention.
3204
0fc9922a
DC
32052003-06-12 David Carlton <carlton@kealia.com>
3206
3207 * cp-namespace.c (cp_set_block_scope): Comment out
3208 processing_has_namespace_info branch.
3209
1fd35568
JB
32102003-06-12 Jim Blandy <jimb@redhat.com>
3211
f470a70a
JB
3212 Recognize and skip 64-bit PowerPC Linux linkage functions.
3213 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3214 insn_pattern, insns_match_pattern, d_field, ds_field): New
3215 functions, macros, and types for working with PPC instructions.
3216 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3217 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3218 ppc64_skip_trampoline_code): New functions, variables, and macros
3219 for recognizing and skipping linkage functions.
3220 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3221 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3222
49ff75ad
JB
3223 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3224 register offsets for both the 32- and 64-bit interfaces.
3225
bd918c83
JB
3226 Actually finish the job started by my change of 2003-05-29.
3227 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3228 other #definition of this.
3229 (ppc_linux_skip_trampoline_code): Remove declaration.
3230 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3231 static.
3232 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3233 method for GDBARCH.
3234
3235 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3236 'long' on ppc64-*-linux*.
3237
f8c59253
JB
3238 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3239 isn't #defined, assume the register doesn't exist: act as if
3240 tdep->ppc_mq_regnum were -1.
3241
8fbb30b1
JB
3242 * configure.host, configure.tgt: Add entries for
3243 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3244 powerpc/linux.mt.
3245 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3246 New files.
3247
1fd35568
JB
3248 * arch-utils.c (always_use_struct_convention): New function.
3249 * arch-utils.h (always_use_struct_convention): New prototype.
3250 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3251 (alpha_gdbarch_init): Register always_use_struct_convention,
3252 instead of alpha_use_struct_convention.
3253 * cris-tdep.c (cris_use_struct_convention): Delete.
3254 (cris_gdbarch_init): Register always_use_struct_convention,
3255 instead of cris_use_struct_convention.
3256 * frv-tdep.c (frv_use_struct_convention): Delete.
3257 (frv_gdbarch_init): Register always_use_struct_convention,
3258 instead of frv_use_struct_convention.
3259 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3260 (h8300_gdbarch_init): Register always_use_struct_convention,
3261 instead of h8300_use_struct_convention.
e3305dd9 3262 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3263 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3264 instead of mips_o32_use_struct_convention.
3265
e14e6e9c
AC
32662003-06-12 Andrew Cagney <cagney@redhat.com>
3267
3268 * wince.c: Include "mips-tdep.h".
3269 * mips-tdep.h (mips_next_pc): Declare.
3270 * mcore-tdep.c: Make more local functions static.
3271 * Makefile.in (wince.o): Update dependencies.
3272
2335f48e
DC
32732003-06-12 David Carlton <carlton@kealia.com>
3274
3275 * symtab.c (lookup_symbol_aux_minsyms): Replace
3276 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3277 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3278 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3279 SYMBOL_NATURAL_NAME.
3280
f70a7d61
AS
32812003-06-12 Andreas Schwab <schwab@suse.de>
3282
3283 * Makefile.in (tuiDisassem.o): Update dependencies.
3284
b6429628
DC
32852003-06-12 David Carlton <carlton@bactrian.org>
3286
3287 * symtab.h: Delete declaration of make_symbol_overload_list.
3288 Add declaration of lookup_partial_symbol.
3289 * symtab.c (remove_params): Move to cp-support.c.
3290 (overload_list_add_symbol, make_symbol_overload_list)
3291 (sym_return_val_size, sym_return_val_index): Ditto.
3292 (lookup_partial_symbol): Make extern.
3293 * cp-support.h: Add declaration of make_symbol_overload_list.
3294 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3295 symtab.h, and block.h.
3296 (remove_params): Move here from symtab.c.
3297 (overload_list_add_symbol, make_symbol_overload_list)
3298 (sym_return_val_size, sym_return_val_index): Ditto.
3299 * valops.c: Include cp-support.h.
3300 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3301 frame_h, and block_h.
3302 (valops.o): Depend on cp_support_h.
3303
084edea5
CV
33042003-06-12 Corinna Vinschen <vinschen@redhat.com>
3305
3306 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3307 substitute by NUM_REGS throughout.
3308 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3309 (h8300s_register_name): New function for H8S registers.
3310 (h8300sx_register_name): Ditto for H8SX registers.
3311 (h8300_print_register): Revise register printing, avoid depending
3312 on 32 bit long.
0261a0d0 3313 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3314 (h8300h_register_byte): New function for any other architecture.
3315 (h8300_register_raw_size): Remove.
3316 (h8300_register_virtual_type): Revise to return actually useful
3317 type.
3318 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3319 (h8300h_extract_struct_value_address): New function for any other
3320 architecture.
3321 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3322 set_gdbarch_register_name, set_gdbarch_register_byte,
3323 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3324 Remove calls to set_gdbarch_deprecated_register_size,
3325 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3326 set_gdbarch_deprecated_max_register_raw_size,
3327 set_gdbarch_register_virtual_size and
3328 set_gdbarch_deprecated_max_register_virtual_size entirely.
3329 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3330 set_gdbarch_long_double_bit.
3331
06194148
JJ
33322003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3333
8ffd9b1b
AJ
3334 * doublest.c (convert_doublest_to_floatformat): When dealing
3335 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3336 processing a full 32 bits of mantissa.
3337
de4f826b
DC
33382003-06-11 David Carlton <carlton@bactrian.org>
3339
3340 * dictionary.h: New.
3341 * dictionary.c: New.
3342 * block.h: Add opaque declaration for struct dictionary.
3343 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3344 'sym' members.
3345 (BLOCK_DICT): New macro.
3346 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3347 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3348 BLOCK_SHOULD_SORT.
3349 (ALL_BLOCK_SYMBOLS): Update definition.
3350 * Makefile.in (SFILES): Add dictionary.c.
3351 (dictionary_h): New.
3352 (COMMON_OBS): Add dictionary.o.
3353 (dictionary.o): New.
3354 (ada-lang.o): Depend on dictionary_h.
3355 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3356 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3357 (mi-cmd-stack.o): Ditto.
3358 (gdbtk-cmds.o): Update dependencies.
3359 (gdbtk-stack.o): Ditto.
3360 * ada-lang.c: Include dictionary.h.
3361 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3362 (fill_in_ada_prototype, debug_print_block): Ditto.
3363 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3364 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3365 'is_sorted'.
3366 * mdebugread.c: Include dictionary.h.
3367 (struct parse_stack): Delete 'maxsyms' member.
3368 (parse_symbol): Update calls to new_block. Delete calls to
3369 shrink_block. Use dictionary methods.
3370 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3371 Update calls to new_symtab. Don't maintain maxsyms data.
3372 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3373 (add_symbol): Just call dict_add_symbol.
3374 (new_symtab): Delete 'maxsyms' argument.
3375 (new_symtab): Update calls to new_block.
3376 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3377 (shrink_block): Delete function.
3378 (fixup_sigtramp): Update call to new_block. Add symbol via
3379 dict_add_symbol.
3380 * jv-lang.c: Include dictionary.h.
3381 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3382 appropriately. Set class_symtab->free_func. Make sure the
3383 blockvector is big enough to hold two blocks.
3384 (add_class_symtab_symbol): Use dictionary methods.
3385 (free_class_block): New function.
3386 (type_from_class): Replace explicit iteration by
3387 ALL_BLOCK_SYMBOLS.
3388 * symtab.h (struct symtab): Replace 'free_ptr' method by
3389 'free_func'.
3390 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3391 sort_symtab_syms.
3392 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3393 sort_symtab_syms.
3394 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3395 Include dictionary.h.
3396 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3397 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3398 sort_symtab_syms.
3399 * objfiles.c: Include dictionary.h.
3400 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3401 * buildsym.c: Include dictionary.h.
3402 (finish_block): Use dictionary methods.
3403 (end_symtab): Set free_func to NULL, not free_ptr.
3404 * tracepoint.c: Include dictionary.h.
3405 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3406 (scope_info): Ditto.
3407 * stack.c: Include dictionary.h.
3408 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3409 (print_block_frame_labels, print_frame_arg_vars)
3410 (print_frame_args): Ditto.
3411 * symmisc.c (free_symtab_block): Use dictionary methods.
3412 (dump_symtab): Ditto.
3413 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3414 Include dictionary.h.
3415 * symfile.h: Delete declarations of sort_block_syms,
3416 sort_symtab_syms.
3417 * symfile.c (sort_block_syms): Delete.
3418 (sort_symtab_syms): Delete.
3419 * symtab.c: Include dictionary.h.
3420 (lookup_block_symbol): Use dictionary iterators.
3421 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3422 (search_symbols, make_symbol_completion_list): Ditto.
3423 (make_symbol_overload_list): Ditto.
3424 * valops.c (value_of_local): Use dict_empty.
3425 Include dictionary.h.
3426
a31f978c
JB
34272003-06-11 J. Brobecker <brobecker@gnat.com>
3428
3429 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3430
526e70c0
DC
34312003-06-11 David Carlton <carlton@bactrian.org>
3432
3433 * block.h (BLOCK_SHOULD_SORT): Delete.
3434 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3435 blocks.
3436 * ada-lang.c (ada_add_block_symbols): Ditto.
3437 * symfile.c (sort_block_syms): Delete.
3438 (sort_symtab_syms): Ditto.
3439 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3440 declarations.
3441 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3442 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3443 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3444 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3445 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3446 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3447 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3448
33c08150
JJ
34492003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3450
8ffd9b1b 3451 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3452 bits to 128.
3453
781a750d
AC
34542003-06-11 Andrew Cagney <cagney@redhat.com>
3455
3456 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3457 REGISTER_CONVERTIBLE.
3458 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3459 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3460 * gdbarch.h, gdbarch.c: Re-generate.
3461 * arch-utils.h (deprecated_register_convertible_not): Rename
3462 generic_register_convertible_not.
3463 * arch-utils.c (deprecated_register_convertible_not): Rename
3464 generic_register_convertible.
3465 (legacy_convert_register_p, legacy_register_to_value): Update.
3466 * sh-tdep.c (sh64_push_arguments): Update.
3467 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3468 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3469 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3470 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3471 * arch-utils.c (legacy_value_to_register): Update.
3472 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3473 (rs6000_register_convert_to_raw): Make parameter "from" const.
3474 * mips-tdep.c (mips_gdbarch_init): Update.
3475 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3476 * infcmd.c (default_print_registers_info): Update.
3477 * ia64-tdep.c (ia64_gdbarch_init): Update.
3478 (ia64_register_convert_to_raw): Make parameter "from" const.
3479 * i386-tdep.c (i386_gdbarch_init): Update.
3480 (i386_register_convert_to_raw): Update.
3481
cd90e54f
AC
34822003-06-11 Andrew Cagney <cagney@redhat.com>
3483
3484 * remote-fileio.c: Include "remote-fileio.h".
3485 * Makefile.in (remote-fileio.o): Update dependencies.
3486 (remote_fileio_h): Fix typo.
3487
a78f21af
AC
34882003-06-11 Andrew Cagney <cagney@redhat.com>
3489
3490 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3491 (xstormy16_save_dummy_frame_tos): Make static.
3492 (_initialize_xstormy16_tdep): Add declaration.
3493 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3494 * v850-tdep.c: Make local functions static.
3495 (_initialize_v850_tdep): Add declaration.
3496 * sparc-tdep.c: Make local functions static.
3497 (_initialize_sparc_tdep): Add declaration.
3498 * sh-tdep.c: Make local functions static.
3499 (_initialize_sh_tdep): Add declaration.
3500 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3501 * s390-tdep.c: Make local functions static.
3502 (_initialize_s390_tdep): Add declaration.
3503 * dbxread.c (find_stab_function_addr): Make static.
3504 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3505 * ocd.c (_initialize_remote_ocd): Add declaration.
3506 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3507 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3508 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3509 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3510 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3511 * remote-array.c (_initialize_array): Add declaration.
3512 (_initialize_remote_monitors): Add declaration.
3513 * remote-mips.c: Make local functions static.
3514 (_initialize_remote_mips): Add declaration.
3515 * mcore-tdep.c: Make all local functions static.
3516 (_initialize_mcore_tdep): Add declaration.
3517 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3518 * abug-rom.c (_initialize_abug_rom): Add declaration.
3519 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3520 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3521 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3522 * remote-est.c (_initialize_est): Add declaration.
3523 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3524 (m68hc11_call_dummy_address): Make static.
3525 * ia64-tdep.c: Make local functions static.
3526 (_initialize_ia64_tdep): Add declaration.
3527 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3528 * monitor.c (monitor_wait_filter): Make static.
3529 (_initialize_remote_monitors): Add declaration.
3530 * remote-hms.c (_initialize_remote_hms): Add declaration.
3531 * remote-e7000.c (fetch_regs_from_dump): Make static.
3532 (expect_n): Make static.
3533 (_initialize_remote_e7000): Add declaration.
3534 * ser-e7kpc.c: Always include "defs.h".
3535 (_initialize_ser_e7000pc): Add declaration.
3536 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3537 * cris-tdep.c: Make all but one function static.
3538 (_initialize_cris_tdep): Add declaration.
3539 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3540 * solib.c (update_solib_list): Make static.
3541 (_initialize_solib): Add declaration.
3542 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3543 (_initialize_avr_tdep): Add declaration.
3544 * remote-rdi.c (voiddummy): Make static.
3545 (_initialize_remote_rdi): Add declaration.
3546 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3547 * remote-rdp.c (send_rdp): Make static.
3548 (_initialize_remote_rdp): Add declaration.
3549 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3550
cbcdb1f5
CV
35512003-06-11 Corinna Vinschen <vinschen@redhat.com>
3552
3553 * remote-fileio.c: Make ari happy.
3554
a191ea8d
JB
35552003-06-10 J. Brobecker <brobecker@gnat.com>
3556
3557 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3558 fetching the trailing bytes of the buffer we are about to write.
3559
0ef75e11
AC
35602003-06-10 Andrew Cagney <cagney@redhat.com>
3561
3562 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3563 * Makefile.in (remote-fileio.o): Update dependencies.
3564 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3565 include <setjmp.h>, or <sys/types.h> conditional on USG.
3566 (remote_fio_jmp_buf): Delete global variable.
3567
449092f6 35682003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3569 Martin M. Hunt <hunt@redhat.com>
449092f6 3570
559fa028
AC
3571 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3572 (SFILES): Add remote-fileio.c.
3573 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3574 dependencies for building remote.o.
449092f6
CV
3575 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3576 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3577 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3578 static storage class.
3579 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3580 'F' packet.
3581 (_initialize_remote): Call initialize_remote_fileio().
3582 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3583 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3584 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3585 (captured_main): Initialize new ui_files.
3586 * ui-file.c: Add read and fgets input functions.
3587 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3588 (null_file_read): New function.
3589 (ui_file_read): New function.
3590 (set_ui_file_read): New function.
3591 (stdio_file_read): New function.
3592 * ui-file.h: New type ui_file_read_ftype.
3593 (set_ui_file_read): Declare.
3594 (ui_file_read): Declare.
3595
248de703
AC
35962003-06-09 Andrew Cagney <cagney@redhat.com>
3597
3598 * frame.h (deprecated_unwind_get_saved_register): Rename
3599 generic_unwind_get_saved_register, update comments.
3600 * mips-tdep.c (mips_get_saved_register): Update.
3601 * frame.c (deprecated_unwind_get_saved_register): Update.
3602
0ed8aa57
AC
36032003-06-09 Andrew Cagney <cagney@redhat.com>
3604
3605 * vax-tdep.c (vax_frame_locals_address): Delete function.
3606 (vax_gdbarch_init): Do not set frame_locals_address.
3607 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3608 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3609 * s390-tdep.c (s390_frame_args_address): Delete function.
3610 (s390_gdbarch_init): Do not set frame_args_address or
3611 frame_locals_address.
3612 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3613 (ns32k_gdbarch_init): Do not set frame_locals_address.
3614 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3615 (hppa_frame_locals_address): Delete function.
3616 (hppa_gdbarch_init): Do not set frame_args_address, or
3617 frame_locals_address.
3618 * arm-tdep.c (arm_frame_args_address): Delete.
3619 (arm_frame_locals_address): Delete.
3620 (arm_gdbarch_init): Do not set frame_args_address, or
3621 frame_locals_address.
3622
983a287a
AC
36232003-06-09 Andrew Cagney <cagney@redhat.com>
3624
3625 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3626 * gdbarch.h, gdbarch.c: Re-generate.
3627 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3628 * arch-utils.c (frame_num_args_unknown): Delete function.
3629 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3630 (frame_info): Use FRAME_NUM_ARGS_P.
3631 * arm-tdep.c (arm_frame_num_args): Delete function.
3632 (arm_gdbarch_init): Do not set frame_num_args.
3633 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3634 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3635 (hppa_gdbarch_init): Do not set frame_num_args.
3636 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3637 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3638 frame_num_args to default frame_num_args_unknown.
3639 * v850-tdep.c (v850_gdbarch_init): Ditto.
3640 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3641 * sh-tdep.c (sh_gdbarch_init): Ditto.
3642 * s390-tdep.c (s390_gdbarch_init): Ditto.
3643 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3644 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3645 * mips-tdep.c (mips_gdbarch_init): Ditto.
3646 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3647 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3648 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3649 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3650 * i386-tdep.c (i386_gdbarch_init): Ditto.
3651 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3652 * frv-tdep.c (frv_gdbarch_init): Ditto.
3653 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3654 * cris-tdep.c (cris_gdbarch_init): Ditto.
3655 * avr-tdep.c (avr_gdbarch_init): Ditto.
3656 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3657
8d3b0994
AC
36582003-06-09 Andrew Cagney <cagney@redhat.com>
3659
3660 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3661 (print_frame_args): Moved to "stack.c".
3662 * stack.c: Include "gdb_assert.h".
3663 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3664 (print_frame_args): Moved from "printcmd.c".
3665 * frame.h (print_frame_args): Delete declaration.
3666 * Makefile.in (stack.o): Update dependencies.
3667
25e3a86b
AC
36682003-06-08 Andrew Cagney <cagney@redhat.com>
3669
3670 * frame.c (get_prev_frame): Remove reference to
3671 frame_args_address_correct in comments.
3672 * frame-base.c (default_frame_args_address): Delete code
3673 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3674 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3675 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3676 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3677 (vax_frame_args_address_correct): Delete declaration.
3678
a9e5fdc2
AC
36792003-06-08 Andrew Cagney <cagney@redhat.com>
3680
3681 * gdbarch.sh (UNWIND_SP): Add.
3682 * gdbarch.h, gdbarch.c: Re-generate.
3683 * frame.c (frame_sp_unwind): New function.
3684 (get_frame_sp): New function.
3685 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3686 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3687 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3688 value.
3689 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3690 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3691
8983bd83
AC
36922003-06-08 Andrew Cagney <cagney@redhat.com>
3693
7fec2c59
AC
3694 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3695 REMOTE_BREAKPOINT.
3696 * remote.c: Update.
3697 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3698 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3699 * config/m68k/tm-sun3.h: Update.
3700 * config/m68k/tm-m68klynx.h: Update.
3701 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3702
8983bd83
AC
3703 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3704 trad_frame". Update comments.
3705 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3706 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3707 (trad_frame_register_value, trad_frame_prev_register): Update.
3708
b9362cc7
AC
37092003-06-08 Andrew Cagney <cagney@redhat.com>
3710
3711 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3712 from GCC's acinclude.m4.
3713 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3714 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3715 * main.c (error_init): Delete declaration.
3716 * defs.h (error_init): Declare.
3717 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3718 (rs6000_convert_from_func_ptr_addr): Make static.
3719 (_initialize_rs6000_tdep): Add declaration.
3720 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3721 (show_commands, set_verbose, show_history): Delete declaration.
3722 * top.h (set_verbose): Add declaration.
3723 (show_history, set_history, show_commands): Add declaration.
3724 (do_restore_instream_cleanup): Add declaration.
3725 * objc-lang.c (specialcmp): Make static.
3726 (print_object_command): Make static.
3727 (find_objc_msgsend): Make static.
3728 (find_objc_msgcall_submethod_helper): Make static.
3729 (find_objc_msgcall_submethod): Make static.
3730 (_initialize_objc_language): Add declaration.
3731 (find_implementation_from_class): Make static.
3732 (find_implementation): Make static.
3733 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3734 * objc-lang.h (lookup_struct_typedef): Add declaration.
3735 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3736 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3737 (do_restore_user_call_depth): Make static.
3738 (do_restore_instream_cleanup): Delete declaration.
3739 (dont_repeat): Delete declaration.
3740 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3741 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3742 * reggroups.c (_initialize_reggroup): Add declaration.
3743 * cp-support.c (_initialize_cp_support): Add declaration.
3744 * cp-abi.c (_initialize_cp_abi): Add declaration.
3745 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3746 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3747 (_initialize_gnu_v3_abi): Add declaration.
3748 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3749 (_initialize_gnu_v2_abi): Add declaration.
3750 * frame-base.c (_initialize_frame_base): Add declaration.
3751 * doublest.c (floatformat_from_length): Make static.
3752 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3753 * frame.c (create_sentinel_frame): Make static.
3754 (_initialize_frame): Add declaration.
3755 * top.c (do_catch_errors): Make static.
3756 (gdb_rl_operate_and_get_next_completion): Make static.
3757 * typeprint.c: Include "typeprint.h".
3758 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3759 (sentinel_frame_this_id): Make static.
3760 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3761 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3762 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3763 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3764 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3765 * maint.c (maintenance_print_architecture): Make static.
3766 * signals/signals.c (_initialize_signals): Add declaration.
3767 * std-regs.c (_initialize_frame_reg): Add declaration.
3768 * jv-exp.y (push_variable): ISO C definition.
3769 (push_qualified_expression_name): Ditto.
3770 * memattr.c (_initialize_mem): Add declaration.
3771 * remote.c (remote_check_watch_resources): Make static.
3772 (remote_stopped_by_watchpoint): Make static.
3773 (remote_stopped_data_address): Make static.
3774 * d10v-tdep.c (nr_dmap_regs): Make static.
3775 (a0_regnum): Make static.
3776 (d10v_frame_unwind_cache): Make static.
3777 (d10v_frame_p): Make static.
3778 * osabi.c (show_osabi): Make static.
3779 (_initialize_gdb_osabi): Add extern declaration.
3780 * gdbtypes.c (make_qualified_type): Make static.
3781 (safe_parse_type): Make static.
3782 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3783 * macrotab.c (macro_bcache_free): Make static.
3784 * interps.c (interp_set_quiet): Make static.
3785 (interpreter_exec_cmd): Make static.
3786 * stack.h (select_frame_command): New file.
3787 * stack.c: Include "stack.h".
3788 (select_frame_command_wrapper): Delete function.
3789 (select_frame_command): Make global.
3790 * infcall.c: Include "infcall.h".
3791 * linespec.c: Include "linespec.h".
3792 * symfile.c (sections_overlap): Make static.
3793 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3794 * charset.c (_initialize_charset): Add missing prototype.
3795 * regcache.c (init_legacy_regcache_descr): Make static.
3796 (do_regcache_xfree): Make static.
3797 (regcache_xfer_part): Make static.
3798 (_initialize_regcache): Add missing prototype.
3799 * breakpoint.c (parse_breakpoint_sals): Make static.
3800 (breakpoint_sals_to_pc): Make static.
3801 * interps.h (clear_interpreter_hooks): ISO C declaration.
3802 * Makefile.in (stack_h): Define.
3803 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3804 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3805
a0f267c7
AC
38062003-06-08 Andrew Cagney <cagney@redhat.com>
3807
3808 * Makefile.in (d10v-tdep.o): Update dependencies.
3809 (SFILES): Add trad-frame.c.
3810 (trad_frame_h): Define.
3811 (COMMON_OBS): Add trad-frame.o.
3812 (trad-frame.o): Specify dependencies.
3813 * d10v-tdep.c: Include "trad-frame.h".
3814 (saved_regs_unwinder): Delete function.
3815 (d10v_frame_prev_register): Use trad_frame_prev_register.
3816 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3817 trad_frame", delete "regs" and "prev_sp".
3818 (prologue_find_regs): Use trad-frame.
3819 * trad-frame.h, trad-frame.c: New files.
3820
4538b4f4
MK
38212003-06-08 Mark Kettenis <kettenis@gnu.org>
3822
3823 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3824
a0273b2f
AF
38252003-06-07 Adam Fedor <fedor@gnu.org>
3826
3827 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3828 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3829 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3830 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3831 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3832 Use it.
3833
3a6c3343
AC
38342003-06-07 Andrew Cagney <cagney@redhat.com>
3835
3836 * symfile.h: Re-indent, clean up comments.
3837
b46e02f6
AC
38382003-06-07 Andrew Cagney <cagney@redhat.com>
3839
3840 * inferior.h (deprecated_write_sp): Replace
3841 generic_target_write_sp.
3842 * regcache.c (deprecated_write_sp): Replace
3843 generic_target_write_sp.
3844 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3845 * vax-tdep.c (vax_gdbarch_init): Update.
3846 * v850-tdep.c (v850_gdbarch_init): Update.
3847 * sparc-tdep.c (sparc_gdbarch_init): Update.
3848 * sh-tdep.c (sh_gdbarch_init): Update.
3849 * s390-tdep.c (s390_gdbarch_init): Update.
3850 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3851 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3852 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3853 * mcore-tdep.c (mcore_gdbarch_init): Update.
3854 * m68k-tdep.c (m68k_gdbarch_init): Update.
3855 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3856 * ia64-tdep.c (ia64_gdbarch_init): Update.
3857 * h8300-tdep.c (h8300_gdbarch_init): Update.
3858 * frv-tdep.c (frv_gdbarch_init): Update.
3859 * cris-tdep.c (cris_gdbarch_init): Update.
3860 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3861
a42e117c
AC
38622003-06-07 Andrew Cagney <cagney@redhat.com>
3863
3864 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3865 Assert that PC_REGNUM is valid.
3866 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3867
bd1ce8ba
AC
38682003-06-07 Andrew Cagney <cagney@redhat.com>
3869
3870 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3871 * gdbarch.h, gdbarch.c: Regenerate.
3872 * mn10300-tdep.c: Include "gdb_assert.h".
3873 (mn10300_read_fp): New function.
3874 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3875 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3876 * ia64-tdep.c: Include "gdb_assert.h".
3877 (ia64_read_fp): New function.
3878 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3879 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3880 * regcache.c (generic_target_read_sp): Delete function.
3881 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3882 * inferior.h (generic_target_read_sp): Delete declaration.
3883 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3884 generic_target_read_sp.
3885 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3886 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3887 * sh-tdep.c (sh_gdbarch_init): Ditto.
3888 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3889 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3890
ec5cbaec
AC
38912003-06-07 Andrew Cagney <cagney@redhat.com>
3892
3893 * gdbarch.sh: Comment each field of startup_gdbarch.
3894 * gdbarch.h, gdbarch.c: Re-generate.
3895
cde9ea48
AC
38962003-06-07 Andrew Cagney <cagney@redhat.com>
3897
3898 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3899 * gdbarch.h, gdbarch.c: Re-generate.
3900 * regcache.c: Update comments on read_pc et.al.
3901 (generic_target_read_pc): Delete function.
3902 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3903 * inferior.h (generic_target_read_pc): Delete declaration.
3904 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3905 generic_target_read_pc.
3906 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3907 * sh-tdep.c (sh_gdbarch_init): Ditto.
3908 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3909 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 3910
9a90a780
AC
39112003-06-07 Andrew Cagney <cagney@redhat.com>
3912
3913 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3914 "index" with "special_local_sect". Use strcmp instead of STREQ.
3915 Append period to coments.
3916
a39a16c4
MM
39172003-06-06 Mark Mitchell <mark@codesourcery.com>
3918
3919 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3920 (elfstab_offset_sections): Likewise.
3921 * gdb-stabs.h (stab_section_info): Likewise.
3922 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3923 * objfiles.c (objfile_relocate): Likewise.
3924 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3925 * remote.c (get_offsets): Likewise.
3926 (remote_cisco_objfile_relocate): Likewise.
3927 * somread.c (som_symfile_offsets): Likewise.
3928 * symfile.c (alloc_section_addr_info): New function.
3929 (build_section_addr_info_from_section_tab): Use it.
3930 (free_section_addr_info): Adjust.
3931 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3932 (syms_from_objfile): Allocate local_addr dynamically.
3933 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3934 dynamically.
3935 (add_symbol_file_command): Allocate sect_opts dynamically.
3936 (reread_symbols): Avoid use of SECT_OFF_MAX.
3937 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3938 (alloc_section_addr_info): Declare it.
3939 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3940 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3941 dynamically.
3942 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 3943
20c6c2f8
AC
39442003-06-06 Andrew Cagney <cagney@redhat.com>
3945
3946 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3947 (d10v_frame_unwind_cache): Do not set "return_pc".
3948
884a26c8
MS
39492003-06-06 Michael Snyder <msnyder@redhat.com>
3950
3951 * h8300-tdep.c: Make tidy (long lines).
3952
088ce440
ML
39532003-06-06 Michal Ludvig <mludvig@suse.cz>
3954
8ffd9b1b 3955 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
3956 to regcache_collect().
3957
7d773d96
JB
39582003-06-05 J. Brobecker <brobecker@gnat.com>
3959
3960 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3961 pc_in_sigtramp multiarch method.
3962 (hppa_hpux_som_init_abi): Use it.
3963 (hppa_hpux_elf_init_abi): Likewise.
3964 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3965 macro has been multiarched.
3966 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3967 macro here, as hppa64 isn't multiarched yet.
3968
1df6926e
AC
39692003-06-05 Andrew Cagney <cagney@redhat.com>
3970
3971 * Makefile.in (value_h): Add $(frame_h).
3972 * value.h: Include "frame.h".
3973 (struct value): Replace "frame_addr" with "frame_id".
3974 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3975 * values.c (allocate_value): Use VALUE_FRAME_ID.
3976 (value_copy): Use VALUE_FRAME_ID.
3977 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3978 * valops.c (value_assign): Update. Use frame_find_by_id.
3979
6b53acc6
ML
39802003-06-05 Michal Ludvig <mludvig@suse.cz>
3981
3982 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3983 in each pass.
3984
4d9850d3
JJ
39852003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3986
3987 * thread-db.c (check_event): For create/death event breakpoints,
3988 loop through all messages to ensure that we read the message
3989 corresponding to the breakpoint we are at.
3990
8efca6ba
MS
39912003-06-04 Michael Snyder <msnyder@redhat.com>
3992
3993 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3994
0912c7f2
MK
39952003-06-04 Mark Kettenis <kettenis@gnu.org>
3996
3997 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3998 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3999 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4000 when handling .eh_frame sections.
4001
4e370325
JB
40022003-06-04 J. Brobecker <brobecker@gnat.com>
4003
4004 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4005 prepare_to_proceed procedure instead of the hppa-specific one.
4006 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4007
b757528f 40082003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4009
b757528f
JJ
4010 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4011 * config.in: Regenerated.
4012 * configure.in: Add test for syscall function and check for
4013 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4014 * configure: Regenerated.
4015 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4016 <sys/syscall.h>.
4017 (kill_lwp): New function that uses tkill syscall or
4018 uses kill, depending on whether threading model is nptl or not.
4019 All callers of kill() changed to use kill_lwp().
4020 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4021 see if all threads have already exited in the nptl model.
4022 (stop_and_resume_callback): New callback function used by the
4023 lin_lwp_wait thread exit handling code.
4024 (stop_wait_callback): Check for threads already having exited and
4025 delete such threads fromt the lwp list when discovered.
4026 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4027
b757528f
JJ
4028 Roland McGrath <roland@redhat.com>
4029 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4030 nptl libthread_db.
4031
087779b1
RH
40322003-06-03 Richard Henderson <rth@redhat.com>
4033
b21fd293
RH
4034 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4035 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4036 (alpha_sigtramp_frame_prev_register): Likewise.
4037 (alpha_heuristic_frame_prev_register): Likewise.
4038 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4039
8ffd9b1b 4040 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4041 alpha-specific register id names.
4042 (alpha_mdebug_frame_unwind_cache): Likewise.
4043 (alpha_mdebug_frame_prev_register): Likewise.
4044
baa490c4
RH
40452003-06-03 Richard Henderson <rth@redhat.com>
4046
4047 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4048 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4049 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4050 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4051 unwind routines.
4052 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4053 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4054 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4055
4056 * alpha-linux-tdep.c: Remove unnecessary includes.
4057 * Makefile.in (alpha-linux-tdep.o): Update.
4058
40592003-06-03 Richard Henderson <rth@redhat.com>
4060
4061 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4062 (alphabsd_fill_fpreg): Likewise.
4063
f534e522
JB
40642003-06-03 J. Brobecker <brobecker@gnat.com>
4065
4066 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4067 references to struct frame_info fields by calls to the equivalent
4068 accessors. Necessary now that frame_info is opaque.
4069
4035536b
JB
40702003-06-03 J. Brobecker <brobecker@gnat.com>
4071
4072 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4073 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4074 structure, field no longer exists.
4075
0bd79c5c
JB
40762003-06-03 J. Brobecker <brobecker@gnat.com>
4077
4078 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4079 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4080
37bb6d9f
JB
40812003-06-03 J. Brobecker <brobecker@gnat.com>
4082
4083 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4084 references to struct frame_info fields by calls to the equivalent
4085 accessors. Necessary now that frame_info is opaque.
4086
852ee05c
JB
40872003-06-03 J. Brobecker <brobecker@gnat.com>
4088
4089 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4090 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4091 structure, field no longer exists.
4092
7d58c67d
TR
40932003-06-03 Theodore A. Roth <troth@openavr.org>
4094
8ffd9b1b 4095 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4096 accumulation of the size of all registers instead of blindly using
4097 DEPRECATED_REGISTER_BYTES.
4098
0a48e7e8
MS
40992003-06-03 Michael Snyder <msnyder@redhat.com>
4100
4101 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4102 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4103 for h8300sx.
4104
9798ab0d
JB
41052003-06-03 J. Brobecker <brobecker@gnat.com>
4106
4107 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4108 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4109
00b037e2
AC
41102003-06-03 Andrew Cagney <cagney@redhat.com>
4111
4112 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4113 (sparc_convert_to_raw): Delete function.
4114 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4115 register_convert_to_virtual.
4116
043b2f77
JJ
41172003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4118
4119 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4120 layer if not dealing with a statically-linked threaded program.
4121
f43caff8
KW
41222003-06-03 Kris Warkentin <kewarken@qnx.com>
4123
4124 * solib.c (solib_open): Update comment to reflect actual search order.
4125
ae1e7417
AC
41262003-06-03 Andrew Cagney <cagney@redhat.com>
4127
4128 * frame.c (get_frame_memory_signed): New function.
4129 (get_frame_memory, get_frame_memory_unsigned): New function.
4130 (get_frame_arch): New function.
4131 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4132 (get_frame_memory, get_frame_unsigned_memory): Declare.
4133 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4134 get_frame_memory_unsigned and get_frame_arch.
4135 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4136
cb123844
RG
41372003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4138
4139 * MAINTAINERS (write after approval): Add myself.
4140
1bb792e9
JB
41412003-06-03 Jim Blandy <jimb@redhat.com>
4142
4143 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4144 elements of gregset_t are 64 bits each, but access registers
4145 are still 32 bits, so they're packed two per gregset_t
4146 element. Unpack/pack them properly.
4147
aee8d8ba
DC
41482003-06-02 David Carlton <carlton@bactrian.org>
4149
4150 * linespec.c (find_methods): Break out code into
4151 add_matching_methods and add_constructors.
4152 (add_matching_methods): New.
4153 (add_constructors): Ditto.
4154
bf7488d2
AC
41552003-06-02 Andrew Cagney <cagney@redhat.com>
4156
bf7488d2
AC
4157 * sparc-tdep.c (sparc_print_registers): Delete call to
4158 REGISTER_CONVERTIBLE.
4159 (sparc_gdbarch_init): Do not set register_convertible.
4160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4161 * frv-tdep.c (frv_gdbarch_init): Ditto.
4162 * cris-tdep.c (cris_gdbarch_init): Ditto.
4163
adedef68
EZ
41642003-06-02 Elena Zannoni <ezannoni@redhat.com>
4165
8ffd9b1b 4166 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4167 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4168 (syms_from_objfile): Ditto.
4169
650fcc91
AS
41702003-06-03 Andreas Schwab <schwab@suse.de>
4171
4172 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4173 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4174
df4a182b
RH
41752003-06-02 Richard Henderson <rth@redhat.com>
4176
4177 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4178 a member of all_reggroup.
4179
c483c494
RH
41802003-06-02 Richard Henderson <rth@redhat.com>
4181
4182 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4183 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4184 (alpha_lds, alpha_sts): New.
4185 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4186 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4187 restructure and fail for type sizes other than 4 or 8.
4188 (alpha_value_to_register): Similarly.
4189 (alpha_extract_return_value): Use alpha_sts.
4190 (alpha_store_return_value): Use alpha_lds.
4191 (alpha_gdbarch_init): Update hooks.
4192
b38b6be2
RH
41932003-06-02 Richard Henderson <rth@redhat.com>
4194
4195 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4196 regnum identifiers.
4197 (alpha_sigtramp_register_address): Likewise.
4198
98a8e1e5
RH
41992003-06-02 Richard Henderson <rth@redhat.com>
4200
4201 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4202 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4203 * alpha-tdep.h: Declare them.
4204
4205 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4206 Remove zerobuf. Don't error on UNIQUE.
4207 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4208 (ALPHA_REGSET_UNIQUE): Provide default.
4209 (supply_gregset): Use alpha_supply_int_regs.
4210 (fill_gregset): Use alpha_fill_int_regs.
4211 (supply_fpregset): Use alpha_supply_fp_regs.
4212 (fill_fpregset): Use alpha_fill_fp_regs.
4213 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4214 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4215 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4216 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4217 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4218 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4219
67dfac52
RH
42202003-06-02 Richard Henderson <rth@redhat.com>
4221
f75d70cc
RH
4222 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4223
67dfac52
RH
4224 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4225 (alpha_store_return_value): Likewise.
4226
0cf566ec
DC
42272003-06-02 David Carlton <carlton@math.stanford.edu>
4228
4229 * block.c (contained_in): Add 'const' to arguments.
4230 (block_function): Ditto.
4231 * block.h: Update declarations for block_function and
4232 contained_in.
4233
cdef89d0
DC
42342003-06-02 David Carlton <carlton@math.stanford.edu>
4235
4236 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4237 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4238 * p-valprint.c (pascal_val_print): Ditto.
4239 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4240
72667056
RH
42412003-06-02 Richard Henderson <rth@redhat.com>
4242
98a8e1e5
RH
4243 * alpha-tdep.c (alpha_push_dummy_call): Use
4244 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4245
8ffd9b1b 4246 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4247 sign-extension of 32-bit values.
4248 (alpha_store_return_value): Similarly.
0ede8eca 4249
98a8e1e5
RH
4250 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4251 (alpha_extract_return_value): Likewise.
4252 (alpha_store_return_value): Likewise.
7b5e1cb3 4253
98a8e1e5
RH
4254 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4255 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4256
98a8e1e5
RH
4257 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4258 (alpha_extract_struct_value_address): Likewise.
4259 (alpha_store_return_value): Likewise.
4260 (alpha_store_struct_return): Remove.
4261 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4262
98a8e1e5
RH
4263 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4264 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4265 macros where appropriate.
4266 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4267 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4268
98a8e1e5
RH
4269 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4270 for SP, GP; void_func_ptr for PC; non-language-specific types
4271 for all others.
4272 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4273
6dd77b81
RH
42742003-06-02 Richard Henderson <rth@redhat.com>
4275
4276 * top.h (lim_at_start): Declare.
4277 * main.c (captured_main): Set it.
4278 * top.c (lim_at_start): Define.
4279 (command_loop): Use it instead of &environ.
4280 * event-top.c (command_handler): Likewise.
4281
f4dbdb54
JT
42822003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4283
4284 * mipsnbsd-tdep.c: Update copyright years.
4285 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4286
8f285956
RH
42872003-06-01 Richard Henderson <rth@redhat.com>
4288
98a8e1e5
RH
4289 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4290 (alpha-linux-tdep.o): Update dependencies.
4291 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4292 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4293
615967cb
RH
42942003-06-01 Richard Henderson <rth@redhat.com>
4295
98a8e1e5
RH
4296 * alpha-tdep.c (alpha_register_reggroup_p): New.
4297 (alpha_gdbarch_init): Register it.
615967cb 4298
b59661bd
AC
42992003-06-02 Andrew Cagney <cagney@redhat.com>
4300
4301 * dwarfread.c: Eliminate "register"
4302 (decode_die_type): Eliminate assignment within "if".
4303 (struct_type, decode_array_element_type): Ditto.
4304 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4305 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4306 (decode_modified_type, completedieinfo): Ditto.
4307 * block.c: Eliminate "register".
4308 (blockvector_for_pc_sect): Eliminate assignment within "if".
4309 * cp-support.h (struct symbol): Opaque declaration.
4310 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4311
5ef165c2
RH
43122003-06-01 Richard Henderson <rth@redhat.com>
4313
98a8e1e5
RH
4314 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4315 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4316
143985b7
AF
43172003-06-01 Adam Fedor <fedor@gnu.org>
4318
4319 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4320 * gdbarch.[ch]: Regenerate.
4321 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4322 (hppa_gdbarch_init): Set it in the gdbarch vector.
4323 * i386-tdep.c (i386_fetch_pointer_argument): New
4324 (i386_gdbarch_init): Set it into gdbarch.
4325 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4326 (rs6000_gdbarch_init): Set it in gdbarch.
4327 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4328 (sparc_gdbarch_init): Set it in gdbarch.
4329
ae0167b9
AC
43302003-06-01 Andrew Cagney <cagney@redhat.com>
4331
7c0b4a20
AC
4332 * defs.h (extract_address): Delete declaration.
4333 * findvar.c (extract_address): Delete function.
4334 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4335 extract_address with the inline equivalent,
4336 extract_unsigned_integer.
4337 (xstormy16_extract_struct_value_address): Ditto.
4338 (xstormy16_pointer_to_address): Ditto.
4339 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4340 * v850-tdep.c (v850_push_arguments): Ditto.
4341 (v850_extract_return_value): Ditto.
4342 (v850_extract_struct_value_address): Ditto.
4343 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4344 (sparcnbsd_get_longjmp_target_64): Ditto.
4345 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4346 (get_longjmp_target): Ditto.
4347 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4348 (sh64_extract_struct_value_address): Ditto.
4349 (sh_push_arguments): Ditto.
4350 (sh64_push_arguments): Ditto.
4351 * remote-vxsparc.c (vx_read_register): Ditto.
4352 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4353 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4354 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4355 * mipsv4-nat.c (get_longjmp_target): Ditto.
4356 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4357 * mips-nat.c (get_longjmp_target): Ditto.
4358 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4359 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4360 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4361 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4362 * irix5-nat.c (get_longjmp_target): Ditto.
4363 * irix4-nat.c (get_longjmp_target): Ditto.
4364 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4365 (ia64_push_arguments): Ditto.
4366 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4367 * h8300-tdep.c (h8300_push_arguments): Ditto.
4368 (h8300_store_return_value): Ditto.
4369 (h8300_extract_struct_value_address): Ditto.
4370 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4371 (frv_push_arguments): Ditto.
4372 * avr-tdep.c (avr_pointer_to_address): Ditto.
4373 (avr_push_arguments): Ditto.
4374 * arm-tdep.c (arm_push_dummy_call): Ditto.
4375 (arm_get_longjmp_target): Ditto.
4376 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4377 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4378 (alpha_get_longjmp_target): Ditto.
4379
ae0167b9
AC
4380 * solib-irix.c (extract_mips_address): Inline extract_address,
4381 replacing it with extract_signed_integer.
4382 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4383 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4384 (first_link_map_member, open_symbol_file_object): Ditto.
4385 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4386 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4387 (LM_NEXT, LM_NAME): Ditto.
4388
44d88583
RH
43892003-06-01 Richard Henderson <rth@redhat.com>
4390
98a8e1e5
RH
4391 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4392 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4393 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4394 (alpha_cannot_store_register): Likewise.
4395 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4396 * alpha-nat.c (supply_gregset): Likewise.
4397 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4398
310e9b6a
AC
43992003-06-01 Andrew Cagney <cagney@redhat.com>
4400
4401 * infcall.c (call_function_by_hand): Update comment on
4402 DEPRECATED_DUMMY_WRITE_SP.
4403
4404 * mips-tdep.c (mips_gdbarch_init): Do not set
4405 deprecated_dummy_write_sp.
4406 (mips_eabi_push_dummy_call): Set the SP register.
4407 (mips_o64_push_dummy_call): Set the SP register.
4408 (mips_o32_push_dummy_call): Set the SP register.
4409 (mips_n32n64_push_dummy_call): Set the SP register.
4410
5ab84872
RH
44112003-06-01 Richard Henderson <rth@redhat.com>
4412
98a8e1e5
RH
4413 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4414 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4415 (supply_gregset): Likewise.
4416 * alpha-tdep.c (alpha_store_return_value): Likewise.
4417 (alpha_get_longjmp_target): Likewise.
4418 (alpha_register_name): Constify array.
4419 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4420 deprecated_register_size, deprecated_register_bytes,
4421 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4422 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4423 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4424
09cc52fd
RH
44252003-06-01 Richard Henderson <rth@redhat.com>
4426
4427 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4428 from arg_reg_buffer to regcache to avoid double conversion.
4429
c7f16359
MK
44302003-06-01 Mark Kettenis <kettenis@gnu.org>
4431
4432 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4433 SP_REGNUM.
4434 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4435 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4436
7131cb6e
RH
44372003-06-01 Richard Henderson <rth@redhat.com>
4438
98a8e1e5
RH
4439 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4440 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4441
f3e0f90b
RH
44422003-06-01 Richard Henderson <rth@redhat.com>
4443
98a8e1e5
RH
4444 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4445 not overlapping PC_REGNUM.
f3e0f90b 4446
c88e30c0
RH
44472003-06-01 Richard Henderson <rth@redhat.com>
4448
98a8e1e5
RH
4449 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4450 alpha_push_arguments. Don't dump argument register data to
4451 the target stack. Fix float and 128-bit long double semantics.
4452 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4453 (alpha_fix_call_dummy): Remove.
4454 (alpha_call_dummy_words): Remove.
4455 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4456
f1a559ae
RH
44572003-06-01 Richard Henderson <rth@redhat.com>
4458
4459 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4460
5e045346
AC
44612003-06-01 Andrew Cagney <cagney@redhat.com>
4462
95404a3e
AC
4463 * mips-tdep.c (is_mips16_addr): New function.
4464 (make_mips16_addr, unmake_mips16_addr): New functions.
4465 (pc_is_mips16, mips_fetch_instruction): Use.
4466 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4467 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4468 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4469 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4470 TARGET_MIPS.
4471 * config/mips/tm-mips.h: Update copyright.
4472 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4473 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4474 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4475 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4476 (TM_PRINT_INSN_MACH): Delete.
4477 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4478
5e045346
AC
4479 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4480 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4481 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4482 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4483 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4484 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4485 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4486 mips*-*-riscos* and mips*-*-sysv* onto mips.
4487 * config/mips/mips64.mt: New file.
4488 * config/mips/mips.mt: New file.
4489 * config/mips/littlemips.mt: Delete file.
4490 * config/mips/decstation.mt: Delete file.
4491 * config/mips/vr4300el.mt: Delete file.
4492 * config/mips/vr5000el.mt: Delete file.
4493 * config/mips/vr5000.mt: Delete file.
4494 * config/mips/vr4100.mt: Delete file.
4495 * config/mips/vr4xxxel.mt: Delete file.
4496 * config/mips/vr4300.mt: Delete file.
4497 * config/mips/vr4xxx.mt: Delete file.
4498 * config/mips/bigmips.mt: Delete file.
4499 * config/mips/bigmips64.mt: Delete file.
4500 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4501 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4502 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4503 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4504 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4505 "tm-bigmips.h".
4506 * config/mips/tm-irix3.h: Ditto.
4507 * config/mips/tm-mipsv4.h: Ditto.
4508 * config/mips/tm-embed.h: Ditto.
4509 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4510 "tm-bigmips64.h".
4511 * config/mips/tm-vr5000el.h: Delete file.
4512 * config/mips/tm-tx39l.h: Delete file.
4513 * config/mips/tm-vr4300el.h: Delete file.
4514 * config/mips/tm-vr4xxxel.h: Delete file.
4515 * config/mips/tm-vr4300.h: Delete file.
4516 * config/mips/tm-vr4100.h: Delete file.
4517 * config/mips/tm-vr4xxx.h: Delete file.
4518 * config/mips/tm-vr5000.h: Delete file.
4519 * config/mips/tm-embedl64.h: Delete file.
4520 * config/mips/tm-embedl.h: Delete file.
4521 * config/mips/tm-embed64.h: Delete file.
4522 * config/mips/tm-bigmips64.h: Delete file.
4523 * config/mips/tm-bigmips.h: Delete file.
4524
2473a4a9
MK
45252003-06-01 Mark Kettenis <kettenis@gnu.org>
4526
97a5b208
MK
4527 Fix gdb/1216.
4528 * shnbsd-nat.c: Include "sh-tdep.h".
4529
2473a4a9
MK
4530 From Richard Henderson <rth@redhat.com>:
4531 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4532
e0f7ec59
AC
45332003-05-31 Andrew Cagney <cagney@redhat.com>
4534
4535 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4536 forward declaration.
4537 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4538 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4539 (mips_find_saved_regs): Use set_reg_offset.
4540 (mips_frame_init_saved_regs): Delete function.
4541 (mips_pop_frame): Call mips_find_saved_regs instead of
4542 DEPRECATED_FRAME_INIT_SAVED_REGS.
4543
68dcc709
AC
45442003-05-31 Andrew Cagney <cagney@redhat.com>
4545
4546 * mips-tdep.c (mips_gdbarch_init): Do not set
4547 deprecated_max_register_raw_size, register_virtual_size, and
4548 deprecated_max_register_virtual_size.
4549
cfc14b3a
MK
45502003-05-31 Mark Kettenis <kettenis@gnu.org>
4551
6405b0a6
MK
4552 * i386-tdep.c: Include "dwarf2-frame.h".
4553 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4554 * Makefile.in (i386-tdep.o): Update dependencies.
4555
cfc14b3a
MK
4556 * dwarf2-frame.c, dwarf2-frame.h: New files.
4557 * Makefile.in (SFILES): Add dwarf2-frame.c.
4558 (dwarf2_frame_h): Define.
4559 (COMMON_OBS): Add dwarf2-frame.o.
4560 (dwarf2-frame.o): Add dependencies.
4561
6a2751d2
AJ
45622003-05-31 Andreas Jaeger <aj@suse.de>
4563
4564 * x86-64-linux-nat.c: Fix comment.
4565
1c3545ae
MK
45662003-05-31 Mark Kettenis <kettenis@gnu.org>
4567
10f93086
MK
4568 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4569 function signature.
4570
1c3545ae
MK
4571 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4572 have a sigcontext_addr handler.
4573 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4574 sigcontext_addr handler.
4575
e11c53d2
AC
45762003-05-31 Andrew Cagney <cagney@redhat.com>
4577
4578 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4579 (print_fp_register_row): Replace do_fp_register_row.
4580 (mips_print_fp_register): Add "file" and "frame" parameters.
4581 (mips_print_register): Add "file" and "frame" parameters.
4582 (mips_print_registers_info): Replace mips_do_registers_info.
4583 (mips_gdbarch_init): Set print_registers_info instead of
4584 deprecated_do_registers_info.
4585 (mips_read_fp_register_single): Add "frame" parameter.
4586 (mips_read_fp_register_double): Add "frame" parameter.
4587
a3386186
MK
45882003-05-31 Mark Kettenis <kettenis@gnu.org>
4589
70913449
MK
4590 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4591 Fixes a bug where GDB would print the wrong register names for
4592 targets without SSE.
4593
2b5e0749
MK
4594 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4595 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4596 registers.
4597
4598 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4599 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4600 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4601 TDEP->sc_sp_offset.
4602
a3386186
MK
4603 From Michal Ludvig <mludvig@suse.cz>:
4604 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4605 and `sc_num_regs'.
4606 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4607 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4608 I386_ST0_REGNUM): Move here from...
4609 * i386-tdep.c: ... here.
4610 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4611 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4612 registers if possible.
4613 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4614 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4615 Remove variables.
4616 (i386bsd_sc_reg_offset): New variable.
4617 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4618 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4619 TDEP->sc_sp_offset.
4620 (i386fbsd_sc_reg_offset): New variable.
4621 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4622 TDEP->sc_num_regs.
4623 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4624 variables.
4625 (i386fbsd4_sc_reg_offset): New variable.
4626 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4627 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4628 TDEP->sc_sp_offset.
4629 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4630 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4631 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4632 Remove variables.
4633 (i386nbsd_sc_reg_offset): New variable.
4634 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4635 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4636 TDEP->sc_sp_offset.
4637 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4638 Remove variables.
4639 (i386obsd_sc_reg_offset): New variable.
4640 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4641 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4642 TDEP->sc_sp_offset.
4643 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4644 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4645 for frame pointer offset in `struct sigcontext'.
4646
25ab4790
AC
46472003-05-31 Andrew Cagney <cagney@redhat.com>
4648
4649 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4650 architecture methods call_dummy_words, sizeof_call_dummy_words,
4651 push_return_address, store_struct_return, and fix_call_dummy. Set
4652 push_dummy_call instead of deprecated_push_arguments.
4653 (mips_store_struct_return): Delete function.
4654 (mips_fix_call_dummy): Delete function.
4655 (mips_push_return_address): Delete function.
4656 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4657 RA_REGNUM and T9_REGNUM.
4658 (mips_n32n64_push_dummy_call): Ditto for
4659 mips_n32n64_push_arguments.
4660 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4661 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4662
6a65450a
AC
46632003-05-31 Andrew Cagney <cagney@redhat.com>
4664
4665 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4666 "dummy_addr" to "bp_addr".
4667 * infcall.c (call_function_by_hand): Pass "funaddr" to
4668 gdbarch_push_dummy_call.
4669 * gdbarch.h, gdbarch.c: Re-generate.
4670 * i386-tdep.c (i386_push_dummy_call): Update.
4671 * arm-tdep.c (arm_push_dummy_call): Update.
4672 * d10v-tdep.c (d10v_push_dummy_call): Update.
4673
c4f35dd8
MK
46742003-05-31 Mark Kettenis <kettenis@gnu.org>
4675
4676 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4677 variable declarations.
4678 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4679 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4680 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4681 x86_64_init_frame_pc, x86_64_init_frame_pc,
4682 x86_64_function_has_prologue): Remove prototypes.
4683 (X86_64_NUM_GREGS): New define.
4684 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4685 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4686 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4687 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4688 XMM1_REGNUM): Remove defines.
4689 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4690 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4691 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4692 X86_64_XMM1_REGNUM): New defines.
4693 (struct x86_64_register_info): Renamed from `struct
4694 register_info'. Remove `size' member.
4695 (x86_64_register_info_table): Remove variable.
4696 (x86_64_register_info): New variable.
4697 (X86_64_NUM_REGS): New define.
4698 (X86_64_NUM_GREGS): Remove define.
4699 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4700 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4701 Remove variables.
4702 (x86_54_dwarf2_reg_to_regnum): Remove function.
4703 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4704 (x86_64_dwarf_reg_to_regnum): New function.
4705 (x86_64_register_name): Rewrite.
4706 (x86_64_register_raw_size): Remove function.
4707 (x86_64_register_byte_table): Remove variable.
4708 (x86_64_register_byte): Remove function.
4709 (x86_64_register_virtual_type): Remove function.
4710 (x86_64_register_type): New function.
4711 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4712 x86_64_register_convert_to_raw): Remove functions.
4713 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4714 (x86_64_use_struct_convention): Make static. Adjust for renamed
4715 defines.
4716 (x86_64_frame_init_saved_regs): Remove function.
4717 (x86_64_push_arguments): Make static. Change to accept a regcache
4718 as argument.
4719 (x86_64_store_return_value, x86_64_extract_return_value): Make
4720 static. Rewrite based on i386 counterparts.
4721 (x86_64_push_dummy_call): New function.
4722 (X86_64_NUM_SAVED_REGS): New define.
4723 (x86_64_register_number): Remove function.
4724 (x86_64_store_struct_return): Remove function.
4725 (x86_64_frameless_function_invocation,
4726 x86_64_function_has_prologue): Remove functions.
4727 (PROLOG_BUFSIZE): Remove define.
4728 (struct x86_64_frame_cache): New structure.
4729 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4730 x86_64_frame_cache, x86_64_frame_this_id,
4731 x86_64_frame_prev_register, x86_64_frame_p,
4732 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4733 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4734 functions.
4735 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4736 variables.
4737 (x86_64_skip_prologue): Rewrite in terms of
4738 x86_64_analyze_prologue.
4739 (x86_64_frame_base_address): New function.
4740 (x86_64_frame_base): New variable.
4741 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4742 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4743 set deprecated_fp_regnum, deprecated_register_size,
4744 deprecated_register_bytes, register_raw_size, register_byte,
4745 register_virtual_type, register_convertiable,
4746 register_convert_to_virtual, convert_to_raw,
4747 deprecated_get_saved_register, deprecated_target_read_fp,
4748 deprecated_push_arguments, deprecated_push_return_address,
4749 deprecated_pop_frame, deprecated_store_struct_return,
4750 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4751 frameless_function_invocation, deprecated_frame_saved_pc,
4752 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4753 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4754 deprecated_init_frame_pc and virtual_frame_pointer. Call
4755 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4756 and x86_64_frame_p. Call frame_base_set_default to register
4757 x86_64_frame_base.
4758 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4759 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4760 (_initialize_x86_64_tdep): Remove function.
4761 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4762 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4763 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4764 define.
4765 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4766 (x86_64_linux_sigcontext_addr): Rewrite.
4767 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4768 x86_64_linux_frame_saved_pc): Remove functions.
4769 (x86_64_linux_pc_in_sigtramp): Renamed from
4770 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4771 trampoline.
4772 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4773 Remove_functions.
4774 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4775 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4776 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4777 (x86_64_regmap): Rename to regmap.
4778 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4779 x86_64_num_gregs.
4780 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4781 x86_64_regmap.
4782 (x86_64_fxsave_offset): Remove function.
4783 (supply_fpregset): Simply call x86_64_supply_fxsave.
4784 (fill_fpregset): Simply call x86_64_fill_fxsave.
4785 (fetch_inferior_registers, store_inferior_registers): Avoid
4786 asignment in if-statement.
4787 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4788 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4789 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4790 (fetch_core_registers): Remove function.
4791 (linux_elf_core_fns): Remove.
4792 (offsetoff): Don't define.
4793 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4794 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4795 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4796 add core-regset.o.
4797 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4798 protection against multiple includes instead of NM_X86_64_h. Add
4799 various comments. Include "config/nm-linux.h". Don't include
4800 <signal.h>.
4801 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4802 GET_THREAD_SIGNALS): Remove defines.
4803 (x86_64_register_u_addr, kernel_u_size,
4804 lin_thread_get_thread_signals): Remove prototypes.
4805 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4806 [HAVE_LINK_H]: Don't include "solib.h".
4807 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4808 * config/i386/tm-x86-64linux.h: Fix comments.
4809 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4810 x86-64-tdep.o): Update dependencies.
4811
c25083af
AC
48122003-05-30 Andrew Cagney <cagney@redhat.com>
4813
c8f55a7b
AC
4814 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4815 Change parameter type to a "struct regcache *".
4816
c25083af
AC
4817 * gdbarch.sh: Regardless of the multi-arch level, always define
4818 the macro when not already defined.
4819 * gdbarch.h, gdbarch.c: Re-generate.
4820
fbe586ae
RH
48212003-05-30 Richard Henderson <rth@redhat.com>
4822
4823 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4824 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4825 (alpha_mdebug_frame_this_id): Likewise.
4826 (alpha_mdebug_frame_prev_register): Likewise.
4827 (alpha_mdebug_frame_base_address): Likewise.
4828 (alpha_mdebug_frame_locals_address): Likewise.
4829 (alpha_mdebug_frame_args_address): Likewise.
4830 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4831 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4832 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4833 loop increment.
4834 (alpha_heuristic_frame_this_id): Make static.
4835 (alpha_heuristic_frame_prev_register): Likewise.
4836 (alpha_heuristic_frame_base_address): Likewise.
4837 * alpha-tdep.h: Update.
4838
acd5c798
MK
48392003-05-30 Mark Kettenis <kettenis@gnu.org>
4840
4841 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4842 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4843 defenitions.
4844 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4845 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4846 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4847 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4848 I386_ST0_REGNUM): New defines.
4849 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4850 codestream_get): Remove define.
4851 (codestream_next_addr, condestream_addr, condestream_buf,
4852 codestream_off, codestream_cnt): Remove variables.
4853 (codestream_fill, codestream_seek, codestream_read): Remove
4854 functions.
4855 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4856 functionality.
4857 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4858 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4859 i386_frame_saved_pc, i386_saved_pc_after_call,
4860 i386_frame_num_args, i386_frame_init_saved_regs,
4861 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4862 i386_push_arguments): Remove functions.
4863 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4864 functionality. Use i386_analyze_prologue instead of
4865 i386_get_frame_setup.
4866 (I386_NUM_SAVED_REGS): New define.
4867 (struct i386_frame_cache): New structure.
4868 (i386_alloc_frame_cache, i386_analyze_struct_return,
4869 i386_skip_probe, i386_analyze_frame_setup,
4870 i386_analyze_register_saves, i386_analyze_prologue,
4871 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4872 i386_frame_prev_register, i386_sigtramp_frame_cache,
4873 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4874 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4875 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4876 New functions.
4877 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4878 New variables.
4879 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4880 I386_EAX_REGNUM and I386_EDX_REGNUM.
4881 (i386_extract_return_value, i386_store_return_value): Use
4882 I386_ST0_REGNUM where appropriate.
4883 (i386_extract_struct_value_address): Rewrite to use extract_address.
4884 (i386_svr4_pc_in_sigtramp): Add comment.
4885 (i386_svr4_sigcontext_addr): Rewrite.
4886 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4887 TDEP->sc_sp_offset.
4888 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4889 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4890 of new defines. Set push_dummy_call, don't set
4891 deprecated_push_arguments, deprecated_push_return_address,
4892 deprecated_pop_frame. Don't set parm_boundary. Don't set
4893 deprecated_frame_chain, deprecated_frame_saved_pc,
4894 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4895 save_dummy_frame_tos, unwind_pc. Call
4896 frame_unwind_append_predicate and frame_base_set_default. Don't
4897 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4898 Don't set frameless_function_invocation. Don't set
4899 deprecated_register_bytes, deprecated_register_size,
4900 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4901 * i386-linux-tdep.c: Fix formatting in some comments.
4902 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4903 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4904 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4905 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4906 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4907 redundant parentheses.
4908 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4909 (i386_linux_sigcontext_addr): Use it. Rewrite.
4910 (find_minsym_and_objfile): Change name of second argument.
4911 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4912 changed. Use frame_pc_unwind instead of
4913 DEPRECATED_SAVED_PC_AFTER_CALL.
4914 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4915 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4916 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4917 unwinder.
4918 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4919 "dummy-frame.h".
4920 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4921 (_initialize_i386_cygwin_tdep): New prototype.
4922 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4923 deprecated_frame_chain_valid.
4924 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4925 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4926 Rely on the SVR4 defaults.
4927 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4928 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4929
c89b70f1
AC
49302003-05-30 Andrew Cagney <cagney@redhat.com>
4931
4932 * infcall.c (call_function_by_hand): Always call
4933 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4934
85b32d22
RH
49352003-05-30 Richard Henderson <rth@redhat.com>
4936
c89b70f1
AC
4937 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4938 increment.
85b32d22 4939
bfe51b1e
JB
49402003-05-29 Jim Blandy <jimb@redhat.com>
4941
4942 Use gdbarch methods for solib stuff on PowerPC Linux.
4943 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4944 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4945 show through.
4946 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4947 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4948 giving the same effect as the #definitions above.
4949
1abf022c
AF
49502003-05-29 Adam Fedor <fedor@gnu.org>
4951
4952 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4953 (find_implementation_from_class): Replace it with the standard
4954 case i.e. do nothing.
4955
d2427a71
RH
49562003-05-29 Richard Henderson <rth@redhat.com>
4957
4958 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4959 (alpha_linux_sigtramp_offset): Use it. Make static.
4960 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4961 update for new frame model.
4962 * alpha-mdebug-tdep.c: New file.
4963 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4964 (alpha_osf1_init_abi): Install it.
4965 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4966 (linked_proc_desc_table): Remove.
4967 (alpha_frame_past_sigtramp_frame): Remove.
4968 (alpha_dynamic_sigtramp_offset): Remove.
4969 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4970 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4971 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4972 (push_sigtramp_desc): Remove.
4973 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4974 (alpha_cannot_store_register): Likewise.
4975 (alpha_sigcontext_addr): Remove.
4976 (alpha_find_saved_regs): Remove.
4977 (alpha_frame_init_saved_regs): Remove.
4978 (alpha_init_frame_pc_first): Remove.
4979 (read_next_frame_reg): Remove.
4980 (alpha_frame_saved_pc): Remove.
4981 (alpha_saved_pc_after_call): Remove.
4982 (temp_proc_desc, temp_saved_regs): Remove.
4983 (alpha_about_to_return): Remove.
4984 (cached_proc_desc): Remove.
4985 (alpha_frame_chain): Remove.
4986 (alpha_print_extra_frame_info): Remove.
4987 (alpha_init_extra_frame_info): Remove.
4988 (alpha_frame_locals_address): Remove.
4989 (alpha_frame_args_address): Remove.
4990 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4991 (alpha_push_dummy_frame): Remove.
4992 (alpha_pop_frame): Remove.
4993 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4994 (alpha_read_insn): New.
4995 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4996 for different insn encodings.
4997 (alpha_in_lenient_prologue): Remove.
4998 (struct alpha_sigtramp_unwind_cache): New.
4999 (alpha_sigtramp_frame_unwind_cache): New.
5000 (alpha_sigtramp_register_address): New.
5001 (alpha_sigtramp_frame_this_id): New.
5002 (alpha_sigtramp_frame_prev_register): New.
5003 (alpha_sigtramp_frame_unwind): New.
5004 (alpha_sigtramp_frame_p): New.
5005 (struct alpha_heuristic_unwind_cache): New.
5006 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5007 don't count nop insns that occur between functions.
5008 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5009 heuristic_proc_desc, but without the mdebug wrapping.
5010 (alpha_heuristic_frame_this_id): New.
5011 (alpha_heuristic_frame_prev_register): New.
5012 (alpha_heuristic_frame_unwind): New.
5013 (alpha_heuristic_frame_p): New.
5014 (alpha_heuristic_frame_base_address): New.
5015 (alpha_heuristic_frame_base): New.
5016 (alpha_unwind_dummy_id): New.
5017 (alpha_unwind_pc): New.
5018 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5019 frame related deprecated initializations; install replacements.
5020 (alpha_dump_tdep): Remove.
5021 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5022 (alpha_read_insn, alpha_after_prologue,
5023 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5024 alpha_heuristic_frame_prev_register,
5025 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5026 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5027 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5028 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5029
93ec1121
AC
50302003-05-29 Andrew Cagney <cagney@redhat.com>
5031
5032 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5033 dependant on the availability of ASSERT_FUNCTION.
5034 (ASSERT_FUNCTION): Do not define when there is no function name.
5035
98f08d3d
KB
50362003-05-29 Kevin Buettner <kevinb@redhat.com>
5037
5038 From Jimi X <jimix@watson.ibm.com>:
5039 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5040
0897f59b
JB
50412003-05-28 Jim Blandy <jimb@redhat.com>
5042
5043 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5044 argument to ptrace to int; the system headers should give it the
5045 right type, and pointers don't fit in ints on powerpc64-*-*.
5046
14898363
L
50472003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5048
5049 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5050 DW_TAG_catch_block.
5051
a7a48797
EZ
50522003-05-26 Elena Zannoni <ezannoni@redhat.com>
5053
5054 * stabsread.c (dbx_lookup_type): Make static.
5055 (read_type): Ditto.
5056 (add_undefined_type): Ditto.
5057 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5058 not export.
5059
f5479e9c
EZ
50602003-05-26 Elena Zannoni <ezannoni@redhat.com>
5061
5062 * hpread.c (hpread_has_name): Make static.
5063 (hpread_psymtab_to_symtab): Ditto.
5064 (file_exists): Ditto.
5065 (hpread_call_pxdb): Ditto.
5066 (hpread_pxdb_needed): Ditto.
5067 (hpread_quick_traverse): Ditto.
5068 (hpread_get_header): Ditto.
5069 (hpread_get_lntt): Ditto.
5070 (hpread_get_slt): Ditto.
5071 (class_of): Ditto.
5072
eb2e12d7
AS
50732003-05-25 Andreas Schwab <schwab@suse.de>
5074
78bf922a
AS
5075 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5076 stack_align and deprecated_extra_stack_alignment_needed.
5077 (m68k_stack_align): Delete.
5078
eb2e12d7
AS
5079 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5080 (m68k_register_virtual_size): Likewise.
5081 (altos_skip_prologue): Remove obsolete function.
5082 (isi_frame_num_args): Likewise.
5083 (news_frame_num_args): Likewise.
5084 (m68k_fix_call_dummy): Make static.
5085 (m68k_push_dummy_frame): Likewise.
5086 (m68k_pop_frame): Likewise.
5087 (m68k_skip_prologue): Likewise.
5088 (m68k_frame_init_saved_regs): Likewise.
5089 (m68k_saved_pc_after_call): Likewise.
5090 (m68k_get_longjmp_target): Make multi-arch.
5091 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5092 structure. Register m68k_get_longjmp_target if enabled.
5093 * m68k-tdep.h (struct gdbarch_tdep): Define.
5094 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5095
5096 * Makefile.in (config.status): Also depend on configure.tgt
5097 and configure.host.
5098 (m68klinux-tdep.o): Update dependencies.
5099 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5100 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5101 (M68K_LINUX_JB_PC): Define.
5102 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5103 and take additional parameter.
5104 (m68k_linux_sigtramp_saved_pc): Update.
5105 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5106 m68k_linux_pc_in_sigtramp, in_plt_section,
5107 find_solib_trampoline_target.
5108 * config/m68k/tm-linux.h: Don't include any tm headers.
5109 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5110 (JB_ELEMENT_SIZE): Likewise.
5111 (JB_PC): Likewise.
5112 (GET_LONGJMP_TARGET): Likewise.
5113 (IN_SIGTRAMP): Likewise.
5114 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5115
eb2c22dc
MK
51162003-05-25 Mark Kettenis <kettenis@gnu.org>
5117
5118 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5119 (sparc32_push_arguments): Re-implement by calling
5120 sparc32_do_push_arguments.
5121
44b7b84e
MK
51222003-05-25 Mark Kettenis <kettenis@gnu.org>
5123
5124 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5125 SPARC_O1_REGNUM): New defines.
5126 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5127 (sparc32_store_return_value): New function.
5128 (sparc_extract_struct_value_address): Rewrite to operate on a
5129 regcache.
5130 (sparc_gdbarch_init): Don't set
5131 deprecated_extract_struct_value_address. Set
5132 extract_struct_value_address instead. Don't set
5133 deprecated_extract_return_value and deprecated_store_return_value
5134 for 32-bit targets. Set extract_return_value and
5135 store_return_value instead.
5136 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5137 DEPRECTAED_EXTRACT_RETURN_VALUE,
5138 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5139 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5140 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5141 (sparc_store_return_value): Remove prototype.
5142 (sparc32_store_return_value): New prototype.
5143 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5144 Adjust prototypes.
5145
f6ad61e3
MK
51462003-05-24 Mark Kettenis <kettenis@gnu.org>
5147
5148 * sparcnbsd-tdep.c: Include "gdb_string.h".
5149
b276f1bb
AC
51502003-05-23 Andrew Cagney <cagney@redhat.com>
5151
5152 * p-valprint.c (pascal_val_print): Replace extract_address with
5153 the inline equivalent extract_unsigned_integer.
5154 * jv-valprint.c (java_value_print): Ditto.
5155 * ada-valprint.c (ada_val_print_1): Ditto.
5156 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5157
e76c5fcc
TR
51582003-05-23 Theodore A. Roth <troth@openavr.org>
5159
5160 * blockframe.c (frameless_look_for_prologue): Remove unused
5161 after_prologue variable.
5162
2cdd89cb
MK
51632003-05-23 Mark Kettenis <kettenis@gnu.org>
5164
5165 * blockframe.c (get_pc_function_start): Rewrite to avoid
5166 asignments in if-statements.
5167
182d43bc
EZ
51682003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5169
5170 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5171 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5172 files, don't relocate absolute symbols (and do use mst_abs).
5173
e8f3fcdd
AC
51742003-05-23 Andrew Cagney <cagney@redhat.com>
5175
5176 * objc-lang.c: Include "gdb_assert.h".
5177 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5178 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5179 (gdb_check, gdb_check_fatal): Delete functions.
5180 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5181 gdb_assert.
5182 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5183 * Makefile.in (objc-lang.o): Update dependencies.
5184
3c23e6fb
ILT
51852003-05-22 Ian Lance Taylor <ian@airs.com>
5186
5187 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5188 with fprintf_filtered, not fprintf_unfiltered.
5189
af1342ab
AC
51902003-05-22 Andrew Cagney <cagney@redhat.com>
5191
5192 * stack.c (frame_info): Inline extract_address, replacing it with
5193 extract_unsigned_integer.
5194 * findvar.c (unsigned_pointer_to_address): Ditto.
5195 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5196 * dwarf2expr.c (dwarf2_read_address): Ditto.
5197 * frame.c (frame_pc_unwind): Update comment.
5198 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5199
47e242ec
JJ
52002003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5201
5202 * infptrace.c (detach): Call print_sys_errmsg rather than
5203 perror_with_name to issue warning message when errno is non-zero
5204 after calling ptrace detach.
5205
e2ac8128
JB
52062003-05-21 J. Brobecker <brobecker@gnat.com>
5207
5208 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5209 macro definitions from here...
5210 * hppa-tdep.c: ...to there.
5211
92b3541e
KB
52122003-05-20 Kevin Buettner <kevinb@redhat.com>
5213
5214 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5215 register_ptrace_addr(). Fix all callers.
5216
55809acb
AS
52172003-05-21 Andreas Schwab <schwab@suse.de>
5218
5219 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5220 dependencies.
5221 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5222 end.
5223 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5224 (_initialize_m68k_linux_tdep): New function.
5225 (m68k_linux_frame_saved_pc): Make static.
5226 (m68k_linux_extract_return_value): Likewise.
5227 (m68k_linux_store_return_value): Likewise.
5228 (m68k_linux_extract_struct_value_address): Likewise.
5229 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5230 Remove.
5231 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5232 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5233 (DEPRECATED_FRAME_SAVED_PC): Remove.
5234
0fbc10f7
KW
52352003-05-20 Kris Warkentin <kewarken@qnx.com>
5236
5237 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5238 regset numbering rather than our own.
5239
58da2eb2
DC
52402003-05-19 David Carlton <carlton@bactrian.org>
5241
5242 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5243
1fcb5155
DC
52442003-05-19 David Carlton <carlton@bactrian.org>
5245
5246 Partial fix for PR c++/827.
5247 * cp-support.h: Include symtab.h.
5248 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5249 * cp-namespace.c: Update contributors.
5250 (cp_lookup_symbol_nonlocal): New.
5251 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5252 (lookup_symbol_file): Ditto.
5253 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5254 * block.h: Declare block_scope, block_using, block_global_block.
5255 * block.c (block_scope): New.
5256 (block_using, block_global_block): Ditto.
5257 * Makefile.in (cp_support_h): Depend on symtab_h.
5258 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5259
5f9a71c3
DC
52602003-05-19 David Carlton <carlton@bactrian.org>
5261
5262 * language.h (struct language_defn): Add 'la_value_of_this'
5263 and 'la_lookup_symbol_nonlocal' members.
5264 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5265 lookup_symbol_static, lookup_symbol_global,
5266 lookup_symbol_aux_block.
5267 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5268 if we should search fields of this and how to do static/global
5269 lookup.
5270 (lookup_symbol_aux_block): Make extern.
5271 (basic_lookup_symbol_nonlocal): New.
5272 (lookup_symbol_static, lookup_symbol_global): Ditto.
5273 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5274 'la_lookup_symbol_nonlocal' members.
5275 * c-lang.c (c_language_defn, cplus_language_defn)
5276 (asm_language_defn, minimal_language_defn): Ditto.
5277 * jv-lang.c (java_language_defn): Ditto.
5278 * language.c (unknown_language_defn, auto_language_defn)
5279 (local_language_defn): Ditto.
5280 * m2-lang.c (m2_language_defn): Ditto.
5281 * objc-lang.c (objc_language_defn): Ditto.
5282 * scm-lang.c (scm_language_defn): Ditto.
5283 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5284 * p-lang.c (pascal_language_defn): Ditto for both.
5285 * Makefile.in (f-lang.o): Depend on value_h.
5286 (p-lang.o): Ditto.
5287
89a9d1b1
DC
52882003-05-19 David Carlton <carlton@bactrian.org>
5289
5290 * block.h: Declare block_static_block.
5291 * block.c (block_static_block): New.
5292 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5293 lookup_symbol_aux_local, calling block_static_block instead.
5294 (lookup_symbol_aux_local): Delete 'static_block' argument.
5295
eed3f8ab
DC
52962003-05-19 David Carlton <carlton@bactrian.org>
5297
5298 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5299
a09d8bda
ML
53002003-05-19 Michal Ludvig <mludvig@suse.cz>
5301
5302 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5303 register numbers mapping.
5304
69636828
AF
53052003-05-18 Adam Fedor <fedor@gnu.org>
5306
5307 * symtab.c (completion_list_objc_symbol): New function.
5308 (make_symbol_completion_list): Use it to add ObjC symbols
5309 when looking though the list.
5310 (language_search_unquoted_string): New function.
5311 (make_file_symbol_completion_list): Use it.
5312
55baeb84
AS
53132003-05-18 Andreas Schwab <schwab@suse.de>
5314
d0b45d99
AS
5315 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5316 dependencies.
5317 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5318 as m68k_linux_extract_return_value.
5319 (DEPRECATED_STORE_RETURN_VALUE): Define as
5320 m68k_linux_store_return_value.
5321 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5322 m68k_linux_extract_struct_value_address.
5323 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5324 get_next_frame, get_frame_base, get_frame_pc.
5325 (m68k_linux_frame_saved_pc): Use get_frame_base.
5326 (m68k_linux_extract_return_value): New function.
5327 (m68k_linux_store_return_value): New function.
5328 (m68k_linux_extract_struct_value_address): New function.
5329 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5330
55baeb84
AS
5331 * c-exp.y (typebase): Remove duplicate occurence of
5332 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5333 of lookup_signed_typename.
55baeb84 5334
b6b08ebf
MK
53352003-05-18 Mark Kettenis <kettenis@gnu.org>
5336
5337 * dwarf2loc.c (find_location_expression): Change type of second
5338 argument to `size_t *'.
5339 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5340 for size variable.
5341
5ad1c190
DC
53422003-05-18 David Carlton <carlton@bactrian.org>
5343
5344 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5345 'linkage_name'. Add comment.
5346 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5347 'linkage_name'.
5348 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5349 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5350 (lookup_block_symbol): Ditto.
5351
b8b527c5
AC
53522003-05-16 Andrew Cagney <cagney@redhat.com>
5353
5354 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5355 * gdbarch.h, gdbarch.c: Re-generate.
5356 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5357 * TODO (REGISTER_BYTES): Delete reference.
5358 * alpha-tdep.c (alpha_gdbarch_init): Update.
5359 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5360 * x86-64-tdep.c (x86_64_init_abi): Update.
5361 * vax-tdep.c (vax_gdbarch_init): Update.
5362 * v850-tdep.c (v850_gdbarch_init): Update.
5363 * sparc-tdep.c (sparc_gdbarch_init): Update.
5364 * sh-tdep.c (sh_gdbarch_init): Update.
5365 * s390-tdep.c (s390_gdbarch_init): Update.
5366 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5367 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5368 (ns32k_gdbarch_init_32382): Update.
5369 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5370 * mcore-tdep.c (mcore_gdbarch_init): Update.
5371 * m68k-tdep.c (m68k_gdbarch_init): Update.
5372 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5373 * ia64-tdep.c (ia64_gdbarch_init): Update.
5374 * i386-tdep.c (i386_gdbarch_init): Update.
5375 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5376 * hppa-tdep.c (hppa_gdbarch_init): Update.
5377 * h8300-tdep.c (h8300_gdbarch_init): Update.
5378 * frv-tdep.c (frv_gdbarch_init): Update.
5379 * cris-tdep.c (cris_gdbarch_init): Update.
5380 * avr-tdep.c (avr_gdbarch_init): Update.
5381 * arm-tdep.c (arm_gdbarch_init): Update.
5382 * sparc-tdep.c (sparc_pop_frame): Update.
5383 * rs6000-tdep.c (rs6000_pop_frame): Update.
5384 * remote.c (init_remote_state): Update.
5385 (remote_prepare_to_store): Update.
5386 * remote-vx.c (vx_prepare_to_store): Update.
5387 * remote-sds.c (sds_fetch_registers): Update.
5388 (sds_prepare_to_store): Update.
5389 * remote-array.c: Update.
5390 * regcache.c (init_legacy_regcache_descr): Update.
5391 (init_regcache_descr): Update.
5392 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5393 (mips_o64_extract_return_value): Update.
5394 * irix5-nat.c (fetch_core_registers): Update.
5395 * irix4-nat.c (fetch_core_registers): Update.
5396 * i386-tdep.h: Update.
5397 * hppa-tdep.c (pa_do_registers_info): Update.
5398 (pa_do_strcat_registers_info): Update.
5399 * cris-tdep.c (cris_register_bytes_ok): Update.
5400 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5401 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5402 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5403 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5404 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5405 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5406 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5407 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5408 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5409 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5410 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5411 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5412 (REGISTER_BYTES_OK): Update.
5413 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5414 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5415
ee2842e2
ILT
54162003-05-16 Ian Lance Taylor <ian@airs.com>
5417
5418 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5419 (vax_print_insn, print_insn_arg): Remove static functions.
5420 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5421 print_insn_vax from opcodes library.
5422 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5423
973177d3
AC
54242003-05-15 Andrew Cagney <cagney@redhat.com>
5425
aaab4dba
AC
5426 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5427 * target.h (memory_breakpoint_from_pc): Delete declaration.
5428 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5429 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5430 * monitor.c (monitor_insert_breakpoint): Use
5431 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5432 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5433 * gdbarch.h, gdbarch.c: Re-generate.
5434 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5435 (sparc_gdbarch_init): Set breakpoint_from_pc to
5436 sparc_breakpoint_from_pc.
5437 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5438 (BREAKPOINT_FROM_PC): Define.
5439 (sparc_breakpoint_from_pc): Declare.
5440 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5441 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5442 (BREAKPOINT_FROM_PC): Define.
5443 (BREAKPOINT): Delete macro.
5444 * target.h: Update comment.
5445 * s390-tdep.c (s390_gdbarch_init): Update comments.
5446 * remote.c: Update comments.
5447 * remote-mips.c: Update comments.
5448 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5449 * mem-break.c: Update comment.
5450 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5451 (ia64_memory_insert_breakpoint): Update.
5452 * config/sparc/tm-sparc.h: Update comment.
5453 * config/pa/tm-hppa64.h: Update comment.
5454 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5455 (rs6000_breakpoint_from_pc): Update.
5456 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5457 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5458 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5459 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5460 (mips_breakpoint_from_pc): Update.
5461 (mips_dump_tdep): Update.
5462
e06963ff
AC
5463 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5464 * minsyms.c (lookup_minimal_symbol): Inline
5465 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5466
973177d3
AC
5467 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5468 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5469 * p-lang.c (pascal_printstr): Ditto.
5470 * objc-lang.c (objc_printstr): Ditto.
5471 * m2-lang.c (m2_printstr): Ditto.
5472 * jv-valprint.c (java_print_value_fields): Ditto.
5473 * f-lang.c (f_printstr): Ditto.
5474 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5475 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5476 for repeat_count_threshold.
5477 * Makefile.in (cp-valprint.o): Update dependencies.
5478
5ea2bd7f 54792003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5480
5ea2bd7f
JJ
5481 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5482 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5483 they start with mov r2,r12. Support skipping over indirect stores
5484 of the input registers. Upon hitting a non-nop branch instruction
5485 or predicated instruction, bail out by setting lim_pc to the current
5486 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5487 beyond our calculated value and we have trust_limit set,
5488 use the lim_pc value.
5489
cc8c88f3
AC
54902003-05-15 Andrew Cagney <cagney@redhat.com>
5491
5492 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5493 generic_find_dummy_frame.
5494 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5495 (deprecated_generic_find_dummy_frame): Update.
5496 (deprecated_read_register_dummy): Update.
5497 * frame.c (deprecated_generic_get_saved_register): Update.
5498
909cd28e
TR
54992003-05-15 Theodore A. Roth <troth@openavr.org>
5500
5501 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5502 (avr_gdbarch_init): Set breakpoint_from_pc method.
5503
b923b08d
AC
55042003-05-15 Andrew Cagney <cagney@redhat.com>
5505
5506 * regcache.c (build_regcache): Set deprecated_register_valid
5507 directly.
5508 (deprecated_grub_regcache_for_register_valid): Delete function.
5509 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5510 declaration.
5511
ae2f03ac 55122003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5513
5514 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5515 * symtab.c (lookup_symbol_aux): Delete calls to
5516 lookup_symbol_aux_minsyms.
5517 (lookup_symbol_aux_minsyms): Comment out function and
5518 prototype. Delete lookup by mangled name.
ae2f03ac 5519
18ec9831
KB
55202003-05-14 Kevin Buettner <kevinb@redhat.com>
5521
5522 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5523 correctly indicate an empty stack and ``stack_allocated'' to the
5524 indicate the number of elements initially allocated.
5525 (dwarf_expr_grow_stack): Simplify method for computing new
5526 stack size. Don't loop infinitely if ``stack_len'' is zero.
5527 (execute_stack_op): Move ``ctx->in_reg'' initialization
5528 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5529 be used in conjuction with DW_OP_piece. Revise error message
5530 accordingly.
5531
de18ac1f
TR
55322003-05-14 Theodore A. Roth <troth@openavr.org>
5533
5534 * MAINTAINERS: Update my email address.
5535 * avr-tdep.c: Ditto.
5536
176620f1
EZ
55372003-05-14 Elena Zannoni <ezannoni@redhat.com>
5538
5539 * symtab.h (enum domain_enum): Rename from namespace_enum.
5540 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5541 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5542 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5543 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5544 TYPES_NAMESPACE, METHODS_NAMESPACE.
5545 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5546 (struct symbol, struct partial_symbol): Rename field
5547 'namespace_enum namespace' to 'domain_enum domain'.
5548 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5549 Delete old define kludge for namespace.
5550
5551 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5552 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5553 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5554 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5555 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5556 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5557 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5558 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5559 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5560 occurrences of the above.
5561
b7f31508
ILT
55622003-05-14 Ian Lance Taylor <ian@airs.com>
5563
5564 * Makefile.in (install-only): Use $(SHELL) when running
5565 mkinstalldirs.
5566
2fdbdd39
ILT
55672003-05-13 Ian Lance Taylor <ian@airs.com>
5568
a208d82c
ILT
5569 * MAINTAINERS (write after approval): Add myself.
5570
2fdbdd39
ILT
5571 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5572 second and third arguments.
5573 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5574 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5575
fbd9dcd3
AC
55762003-05-13 Andrew Cagney <cagney@redhat.com>
5577
5578 * defs.h (store_address): Delete declaration.
5579 findvar.c (store_address): Delete function.
5580 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5581 store_unsigned_integer.
5582 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5583 * v850-tdep.c (v850_push_arguments): Ditto.
5584 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5585 * sh-tdep.c (sh64_get_saved_register): Ditto.
5586 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5587 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5588 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5589 (mips_get_saved_register): Ditto.
5590 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5591 (find_func_descr, ia64_push_arguments): Ditto.
5592 * i386-tdep.c (i386_push_arguments): Ditto.
5593 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5594 * frv-tdep.c (frv_push_arguments): Ditto.
5595 * frame.c (legacy_saved_regs_prev_register): Ditto.
5596 (deprecated_generic_get_saved_register): Ditto.
5597 * findvar.c (unsigned_address_to_pointer): Ditto.
5598 * dwarf2read.c (dwarf2_const_value): Ditto.
5599 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5600 * alpha-tdep.c (alpha_push_arguments): Ditto.
5601
6760f9e6
JB
56022003-05-12 J. Brobecker <brobecker@gnat.com>
5603
5604 * NEWS: Mention that the hppa-hpux port has been partially
5605 multiarched (32bit ABIT only, so far).
5606
30e221b4
AC
56072003-05-11 Andrew Cagney <cagney@redhat.com>
5608
5609 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5610 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5611 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5612 sim/testsuite/sim/arm/misaligned2.ms, and
5613 sim/testsuite/sim/arm/misaligned3.ms.
5614 * disasm.h (struct ui_file): Add opaque struct declaration.
5615 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5616 * frame.h (struct ui_file): Ditto.
5617
dea7f9ba
MK
56182003-05-11 Mark Kettenis <kettenis@gnu.org>
5619
5620 * value.h: Pretty print.
5621
01986c48
MK
56222003-05-10 Mark Kettenis <kettenis@gnu.org>
5623
5624 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5625
123a958e
AC
56262003-05-08 Andrew Cagney <cagney@redhat.com>
5627
5628 * regcache.h (max_register_size): Delete declaration.
5629 * regcache.c (max_register_size): Delete function.
5630 (struct regcache_descr): Delete field "max_register_size".
5631 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5632 registers fit in MAX_REGISTER_SIZE.
5633 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5634 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5635 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5636 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5637 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5638 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5639 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5640 * dve3900-rom.c, hppa-tdep.c: Ditto.
5641
eb294659
DC
56422003-05-08 David Carlton <carlton@math.stanford.edu>
5643
5644 * valops.c (push_word): Fix typo.
5645
d9d9c31f
AC
56462003-05-08 Andrew Cagney <cagney@redhat.com>
5647
5648 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5649 * gdbarch.h: Re-generate.
5650 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5651 (legacy_max_register_raw_size): Delete declaration.
5652 * regcache.c (legacy_max_register_raw_size): Delete function.
5653 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5654 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5655 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5656 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5657 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5658 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5659 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5660 * findvar.c, dwarf2cfi.c: Ditto.
5661
22540ece
AC
56622003-05-08 Andrew Cagney <cagney@redhat.com>
5663
5664 * mips-tdep.c (read_signed_register): New function, moved to here
5665 from "regcache.c".
5666 (read_signed_register_pid): Ditto.
5667 * regcache.c (read_signed_register_pid): Delete function, moved to
5668 "mips-tdep.c".
5669 (read_signed_register): Ditto.
5670 * regcache.h (read_signed_register): Delete declaration.
5671 (read_signed_register_pid): Delete declaration.
5672
0c92afe8
AC
56732003-05-08 Andrew Cagney <cagney@redhat.com>
5674
5675 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5676 * gdbarch.h: Re-generate.
5677 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5678 (legacy_max_register_virtual_size): Delete declaration.
5679 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5680 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5681 * tracepoint.c (memrange_sortmerge): Ditto.
5682 * sparc-tdep.c (sparc_print_registers): Ditto.
5683 * regcache.c (legacy_max_register_virtual_size): Delete function.
5684
6037b830
JB
56852002-05-08 J. Brobecker <brobecker@gnat.com>
5686
5687 * fork-child.c (escape_bang_in_quoted_argument): New function.
5688 (fork_inferior): Escape '!' characters in quoted arguments
5689 only when needed.
5690
5d62c8b1
JB
56912003-05-08 J. Brobecker <brobecker@gnat.com>
5692
5693 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5694 the language of the CU is not currently supported by GDB.
5695
20a0e81d
JB
56962003-05-08 J. Brobecker <brobecker@gnat.com>
5697
5698 * defs.h (language): Add language_minimal enum value.
5699 * c-lang.c (minimal_language_defn): New language definition.
5700 (_initialize_c_language): Add the new minimal language to the list
5701 of languages known to GDB.
5702
710ee10a
KB
57032003-05-08 Kevin Buettner <kevinb@redhat.com>
5704
5705 * frame.c (get_frame_type): Don't attempt to lazily initialize
5706 frame's unwinder for legacy frames.
5707
1750fa04
AC
57082003-05-07 Andrew Cagney <cagney@redhat.com>
5709
5710 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5711 and "regcache" parameters.
5712 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5713
ddf9f258 57142003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5715
5716 * dwarf2read.c (dwarf_decode_lines): Only use output of
5717 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5718 the current address.
5719
87767c29
AC
57202003-05-07 Andrew Cagney <cagney@redhat.com>
5721
5722 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5723 code.
5724
5e7b2f39
JB
57252003-05-07 Jim Blandy <jimb@redhat.com>
5726
5727 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5728 'maint info symtabs' and 'maint info psymtabs'.
5729 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5730 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5731 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5732 Declarations updated.
5733 * maint.c (maintenance_list_command): Delete.
5734 (_initialize_maint_cmds): Update calls to add_cmd.
5735 * gdbcmd.h (maintenancelistlist): Delete declaration.
5736 * cli/cli-cmds.c (maintenancelistlist): Delete.
5737 (init_cmd_lists): Don't initialize it.
5738 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5739
f6684c31
AC
57402003-05-07 Andrew Cagney <cagney@redhat.com>
5741
5742 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5743 "regcache".
5744 (d10v_print_registers_info): Update.
5745 (d10v_dmap_register, d10v_imap_register): Delete functions.
5746 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5747 and "imap_register".
5748 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5749 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5750 * arch-utils.c (generic_remote_translate_xfer_address): Add
5751 "regcache" and "gdbarch" parameters.
5752 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5753 parameter. Change class to multi-arch.
5754 * gdbarch.h, gdbarch.c: Re-generate.
5755 * remote.c (remote_xfer_memory): Use
5756 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5757
e4846b08
JJ
57582003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5759
5760 * infrun.c (prev_pc): Move declaration ahead of proceed().
5761 (proceed): Refresh prev_pc value before resuming.
5762 (stop_stepping): Remove code to refresh prev_pc.
5763
6b71b8ac
KW
57642003-05-06 Kris Warkentin <kewarken@qnx.com>
5765
5766 * nto-tdep.c: Removed stray comment.
5767
47979a4b
KW
57682003-05-06 Kris Warkentin <kewarken@qnx.com>
5769
5770 * i386-nto-tdep.c: Fix old K&R function definitions.
5771 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5772 Also change add_show_from_set() call to add_setshow_cmd().
5773 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5774
00905d52
AC
57752003-05-05 Andrew Cagney <cagney@redhat.com>
5776
5777 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5778 (fprint_dummy_frames): New function.
5779 (maintenance_print_dummy_frames): New function.
5780 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5781 * frame.c (fprint_frame_id): Make global.
5782 * frame.h (fprint_frame_id): Declare.
5783 * Makefile.in (dummy-frame.o): Update dependencies.
5784
b1e29e33
AC
57852003-05-05 Andrew Cagney <cagney@redhat.com>
5786
5787 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5788 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5789 SIZEOF_CALL_DUMMY_WORDS.
5790 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5791 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5792 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5793 CALL_DUMMY_BREAKPOINT_OFFSET.
5794 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5795 CALL_DUMMY_START_OFFSET.
5796 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5797 * gdbarch.h, gdbarch.c: Re-generate.
5798 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5799 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5800 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5801 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5802 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5803 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5804 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5805 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5806 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5807 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5808 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5809 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5810 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5811 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5812 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5813
58142003-05-05 Kris Warkentin <kewarken@qnx.com>
5815
5816 * configure.tgt: Add i[3456]86-*-nto*.
5817 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5818 * nto-tdep.c: New file. Neutrino target support routines.
5819 * nto-tdep.h: New file. Neutrino target header.
5820 * config/tm-qnxnto.h: New file.
5821 * config/i386/i386nto.mt: New file.
5822 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5823
0ce3d317
AC
58242003-05-04 Andrew Cagney <cagney@redhat.com>
5825
5826 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5827 (load_infrun_state): Ditto.
5828 (struct thread_info): Drop "prev_func_name" field.
5829 * thread.c (load_infrun_state): Update.
5830 (save_infrun_state): Update.
5831 * infrun.c (prev_func_name): Delete variable.
5832 (init_wait_for_inferior): Do not clear prev_func_name.
5833 (stop_stepping, keep_going, context_switch): Do not swap
5834 prev_func_name.
5835 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5836 instead of PC_IN_SIGTRAMP.
5837
46654a5b
AC
58382003-05-04 Andrew Cagney <cagney@redhat.com>
5839
5840 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5841 REGISTER_BYTE with register_offset_hack.
5842 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5843 that REGISTER_BYTE is consistent with the regcache.
5844 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5845 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5846
14b08c1b
MK
58472003-05-04 Mark Kettenis <kettenis@gnu.org>
5848
04c8243f
MK
5849 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5850 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5851
14b08c1b
MK
5852 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5853
c7a11e01
JB
58542003-05-03 J. Brobecker <brobecker@gnat.com>
5855
5856 From Thierry Schneider <tpschneider1@yahoo.com>
5857 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5858 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5859 (mi-cmd-symbol.o): Add rule.
5860
7043d8dc
AC
58612003-05-03 Andrew Cagney <cagney@redhat.com>
5862
5863 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5864 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5865 * gdbarch.h, gdbarch.c: Re-generate.
5866 * d10v-tdep.c (d10v_push_dummy_code): New function.
5867 (d10v_gdbarch_init): Set push_dummy_code.
5868 * infcall.c (legacy_push_dummy_code): New function.
5869 (generic_push_dummy_code): New function.
5870 (push_dummy_code): New function.
5871 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5872 instead of dummy_addr, to push_dummy_call. Move call to
5873 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5874 switch.
5875 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5876
92bf2b80
AC
58772003-05-03 Andrew Cagney <cagney@redhat.com>
5878
5879 * disasm.h (print_insn): Declare.
5880 * disasm.c (init_gdb_disassemble_info): New function.
5881 (gdb_disassembly): Call init_gdb_disassemble_info.
5882 (gdb_print_insn): New function.
5883 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5884 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5885 * mcore-tdep.c: Include "disasm.h"
5886 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5887 * d10v-tdep.c: Include "disasm.h".
5888 (display_trace): Call gdb_print_insn, instead of print_insn.
5889 (print_insn): Delete function.
5890 * printcmd.c: Include "disasm.h".
5891 (print_insn): Delete function.
5892 (print_formatted): Call gdb_print_insn, instead of print_insn.
5893 * Makefile.in (printcmd.o): Update dependencies.
5894 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 5895
27d94c49
AC
58962003-05-02 Andrew Cagney <cagney@redhat.com>
5897
82de1e5b
AC
5898 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5899 PC_REGNUM, re-indent.
5900 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5901 PC_REGNUM isn't set.
5902
27d94c49
AC
5903 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5904 * gdbarch.h, gdbarch.c: Re-generate.
5905 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5906 register_virtual_size, pc_regnum, or register_bytes.
5907 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5908 (d10v_register_type): Use D10V_PC_REGNUM.
5909 (d10v_print_registers_info, d10v_read_pc): Ditto.
5910 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5911 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5912
a9c0dc7f
DC
59132003-05-02 David Carlton <carlton@bactrian.org>
5914
5915 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5916 the name with mstrsave.
5917
e33d66ec
EZ
59182003-05-02 Elena Zannoni <ezannoni@redhat.com>
5919
5920 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5921 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5922 (host_charset_name, target_charset_name): New vars for use by
5923 set/show commands.
5924 (host_charset_enum, target_charset_enum): New enums for set/show
5925 commands.
5926 (set_charset_sfunc, set_host_charset_sfunc,
5927 set_target_charset_sfunc): New functions.
5928 (set_host_charset, set_target_charset): Make static.
5929 (list_charsets, set_host_charset_command,
5930 set_target_charset_command): Delete functions.
5931 (show_charset_command): Rewrite as....
5932 (show_charset): Hook this up with the set/show command mechanism.
5933 (_initialize_charset): Change names of charsets to match the
5934 set/show enums. Use host_charset_name and target_charset_name.
5935 Use set/show mechanism for charset, host-charset, target-charset
5936 commands. Do not make 'show host-charset' and 'show
5937 target-charset' be aliases of 'show charset'.
5938
5939 * charset.h (set_host_charset, set_target_charset): Don't export,
5940 they are not used outside the file.
5941
2b6fd0d8
AC
59422003-05-01 Andrew Cagney <cagney@redhat.com>
5943
5944 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5945 (gdb_disassembly): Make "di" non static, always initialize and
5946 cleanup. Always use dis_asm_read_memory.
5947 (gdb_dis_asm_read_memory): Delete function.
5948
6ae2f580
AC
59492003-05-01 Andrew Cagney <cagney@redhat.com>
5950
5951 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5952 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5953
810ecf9f
AC
59542003-04-30 Andrew Cagney <cagney@redhat.com>
5955
5956 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5957 "tm_print_insn_info".
5958 (TARGET_PRINT_INSN_INFO): Delete macro.
5959 (dis_asm_read_memory): Delete function declaration.
5960 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5961 (tm_print_insn_info): Delete variable definition.
5962 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5963 * gdbarch.h, gdbarch.c: Re-generate.
5964 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5965 "deprecated_tm_print_insn_info".
5966 * mcore-tdep.c (mcore_dump_insn): Ditto.
5967 * mips-tdep.c (mips_gdbarch_init): Ditto.
5968 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5969 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5970 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5971 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5972 instead of TARGET_PRINT_INSN_INFO, add comment.
5973 * s390-tdep.c (s390_get_frame_info): Instead of
5974 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5975 (s390_check_function_end, s390_is_sigreturn): Ditto.
5976 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5977 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5978 * disasm.c: Include "gdbcore.h".
5979 (_initialize_disasm): New function, initialize
5980 "deprecated_tm_print_insn_info".
5981 (deprecated_tm_print_insn_info): New variable.
5982 (dis_asm_read_memory): Moved from "corefile.c", made static.
5983 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5984 * Makefile.in (disasm.o): Update dependencies.
5985
07020390
AC
59862003-04-30 Andrew Cagney <cagney@redhat.com>
5987
5988 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5989
a9fa03de
AF
59902003-04-29 Adam Fedor <fedor@gnu.org>
5991
5992 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5993 * infcall.c (find_function_addr): Make non-static.
5994 * infcall.h (find_function_addr): Declare.
5995 * Makefile.in (eval.o): Update dependencies.
5996
1bae87b9
AF
59972003-04-28 Adam Fedor <fedor@gnu.org>
5998
5999 * symtab.c (symbol_find_demangled_name): Check for and demangle
6000 ObjC symbols.
6001 (symbol_init_demangled_name): Init for language_objc as well.
6002
0ba6dca9
AC
60032003-04-28 Andrew Cagney <cagney@redhat.com>
6004
6005 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6006 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6007 * gdbarch.h, gdbarch.c: Re-generate.
6008 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6009 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6010 * inferior.h (deprecated_read_fp): Rename read_fp.
6011 (generic_target_read_fp): Delete declaration.
6012 * regcache.c (generic_target_read_fp): Delete function.
6013 (deprecated_read_fp): Replace read_fp, use
6014 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6015 * d10v-tdep.c (d10v_read_fp): Delete function.
6016 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6017
6018 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6019 deprecated_target_read_fp to generic_target_read_fp.
6020 * sh-tdep.c (sh_gdbarch_init): Ditto.
6021 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6022 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6023 * frv-tdep.c (frv_gdbarch_init): Ditto.
6024
6025 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6026 deprecated_fp_regnum.
6027 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6028 * vax-tdep.c (vax_gdbarch_init): Ditto.
6029 * v850-tdep.c (v850_gdbarch_init): Ditto.
6030 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6031 * sh-tdep.c (sh_gdbarch_init): Ditto.
6032 * s390-tdep.c (s390_gdbarch_init): Ditto.
6033 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6034 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6035 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6036 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6037 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6038 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6039 * i386-tdep.c (i386_gdbarch_init): Ditto.
6040 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6041 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6042 * frv-tdep.c (frv_gdbarch_init): Ditto.
6043 * cris-tdep.c (cris_gdbarch_init): Ditto.
6044 * avr-tdep.c (avr_gdbarch_init): Ditto.
6045 * arm-tdep.c (arm_gdbarch_init): Ditto.
6046 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6047
6048 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6049 * v850-tdep.c (v850_gdbarch_init): Ditto.
6050 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6051 * sh-tdep.c (sh_gdbarch_init): Ditto.
6052 * s390-tdep.c (s390_gdbarch_init): Ditto.
6053 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6054 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6055 * mips-tdep.c (mips_gdbarch_init): Ditto.
6056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6057 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6058 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6059 * frv-tdep.c (frv_gdbarch_init): Ditto.
6060 * avr-tdep.c (avr_gdbarch_init): Ditto.
6061 * arm-tdep.c (arm_gdbarch_init): Ditto.
6062
6063 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6064 DEPRECATED_FP_REGNUM.
6065 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6066 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6067 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6068 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6069 (sparc32_register_virtual_type): Ditto.
6070 * sh-tdep.c (sh64_frame_chain): Ditto.
6071 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6072 (sh_nofp_frame_init_saved_regs): Ditto.
6073 (sh64_nofp_frame_init_saved_regs): Ditto.
6074 (sh_fp_frame_init_saved_regs): Ditto.
6075 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6076 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6077 * procfs.c (procfs_fetch_registers): Ditto.
6078 (procfs_store_registers): Ditto.
6079 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6080 (store_inferior_registers, fetch_core_registers): Ditto.
6081 (fetch_kcore_registers, clear_regs): Ditto.
6082 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6083 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6084 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6085 * nlm/i386.c (do_status): Ditto.
6086 * mipsv4-nat.c (supply_gregset): Ditto.
6087 * mips-tdep.c: Ditto for comments.
6088 * mips-nat.c (fetch_inferior_registers): Ditto.
6089 (store_inferior_registers, fetch_core_registers): Ditto.
6090 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6091 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6092 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6093 (i386_do_pop_frame, i386_register_type): Ditto.
6094 * hppa-tdep.c (hppa_frame_chain): Ditto.
6095 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6096 (hppa_pop_frame, hppa_read_fp): Ditto.
6097 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6098 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6099 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6100 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6101 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6102 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6103 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6104 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6105 * blockframe.c: Ditto for comments.
6106 * arch-utils.h: Ditto for comments.
6107 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6108 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6109 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6110 * alpha-tdep.h: Ditto for comments.
6111 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6112 (alpha_cannot_store_register): Ditto.
6113 (alpha_push_dummy_frame): Ditto.
6114 * alpha-nat.c (supply_gregset): Ditto.
6115
6116 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6117 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6118 * config/sparc/tm-sparc.h: Update comment.
6119
6120 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6121 deprecated_read_fp instead of TARGET_READ_FP.
6122 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6123 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6124 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6125 deprecated_read_fp instead of read_fp.
6126 * s390-tdep.c (s390_push_arguments): Ditto.
6127 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6128 * frame.h: Ditto in comments.
6129 * frame.c (legacy_get_prev_frame): Ditto.
6130 * dummy-frame.c (dummy_frame_this_id): Ditto.
6131 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6132
d7a27068
AC
61332003-04-28 Andrew Cagney <cagney@redhat.com>
6134
6135 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6136 * gdbarch.h, gdbarch.c: Re-generate.
6137 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6138 * vax-tdep.c (_initialize_vax_tdep): Update.
6139 * v850-tdep.c (_initialize_v850_tdep): Update.
6140 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6141 * s390-tdep.c (_initialize_s390_tdep): Update.
6142 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6143 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6144 * mips-tdep.c (_initialize_mips_tdep): Update.
6145 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6146 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6147 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6148 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6149 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6150 * frv-tdep.c (_initialize_frv_tdep): Update.
6151 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6152 (_initialize_cris_tdep): Update.
6153 * arch-utils.c (legacy_print_insn): Update.
6154 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6155
d2630e69
AF
61562003-04-26 Adam Fedor <fedor@gnu.org>
6157
6158 * linespec.c (decode_objc): New function to decode ObjC calls
6159 (decode_line_1): Check for ObjC calls (using decode_objc)
6160 * Makefile (linespec.o): Update dependencies.
6161
3086aeae
DJ
61622003-04-26 Daniel Jacobowitz <drow@mvista.com>
6163
6164 * breakpoint.h (struct breakpoint_ops): New.
6165 (struct breakpoint): Add ops member.
6166
6167 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6168 (mention): Use new breakpoint ops member.
6169 (set_raw_breakpoint): Initialize ops field to NULL.
6170 (print_exception_catchpoint, print_one_exception_catchpoint)
6171 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6172 (gnu_v3_exception_catchpoint_ops): New.
6173 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6174
1fbec6c3
AF
61752003-04-25 Adam Fedor <fedor@gnu.org>
6176
6177 * Makefile.in (COMMON_OBS): Add objc-lang.o
6178
0ef21242
AC
61792003-04-25 Andrew Cagney <cagney@redhat.com>
6180
6181 * d10v-tdep.c (print_insn): Delete function.
6182 (display_trace): Use TARGET_PRINT_INSN.
6183 (_initialize_d10v_tdep): Do not set tm_print_insn.
6184 (d10v_gdbarch_init): Set print_insn.
6185
f75493ed
AC
61862003-04-25 Andrew Cagney <cagney@redhat.com>
6187
6188 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6189 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6190 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6191 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6192 (nr_dmap_regs, a0_regnum): ... new functions.
6193 (d10v_print_registers_info): Use a0_regnum, use register_size.
6194 (d10v_register_byte): Delete function.
6195 (d10v_register_raw_size): Delete function.
6196 (d10v_register_type): Use a0_regnum.
6197 (d10v_print_registers_info): Use a0_regnum.
6198 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6199 (d10v_gdbarch_init): Do not set register_byte or
6200 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6201 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6202 extract_address.
6203 (trace_command): Use XCALLOC.
6204 (print_insn): Delete reference to tm_print_insn.
6205 (saved_regs_unwinder): Use store_unsigned_integer instead of
6206 store_address.
6207 * frame.h (FRAME_OBSTACK_CALLOC): Define
6208
2202b100
DC
62092003-04-25 David Carlton <carlton@bactrian.org>
6210
6211 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6212
4e45ca2e
AF
62132003-04-24 Adam Fedor <fedor@gnu.org>
6214
6215 * objc-lang.c: Include "valprint.h"
6216 * Makefile.in (objc-lang.o): Update dependencies.
6217
93de3e7f
AF
62182003-04-24 Adam Fedor <fedor@gnu.org>
6219
8ffd9b1b 6220 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6221 architecture dependant compilation and mark as unimplemented
6222 (until they get put in the gdbarch vector).
6223
0f20eeea
DC
62242003-04-23 David Carlton <carlton@bactrian.org>
6225
6226 * cp-support.c (cp_find_first_component): Accept 'operator' in
6227 more locations.
6228
74cfe982
AC
62292003-04-23 Andrew Cagney <cagney@redhat.com>
6230
6231 * infcall.c (call_function_by_hand): Eliminate redundant
6232 indentation. Move "saved_async" and "old_cleanups" to where they
6233 are needed.
8ffd9b1b 6234
52557533
AC
62352003-04-23 Andrew Cagney <cagney@redhat.com>
6236
6237 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6238 and "buffer". Move the "name" code to where it is needed.
6239
158775de
AC
62402003-04-23 Andrew Cagney <cagney@redhat.com>
6241
6242 * infcall.c (call_function_by_hand): Move variables "start_sp",
6243 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6244 code to ON_STACK switch branch.
8ffd9b1b 6245
ebc7896c
AC
62462003-04-23 Andrew Cagney <cagney@redhat.com>
6247
6248 * infcall.c (call_function_by_hand): Make declaration of "i",
6249 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6250 lint.
6251
d727590f
AC
62522003-04-23 Andrew Cagney <cagney@redhat.com>
6253
6254 * infcall.c (call_function_by_hand): Delete variable
6255 "n_method_args". Localize "param_type"'s declaration to the loop
6256 that it is used. Reinstate code assigning to said variable -
6257 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6258 Rationalize code using "param_type".
6259
d585e13a
AC
62602003-04-22 Andrew Cagney <cagney@redhat.com>
6261
6262 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6263 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6264 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6265 to DEPRECATED_PUSH_RETURN_ADDRESS.
6266
051caad9
KB
62672003-04-22 Kevin Buettner <kevinb@redhat.com>
6268
6269 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6270 on the DWARF2 register number prior to fetching a register.
6271
77296879
JB
62722003-04-22 J. Brobecker <brobecker@gnat.com>
6273
6274 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6275 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6276 this macro was always set to 0.
77296879
JB
6277 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6278 considering the fact that this macro was always set to 0.
6279 * hppa-tdep.h (hppa_store_return_value): Likewise.
6280 (hppa_extract_return_value): Likewise.
6281
4252f1df
JB
62822003-04-22 J. Brobecker <brobecker@gnat.com>
6283
6284 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6285 the hppa-pro target only.
6286
14604c6b
JB
62872003-04-21 J. Brobecker <brobecker@gnat.com>
6288
6289 Ongoing multi-arch conversion effort for HP/UX:
6290 * config/pa/tm-hppa.h: Move all macro that are no longer
6291 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6292 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6293
77eb01d1
JB
62942003-04-21 J. Brobecker <brobecker@gnat.com>
6295
6296 * config/pa/tm-hppa.h: Obsolete a section that was only used
6297 for hppa-pro.
6298
61995b3b
JB
62992003-04-21 J. Brobecker <brobecker@gnat.com>
6300
6301 Ongoing multi-arch conversion for HP/UX.
6302 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6303 if already defined (allows hppa64 to stay non-multiarched for now).
6304 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6305
4aa79dcc
AC
63062003-04-21 Andrew Cagney <cagney@redhat.com>
6307
6308 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6309
0f751ff2
AC
63102003-04-21 Andrew Cagney <cagney@redhat.com>
6311
6312 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6313 "i386_num_mmx_regs".
6314
04714b91
AC
63152003-04-21 Andrew Cagney <cagney@redhat.com>
6316
6317 * infcall.c: New file.
6318 * infcall.h: New file.
6319 * valarith.c: Include "infcall.h".
6320 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6321 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6322 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6323 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6324 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6325 (SFILES): Add "infcall.c"
6326 (COMMON_OBS): Add "infcall.o".
6327 (infcall.o): Specify dependencies.
6328 * value.h (call_function_by_hand): Delete declaration.
6329 * inferior.h (run_stack_dummy): Delete declaration.
6330 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6331 (run_stack_dummy): Move to "infcall.c", merged into
6332 call_function_by_hand.
6333 * valops.c (call_function_by_hand): Moved to "infcall.c".
6334 (find_function_addr, value_arg_coerce): Ditto.
6335 (unwindonsignal_p, coerce_float_to_double): Ditto.
6336 (_initialize_valops): Move "set/show coerce-float-to-double", and
6337 "set/show unwindonsignal" commands to "infcall.c".
6338 * v850-tdep.c, target.h: Update comments.
6339 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6340 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6341 (sh64_init_extra_frame_info): Update comments.
6342 * mn10300-tdep.c: Update comments.
6343 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6344 * config/sparc/tm-sparc.h: Update comments.
6345 * breakpoint.h: Update comments.
6346 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6347 * arm-tdep.c: Update comment.
6348
f9d3c2a8
MK
63492003-04-19 Mark Kettenis <kettenis@gnu.org>
6350
c40e1eab
MK
6351 * i386-tdep.c (i386_num_register_names): New variable.
6352 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6353 (MM0_REGNUM): Remove redundant parentheses in define.
6354 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6355 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6356 i386_mxcsr_regnum_p): Remove redundant parentheses.
6357 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6358
94ea66b3
MK
6359 * i386-tdep.c (i386_extract_return_value,
6360 i386_store_return_value): Correct check for availability of
6361 floating-point registers.
6362
54299a1d
MK
6363 * i386-tdep.c (i386_frame_num_args): Remove function.
6364 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6365
c86c27af
MK
6366 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6367 mmx_regnum_to_fp_regnum. Adjust all callers.
6368
f9d3c2a8
MK
6369 * i386-tdep.c (i386_get_longjmp_target): Use
6370 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6371 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6372 extract_address.
6373
94ba74a9
MK
63742003-04-19 Mark Kettenis <kettenis@gnu.org>
6375
6376 * core-regset.c: Update comments to reflect reality. Re-order
6377 includes.
6378 (fetch_core_registers): Use switch instead of if. Remove
6379 redundant prototype.
6380
4074e13c
JB
63812003-04-18 Jim Blandy <jimb@redhat.com>
6382
6383 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6384 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6385
e3ab4aba
RH
63862003-04-17 Richard Henderson <rth@redhat.com>
6387
6388 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6389
627bf7c1
EZ
63902003-04-17 Michael Snyder <msnyder@redhat.com>
6391 Karen Bennet <bennet@redhat.com>
6392
6393 Committed by Elena Zannoni <ezannoni@redhat.com>
6394 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6395
514621a9
EZ
63962003-04-17 Elena Zannoni <ezannoni@redhat.com>
6397
6398 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6399 value if the return type is void.
514621a9 6400
b4acd559
JJ
64012003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6402
6403 * thread-db.c: Reindented.
8ffd9b1b 6404
530b167e 64052003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6406
6407 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6408 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6409 as types.
6410
0a48e7e8
MS
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
8ffd9b1b 6434
ab9fe00e
KB
64352003-04-16 Kevin Buettner <kevinb@redhat.com>
6436
610a3745 6437 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6438 the size of ``long double'' to 16, instead of 8.
6439
e64a344c
MK
64402003-04-16 Mark Kettenis <kettenis@gnu.org>
6441
6442 * i386-linux-nat.c: Add some whitespace to make things more
6443 readable.
6444 (fetch_register, store_register, fetch_inferior_registers,
6445 store_inferior_registers): Get rid of assignment in if-statement.
6446 (store_register): Fix typo in error message.
6447
25d41031
AC
64482003-04-16 Andrew Cagney <cagney@redhat.com>
6449
6450 * utils.c (xmmalloc): Always allocate something, matches
6451 libiberty/xmalloc's semantics.
6452 (xmrealloc, xmcalloc): Ditto.
6453
c50901fd
AC
64542003-04-16 Andrew Cagney <cagney@redhat.com>
6455
6456 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6457 update comments.
6458 (get_frame_type): Initialize unwind and type when needed.
6459 (get_frame_id, frame_register_unwind): Ditto.
6460
f81824a9
AC
64612003-04-16 Andrew Cagney <cagney@redhat.com>
6462
6463 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6464 obsolete.
6465 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6466 * sparcl-stub.c: Obsolete file.
6467 * config/sparc/tm-sparclet.h: Obsolete file.
6468 * sparclet-stub.c: Obsolete file.
6469 * sparclet-rom.c: Obsolete file.
6470 * sparcl-tdep.c: Obsolete file.
6471 * config/sparc/tm-sparclite.h: Obsolete file.
6472 * config/sparc/sparclite.mt: Obsolete file.
6473 * config/sparc/sparclet.mt: Obsolete file.
6474 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6475 sparc86x-*-* obsolete.
6476
9219021c
DC
64772003-04-15 David Carlton <carlton@math.stanford.edu>
6478
6479 * Makefile.in (SFILES): Add cp-namespace.c.
6480 (COMMON_OBS): Add cp-namespace.o.
6481 (block.o): Depend on gdb_obstack_h and cp_support_h.
6482 (buildsym.o): Depend on cp_support_h.
6483 (cp-namespace.o): New.
6484 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6485 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6486 (dwarf2read.o): Depend on cp_support_h.
6487 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6488 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6489 processing_current_namespace.
6490 (read_namespace): Update processing_current_namespace; check for
6491 anonymous namespaces.
6492 (dwarf2_name): New function.
6493 (dwarf2_extension): Ditto.
6494 * cp-support.h: Update copyright, contributors.
6495 Add inclusion guards.
6496 Add opaque declaration for structs obstack, block, symbol.
6497 (struct using_direct): New struct.
6498 Add declarations for cp_find_first_component,
6499 cp_entire_prefix_len, processing_has_namespace_info,
6500 processing_current_namespace, cp_is_anonymous,
6501 cp_add_using_directive, cp_initialize_namespace,
6502 cp_finalize_namespace, cp_set_block_scope,
6503 cp_scan_for_anonymous_namespaces.
6504 * cp-namespace.c: New file.
6505 * cp-support.c: Update copyright.
6506 Include ctype.h, gdb_assert.h, gdbcmd.h.
6507 New variable maint_cplus_cmd_list.
6508 (cp_find_first_component): New function.
6509 (cp_entire_prefix_len, maint_cplus_command)
6510 (first_component_command, _initialize_cp_support): Ditto.
6511 * buildsym.c: Include cp-support.h.
6512 New variable using_list.
6513 (add_symbol_to_list): Check for anonymous namespaces.
6514 (finish_block): Set block's scope.
6515 (start_symtab): Initialize C++ namespace support.
6516 (end_symtab): Finalize C++ namespace support.
6517 * block.h: Add opaque declarations for structs
6518 block_namespace_info, using_direct, and obstack.
6519 Add declarations for block_set_scope and block_set_using.
6520 (struct block): Add 'language_specific' member.
6521 (BLOCK_NAMESPACE): New macro.
6522 * block.c: Include gdb_obstack.h and cp-support.h.
6523 (struct block_namespace_info): New struct.
6524 (block_set_scope): New function.
6525 (block_set_using, block_initialize_namespace): Ditto.
6526
d5a921c9
KB
65272003-04-14 Kevin Buettner <kevinb@redhat.com>
6528
6529 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6530 (locate_base): Return early if there aren't any link map offsets.
6531 (svr4_solib_create_inferior_hook): Warn if shared library support
6532 is unavailable.
6533
d2a52b27
DC
65342003-04-14 David Carlton <carlton@math.stanford.edu>
6535
6536 * symtab.c (symbol_set_names): Add prefix when storing Java names
6537 in hash table. Fix for PR java/1039.
6538
980cae7a
DC
65392003-04-14 David Carlton <carlton@math.stanford.edu>
6540
6541 * symtab.c (symbol_set_names): Rename 'name' arg to
6542 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6543 * symtab.h: Change 'name' argument in declaration of
6544 symbol_set_names to 'linkage_name'.
6545 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6546
e227b13c
AC
65472003-04-14 Andrew Cagney <cagney@redhat.com>
6548
6549 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6550 return the fully sign-extended register value.
6551 (get_frame_pointer): Ditto.
6552 (mips_pop_frame): Initialize "proc_desc" after checking for a
6553 dummy frame.
6554
36712a20
AC
65552003-04-14 Andrew Cagney <cagney@redhat.com>
6556
6557 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6558 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6559 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6560 (mips_push_register): Delete function.
6561 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6562 PUSH_FP_REGNUM.
6563
44ea7b70
JB
65642003-04-14 Jim Blandy <jimb@redhat.com>
6565
6566 * symmisc.c: #include "gdb_regex.h".
6567 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6568 functions.
6569 * maint.c (maintenance_list_command): New function.
6570 (_initialize_maint_cmds): Register the above as commands.
6571 * symtab.h (maintenance_list_symtabs,
6572 maintenance_list_psymtabs): New declarations.
6573 * cli/cli-cmds.c (maintenancelistlist): New variable.
6574 (init_cmd_lists): Initialize it.
6575 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6576 * gdbcmd.h (maintenancelistlist): New declaration.
6577 * Makefile.in (symmisc.o): Update dependencies.
6578
2d0c7962
EZ
65792003-04-14 Elena Zannoni <ezannoni@redhat.com>
6580
6581 * s390-nat.c: Include asm/types.h for addr_t.
6582
1947a811
CV
65832003-04-14 Corinna Vinschen <vinschen@redhat.com>
6584
6585 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6586 actually incoming type.
6587
adb616d7
AC
65882003-04-13 Andrew Cagney <cagney@redhat.com>
6589
6590 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6591 get_next_frame and get_frame_saved_regs.
6592
9b5e151c
AC
65932003-04-13 Andrew Cagney <cagney@redhat.com>
6594
6595 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6596 of gdbarch_num_regs.
6597
ef6e7e13
AC
65982003-04-13 Andrew Cagney <cagney@redhat.com>
6599
6600 * frame.h: Mention what replaced what in "struct frame_info".
6601 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6602 deprecated_update_frame_base_hack and
6603 deprecated_update_frame_pc_hack.
6604 * hppa-tdep.c: Ditto.
6605
61fbb938
DJ
66062003-04-13 Daniel Jacobowitz <drow@mvista.com>
6607
6608 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6609 to read_reg and update its comment. Remove regnum member.
6610 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6611 Don't call read_reg when setting in_reg. Call read_reg to get
6612 the frame base if it's in a register. Return the register number
6613 on the stack instead of in the context. Remove extra arguments
6614 to read_reg.
6615 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6616 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6617 the register number on the expression stack.
6618 (needs_frame_read_reg): Remove extra arguments.
6619
0d53c4c4
DJ
66202003-04-13 Daniel Jacobowitz <drow@mvista.com>
6621
6622 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6623 made non-static.
6624 (execute_stack_op): All callers updated.
6625 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6626 * dwarf2loc.c (find_location_expression): New function.
6627 (dwarf_expr_frame_base): Call it.
6628 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6629 (dwarf2_tracepoint_var_ref): New function, broken out from
6630 locexpr_tracepoint_var_ref.
6631 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6632 Make static.
6633 (loclist_read_variable, loclist_read_needs_frame): New functions.
6634 (loclist_describe_location, loclist_tracepoint_var_ref): New
6635 functions.
6636 (dwarf2_loclist_funcs): New struct location_funcs.
6637 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6638 (struct dwarf2_locexpr_baton): Add comments.
6639 (dwarf2_loclist_funcs): New extern.
6640 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6641 base_address and base_known.
6642 (dwarf_loc_buffer): New variable.
6643 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6644 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6645 (dwarf2_has_info): Initialize dwarf_loc_offset.
6646 (dwarf2_build_psymtabs): Read in .debug_loc.
6647 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6648 DWARF_LOC_SIZE.
6649 (psymtab_to_symtab_1): Likewise. Move base address calculation
6650 here, from...
6651 (dwarf2_get_pc_bounds): ... here. Use the base address from
6652 cu_header.
6653 (dwarf2_symbol_mark_computed): Handle location lists.
6654
6aca59a3
DJ
66552003-04-13 Daniel Jacobowitz <drow@mvista.com>
6656
6657 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6658 if the linkage name demangled successfully.
6659
aca1fcd0
MK
66602003-04-13 Mark Kettenis <kettenis@gnu.org>
6661
97095916
MK
6662 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6663 disassmbly_flavour): Removed.
6664
aca1fcd0
MK
6665 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6666
562a961f
MK
66672003-04-13 Mark Kettenis <kettenis@gnu.org>
6668
6669 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6670
bd013d54
AC
66712003-04-12 Andrew Cagney <cagney@redhat.com>
6672
6673 * frame.h (struct frame_info): Move definition from here ...
6674 * frame.c (struct frame_info): ... to here.
6675
167ef8b1
AC
66762003-04-12 Andrew Cagney <cagney@redhat.com>
6677
6678 * gdbthread.h (save_infrun_state): Delete parameter
6679 "prev_func_start".
6680 (struct thread_info): Delete field "prev_func_start".
6681 (load_infrun_state): Ditto.
6682 * thread.c (load_infrun_state, save_infrun_state): Update.
6683 * infrun.c (prev_func_start): Delete variable.
6684 (context_switch, init_wait_for_inferior): Update.
6685 (stop_stepping, keep_going): Update.
6686
da3331ec
AC
66872003-04-12 Andrew Cagney <cagney@redhat.com>
6688
6689 * gdbarch.sh: Add missing opaque declarations.
6690 * gdbarch.h: Regnerate.
6691 * symtab.h: Add missing opaque declarations.
6692 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6693 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6694 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6695 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6696 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6697 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6698 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6699 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6700 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6701 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6702 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6703 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6704 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6705
18adea3f
AC
67062003-04-11 Andrew Cagney <cagney@redhat.com>
6707
6708 * frame.c (get_frame_id): Return this frame's "id".
6709 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6710 function start.
6711 (legacy_saved_regs_this_id): Replace function body with
6712 internal-error.
6713 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6714 FRAME_OBSTACK_ZALLOC.
6715 (create_new_frame): Mark the frame ID as valid.
6716
2252e863
AO
67172003-04-11 Alexandre Oliva <aoliva@redhat.com>
6718
6719 * Makefile.in (libbfd_h): Added missing setting.
6720 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6721 according to the selected ABI.
6722
a8245ab8
JJ
67232003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6724
6725 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6726
6913c89a
AC
67272003-04-11 Andrew Cagney <cagney@redhat.com>
6728
6729 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6730 SAVED_PC_AFTER_CALL.
6731 * gdbarch.h, gdbarch.c: Regenerate.
6732 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6733 * x86-64-tdep.c (x86_64_init_abi): Update.
6734 * vax-tdep.c (vax_gdbarch_init): Update.
6735 * v850-tdep.c (v850_gdbarch_init): Update.
6736 * sparc-tdep.c (sparc_gdbarch_init): Update.
6737 * sh-tdep.c (sh_gdbarch_init): Update.
6738 * s390-tdep.c (s390_gdbarch_init): Update.
6739 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6740 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6741 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6742 * mips-tdep.c (mips_gdbarch_init): Update.
6743 * mcore-tdep.c (mcore_gdbarch_init): Update.
6744 * m68k-tdep.c (m68k_gdbarch_init): Update.
6745 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6746 * ia64-tdep.c (ia64_gdbarch_init): Update.
6747 (ia64_saved_pc_after_call): Update declaration.
6748 * i386ly-tdep.c (i386lynx_init_abi): Update.
6749 * i386-tdep.c (i386_gdbarch_init): Update.
6750 * hppa-tdep.c (hppa_gdbarch_init): Update.
6751 * h8300-tdep.c (h8300_gdbarch_init): Update.
6752 * frv-tdep.c (frv_gdbarch_init): Update.
6753 * cris-tdep.c (cris_gdbarch_init): Update.
6754 * avr-tdep.c (avr_gdbarch_init): Update.
6755 * arm-tdep.c (arm_gdbarch_init): Update.
6756 * alpha-tdep.c (alpha_gdbarch_init): Update.
6757 * ns32knbsd-nat.c (frame_num_args): Update.
6758 * ns32k-tdep.c (umax_frame_num_args): Update.
6759 * mips-tdep.c (mips_init_frame_pc_first): Update.
6760 * infrun.c (step_over_function): Update.
6761 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6762 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6763 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6764 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6765 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6766 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6767 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6768 * arch-utils.c (init_frame_pc_default): Update.
6769 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6770 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6771 declaration.
8ffd9b1b 6772
38edeab8
AC
67732003-04-11 Andrew Cagney <cagney@redhat.com>
6774
6775 * i387-tdep.c: Update copyright.
6776 (i387_to_double): Delete function.
6777 (double_to_i387): Delete function.
6778
81f8a206
AC
67792003-04-10 Andrew Cagney <cagney@redhat.com>
6780
6781 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6782 frame's function's address. Simplify.
6783 (d10v_frame_unwind_cache): Check that the frame's function is
6784 non-zero.
6785
6e691f7a
JB
67862003-04-10 Jim Blandy <jimb@redhat.com>
6787
6788 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6789 call to set_gdbarch_deprecated_push_arguments.
6790
7f78e237
AC
67912003-04-10 Andrew Cagney <cagney@redhat.com>
6792
6793 * frame.c (fprint_frame_id): New function.
6794 (fprint_frame_type, fprint_frame): New function.
6795 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6796 (create_sentinel_frame, get_frame_id): Ditto.
6797 (frame_id_p, frame_id_eq): Ditto.
6798 (frame_id_inner, create_new_frame): Ditto.
6799 (legacy_get_prev_frame, get_prev_frame): Ditto.
6800 (deprecated_update_frame_pc_hack): Ditto.
6801 (frame_register_unwind): Ditto.
6802 (deprecated_update_frame_base_hack): Ditto.
6803
f870b49b
CV
68042003-04-10 Corinna Vinschen <vinschen@redhat.com>
6805
6806 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6807 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6808 frame_chain function.
6809 * Makefile.in: Add dependencies due to above change.
6810
7c86889b
CV
68112003-04-10 Corinna Vinschen <vinschen@redhat.com>
6812
6813 * blockframe.c (legacy_frame_chain_valid): Move call to
6814 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6815 inside_entry_file.
6816
d0a55772
AC
68172003-04-09 Andrew Cagney <cagney@redhat.com>
6818
6819 * frame.h (struct frame_id): Replace "pc" and "base" with
6820 "stack_addr" and "code_addr". Update comments.
6821 (frame_id_build): Update parameter names and comment.
6822 (struct frame_info): Replace "id_p" and "id" with "this_id".
6823 * dummy-frame.c (dummy_frame_this_id): Update.
6824 * breakpoint.c (print_one_breakpoint): Update.
6825 * frame.c (get_frame_id): Update.
6826 (get_frame_base, frame_id_build): Update.
6827 (create_sentinel_frame, legacy_get_prev_frame): Update.
6828 (deprecated_update_frame_base_hack): Update.
6829 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6830 (frame_id_inner): Ditto.
6831
ac16bf07
AC
68322003-04-09 Andrew Cagney <cagney@redhat.com>
6833
6834 * defs.h (gdb_print_host_address): Make "addr" parameter a
6835 pointer constant.
6836 * utils.c (gdb_print_host_address): Update.
6837
366cfc9e
KB
68382003-04-09 Kevin Buettner <kevinb@redhat.com>
6839
6840 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6841 register number for R0 is 0.
6842
cd983b5c
JB
68432003-04-09 J. Brobecker <brobecker@gnat.com>
6844
6845 * frame.h (struct gdbarch): Add opaque structure definition
6846 to avoid a compilation warning on LynxOS 4.0.
6847
d1340264
AC
68482003-04-09 Andrew Cagney <cagney@redhat.com>
6849
6850 * frame.h (struct frame_info): Delete field "pc". Replace
6851 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6852 structure.
6853 * frame.c (frame_pc_unwind): Update.
6854 (create_sentinel_frame): Do not set "pc".
6855 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6856 (get_frame_pc): Call frame_pc_unwind.
6857 (deprecated_update_frame_pc_hack): Update.
6858 (create_new_frame): Use "pc" not "->pc".
6859
90a6fffb
AC
68602003-04-09 Andrew Cagney <cagney@redhat.com>
6861
6862 * frame.c (get_frame_id): Eliminate code updating "frame".
6863 (legacy_get_prev_frame): Ditto.
6864 (get_frame_base): Return id.base directly.
6865 (deprecated_update_frame_base_hack): Update "id.base".
6866 * frame.h (struct frame_info): Delete field "frame".
6867
2fbce691
AC
68682003-04-09 Andrew Cagney <cagney@redhat.com>
6869
6870 * NEWS: Mention that the "Sequent family" is obsolete.
6871 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6872 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6873 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6874 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6875 * config/i386/tm-ptx4.h: Obsolete file.
6876 * config/i386/tm-ptx.h: Obsolete file.
6877 * symm-tdep.c: Obsolete file.
6878 * config/i386/symmetry.mt: Obsolete file.
6879 * config/i386/tm-symmetry.h: Obsolete file.
6880 * symm-nat.c: Obsolete file.
6881 * config/i386/nm-symmetry.h: Obsolete file.
6882 * config/i386/xm-symmetry.h: Obsolete file.
6883 * config/i386/symmetry.mh: Obsolete file.
6884 * config/i386/nm-ptx4.h: Obsolete file.
6885 * config/i386/ptx4.mh: Obsolete file.
6886 * config/i386/ptx.mt: Obsolete file.
6887 * config/i386/ptx.mh: Obsolete file.
6888 * config/i386/xm-ptx4.h: Obsolete file.
6889 * config/i386/xm-ptx.h: Obsolete file.
6890
78c43945
AC
68912003-04-09 Andrew Cagney <cagney@redhat.com>
6892
6893 Obsolete mips*-*-mach3*.
6894 * NEWS: Mention that mips*-*-mach3* is obsolete.
6895 * m3-nat.c: Obsolete file.
6896 * config/nm-m3.h: Obsolete file.
6897 * config/mips/tm-mipsm3.h: Obsolete file.
6898 * config/mips/mipsm3.mt: Obsolete file.
6899 * config/mips/mipsm3.mh: Obsolete file.
6900 * config/mips/xm-mipsm3.h: Obsolete file.
6901 * mipsm3-nat.c: Obsolete file.
6902 * configure.host: Obsolete mips-dec-mach3*.
6903 * configure.tgt: Obsolete mips*-*-mach3*.
6904
f1908289
AC
69052003-04-09 Andrew Cagney <cagney@redhat.com>
6906
6907 * doublest.h: Update copyright.
6908 (deprecated_store_floating, deprecated_extract_floating): Rename
6909 store_floating and extract_floating. Update comments.
6910 * doublest.c: Update copyright.
6911 (extract_floating_by_length): Replace extract_floating.
6912 (store_floating_by_length): Replace store_floating.
6913 (deprecated_extract_floating): New function.
6914 (deprecated_store_floating): New function.
6915 (extract_typed_floating): Call extract_floating_by_length.
6916 (store_typed_floating): Call store_floating_by_length.
6917 * x86-64-tdep.c (x86_64_store_return_value): Update.
6918 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6919 (sh64_extract_return_value): Update.
6920 (sh_sh4_register_convert_to_virtual): Update.
6921 (sh_sh64_register_convert_to_virtual): Update.
6922 (sh_sh4_register_convert_to_raw): Update.
6923 (sh_sh64_register_convert_to_raw): Update.
6924 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6925 (rs6000_register_convert_to_raw): Update.
6926 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6927 (ia64_register_convert_to_raw): Update.
6928 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6929 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6930 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6931 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6932 (alpha_register_convert_to_raw): Update.
6933
4443bd83
AC
69342003-04-08 Andrew Cagney <cagney@redhat.com>
6935
6936 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6937 * gdbarch.h, gdbarch.c: Re-generate.
6938 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6939 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6940 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6941 conditionally, use frame_pc_unwind as an alternative. Add
6942 comments.
6943 * arch-utils.c (init_frame_pc_default): Only call
6944 SAVED_PC_AFTER_CALL when available.
6945
c0236d92
EZ
69462003-04-08 Elena Zannoni <ezannoni@redhat.com>
6947
fbe586ae 6948 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6949 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6950 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6951 (start_remote): Ditto.
6952 (handle_inferior_event): Ditto.
6953 (save_inferior_status): Ditto.
6954 (restore_inferior_status): Ditto.
6955 * infcmd.c (attach_command): Ditto.
6956 * fork-child.c (startup_inferior): Ditto.
fbe586ae 6957 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6958 * alpha-tdep.c (heuristic_proc_start): Ditto.
6959 * mips-tdep.c (heuristic_proc_start): Ditto.
6960 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6961 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6962 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6963 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6964 * remote-vx.c (vx_create_inferior): Ditto.
6965
69662003-04-08 Elena Zannoni <ezannoni@redhat.com>
6967
6968 * infrun.c (stop_soon_quietly): Make it an enum, to better
6969 override the default behavior of handle_inferior_event.
6970 (clear_proceed_status): Update uses of stop_soon_quietly to
6971 reflect that it is now an enum.
6972 (start_remote): Ditto.
6973 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6974 is set to handle the new GNU/Linux kernel behavior for
6975 attach/sigstop. Update uses of stop_soon_quietly.
6976 * inferior.h (enum stop_kind): New enum.
6977 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6978 Reset normal handle_inferior_event behavior, afterwards.
6979 * fork-child.c (startup_inferior): Update.
6980 * alpha-tdep.c (heuristic_proc_start): Update.
6981 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6982 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6983 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6984 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6985 * remote-vx.c (vx_create_inferior): Update.
6986 * mips-tdep.c (heuristic_proc_start): Update.
6987
1211bce3
EZ
69882003-04-07 Elena Zannoni <ezannoni@redhat.com>
6989
6990 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 6991 be freed more than once, causing wild memory corruptions.
1211bce3 6992 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 6993 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 6994 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 6995 with the "core" target.
1211bce3 6996
f0ef6b29
KB
69972003-04-07 Kevin Buettner <kevinb@redhat.com>
6998
6999 * mips-tdep.c (mips_print_fp_register): New function, created from
7000 do_fp_register_row(). Registers are now (also) printed as hex.
7001 Only one register is printed per row.
7002 (mips_print_register, do_fp_register_row): Print floating point
7003 registers with mips_print_fp_register().
7004
8cf71652
AC
70052003-04-06 Andrew Cagney <cagney@redhat.com>
7006
5e488a7b
AC
7007 * valprint.h (inspect_it): Add extern declaration.
7008 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7009 (selectors_info, classes_info): Ditto.
7010 (find_objc_msgcall): Fix indentation.
7011 (objc_printstr): Delete extern declarations.
7012
8cf71652
AC
7013 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7014
e6ba3bc9
AC
70152003-04-06 Andrew Cagney <cagney@redhat.com>
7016
7017 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7018 Update comment.
7019 * frame.c (legacy_saved_regs_this_id): Update.
7020 (legacy_get_prev_frame): Update.
7021 * xstormy16-tdep.c: Update comment.
7022 * sparc-tdep.c (sparc_frame_chain): Update comment.
7023 * blockframe.c (legacy_frame_chain_valid): Update.
7024
55e1d7e7
AC
70252003-04-06 Andrew Cagney <cagney@redhat.com>
7026
996179ee
AC
7027 * valprint.c (val_print_type_code_int): Delete #ifdef
7028 PRINT_TYPELESS_INTEGER code.
7029
55e1d7e7
AC
7030 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7031 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7032 multi-arch definition.
7033 * gdbarch.h: Re-generate.
7034
43bd9a9e
AC
70352003-04-05 Andrew Cagney <cagney@redhat.com>
7036
7037 Eliminate FRAME_FIND_SAVED_REGS.
7038 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7039 Change FSR parameter to a pointer.
7040 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7041 Assume FSR parameter is a pointer.
7042 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7043 Make fsr a pointer.
7044 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7045 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7046 saved_regs a pointer.
7047 (hppa_frame_saved_pc): Ditto.
7048 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7049 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7050 pointer.
7051 (restore_pc_queue): Make fsr a pointer.
7052 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7053 (hppa_frame_chain): Make saved_regs a pointer, call
7054 hppa_frame_init_saved_regs.
7055 * sparc-tdep.c: Include "gdb_assert.h".
7056 (sparc_frame_find_saved_regs): Replace internal_error with
7057 gdb_assert.
7058 * remote-vxsparc.c (vx_read_register): Delete reference to
7059 FRAME_FIND_SAVED_REGS.
7060 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7061 * gdbarch.h: Regenerate.
7062 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7063 (deprecated_get_frame_saved_regs): Delete declaration.
7064 (struct frame_saved_regs): Delete definition.
7065 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7066 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7067 (hppa_frame_find_saved_regs): Delete declaration.
7068 (FRAME_FIND_SAVED_REGS): Delete macro.
7069 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7070 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7071 FRAME_FIND_SAVED_REGS in comment.
7072
be41e9f4
AC
70732003-04-05 Andrew Cagney <cagney@redhat.com>
7074
7075 * frame.c (frame_func_unwind, get_frame_func): New functions.
7076 * frame.h (get_frame_func, frame_func_unwind): Declare.
7077 (struct frame_info): Add field "prev_func" for caching the
7078 previous frame's function address.
7079 * arm-tdep.c (arm_frameless_function_invocation): Combine
7080 get_pc_function_start and get_frame_pc into get_frame_func.
7081 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7082 (sh64_nofp_frame_init_saved_regs): Ditto.
7083 * s390-tdep.c (s390_function_start): Ditto.
7084 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7085 (rs6000_frameless_function_invocation): Ditto.
7086 (rs6000_frame_saved_pc): Ditto.
7087 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7088 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7089 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7090 (i386_frame_init_saved_regs): Ditto.
7091 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7092 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7093 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7094 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7095 * blockframe.c (frameless_look_for_prologue): Ditto.
7096
a01dd7cc
AC
70972003-04-05 Andrew Cagney <cagney@redhat.com>
7098
7099 * frame.c (legacy_get_prev_frame): Link prev to next at the
7100 function start. Update comments.
7101
5e5592e6
AC
71022003-04-05 Andrew Cagney <cagney@redhat.com>
7103
7104 * frame.c (get_frame_id): Update comment.
7105 (legacy_get_prev_frame): Update comment.
7106 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7107 * gdbarch.h: Regenerate.
7108 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7109 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7110
6fba5002
AC
71112003-04-05 Andrew Cagney <cagney@redhat.com>
7112
7113 * stack.c (print_frame_info): Use get_frame_pc.
7114
7df05f2b
AC
71152003-04-04 Andrew Cagney <cagney@redhat.com>
7116
7117 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7118 the frame's type from the unwinder.
7119 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7120 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7121 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7122 (get_frame_base_address): Use get_frame_type.
7123 (get_frame_locals_address, get_frame_args_address): Ditto.
7124 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7125 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7126 (struct frame_info): Add comment explaining why the frame contains
7127 a "type" field.
7128 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7129 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7130 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7131 NORMAL_FRAME.
7132 * frame-unwind.h: Include "frame.h".
7133 (struct frame_unwind): Add "type" field.
7134 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7135
11889732
AC
71362003-04-04 Andrew Cagney <cagney@redhat.com>
7137
7138 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7139 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7140 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7141 get_frame_base.
7142 (d10v_unwind_dummy_id): Use frame_id_build.
7143 * frame.c (find_frame_sal): Use get_frame_pc.
7144 (create_new_frame): Use deprecated_update_frame_pc_hack and
7145 deprecated_update_frame_base_hack.
7146 (create_sentinel_frame): Add comment about ->pc going away.
7147 (get_prev_frame): Add comment about ->pc going away.
7148 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7149 frame_id_build, deprecated_update_frame_pc_hack and
7150 deprecated_update_frame_base_hack.
7151 (select_frame): Use get_frame_pc.
7152 (legacy_saved_regs_this_id): Use frame_id_build.
7153
50c46a0d
EZ
71542003-04-04 Elena Zannoni <ezannoni@redhat.com>
7155
fbe586ae
RH
7156 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7157 signed integer case.
7158 (classify_argument): Handle enumerations and references.
50c46a0d 7159
50bbdbd9
AC
71602003-04-04 Andrew Cagney <cagney@redhat.com>
7161
7162 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7163 ID to NULL.
7164
36018d2e
AF
71652003-04-01 Adam Fedor <fedor@gnu.org>
7166
7167 * gdb/objc-lang.c (selectors_info): Replace calls to
7168 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7169 SYMBOL_NATURAL_NAME.
7170 (classes_info, find_methods): Likewise.
7171
35cec841
KB
71722003-04-03 Kevin Buettner <kevinb@redhat.com>
7173
7174 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7175 ``mach'' to the value determined by bfd_default_set_arch_mach().
7176
43136899
BR
71772003-04-02 Bob Rossi <bob_rossi@cox.net>
7178
7179 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7180 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7181 (mi-cmd-file.o): Update dependencies.
7182
040b99fd
KB
71832003-04-01 Kevin Buettner <kevinb@redhat.com>
7184
7185 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7186 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7187
9a3d7dfd
AF
71882003-04-01 Adam Fedor <fedor@gnu.org>
7189
7190 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7191 * language.h (struct language_defn): Add la_demangle.
7192 (language_demangle): Declare.
7193 * language.c (language_demangle): New function.
7194 (unk_lang_demangle): Likewise.
7195 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7196 Add ukn_lang_demangle.
9a3d7dfd 7197 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7198 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7199 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7200 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7201 * jv-lang.c (java_demangle): New function
7202 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7203 * objc-lang.c (objc_demangle): Add options argument
7204 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7205 * maint.c (maintenance_demangle): Replace switch with
7206 call to language_demangle.
7207 * utils.c (fprintf_symbol_filtered): Likewise.
7208
5e074003
AC
72092003-04-01 Andrew Cagney <cagney@redhat.com>
7210
7211 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7212 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7213 PRINT_TYPELESS_INTEGER.
7214 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7215 PUSH_RETURN_ADDRESS.
7216
270cb5d6
AC
72172003-04-01 Andrew Cagney <cagney@redhat.com>
7218
7219 * Makefile.in (d10v-tdep.o): Update dependencies.
7220 * d10v-tdep.c: Include "frame-base.h".
7221 (d10v_frame_unwind): Make constant.
7222 (d10v_frame_base_address): New function.
7223 (d10v_frame_base): New variable.
7224 (d10v_gdbarch_init): Set frame_base default.
7225 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7226 comment for base.
7227 (d10v_frame_unwind_cache): Set and use "prev_sp".
7228 (d10v_frame_this_id): Use the previous frame's inner most stack
7229 address and this frame's func address for the frame ID. Use
7230 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7231
6bfb3e36
AC
72322003-04-01 Andrew Cagney <cagney@redhat.com>
7233
7234 * frame.h (get_frame_locals_address, get_frame_args_address):
7235 Refer to the base address, instead of the address of the first
7236 local or parameter.
8ffd9b1b 7237
da62e633
AC
72382003-04-01 Andrew Cagney <cagney@redhat.com>
7239
7240 Add frame debug info addresses:
7241 * frame-base.c: New file.
7242 * frame-base.h: New file.
7243 * frame.h (struct frame_base): Add opaque declaration.
7244 (get_frame_base): Update comment.
7245 (get_frame_base_address): Declare.
7246 (get_frame_locals_address): Declare.
7247 (get_frame_args_address): Declare.
7248 (struct frame_info): Add "base" and "base_cache". Update
7249 comments on the unwinder.
7250 * frame.c: Include "frame-base.h".
7251 (get_frame_locals_address): New function.
7252 (get_frame_base_address): New function.
7253 (get_frame_args_address): New function.
7254 * findvar.c (read_var_value): Use get_frame_locals_address and
7255 get_frame_args_address.
7256 * stack.c (frame_info): Use get_frame_locals_address and
7257 get_frame_args_address.
7258 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7259 moved to "frame-base.c".
7260 * printcmd.c (print_frame_nameless_args): Ditto.
7261 * symtab.h (address_class): Update comments.
7262 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7263 get_frame_base_address.
7264 * dwarf2expr.c (execute_stack_op): Ditto.
7265 * Makefile.in (frame_base_h): Define.
7266 (frame.o): Update dependencies.
7267 (frame-base.o): Add dependencies.
7268 (SFILES): Add frame-base.c.
7269 (COMMON_OBS): Add frame-base.o.
7270
3d30e9c2
AC
72712003-04-01 Andrew Cagney <cagney@redhat.com>
7272
7273 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7274 CALL_DUMMY_LENGTH): Ditto.
7275 * gdbarch.c: Re-generate.
7276 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7277 (CALL_DUMMY_LENGTH): Delete macro.
7278 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7279 * arm-tdep.c (arm_gdbarch_init): Ditto.
7280 * avr-tdep.c (avr_gdbarch_init): Ditto.
7281 * cris-tdep.c (cris_gdbarch_init): Ditto.
7282 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7283 * frv-tdep.c (frv_gdbarch_init): Ditto.
7284 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7285 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7286 * i386-tdep.c (i386_gdbarch_init): Ditto.
7287 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7289 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7290 * mips-tdep.c (mips_gdbarch_init): Ditto.
7291 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7292 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7293 * s390-tdep.c (s390_gdbarch_init): Ditto.
7294 * sh-tdep.c (sh_gdbarch_init): Ditto.
7295 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7296 * v850-tdep.c (v850_gdbarch_init): Ditto.
7297 * vax-tdep.c (vax_gdbarch_init): Ditto.
7298 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7299
ce0c7262
CV
73002003-04-01 Corinna Vinschen <vinschen@redhat.com>
7301
7302 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7303
73dd234f
AC
73042003-04-01 Andrew Cagney <cagney@redhat.com>
7305
7306 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7307 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7308 * gdbarch.h, gdbarch.c: Re-generate.
7309 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7310 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7311 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7312 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7313 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7314 * infcmd.c (run_stack_dummy): Simplify assuming
7315 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7316 * infrun.c (handle_inferior_event): Ditto.
7317 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7318 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7319 * arm-tdep.c (arm_gdbarch_init): Ditto.
7320 * avr-tdep.c (avr_gdbarch_init): Ditto.
7321 * cris-tdep.c (cris_gdbarch_init): Ditto.
7322 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7323 * frv-tdep.c (frv_gdbarch_init): Ditto.
7324 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7325 * i386-tdep.c (i386_gdbarch_init): Ditto.
7326 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7327 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7328 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7329 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7330 * mips-tdep.c (mips_gdbarch_init): Ditto.
7331 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7332 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7333 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7334 * s390-tdep.c (s390_gdbarch_init): Ditto.
7335 * sh-tdep.c (sh_gdbarch_init): Ditto.
7336 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7337 * v850-tdep.c (v850_gdbarch_init): Ditto.
7338 * vax-tdep.c (vax_gdbarch_init): Ditto.
7339 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7340
97606a13
DJ
73412003-04-01 Daniel Jacobowitz <drow@mvista.com>
7342
7343 * symfile.c (symfile_relocate_debug_section): Update call to
7344 bfd_simple_get_relocated_section_contents.
7345
e8ab51f7
AC
73462003-03-31 Andrew Cagney <cagney@redhat.com>
7347
7348 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7349 * gdbarch.h, gdbarch.c: Regenerate.
7350 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7351 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7352 available.
7353 * frame.h (generic_fix_call_dummy): Delete declaration.
7354 * dummy-frame.h: Update comment.
7355 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7356 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7357 fix_call_dummy.
7358 * sh-tdep.c (sh_gdbarch_init): Ditto.
7359 * s390-tdep.c (s390_gdbarch_init): Ditto.
7360 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7361 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7362 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7363 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7364 * i386-tdep.c (i386_gdbarch_init): Ditto.
7365 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7366 * frv-tdep.c (frv_gdbarch_init): Ditto.
7367 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7368 * cris-tdep.c (cris_gdbarch_init): Ditto.
7369 * avr-tdep.c (avr_gdbarch_init): Ditto.
7370 * arm-tdep.c (arm_gdbarch_init): Ditto.
7371
018d1b48
JB
73722003-03-31 J. Brobecker <brobecker@gnat.com>
7373
7374 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7375 (INIT_FRAME_AP): Likewise.
7376 (EXTRA_FRAME_INFO): Likewise.
7377
e9a2674e
AC
73782003-03-31 Andrew Cagney <cagney@redhat.com>
7379
7380 * gdbarch.sh: Include "symfile.h".
7381 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7382 * gdbarch.h, gdbarch.c: Re-generate.
7383 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7384 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7385 call_dummy_address, the default is at entry_point_address.
7386 * v850-tdep.c (v850_gdbarch_init): Ditto.
7387 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7388 * sh-tdep.c (sh_gdbarch_init): Ditto.
7389 * s390-tdep.c (s390_gdbarch_init): Ditto.
7390 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7391 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7392 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7393 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7394 * i386-tdep.c (i386_gdbarch_init): Ditto.
7395 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7396 * frv-tdep.c (frv_gdbarch_init): Ditto.
7397 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7398 * cris-tdep.c (cris_gdbarch_init): Ditto.
7399 * arm-tdep.c (arm_gdbarch_init): Ditto.
7400
e8a8712a
AC
74012003-03-31 Andrew Cagney <cagney@redhat.com>
7402
7403 * gdbarch.sh (CALL_DUMMY_P): Delete.
7404 * gdbarch.h, gdbarch.c: Re-generate.
7405 * inferior.h (CALL_DUMMY_P): Delete macro.
7406 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7407 * vax-tdep.c (vax_gdbarch_init): Update.
7408 * v850-tdep.c (v850_gdbarch_init): Update.
7409 * sparc-tdep.c (sparc_gdbarch_init): Update.
7410 * sh-tdep.c (sh_gdbarch_init): Update.
7411 * s390-tdep.c (s390_gdbarch_init): Update.
7412 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7413 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7414 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7415 * mips-tdep.c (mips_gdbarch_init): Update.
7416 * mcore-tdep.c (mcore_gdbarch_init): Update.
7417 * m68k-tdep.c (m68k_gdbarch_init): Update.
7418 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7419 * ia64-tdep.c (ia64_gdbarch_init): Update.
7420 * i386-tdep.c (i386_gdbarch_init): Update.
7421 * h8300-tdep.c (h8300_gdbarch_init): Update.
7422 * frv-tdep.c (frv_gdbarch_init): Update.
7423 * d10v-tdep.c (d10v_gdbarch_init): Update.
7424 * cris-tdep.c (cris_gdbarch_init): Update.
7425 * breakpoint.c (deprecated_frame_in_dummy): Update.
7426 * avr-tdep.c (avr_gdbarch_init): Update.
7427 * alpha-tdep.c (alpha_gdbarch_init): Update.
7428 * arm-tdep.c (arm_gdbarch_init): Update.
7429 * dummy-frame.c (dummy_frame_this_id): Update comments.
7430 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7431 * frame.c (legacy_get_prev_frame): Ditto.
7432 * valops.c (call_function_by_hand): Delete function.
7433 (hand_function_call): Rename to call_function_by_hand
7434
ed234cf8
AC
74352003-03-30 Andrew Cagney <cagney@redhat.com>
7436
7437 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7438 * value.h (struct value): Update comment.
ed234cf8 7439
06c77151
AC
74402003-03-30 Andrew Cagney <cagney@redhat.com>
7441
6c2b5168
AC
7442 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7443 D10V_FP_REGNUM.
7444 (d10v_gdbarch_init): Do not set fp_regnum.
7445
06c77151
AC
7446 * frame.c (get_frame_base): Force ID initialization.
7447 (get_prev_frame): Move computation of the frame ID from here ...
7448 (get_frame_id): ... to here.
7449 (legacy_get_prev_frame): Mark the frame ID as valid.
7450 * frame.h (struct frame_info): Add field "id_p".
7451
97a1a11c
MK
74522003-03-30 Mark Kettenis <kettenis@gnu.org>
7453
7454 * i386-tdep.c (i386_store_struct_return): Removed.
7455 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7456
6c0e89ed
AC
74572003-03-30 Andrew Cagney <cagney@redhat.com>
7458
7459 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7460 * gdbarch.h, gdbarch.c: Regenerate.
7461 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7462 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7463 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7464 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7465 * i386-tdep.c (i386_gdbarch_init): Ditto.
7466 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7467 * cris-tdep.c (cris_gdbarch_init): Ditto.
7468 * vax-tdep.c (vax_gdbarch_init): Ditto.
7469 * s390-tdep.c (s390_gdbarch_init): Ditto.
7470 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7471 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7472 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7473 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7474 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7475 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7476 * sparc-tdep.c (sparc_gdbarch_init): Update.
7477 * sh-tdep.c (sh_gdbarch_init): Update.
7478 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7479 * mips-tdep.c (mips_gdbarch_init): Update.
7480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7481 * ia64-tdep.c (ia64_gdbarch_init): Update.
7482 * frv-tdep.c (frv_gdbarch_init): Update.
7483 * avr-tdep.c (avr_gdbarch_init): Update.
7484 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7485 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7486 instead of when push_dummy_call is not available.
8ffd9b1b 7487
f7dd6af2
AC
74882003-03-30 Andrew Cagney <cagney@redhat.com>
7489
7490 * infttrace.c: Include "gdbthread.h".
7491 (parent_attach_all): Fix function signature.
7492 (call_ptrace): Update call.
7493 * Makefile.in (infttrace.o): Update dependencies.
7494
28f617b3
AC
74952003-03-30 Andrew Cagney <cagney@redhat.com>
7496
7497 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7498 PUSH_RETURN_ADDRESS.
7499 * gdbarch.h, gdbarch.c: Regenerate.
7500 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7501 * x86-64-tdep.c (x86_64_init_abi): Update.
7502 * v850-tdep.c (v850_gdbarch_init): Update.
7503 * sparc-tdep.c (sparc_gdbarch_init): Update.
7504 * sh-tdep.c (sh_gdbarch_init): Update.
7505 * s390-tdep.c (s390_gdbarch_init): Update.
7506 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7507 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7508 * mips-tdep.c (mips_gdbarch_init): Update.
7509 * mcore-tdep.c (mcore_gdbarch_init): Update.
7510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7511 * ia64-tdep.c (ia64_gdbarch_init): Update.
7512 * i386-tdep.c (i386_gdbarch_init): Update.
7513 * h8300-tdep.c (h8300_gdbarch_init): Update.
7514 * frv-tdep.c (frv_gdbarch_init): Update.
7515 * cris-tdep.c (cris_gdbarch_init): Update.
7516 * avr-tdep.c (avr_gdbarch_init): Update.
7517 * arm-tdep.c (arm_gdbarch_init): Update.
7518 * valops.c (hand_function_call): Update.
7519
4d628cd7
AC
75202003-03-29 Andrew Cagney <cagney@redhat.com>
7521
7522 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7523 sizeof_call_dummy_words.
7524 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7525 define.
7526 * gdbarch.h: Regenerate.
8ffd9b1b 7527
65e82032
AC
75282003-03-29 Andrew Cagney <cagney@redhat.com>
7529
7530 * infttrace.h: New file.
7531 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7532 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7533 (hpread_read_doc_function_type): Detect an initialized type1.
7534 (hpread_quick_traverse): Initialize mod_name_string.
7535 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7536 (som_solib_get_solib_by_pc): Declare.
7537 (so_lib_thread_start_addr): Declare.
7538 (no_shared_libraries): Declare.
7539 * somread.c (init_import_symbols): Make static. Add forward
7540 declaration.
7541 * config/pa/nm-hppah.h: Include "infttrace.h" for
7542 parent_attach_all.
7543 (hppa_insert_hw_watchpoint): Declare.
7544 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7545 * hppah-nat.c: Include "gdb_string.h".
7546 (parent_attach_all): Delete extern declaration, moved to
7547 "infttrace.h".
7548 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7549 int.
7550 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7551 * Makefile.in (infttrace_h): Define.
7552 (hpread.o): Update dependencies.
7553 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7554 * hppa-hpux-tdep.c: Include "gdb_string.h".
7555 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7556 * infrun.c (handle_inferior_event): Always initialize
7557 stepped_after_stopped_by_watchpoint. Add default and remove
7558 fallthrough in switch statement.
7559 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7560 parameter to int.
7561 (hppa_remove_hw_watchpoint): Ditto.
7562
2c3bbe77
AC
75632003-03-29 Andrew Cagney <cagney@redhat.com>
7564
7565 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7566 offset.
7567
2dd604e7
RE
75682003-03-29 Richard Earnshaw <rearnsha@arm.com>
7569
7570 * arm-tdep.c (arm_push_arguments): Delete.
7571 (struct stack_item): New type.
7572 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7573 (arm_store_struct_return): Delte.
7574 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7575 arm_push_arguments or arm_store_struct_return.
7576
e8933a55
AC
75772003-03-28 Andrew Cagney <cagney@redhat.com>
7578
7579 * Makefile.in (d10v-tdep.o): Update dependencies.
7580 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7581 * d10v-tdep.c: Include "remote.h".
7582 (target_resume_hook): Delete extern declaration.
7583 (target_wait_loop_hook): Ditto.
7584 (tdisassemble_command): Eliminate assignment in "if" conditional.
7585 (d10v_ts2_register_sim_regno): Eliminate call to
7586 legacy_register_sim_regno.
7587 (d10v_ts3_register_sim_regno): Ditto.
7588
6949171e
JJ
75892003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7590
7591 * thread.c: Reindented.
7592 * lin-lwp.c: Ditto.
7593 * linux-proc.c: Ditto.
7594
98c7071f
BR
75952003-03-28 Bob Rossi <bob_rossi@cox.net>
7596
fbe586ae 7597 * MAINTAINERS (write after approval): Add myself.
98c7071f 7598
5edc9ca6
TR
75992003-03-27 Theodore A. Roth <troth@openavr.org>
7600
7601 * objc-exp.y: Add missing semi-colons.
7602
378bfd1b
AC
76032003-03-27 Andrew Cagney <cagney@redhat.com>
7604
7605 * regcache.c (write_sp): Delete function and references.
7606 * inferior.h (write_sp): Delete declaration.
7607 * valops.c (hand_function_call): Replace write_sp with
7608 TARGET_WRITE_SP.
7609 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7610 (sparc_pop_frame): Ditto.
8ffd9b1b 7611
56056df7
AC
76122003-03-27 Andrew Cagney <cagney@redhat.com>
7613
7614 * NEWS: Mention removal of support for hppa*-*-bsd* and
7615 hppa*-*-osf* natives, and hppa*-*-pro* target.
7616 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7617 * config/pa/xm-pa.h: Obsolete file.
7618 * config/pa/xm-hppab.h: Obsolete file.
7619 * config/pa/nm-hppab.h: Obsolete file.
7620 * config/pa/tm-hppab.h: Obsolete file.
7621 * config/pa/tm-hppao.h: Obsolete file.
7622 * config/pa/nm-hppao.h: Obsolete file.
7623 * config/pa/tm-pro.h: Obsolete file.
7624 * config/pa/hppaosf.mt: Obsolete file.
7625 * config/pa/hppaosf.mh: Obsolete file.
7626 * config/pa/hppapro.mt: Obsolete file.
7627 * config/pa/hppabsd.mt: Obsolete file.
7628 * config/pa/hppabsd.mh: Obsolete file.
7629 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7630 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7631 hppa*-*-osf*.
7632
5873a88d
AC
76332003-03-27 Andrew Cagney <cagney@redhat.com>
7634
7635 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7636 push_arguments. Don't set push_return_address or write_sp.
7637 (d10v_push_dummy_call): Replace d10v_push_arguments.
7638 (d10v_push_return_address, d10v_write_sp): Delete function,
7639 handled by push_dummy_call.
7640
b81774d8
AC
76412003-03-26 Andrew Cagney <cagney@redhat.com>
7642
7643 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7644 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7645 regcache and dummy_addr parameters.
7646 * gdbarch.h, gdbarch.c: Re-generate.
7647 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7648 available; assume it will handle stack alignment and return
7649 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7650 legacy_push_arguments.
7651 (legacy_push_arguments): Rename default_push_arguments.
7652 * value.h (legacy_push_arguments): Rename default_push_arguments.
7653 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7654 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7655 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7656 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7657 * config/i386/tm-symmetry.h: Update.
7658 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7659 * x86-64-tdep.c (x86_64_init_abi): Update.
7660 * v850-tdep.c (v850_gdbarch_init): Update.
7661 * sparc-tdep.c (sparc_gdbarch_init): Update.
7662 * sh-tdep.c (sh_gdbarch_init): Update.
7663 * s390-tdep.c (s390_gdbarch_init): Update.
7664 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7665 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7666 * mips-tdep.c (mips_gdbarch_init): Update.
7667 * mcore-tdep.c (mcore_gdbarch_init): Update.
7668 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7669 * ia64-tdep.c (ia64_gdbarch_init): Update.
7670 * i386-tdep.c (i386_gdbarch_init): Update.
7671 * hppa-tdep.c (hppa_gdbarch_init): Update.
7672 * h8300-tdep.c (h8300_gdbarch_init): Update.
7673 * frv-tdep.c (frv_gdbarch_init): Update.
7674 * d10v-tdep.c (d10v_gdbarch_init): Update.
7675 * cris-tdep.c (cris_gdbarch_init): Update.
7676 * avr-tdep.c (avr_gdbarch_init): Update.
7677 * arm-tdep.c (arm_gdbarch_init): Update.
7678 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7679 * alpha-tdep.c (alpha_gdbarch_init): Update.
7680
f541410f
DJ
76812003-03-26 Daniel Jacobowitz <drow@mvista.com>
7682
7683 * signals/signals.c (do_target_signal_to_host): Correct realtime
7684 signal range test.
7685
69f567ae
DJ
76862003-03-26 Daniel Jacobowitz <drow@mvista.com>
7687
7688 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7689 (struct sal_chain, map_catch_names): Remove.
7690 (catch_exception_command_1): Don't call
7691 handle_gnu_4_16_catch_command.
7692
d5d14a5a
DJ
76932003-03-26 Daniel Jacobowitz <drow@mvista.com>
7694
7695 From Mark Dettinger <dettinge@de.ibm.com>:
7696 * dwarf2cfi.c (read_2u): Increment pointer by two.
7697
bdd73e22
DJ
76982003-03-26 Daniel Jacobowitz <drow@mvista.com>
7699
7700 * signals/signals.c: Fix typos in last change.
7701
960cb555
DJ
77022003-03-26 Daniel Jacobowitz <drow@mvista.com>
7703
7704 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7705 not already defined. Use __SIGRTMIN if available.
7706 (target_signal_from_host): Remove SIGRTMIN block.
7707 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7708 the signal is within the realtime range.
7709
f636b87d
AF
77102003-03-25 Adam Fedor <fedor@gnu.org>
7711
7712 * Makefile.in (infrun.o): Add $(language_h)
7713 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7714 for language specific trampolines.
7715 * language.h (struct language_defn): Add skip_trampoline.
7716 (skip_language_trampoline): Declare.
7717 * language.c (unk_lang_trampoline, skip_language_trampoline):
7718 New functions.
7719 (unknown_language_defn, auto_language_defn, local_language_defn):
7720 Add ukn_lang_trampoline.
7721 * ada-lang.c (ada_language_defn): Add NULL for language
7722 specific skip_trampoline.
7723 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7724 scm-lang.c: Likewise.
7725 * objc-lang.c (objc_skip_trampoline): New function.
7726 (objc_language_defn): Add objc_skip_trampoline.
7727
28f617b3 77282003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7729
7730 * frame.c (get_prev_frame): Delay validating a frame's ID -
7731 non-NULL, didn't go backwards - until an attempt to unwind it to
7732 the previous frame.
7733
f933a9c5
AC
77342003-03-25 Andrew Cagney <cagney@redhat.com>
7735
7736 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7737 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7738 * gdbarch.h, gdbarch.c: Re-generate.
7739 * config/sparc/tm-sparc.h
7740 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7741 * sparc-tdep.c (sparc_gdbarch_init): Set
7742 deprecated_extra_stack_alignment_needed.
7743 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7744 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7745 extra_stack_alignment_needed.
7746 * v850-tdep.c (v850_gdbarch_init): Ditto.
7747 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7748 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7749 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7750 * cris-tdep.c (cris_gdbarch_init): Ditto.
7751 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7753
4183d812
AC
77542003-03-25 Andrew Cagney <cagney@redhat.com>
7755
7756 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7757 STORE_STRUCT_RETURN.
7758 * gdbarch.h, gdbarch.c: Regenerate.
7759 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7760 (d10v_push_arguments): Set the struct return register.
7761 (d10v_gdbarch_init): Update.
7762 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7763 * x86-64-tdep.c (x86_64_init_abi): Update.
7764 * vax-tdep.c (vax_gdbarch_init): Update.
7765 * v850-tdep.c (v850_gdbarch_init): Update.
7766 * sparc-tdep.c (sparc_gdbarch_init): Update.
7767 * sh-tdep.c (sh_gdbarch_init): Update.
7768 * s390-tdep.c (s390_gdbarch_init): Update.
7769 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7770 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7771 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7772 * mips-tdep.c (mips_gdbarch_init): Update.
7773 * mcore-tdep.c (mcore_gdbarch_init): Update.
7774 * m68k-tdep.c (m68k_gdbarch_init): Update.
7775 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7776 * ia64-tdep.c (ia64_gdbarch_init): Update.
7777 * i386-tdep.c (i386_gdbarch_init): Update.
7778 * hppa-tdep.c (hppa_gdbarch_init): Update.
7779 * h8300-tdep.c (h8300_gdbarch_init): Update.
7780 * frv-tdep.c (frv_gdbarch_init): Update.
7781 * cris-tdep.c (cris_gdbarch_init): Update.
7782 * avr-tdep.c (avr_gdbarch_init): Update.
7783 * arm-tdep.c (arm_gdbarch_init): Update.
7784 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7785
1bf6d5cc
AC
77862003-03-25 Andrew Cagney <cagney@redhat.com>
7787
7788 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7789 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7790 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7791 * gdbarch.h, gdbarch.c: Regenerate.
7792 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7793 call_dummy_stack_adjust_p.
7794 * vax-tdep.c (vax_gdbarch_init): Ditto.
7795 * v850-tdep.c (v850_gdbarch_init): Ditto.
7796 * sh-tdep.c (sh_gdbarch_init): Ditto.
7797 * s390-tdep.c (s390_gdbarch_init): Ditto.
7798 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7799 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7800 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7801 * mips-tdep.c (mips_gdbarch_init): Ditto.
7802 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7803 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7805 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7806 * i386-tdep.c (i386_gdbarch_init): Ditto.
7807 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7808 * frv-tdep.c (frv_gdbarch_init): Ditto.
7809 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7810 * cris-tdep.c (cris_gdbarch_init): Ditto.
7811 * avr-tdep.c (avr_gdbarch_init): Ditto.
7812 * arm-tdep.c (arm_gdbarch_init): Ditto.
7813 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7814 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7815 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7816 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7817 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7818 call_dummy_stack_adjust_p.
7819 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7820 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7821 * sparc-tdep.c (sparc32_push_arguments): Update.
7822 * valops.c (hand_function_call): Update.
7823
71c08af0
CV
78242003-03-25 Corinna Vinschen <vinschen@redhat.com>
7825
7826 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7827 set_gdbarch_char_signed.
7828
30757f90
RE
78292003-03-25 Richard Earnshaw <rearnsha@arm.com>
7830
7831 PR cli/548
7832 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7833
03d48a7d
RE
78342003-03-25 Richard Earnshaw <rearnsha@arm.com>
7835
7836 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7837 (_initialize_arm_tdep): Don't set tm_print_insn.
7838
2cf6873c
AF
78392003-03-24 Adam Fedor <fedor@gnu.org>
7840
7841 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7842 * objc-lang.h: Add multiple inclusion protection.
7843 (start_msglist, add_msglist, end_msglist): Additional declarations.
7844
17c0759e
RE
78452003-03-24 Richard Earnshaw <rearnsha@arm.com>
7846
7847 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7848 value was renamed to ARM_FLOAT_SOFT_FPA.
7849
618ce49f
AC
78502003-03-23 Andrew Cagney <cagney@redhat.com>
7851
7852 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7853 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7854 * gdbarch.h, gdbarch.c: Regenerate.
7855 * valops.c (hand_function_call): Update.
7856 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7857 * frame.c (legacy_saved_regs_this_id): Update.
7858 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7859 * dummy-frame.h: Update.
7860 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7861 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7862 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7863 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7864 * config/m68k/tm-sun3.h: Update.
7865 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7866 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7867 * x86-64-tdep.c (x86_64_init_abi): Update.
7868 * vax-tdep.c (vax_gdbarch_init): Update.
7869 * v850-tdep.c (v850_gdbarch_init): Update.
7870 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7871 * sh-tdep.c (sh_gdbarch_init): Update.
7872 * s390-tdep.c (s390_gdbarch_init): Update.
7873 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7874 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7875 (frame_get_saved_regs): Update.
7876 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7877 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7878 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7879 * mips-tdep.c (mips_gdbarch_init): Update.
7880 * mcore-tdep.c (mcore_gdbarch_init): Update.
7881 * m68k-tdep.c (m68k_gdbarch_init): Update.
7882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7883 * ia64-tdep.c (ia64_gdbarch_init): Update.
7884 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7885 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7886 (i386_interix_back_one_frame): Update.
7887 * hppa-tdep.c (hppa_gdbarch_init): Update.
7888 (hppa_init_extra_frame_info): Update.
7889 * h8300-tdep.c (h8300_gdbarch_init): Update.
7890 * frv-tdep.c (frv_gdbarch_init): Update.
7891 * cris-tdep.c (cris_gdbarch_init): Update.
7892 * avr-tdep.c (avr_gdbarch_init): Update.
7893 * arm-tdep.c (arm_gdbarch_init): Update.
7894 * alpha-tdep.c (alpha_gdbarch_init): Update.
7895
fd50bc42
RE
78962003-03-22 Richard Earnshaw <rearnsha@arm.com>
7897
7898 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7899 (arm_get_fp_model): Declare.
7900 * arm-tdep.c (fp_model_strings): New string array.
7901 (arm_fp_model, current_fp_model): New variables.
7902 (arm_get_fp_model): New function.
7903 (arm_set_fp): New function.
7904 (set_fp_model_sfunc): New function.
7905 (show_fp_model): New function.
7906 (_initialize_arm_tdep): Add new command to set/show the FPU.
7907 (arm_extract_return_value): Use arm_get_fp_model.
7908 (arm_store_return_value): Likewise.
7909 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7910 to initialize the floating-point data types.
7911 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7912 model is FPA.
7913
26304000
RE
79142003-03-22 Richard Earnshaw <rearnsha@arm.com>
7915
7916 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7917 the current setting of each value.
7918 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 7919 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
7920 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7921 commands and add new version as subcommands of "set/show arm".
7922
afd7eef0
RE
79232003-03-22 Richard Earnshaw <rearnsha@arm.com>
7924
7925 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7926 (set_arm_command, show_arm_command): New functions.
7927 (_initialize_arm_tdep): Add them.
7928 (num_disassembly_options): Renamed from num_flavor_options.
7929 (valid_disassembly_styles): Renamed from valid_flavors.
7930 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 7931 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
7932 set_disassembly_flavor_sfunc.
7933 (set_disassembly_style): Renamed from set_disassembly_flavor.
7934 (arm_othernames): Updated.
7935 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7936 command. Add "set/show arm disassembly" commands. Deprecate
7937 "othernames" command.
7938
299a7944
RE
79392003-03-22 Richard Earnshaw <rearnsha@arm.com>
7940
7941 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7942 (arm-tdep.o): Depend on elf_arm_h.
7943
c1dac9e6
RE
79442003-03-22 Richard Earnshaw <rearnsha@arm.com>
7945
7946 * Makefile.in (coff_internal_h): Define.
7947 (arm-tdep.o): Update dependencies.
7948
2702d96c
RE
79492003-03-22 Richard Earnshaw <rearnsha@arm.com>
7950
7951 * arm-tdep.c (prologue_cache): Delete.
7952 (check_prologue_cache, save_prologue_cache): Delete.
7953 (arm_scan_prologue): Don't check or update the prologue_cache.
7954 (arm_gdb_arch_init): Don't initialize it.
7955 (_initialize_arm_tdep): Likewise.
7956
27d5d74b
SC
79572003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7958
7959 * MAINTAINERS (tui): Maintainer of tui code.
7960
1762d96d
CV
79612003-03-21 Corinna Vinschen <vinschen@redhat.com>
7962
7963 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7964 (i386-cygwin-tdep.o): Add dependencies.
7965 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7966 * i386-cygwin-tdep.c: New file.
7967 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7968 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7969
4c2e2391
AC
79702003-03-20 Andrew Cagney <cagney@redhat.com>
7971
f20d38b7
AC
7972 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7973 (handle_inferior_event): Remove code calling
7974 DYNAMIC_TRAMPOLINE_NEXTPC.
7975
0022b738
AC
7976 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7977 already has a full path.
7978
864dbc90
AC
7979 * main.c (gdb_main): Return 1.
7980 (captured_main): Call error to report an invalid interpreter.
7981
4c2e2391
AC
7982 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7983 * alpha-osf1-tdep.c: Include "gdb_string.h".
7984
5ef7553b
JB
79852003-03-19 J. Brobecker <brobecker@gnat.com>
7986
7987 Continuing work to convert the hppa targets to multiarch partial.
7988
7989 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7990 method, now that hppa_push_dummy_frame has a conformant prototype.
7991 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7992 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7993 for the switch to multiarch partial.
7994
7bde8967
KB
79952003-03-19 Kevin Buettner <kevinb@redhat.com>
7996
7997 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7998 when iss is issNull.
7999
b006a9e9
KB
80002003-03-18 Kevin Buettner <kevinb@redhat.com>
8001
8002 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8003 NUM_REGS bounds check.
8004
5e2e9765
KB
80052003-03-18 Kevin Buettner <kevinb@redhat.com>
8006
8007 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8008 * mips-tdep.c (gdb_assert.h): Include.
8009 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8010 (mips_register_name): Handle integer registers explicitly. Add
8011 bounds checking.
8012 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8013 (mips_lsi33k_reg_names): Don't list integer registers; they're
8014 handled by mips_register_name() now.
8015 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8016 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8017 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8018 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8019 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8020
a2867626
AC
80212003-03-18 Andrew Cagney <cagney@redhat.com>
8022
8023 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8024 a void pointer.
8025 * gdbtypes.h (print_scalar_formatted): Update declaration.
8026 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8027
06600e06
JB
80282003-03-18 J. Brobecker <brobecker@gnat.com>
8029
8030 * infrun.c (observer.h): Add #include.
8031 (normal_stop): Add call to observer_notify_normal_stop.
8032 * Makefile.in (infrun.o): Add dependency on observer.h.
8033
7daf4f5b
JB
80342003-03-18 J. Brobecker <brobecker@gnat.com>
8035
8036 Continuing work to convert the hppa targets to multiarch partial.
8037 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8038 parameter. Reformat comment.
8039 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8040 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8041 to match new profile.
8042
3371ccc0
JB
80432003-03-18 J. Brobecker <brobecker@gnat.com>
8044
8045 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8046 appear to be working in any case.
8047
4fbe891e
JB
80482003-03-18 J. Brobecker <brobecker@gnat.com>
8049
8050 * observer.c (observer_test_first_observer): New static variable.
8051 (observer_test_second_observer): Likewise.
8052 (observer_test_third_observer): Likewise.
8053 (observer_test_first_notification_function): New static function.
8054 (observer_test_second_notification_function): Likewise.
8055 (observer_test_third_notification_function): Likewise.
8056
a7ff40e7
JB
80572003-03-17 J. Brobecker <brobecker@gnat.com>
8058
8059 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8060 * somsolib.c (gdb_assert.h): Likewise.
8061 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8062 (somsolib.o): Likewise.
8063
26ca4152
AC
80642003-03-17 Andrew Cagney <cagney@redhat.com>
8065
8066 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8067 BFD. Simplify setting of di.endian.
8068
0a613259
AC
80692003-03-17 Andrew Cagney <cagney@redhat.com>
8070
8071 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8072 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8073
8074 From Elena Zannoni <ezannoni@redhat.com>
8075 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8076 vector and floating-point parameters.
8077 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8078 convention.
8079 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8080
1132738f
FN
80812003-03-17 Fernando Nasser <fnasser@redhat.com>
8082
8083 * MAINTAINERS: Remove my name from several maintainership roles.
8084
6dc42492
AC
80852003-03-17 Andrew Cagney <cagney@redhat.com>
8086
8087 Fix frame off-by-one bug.
8088 * frame-unwind.h (frame_this_id_ftype): Replace
8089 frame_unwind_id_ftype.
8090 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8091 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8092 with "prev_register".
8093 * frame-unwind.c (frame_unwind_find_by_pc): Return
8094 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8095 comment.
8096 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8097 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8098 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8099 (dummy_frame_unwind): Update.
8100 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8101 sentinel_frame_register_unwind.
8102 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8103 (sentinel_frame_unwinder): Update.
8104 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8105 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8106 * frame.c (create_sentinel_frame): Update. Initialize
8107 "prologue_cache" instead of "unwind_cache".
8108 (frame_register_unwind): Call this frame's prev_register with the
8109 next frame and this frame's prologue cache.
8110 (get_prev_frame): Simplify. Always call prev frame's this_id with
8111 this frame and prev frame's prologue cache. Document that this
8112 call is shifted one to the left when compared to the
8113 frame_register_unwind call.
8114 (legacy_saved_regs_prev_register): Replace
8115 frame_saved_regs_register_unwind.
8116 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8117 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8118 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8119 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8120 (d10v_frame_unwind): Update.
8121 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8122 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8123 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8124 "saved_regs" with "this_saved_regs".
8125
efd710d6
AC
81262003-03-16 Andrew Cagney <cagney@redhat.com>
8127
8128 * frame.c (frame_pop): Don't call target_store_registers. Fix
8129 problem reported by Mark Kettenis.
8130
4e259f09
MK
81312003-03-16 Mark Kettenis <kettenis@gnu.org>
8132
8133 * i386-tdep.c (i386_register_type): Renamed from
8134 i386_register_virtual_type. Adjust function signature.
8135 (i386_gdbarch_init): Set register_type instead of
8136 deprecated_max_register_raw_size,
8137 deprecated_max_register_virtual_size and register_virtual_type.
8138
055bb976
AC
81392003-03-14 Andrew Cagney <cagney@redhat.com>
8140
8141 * frame.c (get_prev_frame): When a legacy frame, always call
8142 legacy_get_prev_frame. Simplify unwind code using assumption that
8143 the unwinder is new.
8144 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8145 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8146 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8147
ac2adee5
AC
81482003-03-14 Andrew Cagney <cagney@redhat.com>
8149
8150 * frame.c (get_saved_register): Delete function.
8151 * frame.h (get_saved_register): Delete declaration.
8152 * xstormy16-tdep.c: Update comment.
8153 * regcache.h: Update comments.
8154 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8155 get_saved_register and extract_address, use
8156 frame_read_unsigned_register.
8157 (sparc_frame_saved_pc): Ditto.
8158 (sparc_get_saved_register): Instead of get_saved_register, use
8159 frame_register.
8160 (sparc_pop_frame): Ditto.
8161 * findvar.c: Update comments.
8162 (value_of_register): Call frame_register instead of
8163 get_saved_register.
8164 (value_from_register): Ditto.
8165 * config/sparc/tm-sparc.h: Update comment.
8166 * breakpoint.c: Update comment.
8167
129c1cd6
AC
81682003-03-14 Andrew Cagney <cagney@redhat.com>
8169
8170 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8171 GET_SAVED_REGISTER.
8172 * gdbarch.h, gdbarch.c: Re-generate.
8173 * frame.h: Update comments.
8174 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8175 * x86-64-tdep.c (x86_64_init_abi): Update.
8176 * sparc-tdep.c (sparc_gdbarch_init): Update.
8177 * sh-tdep.c (sh_gdbarch_init): Update.
8178 * mips-tdep.c (mips_gdbarch_init): Update.
8179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8180 * cris-tdep.c (cris_gdbarch_init): Update.
8181 * ia64-tdep.c (ia64_gdbarch_init): Update.
8182 * frame.c (frame_register): Update.
8183 (get_saved_register): Update.
8184 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8185
749b82f6
AC
81862003-03-13 Andrew Cagney <cagney@redhat.com>
8187
8188 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8189 * gdbarch.h, gdbarch.c: Regenerate.
8190 * valops.c (hand_function_call): Update comment.
8191 * stack.c (return_command): Update comment.
8192 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8193 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8194 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8195 * x86-64-tdep.c (x86_64_init_abi): Update.
8196 * vax-tdep.c (vax_gdbarch_init): Update.
8197 * v850-tdep.c (v850_gdbarch_init): Update.
8198 * sparc-tdep.c (sparc_gdbarch_init): Update.
8199 * sh-tdep.c (sh_gdbarch_init): Update.
8200 * s390-tdep.c (s390_gdbarch_init): Update.
8201 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8202 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8203 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8204 * mips-tdep.c (mips_gdbarch_init): Update.
8205 * mcore-tdep.c (mcore_gdbarch_init): Update.
8206 * m68k-tdep.c (m68k_gdbarch_init): Update.
8207 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8208 * ia64-tdep.c (ia64_gdbarch_init): Update.
8209 * i386-tdep.c (i386_gdbarch_init): Update.
8210 * hppa-tdep.c (hppa_gdbarch_init): Update.
8211 * h8300-tdep.c (h8300_gdbarch_init): Update.
8212 * frv-tdep.c (frv_gdbarch_init): Update.
8213 * cris-tdep.c (cris_gdbarch_init): Update.
8214 * avr-tdep.c (avr_gdbarch_init): Update.
8215 * arm-tdep.c (arm_gdbarch_init): Update.
8216 * alpha-tdep.c (alpha_gdbarch_init): Update.
8217
1594fa56
AC
82182003-03-13 Andrew Cagney <cagney@redhat.com>
8219
8220 * frame.c (legacy_frame_p): New function.
8221 (get_prev_frame): Use legacy_frame_p.
8222 * frame.h (legacy_frame_p): Declare.
8223
7717fda3
V
82242003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8225
fbe586ae 8226 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8227 listing corrected.
8228
0c67cbe9
V
82292003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8230
fbe586ae 8231 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8232
03febf99
AC
82332003-03-12 Andrew Cagney <cagney@redhat.com>
8234
8235 * frame.c (get_prev_frame): Rename the frame parameter to
8236 "this_frame".
8237 (get_next_frame, legacy_get_prev_frame): Ditto.
8238
0a1e1ca1
AC
82392003-03-12 Andrew Cagney <cagney@redhat.com>
8240
8241 * frame.c (get_current_frame): Check target_has_registers before
8242 checking target_has_stack.
8243 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8244 instead of deprecated_selected_frame.
8245 * findvar.c (value_of_register): Pass "frame", not
8246 deprecated_selected_frame, to value_of_builtin_reg.
8247
a66a9c23
AC
82482003-03-12 Andrew Cagney <cagney@redhat.com>
8249
8250 * regcache.c (regcache_cooked_write_signed): New function.
8251 (regcache_cooked_write_unsigned): New function.
8252 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8253 (regcache_cooked_read_signed): Fix regnum in range assertion.
8254 * regcache.h (regcache_cooked_write_signed): Declare.
8255 (regcache_cooked_write_unsigned): Declare.
8256
8bedc050
AC
82572003-03-12 Andrew Cagney <cagney@redhat.com>
8258
8259 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8260 * gdbarch.h, gdbarch.c: Re-generate.
8261 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8262 * x86-64-tdep.h: Update.
8263 * x86-64-tdep.c (x86_64_init_abi): Update.
8264 * v850-tdep.c (v850_gdbarch_init): Update.
8265 * sparc-tdep.c (sparc_gdbarch_init): Update.
8266 * sh-tdep.c (sh_gdbarch_init): Update.
8267 * s390-tdep.c (s390_gdbarch_init): Update.
8268 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8269 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8270 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8271 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8272 * mips-tdep.c (mips_gdbarch_init): Update.
8273 * mcore-tdep.c (mcore_gdbarch_init): Update.
8274 * m68k-tdep.c (m68k_gdbarch_init): Update.
8275 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8276 * ia64-tdep.c (ia64_gdbarch_init): Update.
8277 * i386-tdep.c (i386_gdbarch_init): Update.
8278 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8279 * hppa-tdep.c (hppa_gdbarch_init): Update.
8280 * h8300-tdep.c (h8300_gdbarch_init): Update.
8281 * frv-tdep.c (frv_gdbarch_init): Update.
8282 * cris-tdep.c (cris_gdbarch_init): Update.
8283 * avr-tdep.c (avr_gdbarch_init): Update.
8284 * arm-tdep.c (arm_gdbarch_init): Update.
8285 * alpha-tdep.c (alpha_gdbarch_init): Update.
8286 * sh-tdep.c (sh_init_extra_frame_info): Update.
8287 (sh64_init_extra_frame_info): Update.
8288 * ns32knbsd-nat.c (frame_num_args): Update.
8289 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8290 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8291 (xstormy16_frame_chain_valid): Update.
8292 * vax-tdep.c (vax_saved_pc_after_call): Update.
8293 * v850-tdep.c (v850_frame_chain): Update.
8294 (v850_pop_frame): Update.
8295 (v850_init_extra_frame_info): Update.
8296 * sparc-tdep.c (setup_arbitrary_frame): Update.
8297 * ns32k-tdep.c (umax_frame_num_args): Update.
8298 * s390-tdep.c (s390_pop_frame_regular): Update.
8299 * mn10300-tdep.c (mn10300_frame_chain): Update.
8300 (mn10300_pop_frame_regular): Update.
8301 (mn10300_init_extra_frame_info): Update.
8302 * mips-tdep.c (mips_init_frame_pc_first): Update.
8303 (mips_frame_chain): Update.
8304 (mips_pop_frame): Update.
8305 * mcore-tdep.c (mcore_frame_chain): Update.
8306 (mcore_pop_frame): Update.
8307 (mcore_init_extra_frame_info): Update.
8308 * arch-utils.c (init_frame_pc_default): Update.
8309 * m68k-tdep.c (isi_frame_num_args): Update.
8310 (delta68_frame_num_args): Update.
8311 (news_frame_num_args): Update.
8312 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8313 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8314 (alpha_frame_chain): Update.
8315 (alpha_pop_frame): Update.
8316 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8317 (hppa_init_extra_frame_info): Update.
8318 (hppa_frame_chain): Update.
8319 (hppa_frame_chain_valid): Update.
8320 * cris-tdep.c (cris_init_extra_frame_info): Update.
8321 * avr-tdep.c (avr_init_extra_frame_info): Update.
8322 * arm-tdep.c (arm_frame_chain_valid): Update.
8323 (arm_init_extra_frame_info): Update.
8324 (arm_pop_frame): Update.
8325 * frame.c (frame_pc_unwind): Update.
8326 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8327 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8328 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8329 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8330 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8331 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8332
7a25a7c1
AC
83332003-03-12 Andrew Cagney <cagney@redhat.com>
8334
8335 Eliminate the need for POP_FRAME.
8336 * frame.c (do_frame_unwind_register): New function.
8337 (frame_pop): When no POP_FRAME, pop the frame using register
8338 unwind and a scratch regcache.
8339 (frame_saved_regs_pop): Delete function.
8340 (trad_frame_unwinder): Update.
8341 * d10v-tdep.c (d10v_frame_pop): Delete function.
8342 (d10v_frame_unwind): Update.
8343 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8344 (sentinel_frame_unwinder): Update.
8345 * dummy-frame.c (dummy_frame_pop): Delete function.
8346 (dummy_frame_unwind): Update.
8347 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8348 (struct frame_unwind): Update.
8349
2f38ef89
KB
83502003-03-11 Kevin Buettner <kevinb@redhat.com>
8351
8352 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8353 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8354 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8355 Do range checks on register number obtained from debugging info.
8356 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8357 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8358 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8359 mapping function.
8360 (do_fp_register_row): Fix typo which caused double type to be
8361 used when attempting to unpack a float.
8362
552f4abf
JB
83632003-03-11 J. Brobecker <brobecker@gnat.com>
8364
8365 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8366
e0d2ae16
AC
83672003-03-11 Andrew Cagney <cagney@redhat.com>
8368
8369 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8370 frame. Problem found by Corinna Vinschen.
8371
ddbfdd06
PM
83722003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8373
8374 * doublest.c (floatformat_from_length): Accept also
8375 the real size of 'long double' type.
8376
088b2ddc 83772003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8378
088b2ddc 8379 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8380 * breakpoint.c (bpstat_copy): Copy the command lines as well
8381 as the old value, to match what is freed in bpstat_clear.
8382
f56f77c1
DC
83832003-03-10 David Carlton <carlton@math.stanford.edu>
8384
8385 * minsyms.c (add_minsym_to_hash_table): Replace
8386 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8387 (compare_minimal_symbols, compact_minimal_symbols)
8388 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8389 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8390 of DEPRECATED_SYMBOL_MATCHES_NAME.
8391 (lookup_minimal_symbol_solib_trampoline): Ditto.
8392
5602984a
AC
83932003-03-10 Andrew Cagney <cagney@redhat.com>
8394
8395 * regcache.h (regcache_cooked_read_ftype): Define.
8396 (regcache_save, regcache_restore): Add a cooked_read parameter.
8397 * regcache.c (regcache_save, regcache_restore): Update.
8398 (do_cooked_read): New function.
8399 (regcache_cpy): Pass do_cooked_read to regcache_save and
8400 regcache_restore.
8401
8bedc050
AC
84022003-03-10 Andrew Cagney <cagney@redhat.com>
8403
8404 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8405 * gdbarch.h, gdbarch.c: Re-generate.
8406 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8407 * x86-64-tdep.h: Update.
8408 * x86-64-tdep.c (x86_64_init_abi): Update.
8409 * v850-tdep.c (v850_gdbarch_init): Update.
8410 * sparc-tdep.c (sparc_gdbarch_init): Update.
8411 * sh-tdep.c (sh_gdbarch_init): Update.
8412 * s390-tdep.c (s390_gdbarch_init): Update.
8413 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8414 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8415 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8416 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8417 * mips-tdep.c (mips_gdbarch_init): Update.
8418 * mcore-tdep.c (mcore_gdbarch_init): Update.
8419 * m68k-tdep.c (m68k_gdbarch_init): Update.
8420 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8421 * ia64-tdep.c (ia64_gdbarch_init): Update.
8422 * i386-tdep.c (i386_gdbarch_init): Update.
8423 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8424 * hppa-tdep.c (hppa_gdbarch_init): Update.
8425 * h8300-tdep.c (h8300_gdbarch_init): Update.
8426 * frv-tdep.c (frv_gdbarch_init): Update.
8427 * cris-tdep.c (cris_gdbarch_init): Update.
8428 * avr-tdep.c (avr_gdbarch_init): Update.
8429 * arm-tdep.c (arm_gdbarch_init): Update.
8430 * alpha-tdep.c (alpha_gdbarch_init): Update.
8431 * sh-tdep.c (sh_init_extra_frame_info): Update.
8432 (sh64_init_extra_frame_info): Update.
8433 * ns32knbsd-nat.c (frame_num_args): Update.
8434 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8435 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8436 (xstormy16_frame_chain_valid): Update.
8437 * vax-tdep.c (vax_saved_pc_after_call): Update.
8438 * v850-tdep.c (v850_frame_chain): Update.
8439 (v850_pop_frame): Update.
8440 (v850_init_extra_frame_info): Update.
8441 * sparc-tdep.c (setup_arbitrary_frame): Update.
8442 * ns32k-tdep.c (umax_frame_num_args): Update.
8443 * s390-tdep.c (s390_pop_frame_regular): Update.
8444 * mn10300-tdep.c (mn10300_frame_chain): Update.
8445 (mn10300_pop_frame_regular): Update.
8446 (mn10300_init_extra_frame_info): Update.
8447 * mips-tdep.c (mips_init_frame_pc_first): Update.
8448 (mips_frame_chain): Update.
8449 (mips_pop_frame): Update.
8450 * mcore-tdep.c (mcore_frame_chain): Update.
8451 (mcore_pop_frame): Update.
8452 (mcore_init_extra_frame_info): Update.
8453 * arch-utils.c (init_frame_pc_default): Update.
8454 * m68k-tdep.c (isi_frame_num_args): Update.
8455 (delta68_frame_num_args): Update.
8456 (news_frame_num_args): Update.
8457 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8458 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8459 (alpha_frame_chain): Update.
8460 (alpha_pop_frame): Update.
8461 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8462 (hppa_init_extra_frame_info): Update.
8463 (hppa_frame_chain): Update.
8464 (hppa_frame_chain_valid): Update.
8465 * cris-tdep.c (cris_init_extra_frame_info): Update.
8466 * avr-tdep.c (avr_init_extra_frame_info): Update.
8467 * arm-tdep.c (arm_frame_chain_valid): Update.
8468 (arm_init_extra_frame_info): Update.
8469 (arm_pop_frame): Update.
8470 * frame.c (frame_pc_unwind): Update.
8471 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8472 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8473 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8474 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8475 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8476 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8477
12cc2063
AC
84782003-03-10 Andrew Cagney <cagney@redhat.com>
8479
8480 * gdbarch.sh (gdbarch_unwind_pc): New method.
8481 * gdbarch.h, gdbarch.c: Regenerate.
8482 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8483 but use read_pc and FRAME_SAVED_PC as fall backs.
8484 (frame_saved_regs_pc_unwind): Delete function.
8485 (trad_frame_unwinder): Update.
8486 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8487 (struct frame_unwind): Update.
8488 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8489 (dummy_frame_unwind): Update.
8490 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8491 (sentinel_frame_unwinder): Update.
8492 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8493 (d10v_frame_unwind): Update.
8494 (d10v_unwind_pc): New function.
8495 (d10v_gdbarch_init): Set unwind_pc.
8496
ef840a37
AC
84972003-03-10 Andrew Cagney <cagney@redhat.com>
8498
a2ce2e56
AC
8499 * gdbarch.h: Re-generate.
8500
ef840a37
AC
8501 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8502 PC.
8503 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8504 the PC register.
8505
08f3424b
MK
85062003-03-08 Mark Kettenis <kettenis@gnu.org>
8507
8508 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8509
1248ede2
AC
85102003-03-08 Andrew Cagney <cagney@redhat.com>
8511
8512 * cli-out.c: Update copyright.
8513 (cli_out_data): Define typedef. Use instead of ui_out_data.
8514
f49bacc8
AC
85152003-03-08 Andrew Cagney <cagney@redhat.com>
8516
8517 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8518 the result.
8519
9b05f993
AC
85202003-03-07 Andrew Cagney <cagney@redhat.com>
8521
8522 * gdbarch.sh: Don't generate two macro definitions when an
8523 undefined macro taking no arguments.
8524 * gdbarch.h: Regenerate.
8ffd9b1b 8525
166f4c7b
ML
85262002-03-07 Michal Ludvig <mludvig@suse.cz>
8527
8528 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8529 (x86_64_unwind_dummy_id): New functions.
8530 (x86_64_init_abi): Register these two new functions.
8531
6d686a84
ML
85322003-03-07 Michal Ludvig <mludvig@suse.cz>
8533
8534 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8535 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8536 separate function.
8537 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8538
6314f104
AC
85392003-03-05 Andrew Cagney <cagney@redhat.com>
8540
8541 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8542 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8543 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8544 to use unwind_dummy_id when a dummy frame.
8545 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8546 predicate.
8547 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8548
ceea5145
AC
85492003-03-05 Andrew Cagney <cagney@redhat.com>
8550
8551 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8552 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8553 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8554 values.
8555
0d843116
AC
85562003-03-05 Andrew Cagney <cagney@redhat.com>
8557
8558 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8559 (struct d10v_unwind_cache): Delete field "frameless". Replace
8560 "next_addr" with "sp_offset". Add "r11_offset".
8561 (d10v_frame_unwind_cache): Update.
8562 (prologue_find_regs): Update. When "mv r11, sp", save the
8563 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8564 RN was saved in r11_offset.
8565
b2579786
AC
85662003-03-05 Andrew Cagney <cagney@redhat.com>
8567
8568 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8569 cached PC value in the next frame.
8570
218e5956
AC
85712003-03-05 Andrew Cagney <cagney@redhat.com>
8572
8573 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8574 "id_unwind_cache" with "id".
8575 (frame_id_unwind): Delete declaration.
8576 * frame.c (frame_id_unwind): Delete function.
8577 (get_prev_frame): Call the frame id unwind method directly. Store
8578 the returned next frame's ID value in NEXT_FRAME. Note that there
8579 is a problem with the wrong unwind ID being called with the wrong
8580 unwind cache.
8581
ed363b1b
DJ
85822003-03-05 Daniel Jacobowitz <drow@mvista.com>
8583
8584 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8585
fe1f4a5e
DJ
85862003-03-05 James Ingham <jingham@apple.com>
8587 Daniel Jacobowitz <drow@mvista.com>
8588
8589 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8590 (auto_cp_abi): New variable.
8591 (current_cp_abi, num_cp_abis): Make static.
8592 (CP_ABI_MAX): Define.
8593 (cp_abis): Turn into an array.
8594 (value_virtual_fn_field): Fix formatting.
8595 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8596 takes a pointer.
8597 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8598 (list_cp_abis, _initialize_cp_abi): New functions.
8599 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8600 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8601 switch_to_cp_abi. Update prototype for register_cp_abi.
8602 * Makefile.in (cp-abi.o): Update dependencies.
8603 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8604 instead of switch_to_cp_abi.
8605 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8606 register_cp_abi.
8607 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8608 register_cp_abi.
8609 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8610
e4adbba9
DJ
86112003-03-05 Daniel Jacobowitz <drow@mvista.com>
8612
8613 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8614 * dwarf2loc.c: Include "regcache.h".
8615 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8616 register_size.
8617 * Makefile.in (dwarf2loc.o): Update dependencies.
8618
91ccbfc1
TR
86192003-03-04 Theodore A. Roth <troth@openavr.org>
8620
8621 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8622 number of io registers reported by remote target is not a multiple of
8623 step.
8624
3d4e8fd2
DC
86252003-03-04 David Carlton <carlton@math.stanford.edu>
8626
8627 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8628 (lookup_symbol_aux_psymtabs): Update call to
8629 lookup_partial_symbol.
8630 (lookup_transparent_type, find_main_psymtab)
8631 (make_symbol_overload_list): Ditto.
8632
ed42d87b
KH
86332003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8634
8635 * MAINTAINERS (Write after approval): Update my email address.
8636
a0ed5532
AC
86372003-03-03 Andrew Cagney <cagney@redhat.com>
8638
8639 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8640 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8641 predicate. Replace MAX_REGISTER_RAW_SIZE.
8642 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8643 MAX_REGISTER_VIRTUAL_SIZE.
8644 * regcache.c (legacy_max_register_raw_size): New function.
8645 (legacy_max_register_virtual_size): New function.
8646 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8647 (MAX_REGISTER_RAW_SIZE): Define.
8648 (legacy_max_register_raw_size): Declare.
8649 (legacy_max_register_virtual_size): Declare.
8650 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8651 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8652 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8653 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8654 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8655 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8656 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8657 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8658 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8659 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8660 * vax-tdep.c (vax_gdbarch_init): Update.
8661 * v850-tdep.c (v850_gdbarch_init): Update.
8662 * sparc-tdep.c (sparc_gdbarch_init): Update.
8663 * sh-tdep.c (sh_gdbarch_init): Update.
8664 * s390-tdep.c (s390_gdbarch_init): Update.
8665 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8666 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8667 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8668 * mips-tdep.c (mips_gdbarch_init): Update.
8669 * mcore-tdep.c (mcore_gdbarch_init): Update.
8670 * m68k-tdep.c (m68k_gdbarch_init): Update.
8671 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8672 * ia64-tdep.c (ia64_gdbarch_init): Update.
8673 * i386-tdep.c (i386_gdbarch_init): Update.
8674 * hppa-tdep.c (hppa_gdbarch_init): Update.
8675 * h8300-tdep.c (h8300_gdbarch_init): Update.
8676 * frv-tdep.c (frv_gdbarch_init): Update.
8677 * cris-tdep.c (cris_gdbarch_init): Update.
8678 * avr-tdep.c (avr_gdbarch_init): Update.
8679 * arm-tdep.c (arm_gdbarch_init): Update.
8680 * alpha-tdep.c (alpha_gdbarch_init): Update.
8681 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8682 max_register_raw_size or max_register_virtual_size.
8683
8e437497
DC
86842003-03-03 David Carlton <carlton@math.stanford.edu>
8685
8686 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8687 SYMBOL_MATCHES_NAME, add comment.
8688 (SYMBOL_MATCHES_NATURAL_NAME): New.
8689 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8690 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8691 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8692 * symtab.c (lookup_partial_symbol): Use
8693 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8694 unhelpful comment.
8695 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8696 SYMBOL_MATCHES_NAME.
8697 Fix for PR c++/33.
8698
25120b0d
DC
86992003-03-03 David Carlton <carlton@math.stanford.edu>
8700
8701 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8702 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8703 by regexp matching against SYMBOL_NATURAL_NAME.
8704
78a11fb4
DC
87052003-03-03 David Carlton <carlton@math.stanford.edu>
8706
8707 * linespec.c (find_method): Extract code into collect_methods.
8708 (collect_methods): New.
8709
645dd519
MK
87102003-03-02 Mark Kettenis <kettenis@gnu.org>
8711
b4700d91
MK
8712 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8713 get_frame_base.
8714
645dd519
MK
8715 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8716 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8717
0aa7e1aa
SC
87182003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8719
8ffd9b1b 8720 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8721 and not regnum when summing the size of all registers up to regnum.
8722
f30ee0bc
AC
87232003-03-01 Andrew Cagney <cagney@redhat.com>
8724
8725 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8726 FRAME_INIT_SAVED_REGS.
8727 * gdbarch.h, gdbarch.c: Regenerate.
8728 * stack.c (frame_info): Update.
8729 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8730 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8731 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8732 * ns32k-tdep.c (ns32k_pop_frame): Update.
8733 * mips-tdep.c (mips_pop_frame): Update.
8734 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8735 * ia64-tdep.c (ia64_frame_chain): Update.
8736 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8737 (ia64_frameless_function_invocation): Update.
8738 (ia64_init_extra_frame_info): Update.
8739 (ia64_pop_frame_regular): Update.
8740 * frame.h (struct frame_info): Update comment.
8741 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8742 * frame.c (frame_saved_regs_register_unwind): Update.
8743 (frame_saved_regs_register_unwind): Update.
8744 (deprecated_generic_get_saved_register): Update.
8745 * cris-tdep.c: Update comment.
8746 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8747 Rename macro.
8748 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8749 * x86-64-tdep.c (x86_64_init_abi): Update.
8750 * vax-tdep.c (vax_gdbarch_init): Update.
8751 * v850-tdep.c (v850_gdbarch_init): Update.
8752 * sparc-tdep.c (sparc_gdbarch_init): Update.
8753 * sh-tdep.c (sh_gdbarch_init): Update.
8754 * s390-tdep.c (s390_gdbarch_init): Update.
8755 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8756 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8757 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8758 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8759 * mips-tdep.c (mips_gdbarch_init): Update.
8760 * mcore-tdep.c (mcore_gdbarch_init): Update.
8761 * m68k-tdep.c (m68k_gdbarch_init): Update.
8762 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8763 * ia64-tdep.c (ia64_gdbarch_init): Update.
8764 * i386-tdep.c (i386_gdbarch_init): Update.
8765 * frv-tdep.c (frv_gdbarch_init): Update.
8766 * avr-tdep.c (avr_gdbarch_init): Update.
8767 * arm-tdep.c (arm_gdbarch_init): Update.
8768 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8769
42fa7c0f
AC
87702003-03-01 Andrew Cagney <cagney@redhat.com>
8771
8772 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8773 option enum and switch. When no windows, set the interpreter to
8774 INTERP_CONSOLE.
8ffd9b1b 8775
49c7e338
AC
87762003-03-01 Andrew Cagney <cagney@redhat.com>
8777
8778 * main.c (captured_main): Replace magic option characters with an
8779 enum.
8780
e9582e71
AC
87812003-03-01 Andrew Cagney <cagney@redhat.com>
8782
8783 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8784 INIT_EXTRA_FRAME_INFO.
8785 * gdbarch.h, gdbarch.c: Regenerate.
8786 * arm-tdep.c: Update comments.
8787 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8788 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8789 * frame.h, avr-tdep.c: Ditto.
8790 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8791 (create_new_frame, legacy_get_prev_frame): Ditto.
8792 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8793 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8794 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8795 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8796 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8797 * v850-tdep.c (v850_gdbarch_init): Ditto.
8798 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8799 * sh-tdep.c (sh_gdbarch_init): Ditto.
8800 * s390-tdep.c (s390_gdbarch_init): Ditto.
8801 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8802 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8803 * mips-tdep.c (mips_gdbarch_init): Ditto.
8804 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8805 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8806 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8807 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8808 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8809 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8810 * frv-tdep.c (frv_gdbarch_init): Ditto.
8811 * cris-tdep.c (cris_gdbarch_init): Ditto.
8812 * avr-tdep.c (avr_gdbarch_init): Ditto.
8813 * arm-tdep.c (arm_gdbarch_init): Ditto.
8814 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8815 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8816
35cac7cf
AC
88172003-03-01 Andrew Cagney <cagney@redhat.com>
8818
8819 * gdbarch.sh (register_type): New function with predicate.
8820 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8821 * gdbarch.h, gdbarch.c: Re-generate.
8822 * arch-utils.c (generic_register_byte): Use generic_register_size.
8823 (generic_register_size): When available, use
8824 gdbarch_register_type.
8825 * regcache.c (init_regcache_descr): When available, initialize the
8826 register type array using gdbarch_register_type. If the
8827 architecture supplies gdbarch_register_type, do not use the legacy
8828 regcache layout.
8829 * d10v-tdep.c (d10v_register_type): Replace
8830 d10v_register_virtual_type.
8831 (d10v_gdbarch_init): Set register_type instead of
8832 register_virtual_type.
8833
7b83296f
AC
88342003-03-01 Andrew Cagney <cagney@redhat.com>
8835
8836 * Makefile.in (ax-gdb.o): Update dependencies.
8837 * ax-gdb.c: Include "regcache.h".
8838 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8839 * findvar.c (value_of_register): Ditto.
8840 * infcmd.c (default_print_registers_info): Ditto.
8841
eadc1c87
MK
88422003-03-01 Mark Kettenis <kettenis@gnu.org>
8843
8844 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8845 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8846
14143612
MK
88472003-03-01 Mark Kettenis <kettenis@gnu.org>
8848
8849 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8850 of STREQ.
8851
a55cc764
DJ
88522003-02-28 Daniel Jacobowitz <drow@mvista.com>
8853
8854 * Makefile.in (dwarf2loc.o): Update dependencies.
8855 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8856 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8857 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8858 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8859 (locexpr_tracepoint_var_ref): New function.
8860 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8861
08a617da
AC
88622003-02-28 Andrew Cagney <cagney@redhat.com>
8863
8864 * regcache.c (register_size): New function.
8865 * regcache.h (register_size): Declare
8866 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8867 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8868
4224873a
DC
88692003-02-28 David Carlton <carlton@math.stanford.edu>
8870
8871 * linespec.c (decode_compound): Extract code into find_method.
8872 (find_method): New.
8873
ccdc5d7f
JB
88742003-02-28 J. Brobecker <brobecker@gnat.com>
8875
8876 * Makefile.in: Add rules to build and link in observer.o.
8877
974e8ced
JB
88782003-02-27 J. Brobecker <brobecker@gnat.com>
8879
8880 * observer.c: Minor comments edits.
8881
7a28f973
JB
88822003-02-27 J. Brobecker <brobecker@gnat.com>
8883
8884 * observer.h, observer.c: New file.
8885
27cddce2
AC
88862003-02-27 Andrew Cagney <cagney@redhat.com>
8887
8888 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8889
b94a41a1
SC
88902003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8891
8892 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8893 (M6812_OP_STS_EXT): Likewise.
8894 (m6811_prologue): Use the above to recognize prologue.
8895 (m6812_prologue): Likewise.
8896
c8be8951
DC
88972003-02-27 David Carlton <carlton@math.stanford.edu>
8898
8899 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8900 SYMBOL_PRINT_NAME.
8901 (compare_psymbols): Ditto.
8902 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8903
d05bb1fc
MS
89042003-02-27 Michael Snyder <msnyder@redhat.com>
8905
4e845cd3
MS
8906 * f-lang.c (build_fortran_types): New function.
8907 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
8908 * doublest.c (extract_floating): Fix warning text.
8909
f3824013
AC
89102003-02-27 Andrew Cagney <cagney@redhat.com>
8911
8912 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8913 predicate. Replaces PUSH_DUMMY_FRAME.
8914 * gdbarch.h, gdbarch.c: Regnerate.
8915 * valops.c (hand_function_call): Update. Call
8916 generic_push_dummy_frame directly.
8917 * vax-tdep.c (vax_gdbarch_init): Update.
8918 * sparc-tdep.c (sparc_gdbarch_init): Update.
8919 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8920 * m68k-tdep.c (m68k_gdbarch_init): Update.
8921 * hppa-tdep.c (hppa_gdbarch_init): Update.
8922 * alpha-tdep.c (alpha_gdbarch_init): Update.
8923 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8924 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8925 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8926 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8927 push_dummy_frame to generic_push_dummy_frame.
8928 * v850-tdep.c (v850_gdbarch_init): Ditto.
8929 * sh-tdep.c (sh_gdbarch_init): Ditto.
8930 * s390-tdep.c (s390_gdbarch_init): Ditto.
8931 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8932 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8933 * mips-tdep.c (mips_gdbarch_init): Ditto.
8934 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8935 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8936 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8937 * i386-tdep.c (i386_gdbarch_init): Ditto.
8938 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8939 * frv-tdep.c (frv_gdbarch_init): Ditto.
8940 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8941 * cris-tdep.c (cris_gdbarch_init): Ditto.
8942 * avr-tdep.c (avr_gdbarch_init): Ditto.
8943 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 8944
ad188201
KB
89452003-02-26 Kevin Buettner <kevinb@redhat.com>
8946
8947 * mips-tdep.c (show_mips_abi): New function.
8948 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8949 command ``show mips abi''.
8950
6b37567a 89512003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8952
6b37567a 8953 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 8954 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
8955 more sline entries have been seen for the function.
8956
d3e0a5bf
MC
89572003-02-26 Michael Chastain <mec@shout.net>
8958
8959 * configure: Regenerate with autoconf 000227.
8960
18972eea
MC
89612003-02-26 Michael Chastain <mec@shout.net>
8962
8963 Close PR build/660.
8964 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8965 for old libc5/glibc.
8966 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8967
0bbde931
KW
89682003-02-26 Kris Warkentin <kewarken@qnx.com>
8969
8970 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8971 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8972
27ca5dad
MC
89732003-02-26 Michael Chastain <mec@shout.net>
8974
8975 * configure.in: New variable HAVE_UINTPTR_T.
8976 * configure, config.in: Regenerated.
8977
6f88d630
DJ
89782003-02-26 Daniel Jacobowitz <drow@mvista.com>
8979
8980 Fix PR build/1097.
8981 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8982
b14185ce
AC
89832003-02-25 Andrew Cagney <cagney@redhat.com>
8984
8985 * frame.c (get_prev_frame): Add comment on check for
8986 inside_entry_func. Only check for inside_entry_file when not a
8987 dummy and not a sentinel. Check that the new frame is not inner
8988 to the old frame.
8989
ac2bd0a9
AC
89902003-02-25 Andrew Cagney <cagney@redhat.com>
8991
8992 * frame.c (frame_debug): New variable.
8993 (_initialize_frame): Add "set/show debug frame" command.
8994 (get_prev_frame): When frame_debug, print reason why unwind
8995 failed.
8996
b18a0fd2
MC
89972003-02-25 Michael Chastain <mec@shout.net>
8998
8999 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9000 to avoid uintptr_t definition problems.
9001
22abf04a
DC
90022003-02-25 David Carlton <carlton@math.stanford.edu>
9003
9004 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9005 (SYMBOL_LINKAGE_NAME): Ditto.
9006 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9007 SYMBOL_LINKAGE_NAME.
9008 (struct general_symbol_info): Expand comment.
9009 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9010 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9011 (SYMBOL_MATCHES_REGEXP): Ditto.
9012 * symtab.c (symbol_natural_name): New function.
9013 * objfiles.h: Replace all uses of SYMBOL_NAME by
9014 DEPRECATED_SYMBOL_NAME.
9015 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9016 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9017 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9018 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9019 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9020 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9021 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9022 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9023 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9024 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9025 * ada-exp.y: Ditto.
9026 * ada-exp.y: Update copyright.
9027 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9028 * cp-valprint.c: Ditto.
9029
1a5848f6
JJ
90302003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9031
9032 * infptrace.c (detach): Do not flag error if ptrace detach fails
9033 and errno is set to ESRCH.
9034
7343d46a
AC
90352003-02-24 Andrew Cagney <cagney@redhat.com>
9036
9037 * infptrace.c (udot_info): Change type of udot_off to long. Use
9038 paddr when printing udot_off's value.
9039
49fa1dc2
DC
90402003-02-24 David Carlton <carlton@math.stanford.edu>
9041
9042 * symtab.c (make_symbol_overload_list): Only read in partial
9043 symtabs containing a matching partial symbol.
9044
0fe19209
DC
90452003-02-24 David Carlton <carlton@math.stanford.edu>
9046
9047 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9048 do the comparison, not strcmp.
9049 * symfile.c (compare_psymbols): Ditto.
9050 * defs.h: Declare strcmp_iw_ordered.
9051 * utils.c (strcmp_iw_ordered): New function.
9052
8e3ee7b5
JB
90532003-02-24 Jim Blandy <jimb@redhat.com>
9054
9055 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9056 support, shared libs): Remove my name from here, to better reflect
9057 reality.
9058
7df1a324
KW
90592003-02-24 Kris Warkentin <kewarken@qnx.com>
9060
9061 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9062 (target_ops): Add to_have_continuable_watchpoint.
9063 * target.c (update_current_target): Add INHERIT line for
9064 to_have_continuable_watchpoint.
9065 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9066 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9067 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9068 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9069
d1c76907
EZ
90702003-02-24 Elena Zannoni <ezannoni@redhat.com>
9071
9072 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9073 maintainership.
9074
2610b0bf
KW
90752003-02-24 Kris Warkentin <kewarken@qnx.com>
9076
f46169db
KW
9077 * solib.c (solib_open): Call target defined search function after
9078 failing with solib-search-path.
9079 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9080 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9081
9a3c34fe
KW
90822003-02-24 Kris Warkentin <kewarken@qnx.com>
9083
f46169db 9084 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9085
2417dd25
SC
90862003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9087
9088 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9089
b631436b
SC
90902003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9091
9092 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9093 (m68hc11_add_reggroups): New function.
9094 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9095 (m68hc11_gdbarch_init): Install the reggroups.
9096 (_initialize_m68hc11_tdep): Initialize them.
9097
0aa8c1e4
JW
90982003-02-21 James E Wilson <wilson@tuliptree.org>
9099
9100 * MAINTAINERS: Update my email address.
9101
50ceaba5
DC
91022003-02-21 David Carlton <carlton@math.stanford.edu>
9103
9104 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9105
4c2df51b
DJ
91062003-02-21 Daniel Jacobowitz <drow@mvista.com>
9107
9108 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9109 * symtab.h: Add opaque declarations of struct axs_value and
9110 struct agent_expr.
9111 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9112 (struct location_funcs): New type.
9113 (struct symbol): Add "loc" to aux_value.
9114 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9115 * dwarf2read.c: Include "dwarf2expr.h".
9116 (dwarf2_symbol_mark_computed): New function.
9117 (read_func_scope): Use it.
9118 (var_decode_location): New function.
9119 (new_symbol): Use it.
9120 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9121
9122 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9123 (dwarf2expr_h, dwarf2loc_h): New variables.
9124 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9125 (dwarf2expr.o, dwarf2loc.o): New rules.
9126 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9127 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9128 LOC_COMPUTED_ARG.
9129 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9130 * m2-exp.y (yylex): Likewise.
9131 * printcmd.c (address_info, print_frame_args): Likewise.
9132 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9133 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9134 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9135 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9136 * symtab.c (lookup_block_symbol): Likewise.
9137
5784d15e
AF
91382003-02-20 Adam Fedor <fedor@gnu.org>
9139
9140 * symtab.h: Remove objc_specific struct
9141 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9142 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9143 Have language_objc use cplus_specific struct.
9144
d4cad8db
TT
91452003-02-20 Tom Tromey <tromey@redhat.com>
9146
9147 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9148 TYPE_NAME, when printing a String value. PR java/1075.
9149
2f9a90b4
AF
91502003-02-20 Adam Fedor <fedor@gnu.org>
9151
d38074a8 9152 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9153 * objc-lang.c (find_methods): Make static.
2f9a90b4 9154
6f17862b
CF
91552003-02-20 Christopher Faylor <cgf@redhat.com>
9156
9157 * win32-nat.c (get_image_name): Check return value from
9158 ReadProcessMemory.
9159 (child_xfer_memory): Ditto.
9160
715d1656
AO
91612003-02-20 Alexandre Oliva <aoliva@redhat.com>
9162
9163 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9164 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9165 '${exec_prefix}' (in addition to the expansion thereof) as
9166 relocatable.
9167 * configure: Rebuilt.
9168
b1262a02
DC
91692003-02-20 David Carlton <carlton@math.stanford.edu>
9170
9171 * symtab.c (search_symbols): Revert the search_symbols part of my
9172 2002-12-23 patch. Add comment.
9173
7134143f
DJ
91742002-02-20 Daniel Jacobowitz <drow@mvista.com>
9175
9176 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9177 * dbxread.c (elfstab_build_psymtabs): Don't call
9178 install_minimal_symbols.
9179 (stabsect_build_psymtabs): Likewise.
9180 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9181 earlier.
9182 * somread.c (som_symfile_read): Call install_minimal_symbols
9183 and do_cleanups earlier.
9184 * nlmread.c (nlm_symfile_read): Likewise.
9185 * mdebugread.c (elfmdebug_build_psymtabs): Call
9186 install_minimal_symbols and make appropriate cleanups.
9187
cf466558
KB
91882003-02-20 Kevin Buettner <kevinb@redhat.com>
9189
9190 * solib.c (reload_shared_libraries): New function.
9191 (_initialize_solib): Add callbacks for ``set solib-search-path''
9192 and ``set solib-absolute-prefix''.
9193
de5ad195
DC
91942003-02-20 David Carlton <carlton@math.stanford.edu>
9195
9196 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9197 expand comment.
9198 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9199 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9200 * ada-typeprint.c (ada_typedef_print): Ditto.
9201 * ax-gdb.c (gen_var_ref): Ditto.
9202 * breakpoint.c (print_one_breakpoint): Ditto.
9203 * buildsym.c (finish_block): Ditto.
9204 * c-valprint.c (c_val_print): Ditto.
9205 * expprint.c (print_subexp): Ditto.
9206 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9207 * infcmd.c (jump_command): Ditto.
9208 * linespec.c (decode_line_2, decode_compound): Ditto.
9209 * maint.c (maintenance_translate_address): Ditto.
9210 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9211 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9212 Ditto.
8ffd9b1b
AJ
9213 * p-valprint.c (pascal_val_print): Ditto.
9214 * stabsread.c (define_symbol): Ditto.
de5ad195 9215 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9216 (print_frame_arg_vars, return_command): Ditto.
9217 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9218 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9219 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9220 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9221 (rbreak_command): Ditto.
9222 * tracepoint.c (tracepoints_info): Ditto.
9223 * typeprint.c (typedef_print): Ditto.
9224 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9225 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9226 * ada-typeprint.c: Update Copyright.
9227 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9228 * tracepoint.c, cli/cli-cmds.c: Ditto.
9229
f796e4be
KB
92302003-02-20 Kevin Buettner <kevinb@redhat.com>
9231
9232 * frame.c (generic_unwind_get_saved_register): Make non-static.
9233 * frame.h (generic_unwind_get_saved_register): Declare.
9234 * mips-tdep.c (read_next_frame_reg): Fetch register from
9235 current regcache when frame is NULL.
9236 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9237 that must be NULL.
9238 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9239 instead of frame_register_unwind().
9240
836cc9f4
AC
92412003-02-20 Andrew Cagney <ac131313@redhat.com>
9242
9243 * remote-sim.c (gdbsim_insert_breakpoint)
9244 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9245 code.
9246
501eef12
AC
92472003-02-20 Andrew Cagney <ac131313@redhat.com>
9248
9249 * remote.c (_initialize_remote): Add commands "set/show remote
9250 hardware-watchpoint-limit" and "set/show remote
9251 hardware-breakpoint-limit".
9252 (remote_hw_watchpoint_limit): Initialize to -1.
9253 (remote_hw_breakpoint_limit): Ditto.
9254 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9255
1b6bc7e0
CF
92562003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9257
9258 * coff-pe-read.c: New file - support reading of minimal symbols from a
9259 portable executable using the export table.
9260 * coff-pe-read.h: New file.
9261 * coffread.c: Include coff-pe-read.h.
9262 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9263 debugging symbols found.
9264 * Makefile.in (SFILES): Add coff-pe-read.o.
9265 (coff_pe_read_h): Define.
9266 (COMMON_OBS): Add coff-pe-read.o.
9267 (coffread.o): Add coff_pe_read_h dependency.
9268 (coff-pe-read.o): New target.
9269
fe898f56
DC
92702003-02-19 David Carlton <carlton@math.stanford.edu>
9271
9272 * Makefile.in (SFILES): Add block.c.
9273 (block_h): New.
9274 (COMMON_OBS): Add block.o.
9275 (block.o): New.
9276 (x86-64-tdep.o): Add $(block_h).
9277 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9278 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9279 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9280 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9281 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9282 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9283 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9284 * value.h: Add opaque declaration for struct block.
9285 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9286 * ada-lang.h: Ditto.
9287 * x86-64-tdep.c: #include "block.h"
9288 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9289 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9290 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9291 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9292 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9293 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9294 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9295 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9296 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9297 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9298 * symtab.c (block_function): Ditto.
9299 (contained_in): Ditto.
9300 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9301 block.h. Add opaque declaration for struct block.
9302 * symtab.h: Move block_function and contained_in declarations to
9303 block.h. Add opaque declarations for struct block, struct
9304 blockvector.
9305 (struct block): Move to block.h.
9306 (struct blockvector): Ditto.
9307 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9308 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9309 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9310 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9311 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9312 Ditto.
9313 * block.c: New file.
9314 * block.h: New file.
9315
173345b5
TR
93162003-02-19 Theodore A. Roth <troth@openavr.org>
9317
9318 * avr-tdep.c (avr_extract_return_value): Remove function.
9319 (avr_store_return_value): Remove function.
9320 (avr_extract_struct_value_address): Remove function.
9321 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9322
338ef23d
AC
93232003-02-19 Andrew Cagney <ac131313@redhat.com>
9324
9325 * rs6000-tdep.c: Include "gdb_assert.h".
9326 (registers_e500): Add "acc" and "spefscr".
9327 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9328 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9329 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9330 really is "r0".
9331 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9332
5412f5f3
KS
93332003-02-18 Keith Seitz <keiths@redhat.com>
9334
9335 * Makefile.in: Add gdbtk-interps.c.
9336
881324eb
KB
93372003-02-18 Kevin Buettner <kevinb@redhat.com>
9338
9339 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9340 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9341
6a2f5abf
AC
93422003-02-18 Andrew Cagney <cagney@redhat.com>
9343
9344 * symtab.h (struct objfile): Add opaque declaration.
9345
54c7009d
EZ
93462003-02-18 Elena Zannoni <ezannoni@redhat.com>
9347
9348 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9349 * dbxread.c (process_one_symbol): Use last_function_start rather
9350 than function_start_offset to find the real beginning of the
9351 current function. The latter is just the text section offset on
9352 some systems, the former is always the real function start.
54c7009d 9353
7ee6d7eb
AC
93542003-02-17 Andrew Cagney <cagney@redhat.com>
9355
9356 * configure.in: Revert ${target} != ${host}.
9357
2846da9b
AC
93582003-02-17 Andrew Cagney <ac131313@redhat.com>
9359
9360 * configure.in (Makefile): Use the test ${target} != ${host},
9361 instead of the absence of the "nm.h" file, to determine of the
9362 configuration non-native.
9363 * configure: Regenerate.
8ffd9b1b 9364
3b27aeea
EZ
93652003-02-14 Elena Zannoni <ezannoni@redhat.com>
9366
fbe586ae 9367 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9368
9369 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9370 conditionalize tui_active test.
9371 (lookup_cmd_1): Ditto.
9372
b0b1c2c0
MK
93732003-02-14 Mark Kettenis <kettenis@gnu.org>
9374
9375 * configure.in: Add check for _etext.
9376 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9377 available.
9378 * config.in, configure: regenerated.
9379
8f05cde5
DJ
93802003-02-14 Daniel Jacobowitz <drow@mvista.com>
9381
9382 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9383
021e7609
AC
93842003-02-14 Andrew Cagney <ac131313@redhat.com>
9385
9386 * main.c (tui_version): Delete variable.
9387 (captured_main): When --tui, set interpreter_p to "tui" instead of
9388 enabling tui_version.
9389 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9390 tui_version.
9391 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9392 * cli/cli-cmds.c (disassemble_command): Ditto.
9393 * defs.h (tui_version): Delete declaration.
9394 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9395 (tui-interp.o): Add rules.
9396 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9397
e325dcec
CF
93982003-02-14 Christopher Faylor <cgf@redhat.com>
9399
36ffb041 9400 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9401 just-loaded dll.
9402
c4f90d87
JM
94032003-02-12 Jason Molenda (jmolenda@apple.com)
9404
fbe586ae
RH
9405 * symmisc.c (print_objfile_statistics): Include information about
9406 the number of psymtabs and symtabs in each object file.
c4f90d87 9407
e46e5ccd
KS
94082003-02-13 Keith R Seitz <keiths@redhat.com>
9409
9410 * main.h (struct captured_main_args): Add interpreter_p.
9411 * main.c (captured_main): Initialize interpreter_p from context.
9412 * gdb.c (main): Set interpreter_p argument.
9413 * Makefile.in (gdb.o): Add dependency for interps.h.
9414
fe97fe9c
AC
94152003-02-12 Andrew Cagney <ac131313@redhat.com>
9416
9417 * event-top.c (cli_command_loop): Delete declaration.
9418 (_initialize_event_loop): Delete function setting event_loop_hook.
9419 * event-top.h (cli_command_loop): Declare. Update copyright.
9420 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9421 * interps.c (current_interp_command_loop): When event_loop_p, call
9422 cli_command_loop.
9423
1cdac4ef
AC
94242003-02-12 Andrew Cagney <ac131313@redhat.com>
9425
9426 * interps.h (interp_command_loop_ftype): Change return type to
9427 void.
9428
48037ead
ML
94292003-02-12 Michal Ludvig <mludvig@suse.cz>
9430
9431 * x86-64-tdep.c (x86_64_extract_return_value)
9432 (x86_64_store_return_value): Use regcache instead of regbuf.
9433 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9434 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9435
033afc63
AC
94362003-02-11 Andrew Cagney <ac131313@redhat.com>
9437
9438 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9439 * aclocal.m4: Regenerate.
9440 * configure: Regenerate.
9441
9442 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9443 TCL_LD_SEARCH_FLAGS.
9444
40d02bca
ML
94452003-02-10 Michal Ludvig <mludvig@suse.cz>
9446
9447 * dwarf2cfi.c: Reindented.
9448
11308a41
AC
94492003-02-09 Andrew Cagney <ac131313@redhat.com>
9450
9451 * interps.c (clear_interpreter_hooks): Convert function definition
9452 to ISO C.
9453
e1c1c0f6
DC
94542003-02-07 David Carlton <carlton@math.stanford.edu>
9455
9456 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9457
ab5d3da6
KB
94582003-02-07 Kevin Buettner <kevinb@redhat.com>
9459
9460 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9461 (struct type): ...to here.
9462 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9463 field.
9464 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9465 (replace_type): Set length on all type variants for a given type.
9466
b8a92b82
AC
94672003-02-07 Andrew Cagney <ac131313@redhat.com>
9468
9469 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9470 <sys/stat.h>.
9471 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9472
5cb316ef
AC
94732003-02-06 Andrew Cagney <ac131313@redhat.com>
9474
2555fe1a
AC
9475 * Makefile.in (symm-nat.o): Update dependencies.
9476 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9477 (lynx-nat.o, ia64-linux-nat.): Ditto.
9478 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9479 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9480 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9481
44270758
AC
9482 * Makefile.in (inflow_h): Define.
9483 (procfs.o, inflow.o, procfs.o): Update dependencies.
9484 * inftarg.c (child_stop): Delete extern declaration of
9485 inferior_process_group. Include "inflow.h".
9486 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9487 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9488 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9489 (our_process_group, inferior_process_group): Extern declarations.
9490
df8f7274
AC
9491 * procfs.c: Include "gdb_assert.h".
9492
5cb316ef
AC
9493 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9494 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9495 * jv-typeprint.c (java_type_print_base): Ditto.
9496 * typeprint.c (typedef_print): Eliminate STREQ.
9497 * cli/cli-script.c (define_command, define_command): Ditto.
9498 * main.c (captured_main): Ditto.
9499 * values.c (lookup_internalvar): Ditto.
9500 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9501 within `if' conditional.
9502 * linespec.c (decode_line_2): Ditto.
9503 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9504 (bfd_openw_with_cleanup): Ditto.
9505
2a28ccea
MK
95062003-02-07 Mark Kettenis <kettenis@gnu.org>
9507
9508 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9509 legacy_extract_return_value and store_return_value to
9510 legacy_return_value.
9511
786b8124
CF
95122003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9513
9514 * win32-nat.c (get_relocated_section_addrs): New function. Find
9515 section load addresses for symbol handling in relocated DLLs.
9516 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9517
b871e4ec
FF
95182003-02-05 Fred Fish <fnf@intrinsity.com>
9519
9520 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9521 '=' and '!='.
9522 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9523 with '&' and '=='.
9524 (angel_RDI_info): Ditto.
9525 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9526 with '&' and '!='.
9527 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9528
4389a95a 95292003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9530 Keith Seitz <keiths@redhat.com>
9531 Elena Zannoni <ezannoni@redhat.com>
9532 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9533
9534 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9535 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9536 (SUBDIR_MI_OBS): Add "mi-interp.o".
9537 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9538 (SFILES): Add "interps.c".
9539 (COMMON_OBS): Add "interps.o".
9540 (interps_h, mi_main_h): Define.
9541 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9542 (mi-main.o, main.o, event-top.o): Update dependencies.
9543 * cli/cli-interp.c: New file.
9544 * interps.h, interps.c: New files.
9545 * top.c: (gdb_init): Don't install the default interpreter, handed
9546 by captured_main.
9547 * main.c: Include "interps.h".
9548 (interpreter_p): Note that it should malloc'ed.
9549 (captured_command_loop): Call current_interp_command_loop.
9550 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9551 xfree and xstrdup when updating interpreter_p. Install the
9552 default interpreter. Add hack to stop mi1's copyright notice
9553 being encoded.
9554 * event-top.h (gdb_setup_readline): Declare.
9555 (gdb_disable_readline): Declare.
9556 * event-top.c: Include "interps.h".
9557 (display_gdb_prompt): Call current_interp_display_prompt_p.
9558 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9559 gdb_stdlog, and gdb_stdtarg.
9560 (_initialize_event_loop): Don't call gdb_setup_readline.
9561 * cli-out.c (cli_out_set_stream): New function.
9562 * cli-out.h (cli_out_set_stream): Declare.
9563
ff3b5810
MK
95642003-02-06 Mark Kettenis <kettenis@gnu.org>
9565
9566 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9567 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9568 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9569 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9570 config/i386/i386v42mp.mt: Removed.
9571
5b729aa5
MK
95722003-02-05 Mark Kettenis <kettenis@gnu.org>
9573
9574 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9575 GDB_OSABI_SOLARIS.
9576
8cc15142
MC
95772003-02-05 Michael Chastain <mec@shout.net>
9578
9579 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9580 2.12.1 and earlier versions.
9581
5aa5d4b9
AC
95822003-02-05 Andrew Cagney <ac131313@redhat.com>
9583
9584 Remove orphaned hosts, targets and files.
9585 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9586 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9587 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9588 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9589 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9590 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9591 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9592 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9593 * config/sparc/tm-sp64sim.h: Delete.
9594 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9595 hosts.
9596 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9597 mips*-dec-mach3* targets.
9598
b68767c1
MC
95992003-02-04 Michael Chastain <mec@shout.net>
9600
9601 * NEWS: Fix typo: sepcifying -> specifying.
9602
5ae7ca1d
MC
96032003-02-04 Michael Chastain <mec@shout.net>
9604
9605 * dwarfread.c: Add documentation on the state of dwarf-1,
9606 looking towards obsoletion.
9607
d08a4280
MC
96082003-02-03 Michael Chastain <mec@shout.net>
9609
9610 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9611 gdb/testsuite/gdb.c++/pr-1023.exp.
9612
e9be73e4
AC
96132003-02-04 Andrew Cagney <ac131313@redhat.com>
9614
9615 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9616 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9617
9618 * utils.c (init_page_info): Delete reference to MPW in comments.
9619 * main.c (captured_main): Delete #ifdef MPW.
9620
05d57f6f
AC
96212003-02-04 Andrew Cagney <ac131313@redhat.com>
9622
8ffd9b1b 9623 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9624 * monitor.c (monitor_expect): Obsolete reference to m32r.
9625 * configure.tgt: Mark m32r-*-elf* as obsolete.
9626 * MAINTAINERS: Mark m32k as obsolete.
9627 * m32r-rom.c: Obsolete file.
9628 * config/m32r/m32r.mt: Obsolete file.
9629 * config/m32r/tm-m32r.h: Obsolete file.
9630 * m32r-stub.c: Obsolete file.
9631 * m32r-tdep.c: Obsolete file.
9632
8b0e5691
AC
96332003-02-04 Andrew Cagney <ac131313@redhat.com>
9634
9635 * NEWS: Mention that the z8k-zilog-none is obsolete.
9636 * MAINTAINERS: Mark z8k as obsolete.
9637 * configure.tgt: Obsolete the z8k-*-coff* target.
9638 * config/z8k/z8k.mt: Obsolete file.
9639 * config/z8k/tm-z8k.h: Obsolete file.
9640 * z8k-tdep.c: Obsolete file.
9641
67f16606
AC
96422003-02-04 Andrew Cagney <ac131313@redhat.com>
9643
9644 * NEWS: Mention that the mn10200-elf is obsolete.
9645 * configure.tgt: Obsolete mn10200-*-* target.
9646 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9647 mention that the mn10200 is obsolete.
9648 * breakpoint.h: Ditto.
9649 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9650 * config/mn10200/mn10200.mt: Obsolete file.
9651 * config/mn10200/tm-mn10200.h: Obsolete file.
9652 * mn10200-tdep.c: Obsolete file.
9653
fd2299bd
AC
96542003-02-04 Andrew Cagney <ac131313@redhat.com>
9655
9656 * MAINTAINERS: Mark h8500 as obsolete.
9657 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9658 * findvar.c (value_from_register): Ditto.
9659 * h8500-tdep.c: Mark file as obsolete.
9660 * config/h8500/h8500.mt: Ditto.
9661 * config/h8500/tm-h8500.h: Ditto.
9662 * NEWS: Mention that h8500 is obsolete.
9663
eb9a305d
DC
96642003-02-04 David Carlton <carlton@math.stanford.edu>
9665
9666 * objfiles.c (allocate_objfile): Always set name. Add comment at
9667 start of function.
9668 * jv-lang.c (get_dynamics_objfile): Add comment.
9669
406fc7fb
DC
96702003-02-04 David Carlton <carlton@math.stanford.edu>
9671
9672 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9673 * printcmd.c (build_address_symbolic): Replace uses of
9674 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9675 SYMBOL_NAME, and asm_demangle.
9676 Update copyright.
9677
93d91629
DC
96782003-02-04 David Carlton <carlton@math.stanford.edu>
9679
9680 * linespec.c (decode_compound): Extract code into
9681 lookup_prefix_sym.
9682 (lookup_prefix_sym): New function.
9683
1c5cb38e
DC
96842003-02-04 David Carlton <carlton@math.stanford.edu>
9685
9686 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9687 FLOAT_COERCION_BADNESS.
9688 * gdbtypes.c (rank_one_type): Replace all uses of
9689 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9690
0cf824c9
JB
96912003-02-04 Jim Blandy <jimb@redhat.com>
9692
9693 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9694 section, let dwarf_macinfo_section point to it, not
9695 dwarf_loc_section.
9696
a2d356b0
DJ
96972003-02-04 Daniel Jacobowitz <drow@mvista.com>
9698
9699 Pointed out by Anton Blanchard <anton@samba.org>.
9700 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9701 (ppc_linux_at_sigtramp_return_path): Use it.
9702
2de7ced7
DJ
97032003-02-04 Daniel Jacobowitz <drow@mvista.com>
9704
9705 * defs.h (streq): Add prototype.
9706 * utils.c (streq): New function.
9707
9708 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9709 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9710 * mdebugread.c (new_symbol): Likewise.
9711 * stabsread.c (define_symbol): Likewise.
9712 * coffread.c (process_coff_symbol): Likewise.
9713 * dwarfread.c (new_symbol): Likewise.
9714
9715 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9716 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9717 here.
9718 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9719 SYMBOL_INIT_DEMANGLED_NAME.
9720 * objfiles.c: Include "hashtab.h".
9721 (allocate_objfile): Call htab_set_functions_ex for the
9722 demangled_names_hash.
9723 (free_objfile): Call htab_delete for the demangled_names_hash.
9724 * objfiles.h (struct htab): Add declaration.
9725 (struct objfile): Add demangled_names_hash.
9726 * symfile.c: Include "hashtab.h".
9727 (reread_symbols): Call htab_delete for the demangled_names_hash.
9728 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9729 SYMBOL_NAME in the bcache.
9730 * symtab.c: Include "hashtab.h". Update comments.
9731 (create_demangled_names_hash, symbol_set_names): New functions.
9732 (symbol_find_demangled_name): New function, broken out from
9733 symbol_init_demangled_names.
9734 (symbol_init_demangled_names): Use it.
9735 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9736 (SYMBOL_SET_NAMES): New macro.
9737 (symbol_set_names): Add prototype.
9738
15831452
JB
97392003-02-03 Jim Blandy <jimb@redhat.com>
9740
9741 Use a single, consistent representation for an empty minimal
9742 symbol table in an objfile.
9743 * objfiles.c (terminate_minimal_symbol_table): New function.
9744 (allocate_objfile): Call it.
9745 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9746 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9747 non-NULL.
15831452
JB
9748 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9749 objfile has minimal symbols, compare minimal_symbol_count to zero,
9750 instead of comparing msymbols with NULL.
9751 * objfiles.c (have_minimal_symbols): Same.
9752 * solib-sunos.c (solib_add_common_symbols): Call
9753 terminate_minimal_symbol_table.
9754 * symfile.c (reread_symbols): Same.
8ffd9b1b 9755
ffc65945
KB
97562003-02-03 Kevin Buettner <kevinb@redhat.com>
9757
9758 * s390-tdep.c (s390_address_class_type_flags)
9759 (s390_address_class_type_flags_to_name)
9760 (s390_address_class_name_to_type_flags): New functions.
9761 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9762 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9763
f211c6d4
MS
97642003-02-03 Michael Snyder <msnyder@redhat.com>
9765
9766 * arm-tdep.c: Fix spell-o in comment.
9767
659b0389
ML
97682003-02-03 Michal Ludvig <mludvig@suse.cz>
9769
9770 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9771 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9772 error messages to contain BFD filename.
659b0389 9773
3b31d625
EZ
97742003-02-02 Elena Zannoni <ezannoni@redhat.com>
9775
997b089a 9776 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9777 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9778 (do_mixed_source_and_assembly): Use
9779 make_cleanup_ui_out_tuple_begin_end and
9780 make_cleanup_ui_out_tuple_begin_end.
9781 (do_mixed_source_and_assembly): Ditto.
9782 * thread.c (do_captured_list_thread_ids): Ditto.
9783 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9784 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9785 ui_out_tuple_end): Delete prototypes.
9786 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9787 ui_out_list_end, ui_out_tuple_end): Delete.
9788
9789 From Kevin Buettner <kevinb@redhat.com>:
9790 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9791 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9792 (do_cleanup_table_end): New functions.
9793 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9794 Use cleanups to invoke_ui_out_tuple_end().
9795 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9796 * cli/cli-setshow.c (cmd_show_list): Use
9797 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9798
5b181d62
AC
97992003-02-02 Andrew Cagney <ac131313@redhat.com>
9800
9801 * frame.c (frame_unwind_register): New function.
9802 (frame_unwind_unsigned_register): Use.
9803 (frame_unwind_signed_register): Use.
9804 (frame_read_register): New function.
9805 * frame.h (frame_unwind_register): Declare.
9806 (frame_read_register): Declare.
9807
9808 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9809 and frame_unwind_register instead of read_memory, write_register
9810 and deprecated_write_register_bytes.
9811
5f601589
AC
98122003-02-02 Andrew Cagney <ac131313@redhat.com>
9813
9814 * frame.h: Note that namelen can be negative.
9815 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9816 NAME's length.
9817
9818 * NEWS: Mention that the d10v's `regs' command is deprecated.
9819 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9820 (d10v_print_registers_info): New function.
9821 (show_regs): Call d10v_print_registers_info.
9822 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9823
6a3fe0a4
MK
98242003-02-02 Mark Kettenis <kettenis@gnu.org>
9825
9826 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9827 lost in the previous patch.
9828
075559bc
AC
98292003-02-01 Andrew Cagney <ac131313@redhat.com>
9830
9831 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
9832 * stack.c (print_frame_info_base): Output complete FRAME tuple
9833 for synthesized frames.
075559bc 9834
6789195b
AC
98352003-02-02 Andrew Cagney <ac131313@redhat.com>
9836
9837 * mips-nat.c (zerobuf): Delete.
9838 (fetch_inferior_registers): Alloc local zerobuf.
9839 (fetch_core_registers): Alloc local zerobuf.
9840 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9841 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9842 * thread-db.c (thread_db_store_registers): Ditto.
9843 * sh-tdep.c (sh_do_register): Ditto.
9844 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9845 * remote-sim.c (gdbsim_store_register): Ditto.
9846 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9847 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9848 * monitor.c (monitor_supply_register): Ditto.
9849 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9850 * mips-nat.c (fetch_inferior_registers): Ditto.
9851 * m68klinux-nat.c (fetch_register): Ditto.
9852 * lynx-nat.c (fetch_inferior_registers): Ditto.
9853 (fetch_inferior_registers): Ditto.
9854 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9855 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9856 (hpux_thread_store_registers): Ditto.
9857 * hppah-nat.c (fetch_register): Ditto.
9858 * hppab-nat.c (fetch_register): Ditto.
9859 * hppa-tdep.c (pa_register_look_aside): Ditto.
9860 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9861 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9862
e669114a
AC
98632003-02-01 Andrew Cagney <ac131313@redhat.com>
9864
9865 * gdbarch.sh: Explictly specify all method levels. When a
9866 variable with an empty level, provide a non-multi-arch default.
9867 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9868 * gdbarch.h: Re-generate.
9869 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9870 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9871
9a043c1d
AC
98722003-02-01 Andrew Cagney <ac131313@redhat.com>
9873
9874 * defs.h (host_pointer_to_address): Delete declaration.
9875 (address_to_host_pointer): Delete declaration.
9876 * utils.c (host_pointer_to_address): Delete function.
9877 (address_to_host_pointer): Delete function.
9878 * procfs.c (procfs_address_to_host_pointer): New function.
9879 * procfs.c (proc_set_watchpoint): Use.
9880 (procfs_can_use_hw_breakpoint): Update comments.
9881 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9882 (som_solib_add): Use.
9883 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9884 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 9885
7ca9f392
AC
98862003-02-01 Andrew Cagney <ac131313@redhat.com>
9887
94bbfd30
AC
9888 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9889 strlen d_name.
9890
7ca9f392
AC
9891 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9892 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9893 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9894 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9895 (define_symbol): Update.
9896 * symfile.c (generic_load): Remove references to nindy.
9897 * symtab.c: Remove references to nindy.
9898
31a85ea2
AC
98992003-02-01 Andrew Cagney <ac131313@redhat.com>
9900
9901 * infcmd.c (print_float_info): Delete code conditional on
9902 FLOAT_INFO.
9903 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9904 * config/m68k/nm-apollo68b.h: Ditto.
9905 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9906 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9907 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9908
f6e85fc8
MK
99092003-02-01 Mark Kettenis <kettenis@gnu.org>
9910
6015b6a0
MK
9911 * config/i386/tm-i386os9k.h: Removed.
9912
f7a30bdf
MK
9913 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9914 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9915 they're identical to i[3456]86-*-sysv* now.
9916 * config/i386/i386v32.mh: Removed.
9917 * config/i386/xm-i386v32.h: Removed.
9918 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9919
28d52111
MK
9920 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9921
4d3f6bce
MK
9922 * config/i386/i386dgux.mh: Removed.
9923 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9924
f6e85fc8
MK
9925 * configure.in: Fix typo.
9926 * configure: Regenerated.
9927
53955967
DC
99282003-01-31 David Carlton <carlton@math.stanford.edu>
9929
9930 * dwarf2read.c (dwarf2_locate_sections): Set
9931 dwarf_ranges_section.
9932
b1364885
AC
99332003-01-31 Andrew Cagney <ac131313@redhat.com>
9934
8dbb1c65
AC
9935 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9936 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 9937
8731e58e
AC
9938 * utils.c: Re-indent.
9939
b1364885
AC
9940 * config/djgpp/fnchange.lst: Delete nindy files.
9941 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9942 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9943 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9944 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9945 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9946 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9947 * Makefile.in (init.c): Remove nindy references.
9948 (saber_gdb): Delete rule.
9949 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9950 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9951 and a68v-nat.c.
9952 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9953 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9954 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9955 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9956 nindy-share/stop.h.
9957 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9958 * saber.suppress: Delete file.
9959
086df311
DJ
99602003-01-31 Daniel Jacobowitz <drow@mvista.com>
9961
9962 * dbxread.c (stabs_data): New static variable.
9963 (fill_symbuf): Support an in-memory buffer for stabs data.
9964 (stabs_seek): New function.
9965 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9966 (read_ofile_symtab): Use stabs_seek.
9967 (elfstab_build_psymtabs): Take an asection* instead of
9968 an offset and size. Relocate the stabs data if necessary.
9969 Save the section* for dbx_psymtab_to_symtab.
9970 * dwarf2read.c: Add section variables for each debug section.
9971 (dwarf2_locate_sections): Fill them in.
9972 (dwarf2_read_section): Take an asection* argument.
9973 Relocate the section contents if necessary.
9974 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9975 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9976 it to dwarf2_read_section.
9977 (dwarf2_build_frame_info): Update callers.
9978 * elfread.c (elf_symfile_read): Update call to
9979 elfstab_build_psymtabs.
9980 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9981 (DBX_STAB_SECTION): New macro.
8ffd9b1b 9982 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
9983 * symfile.c (symfile_dummy_outputs): New function.
9984 (symfile_relocate_debug_section): New function.
9985 * symfile.h (symfile_relocate_debug_section): Add prototype.
9986
87d1b352
RH
99872003-01-31 Richard Henderson <rth@redhat.com>
9988
9989 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9990 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9991 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9992 * alpha-tdep.c (alpha_register_name): Add "unique".
9993 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9994 (ALPHA_UNIQUE_REGNUM): New.
9995 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9996
c48861fb
AC
99972003-01-31 Andrew Cagney <ac131313@redhat.com>
9998
9999 * README: Remove reference to Ericsson 1800 monitor.
10000 * Makefile.in (remote-es.o): Delete rule.
10001 (ALLDEPFILES): Delete remote-es.c.
10002 * remote-es.c: Delete file.
10003 * config/m68k/es1800.mt: Delete file.
10004 * config/djgpp/fnchange.lst: Update.
10005 * configure.tgt: Delete m68*-ericsson-* target.
10006
d764a824
AF
100072003-01-31 Adam Fedor <fedor@gnu.org>
10008
10009 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10010 Remove duplicate/shadowing variable of same name.
10011
fe36c4f4
JB
100122003-01-30 Jim Blandy <jimb@redhat.com>
10013
10014 * symfile.c (find_separate_debug_file): Assert that the objfile's
10015 directory name we compute ends with a slash, and then assume that
10016 that's so everywhere we use it.
10017
cb741690
DJ
100182003-01-30 Daniel Jacobowitz <drow@mvista.com>
10019
10020 * valops.c (value_assign): Flush frame cache after stores to memory
10021 also.
10022
96ee5227
AC
100232003-01-30 Andrew Cagney <ac131313@redhat.com>
10024
10025 * Makefile.in (mon960-rom.o): Delete rule.
10026 * mon960-rom.c: Delete file.
10027
7f6104a9
AC
100282003-01-30 Andrew Cagney <ac131313@redhat.com>
10029
10030 * d10v-tdep.c: Include "frame-unwind.h".
10031 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10032 list.
10033 (next_addr, uses_frame): Delete.
10034 (struct d10v_unwind_cache): Define.
10035 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10036 Use info instead of next_addr and uses_frame globals.
10037 (d10v_frame_init_saved_regs): Delete function.
10038 (d10v_init_extra_frame_info): Delete function.
10039 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10040 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10041 init_frame_pc or frame_saved_pc.
10042 (d10v_pop_frame): Delete function.
10043 (do_d10v_pop_frame): Delete function.
10044 (d10v_frame_chain): Delete function.
10045 (d10v_frame_chain_valid): Delete function.
10046 (d10v_frame_pc_unwind): New function.
10047 (d10v_frame_id_unwind): New function.
10048 (saved_regs_unwinder): New function.
10049 (d10v_frame_register_unwind): New function.
10050 (d10v_frame_pop): New function.
10051 (d10v_frame_unwind): New variable.
10052 (d10v_frame_p): New function.
10053 (d10v_frame_saved_pc): Delete function.
10054 * Makefile.in (d10v-tdep.o): Update dependencies.
10055
cad2e848
JB
100562003-01-30 J. Brobecker <brobecker@gnat.com>
10057
10058 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10059 causing some regressions due to a change in the default value
10060 for this macro.
10061
af34e669
DJ
100622003-01-29 Richard Henderson <rth@redhat.com>
10063 Elena Zannoni <ezannoni@redhat.com>
10064 Daniel Jacobowitz <drow@mvista.com>
10065
10066 Fix PR gdb/961.
8ffd9b1b 10067 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10068 variables.
10069 (RANGES_SECTION): New.
10070 (dwarf_ranges_buffer): New variable.
10071 (struct comp_unit_head): Add member "die".
10072 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10073 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10074 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10075 (dwarf2_locate_sections): Likewise.
10076 (dwarf2_build_psymtabs): Read .debug_ranges.
10077 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10078 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10079 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10080 Look for DW_AT_ranges and return the bounding box.
10081
baa93fa6
CF
100822003-01-29 Brian Ford <ford@vss.fsi.com>
10083
10084 * win32-nat.c (cygwin_pid): Removed as unused.
10085 (child_attach): Try fall back to Cygwin pid.
10086
c63f977f
JB
100872003-01-29 Jim Blandy <jimb@redhat.com>
10088
10089 * objfiles.h (struct objfile): Doc fix.
10090
d62d1979
AC
100912003-01-29 Andrew Cagney <ac131313@redhat.com>
10092
10093 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10094 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10095 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10096 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10097 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10098 (FRAME_SAVED_PC): Change to a function with predicate.
10099 * gdbarch.h, gdbarch.c: Re-generate.
10100
1ae18a04
AC
101012003-01-28 Andrew Cagney <ac131313@redhat.com>
10102
52287340
AC
10103 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10104
1ae18a04
AC
10105 * complaints.c (complain): Delete function.
10106 * complaints.h (struct deprecated_complaint): Delete definition.
10107 (complain): Delete declaration.
10108
f2c16bd6
KB
101092003-01-28 Kevin Buettner <kevinb@redhat.com>
10110
10111 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10112 dummy frames.
10113
a94dd1fd
AC
101142003-01-27 Andrew Cagney <ac131313@redhat.com>
10115
10116 * sentinel-frame.h, sentinel-frame.c: New files.
10117 * Makefile.in (frame.o): Update dependencies.
10118 (SFILES): Add sentinel-frame.c.
10119 (sentinel_frame_h): Define.
10120 (COMMON_OBS): Add sentinel-frame.o.
10121 (sentinel-frame.o): Specify dependencies.
10122 * frame.c: Include "sentinel-frame.h".
10123 (frame_register_unwind): Rewrite assuming that there is always a a
10124 ->next frame.
10125 (frame_register, generic_unwind_get_saved_register): Ditto.
10126 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10127 (create_sentinel_frame, unwind_to_current_frame): New functions.
10128 (get_current_frame): Rewrite using create_sentinel_frame and
10129 unwind_to_current_frame. When possible, always create a frame.
10130 (create_new_frame): Set next to the sentinel frame.
10131 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10132 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10133 ID cache when necessary.
10134 (frame_saved_regs_id_unwind): Use frame_relative_level.
10135 (deprecated_generic_get_saved_register): Use frame_relative_level,
10136 get_frame_saved_regs, get_frame_pc, get_frame_base and
10137 get_next_frame.
10138 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10139 frame_register.
10140
5378adc4
DJ
101412003-01-27 Daniel Jacobowitz <drow@mvista.com>
10142
10143 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10144
51ee2ddc
DJ
101452003-01-27 Daniel Jacobowitz <drow@mvista.com>
10146
10147 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10148 (maintenance_set_profile_cmd): Use error () instead of warning ().
10149
d9feb4e7
DJ
101502003-01-27 Daniel Jacobowitz <drow@mvista.com>
10151
10152 * configure.in: Check that -pg works if using --enable-profiling.
10153 Check for monstartup and _mcleanup regardless of --enable-profiling.
10154 * maint.c: Check for monstartup and _mcleanup before using them.
10155 * config.in: Regenerated.
10156 * configure: Regenerated.
10157
2d188dd3
NC
101582003-01-24 Nick Clifton <nickc@redhat.com>
10159
10160 * Add sh2e support:
10161
10162 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10163
10164 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10165 (sh2e_show_regs): New.
10166 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10167 * config/sh/tm-sh.h: Added sh2e to comments.
10168
cb3c37b2
JB
101692003-01-23 Jim Blandy <jimb@redhat.com>
10170
10171 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10172 symbols found)" message here; we haven't checked for a separate
10173 debug info file yet, so we don't know yet.
10174 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10175 we've looked everywhere. Also, there's no need to print a special
10176 message when we're loading the separate debug info file: the one
10177 symbol_file_add prints is fine.
10178
5b5d99cf
JB
101792003-01-23 Alexander Larsson <alexl@redhat.com>
10180 Jim Blandy <jimb@redhat.com>
10181
10182 Add support for executables whose debug info has been separated
10183 out into a separate file, leaving only a link behind.
10184 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10185 and separate_debug_objfile_backlink.
10186 (put_objfile_before): New declaration.
10187 * symfile.c: #include "filenames.h".
10188 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10189 debug info in a separate file, read that, too. Save the addrs
10190 argument, so we can use it again to read the separated debug info;
10191 syms_from_objfile modifies the table we pass it.
10192 (reread_symbols): After re-reading an objfile, call
10193 reread_separate_symbols to refresh its separate debug info
10194 objfile, if it has one.
10195 (reread_separate_symbols, find_separate_debug_file,
10196 get_debug_link_info, separate_debug_file_exists): New functions.
10197 (debug_file_directory): New global var.
10198 (_initialize_symfile): Initialize debug_file_directory, and
10199 provide the new `set debug-file-directory' command to let the user
10200 change it.
10201 * objfiles.c (free_objfile): If this objfile has its debug info in
10202 a separate objfile, free that one too. If this is itself a
10203 separate debug info objfile, clear our parent's backlink.
10204 (put_objfile_before): New function.
10205 * utils.c (gnu_debuglink_crc32): New function.
10206 * defs.h (gnu_debuglink_crc32): New declaration.
10207 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10208 * configure.in: Handle --with-separate-debug-dir config option.
10209 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10210 * acconfig.h (DEBUGDIR): New macro.
10211 * configure, aclocal.m4, config.in: Regenerated.
10212
7e8580c1
JB
102132003-01-22 Jim Blandy <jimb@redhat.com>
10214
7904e09f
JB
10215 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10216 like the old symbol_file_add, but taking new arguments: you can
10217 now pass in either a `struct section_addr_info' list to say where
10218 each section is loaded, or a `struct section_offsets' table. Pass
10219 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10220 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10221 with the appropriate quiescent values for the new arguments.
10222
7e8580c1
JB
10223 * symfile.c: #include "gdb_assert.h".
10224 (syms_from_objfile): Add the ability to pass in a section offset
10225 table directly, as an alternative to the section_addr_info table.
10226 Document arguments better.
10227 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10228 * symfile.h (syms_from_objfile): Update declaration.
10229 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10230 syms_from_objfile.
10231 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10232
d28f9cdf
DJ
102332003-01-22 Daniel Jacobowitz <drow@mvista.com>
10234
10235 Original patch by Tom Tromey <tromey@cygnus.com> and
10236 Jason Molenda <jmolenda@apple.com>.
10237 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10238 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10239 * NEWS: Mention profiling.
10240 * configure.in (--enable-gdbtk): Fix typo.
10241 (--enable-profiling): New. Set PROFILE_CFLAGS.
10242 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10243 Fill in function.
10244 (profiling_state): New variable.
10245 (mcleanup_wrapper): New function.
10246 (_initialize_maint): Remove NOTYET, fix call to
10247 add_setshow_boolean_cmd for "maint set profile".
10248 * configure: Regenerated.
10249
df21e465
MH
102502003-01-21 Martin M. Hunt <hunt@redhat.com>
10251
10252 * Makefile.in (install-gdbtk): Install PNG images too.
10253
73c1f219
AC
102542003-01-21 Andrew Cagney <ac131313@redhat.com>
10255
10256 * exec.c (text_start): Delete global variable.
10257 (exec_file_attach): Make text_start local to the function.
10258 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10259 * valops.c (hand_function_call): Delete code that handles
10260 BEFORE_TEXT_END and AFTER_TEXT_END.
10261 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10262 of CALL_DUMMY_LOCATION.
10263 * gdbarch.c: Regenerate.
10264 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10265 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10266 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10267 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10268 (text_end): Delete extern declaration.
10269
eb4f72c5
AC
102702003-01-21 Andrew Cagney <ac131313@redhat.com>
10271
10272 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10273 * blockframe.c (backtrace_below_main): Move to "frame.c".
10274 (frame_chain_valid): Delete check for backtrace_below_main.
10275 (_initialize_blockframe): Delete initialization, move ``set
10276 backtrace-below-main'' command to "frame.c".
10277 (do_flush_frames_sfunc): Delete function.
10278 * frame.c: Include "command.h" and "gdbcmd.h".
10279 (frame_type_from_pc): New function.
10280 (create_new_frame): Use frame_type_from_pc.
10281 (legacy_get_prev_frame): New function.
10282 (get_prev_frame): Rewrite. When an old style frame, call
10283 legacy_get_prev_frame. Otherwize, unwind the PC first.
10284 (_initialize_frame): Add ``set backtrace-below-main'' command.
10285 * Makefile.in (frame.o): Update dependencies.
10286
778ce8cc
AC
102872003-01-19 Andrew Cagney <ac131313@redhat.com>
10288
10289 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10290 DEPRECATED_REGISTERS_INFO.
10291
01c193c8
AC
102922003-01-19 Andrew Cagney <ac131313@redhat.com>
10293
10294 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10295 Maintainers'. Update `Various Maintainers'.
10296
dedc2a2b
AC
102972003-01-19 Andrew Cagney <ac131313@redhat.com>
10298
10299 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10300 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10301 Suppress actual parameters when `-'.
10302 * gdbarch.h, gdbarch.c: Regenerate.
10303
b7261c70
AC
103042003-01-19 Andrew Cagney <ac131313@redhat.com>
10305
10306 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10307 code handling dummy frames.
10308
dbe9fe58
AC
103092003-01-19 Andrew Cagney <ac131313@redhat.com>
10310
10311 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10312 (struct frame_unwind): Add field pop.
10313 * frame.h (frame_pop): Declare.
10314 * frame.c (frame_saved_regs_pop): New function.
10315 (trad_frame_unwinder): Add frame_saved_regs_pop.
10316 (frame_pop): New function.
10317 * dummy-frame.c (dummy_frame_pop): New function.
10318 (discard_innermost_dummy): New function.
10319 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10320 (dummy_frame_unwind): Add dummy_frame_pop.
10321 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10322 * valops.c (hand_function_call): Ditto.
10323 * stack.c (return_command): Ditto.
10324
570b8f7c
AC
103252003-01-18 Andrew Cagney <ac131313@redhat.com>
10326
10327 * cris-tdep.c: Fix function declaration indentation.
10328 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10329 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10330 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10331 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10332 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10333 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10334
103352003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10336
10337 * README (Unpacking and Installation -- quick overview):
10338 Warn against ".../gdb-5.3/gdb/configure".
10339
494cca16
AC
103402003-01-18 Andrew Cagney <ac131313@redhat.com>
10341
10342 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10343 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10344 (struct frame_unwind): Declare opaque.
10345 (dummy_frame_p): Declare function.
10346 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10347 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10348 * dummy-frame.c: Include "frame-unwind.h".
10349 (dummy_frame_p): New function.
10350 (dummy_frame_unwind): New variable.
10351 * frame.c: Include "frame-unwind.h".
10352 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10353 to use the new unwind field.
10354 (set_unwind_by_pc): Delete function.
10355 (create_new_frame, get_prev_frame): Set unwind field using
10356 frame_unwind_find_by_pc.
10357 (trad_frame_unwind, trad_frame_unwinder): New variables.
10358 * frame.h (trad_frame_unwind): Declare variable.
10359 (frame_id_unwind_ftype): Delete declaration.
10360 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10361 (struct frame_unwind): Declare opaque.
10362 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10363 register_unwind with a single unwind pointer.
10364 * frame-unwind.h, frame-unwind.c: New files.
10365 * Makefile.in (SFILES): Add frame-unwind.c.
10366 (frame_unwind_h): Define.
10367 (COMMON_OBS): Add frame-unwind.o.
10368 (frame-unwind.o): Specify dependencies.
10369 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10370
4efb68b1
AC
103712003-01-18 Andrew Cagney <ac131313@redhat.com>
10372
10373 * ada-valprint.c: Eliminate PTR.
10374 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10375 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10376 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10377 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10378 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10379 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10380 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10381
a84d24ee
AC
103822003-01-17 Andrew Cagney <ac131313@redhat.com>
10383
762f08a3
AC
10384 * main.c (captured_main): Don't use PTR.
10385 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10386 * gdbtypes.c (lookup_primitive_typename): Ditto.
10387 (lookup_struct_elt_type): Ditto.
10388 * f-valprint.c (info_common_command): Ditto.
10389 (list_all_visible_commons): Ditto.
10390 * jv-typeprint.c (java_type_print_base): Ditto.
10391
a84d24ee
AC
10392 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10393 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10394 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10395 i386-interix-nat.c and i386-interix-tdep.c. Rename
10396 m68klinux-nat.c and m68klinux-tdep.c. Rename
10397 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10398 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10399 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10400 * main.c (captured_main): Use xfree, not free.
10401
c170fb60
AC
104022003-01-16 Andrew Cagney <ac131313@redhat.com>
10403
10404 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10405 ID back using a parameter.
10406 * frame.c (frame_id_unwind): Update call.
10407 (frame_saved_regs_id_unwind): Update.
10408 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10409 * dummy-frame.h (struct frame_id): Add opaque declaration.
10410 (dummy_frame_id_unwind): Update declaration.
10411
867f3898
AC
104122003-01-15 Andrew Cagney <ac131313@redhat.com>
10413
10414 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10415
40622be8 104162003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10417
40622be8 10418 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10419
ae66c1fc
EZ
104202003-01-14 Elena Zannoni <ezannoni@redhat.com>
10421
997b089a 10422 Fix PR gdb/898
ae66c1fc
EZ
10423 * breakpoint.c (until_break_command): Add new argument. Use it to
10424 decide whether to stop only at the current frame or not.
10425 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10426 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10427 call.
10428 (advance_command): New function.
10429 (_initialize_infcmd): Update help string for 'until' command.
10430 Add new 'advance' command.
10431
a04257e6
DC
104322003-01-14 David Carlton <carlton@math.stanford.edu>
10433
10434 * linespec.c (decode_line_1): Normalize comments.
10435 (set_flags): Ditto.
10436 (locate_first_half): Ditto.
10437 (decode_compound): Ditto.
10438 (symtab_from_filename): Ditto.
10439 (decode_all_digits): Ditto.
10440 (decode_dollar): Ditto.
10441 (find_methods): Ditto.
10442 (find_toplevel_char): Ditto.
10443
1bac305b
AC
104442003-01-13 Andrew Cagney <ac131313@redhat.com>
10445
10446 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10447 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10448 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10449 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10450 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10451 * language.c, language.h, m32r-tdep.c: Update copyright.
10452 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10453 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10454 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10455 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10456 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10457 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10458
25caa7a8
EZ
104592003-01-13 Elena Zannoni <ezannoni@redhat.com>
10460
10461 * stabsread.h (process_later, resolve_cfront_continuation):
10462 Obsolete.
10463 Update copyright years.
10464 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10465 Update copyright year.
10466 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10467 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10468 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10469 Update copyright year.
10470 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10471 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10472 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10473 (parse_partial_symbols): Obsolete cfront support.
10474 * stabsread.c
10475 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10476 macros.
10477 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10478 read_cfront_baseclasses, read_cfront_member_functions,
10479 resolve_cfront_continuation,read_cfront_static_fields,
10480 copy_cfront_struct_fields): Obsolete functions.
10481 (define_symbol, read_one_struct_field): Obsolete cfront support.
10482 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10483 Update Copyright year.
10484
7789c6f5
EZ
104852003-01-13 Elena Zannoni <ezannoni@redhat.com>
10486
10487 * stack.c (print_frame_info, print_stack_frame_base_stub,
10488 print_stack_frame_base, show_and_print_stack_frame_stub,
10489 show_and_print_stack_frame, print_only_stack_frame_stub,
10490 print_only_stack_frame): Delete functions.
10491 (print_stack_frame_stub): Call print_frame_info instead of
10492 print_frame_info_base.
10493 (print_frame_info_base): Rename to print_frame_info.
10494 (backtrace_command_1): Call print_frame_info, instead of
10495 print_frame_info_base.
10496 (current_frame_command): Call print_stack_frame, instead of
10497 print_only_stack_frame.
10498 (frame_command): Call print_stack_frame, instead of
10499 show_and_print_stack_frame.
10500 (up_command): Ditto.
10501 (down_command): Ditto.
10502 * frame.h (print_only_stack_frame): Delete prototype.
10503 * infrun.c (normal_stop): Call print_stack_frame, instead of
10504 show_and_print_stack_frame.
10505 * thread.c (info_threads_command): Call print_stack_frame, instead
10506 of print_only_stack_frame.
10507
3f5a3016
AC
105082003-01-13 Andrew Cagney <ac131313@redhat.com>
10509
d99ba314
AC
10510 * README (Graphical interface to GDB): Update URL. Point at
10511 gdb/links/.
10512
3f5a3016
AC
10513 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10514 version match.
10515
083ae935
DJ
105162003-01-13 Daniel Jacobowitz <drow@mvista.com>
10517
10518 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10519 lines.
10520
5365276c
DJ
105212003-01-13 Daniel Jacobowitz <drow@mvista.com>
10522
10523 * thread-db.c (attach_thread): Prototype.
10524 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10525 thread information (ti), and valid flags (th_valid, ti_valid).
10526 (attach_thread): Move target_pid_to_str call to after the thread
10527 is added to GDB's list. Initialize the cache.
10528 (thread_get_info_callback, thread_db_map_id2thr)
10529 (thread_db_get_info): New functions.
10530 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10531 (thread_db_store_registers, thread_db_thread_alive)
10532 (thread_db_get_thread_local_address): Use them.
10533 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10534 of calling error() for threads in unknown state.
10535
10536 (clear_lwpid_callback): New function.
10537 (thread_db_resume): Use it to clear the cache.
10538
9fc30b6b
DJ
105392003-01-13 Daniel Jacobowitz <drow@mvista.com>
10540
10541 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10542 (resume_callback): Remove dead code.
10543
8f871025
AC
105442003-01-13 Andrew Cagney <ac131313@redhat.com>
10545
10546 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10547 predicate.
10548 * gdbarch.h, gdbarch.c: Regenerate.
10549 * stack.c (frame_info): Only initialize the saved registers when
10550 FRAME_INIT_SAVED_REGS_P.
10551 * frame.c (frame_saved_regs_register_unwind): Assert
10552 FRAME_INIT_SAVED_REGS_P.
10553 (deprecated_generic_get_saved_register): Ditto.
10554
3f565f1e
DJ
105552003-01-13 Daniel Jacobowitz <drow@mvista.com>
10556
10557 * source.c (openp): Squelch warning about "filename".
10558
072b1022
DJ
105592003-01-13 Daniel Jacobowitz <drow@mvista.com>
10560
10561 * source.c (openp): If the file does not exist don't necessarily
10562 search the path.
10563
973ccf8b
DJ
105642003-01-13 Daniel Jacobowitz <drow@mvista.com>
10565
10566 Fix PR gdb/872.
10567 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10568 (integer_types_same_name_p): New function.
10569 (rank_one_type): Use it.
10570 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10571
030292b7
DJ
105722003-01-13 Daniel Jacobowitz <drow@mvista.com>
10573
10574 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10575 variables.
10576 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10577 * configure.in: Add --with-sysroot.
10578 * configure: Regenerated.
10579 * main.c (gdb_sysroot): New variable.
10580 (captured_main): Initialize gdb_sysroot.
10581 * defs.h (gdb_sysroot): New extern declaration.
10582 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10583
afb5d334
MC
105842003-01-12 Michael Chastain <mec@shout.net>
10585
10586 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10587
751ceeb4
MC
105882003-01-12 Michael Chastain <mec@shout.net>
10589
10590 * top.c (print_gdb_version): Bump copyright year to 2003.
10591
94cd26f8
DC
105922003-01-12 David Carlton <carlton@bactrian.org>
10593
10594 * linespec.c (symtab_from_filename): Rename variable 's' to
10595 'file_symtab'.
10596
1ce79225
AC
105972003-01-12 Andrew Cagney <ac131313@redhat.com>
10598
10599 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10600 dummy frame.
10601 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10602
fa1fd571
AC
106032003-01-12 Andrew Cagney <ac131313@redhat.com>
10604
10605 * d10v-tdep.c: Include "gdb_assert.h".
10606 (d10v_store_return_value): Rewrite to match current interface.
10607 (d10v_extract_struct_value_address): Ditto.
10608 (d10v_extract_return_value): Ditto.
10609 (d10v_gdbarch_init): Set store_restore_value,
10610 extract_struct_value_address and extract_return_value.
10611
68b8d23e
JB
106122003-01-12 J. Brobecker <brobecker@gnat.com>
10613
10614 * hpread.c (set_namestring): New procedure replacing the
10615 SET_NAMESTRING macro.
10616 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10617 by calls to set_namestring.
10618
106192003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10620
10621 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10622 a compilation warning.
10623 (hpread_process_one_debug_symbol): Likewise.
10624
88d262ca
DC
106252003-01-10 David Carlton <carlton@math.stanford.edu>
10626
10627 * linespec.c (decode_line_1): Rename variable 's' to
10628 'file_symtab'.
10629 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10630 (decode_dollar): Ditto.
10631 (decode_variable): Ditto.
10632 (symbol_found): Ditto.
10633
86669319
MC
106342003-01-09 Michael Chastain <mec@shout.net>
10635
10636 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10637
616a9dc4
CV
106382003-01-07 Corinna Vinschen <vinschen@redhat.com>
10639
10640 * win32-nat.c (set_process_privilege): New function.
10641 (child_attach): Call set_process_privilege() to enable the
10642 SE_DEBUG_NAME user privilege if available in process token.
10643
3269bcfa
JB
106442003-01-10 J. Brobecker <brobecker@gnat.com>
10645
10646 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10647 compilation error in the previous revision.
10648
2b0ee454
DC
106492003-01-09 David Carlton <carlton@math.stanford.edu>
10650
10651 * linespec.c: Update copyright.
10652
b3ba1b44
DJ
106532003-01-09 Daniel Jacobowitz <drow@mvista.com>
10654
10655 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10656 than inferior_ptid.
10657 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10658
4ef3f3be
AC
106592003-01-09 Andrew Cagney <ac131313@redhat.com>
10660
479ab5a0
AC
10661 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10662 Update comments.
10663 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10664 (frame_saved_regs_zalloc): Update.
10665 (frame_saved_regs_register_unwind): Update.
10666 (create_new_frame): Update.
10667 (get_prev_frame): Update.
10668 (frame_extra_info_zalloc): Update.
10669 (deprecated_get_frame_saved_regs): Update.
10670 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10671 * cris-tdep.c: Update comment.
10672
bde58177
AC
10673 * somsolib.h: Fix function indentation.
10674 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10675 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10676 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10677 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10678 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10679
4ef3f3be
AC
10680 * infrun.c (follow_fork): Use ISO C definition.
10681 * expprint.c (print_subexp): Use xfree instead of free.
10682 * charset.c: Include "gdb_string.h" instead of <string.h>.
10683 (register_iconv_charsets): Use ISO C definition.
10684 (host_charset, target_charset): Ditto.
10685 * Makefile.in (charset.o): Update dependencies.
10686 (mi-cmd-env.o): Update dependencies.
10687
1c615f7a
AC
106882003-01-08 Andrew Cagney <cagney@redhat.com>
10689
10690 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10691 get_frame_base.
10692
c9a1dc08
AC
106932003-01-08 Andrew Cagney <ac131313@redhat.com>
10694
10695 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10696 build directories. Save edited gdb output in Mbuild.log. If a
10697 build fails, remove any final GDB executable.
10698
dbad9d94
AC
106992003-01-08 Andrew Cagney <ac131313@redhat.com>
10700
10701 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10702 replacing hex constants with function names and stripping leading
10703 file name directory prefixes.
10704
8d357cca
AC
107052003-01-08 Andrew Cagney <cagney@redhat.com>
10706
10707 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10708 get_frame_base.
10709
bca02a8a
DC
107102003-01-08 David Carlton <carlton@math.stanford.edu>
10711
10712 * linespec.c (decode_line_1): Move code into decode_variable.
10713 (decode_variable): New function.
10714
7f8ab3a0
AC
107152003-01-08 Andrew Cagney <ac131313@redhat.com>
10716
10717 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10718
7b5849cc
AC
107192003-01-08 Andrew Cagney <cagney@redhat.com>
10720
10721 * cris-tdep.c (cris_frame_init_saved_regs): Use
10722 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10723 saved_regs buffer.
10724 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10725 (sh64_nofp_frame_init_saved_regs): Ditto.
10726 (sh_fp_frame_init_saved_regs): Ditto.
10727 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10728 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10729 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10730 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10731
72a5efb3
DJ
107322003-01-08 Daniel Jacobowitz <drow@mvista.com>
10733
10734 * minsyms.c (lookup_minimal_symbol): Update comment.
10735 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10736 (lookup_minimal_symbol_solib_trampoline): Likewise.
10737
11c02a10
AC
107382003-01-08 Andrew Cagney <cagney@redhat.com>
10739
aab3ea25
AC
10740 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10741 frame_relative_level.
10742
da50a4b7
AC
10743 * alpha-tdep.c: Use get_frame_extra_info.
10744 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10745 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10746 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10747 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10748
11c02a10
AC
10749 * alpha-tdep.c: Use get_next_frame.
10750 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10751 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10752 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10753 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10754 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10755 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10756 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10757
1e2330ba
AC
107582003-01-07 Andrew Cagney <cagney@redhat.com>
10759
10760 * alpha-tdep.c: Use get_frame_base.
10761 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10762 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10763 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10764 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10765 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10766 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10767 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10768 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10769
2d75187b
AC
107702003-01-07 Andrew Cagney <cagney@redhat.com>
10771
10772 * frame.c (deprecated_get_frame_context): New function.
10773 (deprecated_set_frame_context): New function.
10774 * frame.h (deprecated_get_frame_context): Declare.
10775 (deprecated_set_frame_context): Declare.
10776 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10777 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10778
483d36b2
AC
107792003-01-07 Andrew Cagney <cagney@redhat.com>
10780
10781 * frame.c (deprecated_set_frame_next_hack): New function.
10782 (deprecated_set_frame_prev_hack): New function.
10783 * frame.h (deprecated_set_frame_next_hack): Declare.
10784 (deprecated_set_frame_prev_hack): Declare.
10785 * mcore-tdep.c (analyze_dummy_frame): Use
10786 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10787 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10788
14e91ac5
DC
107892003-01-07 David Carlton <carlton@math.stanford.edu>
10790
10791 * linespec.c (decode_line_1): Move code into decode_dollar.
10792 (decode_dollar): New function.
10793
b0c6b05c
AC
107942003-01-07 Andrew Cagney <cagney@redhat.com>
10795
10796 * arm-tdep.c (arm_init_extra_frame_info): Use
10797 deprecated_update_frame_base_hack.
10798 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10799 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10800 (fix_frame_pointer): Ditto.
10801 (mn10300_analyze_prologue): Ditto.
10802
a00a19e9
AC
108032003-01-07 Andrew Cagney <cagney@redhat.com>
10804
10805 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10806 extra_info using frame_extra_info_zalloc.
10807 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10808 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10809 (sh64_init_extra_frame_info): Ditto.
10810 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10811 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10812 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10813 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10814 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10815 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10816 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10817 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10818 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10819 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10820 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10821 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10822
10823 * mn10300-tdep.c (analyze_dummy_frame): Use
10824 deprecated_set_frame_extra_info_hack.
10825 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10826
1fb4c65b
JB
108272003-01-07 J. Brobecker <brobecker@gnat.com>
10828
10829 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10830 class is not scText. These do not define "real" procedures.
10831 (parse_partial_symbols): Likewise.
10832
9fe7d6bf
MS
108332003-01-06 Michael Snyder <msnyder@redhat.com>
10834
10835 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10836
f6c609c4
AC
108372003-01-06 Andrew Cagney <ac131313@redhat.com>
10838
10839 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10840 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10841 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10842 deprecated_frame_xmalloc_with_cleanup.
10843 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10844 deprecated_frame_xmalloc.
10845 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10846 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10847
d995ff4b
AC
108482003-01-06 Andrew Cagney <cagney@redhat.com>
10849
84dc46cb
AC
10850 * x86-64-linux-tdep.c: Include "osabi.h".
10851 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10852
d995ff4b
AC
10853 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10854
66140c26
AC
108552003-01-06 Andrew Cagney <cagney@redhat.com>
10856
10857 * MAINTAINERS (Target Instruction Set Architectures): Update
10858 arm-elf. Can be built with -Werror, has been multiarched.
10859
10860 * value.h (unpack_long): Make buffer parameter constant.
10861 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10862 * scm-lang.h (scm_parse): Ditto.
10863 * defs.h (extract_typed_address, extract_address): Ditto.
10864 (extract_long_unsigned_integer): Ditto.
10865 * inferior.h (unsigned_pointer_to_address): Ditto.
10866 (signed_pointer_to_address): Ditto.
10867 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10868 * gdbarch.h, gdbarch.c: Regenerate.
10869 * findvar.c (extract_long_unsigned_integer): Update.
10870 (extract_address): Update.
10871 (extract_typed_address): Update.
10872 (unsigned_pointer_to_address): Update.
10873 * values.c (unpack_long): Update.
10874 (unpack_double): Update.
10875 (unpack_pointer): Update.
10876 (unpack_field_as_long): Update.
10877 * d10v-tdep.c (d10v_pointer_to_address): Update.
10878 * avr-tdep.c (avr_pointer_to_address): Update.
10879 * scm-lang.c (scm_unpack): Update.
10880 * findvar.c (signed_pointer_to_address): Update.
10881
b089b3da
ML
108822003-01-06 Michal Ludvig <mludvig@suse.cz>
10883
8ffd9b1b 10884 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
10885 since it is in i386-tdep.c.
10886
aff87235
JB
108872003-01-06 J. Brobecker <brobecker@gnat.com>
10888
10889 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10890 failure introduced in the previous change.
10891
34f5e845
MC
108922003-01-05 Michael Chastain <mec@shout.net>
10893
10894 * README: Remove references to deleted remote-*.c files:
10895 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10896 remote-nrom.c, remote-os9k.c, remote-udi.c.
10897
28bcfd30
MK
108982003-01-05 Mark Kettenis <kettenis@gnu.org>
10899
10900 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10901 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10902 i386_get_longjmp_target.
10903
15a5b3ee
AC
109042003-01-05 Andrew Cagney <ac131313@redhat.com>
10905
10906 * arm-tdep.c (prologue_cache): Change to a pointer.
10907 (_initialize_arm_tdep): Allocate prologue_cache.
10908 (check_prologue_cache): Update.
10909 (save_prologue_cache): Update.
10910 (arm_gdbarch_init): Update.
10911
c263362b
DJ
109122003-01-04 Daniel Jacobowitz <drow@mvista.com>
10913
10914 * stabsread.c (update_method_name_from_physname): Call complaint()
10915 instead of error.
10916
51603483
DJ
109172003-01-04 Daniel Jacobowitz <drow@mvista.com>
10918
10919 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10920 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10921 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10922
10923 * blockframe.c: Include "gdbcmd.h" and "command.h".
10924 (backtrace_below_main): New variable.
10925 (file_frame_chain_valid, func_frame_chain_valid)
10926 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10927 (generic_func_frame_chain_valid): Remove functions.
10928 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10929 (_initialize_blockframe): New function.
10930 * Makefile.in (blockframe.o): Update dependencies.
10931 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10932 comment. Call frame_chain_valid ().
10933 * frame.h: Remove old prototypes. Add prototype for
10934 frame_chain_valid and update comments to match.
10935 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10936 Remove old comment.
10937 * gdbarch.h: Regenerated.
10938 * gdbarch.c: Regenerated.
10939
10940 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10941 set_gdbarch_frame_chain_valid.
10942 * avr-tdep.c (avr_gdbarch_init): Likewise.
10943 * cris-tdep.c (cris_gdbarch_init): Likewise.
10944 * frv-tdep.c (frv_gdbarch_init): Likewise.
10945 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10946 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10947 (i386_nw_init_abi): Likewise.
10948 (i386_gdbarch_init): Likewise.
10949 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10950 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10951 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10952 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10953 * mips-tdep.c (mips_gdbarch_init): Likewise.
10954 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10955 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10956 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10957 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10958 * s390-tdep.c (s390_gdbarch_init): Likewise.
10959 * sh-tdep.c (sh_gdbarch_init): Likewise.
10960 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10961 * v850-tdep.c (v850_gdbarch_init): Likewise.
10962 * vax-tdep.c (vax_gdbarch_init): Likewise.
10963 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10964
10965 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10966 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10967 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10968 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10969 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10970 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10971 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10972 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10973
b00a8037
DJ
109742002-01-04 Daniel Jacobowitz <drow@mvista.com>
10975
10976 * Makefile.in (acconfig_h): Remove incorrect macro.
10977 (config_h): Define.
10978 (osabi.o): Update dependencies.
10979 * configure.tgt: Set gdb_osabi based on target triplet.
10980 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10981 * configure: Regenerated.
10982 * config.in: Regenerated.
10983 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10984 (GDB_OSABI_DEFAULT): Define if not already defined.
10985 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10986 (set_osabi_string): New variables.
10987 (gdbarch_register_osabi): Add new OS ABI to
10988 gdb_osabi_available_names.
10989 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10990 (set_osabi, show_osabi): New functions.
10991 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10992
4be87837
DJ
109932003-01-04 Daniel Jacobowitz <drow@mvista.com>
10994
10995 * arch-utils.c (gdbarch_info_init): Set osabi to
10996 GDB_OSABI_UNINITIALIZED.
10997 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10998 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10999 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11000 * gdbarch.c: Regenerated.
11001 * gdbarch.h: Regenerated.
11002 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11003 there's no BFD.
11004 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11005 * osabi.h (enum gdb_osabi): Move to defs.h.
11006 (gdbarch_init_osabi): Update prototype.
11007 * defs.h (enum gdb_osabi): Moved here.
11008 * Makefile.in: Update dependencies.
11009
11010 * alpha-tdep.h: Don't include "osabi.h".
11011 (struct gdbarch_tdep): Remove osabi member.
11012 * alpha-tdep.c: Include "osabi.h".
11013 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11014 iterate over arches. Update call to gdbarch_init_osabi.
11015 (alpha_dump_tdep): Don't dump osabi.
11016 * alpha-linux-tdep.c: Include "osabi.h".
11017 * alpha-osf1-tdep.c: Include "osabi.h".
11018 * alphafbsd-tdep.c: Include "osabi.h".
11019 * alphanbsd-tdep.c: Include "osabi.h".
11020
11021 * arm-tdep.h: Don't include "osabi.h".
11022 (struct gdbarch_tdep): Remove osabi member.
11023 * arm-tdep.c: Include "osabi.h".
11024 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11025 iterate over arches. Update call to gdbarch_init_osabi.
11026 (arm_dump_tdep): Don't dump osabi.
11027 * arm-linux-tdep.c: Include "osabi.h".
11028 * armnbsd-tdep.c: Include "osabi.h".
11029
11030 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11031 Update call to gdbarch_init_osabi.
11032
11033 * i386-tdep.h: Don't include "osabi.h".
11034 (struct gdbarch_tdep): Remove osabi member.
11035 * i386-tdep.c: Include "osabi.h".
11036 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11037 iterate over arches. Update call to gdbarch_init_osabi.
11038 (i386_dump_tdep): Don't dump osabi.
11039 * i386-linux-tdep.c: Include "osabi.h".
11040 * i386-sol2-tdep.c: Include "osabi.h".
11041 * i386bsd-tdep.c: Include "osabi.h".
11042 * i386gnu-tdep.c: Include "osabi.h".
11043 * i386ly-tdep.c: Include "osabi.h".
11044 * i386nbsd-tdep.c: Include "osabi.h".
11045 * i386obsd-tdep.c: Include "osabi.h".
11046
11047 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11048 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11049 check osabi when iterating over arches. Update call to
11050 gdbarch_init_osabi.
11051 (mips_dump_tdep): Don't dump osabi.
11052
11053 * ns32k-tdep.h: Don't include "osabi.h".
11054 (struct gdbarch_tdep): Remove.
11055 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11056 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11057 allocate tdep. Update call to gdbarch_init_osabi.
11058 (ns32k_dump_tdep): Remove.
11059 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11060 * ns32knbsd-tdep.c: Include "osabi.h".
11061
11062 * ppc-tdep.h: Don't include "osabi.h".
11063 (struct gdbarch_tdep): Remove osabi member.
11064 * rs6000-tdep.c: Include "osabi.h".
11065 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11066 osabi when iterating over arches. Update call to
11067 gdbarch_init_osabi.
11068 (rs6000_dump_tdep): Don't dump osabi.
11069 * ppc-linux-tdep.c: Include "osabi.h".
11070 * ppcnbsd-tdep.c: Include "osabi.h".
11071
11072 * sh-tdep.h: Don't include "osabi.h".
11073 (struct gdbarch_tdep): Remove osabi member.
11074 * sh-tdep.c: Include "osabi.h".
11075 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11076 iterate over arches. Update call to gdbarch_init_osabi.
11077 (sh_dump_tdep): Don't dump osabi.
11078 * shnbsd-tdep.c: Include "osabi.h".
11079
11080 * sparc-tdep.c: Include "osabi.h".
11081 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11082 iterate over arches. Update call to gdbarch_init_osabi.
11083 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11084 tdep structure.
11085
11086 * vax-tdep.h: Don't include "osabi.h".
11087 (struct gdbarch_tdep): Remove.
11088 * vax-tdep.c: Include "osabi.h".
11089 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11090 iterate over arches. Don't allocate tdep. Update call
11091 to gdbarch_init_osabi.
11092 (vax_dump_tdep): Remove.
11093 (_initialize_vax_tdep): Update call to gdbarch_register.
11094
a881cf8e
DJ
110952003-01-04 Daniel Jacobowitz <drow@mvista.com>
11096
11097 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11098 entirely.
11099 (breakpoint_re_set_one): Don't fetch the value for a disabled
11100 watchpoint.
11101
1e698235
DJ
111022003-01-04 Daniel Jacobowitz <drow@mvista.com>
11103
11104 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11105 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11106 (COERCE_FLOAT_TO_DOUBLE): Remove.
11107 * gdbarch.c: Regenerate.
11108 * gdbarch.h: Regenerate.
11109 * Makefile.in: Remove value_h from gdbarch_h.
11110 * valops.c (coerce_float_to_double): New variable.
11111 (default_coerce_float_to_double): Remove.
11112 (standard_coerce_float_to_double): Remove.
11113 (value_arg_coerce): Use coerce_float_to_double.
11114 (_initialize_valops): Add "set coerce-float-to-double".
11115 * value.h (default_coerce_float_to_double): Remove prototype.
11116 (standard_coerce_float_to_double): Remove prototype.
11117
11118 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11119 prototyped.
11120 * mdebugread.c (parse_symbol): Likewise.
11121 * stabsread.c (define_symbol): Mark all functions as prototyped.
11122
11123 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11124 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11125 set_gdbarch_coerce_float_to_double.
11126 * arm-tdep.c (arm_gdbarch_init): Likewise.
11127 * frv-tdep.c (frv_gdbarch_init): Likewise.
11128 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11129 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11130 * mips-tdep.c (mips_gdbarch_init): Likewise.
11131 (mips_coerce_float_to_double): Remove.
11132 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11133 (rs6000_coerce_float_to_double): Remove.
11134 * s390-tdep.c (s390_gdbarch_init): Likewise.
11135 * sh-tdep.c (sh_gdbarch_init): Likewise.
11136 (sh_coerce_float_to_double): Remove.
11137 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11138 (sparc_coerce_float_to_double): Remove.
11139 * v850-tdep.c (v850_gdbarch_init): Likewise.
11140 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11141 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11142 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11143 (hppa_coerce_float_to_double): Remove prototype.
11144 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11145
f436a26a
DJ
111462003-01-04 Daniel Jacobowitz <drow@mvista.com>
11147
11148 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11149
248f8055
DJ
111502003-01-04 Daniel Jacobowitz <drow@mvista.com>
11151
11152 Suggested by Stewart Brown <sb24@avaya.com>:
11153 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11154 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11155 (c_type_print_varspec_suffix): Likewise.
11156
72cfdc76
MK
111572003-01-04 Mark Kettenis <kettenis@gnu.org>
11158
bfd260bb
MK
11159 * configure.in: Don't set and AC_SUBST SUBDIRS.
11160 * configure: Regenerated.
11161
72cfdc76
MK
11162 * configure.in: Remove code dealing with shared libraries.
11163 * Makefile.in: Remove HLDFLAGS and HLDENV.
11164 * configure: Regenerated.
11165
c8b8a898
AC
111662003-01-04 Andrew Cagney <ac131313@redhat.com>
11167
11168 * frame.c (deprecated_frame_xmalloc): New function.
11169 (deprecated_set_frame_saved_regs_hack): New function.
11170 (deprecated_set_frame_extra_info_hack): New function.
11171 * frame.h (deprecated_frame_xmalloc): Declare.
11172 (deprecated_set_frame_saved_regs_hack): Declare.
11173 (deprecated_set_frame_extra_info_hack): Declare.
11174
14abd0fb
MK
111752003-01-04 Mark Kettenis <kettenis@gnu.org>
11176
8ee53726
MK
11177 * configure.in: Move code that provides the --enable-gdbtk option
11178 right after the code that handles the --enable-tui option, and
11179 polish it somewhat.
11180 * configure: Regenerated.
11181
14abd0fb
MK
11182 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11183 AC_CHECK_FUNCS and remove the old check for pread64.
11184 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11185 * acconfig.h (_GNU_SOURCE): Add.
11186 (HAVE_PREAD64): Remove.
11187 * configure, aclocal.m4, config.in: Regenerated.
11188
b2fb4676
AC
111892003-01-03 Andrew Cagney <ac131313@redhat.com>
11190
11191 * alpha-tdep.c: Use get_frame_saved_regs.
11192 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11193 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11194 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11195 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11196 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11197
8dcde887
MK
111982003-01-03 Mark Kettenis <kettenis@gnu.org>
11199
11200 * configure.in: Remove all use of the SUBDIRS variable; add
11201 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11202 code providing the --enable-multi-ice option, and move it right in
11203 front of the code that checks whether gdbserver is supported.
11204 Polish that too.
11205 * configure: Regenerated.
11206 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11207 @SUBDIRS@.
11208
8ccd593b
AC
112092003-01-03 Andrew Cagney <cagney@redhat.com>
11210
11211 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11212 * avr-tdep.c, cris-tdep.c: Ditto.
11213 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11214 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11215
91151a06
MK
112162003-01-03 Mark Kettenis <kettenis@gnu.org>
11217
11218 * configure.in: Remove --enable-netrom option.
11219 * configure: Regenerated.
11220
8fe84d01
MK
112212003-01-03 Mark Kettenis <kettenis@gnu.org>
11222
11223 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11224 declaration for `struct re_pattern_buffer' instead.
11225 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11226
f0394be6
JB
112272003-01-03 J. Brobecker <brobecker@gnat.com>
11228
11229 * mdebugread.c (parse_symbol): Count until the stEnd matching
11230 the structure name.
11231
27e9bf90
MK
112322003-01-02 Mark Kettenis <kettenis@gnu.org>
11233
93d331ba
MK
11234 * configure.in: Remove --with-cpu option.
11235 subscripts. Remove evil changequotes here.
11236 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11237 * config.in, configure: Regenerated.
8ffd9b1b 11238
27e9bf90
MK
11239 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11240 * configure.in: Cleanup section that sources GDB and BFD configure
11241 subscripts. Remove evil changequotes here.
11242 * config.in, configure: Regenerated.
11243
50abf9e5
AC
112442003-01-02 Andrew Cagney <ac131313@redhat.com>
11245
11246 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11247 frame accessor methods.
11248 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11249 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11250 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11251 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11252 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11253 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11254 * z8k-tdep.c: Ditto.
8ffd9b1b 11255
287c1a40
MK
112562003-01-02 Mark Kettenis <kettenis@gnu.org>
11257
f5dbc56d
MK
11258 * configure.in: Remove UI_OUT configuration code.
11259 * ada-lang.c: Update assuming UI_OUT is always true.
11260 * Makefile.in (UIOUT_CFLAGS): Remove.
11261 * configure: Regenerated.
11262 * TODO: Remove blurb about elimination of -DUI_OUT.
11263
627af7ea
MK
11264 * configure.in: Move code that provides the --enable-gdbcli,
11265 --enable-gdbmi options right before the code that handles the
11266 --enable-tui option. Polish a bit.
11267 * configure: Regenerated.
11268
06825bd1
MK
11269 * configure.in: Rewrite check for GNU regex and the
11270 --without-included regex option, and move it into the "Checks for
11271 library functions" section. This makes us use the system regex
11272 again by default on systems with version 2 of the GNU C library.
11273 This was apparently broken.
11274 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11275 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11276 * config.in, configure: Regenerated.
11277
287c1a40
MK
11278 * configure.in: Move code that provides the --enable-tui option
11279 before the "Checks for libraries" section. Polish the code
11280 somewhat and set need_curses to yes if we build the TUI. Rewrite
11281 code that looks for a library providing termcap functionality to
11282 match more closely what's done in the Readline library, and move
11283 it into to the "Checks for libraries" section.
11284 * configure: Regenerated.
11285 * Makefile.in (TERMCAP): Remove variable.
11286 * config/i386/go32.mh (TERMCAP): Remove variable.
11287
684e56bf
AC
112882003-01-02 Andrew Cagney <ac131313@redhat.com>
11289
11290 * MAINTAINERS: Mention gdb_mbuild.sh.
11291 * gdb_mbuild.sh: Rewrite.
11292
e1ea1d75
MK
112932003-01-02 Mark Kettenis <kettenis@gnu.org>
11294
11295 * configure.in: Fix typo in last change.
11296 * config.in, configure: Regenerated.
11297
1b831c93
AC
112982003-01-02 Andrew Cagney <ac131313@redhat.com>
11299
11300 * valarith.c (value_binop): Delete obsolete code and comments.
11301 * configure.host: Ditto.
11302 * buildsym.h (make_blockvector): Ditto.
11303 * buildsym.c (make_blockvector): Ditto.
11304 * defs.h (enum language): Ditto.
11305 (chill_demangle): Ditto.
11306 * elfread.c (elf_symtab_read): Ditto.
11307 * dwarfread.c (CHILL_PRODUCER): Ditto.
11308 (set_cu_language): Ditto.
11309 (handle_producer): Ditto.
11310 * expprint.c (print_subexp): Ditto.
11311 * gdbtypes.c (chill_varying_type): Ditto.
11312 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11313 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11314 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11315 (chill_varying_type): Ditto.
11316 * language.h (_LANG_chill): Ditto.
11317 * language.c (binop_result_type, integral_type): Ditto.
11318 (character_type, string_type, structured_type): Ditto.
11319 (lang_bool_type, binop_type_check): Ditto.
11320 * stabsread.h (os9k_stabs): Ditto.
11321 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11322 (define_symbol, read_type, read_struct_fields): Ditto.
11323 (read_array_type, read_enum_type, read_huge_number): Ditto.
11324 (read_range_type, start_stabs): Ditto.
11325 * symfile.c (init_filename_language_table): Ditto.
11326 (add_psymbol_with_dem_name_to_list): Ditto.
11327 * symtab.c (symbol_init_language_specific): Ditto.
11328 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11329 * symtab.h (struct general_symbol_info): Ditto.
11330 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11331 * typeprint.c (typedef_print): Ditto.
11332 * utils.c (fprintf_symbol_filtered): Ditto.
11333 * valops.c (value_cast, search_struct_field, value_slice): Delete
11334 obsolete code.
11335 (varying_to_slice): Delete function.
11336 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11337 (varying_to_slice): Delete declaration.
11338 * MAINTAINERS: Update.
11339
8bb2c122
MK
113402003-01-02 Mark Kettenis <kettenis@gnu.org>
11341
97bf5e38
MK
11342 * configure.in: Reorganize "Checks for library functions section"
11343 a bit. Remove check for `btowc' and `isascii' functions.
11344 * configure: Regenerated.
11345
5ee754fc
MK
11346 * acconfig.h (_MSE_INT_H): Remove.
11347 * configure.in: Create "Checks for header files" section, and move
11348 appropriate tests there. Don't check for objlist.h, wchar.h,
11349 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11350 misdetection fix. Also add "Checks for types", "Checks for
11351 compiler characteristics" and "Checks for library functions"
11352 sections.
11353 * config.in, configure: Regenerated.
11354
8bb2c122
MK
11355 * configure.in: Create "Checks for programs" section, and move
11356 appropriate tests there.
11357
9a156167
MK
113582003-01-01 Mark Kettenis <kettenis@gnu.org>
11359
11360 * configure.in: Create "Checks for libraries" section, and move
11361 appropriate tests there. Cleanup check for wctype in libw. Use
11362 AC_SEARCH_LIBS to see whether we need libsocket.
11363 * configure: Regenerated.
11364
a80e2bcb 11365For older changes see ChangeLog-2002
c906108c
SS
11366\f
11367Local Variables:
11368mode: change-log
11369left-margin: 8
11370fill-column: 74
11371version-control: never
11372End:
This page took 1.284679 seconds and 4 git commands to generate.