]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
5deee39ea18eb83df6e4ce6d0a82f1ffc30e117d
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2
3 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
4 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
5 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
6 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
7 Take NEXT_FRAME and CACHE arguments. Call
8 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
9 Set unwound_pc in CACHE instead of modifying the frame argument.
10 Don't bother checking the frame type when looking for sigtramp
11 frames.
12 (arm_make_prologue_cache, arm_frame_chain)
13 (arm_init_extra_frame_info): New functions.
14
15 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
16
17 * arm-tdep.c (arm_get_cache): Define.
18 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
19 unwound_sp, unwound_pc, and saved_regs.
20 (thumb_scan_prologue): Take a cache instead of the frame.
21 (arm_scan_prologue): Likewise.
22 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
23 instead of a temporary frame.
24 (arm_init_extra_frame_info): Allocate and use a cache.
25 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
26
27 2003-09-03 Andrew Cagney <cagney@redhat.com>
28
29 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
30 * config/mips/wince.mt (TM_CLIBS): Ditto.
31 * config/sh/wince.mt (TM_CLIBS): Ditto.
32 * config/pa/hppa64.mt (TM_CLIBS): Delete.
33 * config/sparc/sp64.mt (CC): Delete.
34
35 2003-09-03 Andrew Cagney <cagney@redhat.com>
36
37 * defs.h: Do not include "arch-utils.h".
38 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
39 GDB_MULTI_ARCH_PURE.
40 * configure.in (GDB_MULTI_ARCH): Do not define.
41 * configure, config.in: Regenerate.
42 * configure.tgt: Do not set variable "gdb_multi_arch".
43 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
44 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
45 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
46 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
47 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
48 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
49 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
50 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
51 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
52 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
53 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
54 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
55 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
56 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
57 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
58 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
59 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
60 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
61
62 2003-08-30 Michael Chastain <mec@shout.net>
63
64 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
65 * config/m68k/nm-hp300hpux.h: Delete.
66 * config/m68k/tm-hp300hpux.h: Delete.
67 * config/m68k/xm-hp300hpux.h: Delete.
68 * config/m68k/xm-hp300bsd.h: Delete.
69 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
70 tm-hp300hpux.h, xm-hp300hpux.h.
71 * somsolib.c: Remove comment about hp300 shared libraries.
72
73 2003-08-31 Mark Kettenis <kettenis@gnu.org>
74
75 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
76 Only define PTRACE_GET_THREAD_AREA is not already defined.
77 Various style fixes in code and comments and some additional
78 spelling fixes in comments. Move after functions dealing with
79 debug registers.
80 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
81 Fix coding-style.
82
83 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
84 frame_unwind_register_unsigned instead of
85 frame_unwind_unsigned_register.
86
87 2003-08-30 Mark Kettenis <kettenis@gnu.org>
88
89 * configure.in: Search for gethostbyname in libnsl.
90 * configure: Regenerated.
91
92 2003-08-29 Mark Kettenis <kettenis@gnu.org>
93
94 * configure.in: Remove redundant AC_MSG_RESULT in check for
95 uintptr_t in stdint.h.
96 * configure: Regenerated.
97
98 * amd64-nat.h (struct regcache): Add opaque declaration.
99
100 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
101 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
102 Change "register array" to "register cache" in comments.
103 (x86_64_linux_gregset64_reg_offset): New variable.
104 (GETREGS_SUPPLIES): Remove macro.
105 (supply_gregset): Call amd64_supply_native_gregset instead of
106 x86_64_linux_supply_gregset.
107 (fill_gregset): Rename `regno' to `regnum'. Call
108 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
109 (store_regs): Rename `regno' to `regnum'.
110 (store_fpregs): Rename `regno' to `regnum'.
111 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
112 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
113 Reorganize function a bit.
114 (store_inferior_registers): Rename `regno' to `regnum'. Use
115 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
116 Reorganize function a bit.
117 (_initialize_x86_64_linux_nat): New function.
118 * config/i386/x86-64linux.mh.
119
120 2003-08-29 Andrew Cagney <cagney@redhat.com>
121
122 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
123 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
124 (target_remove_watchpoint): Delete macro.
125 (target_insert_watchpoint): Delete macro.
126 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
127 (remote_mips_stopped_by_watchpoint): Delete declaration.
128 (remote_mips_remove_watchpoint): Delete declaration.
129 (remote_mips_set_watchpoint): Delete declaration.
130 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
131 * remote-mips.c (_initialize_remote_mips): Set
132 "to_insert_watchpoint", "to_stopped_by_watchpoint",
133 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
134 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
135 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
136 (mips_stopped_by_watchpoint): Rename
137 remote_mips_stopped_by_watchpoint.
138 (mips_can_hardware_watchpoint): Rename
139 remote_mips_can_use_hardware_watchpoint, update function
140 signature.
141
142 2003-08-29 Mark Kettenis <kettenis@gnu.org>
143
144 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
145 USER_DS. We haven't given them a register number yet.
146
147 * amd64-nat.h: New file.
148 * amd64-nat.c: New file.
149 * amd64fbsd-nat.c: Include "amd64-nat.h".
150 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
151 (amd64fbsd32_r_reg_offset): New variable.
152 (supply_gregset): Simply call amd64_supply_native_gregset.
153 (fill_gregset): Rename `regno' to `regnum'. Simply call
154 amd64_collect_native_gregset.
155 (fill_fpregset): Rename `regno' to `regnum'.
156 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
157 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
158 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
159 `fpregset_t'. Call amd64_supply_native_gregset instead of
160 supply_gregset. Call x86_64_supply_fxsave instead of
161 supply_fpregset.
162 (store_inferior_registers): Rename `regno' to `regnum'. Replace
163 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
164 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
165 `fpregset_t'. Call amd64_collect_native_gregset instead of
166 fill_gregset. Call x86_64_collect_fxsave instead of
167 fill_fpregset.
168 (_initialize_am64fbsd_nat): Initialize
169 amd64_native_gregset32_reg_offset and
170 amd64_native_gregset64_reg_offset.
171 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
172
173 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
174 null pointer. Fix typo in comment.
175
176 * regcache.c (supply_register): Reimplement to call
177 regcache_raw_supply.
178 (regcache_collect): Reimplement by calling regcache_raw_collect.
179
180 2003-08-28 Mark Kettenis <kettenis@gnu.org>
181
182 * regcache.c (register_buffer): Consitify first argument.
183 (regcache_raw_supply, regcache_raw_collect): New
184 functions.
185
186 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
187
188 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
189 by Nathan J. Williams.
190
191 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
192
193 * lin-lwp.c (wait_lwp): New function, copied from
194 stop_wait_callback. Clean up.
195 (stop_wait_callback): Use wait_lwp.
196
197 2003-08-28 Andrew Cagney <cagney@redhat.com>
198
199 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
200 flavour and disassembler options.
201 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
202 (mips_gdbarch_init): Set "print_insn". Delete initialization of
203 deprecated_tm_print_insn_info.
204
205 2003-08-27 Andrew Cagney <cagney@redhat.com>
206
207 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
208 Use target_read_memory.
209 (s390_get_frame_info): Update. Do not reference
210 deprecated_tm_print_insn_info.
211 (s390_check_function_end, s390_is_sigreturn): Ditto.
212
213 2003-08-27 Andrew Cagney <cagney@redhat.com>
214
215 * Makefile.in (cris-tdep.o): Update dependencies.
216 * cris-tdep.c: Include "gdb_assert.h".
217 (cris_gdbarch_init): Set print_insn.
218 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
219 (cris_delayed_get_disassembler): Simplify, directly call the
220 disassembler returned by cris_get_disassembler.
221 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
222 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
223 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
224 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
225 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
226 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
227 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
228 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
229 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
230 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
231 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
232 (gdb_print_insn_sparc): Delete function.
233 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
234 deprecated_tm_print_insn_info.
235 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
236 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
237 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
238 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
239 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
240 * s390-tdep.c (gdb_print_insn_s390): Delete function.
241 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
242 (s390_gdbarch_init): Set print_insn.
243
244 2003-08-27 Andrew Cagney <cagney@redhat.com>
245
246 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
247 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
248 * infcall.c (call_function_by_hand): Convert the entry point
249 address into a code address.
250
251 2003-08-27 Andrew Cagney <cagney@redhat.com>
252
253 * dsrec.c: Include "gdb_string.h".
254 * Makefile.in (dsrec.o): Update dependencies.
255
256 2003-08-27 Michael Chastain <mec@shout.net>
257
258 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
259
260 2003-08-27 Andrew Cagney <cagney@redhat.com>
261
262 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
263 (alpha_osf1_init_abi): Do not set call_dummy_address.
264
265 2003-08-27 David Carlton <carlton@kealia.com>
266
267 From Randolph Chung <tausq@debian.org>:
268 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
269 compiles with -Wformat-nonliteral -Werror.
270
271 2003-08-26 Jim Blandy <jimb@redhat.com>
272
273 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
274 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
275 bfd_lookup_symbol, since we only want symbols in code sections.
276 (look_for_base): Pass zero as the SECT_FLAGS argument to
277 bfd_lookup_symbol, since we're not concerned about which section
278 the symbol is in.
279
280 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
281
282 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
283 we are frameless or the return address register is already known.
284
285 2003-08-26 Andrew Cagney <cagney@redhat.com>
286
287 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
288 in size. Add comments.
289
290 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
291
292 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
293 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
294
295 2003-08-26 Jason Merrill <jason@redhat.com>
296
297 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
298 case out of #ifdef MIPS block.
299
300 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
301
302 PR java/1322
303 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
304 available before calling SECT_OFF_TEXT.
305 * PROBLEMS: Remove description of java/1322.
306
307 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
308
309 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
310 bof, and nat0-nat127 as pseudo-registers.
311 (ia64_frame_cache): New struct used to cache frame info.
312 (ia64_register_reggroup_p): New routine used to override default
313 register grouping so registers without names are still saved and
314 restored.
315 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
316 pseudo values.
317 (ia64_pseudo_register_read): New routine to read pseudo-registers.
318 (ia64_pseudo_register_write): New routine to write pseudo-registers.
319 (ia64_alloc_frame_cache): New routine to create a new
320 ia64_frame_cache.
321 (examine_prologue): Change prototype to add next_frame pointer.
322 Assume frameless until otherwise proven. Verify that the cfm for
323 current frame matches the cfm that should occur for the prologues
324 alloc insn and if equal, mark as not frameless. At end of routine,
325 if not frameless, calculate registers for the previous frame and store
326 in the cache, if a cache is provided.
327 (ia64_skip_prologue): Use new prototype when calling examine_prologue
328 and pass 0 for next_frame.
329 (ia64_store_return_value): Change to use convert_typed_floating()
330 instead of calling ia64_convert_to_raw().
331 (ia64_extract_return_value): Change to use convert_typed_floating()
332 instead of calling ia64_convert_to_virtual().
333 (ia64_frame_cache): New routine to support new frame model.
334 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
335 (ia64_frame_sniffer): Ditto.
336 (ia64_sigtramp_frame_init_saved_regs): Ditto.
337 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
338 (ia64_sigtramp_frame_prev_register): Ditto.
339 (ia64_sigtramp_frame_sniffer): Ditto.
340 (ia64_frame_base_address): Ditto.
341 (ia64_extract_struct_value_address): Change to issue error message.
342 (ia64_frame_align): New routine to align sp.
343 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
344 (ia64_push_arguments): Removed. Logic moved to
345 ia64_push_dummy_call().
346 (ia64_push_return_address): Ditto.
347 (ia64_unwind_dummy_id): New function.
348 (ia64_unwind_pc): Ditto.
349 (ia64_convert_register_p): Ditto.
350 (ia64_register_to_value): Ditto.
351 (ia64_value_to_register): Ditto.
352 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
353 (ia64_register_byte, ia64_register_raw_size): Ditto.
354 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
355 (ia64_saved_pc_after_call): Ditto.
356 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
357 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
358 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
359 (ia64_register_convert_to_raw): Ditto.
360 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
361 (ia64_init_extra_frame_info): Ditto.
362 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
363 (ia64_gdbarch_init): Remove registering of deprecated functions that
364 are no longer used. Add registration of new gdbarch functions.
365 Remove registering deprecated_write_sp. Replace
366 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
367 Delete set_gdbarch_deprecated_register_convertible(),
368 set_gdbarch_deprecated_register_convert_to_virtual(), and
369 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
370 set_gdbarch_deprecated_register_size(),
371 set_gdbarch_deprecated_register_bytes(),
372 set_gdbarch_pcregnum(),
373 set_gdbarch_deprecated_register_byte(),
374 set_gdbarch_deprecated_register_raw_size(),
375 set_gdbarch_deprecated_max_register_raw_size(),
376 set_gdbarch_deprecated_register_virtual_size(),
377 and set_gdbarch_deprecated_max_register_virtual_size() calls.
378 Replace set_gdbarch_deprecated_extract_return_value() with
379 set_gdbarch_extract_return_value(). Remove calls to:
380 set_gdbarch_deprecated_saved_pc_after_call();
381 set_gdbarch_deprecated_frame_chain(),
382 set_gdbarch_deprecated_frame_saved_pc(),
383 set_gdbarch_deprecated_frame_init_saved_regs(),
384 set_gdbarch_deprecated_get_saved_register(),
385 set_gdbarch_deprecated_call_dummy_words(),
386 set_gdbarch_deprecated_sizeof_call_dummy_words(),
387 set_gdbarch_deprecated_init_extra_frame_info(),
388 set_gdbarch_deprecated_frame_args_address(),
389 set_gdbarch_deprecated_frame_locals_address(),
390 and set_gdbarch_deprecated_dummy_write_sp().
391 Add set_gdbarch_convert_register_p(),
392 set_gdbarch_register_to_value(),
393 set_gdbarch_value_to_register(),
394 set_gdbarch_push_dummy_call(),
395 set_gdbarch_frame_align(),
396 set_gdbarch_unwind_dummy_id(),
397 set_gdbarch_unwind_pc(),
398 frame_unwind_append_sniffer(),
399 frame_unwind_append_sniffer(),
400 and frame_base_set_default().
401
402 2003-08-25 Chris Demetriou <cgd@broadcom.com>
403
404 * configure.tgt: Document need for special "mipsisa64" handling.
405 (mipsisa64*-*-linux64): Handle as target linux64.
406 (mipsisa64*-*-*): Handle as target embed64.
407
408 2003-08-18 Michael Chastain <mec@shout.net>
409
410 * PROBLEMS: Document pr gdb/1322, the Java anonymous
411 objfile bug.
412
413 2003-08-24 Mark Kettenis <kettenis@gnu.org>
414
415 * i387-tdep.h: Update copyright date.
416 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
417
418 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
419 CFLAGS games to reflect reality.
420
421 2003-08-24 Andrew Cagney <cagney@redhat.com>
422
423 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
424 GDB_MULTI_ARCH is always non-zero.
425 * osabi.c (_initialize_gdb_osabi): Ditto.
426 (gdbarch_init_osabi): Ditto.
427 * sparc-tdep.c: Ditto for #if code.
428
429 2003-08-23 Mark Kettenis <kettenis@gnu.org>
430
431 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
432 Update comments.
433 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
434 comments.
435 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
436 x86_64_supply_fxsave.
437 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
438 x86_64_supply_fxsave.
439 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
440 x86_64_supply_fxsave.
441
442 2003-08-23 Andreas Jaeger <aj@suse.de>
443
444 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
445 i387_supply_fxsave.
446
447 2003-08-23 Mark Kettenis <kettenis@gnu.org>
448
449 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
450 i387_supply_register.
451 (go32_fetch_registers): Adjust call to i387_supply_fsave.
452 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
453 i387_supply_fsave.
454 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
455 i387_supply_fxsave.
456 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
457 i387_supply_fsave.
458 * i386bsd-nat.c (supply_fpregset): Adjust call to
459 i387_supply_fsave.
460 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
461 call to i387_supply_fxsave. Call i387_supply_fsave instead of
462 supply_fpregset.
463 (store_inferior_registers): Remove extraneous whitespace. Call
464 i387_fill_fsave instead of fill_fpregset.
465 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
466 (supply_fpregset): Likewise.
467 * i386v4-nat.c (supply_fpregset): Adjust call to
468 i387_supply_fsave.
469 * i386-interix-nat.c (supply_fpregset): Adjust call to
470 i387_supply_fsave.
471 * i386-linux-nat.c (supply_fpregset): Adjust call to
472 i387_supply_fsave.
473 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
474 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
475 i387supply_fsave and i387_supply_fxsave.
476 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
477 Incorporate code from `i387_supply_register.
478 (i387_supply_register): Remove.
479 (i387_supply_fxsave): Add `regnum' argument.
480 Update comments.
481 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
482 prototype.
483 (i387_supply_register): remove prototype.
484 Update comments.
485
486 2003-08-22 Michael Chastain <mec@shout.net>
487
488 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
489 Add lines for files in gdb/testsuite/gdb.cp/* that are
490 still not 8.3 unique.
491
492 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
493
494 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
495 TYPE_VPTR_FIELDNO is valid.
496
497 2003-08-19 Mark Kettenis <kettenis@gnu.org>
498
499 * utils.c (set_width_command): Remove prototypes.
500 (set_screen_size): New prototype.
501 (init_page_info): Simplify by fetching the screen size from
502 Readline. Call set_screen_size.
503 (set_screen_size): New function.
504 (set_width): Add missing whitespace in comment.
505 (set_width_command): Call set_screen_size.
506 (set_height_command): New function.
507 (initialize_utils): Fix formatting. Make "set height" command
508 call set_height_command. Remove redundant code that turns off
509 pagination if output isn't a terminal. Remove redundant call to
510 set_width_command.
511
512 2003-08-22 Mark Kettenis <kettenis@gnu.org>
513
514 * sparc64-tdep.h (sparc64_regnum): Fix comment.
515 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
516 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
517 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
518 `case' keyword.
519 (sparc64_register_info): Give the reister with number
520 SPARC64_STATE_REGNUM a name.
521 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
522 %asi and %ccr.
523 (sparc64_push_dummy_call): Take BIAS into account when checking
524 stcak alignment.
525 (sparc_software_single_step): Remove assertions that check whether
526 NPC and NNPC were zero.
527 (sparc_supply_rwindow): Make public. Merge functionality with
528 sparc64_supply_rwindow.
529 (sparc_fill_rwindow): Make public. Merge functionality with
530 sparc64_fill_rwindow.
531 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
532 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
533 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
534 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
535 sparc_supply_rwindow instead of sparc64_supply_rwindow.
536
537 * reggroups.c: Add whitespace after declarations of local
538 variables in functions.
539
540 2003-08-21 Michael Chastain <mec@shout.net>
541
542 * gdbtypes.h: Change array bound type from an int to enum.
543
544 2003-08-21 Andrew Cagney <cagney@redhat.com>
545
546 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
547 * config/sparc/tm-sparc.h: Ditto.
548 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
549 unconditionally.
550 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
551
552 2003-07-13 Mark Kettenis <kettenis@gnu.org>
553
554 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
555 (register_objfile_data, set_objfile_data, objfile_data): New
556 prototypes.
557 * objfiles.c (objfile_alloc_data, objfile_free_data): New
558 prototypes.
559 (allocate_objfile): Call objfile_alloc_data.
560 (free_objfile): Call objfile_free_data.
561 (struct objfile_data): New.
562 (struct objfile_data_registration): New.
563 (struct objfile_data_registry): New.
564 (objfile_data_registry): New variable.
565 (register_objfile_data): New function.
566 (objfile_alloc_data, objfile_free_data): New functions.
567 (set_objfile_data, objfile_data): New functions.
568 * dwarf2-frame.c (dwarf2_frame_data): New variable.
569 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
570 (_initialize_dwarf2_frame): New function and prototype.
571
572 2003-08-21 Andrew Cagney <cagney@redhat.com>
573
574 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
575 a specific architecture.
576 * arch-utils.h (set_architecture_from_arch_mach): Delete
577 declaration.
578 (target_architecture_hook): Delete declaration.
579 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
580 (default_float_format): Assume GDB_MULTI_ARCH.
581 (default_double_format): Assume GDB_MULTI_ARCH.
582 (set_endian_from_file): Delete function.
583 (arch_ok): Delete function.
584 (set_arch): Delete function.
585 (set_architecture_from_arch_mach): Delete function.
586 (set_architecture_from_file): Delete function.
587 (set_architecture): Assume GDB_MULTI_ARCH.
588 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
589
590 2003-08-21 Mark Kettenis <kettenis@gnu.org>
591
592 Rewrite FreeBSD/sparc64 native configuration.
593 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
594 * sparc64fbsd-nat.c: New file.
595 * sparc64fbsd-tdep.c: New file.
596 * sparc64-tdep.c sparc64-tdep.h: New files.
597 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
598 sparc64fbsd-tdep.o): New dependencies.
599 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
600 and sparc64fbsd-tdep.c.
601 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
602 * config/sparc/fbsd.mh: Remove copyright notice.
603 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
604 sparcbsd-nat.o.
605 * config/sparc/fbsd.mt: Remove copyright notice.
606 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
607 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
608 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
609 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
610 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
611 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
612 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
613 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
614 "sparc/tm-sp64.h".
615 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
616 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
617
618 2003-08-21 Michael Chastain <mec@shout.net>
619
620 * symtab.h: Add doco on the space critical structures and
621 some measurements of space usage.
622
623 2003-08-21 Michael Snyder <msnyder@redhat.com>
624
625 * tracepoint.c (trace_dump_command): Trace break address
626 is subject to DECR_PC_AFTER_BREAK.
627 (set_traceframe_context): Make "trace_line" an int.
628 Fixes suggested by Mark Newman <mark.newman@lmco.com>
629
630 2003-08-20 Michael Snyder <msnyder@redhat.com>
631
632 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
633 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
634 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
635 argument passing.
636 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
637 functions, replace sh_push_dummy_call.
638 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
639
640 2003-08-20 Michael Chastain <mec@shout.net>
641
642 * gdbtypes.h (struct main_type): Rearrange to save space.
643
644 2003-08-20 Michael Snyder <msnyder@redhat.com>
645
646 * trad-frame.c: Comment typo fix.
647
648 2003-08-20 Michael Snyder <msnyder@redhat.com>
649 Kevin Buettner <kevinb@redhat.com>
650
651 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
652 (frv_frame_init_saved_regs): Add declaration.
653 (frame_extra_info): Add new field ``saved_regs''.
654 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
655 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
656 Update frame related code.
657 (frv_extract_struct_value_address): Adjust formatting.
658 * Makefile.in (frv-tdep.o): Update dependencies.
659 * config/frv/tm-frv.h (target_insert_watchpoint)
660 (target_remove_watchpoint, target_insert_hw_breakpoint)
661 (target_remove_hw_breakpoint): Delete these macros.
662 (remote_insert_watchpoint, remote_remove_watchpoint)
663 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
664 these declarations.
665
666 2003-08-20 Michael Chastain <mec@shout.net>
667
668 * defs.h (ENUM_BITFIELD): New macro.
669 * symtab.h (ENUM_BITFIELD): Use it.
670 (BYTE_BITFIELD): Remove old macro, which was already disabled.
671
672 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
673
674 * MAINTAINERS (write after approval): Add myself.
675
676 2003-08-18 Andrew Cagney <cagney@redhat.com>
677
678 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
679 * gdbarch.h, gdbarch.c: Re-generate.
680 * infcall.c (call_function_by_hand): Adjust the SP by
681 frame_red_zone_size before allocating any stack space.
682 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
683 * x86-64-tdep.c (x86_64_frame_align): New function.
684 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
685
686 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
687 Remove code adjusting SP so that it skips over the Red Zone.
688
689 2003-08-18 Mark Kettenis <kettenis@gnu.org>
690
691 * NEWS (New native configurations): Mention FreeBSD/amd64.
692
693 2003-08-18 Andrew Cagney <cagney@redhat.com>
694
695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
696 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
697 "m68k_frame_p".
698 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
699
700 2003-08-18 Mark Kettenis <kettenis@gnu.org>
701
702 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
703
704 2003-08-18 Michal Ludvig <mludvig@suse.cz>
705
706 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
707 Define.
708 * i386-linux-nat.c: Include "linux-nat.h".
709 (child_post_startup_inferior): New function.
710
711 2003-08-18 Mark Kettenis <kettenis@gnu.org>
712
713 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
714 at the start of a frameless function. This probably fixes PR
715 backtrace/1338.
716
717 2003-08-17 Michael Chastain <mec@shout.net>
718
719 * symfile.c (find_sym_fns): Remove special case for apollo target.
720
721 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
722
723 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
724 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
725 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
726 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
727 (linux_supports_tracevforkdone): New function.
728 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
729 TRACEVFORKDONE.
730 (child_follow_fork): Handle vfork.
731 (linux_handle_extended_wait): Likewise. Also handle exec.
732 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
733 * NEWS: Mention fork tracing.
734
735 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
736
737 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
738
739 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
740
741 * Makefile.in (i386-linux-nat.o): Update dependencies.
742 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
743 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
744 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
745 * i386-linux-nat.c: Include "linux-nat.h".
746 (child_post_startup_inferior): New function.
747 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
748 * infptrace.c (kill_inferior): Wrap in #ifdef.
749 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
750 attaching to each LWP.
751 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
752 (init_lin_lwp_ops): Fill in some more operations.
753 * linux-nat.h (linux_enable_event_reporting)
754 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
755 prototypes.
756 * linux-nat.c (linux_enable_event_reporting): New function.
757 (child_post_attach, linux_child_post_startup_inferior)
758 (child_post_startup_inferior, child_follow_fork)
759 (linux_handle_extended_wait, kill_inferior): New functions.
760
761 2003-08-16 Andrew Cagney <cagney@redhat.com>
762
763 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
764 * gdbarch.h, gdbarch.c: Re-generate.
765
766 2003-08-16 Mark Kettenis <kettenis@gnu.org>
767
768 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
769
770 2003-08-16 Andrew Cagney <cagney@redhat.com>
771
772 * NEWS: Mention that "set prompt-escape-char" was deleted.
773 * top.c (get_prompt_1): Delete function.
774 (gdb_prompt_escape):
775 (init_main): Do not clear "gdb_prompt_escape". Delete "set
776 prompt-escape-char" command.
777 (MAX_PROMPT_SIZE): Delete macro.
778 (get_prompt): Simplify, do not call get_prompt_1.
779
780 2003-08-16 Andrew Cagney <cagney@redhat.com>
781
782 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
783 -Werror. -Wformat-nonliteral problems.
784
785 2003-08-15 J. Brobecker <brobecker@gnat.com>
786
787 Further multiarching work mostly for hppa64-*-hpux11:
788 * hppa-tdep.h: New file.
789 * hppa-tdep.c: #include hppa-tdep.c.
790 (hppa32_num_regs): Renamed from hppa_num_regs.
791 (hppa64_num_regs): New constant.
792 (hppa64_call_dummy_breakpoint_offset): New constant.
793 (hppa32_call_dummy_length): New constant.
794 (hppa64_call_dummy_length): New constant.
795 (hppa32_stack_align): Make name 32bit explicit.
796 (hppa32_register_virtual_type): Likewise.
797 (hppa32_extract_return_value): Likewise.
798 (hppa32_use_struct_convention): Likewise.
799 (hppa32_store_return_value): Likewise.
800 (hppa64_register_virtual_type): New function.
801 (hppa64_extract_return_value): New function.
802 (hppa64_use_struct_convention): New function.
803 (hppa64_store_return_value): New function.
804 (hppa_frame_locals_address): Remove declaration, function does
805 not exist anymore.
806 (hppa_register_byte): Add support for PA64 ABI.
807 (hppa_gdbarch_init): Add support for PA64 ABI.
808 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
809 Make name 32bit explicit.
810 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
811 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
812 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
813 (hppa64_hpux_frame_base_before_sigtramp): New function.
814 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
815 * config/pa/tm-hppa64.h: Remove macros that are no longer
816 necessary now that the gdbarch vector is properly setup.
817 Transform some macros into function calls. Some minor cleanup.
818 * config/pa/tm-hppah.h: Update function calls in macros
819 following the function renaming in hppa-hpux-tdep.c.
820 * Makefile.in (hppa_tdep_h): New variable.
821 (hppa-tdep.o): Add dependency over hppa_tdep_h.
822
823 2003-08-14 Michael Snyder <msnyder@redhat.com>
824
825 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
826
827 2003-08-13 J. Brobecker <brobecker@gnat.com>
828
829 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
830 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
831 routine.
832
833 2003-08-13 Michael Snyder <msnyder@redhat.com>
834
835 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
836 (frv_saved_pc_after_call): Use deprecated ftype.
837 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
838 (frv_remote_translate_xfer_address): Remove.
839 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
840
841 2003-08-13 J. Brobecker <brobecker@gnat.com>
842
843 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
844 initialization after the common gdbarch initialization, not before.
845
846 2003-08-13 J. Brobecker <brobecker@gnat.com>
847
848 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
849 (ADDR_BITS_REMOVE): Remove, redundant.
850
851 2003-08-13 J. Brobecker <brobecker@gnat.com>
852
853 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
854 gdbarch method to clear the 2 low bits of text addresses.
855
856 2003-08-12 Andrew Cagney <cagney@redhat.com>
857
858 * Makefile.in (dsrec.o): Update dependencies.
859 * dsrec.c: Include "gdb_assert.h".
860 (make_srec): Use snprintf instead of sprintf, use a literal format
861 string.
862
863 2003-08-12 Andrew Cagney <cagney@redhat.com>
864
865 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
866 FRAME_OBSTACK_ZALLOC.
867
868 2003-08-12 Kevin Buettner <kevinb@redhat.com>
869
870 * i386-tdep.c (i386_gdbarch_init): Enable default support for
871 SSE registers.
872
873 2003-08-10 Mark Kettenis <kettenis@gnu.org>
874
875 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
876 amd64fbsd_sc_reg_offset): Add extern declarations.
877 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
878 declarations.
879
880 2003-08-11 Ben Elliston <bje@wasabisystems.com>
881
882 * MAINTAINERS (write after approval): Update my mail address.
883
884 2003-08-10 Andrew Cagney <cagney@redhat.com>
885
886 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
887
888 2003-08-10 Mark Kettenis <kettenis@gnu.org>
889
890 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
891 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
892 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
893 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
894 i386bsd_sc_reg_offset): Add extern declarations.
895 * i386obsd-nat.c: Include "i386-tdep.h"
896 (_initialize_i386obsd_nat): Remove extern declarations.
897 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
898 declarations.
899 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
900 declarations.
901
902 * i386-tdep.c (i386_register_to_value): Use get_frame_register
903 instead of frame_read_register.
904 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
905 instead of frame_read_register. Use I386_ESP_REGNUM instead of
906 SP_REGNUM.
907 (i386_frame_prev_register): Use frame_unwind_register_unsigned
908 instead of frame_unwind_unsigned_register. Use
909 I386_EFLAGS_REGISTER instead of PS_REGNUM.
910 (i386_get_longjmp_target): Use regcache_read_unsigned_register
911 instead of read_register. Use builtin_type_void_data_ptr instead
912 of builtin_type_void_func_ptr when extracting the address of the
913 jmp_buf.
914 (i386_extract_return_value, i386_store_return_value,
915 i386_pseudo_register_read, i386_pseudo_register_write): Use
916 register_size instead REGISTER_RAW_SIZE.
917
918 2003-08-10 Andrew Cagney <cagney@redhat.com>
919
920 * infcall.c (call_function_by_hand): Use xstrprintf instead of
921 sprintf. Make "name" constant.
922
923 2003-08-10 Mark Kettenis <kettenis@gnu.org>
924
925 * i387-tdep.c (i387_register_to_value): Use get_frame_register
926 instead of frame_read_register.
927 (i387_print_float_info): Use get_frame_register and
928 get_frame_register_unsigned instead of frame_register_read.
929
930 * i386fbsd-nat.c: Include "i386-tdep.h".
931 (child_resume): Make `eflags' an ULONGEST. Use
932 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
933 instead of register_read and register_write.
934
935 * i386bsd-nat.c (fetch_inferior_registers,
936 store_inferior_registers): Don't use && at the end of a line.
937 (_initialize_i386bsd_nat): Fix typo.
938
939 * frame.c (_initialize_frame): Add missing backslash.
940
941 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
942 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
943 and supply_register instead of manipulating the register buffer
944 directly.
945
946 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
947 * config/i386/nm-i386sol2.h
948 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
949
950 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
951 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
952 instructions that GCC likes to mingle into the prologue. Fixes
953 gdb/1253 and gdb/1255.
954
955 2003-08-09 Andrew Cagney <cagney@redhat.com>
956
957 Fix GDB PR cli/926.
958 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
959 * command.h (add_setshow_uinteger_cmd): Declare.
960 * frame.c (set_backtrace_cmd): New function.
961 (show_backtrace_cmd): New function.
962 * frame.c (_initialize_frame): Replace "set/show
963 backtrace-below-main" with "set/show backtrace past-main". Add
964 command "set/show backtrace limit".
965 (backtrace_past_main): Rename "backtrace_below_main".
966 (backtrace_limit): New variable.
967 (get_prev_frame): Update. Check the backtrace_limit.
968
969 2003-08-09 Andrew Cagney <cagney@redhat.com>
970
971 * defs.h (xstrprintf): Declare.
972 * utils.c (xstrprintf): New function.
973 * breakpoint.c (insert_breakpoints): Replace sprintf and
974 non-literal format strings, with xstrprintf and cleanups.
975 (delete_breakpoint,breakpoint_re_set): Ditto.
976 (commands_command, insert_breakpoints): Ditto.
977 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
978 (break_at_finish_command_1): Ditto.
979
980 2003-08-09 Andrew Cagney <cagney@redhat.com>
981
982 * MAINTAINERS (language support): List Adam Fedor as Objective C
983 maintainer.
984
985 2003-08-08 J. Brobecker <brobecker@gnat.com>
986
987 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
988 are now multiarched.
989
990 2003-08-08 J. Brobecker <brobecker@gnat.com>
991
992 * config/pa/tm-hppa64.h: Remove lots of macros that are no
993 longer necessary now that hppa64 is partially multiarch'ed.
994
995 2003-08-08 Andrew Cagney <cagney@redhat.com>
996
997 * interps.c (interp_set): Check for a NULL "old_interp".
998
999 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1000
1001 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1002 (install-only): Support DESTDIR.
1003 (uninstall): Likewise.
1004 (install-gdbtk): Likewise.
1005
1006 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1007
1008 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1009 contains something meaningful at all times.
1010
1011 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1012
1013 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1014
1015 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1016
1017 * MAINTAINERS (write after approval): Added self.
1018
1019 2003-08-07 Andrew Cagney <cagney@redhat.com>
1020
1021 * inferior.h (AT_SYMBOL): Define.
1022 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1023 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1024 * mips-tdep.c (mips_call_dummy_address): Delete function.
1025 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1026 set call_dummy_address.
1027
1028 2003-08-07 Andrew Cagney <cagney@redhat.com>
1029
1030 * language.c (op_error): Delete function.
1031 (binop_type_check): Delete function.
1032 * language.h (type_op_error, range_op_error): Delete macros.
1033 (op_error): Delete declaration.
1034
1035 2003-08-07 Andrew Cagney <cagney@redhat.com>
1036
1037 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1038
1039 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1040
1041 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1042 (x86_64_push_arguments): Skip the red zone.
1043
1044 2003-08-05 Andrew Cagney <cagney@redhat.com>
1045
1046 * reggroups.c (reggroup_next): Check for the final entry.
1047
1048 2003-08-04 Andrew Cagney <cagney@redhat.com>
1049
1050 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1051 * cli/cli-script.c (define_command): Call query directly, instead
1052 of passing it a buffer.
1053 * ocd.c (ocd_error): Pass error a constant format string.
1054 * remote-mips.c (mips_error): Use fputs_filtered.
1055
1056 * solib-svr4.c (_initialize_svr4_solib): Update
1057 register_gdbarch_data call.
1058 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1059
1060 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1061 (register_gdbarch_data): Delete "free" parameter. Update
1062 comments.
1063 * gdbarch.h, gdbarch.c: Re-generate.
1064 * reggroups.c (_initialize_reggroup): Update.
1065 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1066 * frame-base.c (_initialize_frame_base): Update.
1067 * frame-unwind.c (_initialize_frame_unwind): Update.
1068 * user-regs.c (_initialize_user_regs): Update.
1069 * remote.c (_initialize_remote): Update.
1070 * regcache.c (_initialize_regcache): Update.
1071
1072 * regcache.c (xfree_regcache_descr): Delete function.
1073 (_initialize_regcache): Update call to register_gdbarch_data.
1074 (init_regcache_descr, init_legacy_regcache_descr): Use
1075 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1076
1077 * remote.c (free_remote_state): Delete function.
1078 (_initialize_remote): Update register_gdbarch_data.
1079 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1080 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1081
1082 2003-08-04 Andrew Cagney <cagney@redhat.com>
1083
1084 * reggroups.c (struct reggroup_el): Define.
1085 (struct reggroups): Delete field "nr_group". Replace array
1086 "group" with a "first" to "last" linked list.
1087 (reggroups_init): Update. Allocate using gdbarch's obstack.
1088 (reggroups_free): Delete function.
1089 (add_group): Update. Add "el" parameter.
1090 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1091 (default_groups): Update.
1092 (reggroup_next): Replace reggroups.
1093 (reggroups_dump): Update.
1094 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1095 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1096 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1097
1098 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1099
1100 * Makefile.in (tui-interp.o): Update dependencies.
1101
1102 2003-08-04 David Carlton <carlton@kealia.com>
1103
1104 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1105 to internal_error call.
1106 * source.c (forward_search_command): Add "%s" format argument.
1107 (reverse_search_command): Ditto.
1108 * top.c (quit_confirm): Ditto.
1109 * cli/cli-setshow.c (do_setshow_command): Ditto.
1110 * cp-valprint.c (cp_print_class_method): Replace
1111 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1112 (cp_print_class_member): Ditto.
1113 * event-top.c (command_line_handler): Ditto.
1114 * linux-proc.c (linux_info_proc_cmd): Ditto.
1115 * p-typeprint.c (pascal_type_print_base): Ditto.
1116 * p-valprint.c (pascal_object_print_class_method): Ditto.
1117 (pascal_object_print_class_member): Ditto.
1118 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1119 * remote.c (remote_cisco_section_offsets): Ditto.
1120 * top.c (command_line_input): Ditto.
1121 * utils.c (vwarning,error_stream,quit): Ditto.
1122 * valprint.c (print_floating,print_binary_chars)
1123 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1124
1125 2003-08-04 Andrew Cagney <cagney@redhat.com>
1126
1127 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1128
1129 2003-08-02 Andrew Cagney <cagney@redhat.com>
1130
1131 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1132 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1133 amd64fbsd-nat.c.
1134
1135 2003-08-02 Andrew Cagney <cagney@redhat.com>
1136
1137 * Makefile.in: Update all dependencies and definitions.
1138
1139 2003-08-02 Adam Fedor <fedor@gnu.org>
1140
1141 * linespec.c (is_objc_method_format): New function
1142 (decode_line_1, locate_first_half): Use it.
1143 Fixes PR objc/1298
1144
1145 2003-08-01 Andrew Cagney <cagney@redhat.com>
1146
1147 * NEWS: Mention that m32r is multi-arch.
1148 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1149 * configure.tgt: Recognize m32r-*-*.
1150 * config/m32r/tm-m32r.h: Delete file.
1151 * config/m32r/m32r.mt: New file.
1152 * m32r-rom.c (m32r_upload_command): Use hostent only when
1153 gethostname succeeds, in order to avoid a compilation
1154 warning.
1155 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1156 compiler warning.
1157
1158 2003-08-01 Michael Snyder <msnyder@redhat.com>
1159
1160 * sh-tdep.c (sh_frame_align): New gdbarch method.
1161 (sh_gdbarch_init): Set up frame_align method.
1162
1163 2003-07-31 Michael Snyder <msnyder@redhat.com>
1164
1165 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1166 which is already covered by the new frames infrastructure.
1167
1168 2003-07-31 Andrew Cagney <cagney@redhat.com>
1169
1170 * user-regs.c (struct user_reg): Add "next" link.
1171 (struct user_regs): Replace "user" with "first" and "last" links.
1172 (append_user_reg): Add pre-allocated "reg" parameter.
1173 (builtin_user_regs): Provide initial value for "last".
1174 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1175 (user_regs_init): Allocate memory from the gdbarch obstack.
1176 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1177 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1178 linked list.
1179 (usernum_to_user_reg): New function.
1180 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1181 (value_of_user_reg): Use usernum_to_user_reg.
1182 (user_regs_free): Delete function.
1183 (_initialize_user_regs): Update register_gdbarch_data call.
1184
1185 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1186
1187 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1188
1189 2003-07-30 Michael Snyder <msnyder@redhat.com>
1190
1191 * value.h (value_being_returned): Add a struct_addr argument.
1192 * infcall.c (call_function_by_hand): Pass struct_addr to
1193 value_being_returned.
1194 * infcmd.c (print_return_value): Pass zero as struct_addr.
1195 * values.c (value_being_returned): If struct_addr is passed,
1196 use it instead of trying to recover it from the inferior.
1197
1198 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1199
1200 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1201 the prologue analyzer won't need to attempt to extract the pc
1202 value from the woefully incomplete dummy frame.
1203 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1204 possible. Disable code which modifies the frame.
1205
1206 2003-07-28 Andrew Cagney <cagney@redhat.com>
1207
1208 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1209 to level 2.
1210 (annotate_breakpoints_table, annotate_record): Ditto.
1211 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1212 (annotate_field_name_end, annotate_field_value): Ditto.
1213 (annotate_field_end, annotate_frame_source_begin): Ditto.
1214 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1215 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1216 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1217 (annotate_frame_address_end, annotate_frame_address): Ditto.
1218 (annotate_frame_args, annotate_frame_end): Ditto.
1219 (annotate_frame_where, annotate_arg_begin): Ditto.
1220 (annotate_arg_name_end, annotate_arg_value): Ditto.
1221 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1222 (annotate_function_call, annotate_signal_name): Ditto.
1223 (annotate_signal_string, annotate_signal_name_end): Ditto.
1224 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1225 (annotate_value_begin, annotate_value_history_value): Ditto.
1226 (annotate_value_history_end, annotate_value_end): Ditto.
1227 (annotate_display_begin, annotate_display_number_end): Ditto.
1228 (annotate_display_format, annotate_display_expression): Ditto.
1229 (annotate_display_expression_end, annotate_display_value): Ditto.
1230 (annotate_display_end, annotate_array_section_begin): Ditto.
1231 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1232 (annotate_elt, annotate_array_section_end): Ditto.
1233
1234 2003-07-28 Andrew Cagney <cagney@redhat.com>
1235
1236 * regcache.c (struct regcache_descr): Update comments on
1237 nr_raw_registers.
1238 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1239 sizeof_raw_register_valid_p.
1240 (init_regcache_descr): Set nr_raw_registers and
1241 sizeof_raw_register_valid_p before calling
1242 init_legacy_regcache_descr.
1243
1244 2003-07-28 Andrew Cagney <cagney@redhat.com>
1245
1246 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1247 MOD NUM_REGS.
1248
1249 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1250
1251 * thread.c (info_threads_command): Use get_selected_frame ().
1252 Check that there is at least one non-sentinel frame.
1253
1254 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1255
1256 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1257 (m68hc11_pop_frame): Remove.
1258 (m68hc11_frame_saved_pc): Remove.
1259 (m68hc11_frame_chain): Remove.
1260 (m68hc11_frame_init_saved_regs): Remove.
1261 (m68hc11_init_extra_frame_info): Remove.
1262 (m68hc11_store_struct_return): Remove.
1263 (m68hc11_saved_pc_after_call): Remove.
1264
1265 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1266
1267 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1268 frame unwind information.
1269 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1270 and adapted for frame unwinding.
1271 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1272 (m68hc11_unwind_pc): New function.
1273 (m68hc11_frame_unwind_cache): New function to analyze frames.
1274 (m68hc11_frame_this_id): New function to create new frame struct.
1275 (m68hc11_frame_prev_register): New function to unwind a register from
1276 the frame.
1277 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1278 (m68hc11_frame_p): New function for the above.
1279 (m68hc11_frame_base_address): New function to return fp of frame.
1280 (m68hc11_frame_args_address): Update for frame.
1281 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1282 (m68hc11_unwind_sp): New function.
1283 (m68hc11_unwind_dummy_id): New function.
1284 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1285 calls.
1286
1287 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1288
1289 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1290 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1291 when we are beyond the current pc.
1292
1293 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1294
1295 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1296 from m68hc11_push_arguments.
1297 (m68hc11_push_arguments): Remove.
1298 (m68hc11_push_return_address): Remove.
1299 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1300 handlers; remove deprecated_extra_stack_alignment_needed.
1301
1302 2003-07-27 Andrew Cagney <cagney@redhat.com>
1303
1304 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1305 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1306 REAL_PC and not the pointer.
1307 * hppa-hpux-tdep.c: Include frame.h
1308
1309 2003-07-27 Andrew Cagney <cagney@redhat.com>
1310
1311 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1312 GDB_MULTI_ACH_PARTIAL.
1313
1314 2003-07-27 Andrew Cagney <cagney@redhat.com>
1315
1316 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1317 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1318 operator at start and not end of line.
1319 (decode_prologue): Ditto.
1320 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1321 frame_unwind_register_unsigned instead of
1322 frame_unwind_unsigned_register.
1323 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1324 read_register.
1325 (m32r_push_dummy_call): Use register_size instead of
1326 REGISTER_RAW_SIZE.
1327 (m32r_frame_sniffer): Replace m32r_frame_p.
1328 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1329 * m32r-rom.c (report_transfer_performance): Delete extern
1330 declaration.
1331 (m32r_load, m32r_upload_command): Use print_transfer_performance
1332 instead of report_transfer_performance.
1333 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1334 / add_show_from_set.
1335
1336 2003-07-26 Andrew Cagney <cagney@redhat.com>
1337
1338 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1339 store_return_value and extract_struct_value_address.
1340
1341 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1342
1343 PR c++/1267
1344 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1345 NULL, default to the section containing PC.
1346
1347 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1348
1349 * NEWS: Mention "regs" deprecated for m68hc11 too.
1350
1351 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1352 (m68hc11_print_register): New function to print out one register.
1353 (m68hc11_print_registers_info): New function to print registers.
1354 (show_regs): Deprecate and use the above.
1355 (m68hc11_gdbarch_init): Install the print_registers_info.
1356
1357 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1358
1359 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1360 that we have a SIGTRAP before returning non-zero.
1361
1362 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1363 Elena Zannoni <ezannoni@redhat.com>
1364
1365 * linespec.c (decode_line_2): Avoid crash if
1366 find_function_start_sal() returns empty record.
1367
1368 2003-07-23 Andreas Schwab <schwab@suse.de>
1369
1370 * ia64-tdep.c (ia64_print_insn): New function.
1371 (ia64_gdbarch_init): Set print_insn to it.
1372 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1373 deprecated_tm_print_insn_info.
1374
1375 2003-07-22 Michael Snyder <msnyder@redhat.com>
1376
1377 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1378 handle 8-bit returns (long long).
1379 (h8300h_extract_return_value): Ditto.
1380 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1381
1382 2003-07-22 Andrew Cagney <cagney@redhat.com>
1383
1384 * gdbarch.c Include "gdb_obstack.h".
1385 (struct gdbarch): Add an "obstack".
1386 (alloc_gdbarch_data): Allocate the gdbarch data using
1387 GDBARCH_OBSTACK_CALLOC.
1388 (free_gdbarch_data): Delete function.
1389 (gdbarch_obstack_zalloc): New function.
1390 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1391 Assert that the architecture is not initialized.
1392 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1393 vector from the obstack.
1394 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1395 architecture obstack.
1396 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1397 (set_gdbarch_data): Assert that the data is not initialized.
1398 (struct gdbarch_data): Delete member "free".
1399 (register_gdbarch_data): Do not initialize "free".
1400 * gdbarch.h, gdbarch.c: Re-generate.
1401
1402 2003-07-22 Andrew Cagney <cagney@redhat.com>
1403
1404 * configure.in (build_warnings): Add -Wformat-nonliteral.
1405 * configure: Re-generate.
1406
1407 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1408
1409 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1410
1411 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1412
1413 * findvar.c (read_var_value): Remove case for thread local storage
1414 variables. It is now entirely handled by the dwarf2 location
1415 expression code.
1416 * printcmd.c (address_info): Ditto.
1417 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1418 enumeration value.
1419 (struct symbol): Remove objfile field, which was used by
1420 LOC_THREAD_LOCAL_STATIC only.
1421 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1422 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1423 usage of objfile pointer.
1424 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1425 thread local variables.
1426 Add include of objfiles.h.
1427 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1428 storage variables.
1429 * Makefile.in (dwarf2loc.o): Update dependencies.
1430
1431 2003-07-22 Andrew Cagney <cagney@redhat.com>
1432
1433 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1434 get_frame_base.
1435 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1436 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1437 (struct value): Add opaque declaration.
1438 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1439
1440 2003-07-21 Andrew Cagney <cagney@redhat.com>
1441
1442 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1443 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1444
1445 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1446
1447 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1448 regcache_cooked_read_unsigned instead of read_register.
1449 (m68hc11_saved_pc_after_call): Likewise.
1450 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1451 instead of write_register.
1452 (m68hc11_register_type): New function.
1453 (m68hc11_register_virtual_type): Remove.
1454 (m68hc11_store_return_value): Convert to use the regcache.
1455 (m68hc11_extract_struct_value_address): Likewise.
1456 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1457 m68hc11_register_type; undeprecate store_return_value and
1458 extract_struct_value_address.
1459
1460 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1461
1462 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1463 and translate to use regcache.
1464 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1465
1466 2003-07-18 Andrew Cagney <cagney@redhat.com>
1467
1468 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1469 * gdbarch.h, gdbarch.c: Re-generate.
1470 * i386-tdep.c (i386_gdbarch_init): Do not set
1471 DWARF2_BUILD_FRAME_INFO.
1472 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1473 unconditionally.
1474 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1475 DWARF2_BUILD_FRAME_INFO.
1476
1477 2003-07-18 Andrew Cagney <cagney@redhat.com>
1478
1479 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1480 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1481
1482 2003-07-18 Andrew Cagney <cagney@redhat.com>
1483
1484 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1485 frame_unwind_address_in_block, instead of frame_pc_unwind.
1486 (dwarf2_frame_cache): Ditto.
1487
1488 2003-07-18 Andrew Cagney <cagney@redhat.com>
1489
1490 * user-regs.h (struct gdbarch): Declare opaque.
1491 * ui-out.h (struct ui_file): Declare opaque.
1492 * dwarf2-frame.h (struct frame_info): Declare opaque.
1493
1494 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1495
1496 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1497 #include "...".
1498 (procfs_meminfo): Change strerror to safe_strerror.
1499 (procfs_can_run): Remove K&R badness.
1500
1501 2003-07-17 Michael Snyder <msnyder@redhat.com>
1502
1503 * remote-sim.c: Comment typo fix.
1504
1505 2003-07-17 Andrew Cagney <cagney@redhat.com>
1506
1507 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1508 configure.
1509 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1510 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1511 GDB_MULTI_ARCH_PARTIAL.
1512
1513 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1514
1515 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1516 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1517 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1518
1519 2003-07-16 Theodore A. Roth <troth@openavr.org>
1520
1521 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1522 found.
1523 (avr_frame_unwind_cache): Don't unwind FP for main.
1524 Update a comment.
1525 Save the computed prev_sp.
1526 (avr_saved_regs_unwinder): Remove function.
1527 (avr_frame_prev_register): Use PC unwind logic from
1528 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1529
1530 2003-07-16 Andrew Cagney <cagney@redhat.com>
1531
1532 * frame-base.h (frame_base_p_ftype): Delete definition.
1533 (frame_base_append_predicate): Delete declaration.
1534 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1535 (frame_unwind_append_predicate): Delete declaration.
1536 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1537 (append_predicate): Delete parameter "p".
1538 (frame_unwind_append_predicate): Delete function.
1539 (frame_unwind_append_sniffer): Update call to append_predicate.
1540 (frame_unwind_free): Delete function.
1541 (_initialize_frame_unwind): Pass NULL as "free" to
1542 register_gdbarch_data.
1543 (frame_unwind_init): Append the dummy_frame_sniffer.
1544 (frame_unwind_find_by_frame): Simplify.
1545 * frame-base.c (struct frame_base_table): Delete field "p".
1546 (append_predicate): Delete parameter "p".
1547 (frame_base_append_predicate): Delete function.
1548 (frame_base_append_sniffer): Update call to append_predicate.
1549 (frame_base_free): Delete function.
1550 (frame_base_find_by_frame): Simplify.
1551 (_initialize_frame_base): Pass NULL as "free" to
1552 register_gdbarch_data.
1553 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1554 (x86_64_sigtramp_frame_sniffer): Replace
1555 "x86_64_sigtramp_frame_p".
1556 (x86_64_init_abi): Set the frame unwind sniffers.
1557 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1558 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1559 (m68k_gdbarch_init): Set the frame unwind sniffers.
1560 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1561 "i386_sigtramp_frame_p".
1562 (i386_frame_sniffer): Replace "i386_frame_p".
1563 (i386_gdbarch_init): Set the frame unwind sniffers.
1564 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1565 (avr_gdbarch_init): Set the frame unwind sniffers.
1566 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1567 "alpha_sigtramp_frame_p"
1568 (alpha_heuristic_frame_sniffer): Replace
1569 "alpha_heuristic_frame_p".
1570 (alpha_gdbarch_init): Set the frame unwind sniffers.
1571 (alpha_dwarf2_init_abi): Ditto.
1572 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1573 "alpha_debug_frame_p".
1574 (alpha_mdebug_frame_base_sniffer): Replace
1575 "alpha_mdebug_frame_base_p".
1576 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1577 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1578 (d10v_gdbarch_init): Set the frame unwind sniffer.
1579 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1580 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1581 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1582 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1583 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1584 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1585
1586 2003-07-16 Michael Snyder <msnyder@redhat.com>
1587
1588 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1589 should go thru sh_dsp_register_sim_regno, else the dsp regs
1590 will not get the right values.
1591
1592 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1593
1594 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1595 deprecated_store_floating by call to store_typed_floating.
1596 (sh_sh4_register_convert_to_raw): Substitute call to
1597 deprecated_extract_floating by call to extract_typed_floating.
1598
1599 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1600
1601 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1602
1603 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1604
1605 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1606 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1607 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1608 as possible.
1609 (do_pseudo_register): Remove.
1610 (sh_push_dummy_code): New function.
1611 (sh64_store_struct_return): Rename from sh_store_struct_return.
1612 Only called for sh64 now.
1613 (sh_extract_struct_value_address): Regcache'ify.
1614 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1615 and accomodate new tasks.
1616 (sh64_push_return_address): Rename from sh_push_return_address.
1617 Only called for sh64 now.
1618 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1619 Regcache'ify.
1620 (sh3e_sh4_extract_return_value): Regcache'ify.
1621 (sh_default_store_return_value): Ditto.
1622 (sh3e_sh4_store_return_value): Ditto.
1623 (sh_default_register_byte): Remove.
1624 (sh_sh4_register_byte): Remove.
1625 (sh_default_register_raw_size): Remove.
1626 (sh_sh4_register_raw_size): Remove.
1627 (sh_register_virtual_size): Remove.
1628 (sh_sh3e_register_virtual_type): Remove.
1629 (sh_sh3e_register_type): New function.
1630 (sh_sh4_register_virtual_type): Remove.
1631 (sh_sh4_register_type): New function.
1632 (sh_default_register_virtual_type): Remove.
1633 (sh_default_register_type): New function.
1634 (do_fv_register_info): Add parameters to accomodate call from
1635 sh_print_registers_info.
1636 (do_dr_register_info): Ditto.
1637 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1638 Add parameters to accomodate call from sh_print_registers_info.
1639 (sh_do_fp_register): Ditto.
1640 (sh64_do_pseudo_register): Call do_dr_register_info,
1641 do_fv_register_info and sh_do_fp_register with default parameters.
1642 (sh_do_register): Add parameters to accomodate call from
1643 sh_print_registers_info.
1644 (sh_print_register): Ditto.
1645 (sh_print_registers_info): Rename from sh_do_registers_info.
1646 Add parameters to be used as gdbarch_print_registers_info
1647 implementation. Accomodate removed do_pseudo_register function
1648 pointer.
1649 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1650 function pointer. Call sh_print_register with default parameters.
1651 (sh64_do_registers_info): Call sh_print_registers_info instead of
1652 sh_do_registers_info.
1653 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1654 detection of deprecated vs. non-deprecated functionality.
1655 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1656 function pointer assignments by direct function calls.
1657
1658 2003-07-15 Andrew Cagney <cagney@redhat.com>
1659
1660 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1661 (frame_register_unwind, create_new_frame): Ditto.
1662 (legacy_get_prev_frame, get_frame_type): Ditto.
1663 (get_frame_base_address): Use frame_base_find_by_frame.
1664 (get_frame_locals_address): Use frame_base_find_by_frame.
1665 (get_frame_args_address): Use frame_base_find_by_frame.
1666 * frame-base.h (frame_base_sniffer_ftype): Declare.
1667 (frame_base_append_sniffer): Declare.
1668 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1669 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1670 (frame_base_append_sniffer): New function.
1671 (frame_base_append_predicate): Add a NULL sniffer.
1672 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1673 (struct frame_base_table): Add "sniffer".
1674 (frame_base_free): Free the "sniffer" table.
1675 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1676 (frame_unwind_append_sniffer): Declare.
1677 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1678 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1679 (struct frame_unwind_table): Add "sniffer", delete "middle".
1680 (append_predicate): Add "sniffer" parameter, append the sniffer.
1681 (frame_unwind_init): Update append_predicate call.
1682 (frame_unwind_append_sniffer): New function.
1683 (frame_unwind_append_predicate): Update append_predicate call.
1684 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1685
1686 2003-07-15 Andrew Cagney <cagney@redhat.com>
1687
1688 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1689 before code inhibiting repeated unwind attempts. Add to
1690 commentary on that test's problems.
1691 * blockframe.c (inside_main_func): Look for "main" in the minimal
1692 symbol table.
1693 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1694 identical.
1695
1696 2003-07-15 Andrew Cagney <cagney@redhat.com>
1697
1698 * complaints.c (struct explanation): Define.
1699 (struct complaints): Change type of "explanation" to "struct
1700 explanation".
1701 (symfile_explanations): Convert to a "struct explanation" table.
1702 (vcomplaint): Update.
1703
1704 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1705
1706 * x86-64-linux-nat.c (regmap): Removed.
1707 (supply_gregset, fill_gregset): Call
1708 x86_64_linux_(fill,supply)_gregset functions.
1709 * x86-64-linux-tdep.c (USER_*): New defines.
1710 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1711 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1712 New functions.
1713 (fetch_core_registers): Ditto.
1714 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1715 * x86-64-linux-tdep.h: New file.
1716 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1717 and core-regset.o.
1718 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1719
1720 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1721
1722 * x86-64-tdep.c (x86_64_store_return_value): Use
1723 regcache_cooked_write_part instead of regcache_cooked_write.
1724
1725 * configure.host: Add x86_64-*-freebsd*.
1726 * configure.tgt: Add x86_64-*-freebsd*.
1727 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1728 * amd64fbsd-nat.c: New file.
1729 * amd64fbsd-tdep.c: New file.
1730 * config/i386/nm-fbsd64.h: New file.
1731 * config/i386/fbsd64.mh: New file.
1732 * config/i386/fbsd64.mt: New file.
1733
1734 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1735
1736 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1737 `sc_regs_offset' and `sc_fpregs_offset'.
1738 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1739 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1740 (alpha_sigtramp_register_address): Rewrite to use new members of
1741 `struct gdbarch_tdep'.
1742 (alpha_gdbarch_init): Initialize new members of struct
1743 gdbarch_tdep'.
1744 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1745 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1746 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1747 (alphafbsd_pc_in_sigtramp): Implement.
1748 (alphafbsd_sigtramp_offset): New function.
1749 (alphafbsd_sigcontext_addr): New function.
1750 (alphafbsd_init_abi): Initialize signal trampoline related members
1751 of `struct gdbarch_tdep'.
1752 (_initialize_alphafbsd_tdep): Add prototype.
1753
1754 2003-07-11 Theodore A. Roth <troth@openavr.org>
1755
1756 * Makefile.in (install-only): Quote sed expression when generating
1757 transformed_name.
1758
1759 2003-07-11 Richard Henderson <rth@redhat.com>
1760
1761 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1762 * dwarf2-frame.c: Include complaints.h.
1763 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1764 variable initialization; return NULL on error.
1765 (decode_frame_entry): New.
1766
1767 2003-07-11 Andrew Cagney <cagney@redhat.com>
1768
1769 * frame.h (frame_address_in_block): Delete declaration.
1770 * blockframe.c (frame_address_in_block): Delete function.
1771 (get_frame_block): Use get_frame_address_in_block.
1772 (block_innermost_frame): Ditto.
1773 * stack.c (print_frame, backtrace_command_1): Ditto.
1774
1775 * frame.h (get_frame_address_in_block): Declare.
1776 (frame_unwind_address_in_block): Declare.
1777 * frame.c (frame_unwind_address_in_block): New function.
1778 (get_frame_address_in_block): New function.
1779
1780 2003-07-10 Andrew Cagney <cagney@redhat.com>
1781
1782 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1783 pre-default. Note: re-generate has no effect.
1784
1785 2003-07-10 Andrew Cagney <cagney@redhat.com>
1786
1787 * gdbarch.sh: When a variable, but not a function, compare against
1788 0. Fix problem in previous patch.
1789 * gdbarch.c: Re-generate.
1790
1791 2003-07-10 Andrew Cagney <cagney@redhat.com>
1792
1793 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1794 functions against NULL, not 0.
1795 * gdbarch.c: Re-generate.
1796
1797 2003-07-10 Fred Fish <fnf@ninemoons.com>
1798
1799 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1800 null string instead of a null pointer.
1801 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1802
1803 2003-07-09 Michael Snyder <msnyder@redhat.com>
1804
1805 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1806
1807 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1808
1809 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1810 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1811 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1812 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1813 * x86-64-tdep.c: ... from here.
1814
1815 2003-07-09 Andreas Schwab <schwab@suse.de>
1816
1817 * m68k-tdep.h (enum struct_return): Define.
1818 (struct gdbarch_tdep): Add struct_return.
1819 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1820 bytes are padded to the right, not to the left. Pass struct value
1821 address in register %a1, not on stack.
1822 (m68k_use_struct_convention): New function.
1823 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1824 struct_return in tdep to pcc_struct_return.
1825 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1826 reg_struct_return.
1827
1828 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1829
1830 * somread.c (som_symfile_offsets): Fix compilation error.
1831
1832 2003-07-09 Andrew Cagney <cagney@redhat.com>
1833
1834 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1835 Add comments about the checks.
1836
1837 2003-07-08 Andrew Cagney <cagney@redhat.com>
1838
1839 * Makefile.in: Make dependency section headers consistent.
1840 (config_h): Move to $BUILD headers section.
1841 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1842 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1843 (ada-exp.tab.c): Move to YACC/LEX section.
1844 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1845 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1846
1847 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1848
1849 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1850 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1851 of strerror with safe_strerror, use ISO C function definitions,
1852 and replace instances of sprintf with snprintf.
1853
1854 2003-07-07 Andrew Cagney <cagney@redhat.com>
1855
1856 * frame.c (get_prev_frame): Enable check for identical frames.
1857 Update comments. Update error messages.
1858
1859 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1860
1861 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1862
1863 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1864
1865 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1866 sort_symtab_syms, no longer necessary.
1867
1868 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1869
1870 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1871
1872 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1873
1874 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1875 (mips_register_byte): Likewise.
1876
1877 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1878
1879 * Makefile.in (sparc_tdep_h): New.
1880 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1881 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1882 * sparc-linux-nat.c: Include "sparc-tdep.h".
1883 * sparc-nat.c: Likewise.
1884 * sparc-tdep.c: Likewise.
1885 * sparc64nbsd-nat.c: Likewise.
1886 * sparcnbsd-nat.c: Likewise.
1887 * sparcnbsd-tdep.c: Likewise.
1888 * sparc-tdep.h: New file.
1889 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1890 and sparc_npc_regnum.
1891
1892 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1893
1894 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1895 (mips_linux_cannot_store_register): List supported instead of
1896 unsupported registers.
1897
1898 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1899
1900 * disasm.c (dump_insns): Separate instructions from addresses.
1901
1902 2003-07-07 Andreas Schwab <schwab@suse.de>
1903
1904 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1905 dependencies.
1906 * m68k-tdep.c (NUM_FREGS): Delete.
1907 (SIG_PC_FP_OFFSET): Delete.
1908 (TARGET_M68K): Delete.
1909 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1910 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1911 P_MOVEL_SP, P_MOVEML_SP): Define.
1912 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1913 P_TRAP): Delete.
1914 (m68k_register_raw_size): Delete.
1915 (m68k_register_virtual_size): Delete.
1916 (m68k_register_type): Renamed from m68k_register_virtual_type and
1917 add gdbarch argument.
1918 (m68k_store_struct_return): Delete.
1919 (m68k_deprecated_extract_return_value): Delete.
1920 (m68k_deprecated_extract_struct_value_address): Delete.
1921 (m68k_frame_chain): Delete.
1922 (m68k_frame_saved_pc): Delete.
1923 (m68k_fix_call_dummy): Delete.
1924 (m68k_push_dummy_frame): Delete.
1925 (m68k_pop_frame): Delete.
1926 (m68k_extract_return_value): New function.
1927 (m68k_store_return_value): Rewrite using regcache.
1928 (m68k_extract_struct_value_address): Rewrite using regcache.
1929 (m68k_push_dummy_call): New function.
1930 (struct m68k_frame_cache): Define.
1931 (m68k_alloc_frame_cache): New function.
1932 (m68k_analyze_frame_setup): New function.
1933 (m68k_analyze_register_saves): New function.
1934 (m68k_analyze_prologue): New function.
1935 (m68k_skip_prologue): Rewrite using above functions.
1936 (m68k_unwind_pc): New function.
1937 (m68k_frame_cache): New function.
1938 (m68k_frame_this_id): New function.
1939 (m68k_frame_prev_register): New function.
1940 (m68k_frame_unwind): New variable.
1941 (m68k_frame_p): New function.
1942 (m68k_sigtramp_frame_cache): New function.
1943 (m68k_sigtramp_frame_this_id): New function.
1944 (m68k_sigtramp_frame_prev_register): New function.
1945 (m68k_sigtramp_frame_unwind): New variable.
1946 (m68k_sigtramp_frame_p): New function.
1947 (m68k_frame_base_address): New function.
1948 (m68k_frame_base): New function.
1949 (m68k_unwind_dummy_id): New function.
1950 (fill_gregset): Use regcache_collect.
1951 (fill_fpregset): Likewise.
1952 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1953 defined.
1954 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1955 deprecated_init_frame_pc, deprecated_store_struct_return,
1956 deprecated_extract_return_value, deprecated_store_return_value,
1957 deprecated_frame_chain, deprecated_frame_saved_pc,
1958 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1959 deprecated_register_virtual_size,
1960 deprecated_max_register_raw_size,
1961 deprecated_max_register_virtual_size,
1962 deprecated_register_virtual_type, deprecated_register_size,
1963 deprecated_register_byte, deprecated_register_bytes,
1964 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1965 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1966 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1967 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1968 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1969 deprecated_push_dummy_frame, deprecated_pop_frame,
1970 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1971 only if SYSCALL_TRAP is defined. Set extract_return_value,
1972 store_return_value, extract_struct_value_address, register_type,
1973 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1974 predicates.
1975 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1976 M68K_MAX_REGISTER_SIZE): Define.
1977 (struct m68k_sigtramp_info): Define.
1978 (struct gdbarch_tdep): Add get_sigtramp_info.
1979 * m68klinux-nat.c (fetch_register): Use register_size instead of
1980 REGISTER_RAW_SIZE. Don't put assignment in if.
1981 (store_register): Likewise.
1982 (fetch_inferior_registers): Likewise.
1983 (store_inferior_registers): Likewise.
1984 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1985 (m68k_linux_frame_saved_pc): Delete.
1986 (m68k_linux_sigcontext_reg_offset,
1987 m68k_linux_ucontext_reg_offset): Define.
1988 (m68k_linux_get_sigtramp_info): New function.
1989 (m68k_linux_extract_return_value): Rewrite using regcache.
1990 (m68k_linux_store_return_value): Likewise.
1991 (m68k_linux_extract_struct_value_address): Likewise.
1992 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1993 Don't set deprecated_frame_saved_pc,
1994 deprecated_extract_return_value, deprecated_store_return_value,
1995 deprecated_extract_struct_value_address. Set
1996 extract_return_value, store_return_value,
1997 extract_struct_value_address.
1998
1999 2003-07-07 Andrew Cagney <cagney@redhat.com>
2000
2001 * expprint.c: Include "user-regs.h" instead of "frame.h".
2002 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2003 frame_map_regnum_to_name.
2004 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2005 (frame_map_name_to_regnum): Simplify, call
2006 user_reg_map_name_to_regnum.
2007 (frame_map_regnum_to_name): Simplify, call
2008 user_reg_map_regnum_to_name.
2009 (frame_register_unwind): Update.
2010 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2011 (_initialize_frame_reg): Call user_reg_add_builtin.
2012 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2013 (value_of_register): Use value_of_user_reg.
2014 * eval.c (evaluate_subexp_standard): Update.
2015 * parse.c (write_dollar_variable): Update.
2016 * d10v-tdep.c (d10v_print_registers_info): Update.
2017 * infcmd.c (registers_info): Update.
2018 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2019 (builtin_regs_h): Delete macro.
2020 (user_regs_h): Define.
2021 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2022 (builtin-regs.o): Delete target.
2023 (user-regs.o): Specify dependencies.
2024 (expprint.o): Update dependencies.
2025 (findvar.o): Update dependencies.
2026 (frame.o): Update dependencies.
2027 (std-regs.o): Update dependencies.
2028
2029 2003-07-06 Christopher Faylor <cgf@redhat.com>
2030
2031 * win32-nat.c (solib_symbols_add): Use one variable for all section
2032 address stuff. Pass variable rather than address of variable to
2033 safe_symbol_file_add.
2034
2035 2003-07-06 Andreas Schwab <schwab@suse.de>
2036
2037 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2038
2039 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2040
2041 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2042
2043 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2044
2045 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2046
2047 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2048
2049 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2050 * config/i386/nto.mh: New file.
2051 * config/i386/nm-nto.h: New file.
2052 * configure.host: Add i[3456]86-*-nto*.
2053
2054 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2055
2056 * remote-vx.c (vx_add_symbols): Fix compilation error.
2057
2058 2003-07-03 Andrew Cagney <cagney@redhat.com>
2059
2060 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2061 * gdbarch.h, gdbarch.c: Re-generate.
2062 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2063 (legacy_register_name): Declare.
2064 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2065 (REGISTER_NAME): Define.
2066 * sparc-tdep.c (legacy_register_name): New function.
2067 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2068 (REGISTER_NAME): Define.
2069 (hppa64_register_name): Declare.
2070 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2071 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2072 (hppa64_register_name): New function.
2073 (hppa_register_name): New function.
2074 * arch-utils.c (legacy_register_name): Delete.
2075 * arch-utils.h (legacy_register_name): Delete.
2076
2077 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2078
2079 * cli/cli-interp.c (cli_interpreter_resume): Update the
2080 cli_uiout's stream to gdb_stdout.
2081
2082 2003-07-03 Andrew Cagney <cagney@redhat.com>
2083
2084 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2085 predicate.
2086 * gdbarch.h, gdbarch.c: Re-generate.
2087 * regcache.c (init_regcache_descr): Use legacy code when either
2088 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2089
2090 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2091
2092 * NEWS: Move "set logging" entry into GDB 6.0 section.
2093
2094 2003-07-02 Jim Blandy <jimb@redhat.com>
2095
2096 * s390-tdep.c (struct frame_extra_info): new member:
2097 'stack_bought_valid'.
2098 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2099 initialize fextra_info->stack_bought.
2100 (s390_frameless_function_invocation): Don't trust the value of
2101 fextra_info_ptr->stack_bought unless
2102 fextra_info->stack_bought_valid is set.
2103
2104 New S390 prologue analyzer.
2105 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2106 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2107 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2108 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2109 compute_x_addr, s390_on_stack, s390_store,
2110 s390_get_signal_frame_info): New functions.
2111 (S390_NUM_SPILL_SLOTS): New macro.
2112 (s390_get_frame_info): Rewritten.
2113 (is_arg_reg): Deleted.
2114
2115 Break out the decoding of S/390 instructions into separate
2116 functions, to make it more legible, and easier to check
2117 against the spec.
2118 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2119 is_rx, is_rxe): New functions.
2120 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2121 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2122 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2123 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2124 enums for opcode values. (Is this an improvement?)
2125
2126 2003-07-02 Andrew Cagney <cagney@redhat.com>
2127
2128 * i386-tdep.c: Revert change committed as part of trad-frame code
2129 below.
2130
2131 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2132
2133 * breakpoint.c (insert_catchpoint): Make static.
2134
2135 2003-07-02 Andreas Schwab <schwab@suse.de>
2136
2137 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2138 former ia64_push_arguments and ia64_push_return_address, and use
2139 regcache functions instead of read/write_register.
2140 (ia64_gdbarch_init): Set push_dummy_call instead of
2141 deprecated_push_arguments and deprecated_push_return_address.
2142
2143 2003-07-01 Andreas Jaeger <aj@suse.de>
2144
2145 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2146 before the call.
2147 Set %rax only to number of SSE registers used.
2148
2149 2003-07-01 Andrew Cagney <cagney@redhat.com>
2150
2151 * trad-frame.h: Update comments, a -1 .addr is reserved.
2152 (trad_frame_value_p, trad_frame_addr_p): Declare.
2153 (trad_frame_reg_p): Declare.
2154 (trad_frame_set_value): Rename trad_frame_register_value.
2155 (trad_frame_set_unknown): Declare.
2156 * trad-frame.c (trad_frame_realreg_p): New function.
2157 (trad_frame_addr_p, trad_frame_value_p): New function.
2158 (trad_frame_set_unknown): New function.
2159 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2160 (trad_frame_prev_register): Use trad_frame_realreg_p,
2161 trad_frame_addr_p and trad_frame_value_p.
2162 (trad_frame_set_value): Rename trad_frame_register_value.
2163 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2164 and trad_frame_set_value.
2165
2166 2003-06-30 Jim Blandy <jimb@redhat.com>
2167
2168 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2169 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2170 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2171 for 16 registers, and then 32 more bytes.
2172 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2173 New macros.
2174 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2175 Move up in the file, since it's now used by is_simple_arg.
2176 (is_simple_arg): Don't assume registers are four bytes long.
2177 Exclude all double arguments. Extended floats are not simple
2178 args.
2179 (is_power_of_two): New function.
2180 (pass_by_copy_ref): Call is_power_of_two, and check that the
2181 length fits in a register, rather than listing all the acceptable
2182 sizes. Extended floats are not passed by reference.
2183 (s390_push_arguments): Don't assume registers are four bytes long.
2184 Reserve an argument register to point to the buffer for structures
2185 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2186 S390_STACK_FRAME_OVERHEAD.
2187
2188 2003-06-30 Andreas Schwab <schwab@suse.de>
2189
2190 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2191 format error message.
2192
2193 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2194
2195 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2196
2197 2003-06-30 David Carlton <carlton@kealia.com>
2198
2199 Band-aid for PR c++/1245.
2200 * Makefile.in (cp-support.o): Depend on complaints_h.
2201 * cp-support.c: Include complaints.h. Add declaration for
2202 find_last_component.
2203 (cp_find_first_component): Separate code into
2204 cp_find_first_component_aux.
2205 (cp_find_first_component_aux): Call demangled_name_complaint.
2206 (demangled_name_complaint): New.
2207
2208 2003-06-30 Andrew Cagney <cagney@redhat.com>
2209
2210 * remote.c (remote_write_bytes): Explicitly compute and then use
2211 the payload size. Update comments to reflect. Fixes problem of
2212 GDB not sending small packets as found by Fred Fish.
2213
2214 2003-06-30 Andrew Cagney <cagney@redhat.com>
2215
2216 * remote.c (remote_async_wait): Fix -Wformat problem.
2217
2218 2003-06-29 Andrew Cagney <cagney@redhat.com>
2219
2220 * remote.c (remote_wait): Call error, and not warning, when the
2221 packet is corrupt.
2222 (remote_async_wait): Ditto.
2223
2224 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2225
2226 * sparc-tdep.c (sparc_y_regnum): Make external again.
2227
2228 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2229
2230 * cli/cli-logging.c (pop_output_files): Add void to function
2231 definition.
2232
2233 2003-06-29 Andrew Cagney <cagney@redhat.com>
2234
2235 * frame.c (frame_register_unwind): Use unsigned char when dumping
2236 the buffer contents.
2237
2238 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2239
2240 * cli/cli-logging.c: New file.
2241 * cli-out.c (struct ui_out_data): Add original_stream.
2242 (cli_redirect): New function.
2243 (cli_ui_out_impl): Add cli_redirect.
2244 (cli_out_new): Initialize original_stream.
2245 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2246 (uo_redirect, ui_out_redirect): New.
2247 * ui-out.h (struct ui_out_impl): Add redirect member.
2248 (redirect_ftype): New.
2249 (ui_out_redirect): Add prototype.
2250 * Makefile.in: Add rules for cli-logging.c.
2251 * NEWS: Mention "set logging".
2252
2253 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2254
2255 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2256
2257 2003-06-27 Andrew Cagney <cagney@redhat.com>
2258
2259 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2260 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2261 * avr-tdep.c (avr_call_dummy_address): Delete function.
2262 (avr_gdbarch_init): Do not set call_dummy_address.
2263
2264 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2265
2266 * symfile.c (syms_from_objfile): Move variables to inner block.
2267 Move the checks for the non-mainline case a bit earlier to avoid
2268 doing some useless computations.
2269
2270 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2271
2272 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2273
2274 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2275
2276 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2277 sections.
2278
2279 2003-06-26 Michael Chastain <mec@shout.net>
2280
2281 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2282 gdb/testsuite/gdb.c++/pr-1210.exp.
2283
2284 2003-06-26 Andrew Cagney <cagney@redhat.com>
2285
2286 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2287 altivec_expression.h and altivec_registers.h.
2288
2289 2003-06-26 Andrew Cagney <cagney@redhat.com>
2290
2291 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2292 info->mach when MIPS16. Patch suggested by Fred Fish.
2293
2294 2003-06-26 Andrew Cagney <cagney@redhat.com>
2295
2296 * utils.c (internal_vproblem): Print the problem to a reason
2297 buffer and then pass to query. Make the msg variable more local.
2298
2299 2003-06-26 Andrew Cagney <cagney@redhat.com>
2300
2301 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2302 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2303 * gdbarch.h, gdbarch.c: Re-generate.
2304 * frame-base.c (default_frame_args_address): Update. Use
2305 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2306 not available.
2307 (default_frame_locals_address): Ditto for
2308 DEPRECATED_FRAME_LOCALS_ADDRESS.
2309 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2310 (vax_frame_num_args): Update.
2311 (vax_gdbarch_init): Update.
2312 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2313 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2314 * mcore-tdep.c (mcore_gdbarch_init): Update.
2315 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2316 * ia64-tdep.c (ia64_gdbarch_init): Update.
2317 * symtab.h (address_class): Update comments.
2318 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2319 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2320 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2321 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2322 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2323 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2324 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2325 * alpha-mdebug-tdep.c: Update.
2326 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2327
2328 2003-06-26 Andreas Jaeger <aj@suse.de>
2329
2330 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2331 of SSE registers so that varargs functions work. Rework handling
2332 of passing arguments on the stack.
2333 (x86_64_store_return_value): Return double and float values in SSE
2334 register.
2335
2336 2003-06-24 Michael Chastain <mec@shout.net>
2337
2338 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2339 the "constructor breakpoints ignored" bug.
2340
2341 2003-06-25 David Carlton <carlton@kealia.com>
2342
2343 * MAINTAINERS: Update e-mail address.
2344
2345 2003-06-24 Jim Blandy <jimb@redhat.com>
2346
2347 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2348
2349 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2350 function.
2351 (ppc_linux_init_abi): Register it as the
2352 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2353
2354 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2355 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2356 method.
2357
2358 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2359 (ppc64_standard_linkage_target): Use it.
2360
2361 2003-06-23 Andrew Cagney <cagney@redhat.com>
2362
2363 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2364 for 0 "int0" and 4 "int32" sized registers.
2365 * gdbtypes.c (builtin_type_int0): Define.
2366 (build_gdbtypes): Initialize builtin_type_int0.
2367 * gdbtypes.h (builtin_type_int0): Declare.
2368
2369 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2370
2371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2372 as characters are unsigned.
2373
2374 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2375
2376 PR gdb/1179
2377 * dwarfread.c (struct_type): Skip static fields without crashing.
2378
2379 2003-06-22 Andrew Cagney <cagney@redhat.com>
2380
2381 GDB 6.0 branch created.
2382 * README: Update.
2383 * PROBLEMS: Update. Empty.
2384 * NEWS: Update.
2385
2386 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2387
2388 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2389 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2390
2391 2003-06-22 Andrew Cagney <cagney@redhat.com>
2392
2393 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2394 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2395 Velikov.
2396
2397 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2398
2399 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2400 compilers.
2401
2402 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2403
2404 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2405 argument of val_print.
2406 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2407 to the address argument of baseclass_offset or target_read_memory.
2408 Do add it to the argument of cp_print_value_fields.
2409
2410 2003-06-21 Andrew Cagney <cagney@redhat.com>
2411
2412 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2413 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2414 instead of 0..NUM_REGS.
2415 (mips_register_reggroup_p): New function.
2416 (mips_pseudo_register_write): New function.
2417 (mips_pseudo_register_read): New function.
2418 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2419 based on the register's type.
2420 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2421 cooked.
2422 (mips_get_saved_register): Simplify. Assert that REGNO is a
2423 pseudo / cooked.
2424 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2425 (mips_register_type): Replace mips_register_virtual_type. Map
2426 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2427 when available.
2428 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2429 that the register is cooked / virtual.
2430 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2431 Only get the extra info when needed.
2432 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2433 (mips32_heuristic_proc_desc): Fetch the cooked register.
2434 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2435 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2436 (mips_print_register): Use gdbarch_register_type, instead of
2437 REGISTER_VIRTUAL_TYPE.
2438 (print_gp_register_row): Use gdbarch_register_type, instead of
2439 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2440 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2441 Print the pseudo / cooked registers.
2442 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2443 Print the pseudo / cooked registers.
2444 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2445 REG_NUM is pseudo / cooked.
2446 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2447 (mips_n32n64_xfer_return_value): Ditto.
2448 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2449 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2450 (mips_register_sim_regno): New function.
2451 (mips_gdbarch_init): Set deprecated_register_byte,
2452 register_group_p, pseudo_register_write, pseudo_register_read,
2453 register_sim_regno, and num_pseudo_regs. Set register_type,
2454 instead of register_virtual_type.
2455 * Makefile.in (mips-tdep.o): Update dependencies.
2456 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2457 REGISTER_VIRTUAL_TYPE.
2458 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2459 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2460 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2461 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2462 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2463
2464 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2465
2466 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2467 * cli/cli-cmds.c: Include "gdb_vfork.h".
2468 (shell_escape): Use vfork.
2469
2470 2003-06-21 Andrew Cagney <cagney@redhat.com>
2471
2472 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2473 32 bit floating-point register saves.
2474
2475 * frame.h (deprecated_unwind_get_saved_register): Delete.
2476 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2477 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2478 and deprecated_get_next_frame_hack instead of
2479 deprecated_unwind_get_saved_register.
2480
2481 * mips-tdep.c (mips_dump_tdep): Do not print
2482 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2483
2484 * frame.c (get_frame_register): New function.
2485 (frame_unwind_register_signed): New function.
2486 (get_frame_register_signed): New function.
2487 (frame_unwind_register_unsigned): New function.
2488 (get_frame_register_unsigned): New function.
2489 * frame.h: Add comments on naming schema.
2490 (get_frame_register, frame_unwind_register_signed): Declare.
2491 (get_frame_register_signed, get_frame_register_signed): Declare.
2492 (frame_unwind_register_unsigned): Declare.
2493 (get_frame_register_unsigned): Declare.
2494
2495 2003-06-20 Theodore A. Roth <troth@openavr.org>
2496
2497 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2498
2499 2003-06-20 Theodore A. Roth <troth@openavr.org>
2500
2501 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2502 (avr_read_sp): Ditto.
2503
2504 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2505
2506 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2507 * config/arm/nm-linux.h: Likewise.
2508 * config/arm/tm-linux.h: Likewise.
2509 * config/ia64/nm-linux.h: Likewise.
2510 * config/ia64/tm-ia64.h: Likewise.
2511 * config/s390/tm-linux.h: Likewise.
2512 * config/s390/tm-s390.h: Likewise.
2513 * s390-nat.c: Likewise.
2514 * s390-tdep.c: Likewise.
2515
2516 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2517 * config/ia64/linux.mt: Likewise.
2518 * config/m68k/linux.mh: Likewise.
2519 * config/mips/linux.mt: Likewise.
2520 * config/powerpc/linux.mh: Likewise.
2521 * config/sh/linux.mt: Likewise.
2522
2523 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2524
2525 * solib.c (solib_open): Change tests for whether to search
2526 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2527 comments.
2528
2529 2003-06-19 Theodore A. Roth <troth@openavr.org>
2530
2531 * avr-tdep.c (avr_frame_address): Delete function.
2532 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2533 set_gdbarch_frame_args_address.
2534
2535 2003-06-19 Andrew Cagney <cagney@redhat.com>
2536
2537 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2538 (REGISTER_CONVERT_FROM_TYPE): Delete.
2539 (mips_register_convert_to_type): Delete declaration.
2540 (mips_register_convert_from_type): Delete declaration.
2541 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2542 kernel/.
2543
2544 2003-06-19 Michael Snyder <msnyder@redhat.com>
2545
2546 * linux-nat.h: New file.
2547 * linux-nat.c: Include linux-nat.h.
2548 * lin-lwp.c: Include linux-nat.h.
2549 Move struct lwp_info def to linux-nat.h.
2550 * linux-proc.c: Include linux-nat.h.
2551 (linux_make_note_section): Iterate over lwps instead of threads.
2552 (linux_do_thread_registers): Use lwp instead of merged pid.
2553 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2554 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2555 Add dependency on linux_nat_h.
2556
2557 2003-06-19 Theodore A. Roth <troth@openavr.org>
2558
2559 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2560
2561 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2562
2563 * varobj.c (get_type, get_target_type): Use check_typedef.
2564
2565 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2566
2567 * breakpoint.c (insert_catchpoint): Call internal_error.
2568
2569 2003-06-19 Theodore A. Roth <troth@openavr.org>
2570
2571 * avr-tdep.c (avr_push_dummy_code): Delete function.
2572 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2573
2574 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2575
2576 * arch-utils.c (default_prepare_to_proceed): Remove.
2577 (generic_prepare_to_proceed): Remove.
2578 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2579 (generic_prepare_to_proceed): Remove prototype.
2580 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2581 * gdbarch.c: Regenerate.
2582 * gdbarch.h: Regenerate.
2583 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2584 * hppah-nat.c (hppa_switched_threads): Remove.
2585 * infrun.c (prepare_to_proceed): New static function, copied from
2586 generic_prepare_to_proceed. Remove select_it argument.
2587 (proceed): Call prepare_to_proceed.
2588 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2589 variables.
2590 (ptrace_wait): Don't set the removed variables.
2591 (hppa_switched_threads): Remove.
2592 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2593 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2594 (lin_lwp_prepare_to_proceed): Remove prototype.
2595 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2596 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2597
2598 2003-06-18 Theodore A. Roth <troth@openavr.org>
2599
2600 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2601 trad-frame.h.
2602 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2603 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2604 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2605 (AVR_PROLOGUE_*): Enumerate prologue types.
2606 (struct frame_extra_info): Remove.
2607 (struct avr_unwind_cache): Define.
2608 (avr_write_sp): Delete function.
2609 (avr_read_fp): Ditto.
2610 (avr_init_extra_frame_info): Ditto.
2611 (avr_pop_frame): Ditto.
2612 (avr_frame_saved_pc): Ditto.
2613 (avr_saved_pc_after_call): Ditto.
2614 (avr_push_return_address): Ditto.
2615 (avr_frame_chain): Ditto.
2616 (avr_store_struct_return): Ditto.
2617 (avr_push_arguments): Ditto.
2618 (avr_scan_prologue): Update comments. Changed to set up the info for
2619 cache unwinding. Now returns end of prologue PC.
2620 (avr_skip_prologue): Better handling of functions lacking a prologue
2621 by using avr_scan_prologue.
2622 (avr_scan_arg_moves): New function.
2623 (avr_saved_regs_unwinder): Ditto.
2624 (avr_frame_unwind_cache): Ditto.
2625 (avr_unwind_pc): Ditto.
2626 (avr_frame_this_id): Ditto.
2627 (avr_frame_prev_register): Ditto.
2628 (avr_frame_p): Ditto.
2629 (avr_frame_base_address ): Ditto.
2630 (avr_unwind_dummy_id): Ditto.
2631 (avr_push_dummy_code): Ditto.
2632 (push_stack_item): Ditto.
2633 (pop_stack_item): Ditto.
2634 (avr_push_dummy_call): Ditto.
2635 (struct stack_item): Define.
2636 (avr_frame_unwind): Declare structure.
2637 (avr_frame_base): Ditto.
2638 (avr_gdbarch_init): Remove calls to
2639 set_gdbarch_deprecated_init_frame_pc,
2640 set_gdbarch_deprecated_target_read_fp,
2641 set_gdbarch_deprecated_dummy_write_sp,
2642 set_gdbarch_deprecated_fp_regnum,
2643 set_gdbarch_deprecated_push_arguments,
2644 set_gdbarch_deprecated_push_return_address,
2645 set_gdbarch_deprecated_pop_frame,
2646 set_gdbarch_deprecated_store_struct_return,
2647 set_gdbarch_deprecated_frame_init_saved_regs,
2648 set_gdbarch_deprecated_init_extra_frame_info,
2649 set_gdbarch_deprecated_frame_chain,
2650 set_gdbarch_deprecated_frame_saved_pc,
2651 set_gdbarch_deprecated_saved_pc_after_call.
2652 Add calls to set_gdbarch_push_dummy_call,
2653 set_gdbarch_push_dummy_code,
2654 frame_unwind_append_predicate,
2655 frame_base_set_default,
2656 set_gdbarch_unwind_dummy_id,
2657 set_gdbarch_unwind_pc.
2658 Wrap a long line.
2659
2660 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2661
2662 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2663 registers for H8/300S.
2664 (h8300_print_registers_info): Ditto.
2665 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2666
2667 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2668
2669 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2670 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2671 (lin_lwp_wait): Likewise. Update comments.
2672 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2673 (pull_pid_from_list, linux_record_stopped_pid): New.
2674
2675 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2676
2677 * ada-lang.c (scan_discrim_bound): Name first argument.
2678 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2679 declared by ALL_BLOCK_SYMBOLS.
2680
2681 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2682
2683 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2684 ("regcache.h"): Include it.
2685 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2686
2687 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2688
2689 * NEWS: Mention gdbserver detach change and "disconnect" command.
2690 * infcmd.c (disconnect_command): New function.
2691 (_initialize_infcmd): Add ``disconnect'' command.
2692 * remote.c (remote_async_detach): Delete.
2693 (remote_detach): Merge remote_async_detach.
2694 (remote_disconnect): New.
2695 (init_remote_ops): Set to_disconnect.
2696 (init_remote_cisco_ops): Likewise.
2697 (init_remote_async_ops): Likewise. Use remote_detach.
2698 * target.c (cleanup_target): Default to_disconnect.
2699 (update_current_target): Inherit to_disconnect.
2700 (target_disconnect, debug_to_disconnect): New functions.
2701 (setup_target_debug): Set to_disconnect.
2702 * target.h (struct target_ops): Add to_disconnect.
2703 (target_disconnect): Add prototype.
2704
2705 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2706
2707 * breakpoint.c (insert_catchpoint): New function.
2708 (insert_breakpoints): Use catch_exceptions to call
2709 insert_catchpoint. Disable catchpoints if they fail to insert.
2710
2711 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2712
2713 * symfile.c (reread_symbols): Clear sym_private.
2714
2715 2003-06-17 Andrew Cagney <cagney@redhat.com>
2716
2717 * trad-frame.h (struct frame_info): Add opaque declaration.
2718 * remote-fileio.h (struct cmd_list_element): Add opaque
2719 declaration.
2720 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2721 comments.
2722
2723 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2724
2725 * remote.c (remote_prepare_to_store): Replace call to
2726 deprecated_read_register_bytes with multiple regcache_raw_read
2727 calls.
2728
2729 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2730
2731 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2732 (nto_find_and_open_solib): Likewise.
2733 (nto_init_solib_absolute_prefix): Likewise.
2734 (_initialize_nto_tdep): Fix indentation.
2735
2736 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2737
2738 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2739
2740 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2741
2742 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2743
2744 2003-06-17 Jim Blandy <jimb@redhat.com>
2745
2746 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2747
2748 2003-06-16 Theodore A. Roth <troth@openavr.org>
2749
2750 * avr-tdep.c (avr_extract_return_value): New function.
2751 (avr_gdbarch_init): Set extract_return_value method.
2752
2753 2003-06-16 Andrew Cagney <cagney@redhat.com>
2754
2755 * frame.h (deprecated_get_next_frame_hack): Declare.
2756 * frame.c (legacy_saved_regs_prev_register): Only require
2757 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2758 there are always saved regs.
2759 (deprecated_generic_get_saved_register): Do not require
2760 DEPRECATED_FRAME_INIT_SAVED_REGS.
2761 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2762 use frame ID unwind instead.
2763 (deprecated_get_next_frame_hack): New function.
2764
2765 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2766
2767 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2768 (h8300_push_dummy_call): ...this function. Some minor optimization.
2769 (h8300_push_return_address): Remove.
2770 (h8300_gdbarch_init): Remove calls to
2771 set_gdbarch_deprecated_dummy_write_sp,
2772 set_gdbarch_deprecated_push_arguments and
2773 set_gdbarch_deprecated_push_return_address.
2774 Add call to set_gdbarch_push_dummy_call.
2775
2776 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2777
2778 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2779 (E_PSEUDO_EXR_REGNUM): Ditto.
2780 (h8300_is_argument_spill): Check for instructions moving argument
2781 registers into safe registers.
2782 (h8300_skip_prologue): Check for stm instruction to push registers
2783 used for register variables onto stack.
2784 (gdb_print_insn_h8300): Remove.
2785 (h8300_examine_prologue): Add a comment.
2786 (h8300_register_name): Take pseudo registers into account.
2787 (h8300s_register_name): Ditto.
2788 (h8300sx_register_name): Ditto.
2789 (h8300_print_register): Ditto.
2790 (h8300_print_registers_info): Define "nice" printing order.
2791 (h8300_saved_pc_after_call): Take pseudo registers into account.
2792 (h8300_register_type): Ditto. Return type used for remote connection
2793 when requesting real CCR or EXR register, return actual type when
2794 requesting pseudo CCR or EXR.
2795 (h8300_pseudo_register_read): New function.
2796 (h8300_pseudo_register_write): Ditto.
2797 (h8300_dbg_reg_to_regnum): Ditto.
2798 (h8300s_dbg_reg_to_regnum): Ditto.
2799 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2800 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2801 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2802 set_gdbarch_print_insn architecture dependent.
2803 Call set_gdbarch_pseudo_register_read and
2804 set_gdbarch_pseudo_register_write.
2805 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2806
2807 2003-06-16 Andrew Cagney <cagney@redhat.com>
2808
2809 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2810 * gdbarch.h, gdbarch.c: Re-generate.
2811 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2812 * s390-tdep.c (s390_gdbarch_init): Update.
2813 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2814 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2815 * mips-tdep.c (mips_gdbarch_init): Update.
2816 * mcore-tdep.c (mcore_gdbarch_init): Update.
2817 * cris-tdep.c (cris_gdbarch_init): Update.
2818 * infcall.c (call_function_by_hand): Update.
2819 * ia64-tdep.c (ia64_push_arguments): Update comment.
2820 * frame.c (legacy_get_prev_frame): Do not assume
2821 SAVE_DUMMY_FRAME_TOS_P.
2822 * dummy-frame.c (find_dummy_frame): Update comment.
2823
2824 2003-06-16 Andrew Cagney <cagney@redhat.com>
2825
2826 * regcache.c (do_cooked_read): Do not use register_valid_p.
2827
2828 2003-06-15 Theodore A. Roth <troth@openavr.org>
2829
2830 * avr-tdep.c (avr_register_type): Remove a blank line.
2831 (avr_scan_prologue): Correct some comments.
2832
2833 2003-06-15 Theodore A. Roth <troth@openavr.org>
2834
2835 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2836 prologue types.
2837 Properly scan prologues generated by gcc with the -mcall-prologues
2838 option.
2839 Add code to scan -mcall-prologues for mega devices.
2840
2841 2003-06-15 Theodore A. Roth <troth@openavr.org>
2842
2843 * avr-tdep.c (avr_register_byte): Delete function.
2844 (avr_register_raw_size): Delete function.
2845 (avr_register_virtual_size): Delete function.
2846 (avr_register_virtual_type): Delete function.
2847 (avr_register_type): New function.
2848 (avr_address_to_pointer): Remove unused code.
2849 (avr_read_fp): Need to read FP as two separate bytes due to change to
2850 avr_register_type() usage.
2851 (avr_gdbarch_init): Don't set deprecated_register_size.
2852 Don't set deprecated_register_bytes.
2853 Don't set deprecated_register_byte.
2854 Don't set deprecated_register_raw_size.
2855 Don't set deprecated_max_register_raw_size.
2856 Don't set deprecated_register_virtual_size.
2857 Don't set deprecated_max_register_virtual_size.
2858 Don't set deprecated_register_virtual_type.
2859 Set register_type method.
2860
2861 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2862
2863 * Makefile.in (linux-nat.o): Add rule.
2864 * linux-nat.c: New file.
2865 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2866 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2867 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2868 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2869 * config/arm/linux.mh (NATDEPFILES): Likewise.
2870 * config/i386/linux.mh (NATDEPFILES): Likewise.
2871 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2872 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2873 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2874 * config/mips/linux.mh (NATDEPFILES): Likewise.
2875 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2876 * config/s390/s390.mh (NATDEPFILES): Likewise.
2877 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2878
2879 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2880
2881 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2882 replace out-of-date comment.
2883
2884 2003-06-15 Andrew Cagney <cagney@redhat.com>
2885
2886 * rdi-share/host.h (Fail): Change to a varargs function.
2887 * remote-rdi.c (Fail): Update.
2888
2889 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2890
2891 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2892 (i386_convert_register_p, i386_register_to_value,
2893 i386_register_from_value): Handle types longer than 8 bytes.
2894
2895 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2896
2897 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2898 Move floating-point code to new function in i387-tdep.c.
2899 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2900 New functions containing code moved here from i386-tdep.c.
2901 * i387-tdep.h: Add opaque declaration for `struct type'.
2902 (i387_register_to_value, i387_value_to_register): New prototypes.
2903 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2904 (x86_64_init_abi): Set convert_register_p, register_to_value and
2905 value_to_register here.
2906
2907 2003-06-14 Andrew Cagney <cagney@redhat.com>
2908
2909 * mips-tdep.c (mips_register_to_value): Make static.
2910 (mips_value_to_register): Make static.
2911 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2912 * ia64-tdep.c (ia64_register_raw_size): Make static.
2913 (ia64_register_virtual_size): Make static.
2914 (ia64_register_byte): Make static.
2915 * i387-tdep.c: Include "i387-tdep.h".
2916 (print_387_control_word): Delete function.
2917 (print_387_status_word): Delete function.
2918 (print_387_status_bits): Delete function.
2919 (print_387_control_bits): Delete function.
2920 * Makefile.in (i387-tdep.o): Update dependencies.
2921 * rdi-share/host.h (Fail): Declare.
2922 * remote-rdi.c (Fail): Update to match declaration.
2923
2924 2003-06-14 Andrew Cagney <cagney@redhat.com>
2925
2926 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2927 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2928 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2929 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2930 * README: Delete reference to remote-array.
2931 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2932 (remote-array.o): Delete target.
2933 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2934 * remote-array.c: Delete file.
2935
2936 2003-06-14 Andrew Cagney <cagney@redhat.com>
2937 Mark Kettenis <kettenis@gnu.org>
2938
2939 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2940 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2941 parameter with "frame".
2942 * gdbarch.h, gdbarch.c: Re-generate.
2943 * frame.h (put_frame_register): Declare.
2944 * frame.c (put_frame_register): New function.
2945 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2946 (legacy_register_to_value): Rewrite, use "frame" to get the
2947 register value.
2948 (legacy_value_to_register): Rewrite, use "frame" to find the
2949 register's location before storing.
2950 * arch-utils.h (legacy_convert_register_p): Update.
2951 (legacy_register_to_value, legacy_value_to_register): Update.
2952 * findvar.c (value_from_register): Rewrite, eliminate use of
2953 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2954 "frame" to REGISTER_TO_VALUE.
2955 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2956 lval_reg_frame_relative + lval_register branch of the switch. Do
2957 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2958 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2959 I386_EDI_REGNUM): New defines.
2960 (i386_next_regnum, i386_convert_register_p,
2961 i386_register_to_value, i386_value_to_register): New functions.
2962 (i386_register_convertible, i386_register_convert_to_virtual,
2963 i386_convert_to_raw): Remove functions.
2964 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2965 value_to_register instead of register_convertible,
2966 register_convert_to_virtual and register_convert_to_raw.
2967 * mips-tdep.c (mips_convert_register_p): New function.
2968 (mips_value_to_register): Replace mips_register_convert_from_type.
2969 (mips_register_to_value): Replace mips_register_convert_to_type.
2970 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2971 register_to_value.
2972 * alpha-tdep.c (alpha_convert_register_p): Update.
2973 (alpha_value_to_register): Update, store the register.
2974 (alpha_register_to_value): Update, fetch the register.
2975
2976 2003-06-14 Theodore A. Roth <troth@openavr.org>
2977
2978 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2979 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2980 Don't set deprecated_call_dummy_words.
2981 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2982 Don't set remote_translate_xfer_address.
2983 (avr_io_reg_read_command): Remove commented out debug printf.
2984 Wrap a long line.
2985
2986 2003-06-14 Theodore A. Roth <troth@openavr.org>
2987
2988 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2989 causes gdb to seg fault.
2990
2991 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2992
2993 * sparc-nat.c (fetch_inferior_registers): Correct
2994 a reference to "registers".
2995
2996 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2997
2998 * Makefile.in (exc_request_U_h): Define
2999 (exc_request_S_h): Likewise.
3000 (msg_reply_S_h): Likewise.
3001 (msg_U_h): Likewise.
3002 (notify_S_h): Likewise.
3003 (process_reply_S_h): Likewise.
3004 (gnu-nat.o): Depend on gdb_obstack_h
3005 * gnu-nat.c: Include "gdb_obstack.h".
3006
3007 2003-06-13 Andrew Cagney <cagney@redhat.com>
3008
3009 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3010 * gdbarch.h, gdbarch.c: Re-generate.
3011
3012 2003-06-13 Andrew Cagney <cagney@redhat.com>
3013
3014 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3015 when deprecated REGISTER macros can be deleted.
3016 * gdbarch.h, gdbarch.c: Re-generate.
3017
3018 2003-06-13 Jim Blandy <jimb@redhat.com>
3019
3020 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3021 Linux entry point symbols for _dl_debug_state, too.
3022
3023 2003-06-13 Andrew Cagney <cagney@redhat.com>
3024
3025 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3026 available, do not use the FP register, and always save the TOS.
3027 * dummy-frame.c (dummy_frame_this_id): Do not assert
3028 SAVE_DUMMY_FRAME_TOS.
3029 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3030 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3031 (i386_push_dummy_call): Add 8 to the returned SP.
3032 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3033 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3034 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3035 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3036 (x86_64_push_dummy_call): Return "sp + 16".
3037 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3038 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3039 save_dummy_frame_tos.
3040
3041 2003-06-13 Jim Blandy <jimb@redhat.com>
3042
3043 * frv-tdep.c (frv_use_struct_convention): Delete static
3044 declaration for function deleted in my change of 2003-06-12.
3045
3046 2003-06-13 Theodore A. Roth <troth@openavr.org>
3047
3048 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3049 (avr_pointer_to_address): Shift code addrs left 1 bit.
3050 (avr_convert_from_func_ptr_addr): Delete function since operation is
3051 better handled by avr_address_to_pointer and avr_pointer_to_address.
3052 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3053
3054 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3055
3056 From Kelley Cook <kelleycook@wideopenwest.com>:
3057 * configure.host: Accept i[34567]86 variants.
3058 * configure.tgt: Likewise.
3059 * nlm/configure.in: Likewise.
3060 * nlm/configure: Regenerated.
3061
3062 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3063
3064 * arm-tdep.c (solib-svr4.h): Dont' include it.
3065 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3066 * arm-linux-tdep.c: ... here. Make static.
3067 (arm_linux_init_abi): Register it.
3068 (solib-svr4.h): Include it.
3069 * Makefile.in: Update dependencies.
3070 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3071 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3072
3073 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3074
3075 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3076 indicate registers used for return values.
3077 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3078 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3079 members.
3080 (h8300_init_extra_frame_info): Ditto.
3081 (h8300_frame_locals_address): Removed.
3082 (h8300_frame_args_address): Removed.
3083 (h8300_extract_return_value): Use new regcache structure. Only care
3084 for 16 bit CPUs.
3085 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3086 (h8300_store_return_value): Use new regcache structure. Only care
3087 for 16 bit CPUs.
3088 (h8300h_store_return_value): Same function for 32 bit CPUs.
3089 (h8300_store_struct_return): Removed.
3090 (h8300_extract_struct_value_address): Use new regcache structure.
3091 (h8300h_extract_struct_value_address): Removed.
3092 (h8300_push_dummy_code): New function.
3093 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3094 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3095 set_gdbarch_store_return_value architecture dependent.
3096 Call set_gdbarch_push_dummy_code and
3097 set_gdbarch_extract_struct_value_address.
3098 Remove calls to set_gdbarch_frame_args_address,
3099 set_gdbarch_frame_locals_address,
3100 set_gdbarch_deprecated_store_struct_return,
3101 set_gdbarch_deprecated_extract_return_value,
3102 set_gdbarch_deprecated_extract_struct_value_address,
3103 set_gdbarch_deprecated_call_dummy_words and
3104 set_gdbarch_deprecated_sizeof_call_dummy_words.
3105
3106 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3107
3108 * h8300-tdep.c (h8300_register_byte): Remove.
3109 (h8300h_register_byte): Remove.
3110 (h8300_register_virtual_type): Remove. Substitute by...
3111 (h8300_register_type): New function.
3112 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3113 (h8300h_extract_struct_value_address): Ditto.
3114 (h8300_gdbarch_init): Drop calls to
3115 set_gdbarch_deprecated_register_byte and
3116 set_gdbarch_deprecated_register_virtual_type.
3117 Add call to set_gdbarch_register_type.
3118
3119 2003-06-13 Andrew Cagney <cagney@redhat.com>
3120
3121 * gdbarch.sh: Update comments on registers.
3122 (deprecated_register_byte): Rename register_byte.
3123 (deprecated_register_raw_size): Rename register_raw_size.
3124 (deprecated_register_virtual_size): Rename register_virtual_size.
3125 (deprecated_register_virtual_type): Rename register_virtual_type.
3126 * gdbarch.h, gdbarch.c: Re-generate.
3127 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3128 * vax-tdep.c (vax_gdbarch_init): Update.
3129 * v850-tdep.c (v850_gdbarch_init): Update.
3130 * sparc-tdep.c (sparc_gdbarch_init): Update.
3131 * sh-tdep.c (sh_gdbarch_init): Update.
3132 * s390-tdep.c (s390_gdbarch_init): Update.
3133 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3134 * ns32k-tdep.c: Update.
3135 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3136 * mips-tdep.c (mips_gdbarch_init): Update.
3137 * mcore-tdep.c (mcore_gdbarch_init): Update.
3138 * m68k-tdep.c (m68k_gdbarch_init): Update.
3139 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3140 * ia64-tdep.c (ia64_gdbarch_init): Update.
3141 * hppa-tdep.c (hppa_gdbarch_init): Update.
3142 * h8300-tdep.c (h8300_gdbarch_init): Update.
3143 * frv-tdep.c (frv_gdbarch_init): Update.
3144 * cris-tdep.c (cris_gdbarch_init): Update.
3145 * avr-tdep.c (avr_gdbarch_init): Update.
3146 * alpha-tdep.c (alpha_gdbarch_init): Update.
3147 * arm-tdep.c (arm_gdbarch_init): Update.
3148
3149 2003-06-13 Andrew Cagney <cagney@redhat.com>
3150
3151 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3152 mips_o32_use_struct_convention with always_use_struct_convention.
3153
3154 2003-06-12 David Carlton <carlton@kealia.com>
3155
3156 * cp-namespace.c (cp_set_block_scope): Comment out
3157 processing_has_namespace_info branch.
3158
3159 2003-06-12 Jim Blandy <jimb@redhat.com>
3160
3161 Recognize and skip 64-bit PowerPC Linux linkage functions.
3162 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3163 insn_pattern, insns_match_pattern, d_field, ds_field): New
3164 functions, macros, and types for working with PPC instructions.
3165 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3166 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3167 ppc64_skip_trampoline_code): New functions, variables, and macros
3168 for recognizing and skipping linkage functions.
3169 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3170 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3171
3172 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3173 register offsets for both the 32- and 64-bit interfaces.
3174
3175 Actually finish the job started by my change of 2003-05-29.
3176 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3177 other #definition of this.
3178 (ppc_linux_skip_trampoline_code): Remove declaration.
3179 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3180 static.
3181 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3182 method for GDBARCH.
3183
3184 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3185 'long' on ppc64-*-linux*.
3186
3187 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3188 isn't #defined, assume the register doesn't exist: act as if
3189 tdep->ppc_mq_regnum were -1.
3190
3191 * configure.host, configure.tgt: Add entries for
3192 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3193 powerpc/linux.mt.
3194 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3195 New files.
3196
3197 * arch-utils.c (always_use_struct_convention): New function.
3198 * arch-utils.h (always_use_struct_convention): New prototype.
3199 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3200 (alpha_gdbarch_init): Register always_use_struct_convention,
3201 instead of alpha_use_struct_convention.
3202 * cris-tdep.c (cris_use_struct_convention): Delete.
3203 (cris_gdbarch_init): Register always_use_struct_convention,
3204 instead of cris_use_struct_convention.
3205 * frv-tdep.c (frv_use_struct_convention): Delete.
3206 (frv_gdbarch_init): Register always_use_struct_convention,
3207 instead of frv_use_struct_convention.
3208 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3209 (h8300_gdbarch_init): Register always_use_struct_convention,
3210 instead of h8300_use_struct_convention.
3211 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3212 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3213 instead of mips_o32_use_struct_convention.
3214
3215 2003-06-12 Andrew Cagney <cagney@redhat.com>
3216
3217 * wince.c: Include "mips-tdep.h".
3218 * mips-tdep.h (mips_next_pc): Declare.
3219 * mcore-tdep.c: Make more local functions static.
3220 * Makefile.in (wince.o): Update dependencies.
3221
3222 2003-06-12 David Carlton <carlton@kealia.com>
3223
3224 * symtab.c (lookup_symbol_aux_minsyms): Replace
3225 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3226 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3227 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3228 SYMBOL_NATURAL_NAME.
3229
3230 2003-06-12 Andreas Schwab <schwab@suse.de>
3231
3232 * Makefile.in (tuiDisassem.o): Update dependencies.
3233
3234 2003-06-12 David Carlton <carlton@bactrian.org>
3235
3236 * symtab.h: Delete declaration of make_symbol_overload_list.
3237 Add declaration of lookup_partial_symbol.
3238 * symtab.c (remove_params): Move to cp-support.c.
3239 (overload_list_add_symbol, make_symbol_overload_list)
3240 (sym_return_val_size, sym_return_val_index): Ditto.
3241 (lookup_partial_symbol): Make extern.
3242 * cp-support.h: Add declaration of make_symbol_overload_list.
3243 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3244 symtab.h, and block.h.
3245 (remove_params): Move here from symtab.c.
3246 (overload_list_add_symbol, make_symbol_overload_list)
3247 (sym_return_val_size, sym_return_val_index): Ditto.
3248 * valops.c: Include cp-support.h.
3249 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3250 frame_h, and block_h.
3251 (valops.o): Depend on cp_support_h.
3252
3253 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3254
3255 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3256 substitute by NUM_REGS throughout.
3257 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3258 (h8300s_register_name): New function for H8S registers.
3259 (h8300sx_register_name): Ditto for H8SX registers.
3260 (h8300_print_register): Revise register printing, avoid depending
3261 on 32 bit long.
3262 (h8300_register_byte): Only care for H8/300 registers.
3263 (h8300h_register_byte): New function for any other architecture.
3264 (h8300_register_raw_size): Remove.
3265 (h8300_register_virtual_type): Revise to return actually useful
3266 type.
3267 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3268 (h8300h_extract_struct_value_address): New function for any other
3269 architecture.
3270 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3271 set_gdbarch_register_name, set_gdbarch_register_byte,
3272 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3273 Remove calls to set_gdbarch_deprecated_register_size,
3274 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3275 set_gdbarch_deprecated_max_register_raw_size,
3276 set_gdbarch_register_virtual_size and
3277 set_gdbarch_deprecated_max_register_virtual_size entirely.
3278 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3279 set_gdbarch_long_double_bit.
3280
3281 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3282
3283 * doublest.c (convert_doublest_to_floatformat): When dealing
3284 with the implied integer bit, only alter mant_bits if we are
3285 processing a full 32 bits of mantissa.
3286
3287 2003-06-11 David Carlton <carlton@bactrian.org>
3288
3289 * dictionary.h: New.
3290 * dictionary.c: New.
3291 * block.h: Add opaque declaration for struct dictionary.
3292 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3293 'sym' members.
3294 (BLOCK_DICT): New macro.
3295 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3296 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3297 BLOCK_SHOULD_SORT.
3298 (ALL_BLOCK_SYMBOLS): Update definition.
3299 * Makefile.in (SFILES): Add dictionary.c.
3300 (dictionary_h): New.
3301 (COMMON_OBS): Add dictionary.o.
3302 (dictionary.o): New.
3303 (ada-lang.o): Depend on dictionary_h.
3304 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3305 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3306 (mi-cmd-stack.o): Ditto.
3307 (gdbtk-cmds.o): Update dependencies.
3308 (gdbtk-stack.o): Ditto.
3309 * ada-lang.c: Include dictionary.h.
3310 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3311 (fill_in_ada_prototype, debug_print_block): Ditto.
3312 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3313 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3314 'is_sorted'.
3315 * mdebugread.c: Include dictionary.h.
3316 (struct parse_stack): Delete 'maxsyms' member.
3317 (parse_symbol): Update calls to new_block. Delete calls to
3318 shrink_block. Use dictionary methods.
3319 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3320 Update calls to new_symtab. Don't maintain maxsyms data.
3321 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3322 (add_symbol): Just call dict_add_symbol.
3323 (new_symtab): Delete 'maxsyms' argument.
3324 (new_symtab): Update calls to new_block.
3325 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3326 (shrink_block): Delete function.
3327 (fixup_sigtramp): Update call to new_block. Add symbol via
3328 dict_add_symbol.
3329 * jv-lang.c: Include dictionary.h.
3330 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3331 appropriately. Set class_symtab->free_func. Make sure the
3332 blockvector is big enough to hold two blocks.
3333 (add_class_symtab_symbol): Use dictionary methods.
3334 (free_class_block): New function.
3335 (type_from_class): Replace explicit iteration by
3336 ALL_BLOCK_SYMBOLS.
3337 * symtab.h (struct symtab): Replace 'free_ptr' method by
3338 'free_func'.
3339 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3340 sort_symtab_syms.
3341 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3342 sort_symtab_syms.
3343 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3344 Include dictionary.h.
3345 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3346 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3347 sort_symtab_syms.
3348 * objfiles.c: Include dictionary.h.
3349 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3350 * buildsym.c: Include dictionary.h.
3351 (finish_block): Use dictionary methods.
3352 (end_symtab): Set free_func to NULL, not free_ptr.
3353 * tracepoint.c: Include dictionary.h.
3354 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3355 (scope_info): Ditto.
3356 * stack.c: Include dictionary.h.
3357 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3358 (print_block_frame_labels, print_frame_arg_vars)
3359 (print_frame_args): Ditto.
3360 * symmisc.c (free_symtab_block): Use dictionary methods.
3361 (dump_symtab): Ditto.
3362 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3363 Include dictionary.h.
3364 * symfile.h: Delete declarations of sort_block_syms,
3365 sort_symtab_syms.
3366 * symfile.c (sort_block_syms): Delete.
3367 (sort_symtab_syms): Delete.
3368 * symtab.c: Include dictionary.h.
3369 (lookup_block_symbol): Use dictionary iterators.
3370 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3371 (search_symbols, make_symbol_completion_list): Ditto.
3372 (make_symbol_overload_list): Ditto.
3373 * valops.c (value_of_local): Use dict_empty.
3374 Include dictionary.h.
3375
3376 2003-06-11 J. Brobecker <brobecker@gnat.com>
3377
3378 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3379
3380 2003-06-11 David Carlton <carlton@bactrian.org>
3381
3382 * block.h (BLOCK_SHOULD_SORT): Delete.
3383 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3384 blocks.
3385 * ada-lang.c (ada_add_block_symbols): Ditto.
3386 * symfile.c (sort_block_syms): Delete.
3387 (sort_symtab_syms): Ditto.
3388 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3389 declarations.
3390 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3391 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3392 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3393 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3394 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3395 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3396 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3397
3398 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3399
3400 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3401 bits to 128.
3402
3403 2003-06-11 Andrew Cagney <cagney@redhat.com>
3404
3405 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3406 REGISTER_CONVERTIBLE.
3407 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3408 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3409 * gdbarch.h, gdbarch.c: Re-generate.
3410 * arch-utils.h (deprecated_register_convertible_not): Rename
3411 generic_register_convertible_not.
3412 * arch-utils.c (deprecated_register_convertible_not): Rename
3413 generic_register_convertible.
3414 (legacy_convert_register_p, legacy_register_to_value): Update.
3415 * sh-tdep.c (sh64_push_arguments): Update.
3416 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3417 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3418 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3419 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3420 * arch-utils.c (legacy_value_to_register): Update.
3421 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3422 (rs6000_register_convert_to_raw): Make parameter "from" const.
3423 * mips-tdep.c (mips_gdbarch_init): Update.
3424 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3425 * infcmd.c (default_print_registers_info): Update.
3426 * ia64-tdep.c (ia64_gdbarch_init): Update.
3427 (ia64_register_convert_to_raw): Make parameter "from" const.
3428 * i386-tdep.c (i386_gdbarch_init): Update.
3429 (i386_register_convert_to_raw): Update.
3430
3431 2003-06-11 Andrew Cagney <cagney@redhat.com>
3432
3433 * remote-fileio.c: Include "remote-fileio.h".
3434 * Makefile.in (remote-fileio.o): Update dependencies.
3435 (remote_fileio_h): Fix typo.
3436
3437 2003-06-11 Andrew Cagney <cagney@redhat.com>
3438
3439 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3440 (xstormy16_save_dummy_frame_tos): Make static.
3441 (_initialize_xstormy16_tdep): Add declaration.
3442 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3443 * v850-tdep.c: Make local functions static.
3444 (_initialize_v850_tdep): Add declaration.
3445 * sparc-tdep.c: Make local functions static.
3446 (_initialize_sparc_tdep): Add declaration.
3447 * sh-tdep.c: Make local functions static.
3448 (_initialize_sh_tdep): Add declaration.
3449 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3450 * s390-tdep.c: Make local functions static.
3451 (_initialize_s390_tdep): Add declaration.
3452 * dbxread.c (find_stab_function_addr): Make static.
3453 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3454 * ocd.c (_initialize_remote_ocd): Add declaration.
3455 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3456 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3457 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3458 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3459 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3460 * remote-array.c (_initialize_array): Add declaration.
3461 (_initialize_remote_monitors): Add declaration.
3462 * remote-mips.c: Make local functions static.
3463 (_initialize_remote_mips): Add declaration.
3464 * mcore-tdep.c: Make all local functions static.
3465 (_initialize_mcore_tdep): Add declaration.
3466 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3467 * abug-rom.c (_initialize_abug_rom): Add declaration.
3468 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3469 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3470 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3471 * remote-est.c (_initialize_est): Add declaration.
3472 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3473 (m68hc11_call_dummy_address): Make static.
3474 * ia64-tdep.c: Make local functions static.
3475 (_initialize_ia64_tdep): Add declaration.
3476 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3477 * monitor.c (monitor_wait_filter): Make static.
3478 (_initialize_remote_monitors): Add declaration.
3479 * remote-hms.c (_initialize_remote_hms): Add declaration.
3480 * remote-e7000.c (fetch_regs_from_dump): Make static.
3481 (expect_n): Make static.
3482 (_initialize_remote_e7000): Add declaration.
3483 * ser-e7kpc.c: Always include "defs.h".
3484 (_initialize_ser_e7000pc): Add declaration.
3485 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3486 * cris-tdep.c: Make all but one function static.
3487 (_initialize_cris_tdep): Add declaration.
3488 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3489 * solib.c (update_solib_list): Make static.
3490 (_initialize_solib): Add declaration.
3491 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3492 (_initialize_avr_tdep): Add declaration.
3493 * remote-rdi.c (voiddummy): Make static.
3494 (_initialize_remote_rdi): Add declaration.
3495 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3496 * remote-rdp.c (send_rdp): Make static.
3497 (_initialize_remote_rdp): Add declaration.
3498 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3499
3500 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3501
3502 * remote-fileio.c: Make ari happy.
3503
3504 2003-06-10 J. Brobecker <brobecker@gnat.com>
3505
3506 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3507 fetching the trailing bytes of the buffer we are about to write.
3508
3509 2003-06-10 Andrew Cagney <cagney@redhat.com>
3510
3511 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3512 * Makefile.in (remote-fileio.o): Update dependencies.
3513 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3514 include <setjmp.h>, or <sys/types.h> conditional on USG.
3515 (remote_fio_jmp_buf): Delete global variable.
3516
3517 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3518 Martin M. Hunt <hunt@redhat.com>
3519
3520 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3521 (SFILES): Add remote-fileio.c.
3522 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3523 dependencies for building remote.o.
3524 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3525 * remote-fileio.h: New header file defining remote File-I/O interface.
3526 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3527 static storage class.
3528 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3529 'F' packet.
3530 (_initialize_remote): Call initialize_remote_fileio().
3531 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3532 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3533 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3534 (captured_main): Initialize new ui_files.
3535 * ui-file.c: Add read and fgets input functions.
3536 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3537 (null_file_read): New function.
3538 (ui_file_read): New function.
3539 (set_ui_file_read): New function.
3540 (stdio_file_read): New function.
3541 * ui-file.h: New type ui_file_read_ftype.
3542 (set_ui_file_read): Declare.
3543 (ui_file_read): Declare.
3544
3545 2003-06-09 Andrew Cagney <cagney@redhat.com>
3546
3547 * frame.h (deprecated_unwind_get_saved_register): Rename
3548 generic_unwind_get_saved_register, update comments.
3549 * mips-tdep.c (mips_get_saved_register): Update.
3550 * frame.c (deprecated_unwind_get_saved_register): Update.
3551
3552 2003-06-09 Andrew Cagney <cagney@redhat.com>
3553
3554 * vax-tdep.c (vax_frame_locals_address): Delete function.
3555 (vax_gdbarch_init): Do not set frame_locals_address.
3556 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3557 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3558 * s390-tdep.c (s390_frame_args_address): Delete function.
3559 (s390_gdbarch_init): Do not set frame_args_address or
3560 frame_locals_address.
3561 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3562 (ns32k_gdbarch_init): Do not set frame_locals_address.
3563 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3564 (hppa_frame_locals_address): Delete function.
3565 (hppa_gdbarch_init): Do not set frame_args_address, or
3566 frame_locals_address.
3567 * arm-tdep.c (arm_frame_args_address): Delete.
3568 (arm_frame_locals_address): Delete.
3569 (arm_gdbarch_init): Do not set frame_args_address, or
3570 frame_locals_address.
3571
3572 2003-06-09 Andrew Cagney <cagney@redhat.com>
3573
3574 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3575 * gdbarch.h, gdbarch.c: Re-generate.
3576 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3577 * arch-utils.c (frame_num_args_unknown): Delete function.
3578 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3579 (frame_info): Use FRAME_NUM_ARGS_P.
3580 * arm-tdep.c (arm_frame_num_args): Delete function.
3581 (arm_gdbarch_init): Do not set frame_num_args.
3582 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3583 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3584 (hppa_gdbarch_init): Do not set frame_num_args.
3585 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3587 frame_num_args to default frame_num_args_unknown.
3588 * v850-tdep.c (v850_gdbarch_init): Ditto.
3589 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3590 * sh-tdep.c (sh_gdbarch_init): Ditto.
3591 * s390-tdep.c (s390_gdbarch_init): Ditto.
3592 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3593 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3594 * mips-tdep.c (mips_gdbarch_init): Ditto.
3595 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3596 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3597 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3598 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3599 * i386-tdep.c (i386_gdbarch_init): Ditto.
3600 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3601 * frv-tdep.c (frv_gdbarch_init): Ditto.
3602 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3603 * cris-tdep.c (cris_gdbarch_init): Ditto.
3604 * avr-tdep.c (avr_gdbarch_init): Ditto.
3605 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3606
3607 2003-06-09 Andrew Cagney <cagney@redhat.com>
3608
3609 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3610 (print_frame_args): Moved to "stack.c".
3611 * stack.c: Include "gdb_assert.h".
3612 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3613 (print_frame_args): Moved from "printcmd.c".
3614 * frame.h (print_frame_args): Delete declaration.
3615 * Makefile.in (stack.o): Update dependencies.
3616
3617 2003-06-08 Andrew Cagney <cagney@redhat.com>
3618
3619 * frame.c (get_prev_frame): Remove reference to
3620 frame_args_address_correct in comments.
3621 * frame-base.c (default_frame_args_address): Delete code
3622 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3623 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3624 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3625 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3626 (vax_frame_args_address_correct): Delete declaration.
3627
3628 2003-06-08 Andrew Cagney <cagney@redhat.com>
3629
3630 * gdbarch.sh (UNWIND_SP): Add.
3631 * gdbarch.h, gdbarch.c: Re-generate.
3632 * frame.c (frame_sp_unwind): New function.
3633 (get_frame_sp): New function.
3634 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3635 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3636 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3637 value.
3638 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3639 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3640
3641 2003-06-08 Andrew Cagney <cagney@redhat.com>
3642
3643 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3644 REMOTE_BREAKPOINT.
3645 * remote.c: Update.
3646 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3647 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3648 * config/m68k/tm-sun3.h: Update.
3649 * config/m68k/tm-m68klynx.h: Update.
3650 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3651
3652 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3653 trad_frame". Update comments.
3654 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3655 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3656 (trad_frame_register_value, trad_frame_prev_register): Update.
3657
3658 2003-06-08 Andrew Cagney <cagney@redhat.com>
3659
3660 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3661 from GCC's acinclude.m4.
3662 * configure.in: Check for getopt's delcaration.
3663 * aclocal.m4, config.in, configure: Re-generate.
3664 * main.c (error_init): Delete declaration.
3665 * defs.h (error_init): Declare.
3666 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3667 (rs6000_convert_from_func_ptr_addr): Make static.
3668 (_initialize_rs6000_tdep): Add declaration.
3669 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3670 (show_commands, set_verbose, show_history): Delete declaration.
3671 * top.h (set_verbose): Add declaration.
3672 (show_history, set_history, show_commands): Add declaration.
3673 (do_restore_instream_cleanup): Add declaration.
3674 * objc-lang.c (specialcmp): Make static.
3675 (print_object_command): Make static.
3676 (find_objc_msgsend): Make static.
3677 (find_objc_msgcall_submethod_helper): Make static.
3678 (find_objc_msgcall_submethod): Make static.
3679 (_initialize_objc_language): Add declaration.
3680 (find_implementation_from_class): Make static.
3681 (find_implementation): Make static.
3682 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3683 * objc-lang.h (lookup_struct_typedef): Add declaration.
3684 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3685 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3686 (do_restore_user_call_depth): Make static.
3687 (do_restore_instream_cleanup): Delete declaration.
3688 (dont_repeat): Delete declaration.
3689 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3690 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3691 * reggroups.c (_initialize_reggroup): Add declaration.
3692 * cp-support.c (_initialize_cp_support): Add declaration.
3693 * cp-abi.c (_initialize_cp_abi): Add declaration.
3694 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3695 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3696 (_initialize_gnu_v3_abi): Add declaration.
3697 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3698 (_initialize_gnu_v2_abi): Add declaration.
3699 * frame-base.c (_initialize_frame_base): Add declaration.
3700 * doublest.c (floatformat_from_length): Make static.
3701 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3702 * frame.c (create_sentinel_frame): Make static.
3703 (_initialize_frame): Add declaration.
3704 * top.c (do_catch_errors): Make static.
3705 (gdb_rl_operate_and_get_next_completion): Make static.
3706 * typeprint.c: Include "typeprint.h".
3707 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3708 (sentinel_frame_this_id): Make static.
3709 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3710 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3711 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3712 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3713 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3714 * maint.c (maintenance_print_architecture): Make static.
3715 * signals/signals.c (_initialize_signals): Add declaration.
3716 * std-regs.c (_initialize_frame_reg): Add declaration.
3717 * jv-exp.y (push_variable): ISO C definition.
3718 (push_qualified_expression_name): Ditto.
3719 * memattr.c (_initialize_mem): Add declaration.
3720 * remote.c (remote_check_watch_resources): Make static.
3721 (remote_stopped_by_watchpoint): Make static.
3722 (remote_stopped_data_address): Make static.
3723 * d10v-tdep.c (nr_dmap_regs): Make static.
3724 (a0_regnum): Make static.
3725 (d10v_frame_unwind_cache): Make static.
3726 (d10v_frame_p): Make static.
3727 * osabi.c (show_osabi): Make static.
3728 (_initialize_gdb_osabi): Add extern declaration.
3729 * gdbtypes.c (make_qualified_type): Make static.
3730 (safe_parse_type): Make static.
3731 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3732 * macrotab.c (macro_bcache_free): Make static.
3733 * interps.c (interp_set_quiet): Make static.
3734 (interpreter_exec_cmd): Make static.
3735 * stack.h (select_frame_command): New file.
3736 * stack.c: Include "stack.h".
3737 (select_frame_command_wrapper): Delete function.
3738 (select_frame_command): Make global.
3739 * infcall.c: Include "infcall.h".
3740 * linespec.c: Include "linespec.h".
3741 * symfile.c (sections_overlap): Make static.
3742 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3743 * charset.c (_initialize_charset): Add missing prototype.
3744 * regcache.c (init_legacy_regcache_descr): Make static.
3745 (do_regcache_xfree): Make static.
3746 (regcache_xfer_part): Make static.
3747 (_initialize_regcache): Add missing prototype.
3748 * breakpoint.c (parse_breakpoint_sals): Make static.
3749 (breakpoint_sals_to_pc): Make static.
3750 * interps.h (clear_interpreter_hooks): ISO C declaration.
3751 * Makefile.in (stack_h): Define.
3752 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3753 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3754
3755 2003-06-08 Andrew Cagney <cagney@redhat.com>
3756
3757 * Makefile.in (d10v-tdep.o): Update dependencies.
3758 (SFILES): Add trad-frame.c.
3759 (trad_frame_h): Define.
3760 (COMMON_OBS): Add trad-frame.o.
3761 (trad-frame.o): Specify dependencies.
3762 * d10v-tdep.c: Include "trad-frame.h".
3763 (saved_regs_unwinder): Delete function.
3764 (d10v_frame_prev_register): Use trad_frame_prev_register.
3765 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3766 trad_frame", delete "regs" and "prev_sp".
3767 (prologue_find_regs): Use trad-frame.
3768 * trad-frame.h, trad-frame.c: New files.
3769
3770 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3771
3772 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3773
3774 2003-06-07 Adam Fedor <fedor@gnu.org>
3775
3776 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3777 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3778 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3779 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3780 resolve_msgsend_super, resolve_msgsend_super_stret):
3781 Use it.
3782
3783 2003-06-07 Andrew Cagney <cagney@redhat.com>
3784
3785 * symfile.h: Re-indent, clean up comments.
3786
3787 2003-06-07 Andrew Cagney <cagney@redhat.com>
3788
3789 * inferior.h (deprecated_write_sp): Replace
3790 generic_target_write_sp.
3791 * regcache.c (deprecated_write_sp): Replace
3792 generic_target_write_sp.
3793 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3794 * vax-tdep.c (vax_gdbarch_init): Update.
3795 * v850-tdep.c (v850_gdbarch_init): Update.
3796 * sparc-tdep.c (sparc_gdbarch_init): Update.
3797 * sh-tdep.c (sh_gdbarch_init): Update.
3798 * s390-tdep.c (s390_gdbarch_init): Update.
3799 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3800 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3801 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3802 * mcore-tdep.c (mcore_gdbarch_init): Update.
3803 * m68k-tdep.c (m68k_gdbarch_init): Update.
3804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3805 * ia64-tdep.c (ia64_gdbarch_init): Update.
3806 * h8300-tdep.c (h8300_gdbarch_init): Update.
3807 * frv-tdep.c (frv_gdbarch_init): Update.
3808 * cris-tdep.c (cris_gdbarch_init): Update.
3809 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3810
3811 2003-06-07 Andrew Cagney <cagney@redhat.com>
3812
3813 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3814 Assert that PC_REGNUM is valid.
3815 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3816
3817 2003-06-07 Andrew Cagney <cagney@redhat.com>
3818
3819 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3820 * gdbarch.h, gdbarch.c: Regenerate.
3821 * mn10300-tdep.c: Include "gdb_assert.h".
3822 (mn10300_read_fp): New function.
3823 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3824 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3825 * ia64-tdep.c: Include "gdb_assert.h".
3826 (ia64_read_fp): New function.
3827 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3828 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3829 * regcache.c (generic_target_read_sp): Delete function.
3830 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3831 * inferior.h (generic_target_read_sp): Delete declaration.
3832 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3833 generic_target_read_sp.
3834 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3835 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3836 * sh-tdep.c (sh_gdbarch_init): Ditto.
3837 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3838 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3839
3840 2003-06-07 Andrew Cagney <cagney@redhat.com>
3841
3842 * gdbarch.sh: Comment each field of startup_gdbarch.
3843 * gdbarch.h, gdbarch.c: Re-generate.
3844
3845 2003-06-07 Andrew Cagney <cagney@redhat.com>
3846
3847 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3848 * gdbarch.h, gdbarch.c: Re-generate.
3849 * regcache.c: Update comments on read_pc et.al.
3850 (generic_target_read_pc): Delete function.
3851 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3852 * inferior.h (generic_target_read_pc): Delete declaration.
3853 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3854 generic_target_read_pc.
3855 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3856 * sh-tdep.c (sh_gdbarch_init): Ditto.
3857 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3858 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3859
3860 2003-06-07 Andrew Cagney <cagney@redhat.com>
3861
3862 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3863 "index" with "special_local_sect". Use strcmp instead of STREQ.
3864 Append period to coments.
3865
3866 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3867
3868 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3869 (elfstab_offset_sections): Likewise.
3870 * gdb-stabs.h (stab_section_info): Likewise.
3871 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3872 * objfiles.c (objfile_relocate): Likewise.
3873 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3874 * remote.c (get_offsets): Likewise.
3875 (remote_cisco_objfile_relocate): Likewise.
3876 * somread.c (som_symfile_offsets): Likewise.
3877 * symfile.c (alloc_section_addr_info): New function.
3878 (build_section_addr_info_from_section_tab): Use it.
3879 (free_section_addr_info): Adjust.
3880 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3881 (syms_from_objfile): Allocate local_addr dynamically.
3882 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3883 dynamically.
3884 (add_symbol_file_command): Allocate sect_opts dynamically.
3885 (reread_symbols): Avoid use of SECT_OFF_MAX.
3886 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3887 (alloc_section_addr_info): Declare it.
3888 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3889 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3890 dynamically.
3891 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3892
3893 2003-06-06 Andrew Cagney <cagney@redhat.com>
3894
3895 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3896 (d10v_frame_unwind_cache): Do not set "return_pc".
3897
3898 2003-06-06 Michael Snyder <msnyder@redhat.com>
3899
3900 * h8300-tdep.c: Make tidy (long lines).
3901
3902 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3903
3904 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3905 to regcache_collect().
3906
3907 2003-06-05 J. Brobecker <brobecker@gnat.com>
3908
3909 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3910 pc_in_sigtramp multiarch method.
3911 (hppa_hpux_som_init_abi): Use it.
3912 (hppa_hpux_elf_init_abi): Likewise.
3913 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3914 macro has been multiarched.
3915 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3916 macro here, as hppa64 isn't multiarched yet.
3917
3918 2003-06-05 Andrew Cagney <cagney@redhat.com>
3919
3920 * Makefile.in (value_h): Add $(frame_h).
3921 * value.h: Include "frame.h".
3922 (struct value): Replace "frame_addr" with "frame_id".
3923 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3924 * values.c (allocate_value): Use VALUE_FRAME_ID.
3925 (value_copy): Use VALUE_FRAME_ID.
3926 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3927 * valops.c (value_assign): Update. Use frame_find_by_id.
3928
3929 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3930
3931 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3932 in each pass.
3933
3934 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3935
3936 * thread-db.c (check_event): For create/death event breakpoints,
3937 loop through all messages to ensure that we read the message
3938 corresponding to the breakpoint we are at.
3939
3940 2003-06-04 Michael Snyder <msnyder@redhat.com>
3941
3942 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3943
3944 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3945
3946 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3947 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3948 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3949 when handling .eh_frame sections.
3950
3951 2003-06-04 J. Brobecker <brobecker@gnat.com>
3952
3953 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3954 prepare_to_proceed procedure instead of the hppa-specific one.
3955 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3956
3957 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3958
3959 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3960 * config.in: Regenerated.
3961 * configure.in: Add test for syscall function and check for
3962 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3963 * configure: Regenerated.
3964 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3965 <sys/syscall.h>.
3966 (kill_lwp): New function that uses tkill syscall or
3967 uses kill, depending on whether threading model is nptl or not.
3968 All callers of kill() changed to use kill_lwp().
3969 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3970 see if all threads have already exited in the nptl model.
3971 (stop_and_resume_callback): New callback function used by the
3972 lin_lwp_wait thread exit handling code.
3973 (stop_wait_callback): Check for threads already having exited and
3974 delete such threads fromt the lwp list when discovered.
3975 (stop_callback): Don't assert retcode of kill call.
3976
3977 Roland McGrath <roland@redhat.com>
3978 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3979 nptl libthread_db.
3980
3981 2003-06-03 Richard Henderson <rth@redhat.com>
3982
3983 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3984 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3985 (alpha_sigtramp_frame_prev_register): Likewise.
3986 (alpha_heuristic_frame_prev_register): Likewise.
3987 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3988
3989 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3990 alpha-specific register id names.
3991 (alpha_mdebug_frame_unwind_cache): Likewise.
3992 (alpha_mdebug_frame_prev_register): Likewise.
3993
3994 2003-06-03 Richard Henderson <rth@redhat.com>
3995
3996 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3997 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3998 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3999 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4000 unwind routines.
4001 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4002 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4003 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4004
4005 * alpha-linux-tdep.c: Remove unnecessary includes.
4006 * Makefile.in (alpha-linux-tdep.o): Update.
4007
4008 2003-06-03 Richard Henderson <rth@redhat.com>
4009
4010 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4011 (alphabsd_fill_fpreg): Likewise.
4012
4013 2003-06-03 J. Brobecker <brobecker@gnat.com>
4014
4015 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4016 references to struct frame_info fields by calls to the equivalent
4017 accessors. Necessary now that frame_info is opaque.
4018
4019 2003-06-03 J. Brobecker <brobecker@gnat.com>
4020
4021 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4022 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4023 structure, field no longer exists.
4024
4025 2003-06-03 J. Brobecker <brobecker@gnat.com>
4026
4027 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4028 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4029
4030 2003-06-03 J. Brobecker <brobecker@gnat.com>
4031
4032 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4033 references to struct frame_info fields by calls to the equivalent
4034 accessors. Necessary now that frame_info is opaque.
4035
4036 2003-06-03 J. Brobecker <brobecker@gnat.com>
4037
4038 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4039 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4040 structure, field no longer exists.
4041
4042 2003-06-03 Theodore A. Roth <troth@openavr.org>
4043
4044 * remote.c (init_remote_state): Compute sizeof_g_packet by
4045 accumulation of the size of all registers instead of blindly using
4046 DEPRECATED_REGISTER_BYTES.
4047
4048 2003-06-03 Michael Snyder <msnyder@redhat.com>
4049
4050 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4051 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4052 for h8300sx.
4053
4054 2003-06-03 J. Brobecker <brobecker@gnat.com>
4055
4056 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4057 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4058
4059 2003-06-03 Andrew Cagney <cagney@redhat.com>
4060
4061 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4062 (sparc_convert_to_raw): Delete function.
4063 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4064 register_convert_to_virtual.
4065
4066 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4067
4068 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4069 layer if not dealing with a statically-linked threaded program.
4070
4071 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4072
4073 * solib.c (solib_open): Update comment to reflect actual search order.
4074
4075 2003-06-03 Andrew Cagney <cagney@redhat.com>
4076
4077 * frame.c (get_frame_memory_signed): New function.
4078 (get_frame_memory, get_frame_memory_unsigned): New function.
4079 (get_frame_arch): New function.
4080 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4081 (get_frame_memory, get_frame_unsigned_memory): Declare.
4082 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4083 get_frame_memory_unsigned and get_frame_arch.
4084 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4085
4086 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4087
4088 * MAINTAINERS (write after approval): Add myself.
4089
4090 2003-06-03 Jim Blandy <jimb@redhat.com>
4091
4092 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4093 elements of gregset_t are 64 bits each, but access registers
4094 are still 32 bits, so they're packed two per gregset_t
4095 element. Unpack/pack them properly.
4096
4097 2003-06-02 David Carlton <carlton@bactrian.org>
4098
4099 * linespec.c (find_methods): Break out code into
4100 add_matching_methods and add_constructors.
4101 (add_matching_methods): New.
4102 (add_constructors): Ditto.
4103
4104 2003-06-02 Andrew Cagney <cagney@redhat.com>
4105
4106 * sparc-tdep.c (sparc_print_registers): Delete call to
4107 REGISTER_CONVERTIBLE.
4108 (sparc_gdbarch_init): Do not set register_convertible.
4109 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4110 * frv-tdep.c (frv_gdbarch_init): Ditto.
4111 * cris-tdep.c (cris_gdbarch_init): Ditto.
4112
4113 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4114
4115 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4116 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4117 (syms_from_objfile): Ditto.
4118
4119 2003-06-03 Andreas Schwab <schwab@suse.de>
4120
4121 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4122 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4123
4124 2003-06-02 Richard Henderson <rth@redhat.com>
4125
4126 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4127 a member of all_reggroup.
4128
4129 2003-06-02 Richard Henderson <rth@redhat.com>
4130
4131 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4132 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4133 (alpha_lds, alpha_sts): New.
4134 (alpha_convert_register_p): Change from _register_convertible.
4135 (alpha_register_to_value): Change from _convert_to_virtual;
4136 restructure and fail for type sizes other than 4 or 8.
4137 (alpha_value_to_register): Similarly.
4138 (alpha_extract_return_value): Use alpha_sts.
4139 (alpha_store_return_value): Use alpha_lds.
4140 (alpha_gdbarch_init): Update hooks.
4141
4142 2003-06-02 Richard Henderson <rth@redhat.com>
4143
4144 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4145 regnum identifiers.
4146 (alpha_sigtramp_register_address): Likewise.
4147
4148 2003-06-02 Richard Henderson <rth@redhat.com>
4149
4150 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4151 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4152 * alpha-tdep.h: Declare them.
4153
4154 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4155 Remove zerobuf. Don't error on UNIQUE.
4156 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4157 (ALPHA_REGSET_UNIQUE): Provide default.
4158 (supply_gregset): Use alpha_supply_int_regs.
4159 (fill_gregset): Use alpha_fill_int_regs.
4160 (supply_fpregset): Use alpha_supply_fp_regs.
4161 (fill_fpregset): Use alpha_fill_fp_regs.
4162 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4163 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4164 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4165 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4166 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4167 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4168
4169 2003-06-02 Richard Henderson <rth@redhat.com>
4170
4171 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4172
4173 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4174 (alpha_store_return_value): Likewise.
4175
4176 2003-06-02 David Carlton <carlton@math.stanford.edu>
4177
4178 * block.c (contained_in): Add 'const' to arguments.
4179 (block_function): Ditto.
4180 * block.h: Update declarations for block_function and
4181 contained_in.
4182
4183 2003-06-02 David Carlton <carlton@math.stanford.edu>
4184
4185 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4186 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4187 * p-valprint.c (pascal_val_print): Ditto.
4188 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4189
4190 2003-06-02 Richard Henderson <rth@redhat.com>
4191
4192 * alpha-tdep.c (alpha_push_dummy_call): Use
4193 builtin_type_ieee_double_little instead of builtin_type_double.
4194
4195 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4196 sign-extension of 32-bit values.
4197 (alpha_store_return_value): Similarly.
4198
4199 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4200 (alpha_extract_return_value): Likewise.
4201 (alpha_store_return_value): Likewise.
4202
4203 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4204 (alpha_store_return_value): Error on IEEE Quad floats.
4205
4206 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4207 (alpha_extract_struct_value_address): Likewise.
4208 (alpha_store_return_value): Likewise.
4209 (alpha_store_struct_return): Remove.
4210 (alpha_gdbarch_init): Update hook registration to match.
4211
4212 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4213 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4214 macros where appropriate.
4215 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4216 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4217
4218 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4219 for SP, GP; void_func_ptr for PC; non-language-specific types
4220 for all others.
4221 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4222
4223 2003-06-02 Richard Henderson <rth@redhat.com>
4224
4225 * top.h (lim_at_start): Declare.
4226 * main.c (captured_main): Set it.
4227 * top.c (lim_at_start): Define.
4228 (command_loop): Use it instead of &environ.
4229 * event-top.c (command_handler): Likewise.
4230
4231 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4232
4233 * mipsnbsd-tdep.c: Update copyright years.
4234 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4235
4236 2003-06-01 Richard Henderson <rth@redhat.com>
4237
4238 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4239 (alpha-linux-tdep.o): Update dependencies.
4240 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4241 * alpha-mdebug-tdep.c: Remove unneeded includes.
4242
4243 2003-06-01 Richard Henderson <rth@redhat.com>
4244
4245 * alpha-tdep.c (alpha_register_reggroup_p): New.
4246 (alpha_gdbarch_init): Register it.
4247
4248 2003-06-02 Andrew Cagney <cagney@redhat.com>
4249
4250 * dwarfread.c: Eliminate "register"
4251 (decode_die_type): Eliminate assignment within "if".
4252 (struct_type, decode_array_element_type): Ditto.
4253 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4254 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4255 (decode_modified_type, completedieinfo): Ditto.
4256 * block.c: Eliminate "register".
4257 (blockvector_for_pc_sect): Eliminate assignment within "if".
4258 * cp-support.h (struct symbol): Opaque declaration.
4259 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4260
4261 2003-06-01 Richard Henderson <rth@redhat.com>
4262
4263 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4264 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4265
4266 2003-06-01 Adam Fedor <fedor@gnu.org>
4267
4268 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4269 * gdbarch.[ch]: Regenerate.
4270 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4271 (hppa_gdbarch_init): Set it in the gdbarch vector.
4272 * i386-tdep.c (i386_fetch_pointer_argument): New
4273 (i386_gdbarch_init): Set it into gdbarch.
4274 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4275 (rs6000_gdbarch_init): Set it in gdbarch.
4276 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4277 (sparc_gdbarch_init): Set it in gdbarch.
4278
4279 2003-06-01 Andrew Cagney <cagney@redhat.com>
4280
4281 * defs.h (extract_address): Delete declaration.
4282 * findvar.c (extract_address): Delete function.
4283 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4284 extract_address with the inline equivalent,
4285 extract_unsigned_integer.
4286 (xstormy16_extract_struct_value_address): Ditto.
4287 (xstormy16_pointer_to_address): Ditto.
4288 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4289 * v850-tdep.c (v850_push_arguments): Ditto.
4290 (v850_extract_return_value): Ditto.
4291 (v850_extract_struct_value_address): Ditto.
4292 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4293 (sparcnbsd_get_longjmp_target_64): Ditto.
4294 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4295 (get_longjmp_target): Ditto.
4296 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4297 (sh64_extract_struct_value_address): Ditto.
4298 (sh_push_arguments): Ditto.
4299 (sh64_push_arguments): Ditto.
4300 * remote-vxsparc.c (vx_read_register): Ditto.
4301 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4302 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4303 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4304 * mipsv4-nat.c (get_longjmp_target): Ditto.
4305 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4306 * mips-nat.c (get_longjmp_target): Ditto.
4307 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4308 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4309 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4310 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4311 * irix5-nat.c (get_longjmp_target): Ditto.
4312 * irix4-nat.c (get_longjmp_target): Ditto.
4313 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4314 (ia64_push_arguments): Ditto.
4315 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4316 * h8300-tdep.c (h8300_push_arguments): Ditto.
4317 (h8300_store_return_value): Ditto.
4318 (h8300_extract_struct_value_address): Ditto.
4319 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4320 (frv_push_arguments): Ditto.
4321 * avr-tdep.c (avr_pointer_to_address): Ditto.
4322 (avr_push_arguments): Ditto.
4323 * arm-tdep.c (arm_push_dummy_call): Ditto.
4324 (arm_get_longjmp_target): Ditto.
4325 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4326 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4327 (alpha_get_longjmp_target): Ditto.
4328
4329 * solib-irix.c (extract_mips_address): Inline extract_address,
4330 replacing it with extract_signed_integer.
4331 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4332 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4333 (first_link_map_member, open_symbol_file_object): Ditto.
4334 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4335 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4336 (LM_NEXT, LM_NAME): Ditto.
4337
4338 2003-06-01 Richard Henderson <rth@redhat.com>
4339
4340 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4341 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4342 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4343 (alpha_cannot_store_register): Likewise.
4344 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4345 * alpha-nat.c (supply_gregset): Likewise.
4346 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4347
4348 2003-06-01 Andrew Cagney <cagney@redhat.com>
4349
4350 * infcall.c (call_function_by_hand): Update comment on
4351 DEPRECATED_DUMMY_WRITE_SP.
4352
4353 * mips-tdep.c (mips_gdbarch_init): Do not set
4354 deprecated_dummy_write_sp.
4355 (mips_eabi_push_dummy_call): Set the SP register.
4356 (mips_o64_push_dummy_call): Set the SP register.
4357 (mips_o32_push_dummy_call): Set the SP register.
4358 (mips_n32n64_push_dummy_call): Set the SP register.
4359
4360 2003-06-01 Richard Henderson <rth@redhat.com>
4361
4362 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4363 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4364 (supply_gregset): Likewise.
4365 * alpha-tdep.c (alpha_store_return_value): Likewise.
4366 (alpha_get_longjmp_target): Likewise.
4367 (alpha_register_name): Constify array.
4368 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4369 deprecated_register_size, deprecated_register_bytes,
4370 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4371 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4372 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4373
4374 2003-06-01 Richard Henderson <rth@redhat.com>
4375
4376 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4377 from arg_reg_buffer to regcache to avoid double conversion.
4378
4379 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4380
4381 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4382 SP_REGNUM.
4383 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4384 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4385
4386 2003-06-01 Richard Henderson <rth@redhat.com>
4387
4388 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4389 (decode_frame_entry): Set it. Skip FDE augmentation.
4390
4391 2003-06-01 Richard Henderson <rth@redhat.com>
4392
4393 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4394 not overlapping PC_REGNUM.
4395
4396 2003-06-01 Richard Henderson <rth@redhat.com>
4397
4398 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4399 alpha_push_arguments. Don't dump argument register data to
4400 the target stack. Fix float and 128-bit long double semantics.
4401 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4402 (alpha_fix_call_dummy): Remove.
4403 (alpha_call_dummy_words): Remove.
4404 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4405
4406 2003-06-01 Richard Henderson <rth@redhat.com>
4407
4408 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4409
4410 2003-06-01 Andrew Cagney <cagney@redhat.com>
4411
4412 * mips-tdep.c (is_mips16_addr): New function.
4413 (make_mips16_addr, unmake_mips16_addr): New functions.
4414 (pc_is_mips16, mips_fetch_instruction): Use.
4415 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4416 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4417 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4418 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4419 TARGET_MIPS.
4420 * config/mips/tm-mips.h: Update copyright.
4421 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4422 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4423 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4424 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4425 (TM_PRINT_INSN_MACH): Delete.
4426 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4427
4428 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4429 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4430 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4431 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4432 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4433 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4434 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4435 mips*-*-riscos* and mips*-*-sysv* onto mips.
4436 * config/mips/mips64.mt: New file.
4437 * config/mips/mips.mt: New file.
4438 * config/mips/littlemips.mt: Delete file.
4439 * config/mips/decstation.mt: Delete file.
4440 * config/mips/vr4300el.mt: Delete file.
4441 * config/mips/vr5000el.mt: Delete file.
4442 * config/mips/vr5000.mt: Delete file.
4443 * config/mips/vr4100.mt: Delete file.
4444 * config/mips/vr4xxxel.mt: Delete file.
4445 * config/mips/vr4300.mt: Delete file.
4446 * config/mips/vr4xxx.mt: Delete file.
4447 * config/mips/bigmips.mt: Delete file.
4448 * config/mips/bigmips64.mt: Delete file.
4449 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4450 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4451 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4452 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4453 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4454 "tm-bigmips.h".
4455 * config/mips/tm-irix3.h: Ditto.
4456 * config/mips/tm-mipsv4.h: Ditto.
4457 * config/mips/tm-embed.h: Ditto.
4458 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4459 "tm-bigmips64.h".
4460 * config/mips/tm-vr5000el.h: Delete file.
4461 * config/mips/tm-tx39l.h: Delete file.
4462 * config/mips/tm-vr4300el.h: Delete file.
4463 * config/mips/tm-vr4xxxel.h: Delete file.
4464 * config/mips/tm-vr4300.h: Delete file.
4465 * config/mips/tm-vr4100.h: Delete file.
4466 * config/mips/tm-vr4xxx.h: Delete file.
4467 * config/mips/tm-vr5000.h: Delete file.
4468 * config/mips/tm-embedl64.h: Delete file.
4469 * config/mips/tm-embedl.h: Delete file.
4470 * config/mips/tm-embed64.h: Delete file.
4471 * config/mips/tm-bigmips64.h: Delete file.
4472 * config/mips/tm-bigmips.h: Delete file.
4473
4474 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4475
4476 Fix gdb/1216.
4477 * shnbsd-nat.c: Include "sh-tdep.h".
4478
4479 From Richard Henderson <rth@redhat.com>:
4480 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4481
4482 2003-05-31 Andrew Cagney <cagney@redhat.com>
4483
4484 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4485 forward declaration.
4486 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4487 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4488 (mips_find_saved_regs): Use set_reg_offset.
4489 (mips_frame_init_saved_regs): Delete function.
4490 (mips_pop_frame): Call mips_find_saved_regs instead of
4491 DEPRECATED_FRAME_INIT_SAVED_REGS.
4492
4493 2003-05-31 Andrew Cagney <cagney@redhat.com>
4494
4495 * mips-tdep.c (mips_gdbarch_init): Do not set
4496 deprecated_max_register_raw_size, register_virtual_size, and
4497 deprecated_max_register_virtual_size.
4498
4499 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4500
4501 * i386-tdep.c: Include "dwarf2-frame.h".
4502 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4503 * Makefile.in (i386-tdep.o): Update dependencies.
4504
4505 * dwarf2-frame.c, dwarf2-frame.h: New files.
4506 * Makefile.in (SFILES): Add dwarf2-frame.c.
4507 (dwarf2_frame_h): Define.
4508 (COMMON_OBS): Add dwarf2-frame.o.
4509 (dwarf2-frame.o): Add dependencies.
4510
4511 2003-05-31 Andreas Jaeger <aj@suse.de>
4512
4513 * x86-64-linux-nat.c: Fix comment.
4514
4515 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4516
4517 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4518 function signature.
4519
4520 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4521 have a sigcontext_addr handler.
4522 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4523 sigcontext_addr handler.
4524
4525 2003-05-31 Andrew Cagney <cagney@redhat.com>
4526
4527 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4528 (print_fp_register_row): Replace do_fp_register_row.
4529 (mips_print_fp_register): Add "file" and "frame" parameters.
4530 (mips_print_register): Add "file" and "frame" parameters.
4531 (mips_print_registers_info): Replace mips_do_registers_info.
4532 (mips_gdbarch_init): Set print_registers_info instead of
4533 deprecated_do_registers_info.
4534 (mips_read_fp_register_single): Add "frame" parameter.
4535 (mips_read_fp_register_double): Add "frame" parameter.
4536
4537 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4538
4539 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4540 Fixes a bug where GDB would print the wrong register names for
4541 targets without SSE.
4542
4543 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4544 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4545 registers.
4546
4547 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4548 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4549 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4550 TDEP->sc_sp_offset.
4551
4552 From Michal Ludvig <mludvig@suse.cz>:
4553 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4554 and `sc_num_regs'.
4555 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4556 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4557 I386_ST0_REGNUM): Move here from...
4558 * i386-tdep.c: ... here.
4559 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4560 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4561 registers if possible.
4562 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4563 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4564 Remove variables.
4565 (i386bsd_sc_reg_offset): New variable.
4566 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4567 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4568 TDEP->sc_sp_offset.
4569 (i386fbsd_sc_reg_offset): New variable.
4570 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4571 TDEP->sc_num_regs.
4572 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4573 variables.
4574 (i386fbsd4_sc_reg_offset): New variable.
4575 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4576 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4577 TDEP->sc_sp_offset.
4578 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4579 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4580 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4581 Remove variables.
4582 (i386nbsd_sc_reg_offset): New variable.
4583 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4584 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4585 TDEP->sc_sp_offset.
4586 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4587 Remove variables.
4588 (i386obsd_sc_reg_offset): New variable.
4589 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4590 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4591 TDEP->sc_sp_offset.
4592 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4593 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4594 for frame pointer offset in `struct sigcontext'.
4595
4596 2003-05-31 Andrew Cagney <cagney@redhat.com>
4597
4598 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4599 architecture methods call_dummy_words, sizeof_call_dummy_words,
4600 push_return_address, store_struct_return, and fix_call_dummy. Set
4601 push_dummy_call instead of deprecated_push_arguments.
4602 (mips_store_struct_return): Delete function.
4603 (mips_fix_call_dummy): Delete function.
4604 (mips_push_return_address): Delete function.
4605 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4606 RA_REGNUM and T9_REGNUM.
4607 (mips_n32n64_push_dummy_call): Ditto for
4608 mips_n32n64_push_arguments.
4609 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4610 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4611
4612 2003-05-31 Andrew Cagney <cagney@redhat.com>
4613
4614 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4615 "dummy_addr" to "bp_addr".
4616 * infcall.c (call_function_by_hand): Pass "funaddr" to
4617 gdbarch_push_dummy_call.
4618 * gdbarch.h, gdbarch.c: Re-generate.
4619 * i386-tdep.c (i386_push_dummy_call): Update.
4620 * arm-tdep.c (arm_push_dummy_call): Update.
4621 * d10v-tdep.c (d10v_push_dummy_call): Update.
4622
4623 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4624
4625 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4626 variable declarations.
4627 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4628 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4629 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4630 x86_64_init_frame_pc, x86_64_init_frame_pc,
4631 x86_64_function_has_prologue): Remove prototypes.
4632 (X86_64_NUM_GREGS): New define.
4633 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4634 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4635 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4636 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4637 XMM1_REGNUM): Remove defines.
4638 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4639 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4640 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4641 X86_64_XMM1_REGNUM): New defines.
4642 (struct x86_64_register_info): Renamed from `struct
4643 register_info'. Remove `size' member.
4644 (x86_64_register_info_table): Remove variable.
4645 (x86_64_register_info): New variable.
4646 (X86_64_NUM_REGS): New define.
4647 (X86_64_NUM_GREGS): Remove define.
4648 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4649 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4650 Remove variables.
4651 (x86_54_dwarf2_reg_to_regnum): Remove function.
4652 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4653 (x86_64_dwarf_reg_to_regnum): New function.
4654 (x86_64_register_name): Rewrite.
4655 (x86_64_register_raw_size): Remove function.
4656 (x86_64_register_byte_table): Remove variable.
4657 (x86_64_register_byte): Remove function.
4658 (x86_64_register_virtual_type): Remove function.
4659 (x86_64_register_type): New function.
4660 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4661 x86_64_register_convert_to_raw): Remove functions.
4662 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4663 (x86_64_use_struct_convention): Make static. Adjust for renamed
4664 defines.
4665 (x86_64_frame_init_saved_regs): Remove function.
4666 (x86_64_push_arguments): Make static. Change to accept a regcache
4667 as argument.
4668 (x86_64_store_return_value, x86_64_extract_return_value): Make
4669 static. Rewrite based on i386 counterparts.
4670 (x86_64_push_dummy_call): New function.
4671 (X86_64_NUM_SAVED_REGS): New define.
4672 (x86_64_register_number): Remove function.
4673 (x86_64_store_struct_return): Remove function.
4674 (x86_64_frameless_function_invocation,
4675 x86_64_function_has_prologue): Remove functions.
4676 (PROLOG_BUFSIZE): Remove define.
4677 (struct x86_64_frame_cache): New structure.
4678 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4679 x86_64_frame_cache, x86_64_frame_this_id,
4680 x86_64_frame_prev_register, x86_64_frame_p,
4681 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4682 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4683 functions.
4684 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4685 variables.
4686 (x86_64_skip_prologue): Rewrite in terms of
4687 x86_64_analyze_prologue.
4688 (x86_64_frame_base_address): New function.
4689 (x86_64_frame_base): New variable.
4690 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4691 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4692 set deprecated_fp_regnum, deprecated_register_size,
4693 deprecated_register_bytes, register_raw_size, register_byte,
4694 register_virtual_type, register_convertiable,
4695 register_convert_to_virtual, convert_to_raw,
4696 deprecated_get_saved_register, deprecated_target_read_fp,
4697 deprecated_push_arguments, deprecated_push_return_address,
4698 deprecated_pop_frame, deprecated_store_struct_return,
4699 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4700 frameless_function_invocation, deprecated_frame_saved_pc,
4701 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4702 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4703 deprecated_init_frame_pc and virtual_frame_pointer. Call
4704 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4705 and x86_64_frame_p. Call frame_base_set_default to register
4706 x86_64_frame_base.
4707 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4708 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4709 (_initialize_x86_64_tdep): Remove function.
4710 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4711 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4712 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4713 define.
4714 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4715 (x86_64_linux_sigcontext_addr): Rewrite.
4716 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4717 x86_64_linux_frame_saved_pc): Remove functions.
4718 (x86_64_linux_pc_in_sigtramp): Renamed from
4719 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4720 trampoline.
4721 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4722 Remove_functions.
4723 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4724 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4725 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4726 (x86_64_regmap): Rename to regmap.
4727 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4728 x86_64_num_gregs.
4729 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4730 x86_64_regmap.
4731 (x86_64_fxsave_offset): Remove function.
4732 (supply_fpregset): Simply call x86_64_supply_fxsave.
4733 (fill_fpregset): Simply call x86_64_fill_fxsave.
4734 (fetch_inferior_registers, store_inferior_registers): Avoid
4735 asignment in if-statement.
4736 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4737 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4738 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4739 (fetch_core_registers): Remove function.
4740 (linux_elf_core_fns): Remove.
4741 (offsetoff): Don't define.
4742 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4743 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4744 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4745 add core-regset.o.
4746 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4747 protection against multiple includes instead of NM_X86_64_h. Add
4748 various comments. Include "config/nm-linux.h". Don't include
4749 <signal.h>.
4750 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4751 GET_THREAD_SIGNALS): Remove defines.
4752 (x86_64_register_u_addr, kernel_u_size,
4753 lin_thread_get_thread_signals): Remove prototypes.
4754 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4755 [HAVE_LINK_H]: Don't include "solib.h".
4756 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4757 * config/i386/tm-x86-64linux.h: Fix comments.
4758 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4759 x86-64-tdep.o): Update dependencies.
4760
4761 2003-05-30 Andrew Cagney <cagney@redhat.com>
4762
4763 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4764 Change parameter type to a "struct regcache *".
4765
4766 * gdbarch.sh: Regardless of the multi-arch level, always define
4767 the macro when not already defined.
4768 * gdbarch.h, gdbarch.c: Re-generate.
4769
4770 2003-05-30 Richard Henderson <rth@redhat.com>
4771
4772 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4773 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4774 (alpha_mdebug_frame_this_id): Likewise.
4775 (alpha_mdebug_frame_prev_register): Likewise.
4776 (alpha_mdebug_frame_base_address): Likewise.
4777 (alpha_mdebug_frame_locals_address): Likewise.
4778 (alpha_mdebug_frame_args_address): Likewise.
4779 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4780 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4781 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4782 loop increment.
4783 (alpha_heuristic_frame_this_id): Make static.
4784 (alpha_heuristic_frame_prev_register): Likewise.
4785 (alpha_heuristic_frame_base_address): Likewise.
4786 * alpha-tdep.h: Update.
4787
4788 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4789
4790 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4791 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4792 defenitions.
4793 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4794 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4795 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4796 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4797 I386_ST0_REGNUM): New defines.
4798 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4799 codestream_get): Remove define.
4800 (codestream_next_addr, condestream_addr, condestream_buf,
4801 codestream_off, codestream_cnt): Remove variables.
4802 (codestream_fill, codestream_seek, codestream_read): Remove
4803 functions.
4804 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4805 functionality.
4806 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4807 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4808 i386_frame_saved_pc, i386_saved_pc_after_call,
4809 i386_frame_num_args, i386_frame_init_saved_regs,
4810 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4811 i386_push_arguments): Remove functions.
4812 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4813 functionality. Use i386_analyze_prologue instead of
4814 i386_get_frame_setup.
4815 (I386_NUM_SAVED_REGS): New define.
4816 (struct i386_frame_cache): New structure.
4817 (i386_alloc_frame_cache, i386_analyze_struct_return,
4818 i386_skip_probe, i386_analyze_frame_setup,
4819 i386_analyze_register_saves, i386_analyze_prologue,
4820 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4821 i386_frame_prev_register, i386_sigtramp_frame_cache,
4822 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4823 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4824 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4825 New functions.
4826 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4827 New variables.
4828 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4829 I386_EAX_REGNUM and I386_EDX_REGNUM.
4830 (i386_extract_return_value, i386_store_return_value): Use
4831 I386_ST0_REGNUM where appropriate.
4832 (i386_extract_struct_value_address): Rewrite to use extract_address.
4833 (i386_svr4_pc_in_sigtramp): Add comment.
4834 (i386_svr4_sigcontext_addr): Rewrite.
4835 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4836 TDEP->sc_sp_offset.
4837 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4838 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4839 of new defines. Set push_dummy_call, don't set
4840 deprecated_push_arguments, deprecated_push_return_address,
4841 deprecated_pop_frame. Don't set parm_boundary. Don't set
4842 deprecated_frame_chain, deprecated_frame_saved_pc,
4843 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4844 save_dummy_frame_tos, unwind_pc. Call
4845 frame_unwind_append_predicate and frame_base_set_default. Don't
4846 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4847 Don't set frameless_function_invocation. Don't set
4848 deprecated_register_bytes, deprecated_register_size,
4849 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4850 * i386-linux-tdep.c: Fix formatting in some comments.
4851 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4852 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4853 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4854 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4855 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4856 redundant parentheses.
4857 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4858 (i386_linux_sigcontext_addr): Use it. Rewrite.
4859 (find_minsym_and_objfile): Change name of second argument.
4860 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4861 changed. Use frame_pc_unwind instead of
4862 DEPRECATED_SAVED_PC_AFTER_CALL.
4863 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4864 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4865 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4866 unwinder.
4867 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4868 "dummy-frame.h".
4869 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4870 (_initialize_i386_cygwin_tdep): New prototype.
4871 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4872 deprecated_frame_chain_valid.
4873 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4874 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4875 Rely on the SVR4 defaults.
4876 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4877 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4878
4879 2003-05-30 Andrew Cagney <cagney@redhat.com>
4880
4881 * infcall.c (call_function_by_hand): Always call
4882 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4883
4884 2003-05-30 Richard Henderson <rth@redhat.com>
4885
4886 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4887 increment.
4888
4889 2003-05-29 Jim Blandy <jimb@redhat.com>
4890
4891 Use gdbarch methods for solib stuff on PowerPC Linux.
4892 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4893 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4894 show through.
4895 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4896 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4897 giving the same effect as the #definitions above.
4898
4899 2003-05-29 Adam Fedor <fedor@gnu.org>
4900
4901 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4902 (find_implementation_from_class): Replace it with the standard
4903 case i.e. do nothing.
4904
4905 2003-05-29 Richard Henderson <rth@redhat.com>
4906
4907 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4908 (alpha_linux_sigtramp_offset): Use it. Make static.
4909 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4910 update for new frame model.
4911 * alpha-mdebug-tdep.c: New file.
4912 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4913 (alpha_osf1_init_abi): Install it.
4914 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4915 (linked_proc_desc_table): Remove.
4916 (alpha_frame_past_sigtramp_frame): Remove.
4917 (alpha_dynamic_sigtramp_offset): Remove.
4918 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4919 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4920 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4921 (push_sigtramp_desc): Remove.
4922 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4923 (alpha_cannot_store_register): Likewise.
4924 (alpha_sigcontext_addr): Remove.
4925 (alpha_find_saved_regs): Remove.
4926 (alpha_frame_init_saved_regs): Remove.
4927 (alpha_init_frame_pc_first): Remove.
4928 (read_next_frame_reg): Remove.
4929 (alpha_frame_saved_pc): Remove.
4930 (alpha_saved_pc_after_call): Remove.
4931 (temp_proc_desc, temp_saved_regs): Remove.
4932 (alpha_about_to_return): Remove.
4933 (cached_proc_desc): Remove.
4934 (alpha_frame_chain): Remove.
4935 (alpha_print_extra_frame_info): Remove.
4936 (alpha_init_extra_frame_info): Remove.
4937 (alpha_frame_locals_address): Remove.
4938 (alpha_frame_args_address): Remove.
4939 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4940 (alpha_push_dummy_frame): Remove.
4941 (alpha_pop_frame): Remove.
4942 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4943 (alpha_read_insn): New.
4944 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4945 for different insn encodings.
4946 (alpha_in_lenient_prologue): Remove.
4947 (struct alpha_sigtramp_unwind_cache): New.
4948 (alpha_sigtramp_frame_unwind_cache): New.
4949 (alpha_sigtramp_register_address): New.
4950 (alpha_sigtramp_frame_this_id): New.
4951 (alpha_sigtramp_frame_prev_register): New.
4952 (alpha_sigtramp_frame_unwind): New.
4953 (alpha_sigtramp_frame_p): New.
4954 (struct alpha_heuristic_unwind_cache): New.
4955 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4956 don't count nop insns that occur between functions.
4957 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4958 heuristic_proc_desc, but without the mdebug wrapping.
4959 (alpha_heuristic_frame_this_id): New.
4960 (alpha_heuristic_frame_prev_register): New.
4961 (alpha_heuristic_frame_unwind): New.
4962 (alpha_heuristic_frame_p): New.
4963 (alpha_heuristic_frame_base_address): New.
4964 (alpha_heuristic_frame_base): New.
4965 (alpha_unwind_dummy_id): New.
4966 (alpha_unwind_pc): New.
4967 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4968 frame related deprecated initializations; install replacements.
4969 (alpha_dump_tdep): Remove.
4970 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4971 (alpha_read_insn, alpha_after_prologue,
4972 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4973 alpha_heuristic_frame_prev_register,
4974 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4975 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4976 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4977 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4978
4979 2003-05-29 Andrew Cagney <cagney@redhat.com>
4980
4981 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4982 dependant on the availability of ASSERT_FUNCTION.
4983 (ASSERT_FUNCTION): Do not define when there is no function name.
4984
4985 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4986
4987 From Jimi X <jimix@watson.ibm.com>:
4988 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4989
4990 2003-05-28 Jim Blandy <jimb@redhat.com>
4991
4992 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4993 argument to ptrace to int; the system headers should give it the
4994 right type, and pointers don't fit in ints on powerpc64-*-*.
4995
4996 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4997
4998 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4999 DW_TAG_catch_block.
5000
5001 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5002
5003 * stabsread.c (dbx_lookup_type): Make static.
5004 (read_type): Ditto.
5005 (add_undefined_type): Ditto.
5006 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5007 not export.
5008
5009 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5010
5011 * hpread.c (hpread_has_name): Make static.
5012 (hpread_psymtab_to_symtab): Ditto.
5013 (file_exists): Ditto.
5014 (hpread_call_pxdb): Ditto.
5015 (hpread_pxdb_needed): Ditto.
5016 (hpread_quick_traverse): Ditto.
5017 (hpread_get_header): Ditto.
5018 (hpread_get_lntt): Ditto.
5019 (hpread_get_slt): Ditto.
5020 (class_of): Ditto.
5021
5022 2003-05-25 Andreas Schwab <schwab@suse.de>
5023
5024 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5025 stack_align and deprecated_extra_stack_alignment_needed.
5026 (m68k_stack_align): Delete.
5027
5028 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5029 (m68k_register_virtual_size): Likewise.
5030 (altos_skip_prologue): Remove obsolete function.
5031 (isi_frame_num_args): Likewise.
5032 (news_frame_num_args): Likewise.
5033 (m68k_fix_call_dummy): Make static.
5034 (m68k_push_dummy_frame): Likewise.
5035 (m68k_pop_frame): Likewise.
5036 (m68k_skip_prologue): Likewise.
5037 (m68k_frame_init_saved_regs): Likewise.
5038 (m68k_saved_pc_after_call): Likewise.
5039 (m68k_get_longjmp_target): Make multi-arch.
5040 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5041 structure. Register m68k_get_longjmp_target if enabled.
5042 * m68k-tdep.h (struct gdbarch_tdep): Define.
5043 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5044
5045 * Makefile.in (config.status): Also depend on configure.tgt
5046 and configure.host.
5047 (m68klinux-tdep.o): Update dependencies.
5048 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5049 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5050 (M68K_LINUX_JB_PC): Define.
5051 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5052 and take additional parameter.
5053 (m68k_linux_sigtramp_saved_pc): Update.
5054 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5055 m68k_linux_pc_in_sigtramp, in_plt_section,
5056 find_solib_trampoline_target.
5057 * config/m68k/tm-linux.h: Don't include any tm headers.
5058 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5059 (JB_ELEMENT_SIZE): Likewise.
5060 (JB_PC): Likewise.
5061 (GET_LONGJMP_TARGET): Likewise.
5062 (IN_SIGTRAMP): Likewise.
5063 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5064
5065 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5066
5067 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5068 (sparc32_push_arguments): Re-implement by calling
5069 sparc32_do_push_arguments.
5070
5071 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5072
5073 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5074 SPARC_O1_REGNUM): New defines.
5075 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5076 (sparc32_store_return_value): New function.
5077 (sparc_extract_struct_value_address): Rewrite to operate on a
5078 regcache.
5079 (sparc_gdbarch_init): Don't set
5080 deprecated_extract_struct_value_address. Set
5081 extract_struct_value_address instead. Don't set
5082 deprecated_extract_return_value and deprecated_store_return_value
5083 for 32-bit targets. Set extract_return_value and
5084 store_return_value instead.
5085 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5086 DEPRECTAED_EXTRACT_RETURN_VALUE,
5087 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5088 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5089 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5090 (sparc_store_return_value): Remove prototype.
5091 (sparc32_store_return_value): New prototype.
5092 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5093 Adjust prototypes.
5094
5095 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5096
5097 * sparcnbsd-tdep.c: Include "gdb_string.h".
5098
5099 2003-05-23 Andrew Cagney <cagney@redhat.com>
5100
5101 * p-valprint.c (pascal_val_print): Replace extract_address with
5102 the inline equivalent extract_unsigned_integer.
5103 * jv-valprint.c (java_value_print): Ditto.
5104 * ada-valprint.c (ada_val_print_1): Ditto.
5105 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5106
5107 2003-05-23 Theodore A. Roth <troth@openavr.org>
5108
5109 * blockframe.c (frameless_look_for_prologue): Remove unused
5110 after_prologue variable.
5111
5112 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5113
5114 * blockframe.c (get_pc_function_start): Rewrite to avoid
5115 asignments in if-statements.
5116
5117 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5118
5119 Committed by Elena Zannoni <ezannoni@redhat.com>.
5120 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5121 files, don't relocate absolute symbols (and do use mst_abs).
5122
5123 2003-05-23 Andrew Cagney <cagney@redhat.com>
5124
5125 * objc-lang.c: Include "gdb_assert.h".
5126 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5127 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5128 (gdb_check, gdb_check_fatal): Delete functions.
5129 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5130 gdb_assert.
5131 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5132 * Makefile.in (objc-lang.o): Update dependencies.
5133
5134 2003-05-22 Ian Lance Taylor <ian@airs.com>
5135
5136 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5137 with fprintf_filtered, not fprintf_unfiltered.
5138
5139 2003-05-22 Andrew Cagney <cagney@redhat.com>
5140
5141 * stack.c (frame_info): Inline extract_address, replacing it with
5142 extract_unsigned_integer.
5143 * findvar.c (unsigned_pointer_to_address): Ditto.
5144 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5145 * dwarf2expr.c (dwarf2_read_address): Ditto.
5146 * frame.c (frame_pc_unwind): Update comment.
5147 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5148
5149 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5150
5151 * infptrace.c (detach): Call print_sys_errmsg rather than
5152 perror_with_name to issue warning message when errno is non-zero
5153 after calling ptrace detach.
5154
5155 2003-05-21 J. Brobecker <brobecker@gnat.com>
5156
5157 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5158 macro definitions from here...
5159 * hppa-tdep.c: ...to there.
5160
5161 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5162
5163 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5164 register_ptrace_addr(). Fix all callers.
5165
5166 2003-05-21 Andreas Schwab <schwab@suse.de>
5167
5168 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5169 dependencies.
5170 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5171 end.
5172 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5173 (_initialize_m68k_linux_tdep): New function.
5174 (m68k_linux_frame_saved_pc): Make static.
5175 (m68k_linux_extract_return_value): Likewise.
5176 (m68k_linux_store_return_value): Likewise.
5177 (m68k_linux_extract_struct_value_address): Likewise.
5178 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5179 Remove.
5180 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5181 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5182 (DEPRECATED_FRAME_SAVED_PC): Remove.
5183
5184 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5185
5186 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5187 regset numbering rather than our own.
5188
5189 2003-05-19 David Carlton <carlton@bactrian.org>
5190
5191 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5192
5193 2003-05-19 David Carlton <carlton@bactrian.org>
5194
5195 Partial fix for PR c++/827.
5196 * cp-support.h: Include symtab.h.
5197 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5198 * cp-namespace.c: Update contributors.
5199 (cp_lookup_symbol_nonlocal): New.
5200 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5201 (lookup_symbol_file): Ditto.
5202 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5203 * block.h: Declare block_scope, block_using, block_global_block.
5204 * block.c (block_scope): New.
5205 (block_using, block_global_block): Ditto.
5206 * Makefile.in (cp_support_h): Depend on symtab_h.
5207 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5208
5209 2003-05-19 David Carlton <carlton@bactrian.org>
5210
5211 * language.h (struct language_defn): Add 'la_value_of_this'
5212 and 'la_lookup_symbol_nonlocal' members.
5213 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5214 lookup_symbol_static, lookup_symbol_global,
5215 lookup_symbol_aux_block.
5216 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5217 if we should search fields of this and how to do static/global
5218 lookup.
5219 (lookup_symbol_aux_block): Make extern.
5220 (basic_lookup_symbol_nonlocal): New.
5221 (lookup_symbol_static, lookup_symbol_global): Ditto.
5222 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5223 'la_lookup_symbol_nonlocal' members.
5224 * c-lang.c (c_language_defn, cplus_language_defn)
5225 (asm_language_defn, minimal_language_defn): Ditto.
5226 * jv-lang.c (java_language_defn): Ditto.
5227 * language.c (unknown_language_defn, auto_language_defn)
5228 (local_language_defn): Ditto.
5229 * m2-lang.c (m2_language_defn): Ditto.
5230 * objc-lang.c (objc_language_defn): Ditto.
5231 * scm-lang.c (scm_language_defn): Ditto.
5232 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5233 * p-lang.c (pascal_language_defn): Ditto for both.
5234 * Makefile.in (f-lang.o): Depend on value_h.
5235 (p-lang.o): Ditto.
5236
5237 2003-05-19 David Carlton <carlton@bactrian.org>
5238
5239 * block.h: Declare block_static_block.
5240 * block.c (block_static_block): New.
5241 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5242 lookup_symbol_aux_local, calling block_static_block instead.
5243 (lookup_symbol_aux_local): Delete 'static_block' argument.
5244
5245 2003-05-19 David Carlton <carlton@bactrian.org>
5246
5247 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5248
5249 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5250
5251 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5252 register numbers mapping.
5253
5254 2003-05-18 Adam Fedor <fedor@gnu.org>
5255
5256 * symtab.c (completion_list_objc_symbol): New function.
5257 (make_symbol_completion_list): Use it to add ObjC symbols
5258 when looking though the list.
5259 (language_search_unquoted_string): New function.
5260 (make_file_symbol_completion_list): Use it.
5261
5262 2003-05-18 Andreas Schwab <schwab@suse.de>
5263
5264 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5265 dependencies.
5266 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5267 as m68k_linux_extract_return_value.
5268 (DEPRECATED_STORE_RETURN_VALUE): Define as
5269 m68k_linux_store_return_value.
5270 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5271 m68k_linux_extract_struct_value_address.
5272 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5273 get_next_frame, get_frame_base, get_frame_pc.
5274 (m68k_linux_frame_saved_pc): Use get_frame_base.
5275 (m68k_linux_extract_return_value): New function.
5276 (m68k_linux_store_return_value): New function.
5277 (m68k_linux_extract_struct_value_address): New function.
5278 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5279
5280 * c-exp.y (typebase): Remove duplicate occurence of
5281 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5282 of lookup_signed_typename.
5283
5284 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5285
5286 * dwarf2loc.c (find_location_expression): Change type of second
5287 argument to `size_t *'.
5288 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5289 for size variable.
5290
5291 2003-05-18 David Carlton <carlton@bactrian.org>
5292
5293 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5294 'linkage_name'. Add comment.
5295 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5296 'linkage_name'.
5297 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5298 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5299 (lookup_block_symbol): Ditto.
5300
5301 2003-05-16 Andrew Cagney <cagney@redhat.com>
5302
5303 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5304 * gdbarch.h, gdbarch.c: Re-generate.
5305 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5306 * TODO (REGISTER_BYTES): Delete reference.
5307 * alpha-tdep.c (alpha_gdbarch_init): Update.
5308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5309 * x86-64-tdep.c (x86_64_init_abi): Update.
5310 * vax-tdep.c (vax_gdbarch_init): Update.
5311 * v850-tdep.c (v850_gdbarch_init): Update.
5312 * sparc-tdep.c (sparc_gdbarch_init): Update.
5313 * sh-tdep.c (sh_gdbarch_init): Update.
5314 * s390-tdep.c (s390_gdbarch_init): Update.
5315 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5316 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5317 (ns32k_gdbarch_init_32382): Update.
5318 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5319 * mcore-tdep.c (mcore_gdbarch_init): Update.
5320 * m68k-tdep.c (m68k_gdbarch_init): Update.
5321 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5322 * ia64-tdep.c (ia64_gdbarch_init): Update.
5323 * i386-tdep.c (i386_gdbarch_init): Update.
5324 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5325 * hppa-tdep.c (hppa_gdbarch_init): Update.
5326 * h8300-tdep.c (h8300_gdbarch_init): Update.
5327 * frv-tdep.c (frv_gdbarch_init): Update.
5328 * cris-tdep.c (cris_gdbarch_init): Update.
5329 * avr-tdep.c (avr_gdbarch_init): Update.
5330 * arm-tdep.c (arm_gdbarch_init): Update.
5331 * sparc-tdep.c (sparc_pop_frame): Update.
5332 * rs6000-tdep.c (rs6000_pop_frame): Update.
5333 * remote.c (init_remote_state): Update.
5334 (remote_prepare_to_store): Update.
5335 * remote-vx.c (vx_prepare_to_store): Update.
5336 * remote-sds.c (sds_fetch_registers): Update.
5337 (sds_prepare_to_store): Update.
5338 * remote-array.c: Update.
5339 * regcache.c (init_legacy_regcache_descr): Update.
5340 (init_regcache_descr): Update.
5341 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5342 (mips_o64_extract_return_value): Update.
5343 * irix5-nat.c (fetch_core_registers): Update.
5344 * irix4-nat.c (fetch_core_registers): Update.
5345 * i386-tdep.h: Update.
5346 * hppa-tdep.c (pa_do_registers_info): Update.
5347 (pa_do_strcat_registers_info): Update.
5348 * cris-tdep.c (cris_register_bytes_ok): Update.
5349 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5350 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5351 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5352 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5353 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5354 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5355 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5356 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5357 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5358 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5359 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5360 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5361 (REGISTER_BYTES_OK): Update.
5362 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5363 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5364
5365 2003-05-16 Ian Lance Taylor <ian@airs.com>
5366
5367 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5368 (vax_print_insn, print_insn_arg): Remove static functions.
5369 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5370 print_insn_vax from opcodes library.
5371 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5372
5373 2003-05-15 Andrew Cagney <cagney@redhat.com>
5374
5375 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5376 * target.h (memory_breakpoint_from_pc): Delete declaration.
5377 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5378 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5379 * monitor.c (monitor_insert_breakpoint): Use
5380 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5381 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5382 * gdbarch.h, gdbarch.c: Re-generate.
5383 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5384 (sparc_gdbarch_init): Set breakpoint_from_pc to
5385 sparc_breakpoint_from_pc.
5386 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5387 (BREAKPOINT_FROM_PC): Define.
5388 (sparc_breakpoint_from_pc): Declare.
5389 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5390 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5391 (BREAKPOINT_FROM_PC): Define.
5392 (BREAKPOINT): Delete macro.
5393 * target.h: Update comment.
5394 * s390-tdep.c (s390_gdbarch_init): Update comments.
5395 * remote.c: Update comments.
5396 * remote-mips.c: Update comments.
5397 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5398 * mem-break.c: Update comment.
5399 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5400 (ia64_memory_insert_breakpoint): Update.
5401 * config/sparc/tm-sparc.h: Update comment.
5402 * config/pa/tm-hppa64.h: Update comment.
5403 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5404 (rs6000_breakpoint_from_pc): Update.
5405 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5406 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5407 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5408 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5409 (mips_breakpoint_from_pc): Update.
5410 (mips_dump_tdep): Update.
5411
5412 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5413 * minsyms.c (lookup_minimal_symbol): Inline
5414 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5415
5416 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5417 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5418 * p-lang.c (pascal_printstr): Ditto.
5419 * objc-lang.c (objc_printstr): Ditto.
5420 * m2-lang.c (m2_printstr): Ditto.
5421 * jv-valprint.c (java_print_value_fields): Ditto.
5422 * f-lang.c (f_printstr): Ditto.
5423 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5424 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5425 for repeat_count_threshold.
5426 * Makefile.in (cp-valprint.o): Update dependencies.
5427
5428 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5429
5430 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5431 (examine_prologue): Support looking through leaf functions, knowing
5432 they start with mov r2,r12. Support skipping over indirect stores
5433 of the input registers. Upon hitting a non-nop branch instruction
5434 or predicated instruction, bail out by setting lim_pc to the current
5435 pc value in the loop. At the end, if the lim_pc value is still
5436 beyond our calculated value and we have trust_limit set,
5437 use the lim_pc value.
5438
5439 2003-05-15 Andrew Cagney <cagney@redhat.com>
5440
5441 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5442 generic_find_dummy_frame.
5443 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5444 (deprecated_generic_find_dummy_frame): Update.
5445 (deprecated_read_register_dummy): Update.
5446 * frame.c (deprecated_generic_get_saved_register): Update.
5447
5448 2003-05-15 Theodore A. Roth <troth@openavr.org>
5449
5450 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5451 (avr_gdbarch_init): Set breakpoint_from_pc method.
5452
5453 2003-05-15 Andrew Cagney <cagney@redhat.com>
5454
5455 * regcache.c (build_regcache): Set deprecated_register_valid
5456 directly.
5457 (deprecated_grub_regcache_for_register_valid): Delete function.
5458 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5459 declaration.
5460
5461 2003-05-15 David Carlton <carlton@bactrian.org>
5462
5463 Committed by Elena Zannoni <ezannoni@redhat.com>
5464 * symtab.c (lookup_symbol_aux): Delete calls to
5465 lookup_symbol_aux_minsyms.
5466 (lookup_symbol_aux_minsyms): Comment out function and
5467 prototype. Delete lookup by mangled name.
5468
5469 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5470
5471 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5472 correctly indicate an empty stack and ``stack_allocated'' to the
5473 indicate the number of elements initially allocated.
5474 (dwarf_expr_grow_stack): Simplify method for computing new
5475 stack size. Don't loop infinitely if ``stack_len'' is zero.
5476 (execute_stack_op): Move ``ctx->in_reg'' initialization
5477 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5478 be used in conjuction with DW_OP_piece. Revise error message
5479 accordingly.
5480
5481 2003-05-14 Theodore A. Roth <troth@openavr.org>
5482
5483 * MAINTAINERS: Update my email address.
5484 * avr-tdep.c: Ditto.
5485
5486 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5487
5488 * symtab.h (enum domain_enum): Rename from namespace_enum.
5489 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5490 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5491 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5492 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5493 TYPES_NAMESPACE, METHODS_NAMESPACE.
5494 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5495 (struct symbol, struct partial_symbol): Rename field
5496 'namespace_enum namespace' to 'domain_enum domain'.
5497 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5498 Delete old define kludge for namespace.
5499
5500 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5501 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5502 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5503 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5504 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5505 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5506 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5507 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5508 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5509 occurrences of the above.
5510
5511 2003-05-14 Ian Lance Taylor <ian@airs.com>
5512
5513 * Makefile.in (install-only): Use $(SHELL) when running
5514 mkinstalldirs.
5515
5516 2003-05-13 Ian Lance Taylor <ian@airs.com>
5517
5518 * MAINTAINERS (write after approval): Add myself.
5519
5520 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5521 second and third arguments.
5522 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5523 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5524
5525 2003-05-13 Andrew Cagney <cagney@redhat.com>
5526
5527 * defs.h (store_address): Delete declaration.
5528 findvar.c (store_address): Delete function.
5529 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5530 store_unsigned_integer.
5531 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5532 * v850-tdep.c (v850_push_arguments): Ditto.
5533 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5534 * sh-tdep.c (sh64_get_saved_register): Ditto.
5535 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5536 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5537 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5538 (mips_get_saved_register): Ditto.
5539 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5540 (find_func_descr, ia64_push_arguments): Ditto.
5541 * i386-tdep.c (i386_push_arguments): Ditto.
5542 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5543 * frv-tdep.c (frv_push_arguments): Ditto.
5544 * frame.c (legacy_saved_regs_prev_register): Ditto.
5545 (deprecated_generic_get_saved_register): Ditto.
5546 * findvar.c (unsigned_address_to_pointer): Ditto.
5547 * dwarf2read.c (dwarf2_const_value): Ditto.
5548 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5549 * alpha-tdep.c (alpha_push_arguments): Ditto.
5550
5551 2003-05-12 J. Brobecker <brobecker@gnat.com>
5552
5553 * NEWS: Mention that the hppa-hpux port has been partially
5554 multiarched (32bit ABIT only, so far).
5555
5556 2003-05-11 Andrew Cagney <cagney@redhat.com>
5557
5558 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5559 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5560 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5561 sim/testsuite/sim/arm/misaligned2.ms, and
5562 sim/testsuite/sim/arm/misaligned3.ms.
5563 * disasm.h (struct ui_file): Add opaque struct declaration.
5564 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5565 * frame.h (struct ui_file): Ditto.
5566
5567 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5568
5569 * value.h: Pretty print.
5570
5571 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5572
5573 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5574
5575 2003-05-08 Andrew Cagney <cagney@redhat.com>
5576
5577 * regcache.h (max_register_size): Delete declaration.
5578 * regcache.c (max_register_size): Delete function.
5579 (struct regcache_descr): Delete field "max_register_size".
5580 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5581 registers fit in MAX_REGISTER_SIZE.
5582 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5583 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5584 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5585 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5586 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5587 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5588 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5589 * dve3900-rom.c, hppa-tdep.c: Ditto.
5590
5591 2003-05-08 David Carlton <carlton@math.stanford.edu>
5592
5593 * valops.c (push_word): Fix typo.
5594
5595 2003-05-08 Andrew Cagney <cagney@redhat.com>
5596
5597 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5598 * gdbarch.h: Re-generate.
5599 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5600 (legacy_max_register_raw_size): Delete declaration.
5601 * regcache.c (legacy_max_register_raw_size): Delete function.
5602 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5603 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5604 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5605 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5606 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5607 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5608 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5609 * findvar.c, dwarf2cfi.c: Ditto.
5610
5611 2003-05-08 Andrew Cagney <cagney@redhat.com>
5612
5613 * mips-tdep.c (read_signed_register): New function, moved to here
5614 from "regcache.c".
5615 (read_signed_register_pid): Ditto.
5616 * regcache.c (read_signed_register_pid): Delete function, moved to
5617 "mips-tdep.c".
5618 (read_signed_register): Ditto.
5619 * regcache.h (read_signed_register): Delete declaration.
5620 (read_signed_register_pid): Delete declaration.
5621
5622 2003-05-08 Andrew Cagney <cagney@redhat.com>
5623
5624 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5625 * gdbarch.h: Re-generate.
5626 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5627 (legacy_max_register_virtual_size): Delete declaration.
5628 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5629 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5630 * tracepoint.c (memrange_sortmerge): Ditto.
5631 * sparc-tdep.c (sparc_print_registers): Ditto.
5632 * regcache.c (legacy_max_register_virtual_size): Delete function.
5633
5634 2002-05-08 J. Brobecker <brobecker@gnat.com>
5635
5636 * fork-child.c (escape_bang_in_quoted_argument): New function.
5637 (fork_inferior): Escape '!' characters in quoted arguments
5638 only when needed.
5639
5640 2003-05-08 J. Brobecker <brobecker@gnat.com>
5641
5642 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5643 the language of the CU is not currently supported by GDB.
5644
5645 2003-05-08 J. Brobecker <brobecker@gnat.com>
5646
5647 * defs.h (language): Add language_minimal enum value.
5648 * c-lang.c (minimal_language_defn): New language definition.
5649 (_initialize_c_language): Add the new minimal language to the list
5650 of languages known to GDB.
5651
5652 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5653
5654 * frame.c (get_frame_type): Don't attempt to lazily initialize
5655 frame's unwinder for legacy frames.
5656
5657 2003-05-07 Andrew Cagney <cagney@redhat.com>
5658
5659 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5660 and "regcache" parameters.
5661 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5662
5663 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5664
5665 * dwarf2read.c (dwarf_decode_lines): Only use output of
5666 check_cu_functions() when calling record_line(). Do not update
5667 the current address.
5668
5669 2003-05-07 Andrew Cagney <cagney@redhat.com>
5670
5671 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5672 code.
5673
5674 2003-05-07 Jim Blandy <jimb@redhat.com>
5675
5676 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5677 'maint info symtabs' and 'maint info psymtabs'.
5678 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5679 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5680 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5681 Declarations updated.
5682 * maint.c (maintenance_list_command): Delete.
5683 (_initialize_maint_cmds): Update calls to add_cmd.
5684 * gdbcmd.h (maintenancelistlist): Delete declaration.
5685 * cli/cli-cmds.c (maintenancelistlist): Delete.
5686 (init_cmd_lists): Don't initialize it.
5687 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5688
5689 2003-05-07 Andrew Cagney <cagney@redhat.com>
5690
5691 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5692 "regcache".
5693 (d10v_print_registers_info): Update.
5694 (d10v_dmap_register, d10v_imap_register): Delete functions.
5695 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5696 and "imap_register".
5697 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5698 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5699 * arch-utils.c (generic_remote_translate_xfer_address): Add
5700 "regcache" and "gdbarch" parameters.
5701 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5702 parameter. Change class to multi-arch.
5703 * gdbarch.h, gdbarch.c: Re-generate.
5704 * remote.c (remote_xfer_memory): Use
5705 gdbarch_remote_translate_xfer_address.
5706
5707 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5708
5709 * infrun.c (prev_pc): Move declaration ahead of proceed().
5710 (proceed): Refresh prev_pc value before resuming.
5711 (stop_stepping): Remove code to refresh prev_pc.
5712
5713 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5714
5715 * nto-tdep.c: Removed stray comment.
5716
5717 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5718
5719 * i386-nto-tdep.c: Fix old K&R function definitions.
5720 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5721 Also change add_show_from_set() call to add_setshow_cmd().
5722 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5723
5724 2003-05-05 Andrew Cagney <cagney@redhat.com>
5725
5726 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5727 (fprint_dummy_frames): New function.
5728 (maintenance_print_dummy_frames): New function.
5729 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5730 * frame.c (fprint_frame_id): Make global.
5731 * frame.h (fprint_frame_id): Declare.
5732 * Makefile.in (dummy-frame.o): Update dependencies.
5733
5734 2003-05-05 Andrew Cagney <cagney@redhat.com>
5735
5736 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5737 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5738 SIZEOF_CALL_DUMMY_WORDS.
5739 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5740 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5741 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5742 CALL_DUMMY_BREAKPOINT_OFFSET.
5743 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5744 CALL_DUMMY_START_OFFSET.
5745 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5746 * gdbarch.h, gdbarch.c: Re-generate.
5747 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5748 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5749 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5750 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5751 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5752 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5753 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5754 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5755 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5756 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5757 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5758 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5759 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5760 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5761 * config/sparc/tm-sparc.h: Update.
5762
5763 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5764
5765 * configure.tgt: Add i[3456]86-*-nto*.
5766 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5767 * nto-tdep.c: New file. Neutrino target support routines.
5768 * nto-tdep.h: New file. Neutrino target header.
5769 * config/tm-qnxnto.h: New file.
5770 * config/i386/i386nto.mt: New file.
5771 * config/i386/tm-i386nto.h: New file.
5772
5773 2003-05-04 Andrew Cagney <cagney@redhat.com>
5774
5775 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5776 (load_infrun_state): Ditto.
5777 (struct thread_info): Drop "prev_func_name" field.
5778 * thread.c (load_infrun_state): Update.
5779 (save_infrun_state): Update.
5780 * infrun.c (prev_func_name): Delete variable.
5781 (init_wait_for_inferior): Do not clear prev_func_name.
5782 (stop_stepping, keep_going, context_switch): Do not swap
5783 prev_func_name.
5784 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5785 instead of PC_IN_SIGTRAMP.
5786
5787 2003-05-04 Andrew Cagney <cagney@redhat.com>
5788
5789 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5790 REGISTER_BYTE with register_offset_hack.
5791 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5792 that REGISTER_BYTE is consistent with the regcache.
5793 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5794 * gdbarch.h, gdbarch.c: Regenerate.
5795
5796 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5797
5798 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5799 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5800
5801 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5802
5803 2003-05-03 J. Brobecker <brobecker@gnat.com>
5804
5805 From Thierry Schneider <tpschneider1@yahoo.com>
5806 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5807 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5808 (mi-cmd-symbol.o): Add rule.
5809
5810 2003-05-03 Andrew Cagney <cagney@redhat.com>
5811
5812 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5813 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5814 * gdbarch.h, gdbarch.c: Re-generate.
5815 * d10v-tdep.c (d10v_push_dummy_code): New function.
5816 (d10v_gdbarch_init): Set push_dummy_code.
5817 * infcall.c (legacy_push_dummy_code): New function.
5818 (generic_push_dummy_code): New function.
5819 (push_dummy_code): New function.
5820 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5821 instead of dummy_addr, to push_dummy_call. Move call to
5822 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5823 switch.
5824 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5825
5826 2003-05-03 Andrew Cagney <cagney@redhat.com>
5827
5828 * disasm.h (print_insn): Declare.
5829 * disasm.c (init_gdb_disassemble_info): New function.
5830 (gdb_disassembly): Call init_gdb_disassemble_info.
5831 (gdb_print_insn): New function.
5832 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5833 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5834 * mcore-tdep.c: Include "disasm.h"
5835 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5836 * d10v-tdep.c: Include "disasm.h".
5837 (display_trace): Call gdb_print_insn, instead of print_insn.
5838 (print_insn): Delete function.
5839 * printcmd.c: Include "disasm.h".
5840 (print_insn): Delete function.
5841 (print_formatted): Call gdb_print_insn, instead of print_insn.
5842 * Makefile.in (printcmd.o): Update dependencies.
5843 (mcore-tdep.o, d10v-tdep.o): Ditto.
5844
5845 2003-05-02 Andrew Cagney <cagney@redhat.com>
5846
5847 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5848 PC_REGNUM, re-indent.
5849 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5850 PC_REGNUM isn't set.
5851
5852 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5853 * gdbarch.h, gdbarch.c: Re-generate.
5854 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5855 register_virtual_size, pc_regnum, or register_bytes.
5856 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5857 (d10v_register_type): Use D10V_PC_REGNUM.
5858 (d10v_print_registers_info, d10v_read_pc): Ditto.
5859 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5860 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5861
5862 2003-05-02 David Carlton <carlton@bactrian.org>
5863
5864 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5865 the name with mstrsave.
5866
5867 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5868
5869 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5870 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5871 (host_charset_name, target_charset_name): New vars for use by
5872 set/show commands.
5873 (host_charset_enum, target_charset_enum): New enums for set/show
5874 commands.
5875 (set_charset_sfunc, set_host_charset_sfunc,
5876 set_target_charset_sfunc): New functions.
5877 (set_host_charset, set_target_charset): Make static.
5878 (list_charsets, set_host_charset_command,
5879 set_target_charset_command): Delete functions.
5880 (show_charset_command): Rewrite as....
5881 (show_charset): Hook this up with the set/show command mechanism.
5882 (_initialize_charset): Change names of charsets to match the
5883 set/show enums. Use host_charset_name and target_charset_name.
5884 Use set/show mechanism for charset, host-charset, target-charset
5885 commands. Do not make 'show host-charset' and 'show
5886 target-charset' be aliases of 'show charset'.
5887
5888 * charset.h (set_host_charset, set_target_charset): Don't export,
5889 they are not used outside the file.
5890
5891 2003-05-01 Andrew Cagney <cagney@redhat.com>
5892
5893 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5894 (gdb_disassembly): Make "di" non static, always initialize and
5895 cleanup. Always use dis_asm_read_memory.
5896 (gdb_dis_asm_read_memory): Delete function.
5897
5898 2003-05-01 Andrew Cagney <cagney@redhat.com>
5899
5900 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5901 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5902
5903 2003-04-30 Andrew Cagney <cagney@redhat.com>
5904
5905 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5906 "tm_print_insn_info".
5907 (TARGET_PRINT_INSN_INFO): Delete macro.
5908 (dis_asm_read_memory): Delete function declaration.
5909 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5910 (tm_print_insn_info): Delete variable definition.
5911 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5912 * gdbarch.h, gdbarch.c: Re-generate.
5913 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5914 "deprecated_tm_print_insn_info".
5915 * mcore-tdep.c (mcore_dump_insn): Ditto.
5916 * mips-tdep.c (mips_gdbarch_init): Ditto.
5917 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5918 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5919 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5920 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5921 instead of TARGET_PRINT_INSN_INFO, add comment.
5922 * s390-tdep.c (s390_get_frame_info): Instead of
5923 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5924 (s390_check_function_end, s390_is_sigreturn): Ditto.
5925 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5926 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5927 * disasm.c: Include "gdbcore.h".
5928 (_initialize_disasm): New function, initialize
5929 "deprecated_tm_print_insn_info".
5930 (deprecated_tm_print_insn_info): New variable.
5931 (dis_asm_read_memory): Moved from "corefile.c", made static.
5932 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5933 * Makefile.in (disasm.o): Update dependencies.
5934
5935 2003-04-30 Andrew Cagney <cagney@redhat.com>
5936
5937 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5938
5939 2003-04-29 Adam Fedor <fedor@gnu.org>
5940
5941 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5942 * infcall.c (find_function_addr): Make non-static.
5943 * infcall.h (find_function_addr): Declare.
5944 * Makefile.in (eval.o): Update dependencies.
5945
5946 2003-04-28 Adam Fedor <fedor@gnu.org>
5947
5948 * symtab.c (symbol_find_demangled_name): Check for and demangle
5949 ObjC symbols.
5950 (symbol_init_demangled_name): Init for language_objc as well.
5951
5952 2003-04-28 Andrew Cagney <cagney@redhat.com>
5953
5954 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5955 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5956 * gdbarch.h, gdbarch.c: Re-generate.
5957 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5958 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5959 * inferior.h (deprecated_read_fp): Rename read_fp.
5960 (generic_target_read_fp): Delete declaration.
5961 * regcache.c (generic_target_read_fp): Delete function.
5962 (deprecated_read_fp): Replace read_fp, use
5963 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5964 * d10v-tdep.c (d10v_read_fp): Delete function.
5965 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5966
5967 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5968 deprecated_target_read_fp to generic_target_read_fp.
5969 * sh-tdep.c (sh_gdbarch_init): Ditto.
5970 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5972 * frv-tdep.c (frv_gdbarch_init): Ditto.
5973
5974 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5975 deprecated_fp_regnum.
5976 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5977 * vax-tdep.c (vax_gdbarch_init): Ditto.
5978 * v850-tdep.c (v850_gdbarch_init): Ditto.
5979 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5980 * sh-tdep.c (sh_gdbarch_init): Ditto.
5981 * s390-tdep.c (s390_gdbarch_init): Ditto.
5982 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5983 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5984 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5985 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5987 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5988 * i386-tdep.c (i386_gdbarch_init): Ditto.
5989 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5990 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5991 * frv-tdep.c (frv_gdbarch_init): Ditto.
5992 * cris-tdep.c (cris_gdbarch_init): Ditto.
5993 * avr-tdep.c (avr_gdbarch_init): Ditto.
5994 * arm-tdep.c (arm_gdbarch_init): Ditto.
5995 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5996
5997 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5998 * v850-tdep.c (v850_gdbarch_init): Ditto.
5999 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6000 * sh-tdep.c (sh_gdbarch_init): Ditto.
6001 * s390-tdep.c (s390_gdbarch_init): Ditto.
6002 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6003 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6004 * mips-tdep.c (mips_gdbarch_init): Ditto.
6005 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6006 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6007 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6008 * frv-tdep.c (frv_gdbarch_init): Ditto.
6009 * avr-tdep.c (avr_gdbarch_init): Ditto.
6010 * arm-tdep.c (arm_gdbarch_init): Ditto.
6011
6012 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6013 DEPRECATED_FP_REGNUM.
6014 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6015 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6016 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6017 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6018 (sparc32_register_virtual_type): Ditto.
6019 * sh-tdep.c (sh64_frame_chain): Ditto.
6020 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6021 (sh_nofp_frame_init_saved_regs): Ditto.
6022 (sh64_nofp_frame_init_saved_regs): Ditto.
6023 (sh_fp_frame_init_saved_regs): Ditto.
6024 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6025 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6026 * procfs.c (procfs_fetch_registers): Ditto.
6027 (procfs_store_registers): Ditto.
6028 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6029 (store_inferior_registers, fetch_core_registers): Ditto.
6030 (fetch_kcore_registers, clear_regs): Ditto.
6031 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6032 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6033 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6034 * nlm/i386.c (do_status): Ditto.
6035 * mipsv4-nat.c (supply_gregset): Ditto.
6036 * mips-tdep.c: Ditto for comments.
6037 * mips-nat.c (fetch_inferior_registers): Ditto.
6038 (store_inferior_registers, fetch_core_registers): Ditto.
6039 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6040 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6041 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6042 (i386_do_pop_frame, i386_register_type): Ditto.
6043 * hppa-tdep.c (hppa_frame_chain): Ditto.
6044 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6045 (hppa_pop_frame, hppa_read_fp): Ditto.
6046 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6047 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6048 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6049 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6050 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6051 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6052 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6053 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6054 * blockframe.c: Ditto for comments.
6055 * arch-utils.h: Ditto for comments.
6056 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6057 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6058 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6059 * alpha-tdep.h: Ditto for comments.
6060 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6061 (alpha_cannot_store_register): Ditto.
6062 (alpha_push_dummy_frame): Ditto.
6063 * alpha-nat.c (supply_gregset): Ditto.
6064
6065 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6066 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6067 * config/sparc/tm-sparc.h: Update comment.
6068
6069 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6070 deprecated_read_fp instead of TARGET_READ_FP.
6071 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6072 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6073 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6074 deprecated_read_fp instead of read_fp.
6075 * s390-tdep.c (s390_push_arguments): Ditto.
6076 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6077 * frame.h: Ditto in comments.
6078 * frame.c (legacy_get_prev_frame): Ditto.
6079 * dummy-frame.c (dummy_frame_this_id): Ditto.
6080 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6081
6082 2003-04-28 Andrew Cagney <cagney@redhat.com>
6083
6084 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6085 * gdbarch.h, gdbarch.c: Re-generate.
6086 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6087 * vax-tdep.c (_initialize_vax_tdep): Update.
6088 * v850-tdep.c (_initialize_v850_tdep): Update.
6089 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6090 * s390-tdep.c (_initialize_s390_tdep): Update.
6091 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6092 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6093 * mips-tdep.c (_initialize_mips_tdep): Update.
6094 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6095 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6096 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6097 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6098 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6099 * frv-tdep.c (_initialize_frv_tdep): Update.
6100 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6101 (_initialize_cris_tdep): Update.
6102 * arch-utils.c (legacy_print_insn): Update.
6103 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6104
6105 2003-04-26 Adam Fedor <fedor@gnu.org>
6106
6107 * linespec.c (decode_objc): New function to decode ObjC calls
6108 (decode_line_1): Check for ObjC calls (using decode_objc)
6109 * Makefile (linespec.o): Update dependencies.
6110
6111 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6112
6113 * breakpoint.h (struct breakpoint_ops): New.
6114 (struct breakpoint): Add ops member.
6115
6116 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6117 (mention): Use new breakpoint ops member.
6118 (set_raw_breakpoint): Initialize ops field to NULL.
6119 (print_exception_catchpoint, print_one_exception_catchpoint)
6120 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6121 (gnu_v3_exception_catchpoint_ops): New.
6122 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6123
6124 2003-04-25 Adam Fedor <fedor@gnu.org>
6125
6126 * Makefile.in (COMMON_OBS): Add objc-lang.o
6127
6128 2003-04-25 Andrew Cagney <cagney@redhat.com>
6129
6130 * d10v-tdep.c (print_insn): Delete function.
6131 (display_trace): Use TARGET_PRINT_INSN.
6132 (_initialize_d10v_tdep): Do not set tm_print_insn.
6133 (d10v_gdbarch_init): Set print_insn.
6134
6135 2003-04-25 Andrew Cagney <cagney@redhat.com>
6136
6137 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6138 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6139 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6140 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6141 (nr_dmap_regs, a0_regnum): ... new functions.
6142 (d10v_print_registers_info): Use a0_regnum, use register_size.
6143 (d10v_register_byte): Delete function.
6144 (d10v_register_raw_size): Delete function.
6145 (d10v_register_type): Use a0_regnum.
6146 (d10v_print_registers_info): Use a0_regnum.
6147 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6148 (d10v_gdbarch_init): Do not set register_byte or
6149 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6150 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6151 extract_address.
6152 (trace_command): Use XCALLOC.
6153 (print_insn): Delete reference to tm_print_insn.
6154 (saved_regs_unwinder): Use store_unsigned_integer instead of
6155 store_address.
6156 * frame.h (FRAME_OBSTACK_CALLOC): Define
6157
6158 2003-04-25 David Carlton <carlton@bactrian.org>
6159
6160 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6161
6162 2003-04-24 Adam Fedor <fedor@gnu.org>
6163
6164 * objc-lang.c: Include "valprint.h"
6165 * Makefile.in (objc-lang.o): Update dependencies.
6166
6167 2003-04-24 Adam Fedor <fedor@gnu.org>
6168
6169 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6170 architecture dependant compilation and mark as unimplemented
6171 (until they get put in the gdbarch vector).
6172
6173 2003-04-23 David Carlton <carlton@bactrian.org>
6174
6175 * cp-support.c (cp_find_first_component): Accept 'operator' in
6176 more locations.
6177
6178 2003-04-23 Andrew Cagney <cagney@redhat.com>
6179
6180 * infcall.c (call_function_by_hand): Eliminate redundant
6181 indentation. Move "saved_async" and "old_cleanups" to where they
6182 are needed.
6183
6184 2003-04-23 Andrew Cagney <cagney@redhat.com>
6185
6186 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6187 and "buffer". Move the "name" code to where it is needed.
6188
6189 2003-04-23 Andrew Cagney <cagney@redhat.com>
6190
6191 * infcall.c (call_function_by_hand): Move variables "start_sp",
6192 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6193 code to ON_STACK switch branch.
6194
6195 2003-04-23 Andrew Cagney <cagney@redhat.com>
6196
6197 * infcall.c (call_function_by_hand): Make declaration of "i",
6198 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6199 lint.
6200
6201 2003-04-23 Andrew Cagney <cagney@redhat.com>
6202
6203 * infcall.c (call_function_by_hand): Delete variable
6204 "n_method_args". Localize "param_type"'s declaration to the loop
6205 that it is used. Reinstate code assigning to said variable -
6206 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6207 Rationalize code using "param_type".
6208
6209 2003-04-22 Andrew Cagney <cagney@redhat.com>
6210
6211 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6212 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6213 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6214 to DEPRECATED_PUSH_RETURN_ADDRESS.
6215
6216 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6217
6218 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6219 on the DWARF2 register number prior to fetching a register.
6220
6221 2003-04-22 J. Brobecker <brobecker@gnat.com>
6222
6223 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6224 Update all the tests using SOFT_FLOAT considering the fact that
6225 this macro was always set to 0.
6226 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6227 considering the fact that this macro was always set to 0.
6228 * hppa-tdep.h (hppa_store_return_value): Likewise.
6229 (hppa_extract_return_value): Likewise.
6230
6231 2003-04-22 J. Brobecker <brobecker@gnat.com>
6232
6233 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6234 the hppa-pro target only.
6235
6236 2003-04-21 J. Brobecker <brobecker@gnat.com>
6237
6238 Ongoing multi-arch conversion effort for HP/UX:
6239 * config/pa/tm-hppa.h: Move all macro that are no longer
6240 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6241 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6242
6243 2003-04-21 J. Brobecker <brobecker@gnat.com>
6244
6245 * config/pa/tm-hppa.h: Obsolete a section that was only used
6246 for hppa-pro.
6247
6248 2003-04-21 J. Brobecker <brobecker@gnat.com>
6249
6250 Ongoing multi-arch conversion for HP/UX.
6251 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6252 if already defined (allows hppa64 to stay non-multiarched for now).
6253 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6254
6255 2003-04-21 Andrew Cagney <cagney@redhat.com>
6256
6257 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6258
6259 2003-04-21 Andrew Cagney <cagney@redhat.com>
6260
6261 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6262 "i386_num_mmx_regs".
6263
6264 2003-04-21 Andrew Cagney <cagney@redhat.com>
6265
6266 * infcall.c: New file.
6267 * infcall.h: New file.
6268 * valarith.c: Include "infcall.h".
6269 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6270 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6271 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6272 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6273 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6274 (SFILES): Add "infcall.c"
6275 (COMMON_OBS): Add "infcall.o".
6276 (infcall.o): Specify dependencies.
6277 * value.h (call_function_by_hand): Delete declaration.
6278 * inferior.h (run_stack_dummy): Delete declaration.
6279 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6280 (run_stack_dummy): Move to "infcall.c", merged into
6281 call_function_by_hand.
6282 * valops.c (call_function_by_hand): Moved to "infcall.c".
6283 (find_function_addr, value_arg_coerce): Ditto.
6284 (unwindonsignal_p, coerce_float_to_double): Ditto.
6285 (_initialize_valops): Move "set/show coerce-float-to-double", and
6286 "set/show unwindonsignal" commands to "infcall.c".
6287 * v850-tdep.c, target.h: Update comments.
6288 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6289 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6290 (sh64_init_extra_frame_info): Update comments.
6291 * mn10300-tdep.c: Update comments.
6292 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6293 * config/sparc/tm-sparc.h: Update comments.
6294 * breakpoint.h: Update comments.
6295 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6296 * arm-tdep.c: Update comment.
6297
6298 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6299
6300 * i386-tdep.c (i386_num_register_names): New variable.
6301 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6302 (MM0_REGNUM): Remove redundant parentheses in define.
6303 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6304 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6305 i386_mxcsr_regnum_p): Remove redundant parentheses.
6306 (i386_register_name): Use i386_num_register_names.
6307
6308 * i386-tdep.c (i386_extract_return_value,
6309 i386_store_return_value): Correct check for availability of
6310 floating-point registers.
6311
6312 * i386-tdep.c (i386_frame_num_args): Remove function.
6313 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6314
6315 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6316 mmx_regnum_to_fp_regnum. Adjust all callers.
6317
6318 * i386-tdep.c (i386_get_longjmp_target): Use
6319 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6320 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6321 extract_address.
6322
6323 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6324
6325 * core-regset.c: Update comments to reflect reality. Re-order
6326 includes.
6327 (fetch_core_registers): Use switch instead of if. Remove
6328 redundant prototype.
6329
6330 2003-04-18 Jim Blandy <jimb@redhat.com>
6331
6332 * s390-tdep.c (s390_frame_align): New function.
6333 (s390_gdbarch_init): Register it with the gdbarch object.
6334
6335 2003-04-17 Richard Henderson <rth@redhat.com>
6336
6337 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6338
6339 2003-04-17 Michael Snyder <msnyder@redhat.com>
6340 Karen Bennet <bennet@redhat.com>
6341
6342 Committed by Elena Zannoni <ezannoni@redhat.com>
6343 * gdb_gcore.sh: New script to create a core dump of a process.
6344
6345 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6346
6347 * values.c (value_being_returned): Don't fetch the return
6348 value if the return type is void.
6349
6350 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6351
6352 * thread-db.c: Reindented.
6353
6354 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6355
6356 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6357 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6358 as types.
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6385
6386 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6387 the size of ``long double'' to 16, instead of 8.
6388
6389 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6390
6391 * i386-linux-nat.c: Add some whitespace to make things more
6392 readable.
6393 (fetch_register, store_register, fetch_inferior_registers,
6394 store_inferior_registers): Get rid of assignment in if-statement.
6395 (store_register): Fix typo in error message.
6396
6397 2003-04-16 Andrew Cagney <cagney@redhat.com>
6398
6399 * utils.c (xmmalloc): Always allocate something, matches
6400 libiberty/xmalloc's semantics.
6401 (xmrealloc, xmcalloc): Ditto.
6402
6403 2003-04-16 Andrew Cagney <cagney@redhat.com>
6404
6405 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6406 update comments.
6407 (get_frame_type): Initialize unwind and type when needed.
6408 (get_frame_id, frame_register_unwind): Ditto.
6409
6410 2003-04-16 Andrew Cagney <cagney@redhat.com>
6411
6412 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6413 obsolete.
6414 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6415 * sparcl-stub.c: Obsolete file.
6416 * config/sparc/tm-sparclet.h: Obsolete file.
6417 * sparclet-stub.c: Obsolete file.
6418 * sparclet-rom.c: Obsolete file.
6419 * sparcl-tdep.c: Obsolete file.
6420 * config/sparc/tm-sparclite.h: Obsolete file.
6421 * config/sparc/sparclite.mt: Obsolete file.
6422 * config/sparc/sparclet.mt: Obsolete file.
6423 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6424 sparc86x-*-* obsolete.
6425
6426 2003-04-15 David Carlton <carlton@math.stanford.edu>
6427
6428 * Makefile.in (SFILES): Add cp-namespace.c.
6429 (COMMON_OBS): Add cp-namespace.o.
6430 (block.o): Depend on gdb_obstack_h and cp_support_h.
6431 (buildsym.o): Depend on cp_support_h.
6432 (cp-namespace.o): New.
6433 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6434 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6435 (dwarf2read.o): Depend on cp_support_h.
6436 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6437 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6438 processing_current_namespace.
6439 (read_namespace): Update processing_current_namespace; check for
6440 anonymous namespaces.
6441 (dwarf2_name): New function.
6442 (dwarf2_extension): Ditto.
6443 * cp-support.h: Update copyright, contributors.
6444 Add inclusion guards.
6445 Add opaque declaration for structs obstack, block, symbol.
6446 (struct using_direct): New struct.
6447 Add declarations for cp_find_first_component,
6448 cp_entire_prefix_len, processing_has_namespace_info,
6449 processing_current_namespace, cp_is_anonymous,
6450 cp_add_using_directive, cp_initialize_namespace,
6451 cp_finalize_namespace, cp_set_block_scope,
6452 cp_scan_for_anonymous_namespaces.
6453 * cp-namespace.c: New file.
6454 * cp-support.c: Update copyright.
6455 Include ctype.h, gdb_assert.h, gdbcmd.h.
6456 New variable maint_cplus_cmd_list.
6457 (cp_find_first_component): New function.
6458 (cp_entire_prefix_len, maint_cplus_command)
6459 (first_component_command, _initialize_cp_support): Ditto.
6460 * buildsym.c: Include cp-support.h.
6461 New variable using_list.
6462 (add_symbol_to_list): Check for anonymous namespaces.
6463 (finish_block): Set block's scope.
6464 (start_symtab): Initialize C++ namespace support.
6465 (end_symtab): Finalize C++ namespace support.
6466 * block.h: Add opaque declarations for structs
6467 block_namespace_info, using_direct, and obstack.
6468 Add declarations for block_set_scope and block_set_using.
6469 (struct block): Add 'language_specific' member.
6470 (BLOCK_NAMESPACE): New macro.
6471 * block.c: Include gdb_obstack.h and cp-support.h.
6472 (struct block_namespace_info): New struct.
6473 (block_set_scope): New function.
6474 (block_set_using, block_initialize_namespace): Ditto.
6475
6476 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6477
6478 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6479 (locate_base): Return early if there aren't any link map offsets.
6480 (svr4_solib_create_inferior_hook): Warn if shared library support
6481 is unavailable.
6482
6483 2003-04-14 David Carlton <carlton@math.stanford.edu>
6484
6485 * symtab.c (symbol_set_names): Add prefix when storing Java names
6486 in hash table. Fix for PR java/1039.
6487
6488 2003-04-14 David Carlton <carlton@math.stanford.edu>
6489
6490 * symtab.c (symbol_set_names): Rename 'name' arg to
6491 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6492 * symtab.h: Change 'name' argument in declaration of
6493 symbol_set_names to 'linkage_name'.
6494 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6495
6496 2003-04-14 Andrew Cagney <cagney@redhat.com>
6497
6498 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6499 return the fully sign-extended register value.
6500 (get_frame_pointer): Ditto.
6501 (mips_pop_frame): Initialize "proc_desc" after checking for a
6502 dummy frame.
6503
6504 2003-04-14 Andrew Cagney <cagney@redhat.com>
6505
6506 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6507 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6508 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6509 (mips_push_register): Delete function.
6510 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6511 PUSH_FP_REGNUM.
6512
6513 2003-04-14 Jim Blandy <jimb@redhat.com>
6514
6515 * symmisc.c: #include "gdb_regex.h".
6516 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6517 functions.
6518 * maint.c (maintenance_list_command): New function.
6519 (_initialize_maint_cmds): Register the above as commands.
6520 * symtab.h (maintenance_list_symtabs,
6521 maintenance_list_psymtabs): New declarations.
6522 * cli/cli-cmds.c (maintenancelistlist): New variable.
6523 (init_cmd_lists): Initialize it.
6524 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6525 * gdbcmd.h (maintenancelistlist): New declaration.
6526 * Makefile.in (symmisc.o): Update dependencies.
6527
6528 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6529
6530 * s390-nat.c: Include asm/types.h for addr_t.
6531
6532 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6533
6534 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6535 actually incoming type.
6536
6537 2003-04-13 Andrew Cagney <cagney@redhat.com>
6538
6539 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6540 get_next_frame and get_frame_saved_regs.
6541
6542 2003-04-13 Andrew Cagney <cagney@redhat.com>
6543
6544 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6545 of gdbarch_num_regs.
6546
6547 2003-04-13 Andrew Cagney <cagney@redhat.com>
6548
6549 * frame.h: Mention what replaced what in "struct frame_info".
6550 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6551 deprecated_update_frame_base_hack and
6552 deprecated_update_frame_pc_hack.
6553 * hppa-tdep.c: Ditto.
6554
6555 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6556
6557 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6558 to read_reg and update its comment. Remove regnum member.
6559 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6560 Don't call read_reg when setting in_reg. Call read_reg to get
6561 the frame base if it's in a register. Return the register number
6562 on the stack instead of in the context. Remove extra arguments
6563 to read_reg.
6564 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6565 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6566 the register number on the expression stack.
6567 (needs_frame_read_reg): Remove extra arguments.
6568
6569 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6570
6571 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6572 made non-static.
6573 (execute_stack_op): All callers updated.
6574 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6575 * dwarf2loc.c (find_location_expression): New function.
6576 (dwarf_expr_frame_base): Call it.
6577 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6578 (dwarf2_tracepoint_var_ref): New function, broken out from
6579 locexpr_tracepoint_var_ref.
6580 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6581 Make static.
6582 (loclist_read_variable, loclist_read_needs_frame): New functions.
6583 (loclist_describe_location, loclist_tracepoint_var_ref): New
6584 functions.
6585 (dwarf2_loclist_funcs): New struct location_funcs.
6586 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6587 (struct dwarf2_locexpr_baton): Add comments.
6588 (dwarf2_loclist_funcs): New extern.
6589 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6590 base_address and base_known.
6591 (dwarf_loc_buffer): New variable.
6592 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6593 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6594 (dwarf2_has_info): Initialize dwarf_loc_offset.
6595 (dwarf2_build_psymtabs): Read in .debug_loc.
6596 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6597 DWARF_LOC_SIZE.
6598 (psymtab_to_symtab_1): Likewise. Move base address calculation
6599 here, from...
6600 (dwarf2_get_pc_bounds): ... here. Use the base address from
6601 cu_header.
6602 (dwarf2_symbol_mark_computed): Handle location lists.
6603
6604 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6605
6606 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6607 if the linkage name demangled successfully.
6608
6609 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6610
6611 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6612 disassmbly_flavour): Removed.
6613
6614 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6615
6616 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6617
6618 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6619
6620 2003-04-12 Andrew Cagney <cagney@redhat.com>
6621
6622 * frame.h (struct frame_info): Move definition from here ...
6623 * frame.c (struct frame_info): ... to here.
6624
6625 2003-04-12 Andrew Cagney <cagney@redhat.com>
6626
6627 * gdbthread.h (save_infrun_state): Delete parameter
6628 "prev_func_start".
6629 (struct thread_info): Delete field "prev_func_start".
6630 (load_infrun_state): Ditto.
6631 * thread.c (load_infrun_state, save_infrun_state): Update.
6632 * infrun.c (prev_func_start): Delete variable.
6633 (context_switch, init_wait_for_inferior): Update.
6634 (stop_stepping, keep_going): Update.
6635
6636 2003-04-12 Andrew Cagney <cagney@redhat.com>
6637
6638 * gdbarch.sh: Add missing opaque declarations.
6639 * gdbarch.h: Regnerate.
6640 * symtab.h: Add missing opaque declarations.
6641 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6642 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6643 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6644 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6645 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6646 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6647 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6648 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6649 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6650 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6651 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6652 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6653 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6654
6655 2003-04-11 Andrew Cagney <cagney@redhat.com>
6656
6657 * frame.c (get_frame_id): Return this frame's "id".
6658 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6659 function start.
6660 (legacy_saved_regs_this_id): Replace function body with
6661 internal-error.
6662 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6663 FRAME_OBSTACK_ZALLOC.
6664 (create_new_frame): Mark the frame ID as valid.
6665
6666 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6667
6668 * Makefile.in (libbfd_h): Added missing setting.
6669 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6670 according to the selected ABI.
6671
6672 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6673
6674 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6675
6676 2003-04-11 Andrew Cagney <cagney@redhat.com>
6677
6678 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6679 SAVED_PC_AFTER_CALL.
6680 * gdbarch.h, gdbarch.c: Regenerate.
6681 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6682 * x86-64-tdep.c (x86_64_init_abi): Update.
6683 * vax-tdep.c (vax_gdbarch_init): Update.
6684 * v850-tdep.c (v850_gdbarch_init): Update.
6685 * sparc-tdep.c (sparc_gdbarch_init): Update.
6686 * sh-tdep.c (sh_gdbarch_init): Update.
6687 * s390-tdep.c (s390_gdbarch_init): Update.
6688 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6689 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6690 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6691 * mips-tdep.c (mips_gdbarch_init): Update.
6692 * mcore-tdep.c (mcore_gdbarch_init): Update.
6693 * m68k-tdep.c (m68k_gdbarch_init): Update.
6694 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6695 * ia64-tdep.c (ia64_gdbarch_init): Update.
6696 (ia64_saved_pc_after_call): Update declaration.
6697 * i386ly-tdep.c (i386lynx_init_abi): Update.
6698 * i386-tdep.c (i386_gdbarch_init): Update.
6699 * hppa-tdep.c (hppa_gdbarch_init): Update.
6700 * h8300-tdep.c (h8300_gdbarch_init): Update.
6701 * frv-tdep.c (frv_gdbarch_init): Update.
6702 * cris-tdep.c (cris_gdbarch_init): Update.
6703 * avr-tdep.c (avr_gdbarch_init): Update.
6704 * arm-tdep.c (arm_gdbarch_init): Update.
6705 * alpha-tdep.c (alpha_gdbarch_init): Update.
6706 * ns32knbsd-nat.c (frame_num_args): Update.
6707 * ns32k-tdep.c (umax_frame_num_args): Update.
6708 * mips-tdep.c (mips_init_frame_pc_first): Update.
6709 * infrun.c (step_over_function): Update.
6710 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6711 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6712 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6713 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6714 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6715 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6716 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6717 * arch-utils.c (init_frame_pc_default): Update.
6718 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6719 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6720 declaration.
6721
6722 2003-04-11 Andrew Cagney <cagney@redhat.com>
6723
6724 * i387-tdep.c: Update copyright.
6725 (i387_to_double): Delete function.
6726 (double_to_i387): Delete function.
6727
6728 2003-04-10 Andrew Cagney <cagney@redhat.com>
6729
6730 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6731 frame's function's address. Simplify.
6732 (d10v_frame_unwind_cache): Check that the frame's function is
6733 non-zero.
6734
6735 2003-04-10 Jim Blandy <jimb@redhat.com>
6736
6737 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6738 call to set_gdbarch_deprecated_push_arguments.
6739
6740 2003-04-10 Andrew Cagney <cagney@redhat.com>
6741
6742 * frame.c (fprint_frame_id): New function.
6743 (fprint_frame_type, fprint_frame): New function.
6744 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6745 (create_sentinel_frame, get_frame_id): Ditto.
6746 (frame_id_p, frame_id_eq): Ditto.
6747 (frame_id_inner, create_new_frame): Ditto.
6748 (legacy_get_prev_frame, get_prev_frame): Ditto.
6749 (deprecated_update_frame_pc_hack): Ditto.
6750 (frame_register_unwind): Ditto.
6751 (deprecated_update_frame_base_hack): Ditto.
6752
6753 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6754
6755 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6756 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6757 frame_chain function.
6758 * Makefile.in: Add dependencies due to above change.
6759
6760 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6761
6762 * blockframe.c (legacy_frame_chain_valid): Move call to
6763 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6764 inside_entry_file.
6765
6766 2003-04-09 Andrew Cagney <cagney@redhat.com>
6767
6768 * frame.h (struct frame_id): Replace "pc" and "base" with
6769 "stack_addr" and "code_addr". Update comments.
6770 (frame_id_build): Update parameter names and comment.
6771 (struct frame_info): Replace "id_p" and "id" with "this_id".
6772 * dummy-frame.c (dummy_frame_this_id): Update.
6773 * breakpoint.c (print_one_breakpoint): Update.
6774 * frame.c (get_frame_id): Update.
6775 (get_frame_base, frame_id_build): Update.
6776 (create_sentinel_frame, legacy_get_prev_frame): Update.
6777 (deprecated_update_frame_base_hack): Update.
6778 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6779 (frame_id_inner): Ditto.
6780
6781 2003-04-09 Andrew Cagney <cagney@redhat.com>
6782
6783 * defs.h (gdb_print_host_address): Make "addr" parameter a
6784 pointer constant.
6785 * utils.c (gdb_print_host_address): Update.
6786
6787 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6788
6789 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6790 register number for R0 is 0.
6791
6792 2003-04-09 J. Brobecker <brobecker@gnat.com>
6793
6794 * frame.h (struct gdbarch): Add opaque structure definition
6795 to avoid a compilation warning on LynxOS 4.0.
6796
6797 2003-04-09 Andrew Cagney <cagney@redhat.com>
6798
6799 * frame.h (struct frame_info): Delete field "pc". Replace
6800 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6801 structure.
6802 * frame.c (frame_pc_unwind): Update.
6803 (create_sentinel_frame): Do not set "pc".
6804 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6805 (get_frame_pc): Call frame_pc_unwind.
6806 (deprecated_update_frame_pc_hack): Update.
6807 (create_new_frame): Use "pc" not "->pc".
6808
6809 2003-04-09 Andrew Cagney <cagney@redhat.com>
6810
6811 * frame.c (get_frame_id): Eliminate code updating "frame".
6812 (legacy_get_prev_frame): Ditto.
6813 (get_frame_base): Return id.base directly.
6814 (deprecated_update_frame_base_hack): Update "id.base".
6815 * frame.h (struct frame_info): Delete field "frame".
6816
6817 2003-04-09 Andrew Cagney <cagney@redhat.com>
6818
6819 * NEWS: Mention that the "Sequent family" is obsolete.
6820 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6821 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6822 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6823 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6824 * config/i386/tm-ptx4.h: Obsolete file.
6825 * config/i386/tm-ptx.h: Obsolete file.
6826 * symm-tdep.c: Obsolete file.
6827 * config/i386/symmetry.mt: Obsolete file.
6828 * config/i386/tm-symmetry.h: Obsolete file.
6829 * symm-nat.c: Obsolete file.
6830 * config/i386/nm-symmetry.h: Obsolete file.
6831 * config/i386/xm-symmetry.h: Obsolete file.
6832 * config/i386/symmetry.mh: Obsolete file.
6833 * config/i386/nm-ptx4.h: Obsolete file.
6834 * config/i386/ptx4.mh: Obsolete file.
6835 * config/i386/ptx.mt: Obsolete file.
6836 * config/i386/ptx.mh: Obsolete file.
6837 * config/i386/xm-ptx4.h: Obsolete file.
6838 * config/i386/xm-ptx.h: Obsolete file.
6839
6840 2003-04-09 Andrew Cagney <cagney@redhat.com>
6841
6842 Obsolete mips*-*-mach3*.
6843 * NEWS: Mention that mips*-*-mach3* is obsolete.
6844 * m3-nat.c: Obsolete file.
6845 * config/nm-m3.h: Obsolete file.
6846 * config/mips/tm-mipsm3.h: Obsolete file.
6847 * config/mips/mipsm3.mt: Obsolete file.
6848 * config/mips/mipsm3.mh: Obsolete file.
6849 * config/mips/xm-mipsm3.h: Obsolete file.
6850 * mipsm3-nat.c: Obsolete file.
6851 * configure.host: Obsolete mips-dec-mach3*.
6852 * configure.tgt: Obsolete mips*-*-mach3*.
6853
6854 2003-04-09 Andrew Cagney <cagney@redhat.com>
6855
6856 * doublest.h: Update copyright.
6857 (deprecated_store_floating, deprecated_extract_floating): Rename
6858 store_floating and extract_floating. Update comments.
6859 * doublest.c: Update copyright.
6860 (extract_floating_by_length): Replace extract_floating.
6861 (store_floating_by_length): Replace store_floating.
6862 (deprecated_extract_floating): New function.
6863 (deprecated_store_floating): New function.
6864 (extract_typed_floating): Call extract_floating_by_length.
6865 (store_typed_floating): Call store_floating_by_length.
6866 * x86-64-tdep.c (x86_64_store_return_value): Update.
6867 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6868 (sh64_extract_return_value): Update.
6869 (sh_sh4_register_convert_to_virtual): Update.
6870 (sh_sh64_register_convert_to_virtual): Update.
6871 (sh_sh4_register_convert_to_raw): Update.
6872 (sh_sh64_register_convert_to_raw): Update.
6873 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6874 (rs6000_register_convert_to_raw): Update.
6875 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6876 (ia64_register_convert_to_raw): Update.
6877 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6878 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6879 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6880 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6881 (alpha_register_convert_to_raw): Update.
6882
6883 2003-04-08 Andrew Cagney <cagney@redhat.com>
6884
6885 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6886 * gdbarch.h, gdbarch.c: Re-generate.
6887 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6888 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6889 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6890 conditionally, use frame_pc_unwind as an alternative. Add
6891 comments.
6892 * arch-utils.c (init_frame_pc_default): Only call
6893 SAVED_PC_AFTER_CALL when available.
6894
6895 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6896
6897 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6898 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6899 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6900 (start_remote): Ditto.
6901 (handle_inferior_event): Ditto.
6902 (save_inferior_status): Ditto.
6903 (restore_inferior_status): Ditto.
6904 * infcmd.c (attach_command): Ditto.
6905 * fork-child.c (startup_inferior): Ditto.
6906 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6907 * alpha-tdep.c (heuristic_proc_start): Ditto.
6908 * mips-tdep.c (heuristic_proc_start): Ditto.
6909 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6910 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6911 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6912 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6913 * remote-vx.c (vx_create_inferior): Ditto.
6914
6915 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6916
6917 * infrun.c (stop_soon_quietly): Make it an enum, to better
6918 override the default behavior of handle_inferior_event.
6919 (clear_proceed_status): Update uses of stop_soon_quietly to
6920 reflect that it is now an enum.
6921 (start_remote): Ditto.
6922 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6923 is set to handle the new GNU/Linux kernel behavior for
6924 attach/sigstop. Update uses of stop_soon_quietly.
6925 * inferior.h (enum stop_kind): New enum.
6926 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6927 Reset normal handle_inferior_event behavior, afterwards.
6928 * fork-child.c (startup_inferior): Update.
6929 * alpha-tdep.c (heuristic_proc_start): Update.
6930 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6931 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6932 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6933 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6934 * remote-vx.c (vx_create_inferior): Update.
6935 * mips-tdep.c (heuristic_proc_start): Update.
6936
6937 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6938
6939 * disasm.c (dump_insns): Move variables inside loop, or they will
6940 be freed more than once, causing wild memory corruptions.
6941 (gdb_disassembly): Look for the substring "-thread",
6942 instead of "-threads" in the target name, to make sure to find
6943 the 'multi-thread' target. Also, make sure we do the right thing
6944 with the "core" target.
6945
6946 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6947
6948 * mips-tdep.c (mips_print_fp_register): New function, created from
6949 do_fp_register_row(). Registers are now (also) printed as hex.
6950 Only one register is printed per row.
6951 (mips_print_register, do_fp_register_row): Print floating point
6952 registers with mips_print_fp_register().
6953
6954 2003-04-06 Andrew Cagney <cagney@redhat.com>
6955
6956 * valprint.h (inspect_it): Add extern declaration.
6957 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6958 (selectors_info, classes_info): Ditto.
6959 (find_objc_msgcall): Fix indentation.
6960 (objc_printstr): Delete extern declarations.
6961
6962 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6963
6964 2003-04-06 Andrew Cagney <cagney@redhat.com>
6965
6966 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6967 Update comment.
6968 * frame.c (legacy_saved_regs_this_id): Update.
6969 (legacy_get_prev_frame): Update.
6970 * xstormy16-tdep.c: Update comment.
6971 * sparc-tdep.c (sparc_frame_chain): Update comment.
6972 * blockframe.c (legacy_frame_chain_valid): Update.
6973
6974 2003-04-06 Andrew Cagney <cagney@redhat.com>
6975
6976 * valprint.c (val_print_type_code_int): Delete #ifdef
6977 PRINT_TYPELESS_INTEGER code.
6978
6979 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6980 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6981 multi-arch definition.
6982 * gdbarch.h: Re-generate.
6983
6984 2003-04-05 Andrew Cagney <cagney@redhat.com>
6985
6986 Eliminate FRAME_FIND_SAVED_REGS.
6987 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6988 Change FSR parameter to a pointer.
6989 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6990 Assume FSR parameter is a pointer.
6991 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6992 Make fsr a pointer.
6993 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6994 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6995 saved_regs a pointer.
6996 (hppa_frame_saved_pc): Ditto.
6997 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6998 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6999 pointer.
7000 (restore_pc_queue): Make fsr a pointer.
7001 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7002 (hppa_frame_chain): Make saved_regs a pointer, call
7003 hppa_frame_init_saved_regs.
7004 * sparc-tdep.c: Include "gdb_assert.h".
7005 (sparc_frame_find_saved_regs): Replace internal_error with
7006 gdb_assert.
7007 * remote-vxsparc.c (vx_read_register): Delete reference to
7008 FRAME_FIND_SAVED_REGS.
7009 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7010 * gdbarch.h: Regenerate.
7011 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7012 (deprecated_get_frame_saved_regs): Delete declaration.
7013 (struct frame_saved_regs): Delete definition.
7014 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7015 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7016 (hppa_frame_find_saved_regs): Delete declaration.
7017 (FRAME_FIND_SAVED_REGS): Delete macro.
7018 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7019 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7020 FRAME_FIND_SAVED_REGS in comment.
7021
7022 2003-04-05 Andrew Cagney <cagney@redhat.com>
7023
7024 * frame.c (frame_func_unwind, get_frame_func): New functions.
7025 * frame.h (get_frame_func, frame_func_unwind): Declare.
7026 (struct frame_info): Add field "prev_func" for caching the
7027 previous frame's function address.
7028 * arm-tdep.c (arm_frameless_function_invocation): Combine
7029 get_pc_function_start and get_frame_pc into get_frame_func.
7030 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7031 (sh64_nofp_frame_init_saved_regs): Ditto.
7032 * s390-tdep.c (s390_function_start): Ditto.
7033 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7034 (rs6000_frameless_function_invocation): Ditto.
7035 (rs6000_frame_saved_pc): Ditto.
7036 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7037 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7038 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7039 (i386_frame_init_saved_regs): Ditto.
7040 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7041 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7042 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7043 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7044 * blockframe.c (frameless_look_for_prologue): Ditto.
7045
7046 2003-04-05 Andrew Cagney <cagney@redhat.com>
7047
7048 * frame.c (legacy_get_prev_frame): Link prev to next at the
7049 function start. Update comments.
7050
7051 2003-04-05 Andrew Cagney <cagney@redhat.com>
7052
7053 * frame.c (get_frame_id): Update comment.
7054 (legacy_get_prev_frame): Update comment.
7055 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7056 * gdbarch.h: Regenerate.
7057 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7058 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7059
7060 2003-04-05 Andrew Cagney <cagney@redhat.com>
7061
7062 * stack.c (print_frame_info): Use get_frame_pc.
7063
7064 2003-04-04 Andrew Cagney <cagney@redhat.com>
7065
7066 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7067 the frame's type from the unwinder.
7068 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7069 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7070 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7071 (get_frame_base_address): Use get_frame_type.
7072 (get_frame_locals_address, get_frame_args_address): Ditto.
7073 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7074 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7075 (struct frame_info): Add comment explaining why the frame contains
7076 a "type" field.
7077 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7078 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7079 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7080 NORMAL_FRAME.
7081 * frame-unwind.h: Include "frame.h".
7082 (struct frame_unwind): Add "type" field.
7083 * Makefile.in (frame_unwind_h): Add $(frame_h).
7084
7085 2003-04-04 Andrew Cagney <cagney@redhat.com>
7086
7087 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7088 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7089 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7090 get_frame_base.
7091 (d10v_unwind_dummy_id): Use frame_id_build.
7092 * frame.c (find_frame_sal): Use get_frame_pc.
7093 (create_new_frame): Use deprecated_update_frame_pc_hack and
7094 deprecated_update_frame_base_hack.
7095 (create_sentinel_frame): Add comment about ->pc going away.
7096 (get_prev_frame): Add comment about ->pc going away.
7097 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7098 frame_id_build, deprecated_update_frame_pc_hack and
7099 deprecated_update_frame_base_hack.
7100 (select_frame): Use get_frame_pc.
7101 (legacy_saved_regs_this_id): Use frame_id_build.
7102
7103 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7104
7105 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7106 signed integer case.
7107 (classify_argument): Handle enumerations and references.
7108
7109 2003-04-04 Andrew Cagney <cagney@redhat.com>
7110
7111 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7112 ID to NULL.
7113
7114 2003-04-01 Adam Fedor <fedor@gnu.org>
7115
7116 * gdb/objc-lang.c (selectors_info): Replace calls to
7117 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7118 SYMBOL_NATURAL_NAME.
7119 (classes_info, find_methods): Likewise.
7120
7121 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7122
7123 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7124 ``mach'' to the value determined by bfd_default_set_arch_mach().
7125
7126 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7127
7128 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7129 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7130 (mi-cmd-file.o): Update dependencies.
7131
7132 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7133
7134 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7135 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7136
7137 2003-04-01 Adam Fedor <fedor@gnu.org>
7138
7139 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7140 * language.h (struct language_defn): Add la_demangle.
7141 (language_demangle): Declare.
7142 * language.c (language_demangle): New function.
7143 (unk_lang_demangle): Likewise.
7144 (unknown_language_defn, auto_language_defn, local_language_defn):
7145 Add ukn_lang_demangle.
7146 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7147 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7148 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7149 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7150 * jv-lang.c (java_demangle): New function
7151 (java_language_defn): Use it for la_demangle element.
7152 * objc-lang.c (objc_demangle): Add options argument
7153 (objc_language_defn): Use objc_demangle for la_demangle element.
7154 * maint.c (maintenance_demangle): Replace switch with
7155 call to language_demangle.
7156 * utils.c (fprintf_symbol_filtered): Likewise.
7157
7158 2003-04-01 Andrew Cagney <cagney@redhat.com>
7159
7160 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7161 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7162 PRINT_TYPELESS_INTEGER.
7163 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7164 PUSH_RETURN_ADDRESS.
7165
7166 2003-04-01 Andrew Cagney <cagney@redhat.com>
7167
7168 * Makefile.in (d10v-tdep.o): Update dependencies.
7169 * d10v-tdep.c: Include "frame-base.h".
7170 (d10v_frame_unwind): Make constant.
7171 (d10v_frame_base_address): New function.
7172 (d10v_frame_base): New variable.
7173 (d10v_gdbarch_init): Set frame_base default.
7174 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7175 comment for base.
7176 (d10v_frame_unwind_cache): Set and use "prev_sp".
7177 (d10v_frame_this_id): Use the previous frame's inner most stack
7178 address and this frame's func address for the frame ID. Use
7179 frame_id_build. Don't analyze beyond the current instruction.
7180
7181 2003-04-01 Andrew Cagney <cagney@redhat.com>
7182
7183 * frame.h (get_frame_locals_address, get_frame_args_address):
7184 Refer to the base address, instead of the address of the first
7185 local or parameter.
7186
7187 2003-04-01 Andrew Cagney <cagney@redhat.com>
7188
7189 Add frame debug info addresses:
7190 * frame-base.c: New file.
7191 * frame-base.h: New file.
7192 * frame.h (struct frame_base): Add opaque declaration.
7193 (get_frame_base): Update comment.
7194 (get_frame_base_address): Declare.
7195 (get_frame_locals_address): Declare.
7196 (get_frame_args_address): Declare.
7197 (struct frame_info): Add "base" and "base_cache". Update
7198 comments on the unwinder.
7199 * frame.c: Include "frame-base.h".
7200 (get_frame_locals_address): New function.
7201 (get_frame_base_address): New function.
7202 (get_frame_args_address): New function.
7203 * findvar.c (read_var_value): Use get_frame_locals_address and
7204 get_frame_args_address.
7205 * stack.c (frame_info): Use get_frame_locals_address and
7206 get_frame_args_address.
7207 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7208 moved to "frame-base.c".
7209 * printcmd.c (print_frame_nameless_args): Ditto.
7210 * symtab.h (address_class): Update comments.
7211 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7212 get_frame_base_address.
7213 * dwarf2expr.c (execute_stack_op): Ditto.
7214 * Makefile.in (frame_base_h): Define.
7215 (frame.o): Update dependencies.
7216 (frame-base.o): Add dependencies.
7217 (SFILES): Add frame-base.c.
7218 (COMMON_OBS): Add frame-base.o.
7219
7220 2003-04-01 Andrew Cagney <cagney@redhat.com>
7221
7222 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7223 CALL_DUMMY_LENGTH): Ditto.
7224 * gdbarch.c: Re-generate.
7225 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7226 (CALL_DUMMY_LENGTH): Delete macro.
7227 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7228 * arm-tdep.c (arm_gdbarch_init): Ditto.
7229 * avr-tdep.c (avr_gdbarch_init): Ditto.
7230 * cris-tdep.c (cris_gdbarch_init): Ditto.
7231 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7232 * frv-tdep.c (frv_gdbarch_init): Ditto.
7233 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7234 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7235 * i386-tdep.c (i386_gdbarch_init): Ditto.
7236 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7237 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7238 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7239 * mips-tdep.c (mips_gdbarch_init): Ditto.
7240 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7241 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7242 * s390-tdep.c (s390_gdbarch_init): Ditto.
7243 * sh-tdep.c (sh_gdbarch_init): Ditto.
7244 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7245 * v850-tdep.c (v850_gdbarch_init): Ditto.
7246 * vax-tdep.c (vax_gdbarch_init): Ditto.
7247 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7248
7249 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7250
7251 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7252
7253 2003-04-01 Andrew Cagney <cagney@redhat.com>
7254
7255 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7256 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7257 * gdbarch.h, gdbarch.c: Re-generate.
7258 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7259 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7260 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7261 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7262 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7263 * infcmd.c (run_stack_dummy): Simplify assuming
7264 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7265 * infrun.c (handle_inferior_event): Ditto.
7266 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7267 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7268 * arm-tdep.c (arm_gdbarch_init): Ditto.
7269 * avr-tdep.c (avr_gdbarch_init): Ditto.
7270 * cris-tdep.c (cris_gdbarch_init): Ditto.
7271 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7272 * frv-tdep.c (frv_gdbarch_init): Ditto.
7273 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7274 * i386-tdep.c (i386_gdbarch_init): Ditto.
7275 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7276 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7277 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7278 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7279 * mips-tdep.c (mips_gdbarch_init): Ditto.
7280 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7281 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7282 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7283 * s390-tdep.c (s390_gdbarch_init): Ditto.
7284 * sh-tdep.c (sh_gdbarch_init): Ditto.
7285 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7286 * v850-tdep.c (v850_gdbarch_init): Ditto.
7287 * vax-tdep.c (vax_gdbarch_init): Ditto.
7288 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7289
7290 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7291
7292 * symfile.c (symfile_relocate_debug_section): Update call to
7293 bfd_simple_get_relocated_section_contents.
7294
7295 2003-03-31 Andrew Cagney <cagney@redhat.com>
7296
7297 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7298 * gdbarch.h, gdbarch.c: Regenerate.
7299 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7300 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7301 available.
7302 * frame.h (generic_fix_call_dummy): Delete declaration.
7303 * dummy-frame.h: Update comment.
7304 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7305 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7306 fix_call_dummy.
7307 * sh-tdep.c (sh_gdbarch_init): Ditto.
7308 * s390-tdep.c (s390_gdbarch_init): Ditto.
7309 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7310 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7312 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7313 * i386-tdep.c (i386_gdbarch_init): Ditto.
7314 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7315 * frv-tdep.c (frv_gdbarch_init): Ditto.
7316 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7317 * cris-tdep.c (cris_gdbarch_init): Ditto.
7318 * avr-tdep.c (avr_gdbarch_init): Ditto.
7319 * arm-tdep.c (arm_gdbarch_init): Ditto.
7320
7321 2003-03-31 J. Brobecker <brobecker@gnat.com>
7322
7323 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7324 (INIT_FRAME_AP): Likewise.
7325 (EXTRA_FRAME_INFO): Likewise.
7326
7327 2003-03-31 Andrew Cagney <cagney@redhat.com>
7328
7329 * gdbarch.sh: Include "symfile.h".
7330 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7331 * gdbarch.h, gdbarch.c: Re-generate.
7332 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7333 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7334 call_dummy_address, the default is at entry_point_address.
7335 * v850-tdep.c (v850_gdbarch_init): Ditto.
7336 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7337 * sh-tdep.c (sh_gdbarch_init): Ditto.
7338 * s390-tdep.c (s390_gdbarch_init): Ditto.
7339 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7340 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7341 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7342 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7343 * i386-tdep.c (i386_gdbarch_init): Ditto.
7344 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7345 * frv-tdep.c (frv_gdbarch_init): Ditto.
7346 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7347 * cris-tdep.c (cris_gdbarch_init): Ditto.
7348 * arm-tdep.c (arm_gdbarch_init): Ditto.
7349
7350 2003-03-31 Andrew Cagney <cagney@redhat.com>
7351
7352 * gdbarch.sh (CALL_DUMMY_P): Delete.
7353 * gdbarch.h, gdbarch.c: Re-generate.
7354 * inferior.h (CALL_DUMMY_P): Delete macro.
7355 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7356 * vax-tdep.c (vax_gdbarch_init): Update.
7357 * v850-tdep.c (v850_gdbarch_init): Update.
7358 * sparc-tdep.c (sparc_gdbarch_init): Update.
7359 * sh-tdep.c (sh_gdbarch_init): Update.
7360 * s390-tdep.c (s390_gdbarch_init): Update.
7361 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7362 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7363 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7364 * mips-tdep.c (mips_gdbarch_init): Update.
7365 * mcore-tdep.c (mcore_gdbarch_init): Update.
7366 * m68k-tdep.c (m68k_gdbarch_init): Update.
7367 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7368 * ia64-tdep.c (ia64_gdbarch_init): Update.
7369 * i386-tdep.c (i386_gdbarch_init): Update.
7370 * h8300-tdep.c (h8300_gdbarch_init): Update.
7371 * frv-tdep.c (frv_gdbarch_init): Update.
7372 * d10v-tdep.c (d10v_gdbarch_init): Update.
7373 * cris-tdep.c (cris_gdbarch_init): Update.
7374 * breakpoint.c (deprecated_frame_in_dummy): Update.
7375 * avr-tdep.c (avr_gdbarch_init): Update.
7376 * alpha-tdep.c (alpha_gdbarch_init): Update.
7377 * arm-tdep.c (arm_gdbarch_init): Update.
7378 * dummy-frame.c (dummy_frame_this_id): Update comments.
7379 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7380 * frame.c (legacy_get_prev_frame): Ditto.
7381 * valops.c (call_function_by_hand): Delete function.
7382 (hand_function_call): Rename to call_function_by_hand
7383
7384 2003-03-30 Andrew Cagney <cagney@redhat.com>
7385
7386 2002-11-10 Klee Dienes <kdienes@apple.com>
7387 * value.h (struct value): Update comment.
7388
7389 2003-03-30 Andrew Cagney <cagney@redhat.com>
7390
7391 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7392 D10V_FP_REGNUM.
7393 (d10v_gdbarch_init): Do not set fp_regnum.
7394
7395 * frame.c (get_frame_base): Force ID initialization.
7396 (get_prev_frame): Move computation of the frame ID from here ...
7397 (get_frame_id): ... to here.
7398 (legacy_get_prev_frame): Mark the frame ID as valid.
7399 * frame.h (struct frame_info): Add field "id_p".
7400
7401 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7402
7403 * i386-tdep.c (i386_store_struct_return): Removed.
7404 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7405
7406 2003-03-30 Andrew Cagney <cagney@redhat.com>
7407
7408 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7409 * gdbarch.h, gdbarch.c: Regenerate.
7410 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7411 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7412 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7413 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7414 * i386-tdep.c (i386_gdbarch_init): Ditto.
7415 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7416 * cris-tdep.c (cris_gdbarch_init): Ditto.
7417 * vax-tdep.c (vax_gdbarch_init): Ditto.
7418 * s390-tdep.c (s390_gdbarch_init): Ditto.
7419 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7420 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7421 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7422 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7423 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7424 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7425 * sparc-tdep.c (sparc_gdbarch_init): Update.
7426 * sh-tdep.c (sh_gdbarch_init): Update.
7427 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7428 * mips-tdep.c (mips_gdbarch_init): Update.
7429 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7430 * ia64-tdep.c (ia64_gdbarch_init): Update.
7431 * frv-tdep.c (frv_gdbarch_init): Update.
7432 * avr-tdep.c (avr_gdbarch_init): Update.
7433 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7434 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7435 instead of when push_dummy_call is not available.
7436
7437 2003-03-30 Andrew Cagney <cagney@redhat.com>
7438
7439 * infttrace.c: Include "gdbthread.h".
7440 (parent_attach_all): Fix function signature.
7441 (call_ptrace): Update call.
7442 * Makefile.in (infttrace.o): Update dependencies.
7443
7444 2003-03-30 Andrew Cagney <cagney@redhat.com>
7445
7446 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7447 PUSH_RETURN_ADDRESS.
7448 * gdbarch.h, gdbarch.c: Regenerate.
7449 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7450 * x86-64-tdep.c (x86_64_init_abi): Update.
7451 * v850-tdep.c (v850_gdbarch_init): Update.
7452 * sparc-tdep.c (sparc_gdbarch_init): Update.
7453 * sh-tdep.c (sh_gdbarch_init): Update.
7454 * s390-tdep.c (s390_gdbarch_init): Update.
7455 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7456 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7457 * mips-tdep.c (mips_gdbarch_init): Update.
7458 * mcore-tdep.c (mcore_gdbarch_init): Update.
7459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7460 * ia64-tdep.c (ia64_gdbarch_init): Update.
7461 * i386-tdep.c (i386_gdbarch_init): Update.
7462 * h8300-tdep.c (h8300_gdbarch_init): Update.
7463 * frv-tdep.c (frv_gdbarch_init): Update.
7464 * cris-tdep.c (cris_gdbarch_init): Update.
7465 * avr-tdep.c (avr_gdbarch_init): Update.
7466 * arm-tdep.c (arm_gdbarch_init): Update.
7467 * valops.c (hand_function_call): Update.
7468
7469 2003-03-29 Andrew Cagney <cagney@redhat.com>
7470
7471 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7472 sizeof_call_dummy_words.
7473 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7474 define.
7475 * gdbarch.h: Regenerate.
7476
7477 2003-03-29 Andrew Cagney <cagney@redhat.com>
7478
7479 * infttrace.h: New file.
7480 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7481 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7482 (hpread_read_doc_function_type): Detect an initialized type1.
7483 (hpread_quick_traverse): Initialize mod_name_string.
7484 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7485 (som_solib_get_solib_by_pc): Declare.
7486 (so_lib_thread_start_addr): Declare.
7487 (no_shared_libraries): Declare.
7488 * somread.c (init_import_symbols): Make static. Add forward
7489 declaration.
7490 * config/pa/nm-hppah.h: Include "infttrace.h" for
7491 parent_attach_all.
7492 (hppa_insert_hw_watchpoint): Declare.
7493 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7494 * hppah-nat.c: Include "gdb_string.h".
7495 (parent_attach_all): Delete extern declaration, moved to
7496 "infttrace.h".
7497 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7498 int.
7499 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7500 * Makefile.in (infttrace_h): Define.
7501 (hpread.o): Update dependencies.
7502 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7503 * hppa-hpux-tdep.c: Include "gdb_string.h".
7504 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7505 * infrun.c (handle_inferior_event): Always initialize
7506 stepped_after_stopped_by_watchpoint. Add default and remove
7507 fallthrough in switch statement.
7508 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7509 parameter to int.
7510 (hppa_remove_hw_watchpoint): Ditto.
7511
7512 2003-03-29 Andrew Cagney <cagney@redhat.com>
7513
7514 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7515 offset.
7516
7517 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7518
7519 * arm-tdep.c (arm_push_arguments): Delete.
7520 (struct stack_item): New type.
7521 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7522 (arm_store_struct_return): Delte.
7523 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7524 arm_push_arguments or arm_store_struct_return.
7525
7526 2003-03-28 Andrew Cagney <cagney@redhat.com>
7527
7528 * Makefile.in (d10v-tdep.o): Update dependencies.
7529 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7530 * d10v-tdep.c: Include "remote.h".
7531 (target_resume_hook): Delete extern declaration.
7532 (target_wait_loop_hook): Ditto.
7533 (tdisassemble_command): Eliminate assignment in "if" conditional.
7534 (d10v_ts2_register_sim_regno): Eliminate call to
7535 legacy_register_sim_regno.
7536 (d10v_ts3_register_sim_regno): Ditto.
7537
7538 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7539
7540 * thread.c: Reindented.
7541 * lin-lwp.c: Ditto.
7542 * linux-proc.c: Ditto.
7543
7544 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7545
7546 * MAINTAINERS (write after approval): Add myself.
7547
7548 2003-03-27 Theodore A. Roth <troth@openavr.org>
7549
7550 * objc-exp.y: Add missing semi-colons.
7551
7552 2003-03-27 Andrew Cagney <cagney@redhat.com>
7553
7554 * regcache.c (write_sp): Delete function and references.
7555 * inferior.h (write_sp): Delete declaration.
7556 * valops.c (hand_function_call): Replace write_sp with
7557 TARGET_WRITE_SP.
7558 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7559 (sparc_pop_frame): Ditto.
7560
7561 2003-03-27 Andrew Cagney <cagney@redhat.com>
7562
7563 * NEWS: Mention removal of support for hppa*-*-bsd* and
7564 hppa*-*-osf* natives, and hppa*-*-pro* target.
7565 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7566 * config/pa/xm-pa.h: Obsolete file.
7567 * config/pa/xm-hppab.h: Obsolete file.
7568 * config/pa/nm-hppab.h: Obsolete file.
7569 * config/pa/tm-hppab.h: Obsolete file.
7570 * config/pa/tm-hppao.h: Obsolete file.
7571 * config/pa/nm-hppao.h: Obsolete file.
7572 * config/pa/tm-pro.h: Obsolete file.
7573 * config/pa/hppaosf.mt: Obsolete file.
7574 * config/pa/hppaosf.mh: Obsolete file.
7575 * config/pa/hppapro.mt: Obsolete file.
7576 * config/pa/hppabsd.mt: Obsolete file.
7577 * config/pa/hppabsd.mh: Obsolete file.
7578 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7579 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7580 hppa*-*-osf*.
7581
7582 2003-03-27 Andrew Cagney <cagney@redhat.com>
7583
7584 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7585 push_arguments. Don't set push_return_address or write_sp.
7586 (d10v_push_dummy_call): Replace d10v_push_arguments.
7587 (d10v_push_return_address, d10v_write_sp): Delete function,
7588 handled by push_dummy_call.
7589
7590 2003-03-26 Andrew Cagney <cagney@redhat.com>
7591
7592 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7593 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7594 regcache and dummy_addr parameters.
7595 * gdbarch.h, gdbarch.c: Re-generate.
7596 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7597 available; assume it will handle stack alignment and return
7598 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7599 legacy_push_arguments.
7600 (legacy_push_arguments): Rename default_push_arguments.
7601 * value.h (legacy_push_arguments): Rename default_push_arguments.
7602 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7603 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7604 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7605 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7606 * config/i386/tm-symmetry.h: Update.
7607 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7608 * x86-64-tdep.c (x86_64_init_abi): Update.
7609 * v850-tdep.c (v850_gdbarch_init): Update.
7610 * sparc-tdep.c (sparc_gdbarch_init): Update.
7611 * sh-tdep.c (sh_gdbarch_init): Update.
7612 * s390-tdep.c (s390_gdbarch_init): Update.
7613 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7614 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7615 * mips-tdep.c (mips_gdbarch_init): Update.
7616 * mcore-tdep.c (mcore_gdbarch_init): Update.
7617 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7618 * ia64-tdep.c (ia64_gdbarch_init): Update.
7619 * i386-tdep.c (i386_gdbarch_init): Update.
7620 * hppa-tdep.c (hppa_gdbarch_init): Update.
7621 * h8300-tdep.c (h8300_gdbarch_init): Update.
7622 * frv-tdep.c (frv_gdbarch_init): Update.
7623 * d10v-tdep.c (d10v_gdbarch_init): Update.
7624 * cris-tdep.c (cris_gdbarch_init): Update.
7625 * avr-tdep.c (avr_gdbarch_init): Update.
7626 * arm-tdep.c (arm_gdbarch_init): Update.
7627 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7628 * alpha-tdep.c (alpha_gdbarch_init): Update.
7629
7630 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7631
7632 * signals/signals.c (do_target_signal_to_host): Correct realtime
7633 signal range test.
7634
7635 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7636
7637 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7638 (struct sal_chain, map_catch_names): Remove.
7639 (catch_exception_command_1): Don't call
7640 handle_gnu_4_16_catch_command.
7641
7642 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7643
7644 From Mark Dettinger <dettinge@de.ibm.com>:
7645 * dwarf2cfi.c (read_2u): Increment pointer by two.
7646
7647 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7648
7649 * signals/signals.c: Fix typos in last change.
7650
7651 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7652
7653 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7654 not already defined. Use __SIGRTMIN if available.
7655 (target_signal_from_host): Remove SIGRTMIN block.
7656 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7657 the signal is within the realtime range.
7658
7659 2003-03-25 Adam Fedor <fedor@gnu.org>
7660
7661 * Makefile.in (infrun.o): Add $(language_h)
7662 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7663 for language specific trampolines.
7664 * language.h (struct language_defn): Add skip_trampoline.
7665 (skip_language_trampoline): Declare.
7666 * language.c (unk_lang_trampoline, skip_language_trampoline):
7667 New functions.
7668 (unknown_language_defn, auto_language_defn, local_language_defn):
7669 Add ukn_lang_trampoline.
7670 * ada-lang.c (ada_language_defn): Add NULL for language
7671 specific skip_trampoline.
7672 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7673 scm-lang.c: Likewise.
7674 * objc-lang.c (objc_skip_trampoline): New function.
7675 (objc_language_defn): Add objc_skip_trampoline.
7676
7677 2003-03-25 Andrew Cagney <cagney@redhat.com>
7678
7679 * frame.c (get_prev_frame): Delay validating a frame's ID -
7680 non-NULL, didn't go backwards - until an attempt to unwind it to
7681 the previous frame.
7682
7683 2003-03-25 Andrew Cagney <cagney@redhat.com>
7684
7685 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7686 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7687 * gdbarch.h, gdbarch.c: Re-generate.
7688 * config/sparc/tm-sparc.h
7689 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7690 * sparc-tdep.c (sparc_gdbarch_init): Set
7691 deprecated_extra_stack_alignment_needed.
7692 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7693 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7694 extra_stack_alignment_needed.
7695 * v850-tdep.c (v850_gdbarch_init): Ditto.
7696 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7697 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7698 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7699 * cris-tdep.c (cris_gdbarch_init): Ditto.
7700 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7701 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7702
7703 2003-03-25 Andrew Cagney <cagney@redhat.com>
7704
7705 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7706 STORE_STRUCT_RETURN.
7707 * gdbarch.h, gdbarch.c: Regenerate.
7708 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7709 (d10v_push_arguments): Set the struct return register.
7710 (d10v_gdbarch_init): Update.
7711 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7712 * x86-64-tdep.c (x86_64_init_abi): Update.
7713 * vax-tdep.c (vax_gdbarch_init): Update.
7714 * v850-tdep.c (v850_gdbarch_init): Update.
7715 * sparc-tdep.c (sparc_gdbarch_init): Update.
7716 * sh-tdep.c (sh_gdbarch_init): Update.
7717 * s390-tdep.c (s390_gdbarch_init): Update.
7718 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7719 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7720 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7721 * mips-tdep.c (mips_gdbarch_init): Update.
7722 * mcore-tdep.c (mcore_gdbarch_init): Update.
7723 * m68k-tdep.c (m68k_gdbarch_init): Update.
7724 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7725 * ia64-tdep.c (ia64_gdbarch_init): Update.
7726 * i386-tdep.c (i386_gdbarch_init): Update.
7727 * hppa-tdep.c (hppa_gdbarch_init): Update.
7728 * h8300-tdep.c (h8300_gdbarch_init): Update.
7729 * frv-tdep.c (frv_gdbarch_init): Update.
7730 * cris-tdep.c (cris_gdbarch_init): Update.
7731 * avr-tdep.c (avr_gdbarch_init): Update.
7732 * arm-tdep.c (arm_gdbarch_init): Update.
7733 * alpha-tdep.c (alpha_gdbarch_init): Update.
7734
7735 2003-03-25 Andrew Cagney <cagney@redhat.com>
7736
7737 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7738 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7739 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7740 * gdbarch.h, gdbarch.c: Regenerate.
7741 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7742 call_dummy_stack_adjust_p.
7743 * vax-tdep.c (vax_gdbarch_init): Ditto.
7744 * v850-tdep.c (v850_gdbarch_init): Ditto.
7745 * sh-tdep.c (sh_gdbarch_init): Ditto.
7746 * s390-tdep.c (s390_gdbarch_init): Ditto.
7747 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7748 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7749 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7750 * mips-tdep.c (mips_gdbarch_init): Ditto.
7751 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7752 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7753 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7754 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7755 * i386-tdep.c (i386_gdbarch_init): Ditto.
7756 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7757 * frv-tdep.c (frv_gdbarch_init): Ditto.
7758 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7759 * cris-tdep.c (cris_gdbarch_init): Ditto.
7760 * avr-tdep.c (avr_gdbarch_init): Ditto.
7761 * arm-tdep.c (arm_gdbarch_init): Ditto.
7762 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7763 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7764 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7765 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7766 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7767 call_dummy_stack_adjust_p.
7768 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7769 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7770 * sparc-tdep.c (sparc32_push_arguments): Update.
7771 * valops.c (hand_function_call): Update.
7772
7773 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7774
7775 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7776 set_gdbarch_char_signed.
7777
7778 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7779
7780 PR cli/548
7781 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7782
7783 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7784
7785 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7786 (_initialize_arm_tdep): Don't set tm_print_insn.
7787
7788 2003-03-24 Adam Fedor <fedor@gnu.org>
7789
7790 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7791 * objc-lang.h: Add multiple inclusion protection.
7792 (start_msglist, add_msglist, end_msglist): Additional declarations.
7793
7794 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7795
7796 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7797 value was renamed to ARM_FLOAT_SOFT_FPA.
7798
7799 2003-03-23 Andrew Cagney <cagney@redhat.com>
7800
7801 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7802 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7803 * gdbarch.h, gdbarch.c: Regenerate.
7804 * valops.c (hand_function_call): Update.
7805 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7806 * frame.c (legacy_saved_regs_this_id): Update.
7807 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7808 * dummy-frame.h: Update.
7809 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7810 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7811 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7812 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7813 * config/m68k/tm-sun3.h: Update.
7814 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7815 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7816 * x86-64-tdep.c (x86_64_init_abi): Update.
7817 * vax-tdep.c (vax_gdbarch_init): Update.
7818 * v850-tdep.c (v850_gdbarch_init): Update.
7819 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7820 * sh-tdep.c (sh_gdbarch_init): Update.
7821 * s390-tdep.c (s390_gdbarch_init): Update.
7822 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7823 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7824 (frame_get_saved_regs): Update.
7825 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7826 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7827 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7828 * mips-tdep.c (mips_gdbarch_init): Update.
7829 * mcore-tdep.c (mcore_gdbarch_init): Update.
7830 * m68k-tdep.c (m68k_gdbarch_init): Update.
7831 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7832 * ia64-tdep.c (ia64_gdbarch_init): Update.
7833 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7834 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7835 (i386_interix_back_one_frame): Update.
7836 * hppa-tdep.c (hppa_gdbarch_init): Update.
7837 (hppa_init_extra_frame_info): Update.
7838 * h8300-tdep.c (h8300_gdbarch_init): Update.
7839 * frv-tdep.c (frv_gdbarch_init): Update.
7840 * cris-tdep.c (cris_gdbarch_init): Update.
7841 * avr-tdep.c (avr_gdbarch_init): Update.
7842 * arm-tdep.c (arm_gdbarch_init): Update.
7843 * alpha-tdep.c (alpha_gdbarch_init): Update.
7844
7845 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7846
7847 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7848 (arm_get_fp_model): Declare.
7849 * arm-tdep.c (fp_model_strings): New string array.
7850 (arm_fp_model, current_fp_model): New variables.
7851 (arm_get_fp_model): New function.
7852 (arm_set_fp): New function.
7853 (set_fp_model_sfunc): New function.
7854 (show_fp_model): New function.
7855 (_initialize_arm_tdep): Add new command to set/show the FPU.
7856 (arm_extract_return_value): Use arm_get_fp_model.
7857 (arm_store_return_value): Likewise.
7858 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7859 to initialize the floating-point data types.
7860 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7861 model is FPA.
7862
7863 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7864
7865 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7866 the current setting of each value.
7867 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7868 new_set and new_show. Use add_setshow_cmd_full and
7869 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7870 commands and add new version as subcommands of "set/show arm".
7871
7872 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7873
7874 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7875 (set_arm_command, show_arm_command): New functions.
7876 (_initialize_arm_tdep): Add them.
7877 (num_disassembly_options): Renamed from num_flavor_options.
7878 (valid_disassembly_styles): Renamed from valid_flavors.
7879 (disassembly_style): Renamed from disassembly_flavor.
7880 (set_disassembly_style_sfunc): Renamed from
7881 set_disassembly_flavor_sfunc.
7882 (set_disassembly_style): Renamed from set_disassembly_flavor.
7883 (arm_othernames): Updated.
7884 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7885 command. Add "set/show arm disassembly" commands. Deprecate
7886 "othernames" command.
7887
7888 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7889
7890 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7891 (arm-tdep.o): Depend on elf_arm_h.
7892
7893 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7894
7895 * Makefile.in (coff_internal_h): Define.
7896 (arm-tdep.o): Update dependencies.
7897
7898 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7899
7900 * arm-tdep.c (prologue_cache): Delete.
7901 (check_prologue_cache, save_prologue_cache): Delete.
7902 (arm_scan_prologue): Don't check or update the prologue_cache.
7903 (arm_gdb_arch_init): Don't initialize it.
7904 (_initialize_arm_tdep): Likewise.
7905
7906 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7907
7908 * MAINTAINERS (tui): Maintainer of tui code.
7909
7910 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7911
7912 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7913 (i386-cygwin-tdep.o): Add dependencies.
7914 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7915 * i386-cygwin-tdep.c: New file.
7916 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7917 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7918
7919 2003-03-20 Andrew Cagney <cagney@redhat.com>
7920
7921 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7922 (handle_inferior_event): Remove code calling
7923 DYNAMIC_TRAMPOLINE_NEXTPC.
7924
7925 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7926 already has a full path.
7927
7928 * main.c (gdb_main): Return 1.
7929 (captured_main): Call error to report an invalid interpreter.
7930
7931 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7932 * alpha-osf1-tdep.c: Include "gdb_string.h".
7933
7934 2003-03-19 J. Brobecker <brobecker@gnat.com>
7935
7936 Continuing work to convert the hppa targets to multiarch partial.
7937
7938 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7939 method, now that hppa_push_dummy_frame has a conformant prototype.
7940 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7941 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7942 for the switch to multiarch partial.
7943
7944 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7945
7946 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7947 when iss is issNull.
7948
7949 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7950
7951 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7952 NUM_REGS bounds check.
7953
7954 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7955
7956 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7957 * mips-tdep.c (gdb_assert.h): Include.
7958 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7959 (mips_register_name): Handle integer registers explicitly. Add
7960 bounds checking.
7961 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7962 (mips_lsi33k_reg_names): Don't list integer registers; they're
7963 handled by mips_register_name() now.
7964 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7965 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7966 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7967 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7968 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7969
7970 2003-03-18 Andrew Cagney <cagney@redhat.com>
7971
7972 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7973 a void pointer.
7974 * gdbtypes.h (print_scalar_formatted): Update declaration.
7975 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7976
7977 2003-03-18 J. Brobecker <brobecker@gnat.com>
7978
7979 * infrun.c (observer.h): Add #include.
7980 (normal_stop): Add call to observer_notify_normal_stop.
7981 * Makefile.in (infrun.o): Add dependency on observer.h.
7982
7983 2003-03-18 J. Brobecker <brobecker@gnat.com>
7984
7985 Continuing work to convert the hppa targets to multiarch partial.
7986 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7987 parameter. Reformat comment.
7988 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7989 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7990 to match new profile.
7991
7992 2003-03-18 J. Brobecker <brobecker@gnat.com>
7993
7994 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7995 appear to be working in any case.
7996
7997 2003-03-18 J. Brobecker <brobecker@gnat.com>
7998
7999 * observer.c (observer_test_first_observer): New static variable.
8000 (observer_test_second_observer): Likewise.
8001 (observer_test_third_observer): Likewise.
8002 (observer_test_first_notification_function): New static function.
8003 (observer_test_second_notification_function): Likewise.
8004 (observer_test_third_notification_function): Likewise.
8005
8006 2003-03-17 J. Brobecker <brobecker@gnat.com>
8007
8008 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8009 * somsolib.c (gdb_assert.h): Likewise.
8010 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8011 (somsolib.o): Likewise.
8012
8013 2003-03-17 Andrew Cagney <cagney@redhat.com>
8014
8015 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8016 BFD. Simplify setting of di.endian.
8017
8018 2003-03-17 Andrew Cagney <cagney@redhat.com>
8019
8020 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8021 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8022
8023 From Elena Zannoni <ezannoni@redhat.com>
8024 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8025 vector and floating-point parameters.
8026 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8027 convention.
8028 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8029
8030 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8031
8032 * MAINTAINERS: Remove my name from several maintainership roles.
8033
8034 2003-03-17 Andrew Cagney <cagney@redhat.com>
8035
8036 Fix frame off-by-one bug.
8037 * frame-unwind.h (frame_this_id_ftype): Replace
8038 frame_unwind_id_ftype.
8039 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8040 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8041 with "prev_register".
8042 * frame-unwind.c (frame_unwind_find_by_pc): Return
8043 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8044 comment.
8045 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8046 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8047 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8048 (dummy_frame_unwind): Update.
8049 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8050 sentinel_frame_register_unwind.
8051 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8052 (sentinel_frame_unwinder): Update.
8053 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8054 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8055 * frame.c (create_sentinel_frame): Update. Initialize
8056 "prologue_cache" instead of "unwind_cache".
8057 (frame_register_unwind): Call this frame's prev_register with the
8058 next frame and this frame's prologue cache.
8059 (get_prev_frame): Simplify. Always call prev frame's this_id with
8060 this frame and prev frame's prologue cache. Document that this
8061 call is shifted one to the left when compared to the
8062 frame_register_unwind call.
8063 (legacy_saved_regs_prev_register): Replace
8064 frame_saved_regs_register_unwind.
8065 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8066 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8067 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8068 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8069 (d10v_frame_unwind): Update.
8070 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8071 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8072 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8073 "saved_regs" with "this_saved_regs".
8074
8075 2003-03-16 Andrew Cagney <cagney@redhat.com>
8076
8077 * frame.c (frame_pop): Don't call target_store_registers. Fix
8078 problem reported by Mark Kettenis.
8079
8080 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8081
8082 * i386-tdep.c (i386_register_type): Renamed from
8083 i386_register_virtual_type. Adjust function signature.
8084 (i386_gdbarch_init): Set register_type instead of
8085 deprecated_max_register_raw_size,
8086 deprecated_max_register_virtual_size and register_virtual_type.
8087
8088 2003-03-14 Andrew Cagney <cagney@redhat.com>
8089
8090 * frame.c (get_prev_frame): When a legacy frame, always call
8091 legacy_get_prev_frame. Simplify unwind code using assumption that
8092 the unwinder is new.
8093 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8094 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8095 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8096
8097 2003-03-14 Andrew Cagney <cagney@redhat.com>
8098
8099 * frame.c (get_saved_register): Delete function.
8100 * frame.h (get_saved_register): Delete declaration.
8101 * xstormy16-tdep.c: Update comment.
8102 * regcache.h: Update comments.
8103 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8104 get_saved_register and extract_address, use
8105 frame_read_unsigned_register.
8106 (sparc_frame_saved_pc): Ditto.
8107 (sparc_get_saved_register): Instead of get_saved_register, use
8108 frame_register.
8109 (sparc_pop_frame): Ditto.
8110 * findvar.c: Update comments.
8111 (value_of_register): Call frame_register instead of
8112 get_saved_register.
8113 (value_from_register): Ditto.
8114 * config/sparc/tm-sparc.h: Update comment.
8115 * breakpoint.c: Update comment.
8116
8117 2003-03-14 Andrew Cagney <cagney@redhat.com>
8118
8119 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8120 GET_SAVED_REGISTER.
8121 * gdbarch.h, gdbarch.c: Re-generate.
8122 * frame.h: Update comments.
8123 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8124 * x86-64-tdep.c (x86_64_init_abi): Update.
8125 * sparc-tdep.c (sparc_gdbarch_init): Update.
8126 * sh-tdep.c (sh_gdbarch_init): Update.
8127 * mips-tdep.c (mips_gdbarch_init): Update.
8128 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8129 * cris-tdep.c (cris_gdbarch_init): Update.
8130 * ia64-tdep.c (ia64_gdbarch_init): Update.
8131 * frame.c (frame_register): Update.
8132 (get_saved_register): Update.
8133 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8134
8135 2003-03-13 Andrew Cagney <cagney@redhat.com>
8136
8137 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8138 * gdbarch.h, gdbarch.c: Regenerate.
8139 * valops.c (hand_function_call): Update comment.
8140 * stack.c (return_command): Update comment.
8141 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8142 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8143 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8144 * x86-64-tdep.c (x86_64_init_abi): Update.
8145 * vax-tdep.c (vax_gdbarch_init): Update.
8146 * v850-tdep.c (v850_gdbarch_init): Update.
8147 * sparc-tdep.c (sparc_gdbarch_init): Update.
8148 * sh-tdep.c (sh_gdbarch_init): Update.
8149 * s390-tdep.c (s390_gdbarch_init): Update.
8150 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8151 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8152 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8153 * mips-tdep.c (mips_gdbarch_init): Update.
8154 * mcore-tdep.c (mcore_gdbarch_init): Update.
8155 * m68k-tdep.c (m68k_gdbarch_init): Update.
8156 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8157 * ia64-tdep.c (ia64_gdbarch_init): Update.
8158 * i386-tdep.c (i386_gdbarch_init): Update.
8159 * hppa-tdep.c (hppa_gdbarch_init): Update.
8160 * h8300-tdep.c (h8300_gdbarch_init): Update.
8161 * frv-tdep.c (frv_gdbarch_init): Update.
8162 * cris-tdep.c (cris_gdbarch_init): Update.
8163 * avr-tdep.c (avr_gdbarch_init): Update.
8164 * arm-tdep.c (arm_gdbarch_init): Update.
8165 * alpha-tdep.c (alpha_gdbarch_init): Update.
8166
8167 2003-03-13 Andrew Cagney <cagney@redhat.com>
8168
8169 * frame.c (legacy_frame_p): New function.
8170 (get_prev_frame): Use legacy_frame_p.
8171 * frame.h (legacy_frame_p): Declare.
8172
8173 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8174
8175 * MAINTAINERS (write after approval): Alphabetically
8176 listing corrected.
8177
8178 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8179
8180 * MAINTAINERS (write after approval): Add myself.
8181
8182 2003-03-12 Andrew Cagney <cagney@redhat.com>
8183
8184 * frame.c (get_prev_frame): Rename the frame parameter to
8185 "this_frame".
8186 (get_next_frame, legacy_get_prev_frame): Ditto.
8187
8188 2003-03-12 Andrew Cagney <cagney@redhat.com>
8189
8190 * frame.c (get_current_frame): Check target_has_registers before
8191 checking target_has_stack.
8192 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8193 instead of deprecated_selected_frame.
8194 * findvar.c (value_of_register): Pass "frame", not
8195 deprecated_selected_frame, to value_of_builtin_reg.
8196
8197 2003-03-12 Andrew Cagney <cagney@redhat.com>
8198
8199 * regcache.c (regcache_cooked_write_signed): New function.
8200 (regcache_cooked_write_unsigned): New function.
8201 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8202 (regcache_cooked_read_signed): Fix regnum in range assertion.
8203 * regcache.h (regcache_cooked_write_signed): Declare.
8204 (regcache_cooked_write_unsigned): Declare.
8205
8206 2003-03-12 Andrew Cagney <cagney@redhat.com>
8207
8208 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8209 * gdbarch.h, gdbarch.c: Re-generate.
8210 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8211 * x86-64-tdep.h: Update.
8212 * x86-64-tdep.c (x86_64_init_abi): Update.
8213 * v850-tdep.c (v850_gdbarch_init): Update.
8214 * sparc-tdep.c (sparc_gdbarch_init): Update.
8215 * sh-tdep.c (sh_gdbarch_init): Update.
8216 * s390-tdep.c (s390_gdbarch_init): Update.
8217 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8218 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8219 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8220 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8221 * mips-tdep.c (mips_gdbarch_init): Update.
8222 * mcore-tdep.c (mcore_gdbarch_init): Update.
8223 * m68k-tdep.c (m68k_gdbarch_init): Update.
8224 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8225 * ia64-tdep.c (ia64_gdbarch_init): Update.
8226 * i386-tdep.c (i386_gdbarch_init): Update.
8227 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8228 * hppa-tdep.c (hppa_gdbarch_init): Update.
8229 * h8300-tdep.c (h8300_gdbarch_init): Update.
8230 * frv-tdep.c (frv_gdbarch_init): Update.
8231 * cris-tdep.c (cris_gdbarch_init): Update.
8232 * avr-tdep.c (avr_gdbarch_init): Update.
8233 * arm-tdep.c (arm_gdbarch_init): Update.
8234 * alpha-tdep.c (alpha_gdbarch_init): Update.
8235 * sh-tdep.c (sh_init_extra_frame_info): Update.
8236 (sh64_init_extra_frame_info): Update.
8237 * ns32knbsd-nat.c (frame_num_args): Update.
8238 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8239 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8240 (xstormy16_frame_chain_valid): Update.
8241 * vax-tdep.c (vax_saved_pc_after_call): Update.
8242 * v850-tdep.c (v850_frame_chain): Update.
8243 (v850_pop_frame): Update.
8244 (v850_init_extra_frame_info): Update.
8245 * sparc-tdep.c (setup_arbitrary_frame): Update.
8246 * ns32k-tdep.c (umax_frame_num_args): Update.
8247 * s390-tdep.c (s390_pop_frame_regular): Update.
8248 * mn10300-tdep.c (mn10300_frame_chain): Update.
8249 (mn10300_pop_frame_regular): Update.
8250 (mn10300_init_extra_frame_info): Update.
8251 * mips-tdep.c (mips_init_frame_pc_first): Update.
8252 (mips_frame_chain): Update.
8253 (mips_pop_frame): Update.
8254 * mcore-tdep.c (mcore_frame_chain): Update.
8255 (mcore_pop_frame): Update.
8256 (mcore_init_extra_frame_info): Update.
8257 * arch-utils.c (init_frame_pc_default): Update.
8258 * m68k-tdep.c (isi_frame_num_args): Update.
8259 (delta68_frame_num_args): Update.
8260 (news_frame_num_args): Update.
8261 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8262 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8263 (alpha_frame_chain): Update.
8264 (alpha_pop_frame): Update.
8265 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8266 (hppa_init_extra_frame_info): Update.
8267 (hppa_frame_chain): Update.
8268 (hppa_frame_chain_valid): Update.
8269 * cris-tdep.c (cris_init_extra_frame_info): Update.
8270 * avr-tdep.c (avr_init_extra_frame_info): Update.
8271 * arm-tdep.c (arm_frame_chain_valid): Update.
8272 (arm_init_extra_frame_info): Update.
8273 (arm_pop_frame): Update.
8274 * frame.c (frame_pc_unwind): Update.
8275 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8276 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8277 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8278 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8279 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8280 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8281
8282 2003-03-12 Andrew Cagney <cagney@redhat.com>
8283
8284 Eliminate the need for POP_FRAME.
8285 * frame.c (do_frame_unwind_register): New function.
8286 (frame_pop): When no POP_FRAME, pop the frame using register
8287 unwind and a scratch regcache.
8288 (frame_saved_regs_pop): Delete function.
8289 (trad_frame_unwinder): Update.
8290 * d10v-tdep.c (d10v_frame_pop): Delete function.
8291 (d10v_frame_unwind): Update.
8292 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8293 (sentinel_frame_unwinder): Update.
8294 * dummy-frame.c (dummy_frame_pop): Delete function.
8295 (dummy_frame_unwind): Update.
8296 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8297 (struct frame_unwind): Update.
8298
8299 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8300
8301 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8302 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8303 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8304 Do range checks on register number obtained from debugging info.
8305 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8306 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8307 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8308 mapping function.
8309 (do_fp_register_row): Fix typo which caused double type to be
8310 used when attempting to unpack a float.
8311
8312 2003-03-11 J. Brobecker <brobecker@gnat.com>
8313
8314 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8315
8316 2003-03-11 Andrew Cagney <cagney@redhat.com>
8317
8318 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8319 frame. Problem found by Corinna Vinschen.
8320
8321 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8322
8323 * doublest.c (floatformat_from_length): Accept also
8324 the real size of 'long double' type.
8325
8326 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8327
8328 From Klee Dienes <kdienes@apple.com>:
8329 * breakpoint.c (bpstat_copy): Copy the command lines as well
8330 as the old value, to match what is freed in bpstat_clear.
8331
8332 2003-03-10 David Carlton <carlton@math.stanford.edu>
8333
8334 * minsyms.c (add_minsym_to_hash_table): Replace
8335 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8336 (compare_minimal_symbols, compact_minimal_symbols)
8337 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8338 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8339 of DEPRECATED_SYMBOL_MATCHES_NAME.
8340 (lookup_minimal_symbol_solib_trampoline): Ditto.
8341
8342 2003-03-10 Andrew Cagney <cagney@redhat.com>
8343
8344 * regcache.h (regcache_cooked_read_ftype): Define.
8345 (regcache_save, regcache_restore): Add a cooked_read parameter.
8346 * regcache.c (regcache_save, regcache_restore): Update.
8347 (do_cooked_read): New function.
8348 (regcache_cpy): Pass do_cooked_read to regcache_save and
8349 regcache_restore.
8350
8351 2003-03-10 Andrew Cagney <cagney@redhat.com>
8352
8353 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8354 * gdbarch.h, gdbarch.c: Re-generate.
8355 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8356 * x86-64-tdep.h: Update.
8357 * x86-64-tdep.c (x86_64_init_abi): Update.
8358 * v850-tdep.c (v850_gdbarch_init): Update.
8359 * sparc-tdep.c (sparc_gdbarch_init): Update.
8360 * sh-tdep.c (sh_gdbarch_init): Update.
8361 * s390-tdep.c (s390_gdbarch_init): Update.
8362 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8363 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8364 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8365 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8366 * mips-tdep.c (mips_gdbarch_init): Update.
8367 * mcore-tdep.c (mcore_gdbarch_init): Update.
8368 * m68k-tdep.c (m68k_gdbarch_init): Update.
8369 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8370 * ia64-tdep.c (ia64_gdbarch_init): Update.
8371 * i386-tdep.c (i386_gdbarch_init): Update.
8372 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8373 * hppa-tdep.c (hppa_gdbarch_init): Update.
8374 * h8300-tdep.c (h8300_gdbarch_init): Update.
8375 * frv-tdep.c (frv_gdbarch_init): Update.
8376 * cris-tdep.c (cris_gdbarch_init): Update.
8377 * avr-tdep.c (avr_gdbarch_init): Update.
8378 * arm-tdep.c (arm_gdbarch_init): Update.
8379 * alpha-tdep.c (alpha_gdbarch_init): Update.
8380 * sh-tdep.c (sh_init_extra_frame_info): Update.
8381 (sh64_init_extra_frame_info): Update.
8382 * ns32knbsd-nat.c (frame_num_args): Update.
8383 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8384 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8385 (xstormy16_frame_chain_valid): Update.
8386 * vax-tdep.c (vax_saved_pc_after_call): Update.
8387 * v850-tdep.c (v850_frame_chain): Update.
8388 (v850_pop_frame): Update.
8389 (v850_init_extra_frame_info): Update.
8390 * sparc-tdep.c (setup_arbitrary_frame): Update.
8391 * ns32k-tdep.c (umax_frame_num_args): Update.
8392 * s390-tdep.c (s390_pop_frame_regular): Update.
8393 * mn10300-tdep.c (mn10300_frame_chain): Update.
8394 (mn10300_pop_frame_regular): Update.
8395 (mn10300_init_extra_frame_info): Update.
8396 * mips-tdep.c (mips_init_frame_pc_first): Update.
8397 (mips_frame_chain): Update.
8398 (mips_pop_frame): Update.
8399 * mcore-tdep.c (mcore_frame_chain): Update.
8400 (mcore_pop_frame): Update.
8401 (mcore_init_extra_frame_info): Update.
8402 * arch-utils.c (init_frame_pc_default): Update.
8403 * m68k-tdep.c (isi_frame_num_args): Update.
8404 (delta68_frame_num_args): Update.
8405 (news_frame_num_args): Update.
8406 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8407 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8408 (alpha_frame_chain): Update.
8409 (alpha_pop_frame): Update.
8410 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8411 (hppa_init_extra_frame_info): Update.
8412 (hppa_frame_chain): Update.
8413 (hppa_frame_chain_valid): Update.
8414 * cris-tdep.c (cris_init_extra_frame_info): Update.
8415 * avr-tdep.c (avr_init_extra_frame_info): Update.
8416 * arm-tdep.c (arm_frame_chain_valid): Update.
8417 (arm_init_extra_frame_info): Update.
8418 (arm_pop_frame): Update.
8419 * frame.c (frame_pc_unwind): Update.
8420 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8421 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8422 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8423 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8424 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8425 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8426
8427 2003-03-10 Andrew Cagney <cagney@redhat.com>
8428
8429 * gdbarch.sh (gdbarch_unwind_pc): New method.
8430 * gdbarch.h, gdbarch.c: Regenerate.
8431 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8432 but use read_pc and FRAME_SAVED_PC as fall backs.
8433 (frame_saved_regs_pc_unwind): Delete function.
8434 (trad_frame_unwinder): Update.
8435 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8436 (struct frame_unwind): Update.
8437 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8438 (dummy_frame_unwind): Update.
8439 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8440 (sentinel_frame_unwinder): Update.
8441 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8442 (d10v_frame_unwind): Update.
8443 (d10v_unwind_pc): New function.
8444 (d10v_gdbarch_init): Set unwind_pc.
8445
8446 2003-03-10 Andrew Cagney <cagney@redhat.com>
8447
8448 * gdbarch.h: Re-generate.
8449
8450 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8451 PC.
8452 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8453 the PC register.
8454
8455 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8456
8457 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8458
8459 2003-03-08 Andrew Cagney <cagney@redhat.com>
8460
8461 * cli-out.c: Update copyright.
8462 (cli_out_data): Define typedef. Use instead of ui_out_data.
8463
8464 2003-03-08 Andrew Cagney <cagney@redhat.com>
8465
8466 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8467 the result.
8468
8469 2003-03-07 Andrew Cagney <cagney@redhat.com>
8470
8471 * gdbarch.sh: Don't generate two macro definitions when an
8472 undefined macro taking no arguments.
8473 * gdbarch.h: Regenerate.
8474
8475 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8476
8477 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8478 (x86_64_unwind_dummy_id): New functions.
8479 (x86_64_init_abi): Register these two new functions.
8480
8481 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8482
8483 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8484 (x86_64_skip_prologue): Move prologue detection to
8485 separate function.
8486 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8487
8488 2003-03-05 Andrew Cagney <cagney@redhat.com>
8489
8490 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8491 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8492 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8493 to use unwind_dummy_id when a dummy frame.
8494 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8495 predicate.
8496 * gdbarch.h, gdbarch.c: Regneerate.
8497
8498 2003-03-05 Andrew Cagney <cagney@redhat.com>
8499
8500 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8501 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8502 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8503 values.
8504
8505 2003-03-05 Andrew Cagney <cagney@redhat.com>
8506
8507 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8508 (struct d10v_unwind_cache): Delete field "frameless". Replace
8509 "next_addr" with "sp_offset". Add "r11_offset".
8510 (d10v_frame_unwind_cache): Update.
8511 (prologue_find_regs): Update. When "mv r11, sp", save the
8512 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8513 RN was saved in r11_offset.
8514
8515 2003-03-05 Andrew Cagney <cagney@redhat.com>
8516
8517 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8518 cached PC value in the next frame.
8519
8520 2003-03-05 Andrew Cagney <cagney@redhat.com>
8521
8522 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8523 "id_unwind_cache" with "id".
8524 (frame_id_unwind): Delete declaration.
8525 * frame.c (frame_id_unwind): Delete function.
8526 (get_prev_frame): Call the frame id unwind method directly. Store
8527 the returned next frame's ID value in NEXT_FRAME. Note that there
8528 is a problem with the wrong unwind ID being called with the wrong
8529 unwind cache.
8530
8531 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8532
8533 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8534
8535 2003-03-05 James Ingham <jingham@apple.com>
8536 Daniel Jacobowitz <drow@mvista.com>
8537
8538 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8539 (auto_cp_abi): New variable.
8540 (current_cp_abi, num_cp_abis): Make static.
8541 (CP_ABI_MAX): Define.
8542 (cp_abis): Turn into an array.
8543 (value_virtual_fn_field): Fix formatting.
8544 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8545 takes a pointer.
8546 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8547 (list_cp_abis, _initialize_cp_abi): New functions.
8548 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8549 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8550 switch_to_cp_abi. Update prototype for register_cp_abi.
8551 * Makefile.in (cp-abi.o): Update dependencies.
8552 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8553 instead of switch_to_cp_abi.
8554 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8555 register_cp_abi.
8556 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8557 register_cp_abi.
8558 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8559
8560 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8561
8562 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8563 * dwarf2loc.c: Include "regcache.h".
8564 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8565 register_size.
8566 * Makefile.in (dwarf2loc.o): Update dependencies.
8567
8568 2003-03-04 Theodore A. Roth <troth@openavr.org>
8569
8570 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8571 number of io registers reported by remote target is not a multiple of
8572 step.
8573
8574 2003-03-04 David Carlton <carlton@math.stanford.edu>
8575
8576 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8577 (lookup_symbol_aux_psymtabs): Update call to
8578 lookup_partial_symbol.
8579 (lookup_transparent_type, find_main_psymtab)
8580 (make_symbol_overload_list): Ditto.
8581
8582 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8583
8584 * MAINTAINERS (Write after approval): Update my email address.
8585
8586 2003-03-03 Andrew Cagney <cagney@redhat.com>
8587
8588 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8589 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8590 predicate. Replace MAX_REGISTER_RAW_SIZE.
8591 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8592 MAX_REGISTER_VIRTUAL_SIZE.
8593 * regcache.c (legacy_max_register_raw_size): New function.
8594 (legacy_max_register_virtual_size): New function.
8595 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8596 (MAX_REGISTER_RAW_SIZE): Define.
8597 (legacy_max_register_raw_size): Declare.
8598 (legacy_max_register_virtual_size): Declare.
8599 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8600 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8601 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8602 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8603 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8604 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8605 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8606 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8607 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8608 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8609 * vax-tdep.c (vax_gdbarch_init): Update.
8610 * v850-tdep.c (v850_gdbarch_init): Update.
8611 * sparc-tdep.c (sparc_gdbarch_init): Update.
8612 * sh-tdep.c (sh_gdbarch_init): Update.
8613 * s390-tdep.c (s390_gdbarch_init): Update.
8614 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8615 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8616 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8617 * mips-tdep.c (mips_gdbarch_init): Update.
8618 * mcore-tdep.c (mcore_gdbarch_init): Update.
8619 * m68k-tdep.c (m68k_gdbarch_init): Update.
8620 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8621 * ia64-tdep.c (ia64_gdbarch_init): Update.
8622 * i386-tdep.c (i386_gdbarch_init): Update.
8623 * hppa-tdep.c (hppa_gdbarch_init): Update.
8624 * h8300-tdep.c (h8300_gdbarch_init): Update.
8625 * frv-tdep.c (frv_gdbarch_init): Update.
8626 * cris-tdep.c (cris_gdbarch_init): Update.
8627 * avr-tdep.c (avr_gdbarch_init): Update.
8628 * arm-tdep.c (arm_gdbarch_init): Update.
8629 * alpha-tdep.c (alpha_gdbarch_init): Update.
8630 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8631 max_register_raw_size or max_register_virtual_size.
8632
8633 2003-03-03 David Carlton <carlton@math.stanford.edu>
8634
8635 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8636 SYMBOL_MATCHES_NAME, add comment.
8637 (SYMBOL_MATCHES_NATURAL_NAME): New.
8638 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8639 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8640 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8641 * symtab.c (lookup_partial_symbol): Use
8642 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8643 unhelpful comment.
8644 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8645 SYMBOL_MATCHES_NAME.
8646 Fix for PR c++/33.
8647
8648 2003-03-03 David Carlton <carlton@math.stanford.edu>
8649
8650 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8651 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8652 by regexp matching against SYMBOL_NATURAL_NAME.
8653
8654 2003-03-03 David Carlton <carlton@math.stanford.edu>
8655
8656 * linespec.c (find_method): Extract code into collect_methods.
8657 (collect_methods): New.
8658
8659 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8660
8661 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8662 get_frame_base.
8663
8664 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8665 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8666
8667 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8668
8669 * arch-utils.c (generic_register_byte): Fix to use the loop index
8670 and not regnum when summing the size of all registers up to regnum.
8671
8672 2003-03-01 Andrew Cagney <cagney@redhat.com>
8673
8674 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8675 FRAME_INIT_SAVED_REGS.
8676 * gdbarch.h, gdbarch.c: Regenerate.
8677 * stack.c (frame_info): Update.
8678 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8679 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8680 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8681 * ns32k-tdep.c (ns32k_pop_frame): Update.
8682 * mips-tdep.c (mips_pop_frame): Update.
8683 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8684 * ia64-tdep.c (ia64_frame_chain): Update.
8685 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8686 (ia64_frameless_function_invocation): Update.
8687 (ia64_init_extra_frame_info): Update.
8688 (ia64_pop_frame_regular): Update.
8689 * frame.h (struct frame_info): Update comment.
8690 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8691 * frame.c (frame_saved_regs_register_unwind): Update.
8692 (frame_saved_regs_register_unwind): Update.
8693 (deprecated_generic_get_saved_register): Update.
8694 * cris-tdep.c: Update comment.
8695 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8696 Rename macro.
8697 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8698 * x86-64-tdep.c (x86_64_init_abi): Update.
8699 * vax-tdep.c (vax_gdbarch_init): Update.
8700 * v850-tdep.c (v850_gdbarch_init): Update.
8701 * sparc-tdep.c (sparc_gdbarch_init): Update.
8702 * sh-tdep.c (sh_gdbarch_init): Update.
8703 * s390-tdep.c (s390_gdbarch_init): Update.
8704 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8705 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8706 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8707 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8708 * mips-tdep.c (mips_gdbarch_init): Update.
8709 * mcore-tdep.c (mcore_gdbarch_init): Update.
8710 * m68k-tdep.c (m68k_gdbarch_init): Update.
8711 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8712 * ia64-tdep.c (ia64_gdbarch_init): Update.
8713 * i386-tdep.c (i386_gdbarch_init): Update.
8714 * frv-tdep.c (frv_gdbarch_init): Update.
8715 * avr-tdep.c (avr_gdbarch_init): Update.
8716 * arm-tdep.c (arm_gdbarch_init): Update.
8717 * alpha-tdep.c (alpha_gdbarch_init): Update.
8718
8719 2003-03-01 Andrew Cagney <cagney@redhat.com>
8720
8721 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8722 option enum and switch. When no windows, set the interpreter to
8723 INTERP_CONSOLE.
8724
8725 2003-03-01 Andrew Cagney <cagney@redhat.com>
8726
8727 * main.c (captured_main): Replace magic option characters with an
8728 enum.
8729
8730 2003-03-01 Andrew Cagney <cagney@redhat.com>
8731
8732 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8733 INIT_EXTRA_FRAME_INFO.
8734 * gdbarch.h, gdbarch.c: Regenerate.
8735 * arm-tdep.c: Update comments.
8736 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8737 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8738 * frame.h, avr-tdep.c: Ditto.
8739 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8740 (create_new_frame, legacy_get_prev_frame): Ditto.
8741 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8742 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8743 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8744 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8745 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8746 * v850-tdep.c (v850_gdbarch_init): Ditto.
8747 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8748 * sh-tdep.c (sh_gdbarch_init): Ditto.
8749 * s390-tdep.c (s390_gdbarch_init): Ditto.
8750 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8751 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8752 * mips-tdep.c (mips_gdbarch_init): Ditto.
8753 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8754 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8755 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8756 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8757 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8758 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8759 * frv-tdep.c (frv_gdbarch_init): Ditto.
8760 * cris-tdep.c (cris_gdbarch_init): Ditto.
8761 * avr-tdep.c (avr_gdbarch_init): Ditto.
8762 * arm-tdep.c (arm_gdbarch_init): Ditto.
8763 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8764 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8765
8766 2003-03-01 Andrew Cagney <cagney@redhat.com>
8767
8768 * gdbarch.sh (register_type): New function with predicate.
8769 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8770 * gdbarch.h, gdbarch.c: Re-generate.
8771 * arch-utils.c (generic_register_byte): Use generic_register_size.
8772 (generic_register_size): When available, use
8773 gdbarch_register_type.
8774 * regcache.c (init_regcache_descr): When available, initialize the
8775 register type array using gdbarch_register_type. If the
8776 architecture supplies gdbarch_register_type, do not use the legacy
8777 regcache layout.
8778 * d10v-tdep.c (d10v_register_type): Replace
8779 d10v_register_virtual_type.
8780 (d10v_gdbarch_init): Set register_type instead of
8781 register_virtual_type.
8782
8783 2003-03-01 Andrew Cagney <cagney@redhat.com>
8784
8785 * Makefile.in (ax-gdb.o): Update dependencies.
8786 * ax-gdb.c: Include "regcache.h".
8787 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8788 * findvar.c (value_of_register): Ditto.
8789 * infcmd.c (default_print_registers_info): Ditto.
8790
8791 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8792
8793 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8794 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8795
8796 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8797
8798 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8799 of STREQ.
8800
8801 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8802
8803 * Makefile.in (dwarf2loc.o): Update dependencies.
8804 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8805 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8806 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8807 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8808 (locexpr_tracepoint_var_ref): New function.
8809 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8810
8811 2003-02-28 Andrew Cagney <cagney@redhat.com>
8812
8813 * regcache.c (register_size): New function.
8814 * regcache.h (register_size): Declare
8815 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8816 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8817
8818 2003-02-28 David Carlton <carlton@math.stanford.edu>
8819
8820 * linespec.c (decode_compound): Extract code into find_method.
8821 (find_method): New.
8822
8823 2003-02-28 J. Brobecker <brobecker@gnat.com>
8824
8825 * Makefile.in: Add rules to build and link in observer.o.
8826
8827 2003-02-27 J. Brobecker <brobecker@gnat.com>
8828
8829 * observer.c: Minor comments edits.
8830
8831 2003-02-27 J. Brobecker <brobecker@gnat.com>
8832
8833 * observer.h, observer.c: New file.
8834
8835 2003-02-27 Andrew Cagney <cagney@redhat.com>
8836
8837 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8838
8839 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8840
8841 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8842 (M6812_OP_STS_EXT): Likewise.
8843 (m6811_prologue): Use the above to recognize prologue.
8844 (m6812_prologue): Likewise.
8845
8846 2003-02-27 David Carlton <carlton@math.stanford.edu>
8847
8848 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8849 SYMBOL_PRINT_NAME.
8850 (compare_psymbols): Ditto.
8851 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8852
8853 2003-02-27 Michael Snyder <msnyder@redhat.com>
8854
8855 * f-lang.c (build_fortran_types): New function.
8856 (_initialize_f_language): Gdbarch-register built-in fortran types.
8857 * doublest.c (extract_floating): Fix warning text.
8858
8859 2003-02-27 Andrew Cagney <cagney@redhat.com>
8860
8861 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8862 predicate. Replaces PUSH_DUMMY_FRAME.
8863 * gdbarch.h, gdbarch.c: Regnerate.
8864 * valops.c (hand_function_call): Update. Call
8865 generic_push_dummy_frame directly.
8866 * vax-tdep.c (vax_gdbarch_init): Update.
8867 * sparc-tdep.c (sparc_gdbarch_init): Update.
8868 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8869 * m68k-tdep.c (m68k_gdbarch_init): Update.
8870 * hppa-tdep.c (hppa_gdbarch_init): Update.
8871 * alpha-tdep.c (alpha_gdbarch_init): Update.
8872 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8873 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8874 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8875 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8876 push_dummy_frame to generic_push_dummy_frame.
8877 * v850-tdep.c (v850_gdbarch_init): Ditto.
8878 * sh-tdep.c (sh_gdbarch_init): Ditto.
8879 * s390-tdep.c (s390_gdbarch_init): Ditto.
8880 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8881 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8882 * mips-tdep.c (mips_gdbarch_init): Ditto.
8883 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8884 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8885 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8886 * i386-tdep.c (i386_gdbarch_init): Ditto.
8887 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8888 * frv-tdep.c (frv_gdbarch_init): Ditto.
8889 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8890 * cris-tdep.c (cris_gdbarch_init): Ditto.
8891 * avr-tdep.c (avr_gdbarch_init): Ditto.
8892 * arm-tdep.c (arm_gdbarch_init): Ditto.
8893
8894 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8895
8896 * mips-tdep.c (show_mips_abi): New function.
8897 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8898 command ``show mips abi''.
8899
8900 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8901
8902 From Elena Zannoni <ezannoni@redhat.com>
8903 * dbxread.c (process_one_symbol): Only record line 0 if one or
8904 more sline entries have been seen for the function.
8905
8906 2003-02-26 Michael Chastain <mec@shout.net>
8907
8908 * configure: Regenerate with autoconf 000227.
8909
8910 2003-02-26 Michael Chastain <mec@shout.net>
8911
8912 Close PR build/660.
8913 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8914 for old libc5/glibc.
8915 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8916
8917 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8918
8919 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8920 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8921
8922 2003-02-26 Michael Chastain <mec@shout.net>
8923
8924 * configure.in: New variable HAVE_UINTPTR_T.
8925 * configure, config.in: Regenerated.
8926
8927 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8928
8929 Fix PR build/1097.
8930 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8931
8932 2003-02-25 Andrew Cagney <cagney@redhat.com>
8933
8934 * frame.c (get_prev_frame): Add comment on check for
8935 inside_entry_func. Only check for inside_entry_file when not a
8936 dummy and not a sentinel. Check that the new frame is not inner
8937 to the old frame.
8938
8939 2003-02-25 Andrew Cagney <cagney@redhat.com>
8940
8941 * frame.c (frame_debug): New variable.
8942 (_initialize_frame): Add "set/show debug frame" command.
8943 (get_prev_frame): When frame_debug, print reason why unwind
8944 failed.
8945
8946 2003-02-25 Michael Chastain <mec@shout.net>
8947
8948 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8949 to avoid uintptr_t definition problems.
8950
8951 2003-02-25 David Carlton <carlton@math.stanford.edu>
8952
8953 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8954 (SYMBOL_LINKAGE_NAME): Ditto.
8955 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8956 SYMBOL_LINKAGE_NAME.
8957 (struct general_symbol_info): Expand comment.
8958 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8959 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8960 (SYMBOL_MATCHES_REGEXP): Ditto.
8961 * symtab.c (symbol_natural_name): New function.
8962 * objfiles.h: Replace all uses of SYMBOL_NAME by
8963 DEPRECATED_SYMBOL_NAME.
8964 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8965 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8966 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8967 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8968 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8969 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8970 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8971 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8972 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8973 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8974 * ada-exp.y: Ditto.
8975 * ada-exp.y: Update copyright.
8976 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8977 * cp-valprint.c: Ditto.
8978
8979 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8980
8981 * infptrace.c (detach): Do not flag error if ptrace detach fails
8982 and errno is set to ESRCH.
8983
8984 2003-02-24 Andrew Cagney <cagney@redhat.com>
8985
8986 * infptrace.c (udot_info): Change type of udot_off to long. Use
8987 paddr when printing udot_off's value.
8988
8989 2003-02-24 David Carlton <carlton@math.stanford.edu>
8990
8991 * symtab.c (make_symbol_overload_list): Only read in partial
8992 symtabs containing a matching partial symbol.
8993
8994 2003-02-24 David Carlton <carlton@math.stanford.edu>
8995
8996 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8997 do the comparison, not strcmp.
8998 * symfile.c (compare_psymbols): Ditto.
8999 * defs.h: Declare strcmp_iw_ordered.
9000 * utils.c (strcmp_iw_ordered): New function.
9001
9002 2003-02-24 Jim Blandy <jimb@redhat.com>
9003
9004 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9005 support, shared libs): Remove my name from here, to better reflect
9006 reality.
9007
9008 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9009
9010 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9011 (target_ops): Add to_have_continuable_watchpoint.
9012 * target.c (update_current_target): Add INHERIT line for
9013 to_have_continuable_watchpoint.
9014 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9015 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9016 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9017 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9018
9019 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9020
9021 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9022 maintainership.
9023
9024 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9025
9026 * solib.c (solib_open): Call target defined search function after
9027 failing with solib-search-path.
9028 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9029 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9030
9031 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9032
9033 * MAINTAINERS: Add myself to Write After section.
9034
9035 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9036
9037 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9038
9039 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9040
9041 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9042 (m68hc11_add_reggroups): New function.
9043 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9044 (m68hc11_gdbarch_init): Install the reggroups.
9045 (_initialize_m68hc11_tdep): Initialize them.
9046
9047 2003-02-21 James E Wilson <wilson@tuliptree.org>
9048
9049 * MAINTAINERS: Update my email address.
9050
9051 2003-02-21 David Carlton <carlton@math.stanford.edu>
9052
9053 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9054
9055 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9056
9057 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9058 * symtab.h: Add opaque declarations of struct axs_value and
9059 struct agent_expr.
9060 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9061 (struct location_funcs): New type.
9062 (struct symbol): Add "loc" to aux_value.
9063 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9064 * dwarf2read.c: Include "dwarf2expr.h".
9065 (dwarf2_symbol_mark_computed): New function.
9066 (read_func_scope): Use it.
9067 (var_decode_location): New function.
9068 (new_symbol): Use it.
9069 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9070
9071 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9072 (dwarf2expr_h, dwarf2loc_h): New variables.
9073 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9074 (dwarf2expr.o, dwarf2loc.o): New rules.
9075 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9076 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9077 LOC_COMPUTED_ARG.
9078 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9079 * m2-exp.y (yylex): Likewise.
9080 * printcmd.c (address_info, print_frame_args): Likewise.
9081 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9082 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9083 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9084 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9085 * symtab.c (lookup_block_symbol): Likewise.
9086
9087 2003-02-20 Adam Fedor <fedor@gnu.org>
9088
9089 * symtab.h: Remove objc_specific struct
9090 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9091 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9092 Have language_objc use cplus_specific struct.
9093
9094 2003-02-20 Tom Tromey <tromey@redhat.com>
9095
9096 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9097 TYPE_NAME, when printing a String value. PR java/1075.
9098
9099 2003-02-20 Adam Fedor <fedor@gnu.org>
9100
9101 * objc-lang.h (find_methods): Remove declaration.
9102 * objc-lang.c (find_methods): Make static.
9103
9104 2003-02-20 Christopher Faylor <cgf@redhat.com>
9105
9106 * win32-nat.c (get_image_name): Check return value from
9107 ReadProcessMemory.
9108 (child_xfer_memory): Ditto.
9109
9110 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9111
9112 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9113 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9114 '${exec_prefix}' (in addition to the expansion thereof) as
9115 relocatable.
9116 * configure: Rebuilt.
9117
9118 2003-02-20 David Carlton <carlton@math.stanford.edu>
9119
9120 * symtab.c (search_symbols): Revert the search_symbols part of my
9121 2002-12-23 patch. Add comment.
9122
9123 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9124
9125 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9126 * dbxread.c (elfstab_build_psymtabs): Don't call
9127 install_minimal_symbols.
9128 (stabsect_build_psymtabs): Likewise.
9129 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9130 earlier.
9131 * somread.c (som_symfile_read): Call install_minimal_symbols
9132 and do_cleanups earlier.
9133 * nlmread.c (nlm_symfile_read): Likewise.
9134 * mdebugread.c (elfmdebug_build_psymtabs): Call
9135 install_minimal_symbols and make appropriate cleanups.
9136
9137 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9138
9139 * solib.c (reload_shared_libraries): New function.
9140 (_initialize_solib): Add callbacks for ``set solib-search-path''
9141 and ``set solib-absolute-prefix''.
9142
9143 2003-02-20 David Carlton <carlton@math.stanford.edu>
9144
9145 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9146 expand comment.
9147 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9148 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9149 * ada-typeprint.c (ada_typedef_print): Ditto.
9150 * ax-gdb.c (gen_var_ref): Ditto.
9151 * breakpoint.c (print_one_breakpoint): Ditto.
9152 * buildsym.c (finish_block): Ditto.
9153 * c-valprint.c (c_val_print): Ditto.
9154 * expprint.c (print_subexp): Ditto.
9155 * findvar.c (locate_var_value): Ditto.
9156 * infcmd.c (jump_command): Ditto.
9157 * linespec.c (decode_line_2, decode_compound): Ditto.
9158 * maint.c (maintenance_translate_address): Ditto.
9159 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9160 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9161 Ditto.
9162 * p-valprint.c (pascal_val_print): Ditto.
9163 * stabsread.c (define_symbol): Ditto.
9164 * stack.c (print_frame, frame_info, print_block_frame_locals)
9165 (print_frame_arg_vars, return_command): Ditto.
9166 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9167 * symmisc.c (print_symbol): Ditto.
9168 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9169 (compare_search_syms, print_symbol_info, print_msymbol_info)
9170 (rbreak_command): Ditto.
9171 * tracepoint.c (tracepoints_info): Ditto.
9172 * typeprint.c (typedef_print): Ditto.
9173 * valops.c (value_of_variable, hand_function_call): Ditto.
9174 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9175 * ada-typeprint.c: Update Copyright.
9176 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9177 * tracepoint.c, cli/cli-cmds.c: Ditto.
9178
9179 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9180
9181 * frame.c (generic_unwind_get_saved_register): Make non-static.
9182 * frame.h (generic_unwind_get_saved_register): Declare.
9183 * mips-tdep.c (read_next_frame_reg): Fetch register from
9184 current regcache when frame is NULL.
9185 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9186 that must be NULL.
9187 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9188 instead of frame_register_unwind().
9189
9190 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9191
9192 * remote-sim.c (gdbsim_insert_breakpoint)
9193 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9194 code.
9195
9196 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9197
9198 * remote.c (_initialize_remote): Add commands "set/show remote
9199 hardware-watchpoint-limit" and "set/show remote
9200 hardware-breakpoint-limit".
9201 (remote_hw_watchpoint_limit): Initialize to -1.
9202 (remote_hw_breakpoint_limit): Ditto.
9203 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9204
9205 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9206
9207 * coff-pe-read.c: New file - support reading of minimal symbols from a
9208 portable executable using the export table.
9209 * coff-pe-read.h: New file.
9210 * coffread.c: Include coff-pe-read.h.
9211 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9212 debugging symbols found.
9213 * Makefile.in (SFILES): Add coff-pe-read.o.
9214 (coff_pe_read_h): Define.
9215 (COMMON_OBS): Add coff-pe-read.o.
9216 (coffread.o): Add coff_pe_read_h dependency.
9217 (coff-pe-read.o): New target.
9218
9219 2003-02-19 David Carlton <carlton@math.stanford.edu>
9220
9221 * Makefile.in (SFILES): Add block.c.
9222 (block_h): New.
9223 (COMMON_OBS): Add block.o.
9224 (block.o): New.
9225 (x86-64-tdep.o): Add $(block_h).
9226 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9227 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9228 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9229 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9230 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9231 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9232 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9233 * value.h: Add opaque declaration for struct block.
9234 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9235 * ada-lang.h: Ditto.
9236 * x86-64-tdep.c: #include "block.h"
9237 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9238 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9239 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9240 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9241 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9242 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9243 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9244 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9245 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9246 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9247 * symtab.c (block_function): Ditto.
9248 (contained_in): Ditto.
9249 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9250 block.h. Add opaque declaration for struct block.
9251 * symtab.h: Move block_function and contained_in declarations to
9252 block.h. Add opaque declarations for struct block, struct
9253 blockvector.
9254 (struct block): Move to block.h.
9255 (struct blockvector): Ditto.
9256 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9257 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9258 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9259 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9260 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9261 Ditto.
9262 * block.c: New file.
9263 * block.h: New file.
9264
9265 2003-02-19 Theodore A. Roth <troth@openavr.org>
9266
9267 * avr-tdep.c (avr_extract_return_value): Remove function.
9268 (avr_store_return_value): Remove function.
9269 (avr_extract_struct_value_address): Remove function.
9270 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9271
9272 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9273
9274 * rs6000-tdep.c: Include "gdb_assert.h".
9275 (registers_e500): Add "acc" and "spefscr".
9276 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9277 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9278 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9279 really is "r0".
9280 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9281
9282 2003-02-18 Keith Seitz <keiths@redhat.com>
9283
9284 * Makefile.in: Add gdbtk-interps.c.
9285
9286 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9287
9288 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9289 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9290
9291 2003-02-18 Andrew Cagney <cagney@redhat.com>
9292
9293 * symtab.h (struct objfile): Add opaque declaration.
9294
9295 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9296
9297 From Jim Ingham <jingham@apple.com>:
9298 * dbxread.c (process_one_symbol): Use last_function_start rather
9299 than function_start_offset to find the real beginning of the
9300 current function. The latter is just the text section offset on
9301 some systems, the former is always the real function start.
9302
9303 2003-02-17 Andrew Cagney <cagney@redhat.com>
9304
9305 * configure.in: Revert ${target} != ${host}.
9306
9307 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9308
9309 * configure.in (Makefile): Use the test ${target} != ${host},
9310 instead of the absence of the "nm.h" file, to determine of the
9311 configuration non-native.
9312 * configure: Regenerate.
9313
9314 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9315
9316 From Brian Ford <ford@vss.fsi.com>
9317
9318 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9319 conditionalize tui_active test.
9320 (lookup_cmd_1): Ditto.
9321
9322 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9323
9324 * configure.in: Add check for _etext.
9325 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9326 available.
9327 * config.in, configure: regenerated.
9328
9329 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9330
9331 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9332
9333 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9334
9335 * main.c (tui_version): Delete variable.
9336 (captured_main): When --tui, set interpreter_p to "tui" instead of
9337 enabling tui_version.
9338 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9339 tui_version.
9340 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9341 * cli/cli-cmds.c (disassemble_command): Ditto.
9342 * defs.h (tui_version): Delete declaration.
9343 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9344 (tui-interp.o): Add rules.
9345 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9346
9347 2003-02-14 Christopher Faylor <cgf@redhat.com>
9348
9349 * win32-nat.c (register_loaded_dll): Correctly set address range for
9350 just-loaded dll.
9351
9352 2003-02-12 Jason Molenda (jmolenda@apple.com)
9353
9354 * symmisc.c (print_objfile_statistics): Include information about
9355 the number of psymtabs and symtabs in each object file.
9356
9357 2003-02-13 Keith R Seitz <keiths@redhat.com>
9358
9359 * main.h (struct captured_main_args): Add interpreter_p.
9360 * main.c (captured_main): Initialize interpreter_p from context.
9361 * gdb.c (main): Set interpreter_p argument.
9362 * Makefile.in (gdb.o): Add dependency for interps.h.
9363
9364 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9365
9366 * event-top.c (cli_command_loop): Delete declaration.
9367 (_initialize_event_loop): Delete function setting event_loop_hook.
9368 * event-top.h (cli_command_loop): Declare. Update copyright.
9369 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9370 * interps.c (current_interp_command_loop): When event_loop_p, call
9371 cli_command_loop.
9372
9373 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9374
9375 * interps.h (interp_command_loop_ftype): Change return type to
9376 void.
9377
9378 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9379
9380 * x86-64-tdep.c (x86_64_extract_return_value)
9381 (x86_64_store_return_value): Use regcache instead of regbuf.
9382 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9383 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9384
9385 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9386
9387 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9388 * aclocal.m4: Regenerate.
9389 * configure: Regenerate.
9390
9391 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9392 TCL_LD_SEARCH_FLAGS.
9393
9394 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9395
9396 * dwarf2cfi.c: Reindented.
9397
9398 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9399
9400 * interps.c (clear_interpreter_hooks): Convert function definition
9401 to ISO C.
9402
9403 2003-02-07 David Carlton <carlton@math.stanford.edu>
9404
9405 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9406
9407 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9408
9409 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9410 (struct type): ...to here.
9411 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9412 field.
9413 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9414 (replace_type): Set length on all type variants for a given type.
9415
9416 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9417
9418 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9419 <sys/stat.h>.
9420 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9421
9422 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9423
9424 * Makefile.in (symm-nat.o): Update dependencies.
9425 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9426 (lynx-nat.o, ia64-linux-nat.): Ditto.
9427 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9428 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9429 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9430
9431 * Makefile.in (inflow_h): Define.
9432 (procfs.o, inflow.o, procfs.o): Update dependencies.
9433 * inftarg.c (child_stop): Delete extern declaration of
9434 inferior_process_group. Include "inflow.h".
9435 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9436 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9437 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9438 (our_process_group, inferior_process_group): Extern declarations.
9439
9440 * procfs.c: Include "gdb_assert.h".
9441
9442 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9443 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9444 * jv-typeprint.c (java_type_print_base): Ditto.
9445 * typeprint.c (typedef_print): Eliminate STREQ.
9446 * cli/cli-script.c (define_command, define_command): Ditto.
9447 * main.c (captured_main): Ditto.
9448 * values.c (lookup_internalvar): Ditto.
9449 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9450 within `if' conditional.
9451 * linespec.c (decode_line_2): Ditto.
9452 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9453 (bfd_openw_with_cleanup): Ditto.
9454
9455 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9456
9457 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9458 legacy_extract_return_value and store_return_value to
9459 legacy_return_value.
9460
9461 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9462
9463 * win32-nat.c (get_relocated_section_addrs): New function. Find
9464 section load addresses for symbol handling in relocated DLLs.
9465 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9466
9467 2003-02-05 Fred Fish <fnf@intrinsity.com>
9468
9469 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9470 '=' and '!='.
9471 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9472 with '&' and '=='.
9473 (angel_RDI_info): Ditto.
9474 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9475 with '&' and '!='.
9476 (threads_continue_all_with_signals): Ditto.
9477
9478 2003-02-05 Jim Ingham <jingham@apple.com>
9479 Keith Seitz <keiths@redhat.com>
9480 Elena Zannoni <ezannoni@redhat.com>
9481 Andrew Cagney <ac131313@redhat.com>
9482
9483 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9484 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9485 (SUBDIR_MI_OBS): Add "mi-interp.o".
9486 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9487 (SFILES): Add "interps.c".
9488 (COMMON_OBS): Add "interps.o".
9489 (interps_h, mi_main_h): Define.
9490 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9491 (mi-main.o, main.o, event-top.o): Update dependencies.
9492 * cli/cli-interp.c: New file.
9493 * interps.h, interps.c: New files.
9494 * top.c: (gdb_init): Don't install the default interpreter, handed
9495 by captured_main.
9496 * main.c: Include "interps.h".
9497 (interpreter_p): Note that it should malloc'ed.
9498 (captured_command_loop): Call current_interp_command_loop.
9499 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9500 xfree and xstrdup when updating interpreter_p. Install the
9501 default interpreter. Add hack to stop mi1's copyright notice
9502 being encoded.
9503 * event-top.h (gdb_setup_readline): Declare.
9504 (gdb_disable_readline): Declare.
9505 * event-top.c: Include "interps.h".
9506 (display_gdb_prompt): Call current_interp_display_prompt_p.
9507 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9508 gdb_stdlog, and gdb_stdtarg.
9509 (_initialize_event_loop): Don't call gdb_setup_readline.
9510 * cli-out.c (cli_out_set_stream): New function.
9511 * cli-out.h (cli_out_set_stream): Declare.
9512
9513 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9514
9515 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9516 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9517 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9518 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9519 config/i386/i386v42mp.mt: Removed.
9520
9521 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9522
9523 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9524 GDB_OSABI_SOLARIS.
9525
9526 2003-02-05 Michael Chastain <mec@shout.net>
9527
9528 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9529 2.12.1 and earlier versions.
9530
9531 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9532
9533 Remove orphaned hosts, targets and files.
9534 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9535 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9536 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9537 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9538 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9539 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9540 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9541 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9542 * config/sparc/tm-sp64sim.h: Delete.
9543 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9544 hosts.
9545 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9546 mips*-dec-mach3* targets.
9547
9548 2003-02-04 Michael Chastain <mec@shout.net>
9549
9550 * NEWS: Fix typo: sepcifying -> specifying.
9551
9552 2003-02-04 Michael Chastain <mec@shout.net>
9553
9554 * dwarfread.c: Add documentation on the state of dwarf-1,
9555 looking towards obsoletion.
9556
9557 2003-02-03 Michael Chastain <mec@shout.net>
9558
9559 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9560 gdb/testsuite/gdb.c++/pr-1023.exp.
9561
9562 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9563
9564 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9565 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9566
9567 * utils.c (init_page_info): Delete reference to MPW in comments.
9568 * main.c (captured_main): Delete #ifdef MPW.
9569
9570 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9571
9572 * NEWS: Note that the m32r-*-elf* is obsolete.
9573 * monitor.c (monitor_expect): Obsolete reference to m32r.
9574 * configure.tgt: Mark m32r-*-elf* as obsolete.
9575 * MAINTAINERS: Mark m32k as obsolete.
9576 * m32r-rom.c: Obsolete file.
9577 * config/m32r/m32r.mt: Obsolete file.
9578 * config/m32r/tm-m32r.h: Obsolete file.
9579 * m32r-stub.c: Obsolete file.
9580 * m32r-tdep.c: Obsolete file.
9581
9582 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9583
9584 * NEWS: Mention that the z8k-zilog-none is obsolete.
9585 * MAINTAINERS: Mark z8k as obsolete.
9586 * configure.tgt: Obsolete the z8k-*-coff* target.
9587 * config/z8k/z8k.mt: Obsolete file.
9588 * config/z8k/tm-z8k.h: Obsolete file.
9589 * z8k-tdep.c: Obsolete file.
9590
9591 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9592
9593 * NEWS: Mention that the mn10200-elf is obsolete.
9594 * configure.tgt: Obsolete mn10200-*-* target.
9595 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9596 mention that the mn10200 is obsolete.
9597 * breakpoint.h: Ditto.
9598 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9599 * config/mn10200/mn10200.mt: Obsolete file.
9600 * config/mn10200/tm-mn10200.h: Obsolete file.
9601 * mn10200-tdep.c: Obsolete file.
9602
9603 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9604
9605 * MAINTAINERS: Mark h8500 as obsolete.
9606 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9607 * findvar.c (value_from_register): Ditto.
9608 * h8500-tdep.c: Mark file as obsolete.
9609 * config/h8500/h8500.mt: Ditto.
9610 * config/h8500/tm-h8500.h: Ditto.
9611 * NEWS: Mention that h8500 is obsolete.
9612
9613 2003-02-04 David Carlton <carlton@math.stanford.edu>
9614
9615 * objfiles.c (allocate_objfile): Always set name. Add comment at
9616 start of function.
9617 * jv-lang.c (get_dynamics_objfile): Add comment.
9618
9619 2003-02-04 David Carlton <carlton@math.stanford.edu>
9620
9621 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9622 * printcmd.c (build_address_symbolic): Replace uses of
9623 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9624 SYMBOL_NAME, and asm_demangle.
9625 Update copyright.
9626
9627 2003-02-04 David Carlton <carlton@math.stanford.edu>
9628
9629 * linespec.c (decode_compound): Extract code into
9630 lookup_prefix_sym.
9631 (lookup_prefix_sym): New function.
9632
9633 2003-02-04 David Carlton <carlton@math.stanford.edu>
9634
9635 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9636 FLOAT_COERCION_BADNESS.
9637 * gdbtypes.c (rank_one_type): Replace all uses of
9638 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9639
9640 2003-02-04 Jim Blandy <jimb@redhat.com>
9641
9642 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9643 section, let dwarf_macinfo_section point to it, not
9644 dwarf_loc_section.
9645
9646 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9647
9648 Pointed out by Anton Blanchard <anton@samba.org>.
9649 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9650 (ppc_linux_at_sigtramp_return_path): Use it.
9651
9652 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9653
9654 * defs.h (streq): Add prototype.
9655 * utils.c (streq): New function.
9656
9657 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9658 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9659 * mdebugread.c (new_symbol): Likewise.
9660 * stabsread.c (define_symbol): Likewise.
9661 * coffread.c (process_coff_symbol): Likewise.
9662 * dwarfread.c (new_symbol): Likewise.
9663
9664 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9665 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9666 here.
9667 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9668 SYMBOL_INIT_DEMANGLED_NAME.
9669 * objfiles.c: Include "hashtab.h".
9670 (allocate_objfile): Call htab_set_functions_ex for the
9671 demangled_names_hash.
9672 (free_objfile): Call htab_delete for the demangled_names_hash.
9673 * objfiles.h (struct htab): Add declaration.
9674 (struct objfile): Add demangled_names_hash.
9675 * symfile.c: Include "hashtab.h".
9676 (reread_symbols): Call htab_delete for the demangled_names_hash.
9677 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9678 SYMBOL_NAME in the bcache.
9679 * symtab.c: Include "hashtab.h". Update comments.
9680 (create_demangled_names_hash, symbol_set_names): New functions.
9681 (symbol_find_demangled_name): New function, broken out from
9682 symbol_init_demangled_names.
9683 (symbol_init_demangled_names): Use it.
9684 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9685 (SYMBOL_SET_NAMES): New macro.
9686 (symbol_set_names): Add prototype.
9687
9688 2003-02-03 Jim Blandy <jimb@redhat.com>
9689
9690 Use a single, consistent representation for an empty minimal
9691 symbol table in an objfile.
9692 * objfiles.c (terminate_minimal_symbol_table): New function.
9693 (allocate_objfile): Call it.
9694 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9695 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9696 non-NULL.
9697 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9698 objfile has minimal symbols, compare minimal_symbol_count to zero,
9699 instead of comparing msymbols with NULL.
9700 * objfiles.c (have_minimal_symbols): Same.
9701 * solib-sunos.c (solib_add_common_symbols): Call
9702 terminate_minimal_symbol_table.
9703 * symfile.c (reread_symbols): Same.
9704
9705 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9706
9707 * s390-tdep.c (s390_address_class_type_flags)
9708 (s390_address_class_type_flags_to_name)
9709 (s390_address_class_name_to_type_flags): New functions.
9710 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9711 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9712
9713 2003-02-03 Michael Snyder <msnyder@redhat.com>
9714
9715 * arm-tdep.c: Fix spell-o in comment.
9716
9717 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9718
9719 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9720 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9721 error messages to contain BFD filename.
9722
9723 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9724
9725 Fix PR gdb/742 gdb/743 gdb/877
9726 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9727 (do_mixed_source_and_assembly): Use
9728 make_cleanup_ui_out_tuple_begin_end and
9729 make_cleanup_ui_out_tuple_begin_end.
9730 (do_mixed_source_and_assembly): Ditto.
9731 * thread.c (do_captured_list_thread_ids): Ditto.
9732 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9733 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9734 ui_out_tuple_end): Delete prototypes.
9735 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9736 ui_out_list_end, ui_out_tuple_end): Delete.
9737
9738 From Kevin Buettner <kevinb@redhat.com>:
9739 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9740 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9741 (do_cleanup_table_end): New functions.
9742 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9743 Use cleanups to invoke_ui_out_tuple_end().
9744 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9745 * cli/cli-setshow.c (cmd_show_list): Use
9746 make_cleanup_ui_out_tuple_begin_end.
9747
9748 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9749
9750 * frame.c (frame_unwind_register): New function.
9751 (frame_unwind_unsigned_register): Use.
9752 (frame_unwind_signed_register): Use.
9753 (frame_read_register): New function.
9754 * frame.h (frame_unwind_register): Declare.
9755 (frame_read_register): Declare.
9756
9757 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9758 and frame_unwind_register instead of read_memory, write_register
9759 and deprecated_write_register_bytes.
9760
9761 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9762
9763 * frame.h: Note that namelen can be negative.
9764 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9765 NAME's length.
9766
9767 * NEWS: Mention that the d10v's `regs' command is deprecated.
9768 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9769 (d10v_print_registers_info): New function.
9770 (show_regs): Call d10v_print_registers_info.
9771 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9772
9773 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9774
9775 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9776 lost in the previous patch.
9777
9778 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9779
9780 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9781 * stack.c (print_frame_info_base): Output complete FRAME tuple
9782 for synthesized frames.
9783
9784 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9785
9786 * mips-nat.c (zerobuf): Delete.
9787 (fetch_inferior_registers): Alloc local zerobuf.
9788 (fetch_core_registers): Alloc local zerobuf.
9789 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9790 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9791 * thread-db.c (thread_db_store_registers): Ditto.
9792 * sh-tdep.c (sh_do_register): Ditto.
9793 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9794 * remote-sim.c (gdbsim_store_register): Ditto.
9795 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9796 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9797 * monitor.c (monitor_supply_register): Ditto.
9798 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9799 * mips-nat.c (fetch_inferior_registers): Ditto.
9800 * m68klinux-nat.c (fetch_register): Ditto.
9801 * lynx-nat.c (fetch_inferior_registers): Ditto.
9802 (fetch_inferior_registers): Ditto.
9803 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9804 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9805 (hpux_thread_store_registers): Ditto.
9806 * hppah-nat.c (fetch_register): Ditto.
9807 * hppab-nat.c (fetch_register): Ditto.
9808 * hppa-tdep.c (pa_register_look_aside): Ditto.
9809 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9810 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9811
9812 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9813
9814 * gdbarch.sh: Explictly specify all method levels. When a
9815 variable with an empty level, provide a non-multi-arch default.
9816 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9817 * gdbarch.h: Re-generate.
9818 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9819 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9820
9821 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9822
9823 * defs.h (host_pointer_to_address): Delete declaration.
9824 (address_to_host_pointer): Delete declaration.
9825 * utils.c (host_pointer_to_address): Delete function.
9826 (address_to_host_pointer): Delete function.
9827 * procfs.c (procfs_address_to_host_pointer): New function.
9828 * procfs.c (proc_set_watchpoint): Use.
9829 (procfs_can_use_hw_breakpoint): Update comments.
9830 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9831 (som_solib_add): Use.
9832 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9833 * hppa-tdep.c (unwind_command): Use.
9834
9835 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9836
9837 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9838 strlen d_name.
9839
9840 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9841 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9842 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9843 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9844 (define_symbol): Update.
9845 * symfile.c (generic_load): Remove references to nindy.
9846 * symtab.c: Remove references to nindy.
9847
9848 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9849
9850 * infcmd.c (print_float_info): Delete code conditional on
9851 FLOAT_INFO.
9852 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9853 * config/m68k/nm-apollo68b.h: Ditto.
9854 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9855 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9856 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9857
9858 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9859
9860 * config/i386/tm-i386os9k.h: Removed.
9861
9862 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9863 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9864 they're identical to i[3456]86-*-sysv* now.
9865 * config/i386/i386v32.mh: Removed.
9866 * config/i386/xm-i386v32.h: Removed.
9867 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9868
9869 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9870
9871 * config/i386/i386dgux.mh: Removed.
9872 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9873
9874 * configure.in: Fix typo.
9875 * configure: Regenerated.
9876
9877 2003-01-31 David Carlton <carlton@math.stanford.edu>
9878
9879 * dwarf2read.c (dwarf2_locate_sections): Set
9880 dwarf_ranges_section.
9881
9882 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9883
9884 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9885 * utils.c: Update comments documenting legitimate uses of PTR.
9886
9887 * utils.c: Re-indent.
9888
9889 * config/djgpp/fnchange.lst: Delete nindy files.
9890 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9891 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9892 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9893 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9894 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9895 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9896 * Makefile.in (init.c): Remove nindy references.
9897 (saber_gdb): Delete rule.
9898 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9899 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9900 and a68v-nat.c.
9901 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9902 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9903 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9904 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9905 nindy-share/stop.h.
9906 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9907 * saber.suppress: Delete file.
9908
9909 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9910
9911 * dbxread.c (stabs_data): New static variable.
9912 (fill_symbuf): Support an in-memory buffer for stabs data.
9913 (stabs_seek): New function.
9914 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9915 (read_ofile_symtab): Use stabs_seek.
9916 (elfstab_build_psymtabs): Take an asection* instead of
9917 an offset and size. Relocate the stabs data if necessary.
9918 Save the section* for dbx_psymtab_to_symtab.
9919 * dwarf2read.c: Add section variables for each debug section.
9920 (dwarf2_locate_sections): Fill them in.
9921 (dwarf2_read_section): Take an asection* argument.
9922 Relocate the section contents if necessary.
9923 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9924 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9925 it to dwarf2_read_section.
9926 (dwarf2_build_frame_info): Update callers.
9927 * elfread.c (elf_symfile_read): Update call to
9928 elfstab_build_psymtabs.
9929 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9930 (DBX_STAB_SECTION): New macro.
9931 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9932 * symfile.c (symfile_dummy_outputs): New function.
9933 (symfile_relocate_debug_section): New function.
9934 * symfile.h (symfile_relocate_debug_section): Add prototype.
9935
9936 2003-01-31 Richard Henderson <rth@redhat.com>
9937
9938 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9939 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9940 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9941 * alpha-tdep.c (alpha_register_name): Add "unique".
9942 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9943 (ALPHA_UNIQUE_REGNUM): New.
9944 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9945
9946 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9947
9948 * README: Remove reference to Ericsson 1800 monitor.
9949 * Makefile.in (remote-es.o): Delete rule.
9950 (ALLDEPFILES): Delete remote-es.c.
9951 * remote-es.c: Delete file.
9952 * config/m68k/es1800.mt: Delete file.
9953 * config/djgpp/fnchange.lst: Update.
9954 * configure.tgt: Delete m68*-ericsson-* target.
9955
9956 2003-01-31 Adam Fedor <fedor@gnu.org>
9957
9958 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9959 Remove duplicate/shadowing variable of same name.
9960
9961 2003-01-30 Jim Blandy <jimb@redhat.com>
9962
9963 * symfile.c (find_separate_debug_file): Assert that the objfile's
9964 directory name we compute ends with a slash, and then assume that
9965 that's so everywhere we use it.
9966
9967 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9968
9969 * valops.c (value_assign): Flush frame cache after stores to memory
9970 also.
9971
9972 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9973
9974 * Makefile.in (mon960-rom.o): Delete rule.
9975 * mon960-rom.c: Delete file.
9976
9977 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9978
9979 * d10v-tdep.c: Include "frame-unwind.h".
9980 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9981 list.
9982 (next_addr, uses_frame): Delete.
9983 (struct d10v_unwind_cache): Define.
9984 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9985 Use info instead of next_addr and uses_frame globals.
9986 (d10v_frame_init_saved_regs): Delete function.
9987 (d10v_init_extra_frame_info): Delete function.
9988 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9989 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9990 init_frame_pc or frame_saved_pc.
9991 (d10v_pop_frame): Delete function.
9992 (do_d10v_pop_frame): Delete function.
9993 (d10v_frame_chain): Delete function.
9994 (d10v_frame_chain_valid): Delete function.
9995 (d10v_frame_pc_unwind): New function.
9996 (d10v_frame_id_unwind): New function.
9997 (saved_regs_unwinder): New function.
9998 (d10v_frame_register_unwind): New function.
9999 (d10v_frame_pop): New function.
10000 (d10v_frame_unwind): New variable.
10001 (d10v_frame_p): New function.
10002 (d10v_frame_saved_pc): Delete function.
10003 * Makefile.in (d10v-tdep.o): Update dependencies.
10004
10005 2003-01-30 J. Brobecker <brobecker@gnat.com>
10006
10007 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10008 causing some regressions due to a change in the default value
10009 for this macro.
10010
10011 2003-01-29 Richard Henderson <rth@redhat.com>
10012 Elena Zannoni <ezannoni@redhat.com>
10013 Daniel Jacobowitz <drow@mvista.com>
10014
10015 Fix PR gdb/961.
10016 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10017 variables.
10018 (RANGES_SECTION): New.
10019 (dwarf_ranges_buffer): New variable.
10020 (struct comp_unit_head): Add member "die".
10021 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10022 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10023 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10024 (dwarf2_locate_sections): Likewise.
10025 (dwarf2_build_psymtabs): Read .debug_ranges.
10026 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10027 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10028 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10029 Look for DW_AT_ranges and return the bounding box.
10030
10031 2003-01-29 Brian Ford <ford@vss.fsi.com>
10032
10033 * win32-nat.c (cygwin_pid): Removed as unused.
10034 (child_attach): Try fall back to Cygwin pid.
10035
10036 2003-01-29 Jim Blandy <jimb@redhat.com>
10037
10038 * objfiles.h (struct objfile): Doc fix.
10039
10040 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10041
10042 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10043 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10044 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10045 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10046 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10047 (FRAME_SAVED_PC): Change to a function with predicate.
10048 * gdbarch.h, gdbarch.c: Re-generate.
10049
10050 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10051
10052 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10053
10054 * complaints.c (complain): Delete function.
10055 * complaints.h (struct deprecated_complaint): Delete definition.
10056 (complain): Delete declaration.
10057
10058 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10059
10060 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10061 dummy frames.
10062
10063 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10064
10065 * sentinel-frame.h, sentinel-frame.c: New files.
10066 * Makefile.in (frame.o): Update dependencies.
10067 (SFILES): Add sentinel-frame.c.
10068 (sentinel_frame_h): Define.
10069 (COMMON_OBS): Add sentinel-frame.o.
10070 (sentinel-frame.o): Specify dependencies.
10071 * frame.c: Include "sentinel-frame.h".
10072 (frame_register_unwind): Rewrite assuming that there is always a a
10073 ->next frame.
10074 (frame_register, generic_unwind_get_saved_register): Ditto.
10075 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10076 (create_sentinel_frame, unwind_to_current_frame): New functions.
10077 (get_current_frame): Rewrite using create_sentinel_frame and
10078 unwind_to_current_frame. When possible, always create a frame.
10079 (create_new_frame): Set next to the sentinel frame.
10080 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10081 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10082 ID cache when necessary.
10083 (frame_saved_regs_id_unwind): Use frame_relative_level.
10084 (deprecated_generic_get_saved_register): Use frame_relative_level,
10085 get_frame_saved_regs, get_frame_pc, get_frame_base and
10086 get_next_frame.
10087 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10088 frame_register.
10089
10090 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10091
10092 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10093
10094 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10095
10096 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10097 (maintenance_set_profile_cmd): Use error () instead of warning ().
10098
10099 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10100
10101 * configure.in: Check that -pg works if using --enable-profiling.
10102 Check for monstartup and _mcleanup regardless of --enable-profiling.
10103 * maint.c: Check for monstartup and _mcleanup before using them.
10104 * config.in: Regenerated.
10105 * configure: Regenerated.
10106
10107 2003-01-24 Nick Clifton <nickc@redhat.com>
10108
10109 * Add sh2e support:
10110
10111 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10112
10113 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10114 (sh2e_show_regs): New.
10115 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10116 * config/sh/tm-sh.h: Added sh2e to comments.
10117
10118 2003-01-23 Jim Blandy <jimb@redhat.com>
10119
10120 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10121 symbols found)" message here; we haven't checked for a separate
10122 debug info file yet, so we don't know yet.
10123 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10124 we've looked everywhere. Also, there's no need to print a special
10125 message when we're loading the separate debug info file: the one
10126 symbol_file_add prints is fine.
10127
10128 2003-01-23 Alexander Larsson <alexl@redhat.com>
10129 Jim Blandy <jimb@redhat.com>
10130
10131 Add support for executables whose debug info has been separated
10132 out into a separate file, leaving only a link behind.
10133 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10134 and separate_debug_objfile_backlink.
10135 (put_objfile_before): New declaration.
10136 * symfile.c: #include "filenames.h".
10137 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10138 debug info in a separate file, read that, too. Save the addrs
10139 argument, so we can use it again to read the separated debug info;
10140 syms_from_objfile modifies the table we pass it.
10141 (reread_symbols): After re-reading an objfile, call
10142 reread_separate_symbols to refresh its separate debug info
10143 objfile, if it has one.
10144 (reread_separate_symbols, find_separate_debug_file,
10145 get_debug_link_info, separate_debug_file_exists): New functions.
10146 (debug_file_directory): New global var.
10147 (_initialize_symfile): Initialize debug_file_directory, and
10148 provide the new `set debug-file-directory' command to let the user
10149 change it.
10150 * objfiles.c (free_objfile): If this objfile has its debug info in
10151 a separate objfile, free that one too. If this is itself a
10152 separate debug info objfile, clear our parent's backlink.
10153 (put_objfile_before): New function.
10154 * utils.c (gnu_debuglink_crc32): New function.
10155 * defs.h (gnu_debuglink_crc32): New declaration.
10156 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10157 * configure.in: Handle --with-separate-debug-dir config option.
10158 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10159 * acconfig.h (DEBUGDIR): New macro.
10160 * configure, aclocal.m4, config.in: Regenerated.
10161
10162 2003-01-22 Jim Blandy <jimb@redhat.com>
10163
10164 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10165 like the old symbol_file_add, but taking new arguments: you can
10166 now pass in either a `struct section_addr_info' list to say where
10167 each section is loaded, or a `struct section_offsets' table. Pass
10168 these new arguments through to syms_from_objfile as appropriate.
10169 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10170 with the appropriate quiescent values for the new arguments.
10171
10172 * symfile.c: #include "gdb_assert.h".
10173 (syms_from_objfile): Add the ability to pass in a section offset
10174 table directly, as an alternative to the section_addr_info table.
10175 Document arguments better.
10176 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10177 * symfile.h (syms_from_objfile): Update declaration.
10178 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10179 syms_from_objfile.
10180 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10181
10182 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10183
10184 Original patch by Tom Tromey <tromey@cygnus.com> and
10185 Jason Molenda <jmolenda@apple.com>.
10186 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10187 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10188 * NEWS: Mention profiling.
10189 * configure.in (--enable-gdbtk): Fix typo.
10190 (--enable-profiling): New. Set PROFILE_CFLAGS.
10191 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10192 Fill in function.
10193 (profiling_state): New variable.
10194 (mcleanup_wrapper): New function.
10195 (_initialize_maint): Remove NOTYET, fix call to
10196 add_setshow_boolean_cmd for "maint set profile".
10197 * configure: Regenerated.
10198
10199 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10200
10201 * Makefile.in (install-gdbtk): Install PNG images too.
10202
10203 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10204
10205 * exec.c (text_start): Delete global variable.
10206 (exec_file_attach): Make text_start local to the function.
10207 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10208 * valops.c (hand_function_call): Delete code that handles
10209 BEFORE_TEXT_END and AFTER_TEXT_END.
10210 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10211 of CALL_DUMMY_LOCATION.
10212 * gdbarch.c: Regenerate.
10213 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10214 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10215 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10216 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10217 (text_end): Delete extern declaration.
10218
10219 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10220
10221 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10222 * blockframe.c (backtrace_below_main): Move to "frame.c".
10223 (frame_chain_valid): Delete check for backtrace_below_main.
10224 (_initialize_blockframe): Delete initialization, move ``set
10225 backtrace-below-main'' command to "frame.c".
10226 (do_flush_frames_sfunc): Delete function.
10227 * frame.c: Include "command.h" and "gdbcmd.h".
10228 (frame_type_from_pc): New function.
10229 (create_new_frame): Use frame_type_from_pc.
10230 (legacy_get_prev_frame): New function.
10231 (get_prev_frame): Rewrite. When an old style frame, call
10232 legacy_get_prev_frame. Otherwize, unwind the PC first.
10233 (_initialize_frame): Add ``set backtrace-below-main'' command.
10234 * Makefile.in (frame.o): Update dependencies.
10235
10236 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10237
10238 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10239 DEPRECATED_REGISTERS_INFO.
10240
10241 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10242
10243 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10244 Maintainers'. Update `Various Maintainers'.
10245
10246 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10247
10248 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10249 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10250 Suppress actual parameters when `-'.
10251 * gdbarch.h, gdbarch.c: Regenerate.
10252
10253 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10254
10255 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10256 code handling dummy frames.
10257
10258 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10259
10260 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10261 (struct frame_unwind): Add field pop.
10262 * frame.h (frame_pop): Declare.
10263 * frame.c (frame_saved_regs_pop): New function.
10264 (trad_frame_unwinder): Add frame_saved_regs_pop.
10265 (frame_pop): New function.
10266 * dummy-frame.c (dummy_frame_pop): New function.
10267 (discard_innermost_dummy): New function.
10268 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10269 (dummy_frame_unwind): Add dummy_frame_pop.
10270 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10271 * valops.c (hand_function_call): Ditto.
10272 * stack.c (return_command): Ditto.
10273
10274 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10275
10276 * cris-tdep.c: Fix function declaration indentation.
10277 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10278 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10279 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10280 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10281 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10282 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10283
10284 2003-01-18 Michael Chastain <mec@shout.net>
10285
10286 * README (Unpacking and Installation -- quick overview):
10287 Warn against ".../gdb-5.3/gdb/configure".
10288
10289 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10290
10291 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10292 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10293 (struct frame_unwind): Declare opaque.
10294 (dummy_frame_p): Declare function.
10295 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10296 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10297 * dummy-frame.c: Include "frame-unwind.h".
10298 (dummy_frame_p): New function.
10299 (dummy_frame_unwind): New variable.
10300 * frame.c: Include "frame-unwind.h".
10301 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10302 to use the new unwind field.
10303 (set_unwind_by_pc): Delete function.
10304 (create_new_frame, get_prev_frame): Set unwind field using
10305 frame_unwind_find_by_pc.
10306 (trad_frame_unwind, trad_frame_unwinder): New variables.
10307 * frame.h (trad_frame_unwind): Declare variable.
10308 (frame_id_unwind_ftype): Delete declaration.
10309 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10310 (struct frame_unwind): Declare opaque.
10311 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10312 register_unwind with a single unwind pointer.
10313 * frame-unwind.h, frame-unwind.c: New files.
10314 * Makefile.in (SFILES): Add frame-unwind.c.
10315 (frame_unwind_h): Define.
10316 (COMMON_OBS): Add frame-unwind.o.
10317 (frame-unwind.o): Specify dependencies.
10318 (frame.o, dummy-frame.o): Update dependencies.
10319
10320 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10321
10322 * ada-valprint.c: Eliminate PTR.
10323 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10324 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10325 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10326 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10327 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10328 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10329 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10330
10331 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10332
10333 * main.c (captured_main): Don't use PTR.
10334 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10335 * gdbtypes.c (lookup_primitive_typename): Ditto.
10336 (lookup_struct_elt_type): Ditto.
10337 * f-valprint.c (info_common_command): Ditto.
10338 (list_all_visible_commons): Ditto.
10339 * jv-typeprint.c (java_type_print_base): Ditto.
10340
10341 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10342 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10343 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10344 i386-interix-nat.c and i386-interix-tdep.c. Rename
10345 m68klinux-nat.c and m68klinux-tdep.c. Rename
10346 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10347 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10348 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10349 * main.c (captured_main): Use xfree, not free.
10350
10351 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10352
10353 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10354 ID back using a parameter.
10355 * frame.c (frame_id_unwind): Update call.
10356 (frame_saved_regs_id_unwind): Update.
10357 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10358 * dummy-frame.h (struct frame_id): Add opaque declaration.
10359 (dummy_frame_id_unwind): Update declaration.
10360
10361 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10362
10363 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10364
10365 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10366
10367 * MAINTAINERS (Stephen P. Smith): Updated email address.
10368
10369 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10370
10371 Fix PR gdb/898
10372 * breakpoint.c (until_break_command): Add new argument. Use it to
10373 decide whether to stop only at the current frame or not.
10374 * breakpoint.h (until_break_command): Update prototype.
10375 * infcmd.c (until_command): Add new argument to until_break_command
10376 call.
10377 (advance_command): New function.
10378 (_initialize_infcmd): Update help string for 'until' command.
10379 Add new 'advance' command.
10380
10381 2003-01-14 David Carlton <carlton@math.stanford.edu>
10382
10383 * linespec.c (decode_line_1): Normalize comments.
10384 (set_flags): Ditto.
10385 (locate_first_half): Ditto.
10386 (decode_compound): Ditto.
10387 (symtab_from_filename): Ditto.
10388 (decode_all_digits): Ditto.
10389 (decode_dollar): Ditto.
10390 (find_methods): Ditto.
10391 (find_toplevel_char): Ditto.
10392
10393 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10394
10395 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10396 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10397 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10398 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10399 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10400 * language.c, language.h, m32r-tdep.c: Update copyright.
10401 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10402 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10403 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10404 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10405 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10406 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10407
10408 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10409
10410 * stabsread.h (process_later, resolve_cfront_continuation):
10411 Obsolete.
10412 Update copyright years.
10413 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10414 Update copyright year.
10415 * dbxread.c(struct cont_elem): Obsolete.
10416 (process_later, process_now): Obsolete functions.
10417 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10418 Update copyright year.
10419 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10420 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10421 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10422 (parse_partial_symbols): Obsolete cfront support.
10423 * stabsread.c
10424 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10425 macros.
10426 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10427 read_cfront_baseclasses, read_cfront_member_functions,
10428 resolve_cfront_continuation,read_cfront_static_fields,
10429 copy_cfront_struct_fields): Obsolete functions.
10430 (define_symbol, read_one_struct_field): Obsolete cfront support.
10431 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10432 Update Copyright year.
10433
10434 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10435
10436 * stack.c (print_frame_info, print_stack_frame_base_stub,
10437 print_stack_frame_base, show_and_print_stack_frame_stub,
10438 show_and_print_stack_frame, print_only_stack_frame_stub,
10439 print_only_stack_frame): Delete functions.
10440 (print_stack_frame_stub): Call print_frame_info instead of
10441 print_frame_info_base.
10442 (print_frame_info_base): Rename to print_frame_info.
10443 (backtrace_command_1): Call print_frame_info, instead of
10444 print_frame_info_base.
10445 (current_frame_command): Call print_stack_frame, instead of
10446 print_only_stack_frame.
10447 (frame_command): Call print_stack_frame, instead of
10448 show_and_print_stack_frame.
10449 (up_command): Ditto.
10450 (down_command): Ditto.
10451 * frame.h (print_only_stack_frame): Delete prototype.
10452 * infrun.c (normal_stop): Call print_stack_frame, instead of
10453 show_and_print_stack_frame.
10454 * thread.c (info_threads_command): Call print_stack_frame, instead
10455 of print_only_stack_frame.
10456
10457 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10458
10459 * README (Graphical interface to GDB): Update URL. Point at
10460 gdb/links/.
10461
10462 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10463 version match.
10464
10465 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10466
10467 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10468 lines.
10469
10470 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10471
10472 * thread-db.c (attach_thread): Prototype.
10473 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10474 thread information (ti), and valid flags (th_valid, ti_valid).
10475 (attach_thread): Move target_pid_to_str call to after the thread
10476 is added to GDB's list. Initialize the cache.
10477 (thread_get_info_callback, thread_db_map_id2thr)
10478 (thread_db_get_info): New functions.
10479 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10480 (thread_db_store_registers, thread_db_thread_alive)
10481 (thread_db_get_thread_local_address): Use them.
10482 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10483 of calling error() for threads in unknown state.
10484
10485 (clear_lwpid_callback): New function.
10486 (thread_db_resume): Use it to clear the cache.
10487
10488 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10489
10490 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10491 (resume_callback): Remove dead code.
10492
10493 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10494
10495 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10496 predicate.
10497 * gdbarch.h, gdbarch.c: Regenerate.
10498 * stack.c (frame_info): Only initialize the saved registers when
10499 FRAME_INIT_SAVED_REGS_P.
10500 * frame.c (frame_saved_regs_register_unwind): Assert
10501 FRAME_INIT_SAVED_REGS_P.
10502 (deprecated_generic_get_saved_register): Ditto.
10503
10504 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10505
10506 * source.c (openp): Squelch warning about "filename".
10507
10508 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10509
10510 * source.c (openp): If the file does not exist don't necessarily
10511 search the path.
10512
10513 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10514
10515 Fix PR gdb/872.
10516 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10517 (integer_types_same_name_p): New function.
10518 (rank_one_type): Use it.
10519 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10520
10521 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10522
10523 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10524 variables.
10525 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10526 * configure.in: Add --with-sysroot.
10527 * configure: Regenerated.
10528 * main.c (gdb_sysroot): New variable.
10529 (captured_main): Initialize gdb_sysroot.
10530 * defs.h (gdb_sysroot): New extern declaration.
10531 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10532
10533 2003-01-12 Michael Chastain <mec@shout.net>
10534
10535 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10536
10537 2003-01-12 Michael Chastain <mec@shout.net>
10538
10539 * top.c (print_gdb_version): Bump copyright year to 2003.
10540
10541 2003-01-12 David Carlton <carlton@bactrian.org>
10542
10543 * linespec.c (symtab_from_filename): Rename variable 's' to
10544 'file_symtab'.
10545
10546 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10547
10548 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10549 dummy frame.
10550 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10551
10552 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10553
10554 * d10v-tdep.c: Include "gdb_assert.h".
10555 (d10v_store_return_value): Rewrite to match current interface.
10556 (d10v_extract_struct_value_address): Ditto.
10557 (d10v_extract_return_value): Ditto.
10558 (d10v_gdbarch_init): Set store_restore_value,
10559 extract_struct_value_address and extract_return_value.
10560
10561 2003-01-12 J. Brobecker <brobecker@gnat.com>
10562
10563 * hpread.c (set_namestring): New procedure replacing the
10564 SET_NAMESTRING macro.
10565 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10566 by calls to set_namestring.
10567
10568 2003-01-11 J. Brobecker <brobecker@gnat.com>
10569
10570 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10571 a compilation warning.
10572 (hpread_process_one_debug_symbol): Likewise.
10573
10574 2003-01-10 David Carlton <carlton@math.stanford.edu>
10575
10576 * linespec.c (decode_line_1): Rename variable 's' to
10577 'file_symtab'.
10578 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10579 (decode_dollar): Ditto.
10580 (decode_variable): Ditto.
10581 (symbol_found): Ditto.
10582
10583 2003-01-09 Michael Chastain <mec@shout.net>
10584
10585 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10586
10587 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10588
10589 * win32-nat.c (set_process_privilege): New function.
10590 (child_attach): Call set_process_privilege() to enable the
10591 SE_DEBUG_NAME user privilege if available in process token.
10592
10593 2003-01-10 J. Brobecker <brobecker@gnat.com>
10594
10595 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10596 compilation error in the previous revision.
10597
10598 2003-01-09 David Carlton <carlton@math.stanford.edu>
10599
10600 * linespec.c: Update copyright.
10601
10602 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10603
10604 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10605 than inferior_ptid.
10606 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10607
10608 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10609
10610 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10611 Update comments.
10612 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10613 (frame_saved_regs_zalloc): Update.
10614 (frame_saved_regs_register_unwind): Update.
10615 (create_new_frame): Update.
10616 (get_prev_frame): Update.
10617 (frame_extra_info_zalloc): Update.
10618 (deprecated_get_frame_saved_regs): Update.
10619 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10620 * cris-tdep.c: Update comment.
10621
10622 * somsolib.h: Fix function indentation.
10623 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10624 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10625 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10626 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10627 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10628
10629 * infrun.c (follow_fork): Use ISO C definition.
10630 * expprint.c (print_subexp): Use xfree instead of free.
10631 * charset.c: Include "gdb_string.h" instead of <string.h>.
10632 (register_iconv_charsets): Use ISO C definition.
10633 (host_charset, target_charset): Ditto.
10634 * Makefile.in (charset.o): Update dependencies.
10635 (mi-cmd-env.o): Update dependencies.
10636
10637 2003-01-08 Andrew Cagney <cagney@redhat.com>
10638
10639 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10640 get_frame_base.
10641
10642 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10643
10644 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10645 build directories. Save edited gdb output in Mbuild.log. If a
10646 build fails, remove any final GDB executable.
10647
10648 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10649
10650 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10651 replacing hex constants with function names and stripping leading
10652 file name directory prefixes.
10653
10654 2003-01-08 Andrew Cagney <cagney@redhat.com>
10655
10656 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10657 get_frame_base.
10658
10659 2003-01-08 David Carlton <carlton@math.stanford.edu>
10660
10661 * linespec.c (decode_line_1): Move code into decode_variable.
10662 (decode_variable): New function.
10663
10664 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10665
10666 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10667
10668 2003-01-08 Andrew Cagney <cagney@redhat.com>
10669
10670 * cris-tdep.c (cris_frame_init_saved_regs): Use
10671 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10672 saved_regs buffer.
10673 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10674 (sh64_nofp_frame_init_saved_regs): Ditto.
10675 (sh_fp_frame_init_saved_regs): Ditto.
10676 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10677 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10678 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10679 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10680
10681 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10682
10683 * minsyms.c (lookup_minimal_symbol): Update comment.
10684 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10685 (lookup_minimal_symbol_solib_trampoline): Likewise.
10686
10687 2003-01-08 Andrew Cagney <cagney@redhat.com>
10688
10689 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10690 frame_relative_level.
10691
10692 * alpha-tdep.c: Use get_frame_extra_info.
10693 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10694 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10695 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10696 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10697
10698 * alpha-tdep.c: Use get_next_frame.
10699 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10700 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10701 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10702 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10703 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10704 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10705 * xstormy16-tdep.c: Ditto.
10706
10707 2003-01-07 Andrew Cagney <cagney@redhat.com>
10708
10709 * alpha-tdep.c: Use get_frame_base.
10710 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10711 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10712 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10713 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10714 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10715 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10716 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10717 * config/sparc/tm-sparc.h: Ditto.
10718
10719 2003-01-07 Andrew Cagney <cagney@redhat.com>
10720
10721 * frame.c (deprecated_get_frame_context): New function.
10722 (deprecated_set_frame_context): New function.
10723 * frame.h (deprecated_get_frame_context): Declare.
10724 (deprecated_set_frame_context): Declare.
10725 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10726 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10727
10728 2003-01-07 Andrew Cagney <cagney@redhat.com>
10729
10730 * frame.c (deprecated_set_frame_next_hack): New function.
10731 (deprecated_set_frame_prev_hack): New function.
10732 * frame.h (deprecated_set_frame_next_hack): Declare.
10733 (deprecated_set_frame_prev_hack): Declare.
10734 * mcore-tdep.c (analyze_dummy_frame): Use
10735 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10736 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10737
10738 2003-01-07 David Carlton <carlton@math.stanford.edu>
10739
10740 * linespec.c (decode_line_1): Move code into decode_dollar.
10741 (decode_dollar): New function.
10742
10743 2003-01-07 Andrew Cagney <cagney@redhat.com>
10744
10745 * arm-tdep.c (arm_init_extra_frame_info): Use
10746 deprecated_update_frame_base_hack.
10747 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10748 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10749 (fix_frame_pointer): Ditto.
10750 (mn10300_analyze_prologue): Ditto.
10751
10752 2003-01-07 Andrew Cagney <cagney@redhat.com>
10753
10754 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10755 extra_info using frame_extra_info_zalloc.
10756 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10757 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10758 (sh64_init_extra_frame_info): Ditto.
10759 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10760 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10761 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10762 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10763 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10764 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10765 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10766 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10767 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10768 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10769 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10770 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10771
10772 * mn10300-tdep.c (analyze_dummy_frame): Use
10773 deprecated_set_frame_extra_info_hack.
10774 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10775
10776 2003-01-07 J. Brobecker <brobecker@gnat.com>
10777
10778 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10779 class is not scText. These do not define "real" procedures.
10780 (parse_partial_symbols): Likewise.
10781
10782 2003-01-06 Michael Snyder <msnyder@redhat.com>
10783
10784 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10785
10786 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10787
10788 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10789 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10790 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10791 deprecated_frame_xmalloc_with_cleanup.
10792 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10793 deprecated_frame_xmalloc.
10794 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10795 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10796
10797 2003-01-06 Andrew Cagney <cagney@redhat.com>
10798
10799 * x86-64-linux-tdep.c: Include "osabi.h".
10800 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10801
10802 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10803
10804 2003-01-06 Andrew Cagney <cagney@redhat.com>
10805
10806 * MAINTAINERS (Target Instruction Set Architectures): Update
10807 arm-elf. Can be built with -Werror, has been multiarched.
10808
10809 * value.h (unpack_long): Make buffer parameter constant.
10810 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10811 * scm-lang.h (scm_parse): Ditto.
10812 * defs.h (extract_typed_address, extract_address): Ditto.
10813 (extract_long_unsigned_integer): Ditto.
10814 * inferior.h (unsigned_pointer_to_address): Ditto.
10815 (signed_pointer_to_address): Ditto.
10816 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10817 * gdbarch.h, gdbarch.c: Regenerate.
10818 * findvar.c (extract_long_unsigned_integer): Update.
10819 (extract_address): Update.
10820 (extract_typed_address): Update.
10821 (unsigned_pointer_to_address): Update.
10822 * values.c (unpack_long): Update.
10823 (unpack_double): Update.
10824 (unpack_pointer): Update.
10825 (unpack_field_as_long): Update.
10826 * d10v-tdep.c (d10v_pointer_to_address): Update.
10827 * avr-tdep.c (avr_pointer_to_address): Update.
10828 * scm-lang.c (scm_unpack): Update.
10829 * findvar.c (signed_pointer_to_address): Update.
10830
10831 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10832
10833 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10834 since it is in i386-tdep.c.
10835
10836 2003-01-06 J. Brobecker <brobecker@gnat.com>
10837
10838 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10839 failure introduced in the previous change.
10840
10841 2003-01-05 Michael Chastain <mec@shout.net>
10842
10843 * README: Remove references to deleted remote-*.c files:
10844 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10845 remote-nrom.c, remote-os9k.c, remote-udi.c.
10846
10847 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10848
10849 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10850 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10851 i386_get_longjmp_target.
10852
10853 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10854
10855 * arm-tdep.c (prologue_cache): Change to a pointer.
10856 (_initialize_arm_tdep): Allocate prologue_cache.
10857 (check_prologue_cache): Update.
10858 (save_prologue_cache): Update.
10859 (arm_gdbarch_init): Update.
10860
10861 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10862
10863 * stabsread.c (update_method_name_from_physname): Call complaint()
10864 instead of error.
10865
10866 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10867
10868 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10869 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10870 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10871
10872 * blockframe.c: Include "gdbcmd.h" and "command.h".
10873 (backtrace_below_main): New variable.
10874 (file_frame_chain_valid, func_frame_chain_valid)
10875 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10876 (generic_func_frame_chain_valid): Remove functions.
10877 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10878 (_initialize_blockframe): New function.
10879 * Makefile.in (blockframe.o): Update dependencies.
10880 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10881 comment. Call frame_chain_valid ().
10882 * frame.h: Remove old prototypes. Add prototype for
10883 frame_chain_valid and update comments to match.
10884 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10885 Remove old comment.
10886 * gdbarch.h: Regenerated.
10887 * gdbarch.c: Regenerated.
10888
10889 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10890 set_gdbarch_frame_chain_valid.
10891 * avr-tdep.c (avr_gdbarch_init): Likewise.
10892 * cris-tdep.c (cris_gdbarch_init): Likewise.
10893 * frv-tdep.c (frv_gdbarch_init): Likewise.
10894 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10895 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10896 (i386_nw_init_abi): Likewise.
10897 (i386_gdbarch_init): Likewise.
10898 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10899 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10900 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10901 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10902 * mips-tdep.c (mips_gdbarch_init): Likewise.
10903 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10904 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10905 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10906 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10907 * s390-tdep.c (s390_gdbarch_init): Likewise.
10908 * sh-tdep.c (sh_gdbarch_init): Likewise.
10909 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10910 * v850-tdep.c (v850_gdbarch_init): Likewise.
10911 * vax-tdep.c (vax_gdbarch_init): Likewise.
10912 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10913
10914 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10915 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10916 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10917 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10918 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10919 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10920 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10921 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10922
10923 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10924
10925 * Makefile.in (acconfig_h): Remove incorrect macro.
10926 (config_h): Define.
10927 (osabi.o): Update dependencies.
10928 * configure.tgt: Set gdb_osabi based on target triplet.
10929 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10930 * configure: Regenerated.
10931 * config.in: Regenerated.
10932 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10933 (GDB_OSABI_DEFAULT): Define if not already defined.
10934 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10935 (set_osabi_string): New variables.
10936 (gdbarch_register_osabi): Add new OS ABI to
10937 gdb_osabi_available_names.
10938 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10939 (set_osabi, show_osabi): New functions.
10940 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10941
10942 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10943
10944 * arch-utils.c (gdbarch_info_init): Set osabi to
10945 GDB_OSABI_UNINITIALIZED.
10946 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10947 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10948 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10949 * gdbarch.c: Regenerated.
10950 * gdbarch.h: Regenerated.
10951 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10952 there's no BFD.
10953 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10954 * osabi.h (enum gdb_osabi): Move to defs.h.
10955 (gdbarch_init_osabi): Update prototype.
10956 * defs.h (enum gdb_osabi): Moved here.
10957 * Makefile.in: Update dependencies.
10958
10959 * alpha-tdep.h: Don't include "osabi.h".
10960 (struct gdbarch_tdep): Remove osabi member.
10961 * alpha-tdep.c: Include "osabi.h".
10962 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10963 iterate over arches. Update call to gdbarch_init_osabi.
10964 (alpha_dump_tdep): Don't dump osabi.
10965 * alpha-linux-tdep.c: Include "osabi.h".
10966 * alpha-osf1-tdep.c: Include "osabi.h".
10967 * alphafbsd-tdep.c: Include "osabi.h".
10968 * alphanbsd-tdep.c: Include "osabi.h".
10969
10970 * arm-tdep.h: Don't include "osabi.h".
10971 (struct gdbarch_tdep): Remove osabi member.
10972 * arm-tdep.c: Include "osabi.h".
10973 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10974 iterate over arches. Update call to gdbarch_init_osabi.
10975 (arm_dump_tdep): Don't dump osabi.
10976 * arm-linux-tdep.c: Include "osabi.h".
10977 * armnbsd-tdep.c: Include "osabi.h".
10978
10979 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10980 Update call to gdbarch_init_osabi.
10981
10982 * i386-tdep.h: Don't include "osabi.h".
10983 (struct gdbarch_tdep): Remove osabi member.
10984 * i386-tdep.c: Include "osabi.h".
10985 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10986 iterate over arches. Update call to gdbarch_init_osabi.
10987 (i386_dump_tdep): Don't dump osabi.
10988 * i386-linux-tdep.c: Include "osabi.h".
10989 * i386-sol2-tdep.c: Include "osabi.h".
10990 * i386bsd-tdep.c: Include "osabi.h".
10991 * i386gnu-tdep.c: Include "osabi.h".
10992 * i386ly-tdep.c: Include "osabi.h".
10993 * i386nbsd-tdep.c: Include "osabi.h".
10994 * i386obsd-tdep.c: Include "osabi.h".
10995
10996 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10997 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10998 check osabi when iterating over arches. Update call to
10999 gdbarch_init_osabi.
11000 (mips_dump_tdep): Don't dump osabi.
11001
11002 * ns32k-tdep.h: Don't include "osabi.h".
11003 (struct gdbarch_tdep): Remove.
11004 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11005 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11006 allocate tdep. Update call to gdbarch_init_osabi.
11007 (ns32k_dump_tdep): Remove.
11008 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11009 * ns32knbsd-tdep.c: Include "osabi.h".
11010
11011 * ppc-tdep.h: Don't include "osabi.h".
11012 (struct gdbarch_tdep): Remove osabi member.
11013 * rs6000-tdep.c: Include "osabi.h".
11014 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11015 osabi when iterating over arches. Update call to
11016 gdbarch_init_osabi.
11017 (rs6000_dump_tdep): Don't dump osabi.
11018 * ppc-linux-tdep.c: Include "osabi.h".
11019 * ppcnbsd-tdep.c: Include "osabi.h".
11020
11021 * sh-tdep.h: Don't include "osabi.h".
11022 (struct gdbarch_tdep): Remove osabi member.
11023 * sh-tdep.c: Include "osabi.h".
11024 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11025 iterate over arches. Update call to gdbarch_init_osabi.
11026 (sh_dump_tdep): Don't dump osabi.
11027 * shnbsd-tdep.c: Include "osabi.h".
11028
11029 * sparc-tdep.c: Include "osabi.h".
11030 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11031 iterate over arches. Update call to gdbarch_init_osabi.
11032 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11033 tdep structure.
11034
11035 * vax-tdep.h: Don't include "osabi.h".
11036 (struct gdbarch_tdep): Remove.
11037 * vax-tdep.c: Include "osabi.h".
11038 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11039 iterate over arches. Don't allocate tdep. Update call
11040 to gdbarch_init_osabi.
11041 (vax_dump_tdep): Remove.
11042 (_initialize_vax_tdep): Update call to gdbarch_register.
11043
11044 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11045
11046 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11047 entirely.
11048 (breakpoint_re_set_one): Don't fetch the value for a disabled
11049 watchpoint.
11050
11051 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11052
11053 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11054 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11055 (COERCE_FLOAT_TO_DOUBLE): Remove.
11056 * gdbarch.c: Regenerate.
11057 * gdbarch.h: Regenerate.
11058 * Makefile.in: Remove value_h from gdbarch_h.
11059 * valops.c (coerce_float_to_double): New variable.
11060 (default_coerce_float_to_double): Remove.
11061 (standard_coerce_float_to_double): Remove.
11062 (value_arg_coerce): Use coerce_float_to_double.
11063 (_initialize_valops): Add "set coerce-float-to-double".
11064 * value.h (default_coerce_float_to_double): Remove prototype.
11065 (standard_coerce_float_to_double): Remove prototype.
11066
11067 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11068 prototyped.
11069 * mdebugread.c (parse_symbol): Likewise.
11070 * stabsread.c (define_symbol): Mark all functions as prototyped.
11071
11072 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11073 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11074 set_gdbarch_coerce_float_to_double.
11075 * arm-tdep.c (arm_gdbarch_init): Likewise.
11076 * frv-tdep.c (frv_gdbarch_init): Likewise.
11077 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11078 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11079 * mips-tdep.c (mips_gdbarch_init): Likewise.
11080 (mips_coerce_float_to_double): Remove.
11081 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11082 (rs6000_coerce_float_to_double): Remove.
11083 * s390-tdep.c (s390_gdbarch_init): Likewise.
11084 * sh-tdep.c (sh_gdbarch_init): Likewise.
11085 (sh_coerce_float_to_double): Remove.
11086 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11087 (sparc_coerce_float_to_double): Remove.
11088 * v850-tdep.c (v850_gdbarch_init): Likewise.
11089 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11090 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11091 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11092 (hppa_coerce_float_to_double): Remove prototype.
11093 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11094
11095 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11096
11097 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11098
11099 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11100
11101 Suggested by Stewart Brown <sb24@avaya.com>:
11102 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11103 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11104 (c_type_print_varspec_suffix): Likewise.
11105
11106 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11107
11108 * configure.in: Don't set and AC_SUBST SUBDIRS.
11109 * configure: Regenerated.
11110
11111 * configure.in: Remove code dealing with shared libraries.
11112 * Makefile.in: Remove HLDFLAGS and HLDENV.
11113 * configure: Regenerated.
11114
11115 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11116
11117 * frame.c (deprecated_frame_xmalloc): New function.
11118 (deprecated_set_frame_saved_regs_hack): New function.
11119 (deprecated_set_frame_extra_info_hack): New function.
11120 * frame.h (deprecated_frame_xmalloc): Declare.
11121 (deprecated_set_frame_saved_regs_hack): Declare.
11122 (deprecated_set_frame_extra_info_hack): Declare.
11123
11124 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11125
11126 * configure.in: Move code that provides the --enable-gdbtk option
11127 right after the code that handles the --enable-tui option, and
11128 polish it somewhat.
11129 * configure: Regenerated.
11130
11131 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11132 AC_CHECK_FUNCS and remove the old check for pread64.
11133 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11134 * acconfig.h (_GNU_SOURCE): Add.
11135 (HAVE_PREAD64): Remove.
11136 * configure, aclocal.m4, config.in: Regenerated.
11137
11138 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11139
11140 * alpha-tdep.c: Use get_frame_saved_regs.
11141 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11142 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11143 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11144 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11145 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11146
11147 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11148
11149 * configure.in: Remove all use of the SUBDIRS variable; add
11150 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11151 code providing the --enable-multi-ice option, and move it right in
11152 front of the code that checks whether gdbserver is supported.
11153 Polish that too.
11154 * configure: Regenerated.
11155 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11156 @SUBDIRS@.
11157
11158 2003-01-03 Andrew Cagney <cagney@redhat.com>
11159
11160 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11161 * avr-tdep.c, cris-tdep.c: Ditto.
11162 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11163 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11164
11165 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11166
11167 * configure.in: Remove --enable-netrom option.
11168 * configure: Regenerated.
11169
11170 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11171
11172 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11173 declaration for `struct re_pattern_buffer' instead.
11174 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11175
11176 2003-01-03 J. Brobecker <brobecker@gnat.com>
11177
11178 * mdebugread.c (parse_symbol): Count until the stEnd matching
11179 the structure name.
11180
11181 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11182
11183 * configure.in: Remove --with-cpu option.
11184 subscripts. Remove evil changequotes here.
11185 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11186 * config.in, configure: Regenerated.
11187
11188 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11189 * configure.in: Cleanup section that sources GDB and BFD configure
11190 subscripts. Remove evil changequotes here.
11191 * config.in, configure: Regenerated.
11192
11193 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11194
11195 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11196 frame accessor methods.
11197 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11198 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11199 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11200 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11201 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11202 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11203 * z8k-tdep.c: Ditto.
11204
11205 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11206
11207 * configure.in: Remove UI_OUT configuration code.
11208 * ada-lang.c: Update assuming UI_OUT is always true.
11209 * Makefile.in (UIOUT_CFLAGS): Remove.
11210 * configure: Regenerated.
11211 * TODO: Remove blurb about elimination of -DUI_OUT.
11212
11213 * configure.in: Move code that provides the --enable-gdbcli,
11214 --enable-gdbmi options right before the code that handles the
11215 --enable-tui option. Polish a bit.
11216 * configure: Regenerated.
11217
11218 * configure.in: Rewrite check for GNU regex and the
11219 --without-included regex option, and move it into the "Checks for
11220 library functions" section. This makes us use the system regex
11221 again by default on systems with version 2 of the GNU C library.
11222 This was apparently broken.
11223 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11224 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11225 * config.in, configure: Regenerated.
11226
11227 * configure.in: Move code that provides the --enable-tui option
11228 before the "Checks for libraries" section. Polish the code
11229 somewhat and set need_curses to yes if we build the TUI. Rewrite
11230 code that looks for a library providing termcap functionality to
11231 match more closely what's done in the Readline library, and move
11232 it into to the "Checks for libraries" section.
11233 * configure: Regenerated.
11234 * Makefile.in (TERMCAP): Remove variable.
11235 * config/i386/go32.mh (TERMCAP): Remove variable.
11236
11237 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11238
11239 * MAINTAINERS: Mention gdb_mbuild.sh.
11240 * gdb_mbuild.sh: Rewrite.
11241
11242 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11243
11244 * configure.in: Fix typo in last change.
11245 * config.in, configure: Regenerated.
11246
11247 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11248
11249 * valarith.c (value_binop): Delete obsolete code and comments.
11250 * configure.host: Ditto.
11251 * buildsym.h (make_blockvector): Ditto.
11252 * buildsym.c (make_blockvector): Ditto.
11253 * defs.h (enum language): Ditto.
11254 (chill_demangle): Ditto.
11255 * elfread.c (elf_symtab_read): Ditto.
11256 * dwarfread.c (CHILL_PRODUCER): Ditto.
11257 (set_cu_language): Ditto.
11258 (handle_producer): Ditto.
11259 * expprint.c (print_subexp): Ditto.
11260 * gdbtypes.c (chill_varying_type): Ditto.
11261 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11262 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11263 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11264 (chill_varying_type): Ditto.
11265 * language.h (_LANG_chill): Ditto.
11266 * language.c (binop_result_type, integral_type): Ditto.
11267 (character_type, string_type, structured_type): Ditto.
11268 (lang_bool_type, binop_type_check): Ditto.
11269 * stabsread.h (os9k_stabs): Ditto.
11270 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11271 (define_symbol, read_type, read_struct_fields): Ditto.
11272 (read_array_type, read_enum_type, read_huge_number): Ditto.
11273 (read_range_type, start_stabs): Ditto.
11274 * symfile.c (init_filename_language_table): Ditto.
11275 (add_psymbol_with_dem_name_to_list): Ditto.
11276 * symtab.c (symbol_init_language_specific): Ditto.
11277 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11278 * symtab.h (struct general_symbol_info): Ditto.
11279 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11280 * typeprint.c (typedef_print): Ditto.
11281 * utils.c (fprintf_symbol_filtered): Ditto.
11282 * valops.c (value_cast, search_struct_field, value_slice): Delete
11283 obsolete code.
11284 (varying_to_slice): Delete function.
11285 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11286 (varying_to_slice): Delete declaration.
11287 * MAINTAINERS: Update.
11288
11289 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11290
11291 * configure.in: Reorganize "Checks for library functions section"
11292 a bit. Remove check for `btowc' and `isascii' functions.
11293 * configure: Regenerated.
11294
11295 * acconfig.h (_MSE_INT_H): Remove.
11296 * configure.in: Create "Checks for header files" section, and move
11297 appropriate tests there. Don't check for objlist.h, wchar.h,
11298 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11299 misdetection fix. Also add "Checks for types", "Checks for
11300 compiler characteristics" and "Checks for library functions"
11301 sections.
11302 * config.in, configure: Regenerated.
11303
11304 * configure.in: Create "Checks for programs" section, and move
11305 appropriate tests there.
11306
11307 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11308
11309 * configure.in: Create "Checks for libraries" section, and move
11310 appropriate tests there. Cleanup check for wctype in libw. Use
11311 AC_SEARCH_LIBS to see whether we need libsocket.
11312 * configure: Regenerated.
11313
11314 For older changes see ChangeLog-2002
11315 \f
11316 Local Variables:
11317 mode: change-log
11318 left-margin: 8
11319 fill-column: 74
11320 version-control: never
11321 End: