*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-09-03 Andrew Cagney <cagney@redhat.com>
2
3 * disasm.c (fprintf_disasm): New function.
4 (gdb_disassemble_info): Call "init_disassemble_info", instead of
5 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
6 reverts 2003-08-14 change.
7 (_initialize_disasm): Call "init_disassemble_info", instead of
8 INIT_DISASSEMBLE_INFO_NO_ARCH.
9
10 2003-09-03 Michael Snyder <msnyder@redhat.com>
11
12 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
13
14 2003-09-03 Andrew Cagney <cagney@redhat.com>
15
16 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
17 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
18 * symfile.c (syms_from_objfile): Update.
19 (reread_symbols): `Update
20 * exec.c (exec_file_attach): Update.
21 (exec_file_attach): Update.
22 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
23 2003-08-29 change.
24 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
25
26 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
27
28 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
29 trad-frame.h.
30 (arm_get_cache): Delete macro.
31 (struct arm_prologue_cache): Update comments. Make saved_regs into
32 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
33 to prev_sp.
34 (thumb_scan_prologue): Update for cache changes. Don't call
35 DEPRECATED_PC_IN_CALL_DUMMY.
36 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
37 argument and use it in desperation search for our prologue. Do not
38 search past the specified PC.
39 (arm_make_prologue_cache): Simplify.
40
41 (arm_prologue_this_id, arm_prologue_prev_register)
42 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
43 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
44 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
45 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
46 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
47
48 (arm_frame_chain_valid, arm_find_callers_reg)
49 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
50 (arm_pop_frame): Delete obsolete methods.
51 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
52
53 (arm_gdbarch_init): Update for new frame methods. Register prologue
54 and sigtramp unwinders. Set the default frame base method.
55
56 * Makefile.in (arm-tdep.o): Update dependencies.
57 * varobj.c (find_frame_addr_in_frame_chain): Call
58 get_frame_base_address.
59 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
60
61 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
62
63 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
64 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
65 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
66 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
67 Take NEXT_FRAME and CACHE arguments. Call
68 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
69 Set unwound_pc in CACHE instead of modifying the frame argument.
70 Don't bother checking the frame type when looking for sigtramp
71 frames.
72 (arm_make_prologue_cache, arm_frame_chain)
73 (arm_init_extra_frame_info): New functions.
74
75 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
76
77 * arm-tdep.c (arm_get_cache): Define.
78 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
79 unwound_sp, unwound_pc, and saved_regs.
80 (thumb_scan_prologue): Take a cache instead of the frame.
81 (arm_scan_prologue): Likewise.
82 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
83 instead of a temporary frame.
84 (arm_init_extra_frame_info): Allocate and use a cache.
85 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
86
87 2003-09-03 Andrew Cagney <cagney@redhat.com>
88
89 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
90 * config/mips/wince.mt (TM_CLIBS): Ditto.
91 * config/sh/wince.mt (TM_CLIBS): Ditto.
92 * config/pa/hppa64.mt (TM_CLIBS): Delete.
93 * config/sparc/sp64.mt (CC): Delete.
94
95 2003-09-03 Andrew Cagney <cagney@redhat.com>
96
97 * defs.h: Do not include "arch-utils.h".
98 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
99 GDB_MULTI_ARCH_PURE.
100 * configure.in (GDB_MULTI_ARCH): Do not define.
101 * configure, config.in: Regenerate.
102 * configure.tgt: Do not set variable "gdb_multi_arch".
103 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
104 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
105 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
106 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
107 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
108 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
109 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
110 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
111 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
112 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
113 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
114 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
115 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
116 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
117 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
118 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
119 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
120 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
121
122 2003-08-30 Michael Chastain <mec@shout.net>
123
124 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
125 * config/m68k/nm-hp300hpux.h: Delete.
126 * config/m68k/tm-hp300hpux.h: Delete.
127 * config/m68k/xm-hp300hpux.h: Delete.
128 * config/m68k/xm-hp300bsd.h: Delete.
129 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
130 tm-hp300hpux.h, xm-hp300hpux.h.
131 * somsolib.c: Remove comment about hp300 shared libraries.
132
133 2003-08-31 Mark Kettenis <kettenis@gnu.org>
134
135 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
136 Only define PTRACE_GET_THREAD_AREA is not already defined.
137 Various style fixes in code and comments and some additional
138 spelling fixes in comments. Move after functions dealing with
139 debug registers.
140 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
141 Fix coding-style.
142
143 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
144 frame_unwind_register_unsigned instead of
145 frame_unwind_unsigned_register.
146
147 2003-08-30 Mark Kettenis <kettenis@gnu.org>
148
149 * configure.in: Search for gethostbyname in libnsl.
150 * configure: Regenerated.
151
152 2003-08-29 Mark Kettenis <kettenis@gnu.org>
153
154 * configure.in: Remove redundant AC_MSG_RESULT in check for
155 uintptr_t in stdint.h.
156 * configure: Regenerated.
157
158 * amd64-nat.h (struct regcache): Add opaque declaration.
159
160 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
161 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
162 Change "register array" to "register cache" in comments.
163 (x86_64_linux_gregset64_reg_offset): New variable.
164 (GETREGS_SUPPLIES): Remove macro.
165 (supply_gregset): Call amd64_supply_native_gregset instead of
166 x86_64_linux_supply_gregset.
167 (fill_gregset): Rename `regno' to `regnum'. Call
168 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
169 (store_regs): Rename `regno' to `regnum'.
170 (store_fpregs): Rename `regno' to `regnum'.
171 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
172 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
173 Reorganize function a bit.
174 (store_inferior_registers): Rename `regno' to `regnum'. Use
175 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
176 Reorganize function a bit.
177 (_initialize_x86_64_linux_nat): New function.
178 * config/i386/x86-64linux.mh.
179
180 2003-08-29 Andrew Cagney <cagney@redhat.com>
181
182 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
183 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
184 (target_remove_watchpoint): Delete macro.
185 (target_insert_watchpoint): Delete macro.
186 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
187 (remote_mips_stopped_by_watchpoint): Delete declaration.
188 (remote_mips_remove_watchpoint): Delete declaration.
189 (remote_mips_set_watchpoint): Delete declaration.
190 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
191 * remote-mips.c (_initialize_remote_mips): Set
192 "to_insert_watchpoint", "to_stopped_by_watchpoint",
193 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
194 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
195 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
196 (mips_stopped_by_watchpoint): Rename
197 remote_mips_stopped_by_watchpoint.
198 (mips_can_hardware_watchpoint): Rename
199 remote_mips_can_use_hardware_watchpoint, update function
200 signature.
201
202 2003-08-29 Mark Kettenis <kettenis@gnu.org>
203
204 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
205 USER_DS. We haven't given them a register number yet.
206
207 * amd64-nat.h: New file.
208 * amd64-nat.c: New file.
209 * amd64fbsd-nat.c: Include "amd64-nat.h".
210 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
211 (amd64fbsd32_r_reg_offset): New variable.
212 (supply_gregset): Simply call amd64_supply_native_gregset.
213 (fill_gregset): Rename `regno' to `regnum'. Simply call
214 amd64_collect_native_gregset.
215 (fill_fpregset): Rename `regno' to `regnum'.
216 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
217 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
218 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
219 `fpregset_t'. Call amd64_supply_native_gregset instead of
220 supply_gregset. Call x86_64_supply_fxsave instead of
221 supply_fpregset.
222 (store_inferior_registers): Rename `regno' to `regnum'. Replace
223 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
224 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
225 `fpregset_t'. Call amd64_collect_native_gregset instead of
226 fill_gregset. Call x86_64_collect_fxsave instead of
227 fill_fpregset.
228 (_initialize_am64fbsd_nat): Initialize
229 amd64_native_gregset32_reg_offset and
230 amd64_native_gregset64_reg_offset.
231 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
232
233 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
234 null pointer. Fix typo in comment.
235
236 * regcache.c (supply_register): Reimplement to call
237 regcache_raw_supply.
238 (regcache_collect): Reimplement by calling regcache_raw_collect.
239
240 2003-08-28 Mark Kettenis <kettenis@gnu.org>
241
242 * regcache.c (register_buffer): Consitify first argument.
243 (regcache_raw_supply, regcache_raw_collect): New
244 functions.
245
246 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
247
248 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
249 by Nathan J. Williams.
250
251 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
252
253 * lin-lwp.c (wait_lwp): New function, copied from
254 stop_wait_callback. Clean up.
255 (stop_wait_callback): Use wait_lwp.
256
257 2003-08-28 Andrew Cagney <cagney@redhat.com>
258
259 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
260 flavour and disassembler options.
261 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
262 (mips_gdbarch_init): Set "print_insn". Delete initialization of
263 deprecated_tm_print_insn_info.
264
265 2003-08-27 Andrew Cagney <cagney@redhat.com>
266
267 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
268 Use target_read_memory.
269 (s390_get_frame_info): Update. Do not reference
270 deprecated_tm_print_insn_info.
271 (s390_check_function_end, s390_is_sigreturn): Ditto.
272
273 2003-08-27 Andrew Cagney <cagney@redhat.com>
274
275 * Makefile.in (cris-tdep.o): Update dependencies.
276 * cris-tdep.c: Include "gdb_assert.h".
277 (cris_gdbarch_init): Set print_insn.
278 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
279 (cris_delayed_get_disassembler): Simplify, directly call the
280 disassembler returned by cris_get_disassembler.
281 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
282 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
283 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
284 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
285 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
286 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
287 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
288 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
289 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
290 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
291 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
292 (gdb_print_insn_sparc): Delete function.
293 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
294 deprecated_tm_print_insn_info.
295 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
296 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
297 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
298 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
299 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
300 * s390-tdep.c (gdb_print_insn_s390): Delete function.
301 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
302 (s390_gdbarch_init): Set print_insn.
303
304 2003-08-27 Andrew Cagney <cagney@redhat.com>
305
306 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
307 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
308 * infcall.c (call_function_by_hand): Convert the entry point
309 address into a code address.
310
311 2003-08-27 Andrew Cagney <cagney@redhat.com>
312
313 * dsrec.c: Include "gdb_string.h".
314 * Makefile.in (dsrec.o): Update dependencies.
315
316 2003-08-27 Michael Chastain <mec@shout.net>
317
318 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
319
320 2003-08-27 Andrew Cagney <cagney@redhat.com>
321
322 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
323 (alpha_osf1_init_abi): Do not set call_dummy_address.
324
325 2003-08-27 David Carlton <carlton@kealia.com>
326
327 From Randolph Chung <tausq@debian.org>:
328 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
329 compiles with -Wformat-nonliteral -Werror.
330
331 2003-08-26 Jim Blandy <jimb@redhat.com>
332
333 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
334 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
335 bfd_lookup_symbol, since we only want symbols in code sections.
336 (look_for_base): Pass zero as the SECT_FLAGS argument to
337 bfd_lookup_symbol, since we're not concerned about which section
338 the symbol is in.
339
340 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
341
342 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
343 we are frameless or the return address register is already known.
344
345 2003-08-26 Andrew Cagney <cagney@redhat.com>
346
347 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
348 in size. Add comments.
349
350 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
351
352 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
353 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
354
355 2003-08-26 Jason Merrill <jason@redhat.com>
356
357 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
358 case out of #ifdef MIPS block.
359
360 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
361
362 PR java/1322
363 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
364 available before calling SECT_OFF_TEXT.
365 * PROBLEMS: Remove description of java/1322.
366
367 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
368
369 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
370 bof, and nat0-nat127 as pseudo-registers.
371 (ia64_frame_cache): New struct used to cache frame info.
372 (ia64_register_reggroup_p): New routine used to override default
373 register grouping so registers without names are still saved and
374 restored.
375 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
376 pseudo values.
377 (ia64_pseudo_register_read): New routine to read pseudo-registers.
378 (ia64_pseudo_register_write): New routine to write pseudo-registers.
379 (ia64_alloc_frame_cache): New routine to create a new
380 ia64_frame_cache.
381 (examine_prologue): Change prototype to add next_frame pointer.
382 Assume frameless until otherwise proven. Verify that the cfm for
383 current frame matches the cfm that should occur for the prologues
384 alloc insn and if equal, mark as not frameless. At end of routine,
385 if not frameless, calculate registers for the previous frame and store
386 in the cache, if a cache is provided.
387 (ia64_skip_prologue): Use new prototype when calling examine_prologue
388 and pass 0 for next_frame.
389 (ia64_store_return_value): Change to use convert_typed_floating()
390 instead of calling ia64_convert_to_raw().
391 (ia64_extract_return_value): Change to use convert_typed_floating()
392 instead of calling ia64_convert_to_virtual().
393 (ia64_frame_cache): New routine to support new frame model.
394 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
395 (ia64_frame_sniffer): Ditto.
396 (ia64_sigtramp_frame_init_saved_regs): Ditto.
397 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
398 (ia64_sigtramp_frame_prev_register): Ditto.
399 (ia64_sigtramp_frame_sniffer): Ditto.
400 (ia64_frame_base_address): Ditto.
401 (ia64_extract_struct_value_address): Change to issue error message.
402 (ia64_frame_align): New routine to align sp.
403 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
404 (ia64_push_arguments): Removed. Logic moved to
405 ia64_push_dummy_call().
406 (ia64_push_return_address): Ditto.
407 (ia64_unwind_dummy_id): New function.
408 (ia64_unwind_pc): Ditto.
409 (ia64_convert_register_p): Ditto.
410 (ia64_register_to_value): Ditto.
411 (ia64_value_to_register): Ditto.
412 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
413 (ia64_register_byte, ia64_register_raw_size): Ditto.
414 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
415 (ia64_saved_pc_after_call): Ditto.
416 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
417 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
418 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
419 (ia64_register_convert_to_raw): Ditto.
420 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
421 (ia64_init_extra_frame_info): Ditto.
422 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
423 (ia64_gdbarch_init): Remove registering of deprecated functions that
424 are no longer used. Add registration of new gdbarch functions.
425 Remove registering deprecated_write_sp. Replace
426 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
427 Delete set_gdbarch_deprecated_register_convertible(),
428 set_gdbarch_deprecated_register_convert_to_virtual(), and
429 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
430 set_gdbarch_deprecated_register_size(),
431 set_gdbarch_deprecated_register_bytes(),
432 set_gdbarch_pcregnum(),
433 set_gdbarch_deprecated_register_byte(),
434 set_gdbarch_deprecated_register_raw_size(),
435 set_gdbarch_deprecated_max_register_raw_size(),
436 set_gdbarch_deprecated_register_virtual_size(),
437 and set_gdbarch_deprecated_max_register_virtual_size() calls.
438 Replace set_gdbarch_deprecated_extract_return_value() with
439 set_gdbarch_extract_return_value(). Remove calls to:
440 set_gdbarch_deprecated_saved_pc_after_call();
441 set_gdbarch_deprecated_frame_chain(),
442 set_gdbarch_deprecated_frame_saved_pc(),
443 set_gdbarch_deprecated_frame_init_saved_regs(),
444 set_gdbarch_deprecated_get_saved_register(),
445 set_gdbarch_deprecated_call_dummy_words(),
446 set_gdbarch_deprecated_sizeof_call_dummy_words(),
447 set_gdbarch_deprecated_init_extra_frame_info(),
448 set_gdbarch_deprecated_frame_args_address(),
449 set_gdbarch_deprecated_frame_locals_address(),
450 and set_gdbarch_deprecated_dummy_write_sp().
451 Add set_gdbarch_convert_register_p(),
452 set_gdbarch_register_to_value(),
453 set_gdbarch_value_to_register(),
454 set_gdbarch_push_dummy_call(),
455 set_gdbarch_frame_align(),
456 set_gdbarch_unwind_dummy_id(),
457 set_gdbarch_unwind_pc(),
458 frame_unwind_append_sniffer(),
459 frame_unwind_append_sniffer(),
460 and frame_base_set_default().
461
462 2003-08-25 Chris Demetriou <cgd@broadcom.com>
463
464 * configure.tgt: Document need for special "mipsisa64" handling.
465 (mipsisa64*-*-linux64): Handle as target linux64.
466 (mipsisa64*-*-*): Handle as target embed64.
467
468 2003-08-18 Michael Chastain <mec@shout.net>
469
470 * PROBLEMS: Document pr gdb/1322, the Java anonymous
471 objfile bug.
472
473 2003-08-24 Mark Kettenis <kettenis@gnu.org>
474
475 * i387-tdep.h: Update copyright date.
476 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
477
478 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
479 CFLAGS games to reflect reality.
480
481 2003-08-24 Andrew Cagney <cagney@redhat.com>
482
483 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
484 GDB_MULTI_ARCH is always non-zero.
485 * osabi.c (_initialize_gdb_osabi): Ditto.
486 (gdbarch_init_osabi): Ditto.
487 * sparc-tdep.c: Ditto for #if code.
488
489 2003-08-23 Mark Kettenis <kettenis@gnu.org>
490
491 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
492 Update comments.
493 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
494 comments.
495 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
496 x86_64_supply_fxsave.
497 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
498 x86_64_supply_fxsave.
499 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
500 x86_64_supply_fxsave.
501
502 2003-08-23 Andreas Jaeger <aj@suse.de>
503
504 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
505 i387_supply_fxsave.
506
507 2003-08-23 Mark Kettenis <kettenis@gnu.org>
508
509 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
510 i387_supply_register.
511 (go32_fetch_registers): Adjust call to i387_supply_fsave.
512 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
513 i387_supply_fsave.
514 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
515 i387_supply_fxsave.
516 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
517 i387_supply_fsave.
518 * i386bsd-nat.c (supply_fpregset): Adjust call to
519 i387_supply_fsave.
520 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
521 call to i387_supply_fxsave. Call i387_supply_fsave instead of
522 supply_fpregset.
523 (store_inferior_registers): Remove extraneous whitespace. Call
524 i387_fill_fsave instead of fill_fpregset.
525 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
526 (supply_fpregset): Likewise.
527 * i386v4-nat.c (supply_fpregset): Adjust call to
528 i387_supply_fsave.
529 * i386-interix-nat.c (supply_fpregset): Adjust call to
530 i387_supply_fsave.
531 * i386-linux-nat.c (supply_fpregset): Adjust call to
532 i387_supply_fsave.
533 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
534 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
535 i387supply_fsave and i387_supply_fxsave.
536 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
537 Incorporate code from `i387_supply_register.
538 (i387_supply_register): Remove.
539 (i387_supply_fxsave): Add `regnum' argument.
540 Update comments.
541 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
542 prototype.
543 (i387_supply_register): remove prototype.
544 Update comments.
545
546 2003-08-22 Michael Chastain <mec@shout.net>
547
548 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
549 Add lines for files in gdb/testsuite/gdb.cp/* that are
550 still not 8.3 unique.
551
552 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
553
554 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
555 TYPE_VPTR_FIELDNO is valid.
556
557 2003-08-19 Mark Kettenis <kettenis@gnu.org>
558
559 * utils.c (set_width_command): Remove prototypes.
560 (set_screen_size): New prototype.
561 (init_page_info): Simplify by fetching the screen size from
562 Readline. Call set_screen_size.
563 (set_screen_size): New function.
564 (set_width): Add missing whitespace in comment.
565 (set_width_command): Call set_screen_size.
566 (set_height_command): New function.
567 (initialize_utils): Fix formatting. Make "set height" command
568 call set_height_command. Remove redundant code that turns off
569 pagination if output isn't a terminal. Remove redundant call to
570 set_width_command.
571
572 2003-08-22 Mark Kettenis <kettenis@gnu.org>
573
574 * sparc64-tdep.h (sparc64_regnum): Fix comment.
575 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
576 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
577 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
578 `case' keyword.
579 (sparc64_register_info): Give the reister with number
580 SPARC64_STATE_REGNUM a name.
581 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
582 %asi and %ccr.
583 (sparc64_push_dummy_call): Take BIAS into account when checking
584 stcak alignment.
585 (sparc_software_single_step): Remove assertions that check whether
586 NPC and NNPC were zero.
587 (sparc_supply_rwindow): Make public. Merge functionality with
588 sparc64_supply_rwindow.
589 (sparc_fill_rwindow): Make public. Merge functionality with
590 sparc64_fill_rwindow.
591 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
592 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
593 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
594 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
595 sparc_supply_rwindow instead of sparc64_supply_rwindow.
596
597 * reggroups.c: Add whitespace after declarations of local
598 variables in functions.
599
600 2003-08-21 Michael Chastain <mec@shout.net>
601
602 * gdbtypes.h: Change array bound type from an int to enum.
603
604 2003-08-21 Andrew Cagney <cagney@redhat.com>
605
606 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
607 * config/sparc/tm-sparc.h: Ditto.
608 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
609 unconditionally.
610 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
611
612 2003-07-13 Mark Kettenis <kettenis@gnu.org>
613
614 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
615 (register_objfile_data, set_objfile_data, objfile_data): New
616 prototypes.
617 * objfiles.c (objfile_alloc_data, objfile_free_data): New
618 prototypes.
619 (allocate_objfile): Call objfile_alloc_data.
620 (free_objfile): Call objfile_free_data.
621 (struct objfile_data): New.
622 (struct objfile_data_registration): New.
623 (struct objfile_data_registry): New.
624 (objfile_data_registry): New variable.
625 (register_objfile_data): New function.
626 (objfile_alloc_data, objfile_free_data): New functions.
627 (set_objfile_data, objfile_data): New functions.
628 * dwarf2-frame.c (dwarf2_frame_data): New variable.
629 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
630 (_initialize_dwarf2_frame): New function and prototype.
631
632 2003-08-21 Andrew Cagney <cagney@redhat.com>
633
634 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
635 a specific architecture.
636 * arch-utils.h (set_architecture_from_arch_mach): Delete
637 declaration.
638 (target_architecture_hook): Delete declaration.
639 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
640 (default_float_format): Assume GDB_MULTI_ARCH.
641 (default_double_format): Assume GDB_MULTI_ARCH.
642 (set_endian_from_file): Delete function.
643 (arch_ok): Delete function.
644 (set_arch): Delete function.
645 (set_architecture_from_arch_mach): Delete function.
646 (set_architecture_from_file): Delete function.
647 (set_architecture): Assume GDB_MULTI_ARCH.
648 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
649
650 2003-08-21 Mark Kettenis <kettenis@gnu.org>
651
652 Rewrite FreeBSD/sparc64 native configuration.
653 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
654 * sparc64fbsd-nat.c: New file.
655 * sparc64fbsd-tdep.c: New file.
656 * sparc64-tdep.c sparc64-tdep.h: New files.
657 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
658 sparc64fbsd-tdep.o): New dependencies.
659 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
660 and sparc64fbsd-tdep.c.
661 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
662 * config/sparc/fbsd.mh: Remove copyright notice.
663 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
664 sparcbsd-nat.o.
665 * config/sparc/fbsd.mt: Remove copyright notice.
666 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
667 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
668 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
669 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
670 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
671 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
672 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
673 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
674 "sparc/tm-sp64.h".
675 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
676 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
677
678 2003-08-21 Michael Chastain <mec@shout.net>
679
680 * symtab.h: Add doco on the space critical structures and
681 some measurements of space usage.
682
683 2003-08-21 Michael Snyder <msnyder@redhat.com>
684
685 * tracepoint.c (trace_dump_command): Trace break address
686 is subject to DECR_PC_AFTER_BREAK.
687 (set_traceframe_context): Make "trace_line" an int.
688 Fixes suggested by Mark Newman <mark.newman@lmco.com>
689
690 2003-08-20 Michael Snyder <msnyder@redhat.com>
691
692 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
693 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
694 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
695 argument passing.
696 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
697 functions, replace sh_push_dummy_call.
698 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
699
700 2003-08-20 Michael Chastain <mec@shout.net>
701
702 * gdbtypes.h (struct main_type): Rearrange to save space.
703
704 2003-08-20 Michael Snyder <msnyder@redhat.com>
705
706 * trad-frame.c: Comment typo fix.
707
708 2003-08-20 Michael Snyder <msnyder@redhat.com>
709 Kevin Buettner <kevinb@redhat.com>
710
711 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
712 (frv_frame_init_saved_regs): Add declaration.
713 (frame_extra_info): Add new field ``saved_regs''.
714 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
715 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
716 Update frame related code.
717 (frv_extract_struct_value_address): Adjust formatting.
718 * Makefile.in (frv-tdep.o): Update dependencies.
719 * config/frv/tm-frv.h (target_insert_watchpoint)
720 (target_remove_watchpoint, target_insert_hw_breakpoint)
721 (target_remove_hw_breakpoint): Delete these macros.
722 (remote_insert_watchpoint, remote_remove_watchpoint)
723 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
724 these declarations.
725
726 2003-08-20 Michael Chastain <mec@shout.net>
727
728 * defs.h (ENUM_BITFIELD): New macro.
729 * symtab.h (ENUM_BITFIELD): Use it.
730 (BYTE_BITFIELD): Remove old macro, which was already disabled.
731
732 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
733
734 * MAINTAINERS (write after approval): Add myself.
735
736 2003-08-18 Andrew Cagney <cagney@redhat.com>
737
738 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
739 * gdbarch.h, gdbarch.c: Re-generate.
740 * infcall.c (call_function_by_hand): Adjust the SP by
741 frame_red_zone_size before allocating any stack space.
742 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
743 * x86-64-tdep.c (x86_64_frame_align): New function.
744 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
745
746 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
747 Remove code adjusting SP so that it skips over the Red Zone.
748
749 2003-08-18 Mark Kettenis <kettenis@gnu.org>
750
751 * NEWS (New native configurations): Mention FreeBSD/amd64.
752
753 2003-08-18 Andrew Cagney <cagney@redhat.com>
754
755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
756 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
757 "m68k_frame_p".
758 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
759
760 2003-08-18 Mark Kettenis <kettenis@gnu.org>
761
762 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
763
764 2003-08-18 Michal Ludvig <mludvig@suse.cz>
765
766 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
767 Define.
768 * i386-linux-nat.c: Include "linux-nat.h".
769 (child_post_startup_inferior): New function.
770
771 2003-08-18 Mark Kettenis <kettenis@gnu.org>
772
773 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
774 at the start of a frameless function. This probably fixes PR
775 backtrace/1338.
776
777 2003-08-17 Michael Chastain <mec@shout.net>
778
779 * symfile.c (find_sym_fns): Remove special case for apollo target.
780
781 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
782
783 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
784 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
785 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
786 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
787 (linux_supports_tracevforkdone): New function.
788 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
789 TRACEVFORKDONE.
790 (child_follow_fork): Handle vfork.
791 (linux_handle_extended_wait): Likewise. Also handle exec.
792 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
793 * NEWS: Mention fork tracing.
794
795 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
796
797 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
798
799 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
800
801 * Makefile.in (i386-linux-nat.o): Update dependencies.
802 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
803 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
804 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
805 * i386-linux-nat.c: Include "linux-nat.h".
806 (child_post_startup_inferior): New function.
807 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
808 * infptrace.c (kill_inferior): Wrap in #ifdef.
809 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
810 attaching to each LWP.
811 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
812 (init_lin_lwp_ops): Fill in some more operations.
813 * linux-nat.h (linux_enable_event_reporting)
814 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
815 prototypes.
816 * linux-nat.c (linux_enable_event_reporting): New function.
817 (child_post_attach, linux_child_post_startup_inferior)
818 (child_post_startup_inferior, child_follow_fork)
819 (linux_handle_extended_wait, kill_inferior): New functions.
820
821 2003-08-16 Andrew Cagney <cagney@redhat.com>
822
823 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
824 * gdbarch.h, gdbarch.c: Re-generate.
825
826 2003-08-16 Mark Kettenis <kettenis@gnu.org>
827
828 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
829
830 2003-08-16 Andrew Cagney <cagney@redhat.com>
831
832 * NEWS: Mention that "set prompt-escape-char" was deleted.
833 * top.c (get_prompt_1): Delete function.
834 (gdb_prompt_escape):
835 (init_main): Do not clear "gdb_prompt_escape". Delete "set
836 prompt-escape-char" command.
837 (MAX_PROMPT_SIZE): Delete macro.
838 (get_prompt): Simplify, do not call get_prompt_1.
839
840 2003-08-16 Andrew Cagney <cagney@redhat.com>
841
842 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
843 -Werror. -Wformat-nonliteral problems.
844
845 2003-08-15 J. Brobecker <brobecker@gnat.com>
846
847 Further multiarching work mostly for hppa64-*-hpux11:
848 * hppa-tdep.h: New file.
849 * hppa-tdep.c: #include hppa-tdep.c.
850 (hppa32_num_regs): Renamed from hppa_num_regs.
851 (hppa64_num_regs): New constant.
852 (hppa64_call_dummy_breakpoint_offset): New constant.
853 (hppa32_call_dummy_length): New constant.
854 (hppa64_call_dummy_length): New constant.
855 (hppa32_stack_align): Make name 32bit explicit.
856 (hppa32_register_virtual_type): Likewise.
857 (hppa32_extract_return_value): Likewise.
858 (hppa32_use_struct_convention): Likewise.
859 (hppa32_store_return_value): Likewise.
860 (hppa64_register_virtual_type): New function.
861 (hppa64_extract_return_value): New function.
862 (hppa64_use_struct_convention): New function.
863 (hppa64_store_return_value): New function.
864 (hppa_frame_locals_address): Remove declaration, function does
865 not exist anymore.
866 (hppa_register_byte): Add support for PA64 ABI.
867 (hppa_gdbarch_init): Add support for PA64 ABI.
868 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
869 Make name 32bit explicit.
870 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
871 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
872 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
873 (hppa64_hpux_frame_base_before_sigtramp): New function.
874 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
875 * config/pa/tm-hppa64.h: Remove macros that are no longer
876 necessary now that the gdbarch vector is properly setup.
877 Transform some macros into function calls. Some minor cleanup.
878 * config/pa/tm-hppah.h: Update function calls in macros
879 following the function renaming in hppa-hpux-tdep.c.
880 * Makefile.in (hppa_tdep_h): New variable.
881 (hppa-tdep.o): Add dependency over hppa_tdep_h.
882
883 2003-08-14 Michael Snyder <msnyder@redhat.com>
884
885 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
886
887 2003-08-13 J. Brobecker <brobecker@gnat.com>
888
889 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
890 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
891 routine.
892
893 2003-08-13 Michael Snyder <msnyder@redhat.com>
894
895 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
896 (frv_saved_pc_after_call): Use deprecated ftype.
897 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
898 (frv_remote_translate_xfer_address): Remove.
899 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
900
901 2003-08-13 J. Brobecker <brobecker@gnat.com>
902
903 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
904 initialization after the common gdbarch initialization, not before.
905
906 2003-08-13 J. Brobecker <brobecker@gnat.com>
907
908 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
909 (ADDR_BITS_REMOVE): Remove, redundant.
910
911 2003-08-13 J. Brobecker <brobecker@gnat.com>
912
913 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
914 gdbarch method to clear the 2 low bits of text addresses.
915
916 2003-08-12 Andrew Cagney <cagney@redhat.com>
917
918 * Makefile.in (dsrec.o): Update dependencies.
919 * dsrec.c: Include "gdb_assert.h".
920 (make_srec): Use snprintf instead of sprintf, use a literal format
921 string.
922
923 2003-08-12 Andrew Cagney <cagney@redhat.com>
924
925 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
926 FRAME_OBSTACK_ZALLOC.
927
928 2003-08-12 Kevin Buettner <kevinb@redhat.com>
929
930 * i386-tdep.c (i386_gdbarch_init): Enable default support for
931 SSE registers.
932
933 2003-08-10 Mark Kettenis <kettenis@gnu.org>
934
935 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
936 amd64fbsd_sc_reg_offset): Add extern declarations.
937 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
938 declarations.
939
940 2003-08-11 Ben Elliston <bje@wasabisystems.com>
941
942 * MAINTAINERS (write after approval): Update my mail address.
943
944 2003-08-10 Andrew Cagney <cagney@redhat.com>
945
946 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
947
948 2003-08-10 Mark Kettenis <kettenis@gnu.org>
949
950 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
951 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
952 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
953 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
954 i386bsd_sc_reg_offset): Add extern declarations.
955 * i386obsd-nat.c: Include "i386-tdep.h"
956 (_initialize_i386obsd_nat): Remove extern declarations.
957 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
958 declarations.
959 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
960 declarations.
961
962 * i386-tdep.c (i386_register_to_value): Use get_frame_register
963 instead of frame_read_register.
964 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
965 instead of frame_read_register. Use I386_ESP_REGNUM instead of
966 SP_REGNUM.
967 (i386_frame_prev_register): Use frame_unwind_register_unsigned
968 instead of frame_unwind_unsigned_register. Use
969 I386_EFLAGS_REGISTER instead of PS_REGNUM.
970 (i386_get_longjmp_target): Use regcache_read_unsigned_register
971 instead of read_register. Use builtin_type_void_data_ptr instead
972 of builtin_type_void_func_ptr when extracting the address of the
973 jmp_buf.
974 (i386_extract_return_value, i386_store_return_value,
975 i386_pseudo_register_read, i386_pseudo_register_write): Use
976 register_size instead REGISTER_RAW_SIZE.
977
978 2003-08-10 Andrew Cagney <cagney@redhat.com>
979
980 * infcall.c (call_function_by_hand): Use xstrprintf instead of
981 sprintf. Make "name" constant.
982
983 2003-08-10 Mark Kettenis <kettenis@gnu.org>
984
985 * i387-tdep.c (i387_register_to_value): Use get_frame_register
986 instead of frame_read_register.
987 (i387_print_float_info): Use get_frame_register and
988 get_frame_register_unsigned instead of frame_register_read.
989
990 * i386fbsd-nat.c: Include "i386-tdep.h".
991 (child_resume): Make `eflags' an ULONGEST. Use
992 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
993 instead of register_read and register_write.
994
995 * i386bsd-nat.c (fetch_inferior_registers,
996 store_inferior_registers): Don't use && at the end of a line.
997 (_initialize_i386bsd_nat): Fix typo.
998
999 * frame.c (_initialize_frame): Add missing backslash.
1000
1001 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1002 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1003 and supply_register instead of manipulating the register buffer
1004 directly.
1005
1006 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1007 * config/i386/nm-i386sol2.h
1008 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1009
1010 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1011 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1012 instructions that GCC likes to mingle into the prologue. Fixes
1013 gdb/1253 and gdb/1255.
1014
1015 2003-08-09 Andrew Cagney <cagney@redhat.com>
1016
1017 Fix GDB PR cli/926.
1018 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1019 * command.h (add_setshow_uinteger_cmd): Declare.
1020 * frame.c (set_backtrace_cmd): New function.
1021 (show_backtrace_cmd): New function.
1022 * frame.c (_initialize_frame): Replace "set/show
1023 backtrace-below-main" with "set/show backtrace past-main". Add
1024 command "set/show backtrace limit".
1025 (backtrace_past_main): Rename "backtrace_below_main".
1026 (backtrace_limit): New variable.
1027 (get_prev_frame): Update. Check the backtrace_limit.
1028
1029 2003-08-09 Andrew Cagney <cagney@redhat.com>
1030
1031 * defs.h (xstrprintf): Declare.
1032 * utils.c (xstrprintf): New function.
1033 * breakpoint.c (insert_breakpoints): Replace sprintf and
1034 non-literal format strings, with xstrprintf and cleanups.
1035 (delete_breakpoint,breakpoint_re_set): Ditto.
1036 (commands_command, insert_breakpoints): Ditto.
1037 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1038 (break_at_finish_command_1): Ditto.
1039
1040 2003-08-09 Andrew Cagney <cagney@redhat.com>
1041
1042 * MAINTAINERS (language support): List Adam Fedor as Objective C
1043 maintainer.
1044
1045 2003-08-08 J. Brobecker <brobecker@gnat.com>
1046
1047 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1048 are now multiarched.
1049
1050 2003-08-08 J. Brobecker <brobecker@gnat.com>
1051
1052 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1053 longer necessary now that hppa64 is partially multiarch'ed.
1054
1055 2003-08-08 Andrew Cagney <cagney@redhat.com>
1056
1057 * interps.c (interp_set): Check for a NULL "old_interp".
1058
1059 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1060
1061 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1062 (install-only): Support DESTDIR.
1063 (uninstall): Likewise.
1064 (install-gdbtk): Likewise.
1065
1066 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1067
1068 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1069 contains something meaningful at all times.
1070
1071 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1072
1073 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1074
1075 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1076
1077 * MAINTAINERS (write after approval): Added self.
1078
1079 2003-08-07 Andrew Cagney <cagney@redhat.com>
1080
1081 * inferior.h (AT_SYMBOL): Define.
1082 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1083 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1084 * mips-tdep.c (mips_call_dummy_address): Delete function.
1085 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1086 set call_dummy_address.
1087
1088 2003-08-07 Andrew Cagney <cagney@redhat.com>
1089
1090 * language.c (op_error): Delete function.
1091 (binop_type_check): Delete function.
1092 * language.h (type_op_error, range_op_error): Delete macros.
1093 (op_error): Delete declaration.
1094
1095 2003-08-07 Andrew Cagney <cagney@redhat.com>
1096
1097 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1098
1099 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1100
1101 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1102 (x86_64_push_arguments): Skip the red zone.
1103
1104 2003-08-05 Andrew Cagney <cagney@redhat.com>
1105
1106 * reggroups.c (reggroup_next): Check for the final entry.
1107
1108 2003-08-04 Andrew Cagney <cagney@redhat.com>
1109
1110 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1111 * cli/cli-script.c (define_command): Call query directly, instead
1112 of passing it a buffer.
1113 * ocd.c (ocd_error): Pass error a constant format string.
1114 * remote-mips.c (mips_error): Use fputs_filtered.
1115
1116 * solib-svr4.c (_initialize_svr4_solib): Update
1117 register_gdbarch_data call.
1118 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1119
1120 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1121 (register_gdbarch_data): Delete "free" parameter. Update
1122 comments.
1123 * gdbarch.h, gdbarch.c: Re-generate.
1124 * reggroups.c (_initialize_reggroup): Update.
1125 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1126 * frame-base.c (_initialize_frame_base): Update.
1127 * frame-unwind.c (_initialize_frame_unwind): Update.
1128 * user-regs.c (_initialize_user_regs): Update.
1129 * remote.c (_initialize_remote): Update.
1130 * regcache.c (_initialize_regcache): Update.
1131
1132 * regcache.c (xfree_regcache_descr): Delete function.
1133 (_initialize_regcache): Update call to register_gdbarch_data.
1134 (init_regcache_descr, init_legacy_regcache_descr): Use
1135 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1136
1137 * remote.c (free_remote_state): Delete function.
1138 (_initialize_remote): Update register_gdbarch_data.
1139 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1140 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1141
1142 2003-08-04 Andrew Cagney <cagney@redhat.com>
1143
1144 * reggroups.c (struct reggroup_el): Define.
1145 (struct reggroups): Delete field "nr_group". Replace array
1146 "group" with a "first" to "last" linked list.
1147 (reggroups_init): Update. Allocate using gdbarch's obstack.
1148 (reggroups_free): Delete function.
1149 (add_group): Update. Add "el" parameter.
1150 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1151 (default_groups): Update.
1152 (reggroup_next): Replace reggroups.
1153 (reggroups_dump): Update.
1154 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1155 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1156 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1157
1158 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1159
1160 * Makefile.in (tui-interp.o): Update dependencies.
1161
1162 2003-08-04 David Carlton <carlton@kealia.com>
1163
1164 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1165 to internal_error call.
1166 * source.c (forward_search_command): Add "%s" format argument.
1167 (reverse_search_command): Ditto.
1168 * top.c (quit_confirm): Ditto.
1169 * cli/cli-setshow.c (do_setshow_command): Ditto.
1170 * cp-valprint.c (cp_print_class_method): Replace
1171 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1172 (cp_print_class_member): Ditto.
1173 * event-top.c (command_line_handler): Ditto.
1174 * linux-proc.c (linux_info_proc_cmd): Ditto.
1175 * p-typeprint.c (pascal_type_print_base): Ditto.
1176 * p-valprint.c (pascal_object_print_class_method): Ditto.
1177 (pascal_object_print_class_member): Ditto.
1178 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1179 * remote.c (remote_cisco_section_offsets): Ditto.
1180 * top.c (command_line_input): Ditto.
1181 * utils.c (vwarning,error_stream,quit): Ditto.
1182 * valprint.c (print_floating,print_binary_chars)
1183 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1184
1185 2003-08-04 Andrew Cagney <cagney@redhat.com>
1186
1187 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1188
1189 2003-08-02 Andrew Cagney <cagney@redhat.com>
1190
1191 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1192 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1193 amd64fbsd-nat.c.
1194
1195 2003-08-02 Andrew Cagney <cagney@redhat.com>
1196
1197 * Makefile.in: Update all dependencies and definitions.
1198
1199 2003-08-02 Adam Fedor <fedor@gnu.org>
1200
1201 * linespec.c (is_objc_method_format): New function
1202 (decode_line_1, locate_first_half): Use it.
1203 Fixes PR objc/1298
1204
1205 2003-08-01 Andrew Cagney <cagney@redhat.com>
1206
1207 * NEWS: Mention that m32r is multi-arch.
1208 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1209 * configure.tgt: Recognize m32r-*-*.
1210 * config/m32r/tm-m32r.h: Delete file.
1211 * config/m32r/m32r.mt: New file.
1212 * m32r-rom.c (m32r_upload_command): Use hostent only when
1213 gethostname succeeds, in order to avoid a compilation
1214 warning.
1215 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1216 compiler warning.
1217
1218 2003-08-01 Michael Snyder <msnyder@redhat.com>
1219
1220 * sh-tdep.c (sh_frame_align): New gdbarch method.
1221 (sh_gdbarch_init): Set up frame_align method.
1222
1223 2003-07-31 Michael Snyder <msnyder@redhat.com>
1224
1225 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1226 which is already covered by the new frames infrastructure.
1227
1228 2003-07-31 Andrew Cagney <cagney@redhat.com>
1229
1230 * user-regs.c (struct user_reg): Add "next" link.
1231 (struct user_regs): Replace "user" with "first" and "last" links.
1232 (append_user_reg): Add pre-allocated "reg" parameter.
1233 (builtin_user_regs): Provide initial value for "last".
1234 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1235 (user_regs_init): Allocate memory from the gdbarch obstack.
1236 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1237 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1238 linked list.
1239 (usernum_to_user_reg): New function.
1240 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1241 (value_of_user_reg): Use usernum_to_user_reg.
1242 (user_regs_free): Delete function.
1243 (_initialize_user_regs): Update register_gdbarch_data call.
1244
1245 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1246
1247 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1248
1249 2003-07-30 Michael Snyder <msnyder@redhat.com>
1250
1251 * value.h (value_being_returned): Add a struct_addr argument.
1252 * infcall.c (call_function_by_hand): Pass struct_addr to
1253 value_being_returned.
1254 * infcmd.c (print_return_value): Pass zero as struct_addr.
1255 * values.c (value_being_returned): If struct_addr is passed,
1256 use it instead of trying to recover it from the inferior.
1257
1258 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1259
1260 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1261 the prologue analyzer won't need to attempt to extract the pc
1262 value from the woefully incomplete dummy frame.
1263 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1264 possible. Disable code which modifies the frame.
1265
1266 2003-07-28 Andrew Cagney <cagney@redhat.com>
1267
1268 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1269 to level 2.
1270 (annotate_breakpoints_table, annotate_record): Ditto.
1271 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1272 (annotate_field_name_end, annotate_field_value): Ditto.
1273 (annotate_field_end, annotate_frame_source_begin): Ditto.
1274 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1275 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1276 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1277 (annotate_frame_address_end, annotate_frame_address): Ditto.
1278 (annotate_frame_args, annotate_frame_end): Ditto.
1279 (annotate_frame_where, annotate_arg_begin): Ditto.
1280 (annotate_arg_name_end, annotate_arg_value): Ditto.
1281 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1282 (annotate_function_call, annotate_signal_name): Ditto.
1283 (annotate_signal_string, annotate_signal_name_end): Ditto.
1284 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1285 (annotate_value_begin, annotate_value_history_value): Ditto.
1286 (annotate_value_history_end, annotate_value_end): Ditto.
1287 (annotate_display_begin, annotate_display_number_end): Ditto.
1288 (annotate_display_format, annotate_display_expression): Ditto.
1289 (annotate_display_expression_end, annotate_display_value): Ditto.
1290 (annotate_display_end, annotate_array_section_begin): Ditto.
1291 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1292 (annotate_elt, annotate_array_section_end): Ditto.
1293
1294 2003-07-28 Andrew Cagney <cagney@redhat.com>
1295
1296 * regcache.c (struct regcache_descr): Update comments on
1297 nr_raw_registers.
1298 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1299 sizeof_raw_register_valid_p.
1300 (init_regcache_descr): Set nr_raw_registers and
1301 sizeof_raw_register_valid_p before calling
1302 init_legacy_regcache_descr.
1303
1304 2003-07-28 Andrew Cagney <cagney@redhat.com>
1305
1306 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1307 MOD NUM_REGS.
1308
1309 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1310
1311 * thread.c (info_threads_command): Use get_selected_frame ().
1312 Check that there is at least one non-sentinel frame.
1313
1314 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1315
1316 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1317 (m68hc11_pop_frame): Remove.
1318 (m68hc11_frame_saved_pc): Remove.
1319 (m68hc11_frame_chain): Remove.
1320 (m68hc11_frame_init_saved_regs): Remove.
1321 (m68hc11_init_extra_frame_info): Remove.
1322 (m68hc11_store_struct_return): Remove.
1323 (m68hc11_saved_pc_after_call): Remove.
1324
1325 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1326
1327 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1328 frame unwind information.
1329 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1330 and adapted for frame unwinding.
1331 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1332 (m68hc11_unwind_pc): New function.
1333 (m68hc11_frame_unwind_cache): New function to analyze frames.
1334 (m68hc11_frame_this_id): New function to create new frame struct.
1335 (m68hc11_frame_prev_register): New function to unwind a register from
1336 the frame.
1337 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1338 (m68hc11_frame_p): New function for the above.
1339 (m68hc11_frame_base_address): New function to return fp of frame.
1340 (m68hc11_frame_args_address): Update for frame.
1341 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1342 (m68hc11_unwind_sp): New function.
1343 (m68hc11_unwind_dummy_id): New function.
1344 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1345 calls.
1346
1347 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1348
1349 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1350 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1351 when we are beyond the current pc.
1352
1353 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1354
1355 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1356 from m68hc11_push_arguments.
1357 (m68hc11_push_arguments): Remove.
1358 (m68hc11_push_return_address): Remove.
1359 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1360 handlers; remove deprecated_extra_stack_alignment_needed.
1361
1362 2003-07-27 Andrew Cagney <cagney@redhat.com>
1363
1364 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1365 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1366 REAL_PC and not the pointer.
1367 * hppa-hpux-tdep.c: Include frame.h
1368
1369 2003-07-27 Andrew Cagney <cagney@redhat.com>
1370
1371 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1372 GDB_MULTI_ACH_PARTIAL.
1373
1374 2003-07-27 Andrew Cagney <cagney@redhat.com>
1375
1376 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1377 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1378 operator at start and not end of line.
1379 (decode_prologue): Ditto.
1380 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1381 frame_unwind_register_unsigned instead of
1382 frame_unwind_unsigned_register.
1383 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1384 read_register.
1385 (m32r_push_dummy_call): Use register_size instead of
1386 REGISTER_RAW_SIZE.
1387 (m32r_frame_sniffer): Replace m32r_frame_p.
1388 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1389 * m32r-rom.c (report_transfer_performance): Delete extern
1390 declaration.
1391 (m32r_load, m32r_upload_command): Use print_transfer_performance
1392 instead of report_transfer_performance.
1393 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1394 / add_show_from_set.
1395
1396 2003-07-26 Andrew Cagney <cagney@redhat.com>
1397
1398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1399 store_return_value and extract_struct_value_address.
1400
1401 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1402
1403 PR c++/1267
1404 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1405 NULL, default to the section containing PC.
1406
1407 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1408
1409 * NEWS: Mention "regs" deprecated for m68hc11 too.
1410
1411 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1412 (m68hc11_print_register): New function to print out one register.
1413 (m68hc11_print_registers_info): New function to print registers.
1414 (show_regs): Deprecate and use the above.
1415 (m68hc11_gdbarch_init): Install the print_registers_info.
1416
1417 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1418
1419 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1420 that we have a SIGTRAP before returning non-zero.
1421
1422 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1423 Elena Zannoni <ezannoni@redhat.com>
1424
1425 * linespec.c (decode_line_2): Avoid crash if
1426 find_function_start_sal() returns empty record.
1427
1428 2003-07-23 Andreas Schwab <schwab@suse.de>
1429
1430 * ia64-tdep.c (ia64_print_insn): New function.
1431 (ia64_gdbarch_init): Set print_insn to it.
1432 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1433 deprecated_tm_print_insn_info.
1434
1435 2003-07-22 Michael Snyder <msnyder@redhat.com>
1436
1437 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1438 handle 8-bit returns (long long).
1439 (h8300h_extract_return_value): Ditto.
1440 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1441
1442 2003-07-22 Andrew Cagney <cagney@redhat.com>
1443
1444 * gdbarch.c Include "gdb_obstack.h".
1445 (struct gdbarch): Add an "obstack".
1446 (alloc_gdbarch_data): Allocate the gdbarch data using
1447 GDBARCH_OBSTACK_CALLOC.
1448 (free_gdbarch_data): Delete function.
1449 (gdbarch_obstack_zalloc): New function.
1450 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1451 Assert that the architecture is not initialized.
1452 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1453 vector from the obstack.
1454 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1455 architecture obstack.
1456 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1457 (set_gdbarch_data): Assert that the data is not initialized.
1458 (struct gdbarch_data): Delete member "free".
1459 (register_gdbarch_data): Do not initialize "free".
1460 * gdbarch.h, gdbarch.c: Re-generate.
1461
1462 2003-07-22 Andrew Cagney <cagney@redhat.com>
1463
1464 * configure.in (build_warnings): Add -Wformat-nonliteral.
1465 * configure: Re-generate.
1466
1467 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1468
1469 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1470
1471 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1472
1473 * findvar.c (read_var_value): Remove case for thread local storage
1474 variables. It is now entirely handled by the dwarf2 location
1475 expression code.
1476 * printcmd.c (address_info): Ditto.
1477 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1478 enumeration value.
1479 (struct symbol): Remove objfile field, which was used by
1480 LOC_THREAD_LOCAL_STATIC only.
1481 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1482 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1483 usage of objfile pointer.
1484 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1485 thread local variables.
1486 Add include of objfiles.h.
1487 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1488 storage variables.
1489 * Makefile.in (dwarf2loc.o): Update dependencies.
1490
1491 2003-07-22 Andrew Cagney <cagney@redhat.com>
1492
1493 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1494 get_frame_base.
1495 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1496 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1497 (struct value): Add opaque declaration.
1498 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1499
1500 2003-07-21 Andrew Cagney <cagney@redhat.com>
1501
1502 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1503 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1504
1505 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1506
1507 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1508 regcache_cooked_read_unsigned instead of read_register.
1509 (m68hc11_saved_pc_after_call): Likewise.
1510 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1511 instead of write_register.
1512 (m68hc11_register_type): New function.
1513 (m68hc11_register_virtual_type): Remove.
1514 (m68hc11_store_return_value): Convert to use the regcache.
1515 (m68hc11_extract_struct_value_address): Likewise.
1516 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1517 m68hc11_register_type; undeprecate store_return_value and
1518 extract_struct_value_address.
1519
1520 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1521
1522 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1523 and translate to use regcache.
1524 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1525
1526 2003-07-18 Andrew Cagney <cagney@redhat.com>
1527
1528 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1529 * gdbarch.h, gdbarch.c: Re-generate.
1530 * i386-tdep.c (i386_gdbarch_init): Do not set
1531 DWARF2_BUILD_FRAME_INFO.
1532 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1533 unconditionally.
1534 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1535 DWARF2_BUILD_FRAME_INFO.
1536
1537 2003-07-18 Andrew Cagney <cagney@redhat.com>
1538
1539 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1540 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1541
1542 2003-07-18 Andrew Cagney <cagney@redhat.com>
1543
1544 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1545 frame_unwind_address_in_block, instead of frame_pc_unwind.
1546 (dwarf2_frame_cache): Ditto.
1547
1548 2003-07-18 Andrew Cagney <cagney@redhat.com>
1549
1550 * user-regs.h (struct gdbarch): Declare opaque.
1551 * ui-out.h (struct ui_file): Declare opaque.
1552 * dwarf2-frame.h (struct frame_info): Declare opaque.
1553
1554 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1555
1556 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1557 #include "...".
1558 (procfs_meminfo): Change strerror to safe_strerror.
1559 (procfs_can_run): Remove K&R badness.
1560
1561 2003-07-17 Michael Snyder <msnyder@redhat.com>
1562
1563 * remote-sim.c: Comment typo fix.
1564
1565 2003-07-17 Andrew Cagney <cagney@redhat.com>
1566
1567 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1568 configure.
1569 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1570 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1571 GDB_MULTI_ARCH_PARTIAL.
1572
1573 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1574
1575 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1576 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1577 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1578
1579 2003-07-16 Theodore A. Roth <troth@openavr.org>
1580
1581 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1582 found.
1583 (avr_frame_unwind_cache): Don't unwind FP for main.
1584 Update a comment.
1585 Save the computed prev_sp.
1586 (avr_saved_regs_unwinder): Remove function.
1587 (avr_frame_prev_register): Use PC unwind logic from
1588 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1589
1590 2003-07-16 Andrew Cagney <cagney@redhat.com>
1591
1592 * frame-base.h (frame_base_p_ftype): Delete definition.
1593 (frame_base_append_predicate): Delete declaration.
1594 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1595 (frame_unwind_append_predicate): Delete declaration.
1596 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1597 (append_predicate): Delete parameter "p".
1598 (frame_unwind_append_predicate): Delete function.
1599 (frame_unwind_append_sniffer): Update call to append_predicate.
1600 (frame_unwind_free): Delete function.
1601 (_initialize_frame_unwind): Pass NULL as "free" to
1602 register_gdbarch_data.
1603 (frame_unwind_init): Append the dummy_frame_sniffer.
1604 (frame_unwind_find_by_frame): Simplify.
1605 * frame-base.c (struct frame_base_table): Delete field "p".
1606 (append_predicate): Delete parameter "p".
1607 (frame_base_append_predicate): Delete function.
1608 (frame_base_append_sniffer): Update call to append_predicate.
1609 (frame_base_free): Delete function.
1610 (frame_base_find_by_frame): Simplify.
1611 (_initialize_frame_base): Pass NULL as "free" to
1612 register_gdbarch_data.
1613 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1614 (x86_64_sigtramp_frame_sniffer): Replace
1615 "x86_64_sigtramp_frame_p".
1616 (x86_64_init_abi): Set the frame unwind sniffers.
1617 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1618 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1619 (m68k_gdbarch_init): Set the frame unwind sniffers.
1620 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1621 "i386_sigtramp_frame_p".
1622 (i386_frame_sniffer): Replace "i386_frame_p".
1623 (i386_gdbarch_init): Set the frame unwind sniffers.
1624 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1625 (avr_gdbarch_init): Set the frame unwind sniffers.
1626 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1627 "alpha_sigtramp_frame_p"
1628 (alpha_heuristic_frame_sniffer): Replace
1629 "alpha_heuristic_frame_p".
1630 (alpha_gdbarch_init): Set the frame unwind sniffers.
1631 (alpha_dwarf2_init_abi): Ditto.
1632 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1633 "alpha_debug_frame_p".
1634 (alpha_mdebug_frame_base_sniffer): Replace
1635 "alpha_mdebug_frame_base_p".
1636 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1637 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1638 (d10v_gdbarch_init): Set the frame unwind sniffer.
1639 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1640 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1641 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1642 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1643 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1644 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1645
1646 2003-07-16 Michael Snyder <msnyder@redhat.com>
1647
1648 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1649 should go thru sh_dsp_register_sim_regno, else the dsp regs
1650 will not get the right values.
1651
1652 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1653
1654 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1655 deprecated_store_floating by call to store_typed_floating.
1656 (sh_sh4_register_convert_to_raw): Substitute call to
1657 deprecated_extract_floating by call to extract_typed_floating.
1658
1659 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1660
1661 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1662
1663 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1664
1665 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1666 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1667 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1668 as possible.
1669 (do_pseudo_register): Remove.
1670 (sh_push_dummy_code): New function.
1671 (sh64_store_struct_return): Rename from sh_store_struct_return.
1672 Only called for sh64 now.
1673 (sh_extract_struct_value_address): Regcache'ify.
1674 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1675 and accomodate new tasks.
1676 (sh64_push_return_address): Rename from sh_push_return_address.
1677 Only called for sh64 now.
1678 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1679 Regcache'ify.
1680 (sh3e_sh4_extract_return_value): Regcache'ify.
1681 (sh_default_store_return_value): Ditto.
1682 (sh3e_sh4_store_return_value): Ditto.
1683 (sh_default_register_byte): Remove.
1684 (sh_sh4_register_byte): Remove.
1685 (sh_default_register_raw_size): Remove.
1686 (sh_sh4_register_raw_size): Remove.
1687 (sh_register_virtual_size): Remove.
1688 (sh_sh3e_register_virtual_type): Remove.
1689 (sh_sh3e_register_type): New function.
1690 (sh_sh4_register_virtual_type): Remove.
1691 (sh_sh4_register_type): New function.
1692 (sh_default_register_virtual_type): Remove.
1693 (sh_default_register_type): New function.
1694 (do_fv_register_info): Add parameters to accomodate call from
1695 sh_print_registers_info.
1696 (do_dr_register_info): Ditto.
1697 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1698 Add parameters to accomodate call from sh_print_registers_info.
1699 (sh_do_fp_register): Ditto.
1700 (sh64_do_pseudo_register): Call do_dr_register_info,
1701 do_fv_register_info and sh_do_fp_register with default parameters.
1702 (sh_do_register): Add parameters to accomodate call from
1703 sh_print_registers_info.
1704 (sh_print_register): Ditto.
1705 (sh_print_registers_info): Rename from sh_do_registers_info.
1706 Add parameters to be used as gdbarch_print_registers_info
1707 implementation. Accomodate removed do_pseudo_register function
1708 pointer.
1709 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1710 function pointer. Call sh_print_register with default parameters.
1711 (sh64_do_registers_info): Call sh_print_registers_info instead of
1712 sh_do_registers_info.
1713 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1714 detection of deprecated vs. non-deprecated functionality.
1715 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1716 function pointer assignments by direct function calls.
1717
1718 2003-07-15 Andrew Cagney <cagney@redhat.com>
1719
1720 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1721 (frame_register_unwind, create_new_frame): Ditto.
1722 (legacy_get_prev_frame, get_frame_type): Ditto.
1723 (get_frame_base_address): Use frame_base_find_by_frame.
1724 (get_frame_locals_address): Use frame_base_find_by_frame.
1725 (get_frame_args_address): Use frame_base_find_by_frame.
1726 * frame-base.h (frame_base_sniffer_ftype): Declare.
1727 (frame_base_append_sniffer): Declare.
1728 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1729 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1730 (frame_base_append_sniffer): New function.
1731 (frame_base_append_predicate): Add a NULL sniffer.
1732 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1733 (struct frame_base_table): Add "sniffer".
1734 (frame_base_free): Free the "sniffer" table.
1735 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1736 (frame_unwind_append_sniffer): Declare.
1737 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1738 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1739 (struct frame_unwind_table): Add "sniffer", delete "middle".
1740 (append_predicate): Add "sniffer" parameter, append the sniffer.
1741 (frame_unwind_init): Update append_predicate call.
1742 (frame_unwind_append_sniffer): New function.
1743 (frame_unwind_append_predicate): Update append_predicate call.
1744 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1745
1746 2003-07-15 Andrew Cagney <cagney@redhat.com>
1747
1748 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1749 before code inhibiting repeated unwind attempts. Add to
1750 commentary on that test's problems.
1751 * blockframe.c (inside_main_func): Look for "main" in the minimal
1752 symbol table.
1753 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1754 identical.
1755
1756 2003-07-15 Andrew Cagney <cagney@redhat.com>
1757
1758 * complaints.c (struct explanation): Define.
1759 (struct complaints): Change type of "explanation" to "struct
1760 explanation".
1761 (symfile_explanations): Convert to a "struct explanation" table.
1762 (vcomplaint): Update.
1763
1764 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1765
1766 * x86-64-linux-nat.c (regmap): Removed.
1767 (supply_gregset, fill_gregset): Call
1768 x86_64_linux_(fill,supply)_gregset functions.
1769 * x86-64-linux-tdep.c (USER_*): New defines.
1770 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1771 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1772 New functions.
1773 (fetch_core_registers): Ditto.
1774 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1775 * x86-64-linux-tdep.h: New file.
1776 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1777 and core-regset.o.
1778 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1779
1780 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1781
1782 * x86-64-tdep.c (x86_64_store_return_value): Use
1783 regcache_cooked_write_part instead of regcache_cooked_write.
1784
1785 * configure.host: Add x86_64-*-freebsd*.
1786 * configure.tgt: Add x86_64-*-freebsd*.
1787 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1788 * amd64fbsd-nat.c: New file.
1789 * amd64fbsd-tdep.c: New file.
1790 * config/i386/nm-fbsd64.h: New file.
1791 * config/i386/fbsd64.mh: New file.
1792 * config/i386/fbsd64.mt: New file.
1793
1794 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1795
1796 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1797 `sc_regs_offset' and `sc_fpregs_offset'.
1798 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1799 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1800 (alpha_sigtramp_register_address): Rewrite to use new members of
1801 `struct gdbarch_tdep'.
1802 (alpha_gdbarch_init): Initialize new members of struct
1803 gdbarch_tdep'.
1804 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1805 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1806 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1807 (alphafbsd_pc_in_sigtramp): Implement.
1808 (alphafbsd_sigtramp_offset): New function.
1809 (alphafbsd_sigcontext_addr): New function.
1810 (alphafbsd_init_abi): Initialize signal trampoline related members
1811 of `struct gdbarch_tdep'.
1812 (_initialize_alphafbsd_tdep): Add prototype.
1813
1814 2003-07-11 Theodore A. Roth <troth@openavr.org>
1815
1816 * Makefile.in (install-only): Quote sed expression when generating
1817 transformed_name.
1818
1819 2003-07-11 Richard Henderson <rth@redhat.com>
1820
1821 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1822 * dwarf2-frame.c: Include complaints.h.
1823 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1824 variable initialization; return NULL on error.
1825 (decode_frame_entry): New.
1826
1827 2003-07-11 Andrew Cagney <cagney@redhat.com>
1828
1829 * frame.h (frame_address_in_block): Delete declaration.
1830 * blockframe.c (frame_address_in_block): Delete function.
1831 (get_frame_block): Use get_frame_address_in_block.
1832 (block_innermost_frame): Ditto.
1833 * stack.c (print_frame, backtrace_command_1): Ditto.
1834
1835 * frame.h (get_frame_address_in_block): Declare.
1836 (frame_unwind_address_in_block): Declare.
1837 * frame.c (frame_unwind_address_in_block): New function.
1838 (get_frame_address_in_block): New function.
1839
1840 2003-07-10 Andrew Cagney <cagney@redhat.com>
1841
1842 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1843 pre-default. Note: re-generate has no effect.
1844
1845 2003-07-10 Andrew Cagney <cagney@redhat.com>
1846
1847 * gdbarch.sh: When a variable, but not a function, compare against
1848 0. Fix problem in previous patch.
1849 * gdbarch.c: Re-generate.
1850
1851 2003-07-10 Andrew Cagney <cagney@redhat.com>
1852
1853 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1854 functions against NULL, not 0.
1855 * gdbarch.c: Re-generate.
1856
1857 2003-07-10 Fred Fish <fnf@ninemoons.com>
1858
1859 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1860 null string instead of a null pointer.
1861 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1862
1863 2003-07-09 Michael Snyder <msnyder@redhat.com>
1864
1865 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1866
1867 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1868
1869 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1870 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1871 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1872 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1873 * x86-64-tdep.c: ... from here.
1874
1875 2003-07-09 Andreas Schwab <schwab@suse.de>
1876
1877 * m68k-tdep.h (enum struct_return): Define.
1878 (struct gdbarch_tdep): Add struct_return.
1879 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1880 bytes are padded to the right, not to the left. Pass struct value
1881 address in register %a1, not on stack.
1882 (m68k_use_struct_convention): New function.
1883 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1884 struct_return in tdep to pcc_struct_return.
1885 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1886 reg_struct_return.
1887
1888 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1889
1890 * somread.c (som_symfile_offsets): Fix compilation error.
1891
1892 2003-07-09 Andrew Cagney <cagney@redhat.com>
1893
1894 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1895 Add comments about the checks.
1896
1897 2003-07-08 Andrew Cagney <cagney@redhat.com>
1898
1899 * Makefile.in: Make dependency section headers consistent.
1900 (config_h): Move to $BUILD headers section.
1901 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1902 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1903 (ada-exp.tab.c): Move to YACC/LEX section.
1904 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1905 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1906
1907 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1908
1909 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1910 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1911 of strerror with safe_strerror, use ISO C function definitions,
1912 and replace instances of sprintf with snprintf.
1913
1914 2003-07-07 Andrew Cagney <cagney@redhat.com>
1915
1916 * frame.c (get_prev_frame): Enable check for identical frames.
1917 Update comments. Update error messages.
1918
1919 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1920
1921 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1922
1923 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1924
1925 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1926 sort_symtab_syms, no longer necessary.
1927
1928 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1929
1930 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1931
1932 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1933
1934 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1935 (mips_register_byte): Likewise.
1936
1937 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1938
1939 * Makefile.in (sparc_tdep_h): New.
1940 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1941 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1942 * sparc-linux-nat.c: Include "sparc-tdep.h".
1943 * sparc-nat.c: Likewise.
1944 * sparc-tdep.c: Likewise.
1945 * sparc64nbsd-nat.c: Likewise.
1946 * sparcnbsd-nat.c: Likewise.
1947 * sparcnbsd-tdep.c: Likewise.
1948 * sparc-tdep.h: New file.
1949 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1950 and sparc_npc_regnum.
1951
1952 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1953
1954 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1955 (mips_linux_cannot_store_register): List supported instead of
1956 unsupported registers.
1957
1958 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1959
1960 * disasm.c (dump_insns): Separate instructions from addresses.
1961
1962 2003-07-07 Andreas Schwab <schwab@suse.de>
1963
1964 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1965 dependencies.
1966 * m68k-tdep.c (NUM_FREGS): Delete.
1967 (SIG_PC_FP_OFFSET): Delete.
1968 (TARGET_M68K): Delete.
1969 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1970 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1971 P_MOVEL_SP, P_MOVEML_SP): Define.
1972 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1973 P_TRAP): Delete.
1974 (m68k_register_raw_size): Delete.
1975 (m68k_register_virtual_size): Delete.
1976 (m68k_register_type): Renamed from m68k_register_virtual_type and
1977 add gdbarch argument.
1978 (m68k_store_struct_return): Delete.
1979 (m68k_deprecated_extract_return_value): Delete.
1980 (m68k_deprecated_extract_struct_value_address): Delete.
1981 (m68k_frame_chain): Delete.
1982 (m68k_frame_saved_pc): Delete.
1983 (m68k_fix_call_dummy): Delete.
1984 (m68k_push_dummy_frame): Delete.
1985 (m68k_pop_frame): Delete.
1986 (m68k_extract_return_value): New function.
1987 (m68k_store_return_value): Rewrite using regcache.
1988 (m68k_extract_struct_value_address): Rewrite using regcache.
1989 (m68k_push_dummy_call): New function.
1990 (struct m68k_frame_cache): Define.
1991 (m68k_alloc_frame_cache): New function.
1992 (m68k_analyze_frame_setup): New function.
1993 (m68k_analyze_register_saves): New function.
1994 (m68k_analyze_prologue): New function.
1995 (m68k_skip_prologue): Rewrite using above functions.
1996 (m68k_unwind_pc): New function.
1997 (m68k_frame_cache): New function.
1998 (m68k_frame_this_id): New function.
1999 (m68k_frame_prev_register): New function.
2000 (m68k_frame_unwind): New variable.
2001 (m68k_frame_p): New function.
2002 (m68k_sigtramp_frame_cache): New function.
2003 (m68k_sigtramp_frame_this_id): New function.
2004 (m68k_sigtramp_frame_prev_register): New function.
2005 (m68k_sigtramp_frame_unwind): New variable.
2006 (m68k_sigtramp_frame_p): New function.
2007 (m68k_frame_base_address): New function.
2008 (m68k_frame_base): New function.
2009 (m68k_unwind_dummy_id): New function.
2010 (fill_gregset): Use regcache_collect.
2011 (fill_fpregset): Likewise.
2012 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2013 defined.
2014 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2015 deprecated_init_frame_pc, deprecated_store_struct_return,
2016 deprecated_extract_return_value, deprecated_store_return_value,
2017 deprecated_frame_chain, deprecated_frame_saved_pc,
2018 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2019 deprecated_register_virtual_size,
2020 deprecated_max_register_raw_size,
2021 deprecated_max_register_virtual_size,
2022 deprecated_register_virtual_type, deprecated_register_size,
2023 deprecated_register_byte, deprecated_register_bytes,
2024 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2025 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2026 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2027 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2028 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2029 deprecated_push_dummy_frame, deprecated_pop_frame,
2030 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2031 only if SYSCALL_TRAP is defined. Set extract_return_value,
2032 store_return_value, extract_struct_value_address, register_type,
2033 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2034 predicates.
2035 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2036 M68K_MAX_REGISTER_SIZE): Define.
2037 (struct m68k_sigtramp_info): Define.
2038 (struct gdbarch_tdep): Add get_sigtramp_info.
2039 * m68klinux-nat.c (fetch_register): Use register_size instead of
2040 REGISTER_RAW_SIZE. Don't put assignment in if.
2041 (store_register): Likewise.
2042 (fetch_inferior_registers): Likewise.
2043 (store_inferior_registers): Likewise.
2044 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2045 (m68k_linux_frame_saved_pc): Delete.
2046 (m68k_linux_sigcontext_reg_offset,
2047 m68k_linux_ucontext_reg_offset): Define.
2048 (m68k_linux_get_sigtramp_info): New function.
2049 (m68k_linux_extract_return_value): Rewrite using regcache.
2050 (m68k_linux_store_return_value): Likewise.
2051 (m68k_linux_extract_struct_value_address): Likewise.
2052 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2053 Don't set deprecated_frame_saved_pc,
2054 deprecated_extract_return_value, deprecated_store_return_value,
2055 deprecated_extract_struct_value_address. Set
2056 extract_return_value, store_return_value,
2057 extract_struct_value_address.
2058
2059 2003-07-07 Andrew Cagney <cagney@redhat.com>
2060
2061 * expprint.c: Include "user-regs.h" instead of "frame.h".
2062 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2063 frame_map_regnum_to_name.
2064 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2065 (frame_map_name_to_regnum): Simplify, call
2066 user_reg_map_name_to_regnum.
2067 (frame_map_regnum_to_name): Simplify, call
2068 user_reg_map_regnum_to_name.
2069 (frame_register_unwind): Update.
2070 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2071 (_initialize_frame_reg): Call user_reg_add_builtin.
2072 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2073 (value_of_register): Use value_of_user_reg.
2074 * eval.c (evaluate_subexp_standard): Update.
2075 * parse.c (write_dollar_variable): Update.
2076 * d10v-tdep.c (d10v_print_registers_info): Update.
2077 * infcmd.c (registers_info): Update.
2078 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2079 (builtin_regs_h): Delete macro.
2080 (user_regs_h): Define.
2081 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2082 (builtin-regs.o): Delete target.
2083 (user-regs.o): Specify dependencies.
2084 (expprint.o): Update dependencies.
2085 (findvar.o): Update dependencies.
2086 (frame.o): Update dependencies.
2087 (std-regs.o): Update dependencies.
2088
2089 2003-07-06 Christopher Faylor <cgf@redhat.com>
2090
2091 * win32-nat.c (solib_symbols_add): Use one variable for all section
2092 address stuff. Pass variable rather than address of variable to
2093 safe_symbol_file_add.
2094
2095 2003-07-06 Andreas Schwab <schwab@suse.de>
2096
2097 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2098
2099 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2100
2101 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2102
2103 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2104
2105 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2106
2107 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2108
2109 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2110 * config/i386/nto.mh: New file.
2111 * config/i386/nm-nto.h: New file.
2112 * configure.host: Add i[3456]86-*-nto*.
2113
2114 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2115
2116 * remote-vx.c (vx_add_symbols): Fix compilation error.
2117
2118 2003-07-03 Andrew Cagney <cagney@redhat.com>
2119
2120 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2121 * gdbarch.h, gdbarch.c: Re-generate.
2122 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2123 (legacy_register_name): Declare.
2124 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2125 (REGISTER_NAME): Define.
2126 * sparc-tdep.c (legacy_register_name): New function.
2127 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2128 (REGISTER_NAME): Define.
2129 (hppa64_register_name): Declare.
2130 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2131 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2132 (hppa64_register_name): New function.
2133 (hppa_register_name): New function.
2134 * arch-utils.c (legacy_register_name): Delete.
2135 * arch-utils.h (legacy_register_name): Delete.
2136
2137 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2138
2139 * cli/cli-interp.c (cli_interpreter_resume): Update the
2140 cli_uiout's stream to gdb_stdout.
2141
2142 2003-07-03 Andrew Cagney <cagney@redhat.com>
2143
2144 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2145 predicate.
2146 * gdbarch.h, gdbarch.c: Re-generate.
2147 * regcache.c (init_regcache_descr): Use legacy code when either
2148 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2149
2150 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2151
2152 * NEWS: Move "set logging" entry into GDB 6.0 section.
2153
2154 2003-07-02 Jim Blandy <jimb@redhat.com>
2155
2156 * s390-tdep.c (struct frame_extra_info): new member:
2157 'stack_bought_valid'.
2158 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2159 initialize fextra_info->stack_bought.
2160 (s390_frameless_function_invocation): Don't trust the value of
2161 fextra_info_ptr->stack_bought unless
2162 fextra_info->stack_bought_valid is set.
2163
2164 New S390 prologue analyzer.
2165 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2166 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2167 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2168 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2169 compute_x_addr, s390_on_stack, s390_store,
2170 s390_get_signal_frame_info): New functions.
2171 (S390_NUM_SPILL_SLOTS): New macro.
2172 (s390_get_frame_info): Rewritten.
2173 (is_arg_reg): Deleted.
2174
2175 Break out the decoding of S/390 instructions into separate
2176 functions, to make it more legible, and easier to check
2177 against the spec.
2178 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2179 is_rx, is_rxe): New functions.
2180 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2181 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2182 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2183 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2184 enums for opcode values. (Is this an improvement?)
2185
2186 2003-07-02 Andrew Cagney <cagney@redhat.com>
2187
2188 * i386-tdep.c: Revert change committed as part of trad-frame code
2189 below.
2190
2191 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2192
2193 * breakpoint.c (insert_catchpoint): Make static.
2194
2195 2003-07-02 Andreas Schwab <schwab@suse.de>
2196
2197 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2198 former ia64_push_arguments and ia64_push_return_address, and use
2199 regcache functions instead of read/write_register.
2200 (ia64_gdbarch_init): Set push_dummy_call instead of
2201 deprecated_push_arguments and deprecated_push_return_address.
2202
2203 2003-07-01 Andreas Jaeger <aj@suse.de>
2204
2205 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2206 before the call.
2207 Set %rax only to number of SSE registers used.
2208
2209 2003-07-01 Andrew Cagney <cagney@redhat.com>
2210
2211 * trad-frame.h: Update comments, a -1 .addr is reserved.
2212 (trad_frame_value_p, trad_frame_addr_p): Declare.
2213 (trad_frame_reg_p): Declare.
2214 (trad_frame_set_value): Rename trad_frame_register_value.
2215 (trad_frame_set_unknown): Declare.
2216 * trad-frame.c (trad_frame_realreg_p): New function.
2217 (trad_frame_addr_p, trad_frame_value_p): New function.
2218 (trad_frame_set_unknown): New function.
2219 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2220 (trad_frame_prev_register): Use trad_frame_realreg_p,
2221 trad_frame_addr_p and trad_frame_value_p.
2222 (trad_frame_set_value): Rename trad_frame_register_value.
2223 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2224 and trad_frame_set_value.
2225
2226 2003-06-30 Jim Blandy <jimb@redhat.com>
2227
2228 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2229 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2230 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2231 for 16 registers, and then 32 more bytes.
2232 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2233 New macros.
2234 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2235 Move up in the file, since it's now used by is_simple_arg.
2236 (is_simple_arg): Don't assume registers are four bytes long.
2237 Exclude all double arguments. Extended floats are not simple
2238 args.
2239 (is_power_of_two): New function.
2240 (pass_by_copy_ref): Call is_power_of_two, and check that the
2241 length fits in a register, rather than listing all the acceptable
2242 sizes. Extended floats are not passed by reference.
2243 (s390_push_arguments): Don't assume registers are four bytes long.
2244 Reserve an argument register to point to the buffer for structures
2245 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2246 S390_STACK_FRAME_OVERHEAD.
2247
2248 2003-06-30 Andreas Schwab <schwab@suse.de>
2249
2250 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2251 format error message.
2252
2253 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2254
2255 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2256
2257 2003-06-30 David Carlton <carlton@kealia.com>
2258
2259 Band-aid for PR c++/1245.
2260 * Makefile.in (cp-support.o): Depend on complaints_h.
2261 * cp-support.c: Include complaints.h. Add declaration for
2262 find_last_component.
2263 (cp_find_first_component): Separate code into
2264 cp_find_first_component_aux.
2265 (cp_find_first_component_aux): Call demangled_name_complaint.
2266 (demangled_name_complaint): New.
2267
2268 2003-06-30 Andrew Cagney <cagney@redhat.com>
2269
2270 * remote.c (remote_write_bytes): Explicitly compute and then use
2271 the payload size. Update comments to reflect. Fixes problem of
2272 GDB not sending small packets as found by Fred Fish.
2273
2274 2003-06-30 Andrew Cagney <cagney@redhat.com>
2275
2276 * remote.c (remote_async_wait): Fix -Wformat problem.
2277
2278 2003-06-29 Andrew Cagney <cagney@redhat.com>
2279
2280 * remote.c (remote_wait): Call error, and not warning, when the
2281 packet is corrupt.
2282 (remote_async_wait): Ditto.
2283
2284 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2285
2286 * sparc-tdep.c (sparc_y_regnum): Make external again.
2287
2288 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2289
2290 * cli/cli-logging.c (pop_output_files): Add void to function
2291 definition.
2292
2293 2003-06-29 Andrew Cagney <cagney@redhat.com>
2294
2295 * frame.c (frame_register_unwind): Use unsigned char when dumping
2296 the buffer contents.
2297
2298 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2299
2300 * cli/cli-logging.c: New file.
2301 * cli-out.c (struct ui_out_data): Add original_stream.
2302 (cli_redirect): New function.
2303 (cli_ui_out_impl): Add cli_redirect.
2304 (cli_out_new): Initialize original_stream.
2305 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2306 (uo_redirect, ui_out_redirect): New.
2307 * ui-out.h (struct ui_out_impl): Add redirect member.
2308 (redirect_ftype): New.
2309 (ui_out_redirect): Add prototype.
2310 * Makefile.in: Add rules for cli-logging.c.
2311 * NEWS: Mention "set logging".
2312
2313 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2314
2315 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2316
2317 2003-06-27 Andrew Cagney <cagney@redhat.com>
2318
2319 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2320 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2321 * avr-tdep.c (avr_call_dummy_address): Delete function.
2322 (avr_gdbarch_init): Do not set call_dummy_address.
2323
2324 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2325
2326 * symfile.c (syms_from_objfile): Move variables to inner block.
2327 Move the checks for the non-mainline case a bit earlier to avoid
2328 doing some useless computations.
2329
2330 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2331
2332 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2333
2334 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2335
2336 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2337 sections.
2338
2339 2003-06-26 Michael Chastain <mec@shout.net>
2340
2341 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2342 gdb/testsuite/gdb.c++/pr-1210.exp.
2343
2344 2003-06-26 Andrew Cagney <cagney@redhat.com>
2345
2346 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2347 altivec_expression.h and altivec_registers.h.
2348
2349 2003-06-26 Andrew Cagney <cagney@redhat.com>
2350
2351 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2352 info->mach when MIPS16. Patch suggested by Fred Fish.
2353
2354 2003-06-26 Andrew Cagney <cagney@redhat.com>
2355
2356 * utils.c (internal_vproblem): Print the problem to a reason
2357 buffer and then pass to query. Make the msg variable more local.
2358
2359 2003-06-26 Andrew Cagney <cagney@redhat.com>
2360
2361 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2362 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2363 * gdbarch.h, gdbarch.c: Re-generate.
2364 * frame-base.c (default_frame_args_address): Update. Use
2365 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2366 not available.
2367 (default_frame_locals_address): Ditto for
2368 DEPRECATED_FRAME_LOCALS_ADDRESS.
2369 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2370 (vax_frame_num_args): Update.
2371 (vax_gdbarch_init): Update.
2372 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2373 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2374 * mcore-tdep.c (mcore_gdbarch_init): Update.
2375 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2376 * ia64-tdep.c (ia64_gdbarch_init): Update.
2377 * symtab.h (address_class): Update comments.
2378 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2379 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2380 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2381 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2382 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2383 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2384 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2385 * alpha-mdebug-tdep.c: Update.
2386 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2387
2388 2003-06-26 Andreas Jaeger <aj@suse.de>
2389
2390 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2391 of SSE registers so that varargs functions work. Rework handling
2392 of passing arguments on the stack.
2393 (x86_64_store_return_value): Return double and float values in SSE
2394 register.
2395
2396 2003-06-24 Michael Chastain <mec@shout.net>
2397
2398 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2399 the "constructor breakpoints ignored" bug.
2400
2401 2003-06-25 David Carlton <carlton@kealia.com>
2402
2403 * MAINTAINERS: Update e-mail address.
2404
2405 2003-06-24 Jim Blandy <jimb@redhat.com>
2406
2407 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2408
2409 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2410 function.
2411 (ppc_linux_init_abi): Register it as the
2412 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2413
2414 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2415 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2416 method.
2417
2418 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2419 (ppc64_standard_linkage_target): Use it.
2420
2421 2003-06-23 Andrew Cagney <cagney@redhat.com>
2422
2423 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2424 for 0 "int0" and 4 "int32" sized registers.
2425 * gdbtypes.c (builtin_type_int0): Define.
2426 (build_gdbtypes): Initialize builtin_type_int0.
2427 * gdbtypes.h (builtin_type_int0): Declare.
2428
2429 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2430
2431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2432 as characters are unsigned.
2433
2434 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2435
2436 PR gdb/1179
2437 * dwarfread.c (struct_type): Skip static fields without crashing.
2438
2439 2003-06-22 Andrew Cagney <cagney@redhat.com>
2440
2441 GDB 6.0 branch created.
2442 * README: Update.
2443 * PROBLEMS: Update. Empty.
2444 * NEWS: Update.
2445
2446 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2447
2448 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2449 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2450
2451 2003-06-22 Andrew Cagney <cagney@redhat.com>
2452
2453 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2454 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2455 Velikov.
2456
2457 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2458
2459 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2460 compilers.
2461
2462 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2463
2464 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2465 argument of val_print.
2466 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2467 to the address argument of baseclass_offset or target_read_memory.
2468 Do add it to the argument of cp_print_value_fields.
2469
2470 2003-06-21 Andrew Cagney <cagney@redhat.com>
2471
2472 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2473 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2474 instead of 0..NUM_REGS.
2475 (mips_register_reggroup_p): New function.
2476 (mips_pseudo_register_write): New function.
2477 (mips_pseudo_register_read): New function.
2478 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2479 based on the register's type.
2480 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2481 cooked.
2482 (mips_get_saved_register): Simplify. Assert that REGNO is a
2483 pseudo / cooked.
2484 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2485 (mips_register_type): Replace mips_register_virtual_type. Map
2486 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2487 when available.
2488 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2489 that the register is cooked / virtual.
2490 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2491 Only get the extra info when needed.
2492 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2493 (mips32_heuristic_proc_desc): Fetch the cooked register.
2494 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2495 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2496 (mips_print_register): Use gdbarch_register_type, instead of
2497 REGISTER_VIRTUAL_TYPE.
2498 (print_gp_register_row): Use gdbarch_register_type, instead of
2499 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2500 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2501 Print the pseudo / cooked registers.
2502 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2503 Print the pseudo / cooked registers.
2504 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2505 REG_NUM is pseudo / cooked.
2506 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2507 (mips_n32n64_xfer_return_value): Ditto.
2508 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2509 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2510 (mips_register_sim_regno): New function.
2511 (mips_gdbarch_init): Set deprecated_register_byte,
2512 register_group_p, pseudo_register_write, pseudo_register_read,
2513 register_sim_regno, and num_pseudo_regs. Set register_type,
2514 instead of register_virtual_type.
2515 * Makefile.in (mips-tdep.o): Update dependencies.
2516 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2517 REGISTER_VIRTUAL_TYPE.
2518 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2519 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2520 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2521 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2522 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2523
2524 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2525
2526 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2527 * cli/cli-cmds.c: Include "gdb_vfork.h".
2528 (shell_escape): Use vfork.
2529
2530 2003-06-21 Andrew Cagney <cagney@redhat.com>
2531
2532 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2533 32 bit floating-point register saves.
2534
2535 * frame.h (deprecated_unwind_get_saved_register): Delete.
2536 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2537 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2538 and deprecated_get_next_frame_hack instead of
2539 deprecated_unwind_get_saved_register.
2540
2541 * mips-tdep.c (mips_dump_tdep): Do not print
2542 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2543
2544 * frame.c (get_frame_register): New function.
2545 (frame_unwind_register_signed): New function.
2546 (get_frame_register_signed): New function.
2547 (frame_unwind_register_unsigned): New function.
2548 (get_frame_register_unsigned): New function.
2549 * frame.h: Add comments on naming schema.
2550 (get_frame_register, frame_unwind_register_signed): Declare.
2551 (get_frame_register_signed, get_frame_register_signed): Declare.
2552 (frame_unwind_register_unsigned): Declare.
2553 (get_frame_register_unsigned): Declare.
2554
2555 2003-06-20 Theodore A. Roth <troth@openavr.org>
2556
2557 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2558
2559 2003-06-20 Theodore A. Roth <troth@openavr.org>
2560
2561 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2562 (avr_read_sp): Ditto.
2563
2564 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2565
2566 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2567 * config/arm/nm-linux.h: Likewise.
2568 * config/arm/tm-linux.h: Likewise.
2569 * config/ia64/nm-linux.h: Likewise.
2570 * config/ia64/tm-ia64.h: Likewise.
2571 * config/s390/tm-linux.h: Likewise.
2572 * config/s390/tm-s390.h: Likewise.
2573 * s390-nat.c: Likewise.
2574 * s390-tdep.c: Likewise.
2575
2576 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2577 * config/ia64/linux.mt: Likewise.
2578 * config/m68k/linux.mh: Likewise.
2579 * config/mips/linux.mt: Likewise.
2580 * config/powerpc/linux.mh: Likewise.
2581 * config/sh/linux.mt: Likewise.
2582
2583 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2584
2585 * solib.c (solib_open): Change tests for whether to search
2586 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2587 comments.
2588
2589 2003-06-19 Theodore A. Roth <troth@openavr.org>
2590
2591 * avr-tdep.c (avr_frame_address): Delete function.
2592 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2593 set_gdbarch_frame_args_address.
2594
2595 2003-06-19 Andrew Cagney <cagney@redhat.com>
2596
2597 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2598 (REGISTER_CONVERT_FROM_TYPE): Delete.
2599 (mips_register_convert_to_type): Delete declaration.
2600 (mips_register_convert_from_type): Delete declaration.
2601 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2602 kernel/.
2603
2604 2003-06-19 Michael Snyder <msnyder@redhat.com>
2605
2606 * linux-nat.h: New file.
2607 * linux-nat.c: Include linux-nat.h.
2608 * lin-lwp.c: Include linux-nat.h.
2609 Move struct lwp_info def to linux-nat.h.
2610 * linux-proc.c: Include linux-nat.h.
2611 (linux_make_note_section): Iterate over lwps instead of threads.
2612 (linux_do_thread_registers): Use lwp instead of merged pid.
2613 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2614 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2615 Add dependency on linux_nat_h.
2616
2617 2003-06-19 Theodore A. Roth <troth@openavr.org>
2618
2619 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2620
2621 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2622
2623 * varobj.c (get_type, get_target_type): Use check_typedef.
2624
2625 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2626
2627 * breakpoint.c (insert_catchpoint): Call internal_error.
2628
2629 2003-06-19 Theodore A. Roth <troth@openavr.org>
2630
2631 * avr-tdep.c (avr_push_dummy_code): Delete function.
2632 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2633
2634 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2635
2636 * arch-utils.c (default_prepare_to_proceed): Remove.
2637 (generic_prepare_to_proceed): Remove.
2638 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2639 (generic_prepare_to_proceed): Remove prototype.
2640 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2641 * gdbarch.c: Regenerate.
2642 * gdbarch.h: Regenerate.
2643 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2644 * hppah-nat.c (hppa_switched_threads): Remove.
2645 * infrun.c (prepare_to_proceed): New static function, copied from
2646 generic_prepare_to_proceed. Remove select_it argument.
2647 (proceed): Call prepare_to_proceed.
2648 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2649 variables.
2650 (ptrace_wait): Don't set the removed variables.
2651 (hppa_switched_threads): Remove.
2652 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2653 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2654 (lin_lwp_prepare_to_proceed): Remove prototype.
2655 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2656 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2657
2658 2003-06-18 Theodore A. Roth <troth@openavr.org>
2659
2660 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2661 trad-frame.h.
2662 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2663 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2664 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2665 (AVR_PROLOGUE_*): Enumerate prologue types.
2666 (struct frame_extra_info): Remove.
2667 (struct avr_unwind_cache): Define.
2668 (avr_write_sp): Delete function.
2669 (avr_read_fp): Ditto.
2670 (avr_init_extra_frame_info): Ditto.
2671 (avr_pop_frame): Ditto.
2672 (avr_frame_saved_pc): Ditto.
2673 (avr_saved_pc_after_call): Ditto.
2674 (avr_push_return_address): Ditto.
2675 (avr_frame_chain): Ditto.
2676 (avr_store_struct_return): Ditto.
2677 (avr_push_arguments): Ditto.
2678 (avr_scan_prologue): Update comments. Changed to set up the info for
2679 cache unwinding. Now returns end of prologue PC.
2680 (avr_skip_prologue): Better handling of functions lacking a prologue
2681 by using avr_scan_prologue.
2682 (avr_scan_arg_moves): New function.
2683 (avr_saved_regs_unwinder): Ditto.
2684 (avr_frame_unwind_cache): Ditto.
2685 (avr_unwind_pc): Ditto.
2686 (avr_frame_this_id): Ditto.
2687 (avr_frame_prev_register): Ditto.
2688 (avr_frame_p): Ditto.
2689 (avr_frame_base_address ): Ditto.
2690 (avr_unwind_dummy_id): Ditto.
2691 (avr_push_dummy_code): Ditto.
2692 (push_stack_item): Ditto.
2693 (pop_stack_item): Ditto.
2694 (avr_push_dummy_call): Ditto.
2695 (struct stack_item): Define.
2696 (avr_frame_unwind): Declare structure.
2697 (avr_frame_base): Ditto.
2698 (avr_gdbarch_init): Remove calls to
2699 set_gdbarch_deprecated_init_frame_pc,
2700 set_gdbarch_deprecated_target_read_fp,
2701 set_gdbarch_deprecated_dummy_write_sp,
2702 set_gdbarch_deprecated_fp_regnum,
2703 set_gdbarch_deprecated_push_arguments,
2704 set_gdbarch_deprecated_push_return_address,
2705 set_gdbarch_deprecated_pop_frame,
2706 set_gdbarch_deprecated_store_struct_return,
2707 set_gdbarch_deprecated_frame_init_saved_regs,
2708 set_gdbarch_deprecated_init_extra_frame_info,
2709 set_gdbarch_deprecated_frame_chain,
2710 set_gdbarch_deprecated_frame_saved_pc,
2711 set_gdbarch_deprecated_saved_pc_after_call.
2712 Add calls to set_gdbarch_push_dummy_call,
2713 set_gdbarch_push_dummy_code,
2714 frame_unwind_append_predicate,
2715 frame_base_set_default,
2716 set_gdbarch_unwind_dummy_id,
2717 set_gdbarch_unwind_pc.
2718 Wrap a long line.
2719
2720 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2721
2722 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2723 registers for H8/300S.
2724 (h8300_print_registers_info): Ditto.
2725 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2726
2727 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2728
2729 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2730 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2731 (lin_lwp_wait): Likewise. Update comments.
2732 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2733 (pull_pid_from_list, linux_record_stopped_pid): New.
2734
2735 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2736
2737 * ada-lang.c (scan_discrim_bound): Name first argument.
2738 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2739 declared by ALL_BLOCK_SYMBOLS.
2740
2741 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2742
2743 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2744 ("regcache.h"): Include it.
2745 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2746
2747 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2748
2749 * NEWS: Mention gdbserver detach change and "disconnect" command.
2750 * infcmd.c (disconnect_command): New function.
2751 (_initialize_infcmd): Add ``disconnect'' command.
2752 * remote.c (remote_async_detach): Delete.
2753 (remote_detach): Merge remote_async_detach.
2754 (remote_disconnect): New.
2755 (init_remote_ops): Set to_disconnect.
2756 (init_remote_cisco_ops): Likewise.
2757 (init_remote_async_ops): Likewise. Use remote_detach.
2758 * target.c (cleanup_target): Default to_disconnect.
2759 (update_current_target): Inherit to_disconnect.
2760 (target_disconnect, debug_to_disconnect): New functions.
2761 (setup_target_debug): Set to_disconnect.
2762 * target.h (struct target_ops): Add to_disconnect.
2763 (target_disconnect): Add prototype.
2764
2765 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2766
2767 * breakpoint.c (insert_catchpoint): New function.
2768 (insert_breakpoints): Use catch_exceptions to call
2769 insert_catchpoint. Disable catchpoints if they fail to insert.
2770
2771 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2772
2773 * symfile.c (reread_symbols): Clear sym_private.
2774
2775 2003-06-17 Andrew Cagney <cagney@redhat.com>
2776
2777 * trad-frame.h (struct frame_info): Add opaque declaration.
2778 * remote-fileio.h (struct cmd_list_element): Add opaque
2779 declaration.
2780 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2781 comments.
2782
2783 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2784
2785 * remote.c (remote_prepare_to_store): Replace call to
2786 deprecated_read_register_bytes with multiple regcache_raw_read
2787 calls.
2788
2789 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2790
2791 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2792 (nto_find_and_open_solib): Likewise.
2793 (nto_init_solib_absolute_prefix): Likewise.
2794 (_initialize_nto_tdep): Fix indentation.
2795
2796 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2797
2798 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2799
2800 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2801
2802 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2803
2804 2003-06-17 Jim Blandy <jimb@redhat.com>
2805
2806 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2807
2808 2003-06-16 Theodore A. Roth <troth@openavr.org>
2809
2810 * avr-tdep.c (avr_extract_return_value): New function.
2811 (avr_gdbarch_init): Set extract_return_value method.
2812
2813 2003-06-16 Andrew Cagney <cagney@redhat.com>
2814
2815 * frame.h (deprecated_get_next_frame_hack): Declare.
2816 * frame.c (legacy_saved_regs_prev_register): Only require
2817 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2818 there are always saved regs.
2819 (deprecated_generic_get_saved_register): Do not require
2820 DEPRECATED_FRAME_INIT_SAVED_REGS.
2821 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2822 use frame ID unwind instead.
2823 (deprecated_get_next_frame_hack): New function.
2824
2825 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2826
2827 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2828 (h8300_push_dummy_call): ...this function. Some minor optimization.
2829 (h8300_push_return_address): Remove.
2830 (h8300_gdbarch_init): Remove calls to
2831 set_gdbarch_deprecated_dummy_write_sp,
2832 set_gdbarch_deprecated_push_arguments and
2833 set_gdbarch_deprecated_push_return_address.
2834 Add call to set_gdbarch_push_dummy_call.
2835
2836 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2837
2838 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2839 (E_PSEUDO_EXR_REGNUM): Ditto.
2840 (h8300_is_argument_spill): Check for instructions moving argument
2841 registers into safe registers.
2842 (h8300_skip_prologue): Check for stm instruction to push registers
2843 used for register variables onto stack.
2844 (gdb_print_insn_h8300): Remove.
2845 (h8300_examine_prologue): Add a comment.
2846 (h8300_register_name): Take pseudo registers into account.
2847 (h8300s_register_name): Ditto.
2848 (h8300sx_register_name): Ditto.
2849 (h8300_print_register): Ditto.
2850 (h8300_print_registers_info): Define "nice" printing order.
2851 (h8300_saved_pc_after_call): Take pseudo registers into account.
2852 (h8300_register_type): Ditto. Return type used for remote connection
2853 when requesting real CCR or EXR register, return actual type when
2854 requesting pseudo CCR or EXR.
2855 (h8300_pseudo_register_read): New function.
2856 (h8300_pseudo_register_write): Ditto.
2857 (h8300_dbg_reg_to_regnum): Ditto.
2858 (h8300s_dbg_reg_to_regnum): Ditto.
2859 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2860 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2861 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2862 set_gdbarch_print_insn architecture dependent.
2863 Call set_gdbarch_pseudo_register_read and
2864 set_gdbarch_pseudo_register_write.
2865 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2866
2867 2003-06-16 Andrew Cagney <cagney@redhat.com>
2868
2869 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2870 * gdbarch.h, gdbarch.c: Re-generate.
2871 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2872 * s390-tdep.c (s390_gdbarch_init): Update.
2873 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2874 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2875 * mips-tdep.c (mips_gdbarch_init): Update.
2876 * mcore-tdep.c (mcore_gdbarch_init): Update.
2877 * cris-tdep.c (cris_gdbarch_init): Update.
2878 * infcall.c (call_function_by_hand): Update.
2879 * ia64-tdep.c (ia64_push_arguments): Update comment.
2880 * frame.c (legacy_get_prev_frame): Do not assume
2881 SAVE_DUMMY_FRAME_TOS_P.
2882 * dummy-frame.c (find_dummy_frame): Update comment.
2883
2884 2003-06-16 Andrew Cagney <cagney@redhat.com>
2885
2886 * regcache.c (do_cooked_read): Do not use register_valid_p.
2887
2888 2003-06-15 Theodore A. Roth <troth@openavr.org>
2889
2890 * avr-tdep.c (avr_register_type): Remove a blank line.
2891 (avr_scan_prologue): Correct some comments.
2892
2893 2003-06-15 Theodore A. Roth <troth@openavr.org>
2894
2895 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2896 prologue types.
2897 Properly scan prologues generated by gcc with the -mcall-prologues
2898 option.
2899 Add code to scan -mcall-prologues for mega devices.
2900
2901 2003-06-15 Theodore A. Roth <troth@openavr.org>
2902
2903 * avr-tdep.c (avr_register_byte): Delete function.
2904 (avr_register_raw_size): Delete function.
2905 (avr_register_virtual_size): Delete function.
2906 (avr_register_virtual_type): Delete function.
2907 (avr_register_type): New function.
2908 (avr_address_to_pointer): Remove unused code.
2909 (avr_read_fp): Need to read FP as two separate bytes due to change to
2910 avr_register_type() usage.
2911 (avr_gdbarch_init): Don't set deprecated_register_size.
2912 Don't set deprecated_register_bytes.
2913 Don't set deprecated_register_byte.
2914 Don't set deprecated_register_raw_size.
2915 Don't set deprecated_max_register_raw_size.
2916 Don't set deprecated_register_virtual_size.
2917 Don't set deprecated_max_register_virtual_size.
2918 Don't set deprecated_register_virtual_type.
2919 Set register_type method.
2920
2921 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2922
2923 * Makefile.in (linux-nat.o): Add rule.
2924 * linux-nat.c: New file.
2925 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2926 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2927 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2928 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2929 * config/arm/linux.mh (NATDEPFILES): Likewise.
2930 * config/i386/linux.mh (NATDEPFILES): Likewise.
2931 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2932 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2933 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2934 * config/mips/linux.mh (NATDEPFILES): Likewise.
2935 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2936 * config/s390/s390.mh (NATDEPFILES): Likewise.
2937 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2938
2939 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2940
2941 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2942 replace out-of-date comment.
2943
2944 2003-06-15 Andrew Cagney <cagney@redhat.com>
2945
2946 * rdi-share/host.h (Fail): Change to a varargs function.
2947 * remote-rdi.c (Fail): Update.
2948
2949 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2950
2951 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2952 (i386_convert_register_p, i386_register_to_value,
2953 i386_register_from_value): Handle types longer than 8 bytes.
2954
2955 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2956
2957 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2958 Move floating-point code to new function in i387-tdep.c.
2959 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2960 New functions containing code moved here from i386-tdep.c.
2961 * i387-tdep.h: Add opaque declaration for `struct type'.
2962 (i387_register_to_value, i387_value_to_register): New prototypes.
2963 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2964 (x86_64_init_abi): Set convert_register_p, register_to_value and
2965 value_to_register here.
2966
2967 2003-06-14 Andrew Cagney <cagney@redhat.com>
2968
2969 * mips-tdep.c (mips_register_to_value): Make static.
2970 (mips_value_to_register): Make static.
2971 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2972 * ia64-tdep.c (ia64_register_raw_size): Make static.
2973 (ia64_register_virtual_size): Make static.
2974 (ia64_register_byte): Make static.
2975 * i387-tdep.c: Include "i387-tdep.h".
2976 (print_387_control_word): Delete function.
2977 (print_387_status_word): Delete function.
2978 (print_387_status_bits): Delete function.
2979 (print_387_control_bits): Delete function.
2980 * Makefile.in (i387-tdep.o): Update dependencies.
2981 * rdi-share/host.h (Fail): Declare.
2982 * remote-rdi.c (Fail): Update to match declaration.
2983
2984 2003-06-14 Andrew Cagney <cagney@redhat.com>
2985
2986 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2987 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2988 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2989 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2990 * README: Delete reference to remote-array.
2991 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2992 (remote-array.o): Delete target.
2993 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2994 * remote-array.c: Delete file.
2995
2996 2003-06-14 Andrew Cagney <cagney@redhat.com>
2997 Mark Kettenis <kettenis@gnu.org>
2998
2999 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3000 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3001 parameter with "frame".
3002 * gdbarch.h, gdbarch.c: Re-generate.
3003 * frame.h (put_frame_register): Declare.
3004 * frame.c (put_frame_register): New function.
3005 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3006 (legacy_register_to_value): Rewrite, use "frame" to get the
3007 register value.
3008 (legacy_value_to_register): Rewrite, use "frame" to find the
3009 register's location before storing.
3010 * arch-utils.h (legacy_convert_register_p): Update.
3011 (legacy_register_to_value, legacy_value_to_register): Update.
3012 * findvar.c (value_from_register): Rewrite, eliminate use of
3013 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3014 "frame" to REGISTER_TO_VALUE.
3015 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3016 lval_reg_frame_relative + lval_register branch of the switch. Do
3017 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3018 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3019 I386_EDI_REGNUM): New defines.
3020 (i386_next_regnum, i386_convert_register_p,
3021 i386_register_to_value, i386_value_to_register): New functions.
3022 (i386_register_convertible, i386_register_convert_to_virtual,
3023 i386_convert_to_raw): Remove functions.
3024 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3025 value_to_register instead of register_convertible,
3026 register_convert_to_virtual and register_convert_to_raw.
3027 * mips-tdep.c (mips_convert_register_p): New function.
3028 (mips_value_to_register): Replace mips_register_convert_from_type.
3029 (mips_register_to_value): Replace mips_register_convert_to_type.
3030 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3031 register_to_value.
3032 * alpha-tdep.c (alpha_convert_register_p): Update.
3033 (alpha_value_to_register): Update, store the register.
3034 (alpha_register_to_value): Update, fetch the register.
3035
3036 2003-06-14 Theodore A. Roth <troth@openavr.org>
3037
3038 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3039 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3040 Don't set deprecated_call_dummy_words.
3041 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3042 Don't set remote_translate_xfer_address.
3043 (avr_io_reg_read_command): Remove commented out debug printf.
3044 Wrap a long line.
3045
3046 2003-06-14 Theodore A. Roth <troth@openavr.org>
3047
3048 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3049 causes gdb to seg fault.
3050
3051 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3052
3053 * sparc-nat.c (fetch_inferior_registers): Correct
3054 a reference to "registers".
3055
3056 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3057
3058 * Makefile.in (exc_request_U_h): Define
3059 (exc_request_S_h): Likewise.
3060 (msg_reply_S_h): Likewise.
3061 (msg_U_h): Likewise.
3062 (notify_S_h): Likewise.
3063 (process_reply_S_h): Likewise.
3064 (gnu-nat.o): Depend on gdb_obstack_h
3065 * gnu-nat.c: Include "gdb_obstack.h".
3066
3067 2003-06-13 Andrew Cagney <cagney@redhat.com>
3068
3069 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3070 * gdbarch.h, gdbarch.c: Re-generate.
3071
3072 2003-06-13 Andrew Cagney <cagney@redhat.com>
3073
3074 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3075 when deprecated REGISTER macros can be deleted.
3076 * gdbarch.h, gdbarch.c: Re-generate.
3077
3078 2003-06-13 Jim Blandy <jimb@redhat.com>
3079
3080 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3081 Linux entry point symbols for _dl_debug_state, too.
3082
3083 2003-06-13 Andrew Cagney <cagney@redhat.com>
3084
3085 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3086 available, do not use the FP register, and always save the TOS.
3087 * dummy-frame.c (dummy_frame_this_id): Do not assert
3088 SAVE_DUMMY_FRAME_TOS.
3089 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3090 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3091 (i386_push_dummy_call): Add 8 to the returned SP.
3092 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3093 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3094 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3095 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3096 (x86_64_push_dummy_call): Return "sp + 16".
3097 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3098 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3099 save_dummy_frame_tos.
3100
3101 2003-06-13 Jim Blandy <jimb@redhat.com>
3102
3103 * frv-tdep.c (frv_use_struct_convention): Delete static
3104 declaration for function deleted in my change of 2003-06-12.
3105
3106 2003-06-13 Theodore A. Roth <troth@openavr.org>
3107
3108 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3109 (avr_pointer_to_address): Shift code addrs left 1 bit.
3110 (avr_convert_from_func_ptr_addr): Delete function since operation is
3111 better handled by avr_address_to_pointer and avr_pointer_to_address.
3112 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3113
3114 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3115
3116 From Kelley Cook <kelleycook@wideopenwest.com>:
3117 * configure.host: Accept i[34567]86 variants.
3118 * configure.tgt: Likewise.
3119 * nlm/configure.in: Likewise.
3120 * nlm/configure: Regenerated.
3121
3122 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3123
3124 * arm-tdep.c (solib-svr4.h): Dont' include it.
3125 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3126 * arm-linux-tdep.c: ... here. Make static.
3127 (arm_linux_init_abi): Register it.
3128 (solib-svr4.h): Include it.
3129 * Makefile.in: Update dependencies.
3130 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3131 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3132
3133 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3134
3135 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3136 indicate registers used for return values.
3137 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3138 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3139 members.
3140 (h8300_init_extra_frame_info): Ditto.
3141 (h8300_frame_locals_address): Removed.
3142 (h8300_frame_args_address): Removed.
3143 (h8300_extract_return_value): Use new regcache structure. Only care
3144 for 16 bit CPUs.
3145 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3146 (h8300_store_return_value): Use new regcache structure. Only care
3147 for 16 bit CPUs.
3148 (h8300h_store_return_value): Same function for 32 bit CPUs.
3149 (h8300_store_struct_return): Removed.
3150 (h8300_extract_struct_value_address): Use new regcache structure.
3151 (h8300h_extract_struct_value_address): Removed.
3152 (h8300_push_dummy_code): New function.
3153 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3154 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3155 set_gdbarch_store_return_value architecture dependent.
3156 Call set_gdbarch_push_dummy_code and
3157 set_gdbarch_extract_struct_value_address.
3158 Remove calls to set_gdbarch_frame_args_address,
3159 set_gdbarch_frame_locals_address,
3160 set_gdbarch_deprecated_store_struct_return,
3161 set_gdbarch_deprecated_extract_return_value,
3162 set_gdbarch_deprecated_extract_struct_value_address,
3163 set_gdbarch_deprecated_call_dummy_words and
3164 set_gdbarch_deprecated_sizeof_call_dummy_words.
3165
3166 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3167
3168 * h8300-tdep.c (h8300_register_byte): Remove.
3169 (h8300h_register_byte): Remove.
3170 (h8300_register_virtual_type): Remove. Substitute by...
3171 (h8300_register_type): New function.
3172 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3173 (h8300h_extract_struct_value_address): Ditto.
3174 (h8300_gdbarch_init): Drop calls to
3175 set_gdbarch_deprecated_register_byte and
3176 set_gdbarch_deprecated_register_virtual_type.
3177 Add call to set_gdbarch_register_type.
3178
3179 2003-06-13 Andrew Cagney <cagney@redhat.com>
3180
3181 * gdbarch.sh: Update comments on registers.
3182 (deprecated_register_byte): Rename register_byte.
3183 (deprecated_register_raw_size): Rename register_raw_size.
3184 (deprecated_register_virtual_size): Rename register_virtual_size.
3185 (deprecated_register_virtual_type): Rename register_virtual_type.
3186 * gdbarch.h, gdbarch.c: Re-generate.
3187 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3188 * vax-tdep.c (vax_gdbarch_init): Update.
3189 * v850-tdep.c (v850_gdbarch_init): Update.
3190 * sparc-tdep.c (sparc_gdbarch_init): Update.
3191 * sh-tdep.c (sh_gdbarch_init): Update.
3192 * s390-tdep.c (s390_gdbarch_init): Update.
3193 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3194 * ns32k-tdep.c: Update.
3195 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3196 * mips-tdep.c (mips_gdbarch_init): Update.
3197 * mcore-tdep.c (mcore_gdbarch_init): Update.
3198 * m68k-tdep.c (m68k_gdbarch_init): Update.
3199 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3200 * ia64-tdep.c (ia64_gdbarch_init): Update.
3201 * hppa-tdep.c (hppa_gdbarch_init): Update.
3202 * h8300-tdep.c (h8300_gdbarch_init): Update.
3203 * frv-tdep.c (frv_gdbarch_init): Update.
3204 * cris-tdep.c (cris_gdbarch_init): Update.
3205 * avr-tdep.c (avr_gdbarch_init): Update.
3206 * alpha-tdep.c (alpha_gdbarch_init): Update.
3207 * arm-tdep.c (arm_gdbarch_init): Update.
3208
3209 2003-06-13 Andrew Cagney <cagney@redhat.com>
3210
3211 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3212 mips_o32_use_struct_convention with always_use_struct_convention.
3213
3214 2003-06-12 David Carlton <carlton@kealia.com>
3215
3216 * cp-namespace.c (cp_set_block_scope): Comment out
3217 processing_has_namespace_info branch.
3218
3219 2003-06-12 Jim Blandy <jimb@redhat.com>
3220
3221 Recognize and skip 64-bit PowerPC Linux linkage functions.
3222 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3223 insn_pattern, insns_match_pattern, d_field, ds_field): New
3224 functions, macros, and types for working with PPC instructions.
3225 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3226 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3227 ppc64_skip_trampoline_code): New functions, variables, and macros
3228 for recognizing and skipping linkage functions.
3229 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3230 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3231
3232 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3233 register offsets for both the 32- and 64-bit interfaces.
3234
3235 Actually finish the job started by my change of 2003-05-29.
3236 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3237 other #definition of this.
3238 (ppc_linux_skip_trampoline_code): Remove declaration.
3239 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3240 static.
3241 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3242 method for GDBARCH.
3243
3244 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3245 'long' on ppc64-*-linux*.
3246
3247 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3248 isn't #defined, assume the register doesn't exist: act as if
3249 tdep->ppc_mq_regnum were -1.
3250
3251 * configure.host, configure.tgt: Add entries for
3252 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3253 powerpc/linux.mt.
3254 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3255 New files.
3256
3257 * arch-utils.c (always_use_struct_convention): New function.
3258 * arch-utils.h (always_use_struct_convention): New prototype.
3259 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3260 (alpha_gdbarch_init): Register always_use_struct_convention,
3261 instead of alpha_use_struct_convention.
3262 * cris-tdep.c (cris_use_struct_convention): Delete.
3263 (cris_gdbarch_init): Register always_use_struct_convention,
3264 instead of cris_use_struct_convention.
3265 * frv-tdep.c (frv_use_struct_convention): Delete.
3266 (frv_gdbarch_init): Register always_use_struct_convention,
3267 instead of frv_use_struct_convention.
3268 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3269 (h8300_gdbarch_init): Register always_use_struct_convention,
3270 instead of h8300_use_struct_convention.
3271 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3272 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3273 instead of mips_o32_use_struct_convention.
3274
3275 2003-06-12 Andrew Cagney <cagney@redhat.com>
3276
3277 * wince.c: Include "mips-tdep.h".
3278 * mips-tdep.h (mips_next_pc): Declare.
3279 * mcore-tdep.c: Make more local functions static.
3280 * Makefile.in (wince.o): Update dependencies.
3281
3282 2003-06-12 David Carlton <carlton@kealia.com>
3283
3284 * symtab.c (lookup_symbol_aux_minsyms): Replace
3285 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3286 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3287 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3288 SYMBOL_NATURAL_NAME.
3289
3290 2003-06-12 Andreas Schwab <schwab@suse.de>
3291
3292 * Makefile.in (tuiDisassem.o): Update dependencies.
3293
3294 2003-06-12 David Carlton <carlton@bactrian.org>
3295
3296 * symtab.h: Delete declaration of make_symbol_overload_list.
3297 Add declaration of lookup_partial_symbol.
3298 * symtab.c (remove_params): Move to cp-support.c.
3299 (overload_list_add_symbol, make_symbol_overload_list)
3300 (sym_return_val_size, sym_return_val_index): Ditto.
3301 (lookup_partial_symbol): Make extern.
3302 * cp-support.h: Add declaration of make_symbol_overload_list.
3303 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3304 symtab.h, and block.h.
3305 (remove_params): Move here from symtab.c.
3306 (overload_list_add_symbol, make_symbol_overload_list)
3307 (sym_return_val_size, sym_return_val_index): Ditto.
3308 * valops.c: Include cp-support.h.
3309 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3310 frame_h, and block_h.
3311 (valops.o): Depend on cp_support_h.
3312
3313 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3314
3315 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3316 substitute by NUM_REGS throughout.
3317 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3318 (h8300s_register_name): New function for H8S registers.
3319 (h8300sx_register_name): Ditto for H8SX registers.
3320 (h8300_print_register): Revise register printing, avoid depending
3321 on 32 bit long.
3322 (h8300_register_byte): Only care for H8/300 registers.
3323 (h8300h_register_byte): New function for any other architecture.
3324 (h8300_register_raw_size): Remove.
3325 (h8300_register_virtual_type): Revise to return actually useful
3326 type.
3327 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3328 (h8300h_extract_struct_value_address): New function for any other
3329 architecture.
3330 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3331 set_gdbarch_register_name, set_gdbarch_register_byte,
3332 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3333 Remove calls to set_gdbarch_deprecated_register_size,
3334 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3335 set_gdbarch_deprecated_max_register_raw_size,
3336 set_gdbarch_register_virtual_size and
3337 set_gdbarch_deprecated_max_register_virtual_size entirely.
3338 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3339 set_gdbarch_long_double_bit.
3340
3341 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3342
3343 * doublest.c (convert_doublest_to_floatformat): When dealing
3344 with the implied integer bit, only alter mant_bits if we are
3345 processing a full 32 bits of mantissa.
3346
3347 2003-06-11 David Carlton <carlton@bactrian.org>
3348
3349 * dictionary.h: New.
3350 * dictionary.c: New.
3351 * block.h: Add opaque declaration for struct dictionary.
3352 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3353 'sym' members.
3354 (BLOCK_DICT): New macro.
3355 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3356 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3357 BLOCK_SHOULD_SORT.
3358 (ALL_BLOCK_SYMBOLS): Update definition.
3359 * Makefile.in (SFILES): Add dictionary.c.
3360 (dictionary_h): New.
3361 (COMMON_OBS): Add dictionary.o.
3362 (dictionary.o): New.
3363 (ada-lang.o): Depend on dictionary_h.
3364 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3365 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3366 (mi-cmd-stack.o): Ditto.
3367 (gdbtk-cmds.o): Update dependencies.
3368 (gdbtk-stack.o): Ditto.
3369 * ada-lang.c: Include dictionary.h.
3370 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3371 (fill_in_ada_prototype, debug_print_block): Ditto.
3372 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3373 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3374 'is_sorted'.
3375 * mdebugread.c: Include dictionary.h.
3376 (struct parse_stack): Delete 'maxsyms' member.
3377 (parse_symbol): Update calls to new_block. Delete calls to
3378 shrink_block. Use dictionary methods.
3379 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3380 Update calls to new_symtab. Don't maintain maxsyms data.
3381 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3382 (add_symbol): Just call dict_add_symbol.
3383 (new_symtab): Delete 'maxsyms' argument.
3384 (new_symtab): Update calls to new_block.
3385 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3386 (shrink_block): Delete function.
3387 (fixup_sigtramp): Update call to new_block. Add symbol via
3388 dict_add_symbol.
3389 * jv-lang.c: Include dictionary.h.
3390 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3391 appropriately. Set class_symtab->free_func. Make sure the
3392 blockvector is big enough to hold two blocks.
3393 (add_class_symtab_symbol): Use dictionary methods.
3394 (free_class_block): New function.
3395 (type_from_class): Replace explicit iteration by
3396 ALL_BLOCK_SYMBOLS.
3397 * symtab.h (struct symtab): Replace 'free_ptr' method by
3398 'free_func'.
3399 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3400 sort_symtab_syms.
3401 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3402 sort_symtab_syms.
3403 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3404 Include dictionary.h.
3405 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3406 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3407 sort_symtab_syms.
3408 * objfiles.c: Include dictionary.h.
3409 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3410 * buildsym.c: Include dictionary.h.
3411 (finish_block): Use dictionary methods.
3412 (end_symtab): Set free_func to NULL, not free_ptr.
3413 * tracepoint.c: Include dictionary.h.
3414 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3415 (scope_info): Ditto.
3416 * stack.c: Include dictionary.h.
3417 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3418 (print_block_frame_labels, print_frame_arg_vars)
3419 (print_frame_args): Ditto.
3420 * symmisc.c (free_symtab_block): Use dictionary methods.
3421 (dump_symtab): Ditto.
3422 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3423 Include dictionary.h.
3424 * symfile.h: Delete declarations of sort_block_syms,
3425 sort_symtab_syms.
3426 * symfile.c (sort_block_syms): Delete.
3427 (sort_symtab_syms): Delete.
3428 * symtab.c: Include dictionary.h.
3429 (lookup_block_symbol): Use dictionary iterators.
3430 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3431 (search_symbols, make_symbol_completion_list): Ditto.
3432 (make_symbol_overload_list): Ditto.
3433 * valops.c (value_of_local): Use dict_empty.
3434 Include dictionary.h.
3435
3436 2003-06-11 J. Brobecker <brobecker@gnat.com>
3437
3438 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3439
3440 2003-06-11 David Carlton <carlton@bactrian.org>
3441
3442 * block.h (BLOCK_SHOULD_SORT): Delete.
3443 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3444 blocks.
3445 * ada-lang.c (ada_add_block_symbols): Ditto.
3446 * symfile.c (sort_block_syms): Delete.
3447 (sort_symtab_syms): Ditto.
3448 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3449 declarations.
3450 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3451 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3452 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3453 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3454 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3455 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3456 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3457
3458 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3459
3460 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3461 bits to 128.
3462
3463 2003-06-11 Andrew Cagney <cagney@redhat.com>
3464
3465 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3466 REGISTER_CONVERTIBLE.
3467 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3468 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3469 * gdbarch.h, gdbarch.c: Re-generate.
3470 * arch-utils.h (deprecated_register_convertible_not): Rename
3471 generic_register_convertible_not.
3472 * arch-utils.c (deprecated_register_convertible_not): Rename
3473 generic_register_convertible.
3474 (legacy_convert_register_p, legacy_register_to_value): Update.
3475 * sh-tdep.c (sh64_push_arguments): Update.
3476 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3477 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3478 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3479 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3480 * arch-utils.c (legacy_value_to_register): Update.
3481 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3482 (rs6000_register_convert_to_raw): Make parameter "from" const.
3483 * mips-tdep.c (mips_gdbarch_init): Update.
3484 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3485 * infcmd.c (default_print_registers_info): Update.
3486 * ia64-tdep.c (ia64_gdbarch_init): Update.
3487 (ia64_register_convert_to_raw): Make parameter "from" const.
3488 * i386-tdep.c (i386_gdbarch_init): Update.
3489 (i386_register_convert_to_raw): Update.
3490
3491 2003-06-11 Andrew Cagney <cagney@redhat.com>
3492
3493 * remote-fileio.c: Include "remote-fileio.h".
3494 * Makefile.in (remote-fileio.o): Update dependencies.
3495 (remote_fileio_h): Fix typo.
3496
3497 2003-06-11 Andrew Cagney <cagney@redhat.com>
3498
3499 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3500 (xstormy16_save_dummy_frame_tos): Make static.
3501 (_initialize_xstormy16_tdep): Add declaration.
3502 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3503 * v850-tdep.c: Make local functions static.
3504 (_initialize_v850_tdep): Add declaration.
3505 * sparc-tdep.c: Make local functions static.
3506 (_initialize_sparc_tdep): Add declaration.
3507 * sh-tdep.c: Make local functions static.
3508 (_initialize_sh_tdep): Add declaration.
3509 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3510 * s390-tdep.c: Make local functions static.
3511 (_initialize_s390_tdep): Add declaration.
3512 * dbxread.c (find_stab_function_addr): Make static.
3513 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3514 * ocd.c (_initialize_remote_ocd): Add declaration.
3515 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3516 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3517 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3518 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3519 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3520 * remote-array.c (_initialize_array): Add declaration.
3521 (_initialize_remote_monitors): Add declaration.
3522 * remote-mips.c: Make local functions static.
3523 (_initialize_remote_mips): Add declaration.
3524 * mcore-tdep.c: Make all local functions static.
3525 (_initialize_mcore_tdep): Add declaration.
3526 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3527 * abug-rom.c (_initialize_abug_rom): Add declaration.
3528 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3529 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3530 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3531 * remote-est.c (_initialize_est): Add declaration.
3532 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3533 (m68hc11_call_dummy_address): Make static.
3534 * ia64-tdep.c: Make local functions static.
3535 (_initialize_ia64_tdep): Add declaration.
3536 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3537 * monitor.c (monitor_wait_filter): Make static.
3538 (_initialize_remote_monitors): Add declaration.
3539 * remote-hms.c (_initialize_remote_hms): Add declaration.
3540 * remote-e7000.c (fetch_regs_from_dump): Make static.
3541 (expect_n): Make static.
3542 (_initialize_remote_e7000): Add declaration.
3543 * ser-e7kpc.c: Always include "defs.h".
3544 (_initialize_ser_e7000pc): Add declaration.
3545 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3546 * cris-tdep.c: Make all but one function static.
3547 (_initialize_cris_tdep): Add declaration.
3548 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3549 * solib.c (update_solib_list): Make static.
3550 (_initialize_solib): Add declaration.
3551 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3552 (_initialize_avr_tdep): Add declaration.
3553 * remote-rdi.c (voiddummy): Make static.
3554 (_initialize_remote_rdi): Add declaration.
3555 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3556 * remote-rdp.c (send_rdp): Make static.
3557 (_initialize_remote_rdp): Add declaration.
3558 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3559
3560 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3561
3562 * remote-fileio.c: Make ari happy.
3563
3564 2003-06-10 J. Brobecker <brobecker@gnat.com>
3565
3566 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3567 fetching the trailing bytes of the buffer we are about to write.
3568
3569 2003-06-10 Andrew Cagney <cagney@redhat.com>
3570
3571 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3572 * Makefile.in (remote-fileio.o): Update dependencies.
3573 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3574 include <setjmp.h>, or <sys/types.h> conditional on USG.
3575 (remote_fio_jmp_buf): Delete global variable.
3576
3577 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3578 Martin M. Hunt <hunt@redhat.com>
3579
3580 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3581 (SFILES): Add remote-fileio.c.
3582 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3583 dependencies for building remote.o.
3584 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3585 * remote-fileio.h: New header file defining remote File-I/O interface.
3586 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3587 static storage class.
3588 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3589 'F' packet.
3590 (_initialize_remote): Call initialize_remote_fileio().
3591 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3592 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3593 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3594 (captured_main): Initialize new ui_files.
3595 * ui-file.c: Add read and fgets input functions.
3596 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3597 (null_file_read): New function.
3598 (ui_file_read): New function.
3599 (set_ui_file_read): New function.
3600 (stdio_file_read): New function.
3601 * ui-file.h: New type ui_file_read_ftype.
3602 (set_ui_file_read): Declare.
3603 (ui_file_read): Declare.
3604
3605 2003-06-09 Andrew Cagney <cagney@redhat.com>
3606
3607 * frame.h (deprecated_unwind_get_saved_register): Rename
3608 generic_unwind_get_saved_register, update comments.
3609 * mips-tdep.c (mips_get_saved_register): Update.
3610 * frame.c (deprecated_unwind_get_saved_register): Update.
3611
3612 2003-06-09 Andrew Cagney <cagney@redhat.com>
3613
3614 * vax-tdep.c (vax_frame_locals_address): Delete function.
3615 (vax_gdbarch_init): Do not set frame_locals_address.
3616 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3617 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3618 * s390-tdep.c (s390_frame_args_address): Delete function.
3619 (s390_gdbarch_init): Do not set frame_args_address or
3620 frame_locals_address.
3621 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3622 (ns32k_gdbarch_init): Do not set frame_locals_address.
3623 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3624 (hppa_frame_locals_address): Delete function.
3625 (hppa_gdbarch_init): Do not set frame_args_address, or
3626 frame_locals_address.
3627 * arm-tdep.c (arm_frame_args_address): Delete.
3628 (arm_frame_locals_address): Delete.
3629 (arm_gdbarch_init): Do not set frame_args_address, or
3630 frame_locals_address.
3631
3632 2003-06-09 Andrew Cagney <cagney@redhat.com>
3633
3634 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3635 * gdbarch.h, gdbarch.c: Re-generate.
3636 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3637 * arch-utils.c (frame_num_args_unknown): Delete function.
3638 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3639 (frame_info): Use FRAME_NUM_ARGS_P.
3640 * arm-tdep.c (arm_frame_num_args): Delete function.
3641 (arm_gdbarch_init): Do not set frame_num_args.
3642 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3643 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3644 (hppa_gdbarch_init): Do not set frame_num_args.
3645 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3646 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3647 frame_num_args to default frame_num_args_unknown.
3648 * v850-tdep.c (v850_gdbarch_init): Ditto.
3649 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3650 * sh-tdep.c (sh_gdbarch_init): Ditto.
3651 * s390-tdep.c (s390_gdbarch_init): Ditto.
3652 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3653 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3654 * mips-tdep.c (mips_gdbarch_init): Ditto.
3655 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3656 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3657 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3658 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3659 * i386-tdep.c (i386_gdbarch_init): Ditto.
3660 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3661 * frv-tdep.c (frv_gdbarch_init): Ditto.
3662 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3663 * cris-tdep.c (cris_gdbarch_init): Ditto.
3664 * avr-tdep.c (avr_gdbarch_init): Ditto.
3665 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3666
3667 2003-06-09 Andrew Cagney <cagney@redhat.com>
3668
3669 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3670 (print_frame_args): Moved to "stack.c".
3671 * stack.c: Include "gdb_assert.h".
3672 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3673 (print_frame_args): Moved from "printcmd.c".
3674 * frame.h (print_frame_args): Delete declaration.
3675 * Makefile.in (stack.o): Update dependencies.
3676
3677 2003-06-08 Andrew Cagney <cagney@redhat.com>
3678
3679 * frame.c (get_prev_frame): Remove reference to
3680 frame_args_address_correct in comments.
3681 * frame-base.c (default_frame_args_address): Delete code
3682 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3683 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3684 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3685 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3686 (vax_frame_args_address_correct): Delete declaration.
3687
3688 2003-06-08 Andrew Cagney <cagney@redhat.com>
3689
3690 * gdbarch.sh (UNWIND_SP): Add.
3691 * gdbarch.h, gdbarch.c: Re-generate.
3692 * frame.c (frame_sp_unwind): New function.
3693 (get_frame_sp): New function.
3694 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3695 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3696 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3697 value.
3698 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3699 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3700
3701 2003-06-08 Andrew Cagney <cagney@redhat.com>
3702
3703 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3704 REMOTE_BREAKPOINT.
3705 * remote.c: Update.
3706 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3707 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3708 * config/m68k/tm-sun3.h: Update.
3709 * config/m68k/tm-m68klynx.h: Update.
3710 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3711
3712 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3713 trad_frame". Update comments.
3714 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3715 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3716 (trad_frame_register_value, trad_frame_prev_register): Update.
3717
3718 2003-06-08 Andrew Cagney <cagney@redhat.com>
3719
3720 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3721 from GCC's acinclude.m4.
3722 * configure.in: Check for getopt's delcaration.
3723 * aclocal.m4, config.in, configure: Re-generate.
3724 * main.c (error_init): Delete declaration.
3725 * defs.h (error_init): Declare.
3726 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3727 (rs6000_convert_from_func_ptr_addr): Make static.
3728 (_initialize_rs6000_tdep): Add declaration.
3729 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3730 (show_commands, set_verbose, show_history): Delete declaration.
3731 * top.h (set_verbose): Add declaration.
3732 (show_history, set_history, show_commands): Add declaration.
3733 (do_restore_instream_cleanup): Add declaration.
3734 * objc-lang.c (specialcmp): Make static.
3735 (print_object_command): Make static.
3736 (find_objc_msgsend): Make static.
3737 (find_objc_msgcall_submethod_helper): Make static.
3738 (find_objc_msgcall_submethod): Make static.
3739 (_initialize_objc_language): Add declaration.
3740 (find_implementation_from_class): Make static.
3741 (find_implementation): Make static.
3742 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3743 * objc-lang.h (lookup_struct_typedef): Add declaration.
3744 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3745 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3746 (do_restore_user_call_depth): Make static.
3747 (do_restore_instream_cleanup): Delete declaration.
3748 (dont_repeat): Delete declaration.
3749 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3750 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3751 * reggroups.c (_initialize_reggroup): Add declaration.
3752 * cp-support.c (_initialize_cp_support): Add declaration.
3753 * cp-abi.c (_initialize_cp_abi): Add declaration.
3754 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3755 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3756 (_initialize_gnu_v3_abi): Add declaration.
3757 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3758 (_initialize_gnu_v2_abi): Add declaration.
3759 * frame-base.c (_initialize_frame_base): Add declaration.
3760 * doublest.c (floatformat_from_length): Make static.
3761 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3762 * frame.c (create_sentinel_frame): Make static.
3763 (_initialize_frame): Add declaration.
3764 * top.c (do_catch_errors): Make static.
3765 (gdb_rl_operate_and_get_next_completion): Make static.
3766 * typeprint.c: Include "typeprint.h".
3767 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3768 (sentinel_frame_this_id): Make static.
3769 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3770 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3771 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3772 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3773 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3774 * maint.c (maintenance_print_architecture): Make static.
3775 * signals/signals.c (_initialize_signals): Add declaration.
3776 * std-regs.c (_initialize_frame_reg): Add declaration.
3777 * jv-exp.y (push_variable): ISO C definition.
3778 (push_qualified_expression_name): Ditto.
3779 * memattr.c (_initialize_mem): Add declaration.
3780 * remote.c (remote_check_watch_resources): Make static.
3781 (remote_stopped_by_watchpoint): Make static.
3782 (remote_stopped_data_address): Make static.
3783 * d10v-tdep.c (nr_dmap_regs): Make static.
3784 (a0_regnum): Make static.
3785 (d10v_frame_unwind_cache): Make static.
3786 (d10v_frame_p): Make static.
3787 * osabi.c (show_osabi): Make static.
3788 (_initialize_gdb_osabi): Add extern declaration.
3789 * gdbtypes.c (make_qualified_type): Make static.
3790 (safe_parse_type): Make static.
3791 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3792 * macrotab.c (macro_bcache_free): Make static.
3793 * interps.c (interp_set_quiet): Make static.
3794 (interpreter_exec_cmd): Make static.
3795 * stack.h (select_frame_command): New file.
3796 * stack.c: Include "stack.h".
3797 (select_frame_command_wrapper): Delete function.
3798 (select_frame_command): Make global.
3799 * infcall.c: Include "infcall.h".
3800 * linespec.c: Include "linespec.h".
3801 * symfile.c (sections_overlap): Make static.
3802 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3803 * charset.c (_initialize_charset): Add missing prototype.
3804 * regcache.c (init_legacy_regcache_descr): Make static.
3805 (do_regcache_xfree): Make static.
3806 (regcache_xfer_part): Make static.
3807 (_initialize_regcache): Add missing prototype.
3808 * breakpoint.c (parse_breakpoint_sals): Make static.
3809 (breakpoint_sals_to_pc): Make static.
3810 * interps.h (clear_interpreter_hooks): ISO C declaration.
3811 * Makefile.in (stack_h): Define.
3812 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3813 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3814
3815 2003-06-08 Andrew Cagney <cagney@redhat.com>
3816
3817 * Makefile.in (d10v-tdep.o): Update dependencies.
3818 (SFILES): Add trad-frame.c.
3819 (trad_frame_h): Define.
3820 (COMMON_OBS): Add trad-frame.o.
3821 (trad-frame.o): Specify dependencies.
3822 * d10v-tdep.c: Include "trad-frame.h".
3823 (saved_regs_unwinder): Delete function.
3824 (d10v_frame_prev_register): Use trad_frame_prev_register.
3825 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3826 trad_frame", delete "regs" and "prev_sp".
3827 (prologue_find_regs): Use trad-frame.
3828 * trad-frame.h, trad-frame.c: New files.
3829
3830 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3831
3832 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3833
3834 2003-06-07 Adam Fedor <fedor@gnu.org>
3835
3836 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3837 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3838 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3839 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3840 resolve_msgsend_super, resolve_msgsend_super_stret):
3841 Use it.
3842
3843 2003-06-07 Andrew Cagney <cagney@redhat.com>
3844
3845 * symfile.h: Re-indent, clean up comments.
3846
3847 2003-06-07 Andrew Cagney <cagney@redhat.com>
3848
3849 * inferior.h (deprecated_write_sp): Replace
3850 generic_target_write_sp.
3851 * regcache.c (deprecated_write_sp): Replace
3852 generic_target_write_sp.
3853 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3854 * vax-tdep.c (vax_gdbarch_init): Update.
3855 * v850-tdep.c (v850_gdbarch_init): Update.
3856 * sparc-tdep.c (sparc_gdbarch_init): Update.
3857 * sh-tdep.c (sh_gdbarch_init): Update.
3858 * s390-tdep.c (s390_gdbarch_init): Update.
3859 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3860 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3861 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3862 * mcore-tdep.c (mcore_gdbarch_init): Update.
3863 * m68k-tdep.c (m68k_gdbarch_init): Update.
3864 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3865 * ia64-tdep.c (ia64_gdbarch_init): Update.
3866 * h8300-tdep.c (h8300_gdbarch_init): Update.
3867 * frv-tdep.c (frv_gdbarch_init): Update.
3868 * cris-tdep.c (cris_gdbarch_init): Update.
3869 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3870
3871 2003-06-07 Andrew Cagney <cagney@redhat.com>
3872
3873 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3874 Assert that PC_REGNUM is valid.
3875 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3876
3877 2003-06-07 Andrew Cagney <cagney@redhat.com>
3878
3879 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3880 * gdbarch.h, gdbarch.c: Regenerate.
3881 * mn10300-tdep.c: Include "gdb_assert.h".
3882 (mn10300_read_fp): New function.
3883 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3884 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3885 * ia64-tdep.c: Include "gdb_assert.h".
3886 (ia64_read_fp): New function.
3887 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3888 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3889 * regcache.c (generic_target_read_sp): Delete function.
3890 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3891 * inferior.h (generic_target_read_sp): Delete declaration.
3892 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3893 generic_target_read_sp.
3894 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3895 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3896 * sh-tdep.c (sh_gdbarch_init): Ditto.
3897 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3898 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3899
3900 2003-06-07 Andrew Cagney <cagney@redhat.com>
3901
3902 * gdbarch.sh: Comment each field of startup_gdbarch.
3903 * gdbarch.h, gdbarch.c: Re-generate.
3904
3905 2003-06-07 Andrew Cagney <cagney@redhat.com>
3906
3907 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3908 * gdbarch.h, gdbarch.c: Re-generate.
3909 * regcache.c: Update comments on read_pc et.al.
3910 (generic_target_read_pc): Delete function.
3911 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3912 * inferior.h (generic_target_read_pc): Delete declaration.
3913 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3914 generic_target_read_pc.
3915 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3916 * sh-tdep.c (sh_gdbarch_init): Ditto.
3917 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3918 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3919
3920 2003-06-07 Andrew Cagney <cagney@redhat.com>
3921
3922 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3923 "index" with "special_local_sect". Use strcmp instead of STREQ.
3924 Append period to coments.
3925
3926 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3927
3928 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3929 (elfstab_offset_sections): Likewise.
3930 * gdb-stabs.h (stab_section_info): Likewise.
3931 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3932 * objfiles.c (objfile_relocate): Likewise.
3933 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3934 * remote.c (get_offsets): Likewise.
3935 (remote_cisco_objfile_relocate): Likewise.
3936 * somread.c (som_symfile_offsets): Likewise.
3937 * symfile.c (alloc_section_addr_info): New function.
3938 (build_section_addr_info_from_section_tab): Use it.
3939 (free_section_addr_info): Adjust.
3940 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3941 (syms_from_objfile): Allocate local_addr dynamically.
3942 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3943 dynamically.
3944 (add_symbol_file_command): Allocate sect_opts dynamically.
3945 (reread_symbols): Avoid use of SECT_OFF_MAX.
3946 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3947 (alloc_section_addr_info): Declare it.
3948 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3949 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3950 dynamically.
3951 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3952
3953 2003-06-06 Andrew Cagney <cagney@redhat.com>
3954
3955 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3956 (d10v_frame_unwind_cache): Do not set "return_pc".
3957
3958 2003-06-06 Michael Snyder <msnyder@redhat.com>
3959
3960 * h8300-tdep.c: Make tidy (long lines).
3961
3962 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3963
3964 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3965 to regcache_collect().
3966
3967 2003-06-05 J. Brobecker <brobecker@gnat.com>
3968
3969 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3970 pc_in_sigtramp multiarch method.
3971 (hppa_hpux_som_init_abi): Use it.
3972 (hppa_hpux_elf_init_abi): Likewise.
3973 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3974 macro has been multiarched.
3975 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3976 macro here, as hppa64 isn't multiarched yet.
3977
3978 2003-06-05 Andrew Cagney <cagney@redhat.com>
3979
3980 * Makefile.in (value_h): Add $(frame_h).
3981 * value.h: Include "frame.h".
3982 (struct value): Replace "frame_addr" with "frame_id".
3983 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3984 * values.c (allocate_value): Use VALUE_FRAME_ID.
3985 (value_copy): Use VALUE_FRAME_ID.
3986 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3987 * valops.c (value_assign): Update. Use frame_find_by_id.
3988
3989 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3990
3991 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3992 in each pass.
3993
3994 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3995
3996 * thread-db.c (check_event): For create/death event breakpoints,
3997 loop through all messages to ensure that we read the message
3998 corresponding to the breakpoint we are at.
3999
4000 2003-06-04 Michael Snyder <msnyder@redhat.com>
4001
4002 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4003
4004 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4005
4006 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4007 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4008 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4009 when handling .eh_frame sections.
4010
4011 2003-06-04 J. Brobecker <brobecker@gnat.com>
4012
4013 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4014 prepare_to_proceed procedure instead of the hppa-specific one.
4015 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4016
4017 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4018
4019 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4020 * config.in: Regenerated.
4021 * configure.in: Add test for syscall function and check for
4022 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4023 * configure: Regenerated.
4024 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4025 <sys/syscall.h>.
4026 (kill_lwp): New function that uses tkill syscall or
4027 uses kill, depending on whether threading model is nptl or not.
4028 All callers of kill() changed to use kill_lwp().
4029 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4030 see if all threads have already exited in the nptl model.
4031 (stop_and_resume_callback): New callback function used by the
4032 lin_lwp_wait thread exit handling code.
4033 (stop_wait_callback): Check for threads already having exited and
4034 delete such threads fromt the lwp list when discovered.
4035 (stop_callback): Don't assert retcode of kill call.
4036
4037 Roland McGrath <roland@redhat.com>
4038 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4039 nptl libthread_db.
4040
4041 2003-06-03 Richard Henderson <rth@redhat.com>
4042
4043 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4044 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4045 (alpha_sigtramp_frame_prev_register): Likewise.
4046 (alpha_heuristic_frame_prev_register): Likewise.
4047 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4048
4049 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4050 alpha-specific register id names.
4051 (alpha_mdebug_frame_unwind_cache): Likewise.
4052 (alpha_mdebug_frame_prev_register): Likewise.
4053
4054 2003-06-03 Richard Henderson <rth@redhat.com>
4055
4056 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4057 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4058 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4059 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4060 unwind routines.
4061 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4062 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4063 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4064
4065 * alpha-linux-tdep.c: Remove unnecessary includes.
4066 * Makefile.in (alpha-linux-tdep.o): Update.
4067
4068 2003-06-03 Richard Henderson <rth@redhat.com>
4069
4070 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4071 (alphabsd_fill_fpreg): Likewise.
4072
4073 2003-06-03 J. Brobecker <brobecker@gnat.com>
4074
4075 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4076 references to struct frame_info fields by calls to the equivalent
4077 accessors. Necessary now that frame_info is opaque.
4078
4079 2003-06-03 J. Brobecker <brobecker@gnat.com>
4080
4081 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4082 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4083 structure, field no longer exists.
4084
4085 2003-06-03 J. Brobecker <brobecker@gnat.com>
4086
4087 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4088 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4089
4090 2003-06-03 J. Brobecker <brobecker@gnat.com>
4091
4092 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4093 references to struct frame_info fields by calls to the equivalent
4094 accessors. Necessary now that frame_info is opaque.
4095
4096 2003-06-03 J. Brobecker <brobecker@gnat.com>
4097
4098 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4099 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4100 structure, field no longer exists.
4101
4102 2003-06-03 Theodore A. Roth <troth@openavr.org>
4103
4104 * remote.c (init_remote_state): Compute sizeof_g_packet by
4105 accumulation of the size of all registers instead of blindly using
4106 DEPRECATED_REGISTER_BYTES.
4107
4108 2003-06-03 Michael Snyder <msnyder@redhat.com>
4109
4110 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4111 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4112 for h8300sx.
4113
4114 2003-06-03 J. Brobecker <brobecker@gnat.com>
4115
4116 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4117 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4118
4119 2003-06-03 Andrew Cagney <cagney@redhat.com>
4120
4121 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4122 (sparc_convert_to_raw): Delete function.
4123 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4124 register_convert_to_virtual.
4125
4126 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4127
4128 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4129 layer if not dealing with a statically-linked threaded program.
4130
4131 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4132
4133 * solib.c (solib_open): Update comment to reflect actual search order.
4134
4135 2003-06-03 Andrew Cagney <cagney@redhat.com>
4136
4137 * frame.c (get_frame_memory_signed): New function.
4138 (get_frame_memory, get_frame_memory_unsigned): New function.
4139 (get_frame_arch): New function.
4140 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4141 (get_frame_memory, get_frame_unsigned_memory): Declare.
4142 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4143 get_frame_memory_unsigned and get_frame_arch.
4144 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4145
4146 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4147
4148 * MAINTAINERS (write after approval): Add myself.
4149
4150 2003-06-03 Jim Blandy <jimb@redhat.com>
4151
4152 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4153 elements of gregset_t are 64 bits each, but access registers
4154 are still 32 bits, so they're packed two per gregset_t
4155 element. Unpack/pack them properly.
4156
4157 2003-06-02 David Carlton <carlton@bactrian.org>
4158
4159 * linespec.c (find_methods): Break out code into
4160 add_matching_methods and add_constructors.
4161 (add_matching_methods): New.
4162 (add_constructors): Ditto.
4163
4164 2003-06-02 Andrew Cagney <cagney@redhat.com>
4165
4166 * sparc-tdep.c (sparc_print_registers): Delete call to
4167 REGISTER_CONVERTIBLE.
4168 (sparc_gdbarch_init): Do not set register_convertible.
4169 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4170 * frv-tdep.c (frv_gdbarch_init): Ditto.
4171 * cris-tdep.c (cris_gdbarch_init): Ditto.
4172
4173 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4174
4175 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4176 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4177 (syms_from_objfile): Ditto.
4178
4179 2003-06-03 Andreas Schwab <schwab@suse.de>
4180
4181 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4182 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4183
4184 2003-06-02 Richard Henderson <rth@redhat.com>
4185
4186 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4187 a member of all_reggroup.
4188
4189 2003-06-02 Richard Henderson <rth@redhat.com>
4190
4191 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4192 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4193 (alpha_lds, alpha_sts): New.
4194 (alpha_convert_register_p): Change from _register_convertible.
4195 (alpha_register_to_value): Change from _convert_to_virtual;
4196 restructure and fail for type sizes other than 4 or 8.
4197 (alpha_value_to_register): Similarly.
4198 (alpha_extract_return_value): Use alpha_sts.
4199 (alpha_store_return_value): Use alpha_lds.
4200 (alpha_gdbarch_init): Update hooks.
4201
4202 2003-06-02 Richard Henderson <rth@redhat.com>
4203
4204 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4205 regnum identifiers.
4206 (alpha_sigtramp_register_address): Likewise.
4207
4208 2003-06-02 Richard Henderson <rth@redhat.com>
4209
4210 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4211 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4212 * alpha-tdep.h: Declare them.
4213
4214 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4215 Remove zerobuf. Don't error on UNIQUE.
4216 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4217 (ALPHA_REGSET_UNIQUE): Provide default.
4218 (supply_gregset): Use alpha_supply_int_regs.
4219 (fill_gregset): Use alpha_fill_int_regs.
4220 (supply_fpregset): Use alpha_supply_fp_regs.
4221 (fill_fpregset): Use alpha_fill_fp_regs.
4222 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4223 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4224 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4225 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4226 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4227 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4228
4229 2003-06-02 Richard Henderson <rth@redhat.com>
4230
4231 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4232
4233 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4234 (alpha_store_return_value): Likewise.
4235
4236 2003-06-02 David Carlton <carlton@math.stanford.edu>
4237
4238 * block.c (contained_in): Add 'const' to arguments.
4239 (block_function): Ditto.
4240 * block.h: Update declarations for block_function and
4241 contained_in.
4242
4243 2003-06-02 David Carlton <carlton@math.stanford.edu>
4244
4245 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4246 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4247 * p-valprint.c (pascal_val_print): Ditto.
4248 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4249
4250 2003-06-02 Richard Henderson <rth@redhat.com>
4251
4252 * alpha-tdep.c (alpha_push_dummy_call): Use
4253 builtin_type_ieee_double_little instead of builtin_type_double.
4254
4255 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4256 sign-extension of 32-bit values.
4257 (alpha_store_return_value): Similarly.
4258
4259 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4260 (alpha_extract_return_value): Likewise.
4261 (alpha_store_return_value): Likewise.
4262
4263 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4264 (alpha_store_return_value): Error on IEEE Quad floats.
4265
4266 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4267 (alpha_extract_struct_value_address): Likewise.
4268 (alpha_store_return_value): Likewise.
4269 (alpha_store_struct_return): Remove.
4270 (alpha_gdbarch_init): Update hook registration to match.
4271
4272 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4273 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4274 macros where appropriate.
4275 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4276 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4277
4278 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4279 for SP, GP; void_func_ptr for PC; non-language-specific types
4280 for all others.
4281 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4282
4283 2003-06-02 Richard Henderson <rth@redhat.com>
4284
4285 * top.h (lim_at_start): Declare.
4286 * main.c (captured_main): Set it.
4287 * top.c (lim_at_start): Define.
4288 (command_loop): Use it instead of &environ.
4289 * event-top.c (command_handler): Likewise.
4290
4291 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4292
4293 * mipsnbsd-tdep.c: Update copyright years.
4294 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4295
4296 2003-06-01 Richard Henderson <rth@redhat.com>
4297
4298 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4299 (alpha-linux-tdep.o): Update dependencies.
4300 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4301 * alpha-mdebug-tdep.c: Remove unneeded includes.
4302
4303 2003-06-01 Richard Henderson <rth@redhat.com>
4304
4305 * alpha-tdep.c (alpha_register_reggroup_p): New.
4306 (alpha_gdbarch_init): Register it.
4307
4308 2003-06-02 Andrew Cagney <cagney@redhat.com>
4309
4310 * dwarfread.c: Eliminate "register"
4311 (decode_die_type): Eliminate assignment within "if".
4312 (struct_type, decode_array_element_type): Ditto.
4313 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4314 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4315 (decode_modified_type, completedieinfo): Ditto.
4316 * block.c: Eliminate "register".
4317 (blockvector_for_pc_sect): Eliminate assignment within "if".
4318 * cp-support.h (struct symbol): Opaque declaration.
4319 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4320
4321 2003-06-01 Richard Henderson <rth@redhat.com>
4322
4323 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4324 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4325
4326 2003-06-01 Adam Fedor <fedor@gnu.org>
4327
4328 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4329 * gdbarch.[ch]: Regenerate.
4330 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4331 (hppa_gdbarch_init): Set it in the gdbarch vector.
4332 * i386-tdep.c (i386_fetch_pointer_argument): New
4333 (i386_gdbarch_init): Set it into gdbarch.
4334 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4335 (rs6000_gdbarch_init): Set it in gdbarch.
4336 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4337 (sparc_gdbarch_init): Set it in gdbarch.
4338
4339 2003-06-01 Andrew Cagney <cagney@redhat.com>
4340
4341 * defs.h (extract_address): Delete declaration.
4342 * findvar.c (extract_address): Delete function.
4343 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4344 extract_address with the inline equivalent,
4345 extract_unsigned_integer.
4346 (xstormy16_extract_struct_value_address): Ditto.
4347 (xstormy16_pointer_to_address): Ditto.
4348 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4349 * v850-tdep.c (v850_push_arguments): Ditto.
4350 (v850_extract_return_value): Ditto.
4351 (v850_extract_struct_value_address): Ditto.
4352 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4353 (sparcnbsd_get_longjmp_target_64): Ditto.
4354 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4355 (get_longjmp_target): Ditto.
4356 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4357 (sh64_extract_struct_value_address): Ditto.
4358 (sh_push_arguments): Ditto.
4359 (sh64_push_arguments): Ditto.
4360 * remote-vxsparc.c (vx_read_register): Ditto.
4361 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4362 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4363 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4364 * mipsv4-nat.c (get_longjmp_target): Ditto.
4365 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4366 * mips-nat.c (get_longjmp_target): Ditto.
4367 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4368 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4369 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4370 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4371 * irix5-nat.c (get_longjmp_target): Ditto.
4372 * irix4-nat.c (get_longjmp_target): Ditto.
4373 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4374 (ia64_push_arguments): Ditto.
4375 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4376 * h8300-tdep.c (h8300_push_arguments): Ditto.
4377 (h8300_store_return_value): Ditto.
4378 (h8300_extract_struct_value_address): Ditto.
4379 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4380 (frv_push_arguments): Ditto.
4381 * avr-tdep.c (avr_pointer_to_address): Ditto.
4382 (avr_push_arguments): Ditto.
4383 * arm-tdep.c (arm_push_dummy_call): Ditto.
4384 (arm_get_longjmp_target): Ditto.
4385 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4386 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4387 (alpha_get_longjmp_target): Ditto.
4388
4389 * solib-irix.c (extract_mips_address): Inline extract_address,
4390 replacing it with extract_signed_integer.
4391 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4392 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4393 (first_link_map_member, open_symbol_file_object): Ditto.
4394 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4395 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4396 (LM_NEXT, LM_NAME): Ditto.
4397
4398 2003-06-01 Richard Henderson <rth@redhat.com>
4399
4400 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4401 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4402 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4403 (alpha_cannot_store_register): Likewise.
4404 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4405 * alpha-nat.c (supply_gregset): Likewise.
4406 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4407
4408 2003-06-01 Andrew Cagney <cagney@redhat.com>
4409
4410 * infcall.c (call_function_by_hand): Update comment on
4411 DEPRECATED_DUMMY_WRITE_SP.
4412
4413 * mips-tdep.c (mips_gdbarch_init): Do not set
4414 deprecated_dummy_write_sp.
4415 (mips_eabi_push_dummy_call): Set the SP register.
4416 (mips_o64_push_dummy_call): Set the SP register.
4417 (mips_o32_push_dummy_call): Set the SP register.
4418 (mips_n32n64_push_dummy_call): Set the SP register.
4419
4420 2003-06-01 Richard Henderson <rth@redhat.com>
4421
4422 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4423 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4424 (supply_gregset): Likewise.
4425 * alpha-tdep.c (alpha_store_return_value): Likewise.
4426 (alpha_get_longjmp_target): Likewise.
4427 (alpha_register_name): Constify array.
4428 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4429 deprecated_register_size, deprecated_register_bytes,
4430 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4431 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4432 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4433
4434 2003-06-01 Richard Henderson <rth@redhat.com>
4435
4436 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4437 from arg_reg_buffer to regcache to avoid double conversion.
4438
4439 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4440
4441 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4442 SP_REGNUM.
4443 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4444 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4445
4446 2003-06-01 Richard Henderson <rth@redhat.com>
4447
4448 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4449 (decode_frame_entry): Set it. Skip FDE augmentation.
4450
4451 2003-06-01 Richard Henderson <rth@redhat.com>
4452
4453 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4454 not overlapping PC_REGNUM.
4455
4456 2003-06-01 Richard Henderson <rth@redhat.com>
4457
4458 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4459 alpha_push_arguments. Don't dump argument register data to
4460 the target stack. Fix float and 128-bit long double semantics.
4461 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4462 (alpha_fix_call_dummy): Remove.
4463 (alpha_call_dummy_words): Remove.
4464 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4465
4466 2003-06-01 Richard Henderson <rth@redhat.com>
4467
4468 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4469
4470 2003-06-01 Andrew Cagney <cagney@redhat.com>
4471
4472 * mips-tdep.c (is_mips16_addr): New function.
4473 (make_mips16_addr, unmake_mips16_addr): New functions.
4474 (pc_is_mips16, mips_fetch_instruction): Use.
4475 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4476 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4477 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4478 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4479 TARGET_MIPS.
4480 * config/mips/tm-mips.h: Update copyright.
4481 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4482 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4483 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4484 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4485 (TM_PRINT_INSN_MACH): Delete.
4486 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4487
4488 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4489 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4490 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4491 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4492 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4493 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4494 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4495 mips*-*-riscos* and mips*-*-sysv* onto mips.
4496 * config/mips/mips64.mt: New file.
4497 * config/mips/mips.mt: New file.
4498 * config/mips/littlemips.mt: Delete file.
4499 * config/mips/decstation.mt: Delete file.
4500 * config/mips/vr4300el.mt: Delete file.
4501 * config/mips/vr5000el.mt: Delete file.
4502 * config/mips/vr5000.mt: Delete file.
4503 * config/mips/vr4100.mt: Delete file.
4504 * config/mips/vr4xxxel.mt: Delete file.
4505 * config/mips/vr4300.mt: Delete file.
4506 * config/mips/vr4xxx.mt: Delete file.
4507 * config/mips/bigmips.mt: Delete file.
4508 * config/mips/bigmips64.mt: Delete file.
4509 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4510 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4511 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4512 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4513 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4514 "tm-bigmips.h".
4515 * config/mips/tm-irix3.h: Ditto.
4516 * config/mips/tm-mipsv4.h: Ditto.
4517 * config/mips/tm-embed.h: Ditto.
4518 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4519 "tm-bigmips64.h".
4520 * config/mips/tm-vr5000el.h: Delete file.
4521 * config/mips/tm-tx39l.h: Delete file.
4522 * config/mips/tm-vr4300el.h: Delete file.
4523 * config/mips/tm-vr4xxxel.h: Delete file.
4524 * config/mips/tm-vr4300.h: Delete file.
4525 * config/mips/tm-vr4100.h: Delete file.
4526 * config/mips/tm-vr4xxx.h: Delete file.
4527 * config/mips/tm-vr5000.h: Delete file.
4528 * config/mips/tm-embedl64.h: Delete file.
4529 * config/mips/tm-embedl.h: Delete file.
4530 * config/mips/tm-embed64.h: Delete file.
4531 * config/mips/tm-bigmips64.h: Delete file.
4532 * config/mips/tm-bigmips.h: Delete file.
4533
4534 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4535
4536 Fix gdb/1216.
4537 * shnbsd-nat.c: Include "sh-tdep.h".
4538
4539 From Richard Henderson <rth@redhat.com>:
4540 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4541
4542 2003-05-31 Andrew Cagney <cagney@redhat.com>
4543
4544 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4545 forward declaration.
4546 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4547 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4548 (mips_find_saved_regs): Use set_reg_offset.
4549 (mips_frame_init_saved_regs): Delete function.
4550 (mips_pop_frame): Call mips_find_saved_regs instead of
4551 DEPRECATED_FRAME_INIT_SAVED_REGS.
4552
4553 2003-05-31 Andrew Cagney <cagney@redhat.com>
4554
4555 * mips-tdep.c (mips_gdbarch_init): Do not set
4556 deprecated_max_register_raw_size, register_virtual_size, and
4557 deprecated_max_register_virtual_size.
4558
4559 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4560
4561 * i386-tdep.c: Include "dwarf2-frame.h".
4562 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4563 * Makefile.in (i386-tdep.o): Update dependencies.
4564
4565 * dwarf2-frame.c, dwarf2-frame.h: New files.
4566 * Makefile.in (SFILES): Add dwarf2-frame.c.
4567 (dwarf2_frame_h): Define.
4568 (COMMON_OBS): Add dwarf2-frame.o.
4569 (dwarf2-frame.o): Add dependencies.
4570
4571 2003-05-31 Andreas Jaeger <aj@suse.de>
4572
4573 * x86-64-linux-nat.c: Fix comment.
4574
4575 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4576
4577 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4578 function signature.
4579
4580 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4581 have a sigcontext_addr handler.
4582 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4583 sigcontext_addr handler.
4584
4585 2003-05-31 Andrew Cagney <cagney@redhat.com>
4586
4587 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4588 (print_fp_register_row): Replace do_fp_register_row.
4589 (mips_print_fp_register): Add "file" and "frame" parameters.
4590 (mips_print_register): Add "file" and "frame" parameters.
4591 (mips_print_registers_info): Replace mips_do_registers_info.
4592 (mips_gdbarch_init): Set print_registers_info instead of
4593 deprecated_do_registers_info.
4594 (mips_read_fp_register_single): Add "frame" parameter.
4595 (mips_read_fp_register_double): Add "frame" parameter.
4596
4597 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4598
4599 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4600 Fixes a bug where GDB would print the wrong register names for
4601 targets without SSE.
4602
4603 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4604 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4605 registers.
4606
4607 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4608 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4609 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4610 TDEP->sc_sp_offset.
4611
4612 From Michal Ludvig <mludvig@suse.cz>:
4613 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4614 and `sc_num_regs'.
4615 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4616 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4617 I386_ST0_REGNUM): Move here from...
4618 * i386-tdep.c: ... here.
4619 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4620 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4621 registers if possible.
4622 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4623 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4624 Remove variables.
4625 (i386bsd_sc_reg_offset): New variable.
4626 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4627 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4628 TDEP->sc_sp_offset.
4629 (i386fbsd_sc_reg_offset): New variable.
4630 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4631 TDEP->sc_num_regs.
4632 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4633 variables.
4634 (i386fbsd4_sc_reg_offset): New variable.
4635 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4636 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4637 TDEP->sc_sp_offset.
4638 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4639 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4640 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4641 Remove variables.
4642 (i386nbsd_sc_reg_offset): New variable.
4643 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4644 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4645 TDEP->sc_sp_offset.
4646 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4647 Remove variables.
4648 (i386obsd_sc_reg_offset): New variable.
4649 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4650 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4651 TDEP->sc_sp_offset.
4652 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4653 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4654 for frame pointer offset in `struct sigcontext'.
4655
4656 2003-05-31 Andrew Cagney <cagney@redhat.com>
4657
4658 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4659 architecture methods call_dummy_words, sizeof_call_dummy_words,
4660 push_return_address, store_struct_return, and fix_call_dummy. Set
4661 push_dummy_call instead of deprecated_push_arguments.
4662 (mips_store_struct_return): Delete function.
4663 (mips_fix_call_dummy): Delete function.
4664 (mips_push_return_address): Delete function.
4665 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4666 RA_REGNUM and T9_REGNUM.
4667 (mips_n32n64_push_dummy_call): Ditto for
4668 mips_n32n64_push_arguments.
4669 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4670 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4671
4672 2003-05-31 Andrew Cagney <cagney@redhat.com>
4673
4674 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4675 "dummy_addr" to "bp_addr".
4676 * infcall.c (call_function_by_hand): Pass "funaddr" to
4677 gdbarch_push_dummy_call.
4678 * gdbarch.h, gdbarch.c: Re-generate.
4679 * i386-tdep.c (i386_push_dummy_call): Update.
4680 * arm-tdep.c (arm_push_dummy_call): Update.
4681 * d10v-tdep.c (d10v_push_dummy_call): Update.
4682
4683 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4684
4685 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4686 variable declarations.
4687 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4688 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4689 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4690 x86_64_init_frame_pc, x86_64_init_frame_pc,
4691 x86_64_function_has_prologue): Remove prototypes.
4692 (X86_64_NUM_GREGS): New define.
4693 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4694 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4695 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4696 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4697 XMM1_REGNUM): Remove defines.
4698 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4699 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4700 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4701 X86_64_XMM1_REGNUM): New defines.
4702 (struct x86_64_register_info): Renamed from `struct
4703 register_info'. Remove `size' member.
4704 (x86_64_register_info_table): Remove variable.
4705 (x86_64_register_info): New variable.
4706 (X86_64_NUM_REGS): New define.
4707 (X86_64_NUM_GREGS): Remove define.
4708 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4709 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4710 Remove variables.
4711 (x86_54_dwarf2_reg_to_regnum): Remove function.
4712 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4713 (x86_64_dwarf_reg_to_regnum): New function.
4714 (x86_64_register_name): Rewrite.
4715 (x86_64_register_raw_size): Remove function.
4716 (x86_64_register_byte_table): Remove variable.
4717 (x86_64_register_byte): Remove function.
4718 (x86_64_register_virtual_type): Remove function.
4719 (x86_64_register_type): New function.
4720 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4721 x86_64_register_convert_to_raw): Remove functions.
4722 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4723 (x86_64_use_struct_convention): Make static. Adjust for renamed
4724 defines.
4725 (x86_64_frame_init_saved_regs): Remove function.
4726 (x86_64_push_arguments): Make static. Change to accept a regcache
4727 as argument.
4728 (x86_64_store_return_value, x86_64_extract_return_value): Make
4729 static. Rewrite based on i386 counterparts.
4730 (x86_64_push_dummy_call): New function.
4731 (X86_64_NUM_SAVED_REGS): New define.
4732 (x86_64_register_number): Remove function.
4733 (x86_64_store_struct_return): Remove function.
4734 (x86_64_frameless_function_invocation,
4735 x86_64_function_has_prologue): Remove functions.
4736 (PROLOG_BUFSIZE): Remove define.
4737 (struct x86_64_frame_cache): New structure.
4738 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4739 x86_64_frame_cache, x86_64_frame_this_id,
4740 x86_64_frame_prev_register, x86_64_frame_p,
4741 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4742 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4743 functions.
4744 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4745 variables.
4746 (x86_64_skip_prologue): Rewrite in terms of
4747 x86_64_analyze_prologue.
4748 (x86_64_frame_base_address): New function.
4749 (x86_64_frame_base): New variable.
4750 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4751 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4752 set deprecated_fp_regnum, deprecated_register_size,
4753 deprecated_register_bytes, register_raw_size, register_byte,
4754 register_virtual_type, register_convertiable,
4755 register_convert_to_virtual, convert_to_raw,
4756 deprecated_get_saved_register, deprecated_target_read_fp,
4757 deprecated_push_arguments, deprecated_push_return_address,
4758 deprecated_pop_frame, deprecated_store_struct_return,
4759 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4760 frameless_function_invocation, deprecated_frame_saved_pc,
4761 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4762 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4763 deprecated_init_frame_pc and virtual_frame_pointer. Call
4764 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4765 and x86_64_frame_p. Call frame_base_set_default to register
4766 x86_64_frame_base.
4767 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4768 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4769 (_initialize_x86_64_tdep): Remove function.
4770 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4771 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4772 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4773 define.
4774 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4775 (x86_64_linux_sigcontext_addr): Rewrite.
4776 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4777 x86_64_linux_frame_saved_pc): Remove functions.
4778 (x86_64_linux_pc_in_sigtramp): Renamed from
4779 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4780 trampoline.
4781 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4782 Remove_functions.
4783 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4784 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4785 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4786 (x86_64_regmap): Rename to regmap.
4787 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4788 x86_64_num_gregs.
4789 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4790 x86_64_regmap.
4791 (x86_64_fxsave_offset): Remove function.
4792 (supply_fpregset): Simply call x86_64_supply_fxsave.
4793 (fill_fpregset): Simply call x86_64_fill_fxsave.
4794 (fetch_inferior_registers, store_inferior_registers): Avoid
4795 asignment in if-statement.
4796 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4797 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4798 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4799 (fetch_core_registers): Remove function.
4800 (linux_elf_core_fns): Remove.
4801 (offsetoff): Don't define.
4802 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4803 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4804 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4805 add core-regset.o.
4806 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4807 protection against multiple includes instead of NM_X86_64_h. Add
4808 various comments. Include "config/nm-linux.h". Don't include
4809 <signal.h>.
4810 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4811 GET_THREAD_SIGNALS): Remove defines.
4812 (x86_64_register_u_addr, kernel_u_size,
4813 lin_thread_get_thread_signals): Remove prototypes.
4814 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4815 [HAVE_LINK_H]: Don't include "solib.h".
4816 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4817 * config/i386/tm-x86-64linux.h: Fix comments.
4818 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4819 x86-64-tdep.o): Update dependencies.
4820
4821 2003-05-30 Andrew Cagney <cagney@redhat.com>
4822
4823 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4824 Change parameter type to a "struct regcache *".
4825
4826 * gdbarch.sh: Regardless of the multi-arch level, always define
4827 the macro when not already defined.
4828 * gdbarch.h, gdbarch.c: Re-generate.
4829
4830 2003-05-30 Richard Henderson <rth@redhat.com>
4831
4832 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4833 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4834 (alpha_mdebug_frame_this_id): Likewise.
4835 (alpha_mdebug_frame_prev_register): Likewise.
4836 (alpha_mdebug_frame_base_address): Likewise.
4837 (alpha_mdebug_frame_locals_address): Likewise.
4838 (alpha_mdebug_frame_args_address): Likewise.
4839 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4840 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4841 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4842 loop increment.
4843 (alpha_heuristic_frame_this_id): Make static.
4844 (alpha_heuristic_frame_prev_register): Likewise.
4845 (alpha_heuristic_frame_base_address): Likewise.
4846 * alpha-tdep.h: Update.
4847
4848 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4849
4850 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4851 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4852 defenitions.
4853 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4854 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4855 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4856 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4857 I386_ST0_REGNUM): New defines.
4858 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4859 codestream_get): Remove define.
4860 (codestream_next_addr, condestream_addr, condestream_buf,
4861 codestream_off, codestream_cnt): Remove variables.
4862 (codestream_fill, codestream_seek, codestream_read): Remove
4863 functions.
4864 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4865 functionality.
4866 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4867 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4868 i386_frame_saved_pc, i386_saved_pc_after_call,
4869 i386_frame_num_args, i386_frame_init_saved_regs,
4870 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4871 i386_push_arguments): Remove functions.
4872 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4873 functionality. Use i386_analyze_prologue instead of
4874 i386_get_frame_setup.
4875 (I386_NUM_SAVED_REGS): New define.
4876 (struct i386_frame_cache): New structure.
4877 (i386_alloc_frame_cache, i386_analyze_struct_return,
4878 i386_skip_probe, i386_analyze_frame_setup,
4879 i386_analyze_register_saves, i386_analyze_prologue,
4880 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4881 i386_frame_prev_register, i386_sigtramp_frame_cache,
4882 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4883 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4884 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4885 New functions.
4886 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4887 New variables.
4888 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4889 I386_EAX_REGNUM and I386_EDX_REGNUM.
4890 (i386_extract_return_value, i386_store_return_value): Use
4891 I386_ST0_REGNUM where appropriate.
4892 (i386_extract_struct_value_address): Rewrite to use extract_address.
4893 (i386_svr4_pc_in_sigtramp): Add comment.
4894 (i386_svr4_sigcontext_addr): Rewrite.
4895 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4896 TDEP->sc_sp_offset.
4897 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4898 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4899 of new defines. Set push_dummy_call, don't set
4900 deprecated_push_arguments, deprecated_push_return_address,
4901 deprecated_pop_frame. Don't set parm_boundary. Don't set
4902 deprecated_frame_chain, deprecated_frame_saved_pc,
4903 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4904 save_dummy_frame_tos, unwind_pc. Call
4905 frame_unwind_append_predicate and frame_base_set_default. Don't
4906 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4907 Don't set frameless_function_invocation. Don't set
4908 deprecated_register_bytes, deprecated_register_size,
4909 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4910 * i386-linux-tdep.c: Fix formatting in some comments.
4911 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4912 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4913 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4914 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4915 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4916 redundant parentheses.
4917 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4918 (i386_linux_sigcontext_addr): Use it. Rewrite.
4919 (find_minsym_and_objfile): Change name of second argument.
4920 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4921 changed. Use frame_pc_unwind instead of
4922 DEPRECATED_SAVED_PC_AFTER_CALL.
4923 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4924 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4925 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4926 unwinder.
4927 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4928 "dummy-frame.h".
4929 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4930 (_initialize_i386_cygwin_tdep): New prototype.
4931 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4932 deprecated_frame_chain_valid.
4933 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4934 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4935 Rely on the SVR4 defaults.
4936 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4937 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4938
4939 2003-05-30 Andrew Cagney <cagney@redhat.com>
4940
4941 * infcall.c (call_function_by_hand): Always call
4942 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4943
4944 2003-05-30 Richard Henderson <rth@redhat.com>
4945
4946 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4947 increment.
4948
4949 2003-05-29 Jim Blandy <jimb@redhat.com>
4950
4951 Use gdbarch methods for solib stuff on PowerPC Linux.
4952 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4953 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4954 show through.
4955 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4956 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4957 giving the same effect as the #definitions above.
4958
4959 2003-05-29 Adam Fedor <fedor@gnu.org>
4960
4961 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4962 (find_implementation_from_class): Replace it with the standard
4963 case i.e. do nothing.
4964
4965 2003-05-29 Richard Henderson <rth@redhat.com>
4966
4967 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4968 (alpha_linux_sigtramp_offset): Use it. Make static.
4969 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4970 update for new frame model.
4971 * alpha-mdebug-tdep.c: New file.
4972 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4973 (alpha_osf1_init_abi): Install it.
4974 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4975 (linked_proc_desc_table): Remove.
4976 (alpha_frame_past_sigtramp_frame): Remove.
4977 (alpha_dynamic_sigtramp_offset): Remove.
4978 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4979 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4980 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4981 (push_sigtramp_desc): Remove.
4982 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4983 (alpha_cannot_store_register): Likewise.
4984 (alpha_sigcontext_addr): Remove.
4985 (alpha_find_saved_regs): Remove.
4986 (alpha_frame_init_saved_regs): Remove.
4987 (alpha_init_frame_pc_first): Remove.
4988 (read_next_frame_reg): Remove.
4989 (alpha_frame_saved_pc): Remove.
4990 (alpha_saved_pc_after_call): Remove.
4991 (temp_proc_desc, temp_saved_regs): Remove.
4992 (alpha_about_to_return): Remove.
4993 (cached_proc_desc): Remove.
4994 (alpha_frame_chain): Remove.
4995 (alpha_print_extra_frame_info): Remove.
4996 (alpha_init_extra_frame_info): Remove.
4997 (alpha_frame_locals_address): Remove.
4998 (alpha_frame_args_address): Remove.
4999 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5000 (alpha_push_dummy_frame): Remove.
5001 (alpha_pop_frame): Remove.
5002 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5003 (alpha_read_insn): New.
5004 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5005 for different insn encodings.
5006 (alpha_in_lenient_prologue): Remove.
5007 (struct alpha_sigtramp_unwind_cache): New.
5008 (alpha_sigtramp_frame_unwind_cache): New.
5009 (alpha_sigtramp_register_address): New.
5010 (alpha_sigtramp_frame_this_id): New.
5011 (alpha_sigtramp_frame_prev_register): New.
5012 (alpha_sigtramp_frame_unwind): New.
5013 (alpha_sigtramp_frame_p): New.
5014 (struct alpha_heuristic_unwind_cache): New.
5015 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5016 don't count nop insns that occur between functions.
5017 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5018 heuristic_proc_desc, but without the mdebug wrapping.
5019 (alpha_heuristic_frame_this_id): New.
5020 (alpha_heuristic_frame_prev_register): New.
5021 (alpha_heuristic_frame_unwind): New.
5022 (alpha_heuristic_frame_p): New.
5023 (alpha_heuristic_frame_base_address): New.
5024 (alpha_heuristic_frame_base): New.
5025 (alpha_unwind_dummy_id): New.
5026 (alpha_unwind_pc): New.
5027 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5028 frame related deprecated initializations; install replacements.
5029 (alpha_dump_tdep): Remove.
5030 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5031 (alpha_read_insn, alpha_after_prologue,
5032 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5033 alpha_heuristic_frame_prev_register,
5034 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5035 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5036 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5037 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5038
5039 2003-05-29 Andrew Cagney <cagney@redhat.com>
5040
5041 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5042 dependant on the availability of ASSERT_FUNCTION.
5043 (ASSERT_FUNCTION): Do not define when there is no function name.
5044
5045 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5046
5047 From Jimi X <jimix@watson.ibm.com>:
5048 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5049
5050 2003-05-28 Jim Blandy <jimb@redhat.com>
5051
5052 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5053 argument to ptrace to int; the system headers should give it the
5054 right type, and pointers don't fit in ints on powerpc64-*-*.
5055
5056 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5057
5058 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5059 DW_TAG_catch_block.
5060
5061 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5062
5063 * stabsread.c (dbx_lookup_type): Make static.
5064 (read_type): Ditto.
5065 (add_undefined_type): Ditto.
5066 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5067 not export.
5068
5069 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5070
5071 * hpread.c (hpread_has_name): Make static.
5072 (hpread_psymtab_to_symtab): Ditto.
5073 (file_exists): Ditto.
5074 (hpread_call_pxdb): Ditto.
5075 (hpread_pxdb_needed): Ditto.
5076 (hpread_quick_traverse): Ditto.
5077 (hpread_get_header): Ditto.
5078 (hpread_get_lntt): Ditto.
5079 (hpread_get_slt): Ditto.
5080 (class_of): Ditto.
5081
5082 2003-05-25 Andreas Schwab <schwab@suse.de>
5083
5084 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5085 stack_align and deprecated_extra_stack_alignment_needed.
5086 (m68k_stack_align): Delete.
5087
5088 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5089 (m68k_register_virtual_size): Likewise.
5090 (altos_skip_prologue): Remove obsolete function.
5091 (isi_frame_num_args): Likewise.
5092 (news_frame_num_args): Likewise.
5093 (m68k_fix_call_dummy): Make static.
5094 (m68k_push_dummy_frame): Likewise.
5095 (m68k_pop_frame): Likewise.
5096 (m68k_skip_prologue): Likewise.
5097 (m68k_frame_init_saved_regs): Likewise.
5098 (m68k_saved_pc_after_call): Likewise.
5099 (m68k_get_longjmp_target): Make multi-arch.
5100 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5101 structure. Register m68k_get_longjmp_target if enabled.
5102 * m68k-tdep.h (struct gdbarch_tdep): Define.
5103 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5104
5105 * Makefile.in (config.status): Also depend on configure.tgt
5106 and configure.host.
5107 (m68klinux-tdep.o): Update dependencies.
5108 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5109 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5110 (M68K_LINUX_JB_PC): Define.
5111 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5112 and take additional parameter.
5113 (m68k_linux_sigtramp_saved_pc): Update.
5114 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5115 m68k_linux_pc_in_sigtramp, in_plt_section,
5116 find_solib_trampoline_target.
5117 * config/m68k/tm-linux.h: Don't include any tm headers.
5118 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5119 (JB_ELEMENT_SIZE): Likewise.
5120 (JB_PC): Likewise.
5121 (GET_LONGJMP_TARGET): Likewise.
5122 (IN_SIGTRAMP): Likewise.
5123 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5124
5125 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5126
5127 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5128 (sparc32_push_arguments): Re-implement by calling
5129 sparc32_do_push_arguments.
5130
5131 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5132
5133 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5134 SPARC_O1_REGNUM): New defines.
5135 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5136 (sparc32_store_return_value): New function.
5137 (sparc_extract_struct_value_address): Rewrite to operate on a
5138 regcache.
5139 (sparc_gdbarch_init): Don't set
5140 deprecated_extract_struct_value_address. Set
5141 extract_struct_value_address instead. Don't set
5142 deprecated_extract_return_value and deprecated_store_return_value
5143 for 32-bit targets. Set extract_return_value and
5144 store_return_value instead.
5145 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5146 DEPRECTAED_EXTRACT_RETURN_VALUE,
5147 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5148 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5149 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5150 (sparc_store_return_value): Remove prototype.
5151 (sparc32_store_return_value): New prototype.
5152 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5153 Adjust prototypes.
5154
5155 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5156
5157 * sparcnbsd-tdep.c: Include "gdb_string.h".
5158
5159 2003-05-23 Andrew Cagney <cagney@redhat.com>
5160
5161 * p-valprint.c (pascal_val_print): Replace extract_address with
5162 the inline equivalent extract_unsigned_integer.
5163 * jv-valprint.c (java_value_print): Ditto.
5164 * ada-valprint.c (ada_val_print_1): Ditto.
5165 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5166
5167 2003-05-23 Theodore A. Roth <troth@openavr.org>
5168
5169 * blockframe.c (frameless_look_for_prologue): Remove unused
5170 after_prologue variable.
5171
5172 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5173
5174 * blockframe.c (get_pc_function_start): Rewrite to avoid
5175 asignments in if-statements.
5176
5177 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5178
5179 Committed by Elena Zannoni <ezannoni@redhat.com>.
5180 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5181 files, don't relocate absolute symbols (and do use mst_abs).
5182
5183 2003-05-23 Andrew Cagney <cagney@redhat.com>
5184
5185 * objc-lang.c: Include "gdb_assert.h".
5186 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5187 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5188 (gdb_check, gdb_check_fatal): Delete functions.
5189 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5190 gdb_assert.
5191 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5192 * Makefile.in (objc-lang.o): Update dependencies.
5193
5194 2003-05-22 Ian Lance Taylor <ian@airs.com>
5195
5196 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5197 with fprintf_filtered, not fprintf_unfiltered.
5198
5199 2003-05-22 Andrew Cagney <cagney@redhat.com>
5200
5201 * stack.c (frame_info): Inline extract_address, replacing it with
5202 extract_unsigned_integer.
5203 * findvar.c (unsigned_pointer_to_address): Ditto.
5204 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5205 * dwarf2expr.c (dwarf2_read_address): Ditto.
5206 * frame.c (frame_pc_unwind): Update comment.
5207 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5208
5209 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5210
5211 * infptrace.c (detach): Call print_sys_errmsg rather than
5212 perror_with_name to issue warning message when errno is non-zero
5213 after calling ptrace detach.
5214
5215 2003-05-21 J. Brobecker <brobecker@gnat.com>
5216
5217 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5218 macro definitions from here...
5219 * hppa-tdep.c: ...to there.
5220
5221 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5222
5223 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5224 register_ptrace_addr(). Fix all callers.
5225
5226 2003-05-21 Andreas Schwab <schwab@suse.de>
5227
5228 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5229 dependencies.
5230 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5231 end.
5232 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5233 (_initialize_m68k_linux_tdep): New function.
5234 (m68k_linux_frame_saved_pc): Make static.
5235 (m68k_linux_extract_return_value): Likewise.
5236 (m68k_linux_store_return_value): Likewise.
5237 (m68k_linux_extract_struct_value_address): Likewise.
5238 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5239 Remove.
5240 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5241 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5242 (DEPRECATED_FRAME_SAVED_PC): Remove.
5243
5244 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5245
5246 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5247 regset numbering rather than our own.
5248
5249 2003-05-19 David Carlton <carlton@bactrian.org>
5250
5251 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5252
5253 2003-05-19 David Carlton <carlton@bactrian.org>
5254
5255 Partial fix for PR c++/827.
5256 * cp-support.h: Include symtab.h.
5257 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5258 * cp-namespace.c: Update contributors.
5259 (cp_lookup_symbol_nonlocal): New.
5260 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5261 (lookup_symbol_file): Ditto.
5262 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5263 * block.h: Declare block_scope, block_using, block_global_block.
5264 * block.c (block_scope): New.
5265 (block_using, block_global_block): Ditto.
5266 * Makefile.in (cp_support_h): Depend on symtab_h.
5267 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5268
5269 2003-05-19 David Carlton <carlton@bactrian.org>
5270
5271 * language.h (struct language_defn): Add 'la_value_of_this'
5272 and 'la_lookup_symbol_nonlocal' members.
5273 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5274 lookup_symbol_static, lookup_symbol_global,
5275 lookup_symbol_aux_block.
5276 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5277 if we should search fields of this and how to do static/global
5278 lookup.
5279 (lookup_symbol_aux_block): Make extern.
5280 (basic_lookup_symbol_nonlocal): New.
5281 (lookup_symbol_static, lookup_symbol_global): Ditto.
5282 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5283 'la_lookup_symbol_nonlocal' members.
5284 * c-lang.c (c_language_defn, cplus_language_defn)
5285 (asm_language_defn, minimal_language_defn): Ditto.
5286 * jv-lang.c (java_language_defn): Ditto.
5287 * language.c (unknown_language_defn, auto_language_defn)
5288 (local_language_defn): Ditto.
5289 * m2-lang.c (m2_language_defn): Ditto.
5290 * objc-lang.c (objc_language_defn): Ditto.
5291 * scm-lang.c (scm_language_defn): Ditto.
5292 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5293 * p-lang.c (pascal_language_defn): Ditto for both.
5294 * Makefile.in (f-lang.o): Depend on value_h.
5295 (p-lang.o): Ditto.
5296
5297 2003-05-19 David Carlton <carlton@bactrian.org>
5298
5299 * block.h: Declare block_static_block.
5300 * block.c (block_static_block): New.
5301 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5302 lookup_symbol_aux_local, calling block_static_block instead.
5303 (lookup_symbol_aux_local): Delete 'static_block' argument.
5304
5305 2003-05-19 David Carlton <carlton@bactrian.org>
5306
5307 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5308
5309 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5310
5311 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5312 register numbers mapping.
5313
5314 2003-05-18 Adam Fedor <fedor@gnu.org>
5315
5316 * symtab.c (completion_list_objc_symbol): New function.
5317 (make_symbol_completion_list): Use it to add ObjC symbols
5318 when looking though the list.
5319 (language_search_unquoted_string): New function.
5320 (make_file_symbol_completion_list): Use it.
5321
5322 2003-05-18 Andreas Schwab <schwab@suse.de>
5323
5324 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5325 dependencies.
5326 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5327 as m68k_linux_extract_return_value.
5328 (DEPRECATED_STORE_RETURN_VALUE): Define as
5329 m68k_linux_store_return_value.
5330 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5331 m68k_linux_extract_struct_value_address.
5332 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5333 get_next_frame, get_frame_base, get_frame_pc.
5334 (m68k_linux_frame_saved_pc): Use get_frame_base.
5335 (m68k_linux_extract_return_value): New function.
5336 (m68k_linux_store_return_value): New function.
5337 (m68k_linux_extract_struct_value_address): New function.
5338 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5339
5340 * c-exp.y (typebase): Remove duplicate occurence of
5341 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5342 of lookup_signed_typename.
5343
5344 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5345
5346 * dwarf2loc.c (find_location_expression): Change type of second
5347 argument to `size_t *'.
5348 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5349 for size variable.
5350
5351 2003-05-18 David Carlton <carlton@bactrian.org>
5352
5353 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5354 'linkage_name'. Add comment.
5355 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5356 'linkage_name'.
5357 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5358 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5359 (lookup_block_symbol): Ditto.
5360
5361 2003-05-16 Andrew Cagney <cagney@redhat.com>
5362
5363 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5364 * gdbarch.h, gdbarch.c: Re-generate.
5365 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5366 * TODO (REGISTER_BYTES): Delete reference.
5367 * alpha-tdep.c (alpha_gdbarch_init): Update.
5368 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5369 * x86-64-tdep.c (x86_64_init_abi): Update.
5370 * vax-tdep.c (vax_gdbarch_init): Update.
5371 * v850-tdep.c (v850_gdbarch_init): Update.
5372 * sparc-tdep.c (sparc_gdbarch_init): Update.
5373 * sh-tdep.c (sh_gdbarch_init): Update.
5374 * s390-tdep.c (s390_gdbarch_init): Update.
5375 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5376 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5377 (ns32k_gdbarch_init_32382): Update.
5378 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5379 * mcore-tdep.c (mcore_gdbarch_init): Update.
5380 * m68k-tdep.c (m68k_gdbarch_init): Update.
5381 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5382 * ia64-tdep.c (ia64_gdbarch_init): Update.
5383 * i386-tdep.c (i386_gdbarch_init): Update.
5384 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5385 * hppa-tdep.c (hppa_gdbarch_init): Update.
5386 * h8300-tdep.c (h8300_gdbarch_init): Update.
5387 * frv-tdep.c (frv_gdbarch_init): Update.
5388 * cris-tdep.c (cris_gdbarch_init): Update.
5389 * avr-tdep.c (avr_gdbarch_init): Update.
5390 * arm-tdep.c (arm_gdbarch_init): Update.
5391 * sparc-tdep.c (sparc_pop_frame): Update.
5392 * rs6000-tdep.c (rs6000_pop_frame): Update.
5393 * remote.c (init_remote_state): Update.
5394 (remote_prepare_to_store): Update.
5395 * remote-vx.c (vx_prepare_to_store): Update.
5396 * remote-sds.c (sds_fetch_registers): Update.
5397 (sds_prepare_to_store): Update.
5398 * remote-array.c: Update.
5399 * regcache.c (init_legacy_regcache_descr): Update.
5400 (init_regcache_descr): Update.
5401 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5402 (mips_o64_extract_return_value): Update.
5403 * irix5-nat.c (fetch_core_registers): Update.
5404 * irix4-nat.c (fetch_core_registers): Update.
5405 * i386-tdep.h: Update.
5406 * hppa-tdep.c (pa_do_registers_info): Update.
5407 (pa_do_strcat_registers_info): Update.
5408 * cris-tdep.c (cris_register_bytes_ok): Update.
5409 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5410 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5411 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5412 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5413 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5414 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5415 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5416 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5417 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5418 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5419 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5420 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5421 (REGISTER_BYTES_OK): Update.
5422 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5423 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5424
5425 2003-05-16 Ian Lance Taylor <ian@airs.com>
5426
5427 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5428 (vax_print_insn, print_insn_arg): Remove static functions.
5429 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5430 print_insn_vax from opcodes library.
5431 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5432
5433 2003-05-15 Andrew Cagney <cagney@redhat.com>
5434
5435 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5436 * target.h (memory_breakpoint_from_pc): Delete declaration.
5437 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5438 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5439 * monitor.c (monitor_insert_breakpoint): Use
5440 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5441 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5442 * gdbarch.h, gdbarch.c: Re-generate.
5443 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5444 (sparc_gdbarch_init): Set breakpoint_from_pc to
5445 sparc_breakpoint_from_pc.
5446 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5447 (BREAKPOINT_FROM_PC): Define.
5448 (sparc_breakpoint_from_pc): Declare.
5449 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5450 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5451 (BREAKPOINT_FROM_PC): Define.
5452 (BREAKPOINT): Delete macro.
5453 * target.h: Update comment.
5454 * s390-tdep.c (s390_gdbarch_init): Update comments.
5455 * remote.c: Update comments.
5456 * remote-mips.c: Update comments.
5457 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5458 * mem-break.c: Update comment.
5459 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5460 (ia64_memory_insert_breakpoint): Update.
5461 * config/sparc/tm-sparc.h: Update comment.
5462 * config/pa/tm-hppa64.h: Update comment.
5463 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5464 (rs6000_breakpoint_from_pc): Update.
5465 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5466 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5467 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5468 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5469 (mips_breakpoint_from_pc): Update.
5470 (mips_dump_tdep): Update.
5471
5472 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5473 * minsyms.c (lookup_minimal_symbol): Inline
5474 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5475
5476 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5477 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5478 * p-lang.c (pascal_printstr): Ditto.
5479 * objc-lang.c (objc_printstr): Ditto.
5480 * m2-lang.c (m2_printstr): Ditto.
5481 * jv-valprint.c (java_print_value_fields): Ditto.
5482 * f-lang.c (f_printstr): Ditto.
5483 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5484 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5485 for repeat_count_threshold.
5486 * Makefile.in (cp-valprint.o): Update dependencies.
5487
5488 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5489
5490 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5491 (examine_prologue): Support looking through leaf functions, knowing
5492 they start with mov r2,r12. Support skipping over indirect stores
5493 of the input registers. Upon hitting a non-nop branch instruction
5494 or predicated instruction, bail out by setting lim_pc to the current
5495 pc value in the loop. At the end, if the lim_pc value is still
5496 beyond our calculated value and we have trust_limit set,
5497 use the lim_pc value.
5498
5499 2003-05-15 Andrew Cagney <cagney@redhat.com>
5500
5501 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5502 generic_find_dummy_frame.
5503 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5504 (deprecated_generic_find_dummy_frame): Update.
5505 (deprecated_read_register_dummy): Update.
5506 * frame.c (deprecated_generic_get_saved_register): Update.
5507
5508 2003-05-15 Theodore A. Roth <troth@openavr.org>
5509
5510 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5511 (avr_gdbarch_init): Set breakpoint_from_pc method.
5512
5513 2003-05-15 Andrew Cagney <cagney@redhat.com>
5514
5515 * regcache.c (build_regcache): Set deprecated_register_valid
5516 directly.
5517 (deprecated_grub_regcache_for_register_valid): Delete function.
5518 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5519 declaration.
5520
5521 2003-05-15 David Carlton <carlton@bactrian.org>
5522
5523 Committed by Elena Zannoni <ezannoni@redhat.com>
5524 * symtab.c (lookup_symbol_aux): Delete calls to
5525 lookup_symbol_aux_minsyms.
5526 (lookup_symbol_aux_minsyms): Comment out function and
5527 prototype. Delete lookup by mangled name.
5528
5529 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5530
5531 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5532 correctly indicate an empty stack and ``stack_allocated'' to the
5533 indicate the number of elements initially allocated.
5534 (dwarf_expr_grow_stack): Simplify method for computing new
5535 stack size. Don't loop infinitely if ``stack_len'' is zero.
5536 (execute_stack_op): Move ``ctx->in_reg'' initialization
5537 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5538 be used in conjuction with DW_OP_piece. Revise error message
5539 accordingly.
5540
5541 2003-05-14 Theodore A. Roth <troth@openavr.org>
5542
5543 * MAINTAINERS: Update my email address.
5544 * avr-tdep.c: Ditto.
5545
5546 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5547
5548 * symtab.h (enum domain_enum): Rename from namespace_enum.
5549 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5550 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5551 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5552 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5553 TYPES_NAMESPACE, METHODS_NAMESPACE.
5554 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5555 (struct symbol, struct partial_symbol): Rename field
5556 'namespace_enum namespace' to 'domain_enum domain'.
5557 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5558 Delete old define kludge for namespace.
5559
5560 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5561 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5562 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5563 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5564 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5565 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5566 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5567 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5568 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5569 occurrences of the above.
5570
5571 2003-05-14 Ian Lance Taylor <ian@airs.com>
5572
5573 * Makefile.in (install-only): Use $(SHELL) when running
5574 mkinstalldirs.
5575
5576 2003-05-13 Ian Lance Taylor <ian@airs.com>
5577
5578 * MAINTAINERS (write after approval): Add myself.
5579
5580 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5581 second and third arguments.
5582 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5583 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5584
5585 2003-05-13 Andrew Cagney <cagney@redhat.com>
5586
5587 * defs.h (store_address): Delete declaration.
5588 findvar.c (store_address): Delete function.
5589 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5590 store_unsigned_integer.
5591 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5592 * v850-tdep.c (v850_push_arguments): Ditto.
5593 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5594 * sh-tdep.c (sh64_get_saved_register): Ditto.
5595 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5596 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5597 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5598 (mips_get_saved_register): Ditto.
5599 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5600 (find_func_descr, ia64_push_arguments): Ditto.
5601 * i386-tdep.c (i386_push_arguments): Ditto.
5602 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5603 * frv-tdep.c (frv_push_arguments): Ditto.
5604 * frame.c (legacy_saved_regs_prev_register): Ditto.
5605 (deprecated_generic_get_saved_register): Ditto.
5606 * findvar.c (unsigned_address_to_pointer): Ditto.
5607 * dwarf2read.c (dwarf2_const_value): Ditto.
5608 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5609 * alpha-tdep.c (alpha_push_arguments): Ditto.
5610
5611 2003-05-12 J. Brobecker <brobecker@gnat.com>
5612
5613 * NEWS: Mention that the hppa-hpux port has been partially
5614 multiarched (32bit ABIT only, so far).
5615
5616 2003-05-11 Andrew Cagney <cagney@redhat.com>
5617
5618 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5619 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5620 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5621 sim/testsuite/sim/arm/misaligned2.ms, and
5622 sim/testsuite/sim/arm/misaligned3.ms.
5623 * disasm.h (struct ui_file): Add opaque struct declaration.
5624 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5625 * frame.h (struct ui_file): Ditto.
5626
5627 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5628
5629 * value.h: Pretty print.
5630
5631 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5632
5633 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5634
5635 2003-05-08 Andrew Cagney <cagney@redhat.com>
5636
5637 * regcache.h (max_register_size): Delete declaration.
5638 * regcache.c (max_register_size): Delete function.
5639 (struct regcache_descr): Delete field "max_register_size".
5640 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5641 registers fit in MAX_REGISTER_SIZE.
5642 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5643 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5644 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5645 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5646 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5647 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5648 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5649 * dve3900-rom.c, hppa-tdep.c: Ditto.
5650
5651 2003-05-08 David Carlton <carlton@math.stanford.edu>
5652
5653 * valops.c (push_word): Fix typo.
5654
5655 2003-05-08 Andrew Cagney <cagney@redhat.com>
5656
5657 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5658 * gdbarch.h: Re-generate.
5659 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5660 (legacy_max_register_raw_size): Delete declaration.
5661 * regcache.c (legacy_max_register_raw_size): Delete function.
5662 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5663 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5664 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5665 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5666 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5667 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5668 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5669 * findvar.c, dwarf2cfi.c: Ditto.
5670
5671 2003-05-08 Andrew Cagney <cagney@redhat.com>
5672
5673 * mips-tdep.c (read_signed_register): New function, moved to here
5674 from "regcache.c".
5675 (read_signed_register_pid): Ditto.
5676 * regcache.c (read_signed_register_pid): Delete function, moved to
5677 "mips-tdep.c".
5678 (read_signed_register): Ditto.
5679 * regcache.h (read_signed_register): Delete declaration.
5680 (read_signed_register_pid): Delete declaration.
5681
5682 2003-05-08 Andrew Cagney <cagney@redhat.com>
5683
5684 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5685 * gdbarch.h: Re-generate.
5686 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5687 (legacy_max_register_virtual_size): Delete declaration.
5688 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5689 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5690 * tracepoint.c (memrange_sortmerge): Ditto.
5691 * sparc-tdep.c (sparc_print_registers): Ditto.
5692 * regcache.c (legacy_max_register_virtual_size): Delete function.
5693
5694 2002-05-08 J. Brobecker <brobecker@gnat.com>
5695
5696 * fork-child.c (escape_bang_in_quoted_argument): New function.
5697 (fork_inferior): Escape '!' characters in quoted arguments
5698 only when needed.
5699
5700 2003-05-08 J. Brobecker <brobecker@gnat.com>
5701
5702 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5703 the language of the CU is not currently supported by GDB.
5704
5705 2003-05-08 J. Brobecker <brobecker@gnat.com>
5706
5707 * defs.h (language): Add language_minimal enum value.
5708 * c-lang.c (minimal_language_defn): New language definition.
5709 (_initialize_c_language): Add the new minimal language to the list
5710 of languages known to GDB.
5711
5712 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5713
5714 * frame.c (get_frame_type): Don't attempt to lazily initialize
5715 frame's unwinder for legacy frames.
5716
5717 2003-05-07 Andrew Cagney <cagney@redhat.com>
5718
5719 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5720 and "regcache" parameters.
5721 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5722
5723 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5724
5725 * dwarf2read.c (dwarf_decode_lines): Only use output of
5726 check_cu_functions() when calling record_line(). Do not update
5727 the current address.
5728
5729 2003-05-07 Andrew Cagney <cagney@redhat.com>
5730
5731 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5732 code.
5733
5734 2003-05-07 Jim Blandy <jimb@redhat.com>
5735
5736 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5737 'maint info symtabs' and 'maint info psymtabs'.
5738 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5739 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5740 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5741 Declarations updated.
5742 * maint.c (maintenance_list_command): Delete.
5743 (_initialize_maint_cmds): Update calls to add_cmd.
5744 * gdbcmd.h (maintenancelistlist): Delete declaration.
5745 * cli/cli-cmds.c (maintenancelistlist): Delete.
5746 (init_cmd_lists): Don't initialize it.
5747 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5748
5749 2003-05-07 Andrew Cagney <cagney@redhat.com>
5750
5751 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5752 "regcache".
5753 (d10v_print_registers_info): Update.
5754 (d10v_dmap_register, d10v_imap_register): Delete functions.
5755 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5756 and "imap_register".
5757 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5758 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5759 * arch-utils.c (generic_remote_translate_xfer_address): Add
5760 "regcache" and "gdbarch" parameters.
5761 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5762 parameter. Change class to multi-arch.
5763 * gdbarch.h, gdbarch.c: Re-generate.
5764 * remote.c (remote_xfer_memory): Use
5765 gdbarch_remote_translate_xfer_address.
5766
5767 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5768
5769 * infrun.c (prev_pc): Move declaration ahead of proceed().
5770 (proceed): Refresh prev_pc value before resuming.
5771 (stop_stepping): Remove code to refresh prev_pc.
5772
5773 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5774
5775 * nto-tdep.c: Removed stray comment.
5776
5777 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5778
5779 * i386-nto-tdep.c: Fix old K&R function definitions.
5780 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5781 Also change add_show_from_set() call to add_setshow_cmd().
5782 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5783
5784 2003-05-05 Andrew Cagney <cagney@redhat.com>
5785
5786 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5787 (fprint_dummy_frames): New function.
5788 (maintenance_print_dummy_frames): New function.
5789 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5790 * frame.c (fprint_frame_id): Make global.
5791 * frame.h (fprint_frame_id): Declare.
5792 * Makefile.in (dummy-frame.o): Update dependencies.
5793
5794 2003-05-05 Andrew Cagney <cagney@redhat.com>
5795
5796 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5797 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5798 SIZEOF_CALL_DUMMY_WORDS.
5799 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5800 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5801 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5802 CALL_DUMMY_BREAKPOINT_OFFSET.
5803 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5804 CALL_DUMMY_START_OFFSET.
5805 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5806 * gdbarch.h, gdbarch.c: Re-generate.
5807 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5808 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5809 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5810 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5811 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5812 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5813 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5814 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5815 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5816 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5817 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5818 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5819 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5820 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5821 * config/sparc/tm-sparc.h: Update.
5822
5823 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5824
5825 * configure.tgt: Add i[3456]86-*-nto*.
5826 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5827 * nto-tdep.c: New file. Neutrino target support routines.
5828 * nto-tdep.h: New file. Neutrino target header.
5829 * config/tm-qnxnto.h: New file.
5830 * config/i386/i386nto.mt: New file.
5831 * config/i386/tm-i386nto.h: New file.
5832
5833 2003-05-04 Andrew Cagney <cagney@redhat.com>
5834
5835 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5836 (load_infrun_state): Ditto.
5837 (struct thread_info): Drop "prev_func_name" field.
5838 * thread.c (load_infrun_state): Update.
5839 (save_infrun_state): Update.
5840 * infrun.c (prev_func_name): Delete variable.
5841 (init_wait_for_inferior): Do not clear prev_func_name.
5842 (stop_stepping, keep_going, context_switch): Do not swap
5843 prev_func_name.
5844 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5845 instead of PC_IN_SIGTRAMP.
5846
5847 2003-05-04 Andrew Cagney <cagney@redhat.com>
5848
5849 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5850 REGISTER_BYTE with register_offset_hack.
5851 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5852 that REGISTER_BYTE is consistent with the regcache.
5853 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5854 * gdbarch.h, gdbarch.c: Regenerate.
5855
5856 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5857
5858 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5859 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5860
5861 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5862
5863 2003-05-03 J. Brobecker <brobecker@gnat.com>
5864
5865 From Thierry Schneider <tpschneider1@yahoo.com>
5866 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5867 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5868 (mi-cmd-symbol.o): Add rule.
5869
5870 2003-05-03 Andrew Cagney <cagney@redhat.com>
5871
5872 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5873 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5874 * gdbarch.h, gdbarch.c: Re-generate.
5875 * d10v-tdep.c (d10v_push_dummy_code): New function.
5876 (d10v_gdbarch_init): Set push_dummy_code.
5877 * infcall.c (legacy_push_dummy_code): New function.
5878 (generic_push_dummy_code): New function.
5879 (push_dummy_code): New function.
5880 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5881 instead of dummy_addr, to push_dummy_call. Move call to
5882 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5883 switch.
5884 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5885
5886 2003-05-03 Andrew Cagney <cagney@redhat.com>
5887
5888 * disasm.h (print_insn): Declare.
5889 * disasm.c (init_gdb_disassemble_info): New function.
5890 (gdb_disassembly): Call init_gdb_disassemble_info.
5891 (gdb_print_insn): New function.
5892 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5893 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5894 * mcore-tdep.c: Include "disasm.h"
5895 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5896 * d10v-tdep.c: Include "disasm.h".
5897 (display_trace): Call gdb_print_insn, instead of print_insn.
5898 (print_insn): Delete function.
5899 * printcmd.c: Include "disasm.h".
5900 (print_insn): Delete function.
5901 (print_formatted): Call gdb_print_insn, instead of print_insn.
5902 * Makefile.in (printcmd.o): Update dependencies.
5903 (mcore-tdep.o, d10v-tdep.o): Ditto.
5904
5905 2003-05-02 Andrew Cagney <cagney@redhat.com>
5906
5907 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5908 PC_REGNUM, re-indent.
5909 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5910 PC_REGNUM isn't set.
5911
5912 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5913 * gdbarch.h, gdbarch.c: Re-generate.
5914 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5915 register_virtual_size, pc_regnum, or register_bytes.
5916 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5917 (d10v_register_type): Use D10V_PC_REGNUM.
5918 (d10v_print_registers_info, d10v_read_pc): Ditto.
5919 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5920 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5921
5922 2003-05-02 David Carlton <carlton@bactrian.org>
5923
5924 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5925 the name with mstrsave.
5926
5927 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5928
5929 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5930 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5931 (host_charset_name, target_charset_name): New vars for use by
5932 set/show commands.
5933 (host_charset_enum, target_charset_enum): New enums for set/show
5934 commands.
5935 (set_charset_sfunc, set_host_charset_sfunc,
5936 set_target_charset_sfunc): New functions.
5937 (set_host_charset, set_target_charset): Make static.
5938 (list_charsets, set_host_charset_command,
5939 set_target_charset_command): Delete functions.
5940 (show_charset_command): Rewrite as....
5941 (show_charset): Hook this up with the set/show command mechanism.
5942 (_initialize_charset): Change names of charsets to match the
5943 set/show enums. Use host_charset_name and target_charset_name.
5944 Use set/show mechanism for charset, host-charset, target-charset
5945 commands. Do not make 'show host-charset' and 'show
5946 target-charset' be aliases of 'show charset'.
5947
5948 * charset.h (set_host_charset, set_target_charset): Don't export,
5949 they are not used outside the file.
5950
5951 2003-05-01 Andrew Cagney <cagney@redhat.com>
5952
5953 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5954 (gdb_disassembly): Make "di" non static, always initialize and
5955 cleanup. Always use dis_asm_read_memory.
5956 (gdb_dis_asm_read_memory): Delete function.
5957
5958 2003-05-01 Andrew Cagney <cagney@redhat.com>
5959
5960 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5961 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5962
5963 2003-04-30 Andrew Cagney <cagney@redhat.com>
5964
5965 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5966 "tm_print_insn_info".
5967 (TARGET_PRINT_INSN_INFO): Delete macro.
5968 (dis_asm_read_memory): Delete function declaration.
5969 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5970 (tm_print_insn_info): Delete variable definition.
5971 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5972 * gdbarch.h, gdbarch.c: Re-generate.
5973 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5974 "deprecated_tm_print_insn_info".
5975 * mcore-tdep.c (mcore_dump_insn): Ditto.
5976 * mips-tdep.c (mips_gdbarch_init): Ditto.
5977 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5978 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5979 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5980 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5981 instead of TARGET_PRINT_INSN_INFO, add comment.
5982 * s390-tdep.c (s390_get_frame_info): Instead of
5983 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5984 (s390_check_function_end, s390_is_sigreturn): Ditto.
5985 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5986 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5987 * disasm.c: Include "gdbcore.h".
5988 (_initialize_disasm): New function, initialize
5989 "deprecated_tm_print_insn_info".
5990 (deprecated_tm_print_insn_info): New variable.
5991 (dis_asm_read_memory): Moved from "corefile.c", made static.
5992 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5993 * Makefile.in (disasm.o): Update dependencies.
5994
5995 2003-04-30 Andrew Cagney <cagney@redhat.com>
5996
5997 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5998
5999 2003-04-29 Adam Fedor <fedor@gnu.org>
6000
6001 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6002 * infcall.c (find_function_addr): Make non-static.
6003 * infcall.h (find_function_addr): Declare.
6004 * Makefile.in (eval.o): Update dependencies.
6005
6006 2003-04-28 Adam Fedor <fedor@gnu.org>
6007
6008 * symtab.c (symbol_find_demangled_name): Check for and demangle
6009 ObjC symbols.
6010 (symbol_init_demangled_name): Init for language_objc as well.
6011
6012 2003-04-28 Andrew Cagney <cagney@redhat.com>
6013
6014 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6015 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6016 * gdbarch.h, gdbarch.c: Re-generate.
6017 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6018 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6019 * inferior.h (deprecated_read_fp): Rename read_fp.
6020 (generic_target_read_fp): Delete declaration.
6021 * regcache.c (generic_target_read_fp): Delete function.
6022 (deprecated_read_fp): Replace read_fp, use
6023 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6024 * d10v-tdep.c (d10v_read_fp): Delete function.
6025 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6026
6027 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6028 deprecated_target_read_fp to generic_target_read_fp.
6029 * sh-tdep.c (sh_gdbarch_init): Ditto.
6030 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6031 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6032 * frv-tdep.c (frv_gdbarch_init): Ditto.
6033
6034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6035 deprecated_fp_regnum.
6036 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6037 * vax-tdep.c (vax_gdbarch_init): Ditto.
6038 * v850-tdep.c (v850_gdbarch_init): Ditto.
6039 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6040 * sh-tdep.c (sh_gdbarch_init): Ditto.
6041 * s390-tdep.c (s390_gdbarch_init): Ditto.
6042 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6043 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6044 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6045 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6047 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6048 * i386-tdep.c (i386_gdbarch_init): Ditto.
6049 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6050 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6051 * frv-tdep.c (frv_gdbarch_init): Ditto.
6052 * cris-tdep.c (cris_gdbarch_init): Ditto.
6053 * avr-tdep.c (avr_gdbarch_init): Ditto.
6054 * arm-tdep.c (arm_gdbarch_init): Ditto.
6055 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6056
6057 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6058 * v850-tdep.c (v850_gdbarch_init): Ditto.
6059 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6060 * sh-tdep.c (sh_gdbarch_init): Ditto.
6061 * s390-tdep.c (s390_gdbarch_init): Ditto.
6062 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6063 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6064 * mips-tdep.c (mips_gdbarch_init): Ditto.
6065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6066 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6067 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6068 * frv-tdep.c (frv_gdbarch_init): Ditto.
6069 * avr-tdep.c (avr_gdbarch_init): Ditto.
6070 * arm-tdep.c (arm_gdbarch_init): Ditto.
6071
6072 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6073 DEPRECATED_FP_REGNUM.
6074 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6075 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6076 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6077 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6078 (sparc32_register_virtual_type): Ditto.
6079 * sh-tdep.c (sh64_frame_chain): Ditto.
6080 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6081 (sh_nofp_frame_init_saved_regs): Ditto.
6082 (sh64_nofp_frame_init_saved_regs): Ditto.
6083 (sh_fp_frame_init_saved_regs): Ditto.
6084 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6085 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6086 * procfs.c (procfs_fetch_registers): Ditto.
6087 (procfs_store_registers): Ditto.
6088 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6089 (store_inferior_registers, fetch_core_registers): Ditto.
6090 (fetch_kcore_registers, clear_regs): Ditto.
6091 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6092 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6093 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6094 * nlm/i386.c (do_status): Ditto.
6095 * mipsv4-nat.c (supply_gregset): Ditto.
6096 * mips-tdep.c: Ditto for comments.
6097 * mips-nat.c (fetch_inferior_registers): Ditto.
6098 (store_inferior_registers, fetch_core_registers): Ditto.
6099 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6100 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6101 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6102 (i386_do_pop_frame, i386_register_type): Ditto.
6103 * hppa-tdep.c (hppa_frame_chain): Ditto.
6104 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6105 (hppa_pop_frame, hppa_read_fp): Ditto.
6106 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6107 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6108 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6109 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6110 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6111 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6112 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6113 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6114 * blockframe.c: Ditto for comments.
6115 * arch-utils.h: Ditto for comments.
6116 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6117 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6118 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6119 * alpha-tdep.h: Ditto for comments.
6120 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6121 (alpha_cannot_store_register): Ditto.
6122 (alpha_push_dummy_frame): Ditto.
6123 * alpha-nat.c (supply_gregset): Ditto.
6124
6125 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6126 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6127 * config/sparc/tm-sparc.h: Update comment.
6128
6129 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6130 deprecated_read_fp instead of TARGET_READ_FP.
6131 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6132 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6133 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6134 deprecated_read_fp instead of read_fp.
6135 * s390-tdep.c (s390_push_arguments): Ditto.
6136 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6137 * frame.h: Ditto in comments.
6138 * frame.c (legacy_get_prev_frame): Ditto.
6139 * dummy-frame.c (dummy_frame_this_id): Ditto.
6140 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6141
6142 2003-04-28 Andrew Cagney <cagney@redhat.com>
6143
6144 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6145 * gdbarch.h, gdbarch.c: Re-generate.
6146 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6147 * vax-tdep.c (_initialize_vax_tdep): Update.
6148 * v850-tdep.c (_initialize_v850_tdep): Update.
6149 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6150 * s390-tdep.c (_initialize_s390_tdep): Update.
6151 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6152 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6153 * mips-tdep.c (_initialize_mips_tdep): Update.
6154 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6155 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6156 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6157 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6158 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6159 * frv-tdep.c (_initialize_frv_tdep): Update.
6160 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6161 (_initialize_cris_tdep): Update.
6162 * arch-utils.c (legacy_print_insn): Update.
6163 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6164
6165 2003-04-26 Adam Fedor <fedor@gnu.org>
6166
6167 * linespec.c (decode_objc): New function to decode ObjC calls
6168 (decode_line_1): Check for ObjC calls (using decode_objc)
6169 * Makefile (linespec.o): Update dependencies.
6170
6171 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6172
6173 * breakpoint.h (struct breakpoint_ops): New.
6174 (struct breakpoint): Add ops member.
6175
6176 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6177 (mention): Use new breakpoint ops member.
6178 (set_raw_breakpoint): Initialize ops field to NULL.
6179 (print_exception_catchpoint, print_one_exception_catchpoint)
6180 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6181 (gnu_v3_exception_catchpoint_ops): New.
6182 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6183
6184 2003-04-25 Adam Fedor <fedor@gnu.org>
6185
6186 * Makefile.in (COMMON_OBS): Add objc-lang.o
6187
6188 2003-04-25 Andrew Cagney <cagney@redhat.com>
6189
6190 * d10v-tdep.c (print_insn): Delete function.
6191 (display_trace): Use TARGET_PRINT_INSN.
6192 (_initialize_d10v_tdep): Do not set tm_print_insn.
6193 (d10v_gdbarch_init): Set print_insn.
6194
6195 2003-04-25 Andrew Cagney <cagney@redhat.com>
6196
6197 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6198 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6199 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6200 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6201 (nr_dmap_regs, a0_regnum): ... new functions.
6202 (d10v_print_registers_info): Use a0_regnum, use register_size.
6203 (d10v_register_byte): Delete function.
6204 (d10v_register_raw_size): Delete function.
6205 (d10v_register_type): Use a0_regnum.
6206 (d10v_print_registers_info): Use a0_regnum.
6207 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6208 (d10v_gdbarch_init): Do not set register_byte or
6209 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6210 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6211 extract_address.
6212 (trace_command): Use XCALLOC.
6213 (print_insn): Delete reference to tm_print_insn.
6214 (saved_regs_unwinder): Use store_unsigned_integer instead of
6215 store_address.
6216 * frame.h (FRAME_OBSTACK_CALLOC): Define
6217
6218 2003-04-25 David Carlton <carlton@bactrian.org>
6219
6220 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6221
6222 2003-04-24 Adam Fedor <fedor@gnu.org>
6223
6224 * objc-lang.c: Include "valprint.h"
6225 * Makefile.in (objc-lang.o): Update dependencies.
6226
6227 2003-04-24 Adam Fedor <fedor@gnu.org>
6228
6229 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6230 architecture dependant compilation and mark as unimplemented
6231 (until they get put in the gdbarch vector).
6232
6233 2003-04-23 David Carlton <carlton@bactrian.org>
6234
6235 * cp-support.c (cp_find_first_component): Accept 'operator' in
6236 more locations.
6237
6238 2003-04-23 Andrew Cagney <cagney@redhat.com>
6239
6240 * infcall.c (call_function_by_hand): Eliminate redundant
6241 indentation. Move "saved_async" and "old_cleanups" to where they
6242 are needed.
6243
6244 2003-04-23 Andrew Cagney <cagney@redhat.com>
6245
6246 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6247 and "buffer". Move the "name" code to where it is needed.
6248
6249 2003-04-23 Andrew Cagney <cagney@redhat.com>
6250
6251 * infcall.c (call_function_by_hand): Move variables "start_sp",
6252 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6253 code to ON_STACK switch branch.
6254
6255 2003-04-23 Andrew Cagney <cagney@redhat.com>
6256
6257 * infcall.c (call_function_by_hand): Make declaration of "i",
6258 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6259 lint.
6260
6261 2003-04-23 Andrew Cagney <cagney@redhat.com>
6262
6263 * infcall.c (call_function_by_hand): Delete variable
6264 "n_method_args". Localize "param_type"'s declaration to the loop
6265 that it is used. Reinstate code assigning to said variable -
6266 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6267 Rationalize code using "param_type".
6268
6269 2003-04-22 Andrew Cagney <cagney@redhat.com>
6270
6271 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6272 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6273 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6274 to DEPRECATED_PUSH_RETURN_ADDRESS.
6275
6276 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6277
6278 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6279 on the DWARF2 register number prior to fetching a register.
6280
6281 2003-04-22 J. Brobecker <brobecker@gnat.com>
6282
6283 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6284 Update all the tests using SOFT_FLOAT considering the fact that
6285 this macro was always set to 0.
6286 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6287 considering the fact that this macro was always set to 0.
6288 * hppa-tdep.h (hppa_store_return_value): Likewise.
6289 (hppa_extract_return_value): Likewise.
6290
6291 2003-04-22 J. Brobecker <brobecker@gnat.com>
6292
6293 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6294 the hppa-pro target only.
6295
6296 2003-04-21 J. Brobecker <brobecker@gnat.com>
6297
6298 Ongoing multi-arch conversion effort for HP/UX:
6299 * config/pa/tm-hppa.h: Move all macro that are no longer
6300 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6301 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6302
6303 2003-04-21 J. Brobecker <brobecker@gnat.com>
6304
6305 * config/pa/tm-hppa.h: Obsolete a section that was only used
6306 for hppa-pro.
6307
6308 2003-04-21 J. Brobecker <brobecker@gnat.com>
6309
6310 Ongoing multi-arch conversion for HP/UX.
6311 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6312 if already defined (allows hppa64 to stay non-multiarched for now).
6313 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6314
6315 2003-04-21 Andrew Cagney <cagney@redhat.com>
6316
6317 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6318
6319 2003-04-21 Andrew Cagney <cagney@redhat.com>
6320
6321 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6322 "i386_num_mmx_regs".
6323
6324 2003-04-21 Andrew Cagney <cagney@redhat.com>
6325
6326 * infcall.c: New file.
6327 * infcall.h: New file.
6328 * valarith.c: Include "infcall.h".
6329 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6330 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6331 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6332 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6333 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6334 (SFILES): Add "infcall.c"
6335 (COMMON_OBS): Add "infcall.o".
6336 (infcall.o): Specify dependencies.
6337 * value.h (call_function_by_hand): Delete declaration.
6338 * inferior.h (run_stack_dummy): Delete declaration.
6339 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6340 (run_stack_dummy): Move to "infcall.c", merged into
6341 call_function_by_hand.
6342 * valops.c (call_function_by_hand): Moved to "infcall.c".
6343 (find_function_addr, value_arg_coerce): Ditto.
6344 (unwindonsignal_p, coerce_float_to_double): Ditto.
6345 (_initialize_valops): Move "set/show coerce-float-to-double", and
6346 "set/show unwindonsignal" commands to "infcall.c".
6347 * v850-tdep.c, target.h: Update comments.
6348 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6349 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6350 (sh64_init_extra_frame_info): Update comments.
6351 * mn10300-tdep.c: Update comments.
6352 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6353 * config/sparc/tm-sparc.h: Update comments.
6354 * breakpoint.h: Update comments.
6355 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6356 * arm-tdep.c: Update comment.
6357
6358 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6359
6360 * i386-tdep.c (i386_num_register_names): New variable.
6361 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6362 (MM0_REGNUM): Remove redundant parentheses in define.
6363 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6364 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6365 i386_mxcsr_regnum_p): Remove redundant parentheses.
6366 (i386_register_name): Use i386_num_register_names.
6367
6368 * i386-tdep.c (i386_extract_return_value,
6369 i386_store_return_value): Correct check for availability of
6370 floating-point registers.
6371
6372 * i386-tdep.c (i386_frame_num_args): Remove function.
6373 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6374
6375 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6376 mmx_regnum_to_fp_regnum. Adjust all callers.
6377
6378 * i386-tdep.c (i386_get_longjmp_target): Use
6379 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6380 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6381 extract_address.
6382
6383 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6384
6385 * core-regset.c: Update comments to reflect reality. Re-order
6386 includes.
6387 (fetch_core_registers): Use switch instead of if. Remove
6388 redundant prototype.
6389
6390 2003-04-18 Jim Blandy <jimb@redhat.com>
6391
6392 * s390-tdep.c (s390_frame_align): New function.
6393 (s390_gdbarch_init): Register it with the gdbarch object.
6394
6395 2003-04-17 Richard Henderson <rth@redhat.com>
6396
6397 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6398
6399 2003-04-17 Michael Snyder <msnyder@redhat.com>
6400 Karen Bennet <bennet@redhat.com>
6401
6402 Committed by Elena Zannoni <ezannoni@redhat.com>
6403 * gdb_gcore.sh: New script to create a core dump of a process.
6404
6405 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6406
6407 * values.c (value_being_returned): Don't fetch the return
6408 value if the return type is void.
6409
6410 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6411
6412 * thread-db.c: Reindented.
6413
6414 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6415
6416 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6417 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6418 as types.
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6445
6446 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6447 the size of ``long double'' to 16, instead of 8.
6448
6449 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6450
6451 * i386-linux-nat.c: Add some whitespace to make things more
6452 readable.
6453 (fetch_register, store_register, fetch_inferior_registers,
6454 store_inferior_registers): Get rid of assignment in if-statement.
6455 (store_register): Fix typo in error message.
6456
6457 2003-04-16 Andrew Cagney <cagney@redhat.com>
6458
6459 * utils.c (xmmalloc): Always allocate something, matches
6460 libiberty/xmalloc's semantics.
6461 (xmrealloc, xmcalloc): Ditto.
6462
6463 2003-04-16 Andrew Cagney <cagney@redhat.com>
6464
6465 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6466 update comments.
6467 (get_frame_type): Initialize unwind and type when needed.
6468 (get_frame_id, frame_register_unwind): Ditto.
6469
6470 2003-04-16 Andrew Cagney <cagney@redhat.com>
6471
6472 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6473 obsolete.
6474 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6475 * sparcl-stub.c: Obsolete file.
6476 * config/sparc/tm-sparclet.h: Obsolete file.
6477 * sparclet-stub.c: Obsolete file.
6478 * sparclet-rom.c: Obsolete file.
6479 * sparcl-tdep.c: Obsolete file.
6480 * config/sparc/tm-sparclite.h: Obsolete file.
6481 * config/sparc/sparclite.mt: Obsolete file.
6482 * config/sparc/sparclet.mt: Obsolete file.
6483 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6484 sparc86x-*-* obsolete.
6485
6486 2003-04-15 David Carlton <carlton@math.stanford.edu>
6487
6488 * Makefile.in (SFILES): Add cp-namespace.c.
6489 (COMMON_OBS): Add cp-namespace.o.
6490 (block.o): Depend on gdb_obstack_h and cp_support_h.
6491 (buildsym.o): Depend on cp_support_h.
6492 (cp-namespace.o): New.
6493 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6494 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6495 (dwarf2read.o): Depend on cp_support_h.
6496 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6497 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6498 processing_current_namespace.
6499 (read_namespace): Update processing_current_namespace; check for
6500 anonymous namespaces.
6501 (dwarf2_name): New function.
6502 (dwarf2_extension): Ditto.
6503 * cp-support.h: Update copyright, contributors.
6504 Add inclusion guards.
6505 Add opaque declaration for structs obstack, block, symbol.
6506 (struct using_direct): New struct.
6507 Add declarations for cp_find_first_component,
6508 cp_entire_prefix_len, processing_has_namespace_info,
6509 processing_current_namespace, cp_is_anonymous,
6510 cp_add_using_directive, cp_initialize_namespace,
6511 cp_finalize_namespace, cp_set_block_scope,
6512 cp_scan_for_anonymous_namespaces.
6513 * cp-namespace.c: New file.
6514 * cp-support.c: Update copyright.
6515 Include ctype.h, gdb_assert.h, gdbcmd.h.
6516 New variable maint_cplus_cmd_list.
6517 (cp_find_first_component): New function.
6518 (cp_entire_prefix_len, maint_cplus_command)
6519 (first_component_command, _initialize_cp_support): Ditto.
6520 * buildsym.c: Include cp-support.h.
6521 New variable using_list.
6522 (add_symbol_to_list): Check for anonymous namespaces.
6523 (finish_block): Set block's scope.
6524 (start_symtab): Initialize C++ namespace support.
6525 (end_symtab): Finalize C++ namespace support.
6526 * block.h: Add opaque declarations for structs
6527 block_namespace_info, using_direct, and obstack.
6528 Add declarations for block_set_scope and block_set_using.
6529 (struct block): Add 'language_specific' member.
6530 (BLOCK_NAMESPACE): New macro.
6531 * block.c: Include gdb_obstack.h and cp-support.h.
6532 (struct block_namespace_info): New struct.
6533 (block_set_scope): New function.
6534 (block_set_using, block_initialize_namespace): Ditto.
6535
6536 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6537
6538 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6539 (locate_base): Return early if there aren't any link map offsets.
6540 (svr4_solib_create_inferior_hook): Warn if shared library support
6541 is unavailable.
6542
6543 2003-04-14 David Carlton <carlton@math.stanford.edu>
6544
6545 * symtab.c (symbol_set_names): Add prefix when storing Java names
6546 in hash table. Fix for PR java/1039.
6547
6548 2003-04-14 David Carlton <carlton@math.stanford.edu>
6549
6550 * symtab.c (symbol_set_names): Rename 'name' arg to
6551 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6552 * symtab.h: Change 'name' argument in declaration of
6553 symbol_set_names to 'linkage_name'.
6554 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6555
6556 2003-04-14 Andrew Cagney <cagney@redhat.com>
6557
6558 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6559 return the fully sign-extended register value.
6560 (get_frame_pointer): Ditto.
6561 (mips_pop_frame): Initialize "proc_desc" after checking for a
6562 dummy frame.
6563
6564 2003-04-14 Andrew Cagney <cagney@redhat.com>
6565
6566 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6567 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6568 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6569 (mips_push_register): Delete function.
6570 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6571 PUSH_FP_REGNUM.
6572
6573 2003-04-14 Jim Blandy <jimb@redhat.com>
6574
6575 * symmisc.c: #include "gdb_regex.h".
6576 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6577 functions.
6578 * maint.c (maintenance_list_command): New function.
6579 (_initialize_maint_cmds): Register the above as commands.
6580 * symtab.h (maintenance_list_symtabs,
6581 maintenance_list_psymtabs): New declarations.
6582 * cli/cli-cmds.c (maintenancelistlist): New variable.
6583 (init_cmd_lists): Initialize it.
6584 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6585 * gdbcmd.h (maintenancelistlist): New declaration.
6586 * Makefile.in (symmisc.o): Update dependencies.
6587
6588 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6589
6590 * s390-nat.c: Include asm/types.h for addr_t.
6591
6592 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6593
6594 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6595 actually incoming type.
6596
6597 2003-04-13 Andrew Cagney <cagney@redhat.com>
6598
6599 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6600 get_next_frame and get_frame_saved_regs.
6601
6602 2003-04-13 Andrew Cagney <cagney@redhat.com>
6603
6604 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6605 of gdbarch_num_regs.
6606
6607 2003-04-13 Andrew Cagney <cagney@redhat.com>
6608
6609 * frame.h: Mention what replaced what in "struct frame_info".
6610 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6611 deprecated_update_frame_base_hack and
6612 deprecated_update_frame_pc_hack.
6613 * hppa-tdep.c: Ditto.
6614
6615 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6616
6617 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6618 to read_reg and update its comment. Remove regnum member.
6619 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6620 Don't call read_reg when setting in_reg. Call read_reg to get
6621 the frame base if it's in a register. Return the register number
6622 on the stack instead of in the context. Remove extra arguments
6623 to read_reg.
6624 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6625 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6626 the register number on the expression stack.
6627 (needs_frame_read_reg): Remove extra arguments.
6628
6629 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6630
6631 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6632 made non-static.
6633 (execute_stack_op): All callers updated.
6634 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6635 * dwarf2loc.c (find_location_expression): New function.
6636 (dwarf_expr_frame_base): Call it.
6637 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6638 (dwarf2_tracepoint_var_ref): New function, broken out from
6639 locexpr_tracepoint_var_ref.
6640 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6641 Make static.
6642 (loclist_read_variable, loclist_read_needs_frame): New functions.
6643 (loclist_describe_location, loclist_tracepoint_var_ref): New
6644 functions.
6645 (dwarf2_loclist_funcs): New struct location_funcs.
6646 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6647 (struct dwarf2_locexpr_baton): Add comments.
6648 (dwarf2_loclist_funcs): New extern.
6649 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6650 base_address and base_known.
6651 (dwarf_loc_buffer): New variable.
6652 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6653 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6654 (dwarf2_has_info): Initialize dwarf_loc_offset.
6655 (dwarf2_build_psymtabs): Read in .debug_loc.
6656 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6657 DWARF_LOC_SIZE.
6658 (psymtab_to_symtab_1): Likewise. Move base address calculation
6659 here, from...
6660 (dwarf2_get_pc_bounds): ... here. Use the base address from
6661 cu_header.
6662 (dwarf2_symbol_mark_computed): Handle location lists.
6663
6664 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6665
6666 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6667 if the linkage name demangled successfully.
6668
6669 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6670
6671 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6672 disassmbly_flavour): Removed.
6673
6674 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6675
6676 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6677
6678 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6679
6680 2003-04-12 Andrew Cagney <cagney@redhat.com>
6681
6682 * frame.h (struct frame_info): Move definition from here ...
6683 * frame.c (struct frame_info): ... to here.
6684
6685 2003-04-12 Andrew Cagney <cagney@redhat.com>
6686
6687 * gdbthread.h (save_infrun_state): Delete parameter
6688 "prev_func_start".
6689 (struct thread_info): Delete field "prev_func_start".
6690 (load_infrun_state): Ditto.
6691 * thread.c (load_infrun_state, save_infrun_state): Update.
6692 * infrun.c (prev_func_start): Delete variable.
6693 (context_switch, init_wait_for_inferior): Update.
6694 (stop_stepping, keep_going): Update.
6695
6696 2003-04-12 Andrew Cagney <cagney@redhat.com>
6697
6698 * gdbarch.sh: Add missing opaque declarations.
6699 * gdbarch.h: Regnerate.
6700 * symtab.h: Add missing opaque declarations.
6701 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6702 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6703 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6704 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6705 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6706 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6707 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6708 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6709 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6710 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6711 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6712 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6713 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6714
6715 2003-04-11 Andrew Cagney <cagney@redhat.com>
6716
6717 * frame.c (get_frame_id): Return this frame's "id".
6718 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6719 function start.
6720 (legacy_saved_regs_this_id): Replace function body with
6721 internal-error.
6722 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6723 FRAME_OBSTACK_ZALLOC.
6724 (create_new_frame): Mark the frame ID as valid.
6725
6726 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6727
6728 * Makefile.in (libbfd_h): Added missing setting.
6729 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6730 according to the selected ABI.
6731
6732 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6733
6734 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6735
6736 2003-04-11 Andrew Cagney <cagney@redhat.com>
6737
6738 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6739 SAVED_PC_AFTER_CALL.
6740 * gdbarch.h, gdbarch.c: Regenerate.
6741 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6742 * x86-64-tdep.c (x86_64_init_abi): Update.
6743 * vax-tdep.c (vax_gdbarch_init): Update.
6744 * v850-tdep.c (v850_gdbarch_init): Update.
6745 * sparc-tdep.c (sparc_gdbarch_init): Update.
6746 * sh-tdep.c (sh_gdbarch_init): Update.
6747 * s390-tdep.c (s390_gdbarch_init): Update.
6748 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6749 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6750 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6751 * mips-tdep.c (mips_gdbarch_init): Update.
6752 * mcore-tdep.c (mcore_gdbarch_init): Update.
6753 * m68k-tdep.c (m68k_gdbarch_init): Update.
6754 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6755 * ia64-tdep.c (ia64_gdbarch_init): Update.
6756 (ia64_saved_pc_after_call): Update declaration.
6757 * i386ly-tdep.c (i386lynx_init_abi): Update.
6758 * i386-tdep.c (i386_gdbarch_init): Update.
6759 * hppa-tdep.c (hppa_gdbarch_init): Update.
6760 * h8300-tdep.c (h8300_gdbarch_init): Update.
6761 * frv-tdep.c (frv_gdbarch_init): Update.
6762 * cris-tdep.c (cris_gdbarch_init): Update.
6763 * avr-tdep.c (avr_gdbarch_init): Update.
6764 * arm-tdep.c (arm_gdbarch_init): Update.
6765 * alpha-tdep.c (alpha_gdbarch_init): Update.
6766 * ns32knbsd-nat.c (frame_num_args): Update.
6767 * ns32k-tdep.c (umax_frame_num_args): Update.
6768 * mips-tdep.c (mips_init_frame_pc_first): Update.
6769 * infrun.c (step_over_function): Update.
6770 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6771 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6772 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6773 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6774 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6775 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6776 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6777 * arch-utils.c (init_frame_pc_default): Update.
6778 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6779 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6780 declaration.
6781
6782 2003-04-11 Andrew Cagney <cagney@redhat.com>
6783
6784 * i387-tdep.c: Update copyright.
6785 (i387_to_double): Delete function.
6786 (double_to_i387): Delete function.
6787
6788 2003-04-10 Andrew Cagney <cagney@redhat.com>
6789
6790 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6791 frame's function's address. Simplify.
6792 (d10v_frame_unwind_cache): Check that the frame's function is
6793 non-zero.
6794
6795 2003-04-10 Jim Blandy <jimb@redhat.com>
6796
6797 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6798 call to set_gdbarch_deprecated_push_arguments.
6799
6800 2003-04-10 Andrew Cagney <cagney@redhat.com>
6801
6802 * frame.c (fprint_frame_id): New function.
6803 (fprint_frame_type, fprint_frame): New function.
6804 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6805 (create_sentinel_frame, get_frame_id): Ditto.
6806 (frame_id_p, frame_id_eq): Ditto.
6807 (frame_id_inner, create_new_frame): Ditto.
6808 (legacy_get_prev_frame, get_prev_frame): Ditto.
6809 (deprecated_update_frame_pc_hack): Ditto.
6810 (frame_register_unwind): Ditto.
6811 (deprecated_update_frame_base_hack): Ditto.
6812
6813 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6814
6815 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6816 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6817 frame_chain function.
6818 * Makefile.in: Add dependencies due to above change.
6819
6820 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6821
6822 * blockframe.c (legacy_frame_chain_valid): Move call to
6823 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6824 inside_entry_file.
6825
6826 2003-04-09 Andrew Cagney <cagney@redhat.com>
6827
6828 * frame.h (struct frame_id): Replace "pc" and "base" with
6829 "stack_addr" and "code_addr". Update comments.
6830 (frame_id_build): Update parameter names and comment.
6831 (struct frame_info): Replace "id_p" and "id" with "this_id".
6832 * dummy-frame.c (dummy_frame_this_id): Update.
6833 * breakpoint.c (print_one_breakpoint): Update.
6834 * frame.c (get_frame_id): Update.
6835 (get_frame_base, frame_id_build): Update.
6836 (create_sentinel_frame, legacy_get_prev_frame): Update.
6837 (deprecated_update_frame_base_hack): Update.
6838 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6839 (frame_id_inner): Ditto.
6840
6841 2003-04-09 Andrew Cagney <cagney@redhat.com>
6842
6843 * defs.h (gdb_print_host_address): Make "addr" parameter a
6844 pointer constant.
6845 * utils.c (gdb_print_host_address): Update.
6846
6847 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6848
6849 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6850 register number for R0 is 0.
6851
6852 2003-04-09 J. Brobecker <brobecker@gnat.com>
6853
6854 * frame.h (struct gdbarch): Add opaque structure definition
6855 to avoid a compilation warning on LynxOS 4.0.
6856
6857 2003-04-09 Andrew Cagney <cagney@redhat.com>
6858
6859 * frame.h (struct frame_info): Delete field "pc". Replace
6860 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6861 structure.
6862 * frame.c (frame_pc_unwind): Update.
6863 (create_sentinel_frame): Do not set "pc".
6864 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6865 (get_frame_pc): Call frame_pc_unwind.
6866 (deprecated_update_frame_pc_hack): Update.
6867 (create_new_frame): Use "pc" not "->pc".
6868
6869 2003-04-09 Andrew Cagney <cagney@redhat.com>
6870
6871 * frame.c (get_frame_id): Eliminate code updating "frame".
6872 (legacy_get_prev_frame): Ditto.
6873 (get_frame_base): Return id.base directly.
6874 (deprecated_update_frame_base_hack): Update "id.base".
6875 * frame.h (struct frame_info): Delete field "frame".
6876
6877 2003-04-09 Andrew Cagney <cagney@redhat.com>
6878
6879 * NEWS: Mention that the "Sequent family" is obsolete.
6880 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6881 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6882 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6883 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6884 * config/i386/tm-ptx4.h: Obsolete file.
6885 * config/i386/tm-ptx.h: Obsolete file.
6886 * symm-tdep.c: Obsolete file.
6887 * config/i386/symmetry.mt: Obsolete file.
6888 * config/i386/tm-symmetry.h: Obsolete file.
6889 * symm-nat.c: Obsolete file.
6890 * config/i386/nm-symmetry.h: Obsolete file.
6891 * config/i386/xm-symmetry.h: Obsolete file.
6892 * config/i386/symmetry.mh: Obsolete file.
6893 * config/i386/nm-ptx4.h: Obsolete file.
6894 * config/i386/ptx4.mh: Obsolete file.
6895 * config/i386/ptx.mt: Obsolete file.
6896 * config/i386/ptx.mh: Obsolete file.
6897 * config/i386/xm-ptx4.h: Obsolete file.
6898 * config/i386/xm-ptx.h: Obsolete file.
6899
6900 2003-04-09 Andrew Cagney <cagney@redhat.com>
6901
6902 Obsolete mips*-*-mach3*.
6903 * NEWS: Mention that mips*-*-mach3* is obsolete.
6904 * m3-nat.c: Obsolete file.
6905 * config/nm-m3.h: Obsolete file.
6906 * config/mips/tm-mipsm3.h: Obsolete file.
6907 * config/mips/mipsm3.mt: Obsolete file.
6908 * config/mips/mipsm3.mh: Obsolete file.
6909 * config/mips/xm-mipsm3.h: Obsolete file.
6910 * mipsm3-nat.c: Obsolete file.
6911 * configure.host: Obsolete mips-dec-mach3*.
6912 * configure.tgt: Obsolete mips*-*-mach3*.
6913
6914 2003-04-09 Andrew Cagney <cagney@redhat.com>
6915
6916 * doublest.h: Update copyright.
6917 (deprecated_store_floating, deprecated_extract_floating): Rename
6918 store_floating and extract_floating. Update comments.
6919 * doublest.c: Update copyright.
6920 (extract_floating_by_length): Replace extract_floating.
6921 (store_floating_by_length): Replace store_floating.
6922 (deprecated_extract_floating): New function.
6923 (deprecated_store_floating): New function.
6924 (extract_typed_floating): Call extract_floating_by_length.
6925 (store_typed_floating): Call store_floating_by_length.
6926 * x86-64-tdep.c (x86_64_store_return_value): Update.
6927 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6928 (sh64_extract_return_value): Update.
6929 (sh_sh4_register_convert_to_virtual): Update.
6930 (sh_sh64_register_convert_to_virtual): Update.
6931 (sh_sh4_register_convert_to_raw): Update.
6932 (sh_sh64_register_convert_to_raw): Update.
6933 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6934 (rs6000_register_convert_to_raw): Update.
6935 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6936 (ia64_register_convert_to_raw): Update.
6937 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6938 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6939 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6940 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6941 (alpha_register_convert_to_raw): Update.
6942
6943 2003-04-08 Andrew Cagney <cagney@redhat.com>
6944
6945 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6946 * gdbarch.h, gdbarch.c: Re-generate.
6947 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6948 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6949 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6950 conditionally, use frame_pc_unwind as an alternative. Add
6951 comments.
6952 * arch-utils.c (init_frame_pc_default): Only call
6953 SAVED_PC_AFTER_CALL when available.
6954
6955 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6956
6957 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6958 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6959 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6960 (start_remote): Ditto.
6961 (handle_inferior_event): Ditto.
6962 (save_inferior_status): Ditto.
6963 (restore_inferior_status): Ditto.
6964 * infcmd.c (attach_command): Ditto.
6965 * fork-child.c (startup_inferior): Ditto.
6966 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6967 * alpha-tdep.c (heuristic_proc_start): Ditto.
6968 * mips-tdep.c (heuristic_proc_start): Ditto.
6969 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6970 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6971 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6972 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6973 * remote-vx.c (vx_create_inferior): Ditto.
6974
6975 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6976
6977 * infrun.c (stop_soon_quietly): Make it an enum, to better
6978 override the default behavior of handle_inferior_event.
6979 (clear_proceed_status): Update uses of stop_soon_quietly to
6980 reflect that it is now an enum.
6981 (start_remote): Ditto.
6982 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6983 is set to handle the new GNU/Linux kernel behavior for
6984 attach/sigstop. Update uses of stop_soon_quietly.
6985 * inferior.h (enum stop_kind): New enum.
6986 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6987 Reset normal handle_inferior_event behavior, afterwards.
6988 * fork-child.c (startup_inferior): Update.
6989 * alpha-tdep.c (heuristic_proc_start): Update.
6990 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6991 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6992 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6993 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6994 * remote-vx.c (vx_create_inferior): Update.
6995 * mips-tdep.c (heuristic_proc_start): Update.
6996
6997 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6998
6999 * disasm.c (dump_insns): Move variables inside loop, or they will
7000 be freed more than once, causing wild memory corruptions.
7001 (gdb_disassembly): Look for the substring "-thread",
7002 instead of "-threads" in the target name, to make sure to find
7003 the 'multi-thread' target. Also, make sure we do the right thing
7004 with the "core" target.
7005
7006 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7007
7008 * mips-tdep.c (mips_print_fp_register): New function, created from
7009 do_fp_register_row(). Registers are now (also) printed as hex.
7010 Only one register is printed per row.
7011 (mips_print_register, do_fp_register_row): Print floating point
7012 registers with mips_print_fp_register().
7013
7014 2003-04-06 Andrew Cagney <cagney@redhat.com>
7015
7016 * valprint.h (inspect_it): Add extern declaration.
7017 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7018 (selectors_info, classes_info): Ditto.
7019 (find_objc_msgcall): Fix indentation.
7020 (objc_printstr): Delete extern declarations.
7021
7022 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7023
7024 2003-04-06 Andrew Cagney <cagney@redhat.com>
7025
7026 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7027 Update comment.
7028 * frame.c (legacy_saved_regs_this_id): Update.
7029 (legacy_get_prev_frame): Update.
7030 * xstormy16-tdep.c: Update comment.
7031 * sparc-tdep.c (sparc_frame_chain): Update comment.
7032 * blockframe.c (legacy_frame_chain_valid): Update.
7033
7034 2003-04-06 Andrew Cagney <cagney@redhat.com>
7035
7036 * valprint.c (val_print_type_code_int): Delete #ifdef
7037 PRINT_TYPELESS_INTEGER code.
7038
7039 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7040 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7041 multi-arch definition.
7042 * gdbarch.h: Re-generate.
7043
7044 2003-04-05 Andrew Cagney <cagney@redhat.com>
7045
7046 Eliminate FRAME_FIND_SAVED_REGS.
7047 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7048 Change FSR parameter to a pointer.
7049 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7050 Assume FSR parameter is a pointer.
7051 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7052 Make fsr a pointer.
7053 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7054 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7055 saved_regs a pointer.
7056 (hppa_frame_saved_pc): Ditto.
7057 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7058 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7059 pointer.
7060 (restore_pc_queue): Make fsr a pointer.
7061 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7062 (hppa_frame_chain): Make saved_regs a pointer, call
7063 hppa_frame_init_saved_regs.
7064 * sparc-tdep.c: Include "gdb_assert.h".
7065 (sparc_frame_find_saved_regs): Replace internal_error with
7066 gdb_assert.
7067 * remote-vxsparc.c (vx_read_register): Delete reference to
7068 FRAME_FIND_SAVED_REGS.
7069 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7070 * gdbarch.h: Regenerate.
7071 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7072 (deprecated_get_frame_saved_regs): Delete declaration.
7073 (struct frame_saved_regs): Delete definition.
7074 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7075 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7076 (hppa_frame_find_saved_regs): Delete declaration.
7077 (FRAME_FIND_SAVED_REGS): Delete macro.
7078 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7079 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7080 FRAME_FIND_SAVED_REGS in comment.
7081
7082 2003-04-05 Andrew Cagney <cagney@redhat.com>
7083
7084 * frame.c (frame_func_unwind, get_frame_func): New functions.
7085 * frame.h (get_frame_func, frame_func_unwind): Declare.
7086 (struct frame_info): Add field "prev_func" for caching the
7087 previous frame's function address.
7088 * arm-tdep.c (arm_frameless_function_invocation): Combine
7089 get_pc_function_start and get_frame_pc into get_frame_func.
7090 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7091 (sh64_nofp_frame_init_saved_regs): Ditto.
7092 * s390-tdep.c (s390_function_start): Ditto.
7093 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7094 (rs6000_frameless_function_invocation): Ditto.
7095 (rs6000_frame_saved_pc): Ditto.
7096 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7097 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7098 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7099 (i386_frame_init_saved_regs): Ditto.
7100 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7101 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7102 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7103 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7104 * blockframe.c (frameless_look_for_prologue): Ditto.
7105
7106 2003-04-05 Andrew Cagney <cagney@redhat.com>
7107
7108 * frame.c (legacy_get_prev_frame): Link prev to next at the
7109 function start. Update comments.
7110
7111 2003-04-05 Andrew Cagney <cagney@redhat.com>
7112
7113 * frame.c (get_frame_id): Update comment.
7114 (legacy_get_prev_frame): Update comment.
7115 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7116 * gdbarch.h: Regenerate.
7117 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7118 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7119
7120 2003-04-05 Andrew Cagney <cagney@redhat.com>
7121
7122 * stack.c (print_frame_info): Use get_frame_pc.
7123
7124 2003-04-04 Andrew Cagney <cagney@redhat.com>
7125
7126 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7127 the frame's type from the unwinder.
7128 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7129 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7130 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7131 (get_frame_base_address): Use get_frame_type.
7132 (get_frame_locals_address, get_frame_args_address): Ditto.
7133 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7134 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7135 (struct frame_info): Add comment explaining why the frame contains
7136 a "type" field.
7137 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7138 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7139 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7140 NORMAL_FRAME.
7141 * frame-unwind.h: Include "frame.h".
7142 (struct frame_unwind): Add "type" field.
7143 * Makefile.in (frame_unwind_h): Add $(frame_h).
7144
7145 2003-04-04 Andrew Cagney <cagney@redhat.com>
7146
7147 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7148 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7149 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7150 get_frame_base.
7151 (d10v_unwind_dummy_id): Use frame_id_build.
7152 * frame.c (find_frame_sal): Use get_frame_pc.
7153 (create_new_frame): Use deprecated_update_frame_pc_hack and
7154 deprecated_update_frame_base_hack.
7155 (create_sentinel_frame): Add comment about ->pc going away.
7156 (get_prev_frame): Add comment about ->pc going away.
7157 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7158 frame_id_build, deprecated_update_frame_pc_hack and
7159 deprecated_update_frame_base_hack.
7160 (select_frame): Use get_frame_pc.
7161 (legacy_saved_regs_this_id): Use frame_id_build.
7162
7163 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7164
7165 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7166 signed integer case.
7167 (classify_argument): Handle enumerations and references.
7168
7169 2003-04-04 Andrew Cagney <cagney@redhat.com>
7170
7171 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7172 ID to NULL.
7173
7174 2003-04-01 Adam Fedor <fedor@gnu.org>
7175
7176 * gdb/objc-lang.c (selectors_info): Replace calls to
7177 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7178 SYMBOL_NATURAL_NAME.
7179 (classes_info, find_methods): Likewise.
7180
7181 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7182
7183 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7184 ``mach'' to the value determined by bfd_default_set_arch_mach().
7185
7186 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7187
7188 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7189 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7190 (mi-cmd-file.o): Update dependencies.
7191
7192 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7193
7194 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7195 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7196
7197 2003-04-01 Adam Fedor <fedor@gnu.org>
7198
7199 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7200 * language.h (struct language_defn): Add la_demangle.
7201 (language_demangle): Declare.
7202 * language.c (language_demangle): New function.
7203 (unk_lang_demangle): Likewise.
7204 (unknown_language_defn, auto_language_defn, local_language_defn):
7205 Add ukn_lang_demangle.
7206 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7207 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7208 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7209 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7210 * jv-lang.c (java_demangle): New function
7211 (java_language_defn): Use it for la_demangle element.
7212 * objc-lang.c (objc_demangle): Add options argument
7213 (objc_language_defn): Use objc_demangle for la_demangle element.
7214 * maint.c (maintenance_demangle): Replace switch with
7215 call to language_demangle.
7216 * utils.c (fprintf_symbol_filtered): Likewise.
7217
7218 2003-04-01 Andrew Cagney <cagney@redhat.com>
7219
7220 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7221 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7222 PRINT_TYPELESS_INTEGER.
7223 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7224 PUSH_RETURN_ADDRESS.
7225
7226 2003-04-01 Andrew Cagney <cagney@redhat.com>
7227
7228 * Makefile.in (d10v-tdep.o): Update dependencies.
7229 * d10v-tdep.c: Include "frame-base.h".
7230 (d10v_frame_unwind): Make constant.
7231 (d10v_frame_base_address): New function.
7232 (d10v_frame_base): New variable.
7233 (d10v_gdbarch_init): Set frame_base default.
7234 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7235 comment for base.
7236 (d10v_frame_unwind_cache): Set and use "prev_sp".
7237 (d10v_frame_this_id): Use the previous frame's inner most stack
7238 address and this frame's func address for the frame ID. Use
7239 frame_id_build. Don't analyze beyond the current instruction.
7240
7241 2003-04-01 Andrew Cagney <cagney@redhat.com>
7242
7243 * frame.h (get_frame_locals_address, get_frame_args_address):
7244 Refer to the base address, instead of the address of the first
7245 local or parameter.
7246
7247 2003-04-01 Andrew Cagney <cagney@redhat.com>
7248
7249 Add frame debug info addresses:
7250 * frame-base.c: New file.
7251 * frame-base.h: New file.
7252 * frame.h (struct frame_base): Add opaque declaration.
7253 (get_frame_base): Update comment.
7254 (get_frame_base_address): Declare.
7255 (get_frame_locals_address): Declare.
7256 (get_frame_args_address): Declare.
7257 (struct frame_info): Add "base" and "base_cache". Update
7258 comments on the unwinder.
7259 * frame.c: Include "frame-base.h".
7260 (get_frame_locals_address): New function.
7261 (get_frame_base_address): New function.
7262 (get_frame_args_address): New function.
7263 * findvar.c (read_var_value): Use get_frame_locals_address and
7264 get_frame_args_address.
7265 * stack.c (frame_info): Use get_frame_locals_address and
7266 get_frame_args_address.
7267 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7268 moved to "frame-base.c".
7269 * printcmd.c (print_frame_nameless_args): Ditto.
7270 * symtab.h (address_class): Update comments.
7271 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7272 get_frame_base_address.
7273 * dwarf2expr.c (execute_stack_op): Ditto.
7274 * Makefile.in (frame_base_h): Define.
7275 (frame.o): Update dependencies.
7276 (frame-base.o): Add dependencies.
7277 (SFILES): Add frame-base.c.
7278 (COMMON_OBS): Add frame-base.o.
7279
7280 2003-04-01 Andrew Cagney <cagney@redhat.com>
7281
7282 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7283 CALL_DUMMY_LENGTH): Ditto.
7284 * gdbarch.c: Re-generate.
7285 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7286 (CALL_DUMMY_LENGTH): Delete macro.
7287 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7288 * arm-tdep.c (arm_gdbarch_init): Ditto.
7289 * avr-tdep.c (avr_gdbarch_init): Ditto.
7290 * cris-tdep.c (cris_gdbarch_init): Ditto.
7291 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7292 * frv-tdep.c (frv_gdbarch_init): Ditto.
7293 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7294 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7295 * i386-tdep.c (i386_gdbarch_init): Ditto.
7296 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7298 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7299 * mips-tdep.c (mips_gdbarch_init): Ditto.
7300 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7301 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7302 * s390-tdep.c (s390_gdbarch_init): Ditto.
7303 * sh-tdep.c (sh_gdbarch_init): Ditto.
7304 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7305 * v850-tdep.c (v850_gdbarch_init): Ditto.
7306 * vax-tdep.c (vax_gdbarch_init): Ditto.
7307 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7308
7309 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7310
7311 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7312
7313 2003-04-01 Andrew Cagney <cagney@redhat.com>
7314
7315 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7316 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7317 * gdbarch.h, gdbarch.c: Re-generate.
7318 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7319 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7320 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7321 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7322 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7323 * infcmd.c (run_stack_dummy): Simplify assuming
7324 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7325 * infrun.c (handle_inferior_event): Ditto.
7326 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7327 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7328 * arm-tdep.c (arm_gdbarch_init): Ditto.
7329 * avr-tdep.c (avr_gdbarch_init): Ditto.
7330 * cris-tdep.c (cris_gdbarch_init): Ditto.
7331 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7332 * frv-tdep.c (frv_gdbarch_init): Ditto.
7333 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7334 * i386-tdep.c (i386_gdbarch_init): Ditto.
7335 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7337 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7338 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7339 * mips-tdep.c (mips_gdbarch_init): Ditto.
7340 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7341 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7342 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7343 * s390-tdep.c (s390_gdbarch_init): Ditto.
7344 * sh-tdep.c (sh_gdbarch_init): Ditto.
7345 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7346 * v850-tdep.c (v850_gdbarch_init): Ditto.
7347 * vax-tdep.c (vax_gdbarch_init): Ditto.
7348 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7349
7350 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7351
7352 * symfile.c (symfile_relocate_debug_section): Update call to
7353 bfd_simple_get_relocated_section_contents.
7354
7355 2003-03-31 Andrew Cagney <cagney@redhat.com>
7356
7357 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7358 * gdbarch.h, gdbarch.c: Regenerate.
7359 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7360 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7361 available.
7362 * frame.h (generic_fix_call_dummy): Delete declaration.
7363 * dummy-frame.h: Update comment.
7364 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7365 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7366 fix_call_dummy.
7367 * sh-tdep.c (sh_gdbarch_init): Ditto.
7368 * s390-tdep.c (s390_gdbarch_init): Ditto.
7369 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7370 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7372 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7373 * i386-tdep.c (i386_gdbarch_init): Ditto.
7374 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7375 * frv-tdep.c (frv_gdbarch_init): Ditto.
7376 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7377 * cris-tdep.c (cris_gdbarch_init): Ditto.
7378 * avr-tdep.c (avr_gdbarch_init): Ditto.
7379 * arm-tdep.c (arm_gdbarch_init): Ditto.
7380
7381 2003-03-31 J. Brobecker <brobecker@gnat.com>
7382
7383 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7384 (INIT_FRAME_AP): Likewise.
7385 (EXTRA_FRAME_INFO): Likewise.
7386
7387 2003-03-31 Andrew Cagney <cagney@redhat.com>
7388
7389 * gdbarch.sh: Include "symfile.h".
7390 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7391 * gdbarch.h, gdbarch.c: Re-generate.
7392 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7393 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7394 call_dummy_address, the default is at entry_point_address.
7395 * v850-tdep.c (v850_gdbarch_init): Ditto.
7396 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7397 * sh-tdep.c (sh_gdbarch_init): Ditto.
7398 * s390-tdep.c (s390_gdbarch_init): Ditto.
7399 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7400 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7401 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7402 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7403 * i386-tdep.c (i386_gdbarch_init): Ditto.
7404 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7405 * frv-tdep.c (frv_gdbarch_init): Ditto.
7406 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7407 * cris-tdep.c (cris_gdbarch_init): Ditto.
7408 * arm-tdep.c (arm_gdbarch_init): Ditto.
7409
7410 2003-03-31 Andrew Cagney <cagney@redhat.com>
7411
7412 * gdbarch.sh (CALL_DUMMY_P): Delete.
7413 * gdbarch.h, gdbarch.c: Re-generate.
7414 * inferior.h (CALL_DUMMY_P): Delete macro.
7415 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7416 * vax-tdep.c (vax_gdbarch_init): Update.
7417 * v850-tdep.c (v850_gdbarch_init): Update.
7418 * sparc-tdep.c (sparc_gdbarch_init): Update.
7419 * sh-tdep.c (sh_gdbarch_init): Update.
7420 * s390-tdep.c (s390_gdbarch_init): Update.
7421 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7422 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7423 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7424 * mips-tdep.c (mips_gdbarch_init): Update.
7425 * mcore-tdep.c (mcore_gdbarch_init): Update.
7426 * m68k-tdep.c (m68k_gdbarch_init): Update.
7427 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7428 * ia64-tdep.c (ia64_gdbarch_init): Update.
7429 * i386-tdep.c (i386_gdbarch_init): Update.
7430 * h8300-tdep.c (h8300_gdbarch_init): Update.
7431 * frv-tdep.c (frv_gdbarch_init): Update.
7432 * d10v-tdep.c (d10v_gdbarch_init): Update.
7433 * cris-tdep.c (cris_gdbarch_init): Update.
7434 * breakpoint.c (deprecated_frame_in_dummy): Update.
7435 * avr-tdep.c (avr_gdbarch_init): Update.
7436 * alpha-tdep.c (alpha_gdbarch_init): Update.
7437 * arm-tdep.c (arm_gdbarch_init): Update.
7438 * dummy-frame.c (dummy_frame_this_id): Update comments.
7439 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7440 * frame.c (legacy_get_prev_frame): Ditto.
7441 * valops.c (call_function_by_hand): Delete function.
7442 (hand_function_call): Rename to call_function_by_hand
7443
7444 2003-03-30 Andrew Cagney <cagney@redhat.com>
7445
7446 2002-11-10 Klee Dienes <kdienes@apple.com>
7447 * value.h (struct value): Update comment.
7448
7449 2003-03-30 Andrew Cagney <cagney@redhat.com>
7450
7451 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7452 D10V_FP_REGNUM.
7453 (d10v_gdbarch_init): Do not set fp_regnum.
7454
7455 * frame.c (get_frame_base): Force ID initialization.
7456 (get_prev_frame): Move computation of the frame ID from here ...
7457 (get_frame_id): ... to here.
7458 (legacy_get_prev_frame): Mark the frame ID as valid.
7459 * frame.h (struct frame_info): Add field "id_p".
7460
7461 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7462
7463 * i386-tdep.c (i386_store_struct_return): Removed.
7464 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7465
7466 2003-03-30 Andrew Cagney <cagney@redhat.com>
7467
7468 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7469 * gdbarch.h, gdbarch.c: Regenerate.
7470 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7471 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7472 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7473 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7474 * i386-tdep.c (i386_gdbarch_init): Ditto.
7475 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7476 * cris-tdep.c (cris_gdbarch_init): Ditto.
7477 * vax-tdep.c (vax_gdbarch_init): Ditto.
7478 * s390-tdep.c (s390_gdbarch_init): Ditto.
7479 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7480 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7481 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7482 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7483 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7484 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7485 * sparc-tdep.c (sparc_gdbarch_init): Update.
7486 * sh-tdep.c (sh_gdbarch_init): Update.
7487 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7488 * mips-tdep.c (mips_gdbarch_init): Update.
7489 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7490 * ia64-tdep.c (ia64_gdbarch_init): Update.
7491 * frv-tdep.c (frv_gdbarch_init): Update.
7492 * avr-tdep.c (avr_gdbarch_init): Update.
7493 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7494 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7495 instead of when push_dummy_call is not available.
7496
7497 2003-03-30 Andrew Cagney <cagney@redhat.com>
7498
7499 * infttrace.c: Include "gdbthread.h".
7500 (parent_attach_all): Fix function signature.
7501 (call_ptrace): Update call.
7502 * Makefile.in (infttrace.o): Update dependencies.
7503
7504 2003-03-30 Andrew Cagney <cagney@redhat.com>
7505
7506 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7507 PUSH_RETURN_ADDRESS.
7508 * gdbarch.h, gdbarch.c: Regenerate.
7509 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7510 * x86-64-tdep.c (x86_64_init_abi): Update.
7511 * v850-tdep.c (v850_gdbarch_init): Update.
7512 * sparc-tdep.c (sparc_gdbarch_init): Update.
7513 * sh-tdep.c (sh_gdbarch_init): Update.
7514 * s390-tdep.c (s390_gdbarch_init): Update.
7515 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7516 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7517 * mips-tdep.c (mips_gdbarch_init): Update.
7518 * mcore-tdep.c (mcore_gdbarch_init): Update.
7519 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7520 * ia64-tdep.c (ia64_gdbarch_init): Update.
7521 * i386-tdep.c (i386_gdbarch_init): Update.
7522 * h8300-tdep.c (h8300_gdbarch_init): Update.
7523 * frv-tdep.c (frv_gdbarch_init): Update.
7524 * cris-tdep.c (cris_gdbarch_init): Update.
7525 * avr-tdep.c (avr_gdbarch_init): Update.
7526 * arm-tdep.c (arm_gdbarch_init): Update.
7527 * valops.c (hand_function_call): Update.
7528
7529 2003-03-29 Andrew Cagney <cagney@redhat.com>
7530
7531 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7532 sizeof_call_dummy_words.
7533 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7534 define.
7535 * gdbarch.h: Regenerate.
7536
7537 2003-03-29 Andrew Cagney <cagney@redhat.com>
7538
7539 * infttrace.h: New file.
7540 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7541 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7542 (hpread_read_doc_function_type): Detect an initialized type1.
7543 (hpread_quick_traverse): Initialize mod_name_string.
7544 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7545 (som_solib_get_solib_by_pc): Declare.
7546 (so_lib_thread_start_addr): Declare.
7547 (no_shared_libraries): Declare.
7548 * somread.c (init_import_symbols): Make static. Add forward
7549 declaration.
7550 * config/pa/nm-hppah.h: Include "infttrace.h" for
7551 parent_attach_all.
7552 (hppa_insert_hw_watchpoint): Declare.
7553 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7554 * hppah-nat.c: Include "gdb_string.h".
7555 (parent_attach_all): Delete extern declaration, moved to
7556 "infttrace.h".
7557 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7558 int.
7559 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7560 * Makefile.in (infttrace_h): Define.
7561 (hpread.o): Update dependencies.
7562 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7563 * hppa-hpux-tdep.c: Include "gdb_string.h".
7564 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7565 * infrun.c (handle_inferior_event): Always initialize
7566 stepped_after_stopped_by_watchpoint. Add default and remove
7567 fallthrough in switch statement.
7568 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7569 parameter to int.
7570 (hppa_remove_hw_watchpoint): Ditto.
7571
7572 2003-03-29 Andrew Cagney <cagney@redhat.com>
7573
7574 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7575 offset.
7576
7577 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7578
7579 * arm-tdep.c (arm_push_arguments): Delete.
7580 (struct stack_item): New type.
7581 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7582 (arm_store_struct_return): Delte.
7583 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7584 arm_push_arguments or arm_store_struct_return.
7585
7586 2003-03-28 Andrew Cagney <cagney@redhat.com>
7587
7588 * Makefile.in (d10v-tdep.o): Update dependencies.
7589 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7590 * d10v-tdep.c: Include "remote.h".
7591 (target_resume_hook): Delete extern declaration.
7592 (target_wait_loop_hook): Ditto.
7593 (tdisassemble_command): Eliminate assignment in "if" conditional.
7594 (d10v_ts2_register_sim_regno): Eliminate call to
7595 legacy_register_sim_regno.
7596 (d10v_ts3_register_sim_regno): Ditto.
7597
7598 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7599
7600 * thread.c: Reindented.
7601 * lin-lwp.c: Ditto.
7602 * linux-proc.c: Ditto.
7603
7604 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7605
7606 * MAINTAINERS (write after approval): Add myself.
7607
7608 2003-03-27 Theodore A. Roth <troth@openavr.org>
7609
7610 * objc-exp.y: Add missing semi-colons.
7611
7612 2003-03-27 Andrew Cagney <cagney@redhat.com>
7613
7614 * regcache.c (write_sp): Delete function and references.
7615 * inferior.h (write_sp): Delete declaration.
7616 * valops.c (hand_function_call): Replace write_sp with
7617 TARGET_WRITE_SP.
7618 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7619 (sparc_pop_frame): Ditto.
7620
7621 2003-03-27 Andrew Cagney <cagney@redhat.com>
7622
7623 * NEWS: Mention removal of support for hppa*-*-bsd* and
7624 hppa*-*-osf* natives, and hppa*-*-pro* target.
7625 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7626 * config/pa/xm-pa.h: Obsolete file.
7627 * config/pa/xm-hppab.h: Obsolete file.
7628 * config/pa/nm-hppab.h: Obsolete file.
7629 * config/pa/tm-hppab.h: Obsolete file.
7630 * config/pa/tm-hppao.h: Obsolete file.
7631 * config/pa/nm-hppao.h: Obsolete file.
7632 * config/pa/tm-pro.h: Obsolete file.
7633 * config/pa/hppaosf.mt: Obsolete file.
7634 * config/pa/hppaosf.mh: Obsolete file.
7635 * config/pa/hppapro.mt: Obsolete file.
7636 * config/pa/hppabsd.mt: Obsolete file.
7637 * config/pa/hppabsd.mh: Obsolete file.
7638 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7639 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7640 hppa*-*-osf*.
7641
7642 2003-03-27 Andrew Cagney <cagney@redhat.com>
7643
7644 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7645 push_arguments. Don't set push_return_address or write_sp.
7646 (d10v_push_dummy_call): Replace d10v_push_arguments.
7647 (d10v_push_return_address, d10v_write_sp): Delete function,
7648 handled by push_dummy_call.
7649
7650 2003-03-26 Andrew Cagney <cagney@redhat.com>
7651
7652 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7653 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7654 regcache and dummy_addr parameters.
7655 * gdbarch.h, gdbarch.c: Re-generate.
7656 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7657 available; assume it will handle stack alignment and return
7658 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7659 legacy_push_arguments.
7660 (legacy_push_arguments): Rename default_push_arguments.
7661 * value.h (legacy_push_arguments): Rename default_push_arguments.
7662 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7663 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7664 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7665 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7666 * config/i386/tm-symmetry.h: Update.
7667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7668 * x86-64-tdep.c (x86_64_init_abi): Update.
7669 * v850-tdep.c (v850_gdbarch_init): Update.
7670 * sparc-tdep.c (sparc_gdbarch_init): Update.
7671 * sh-tdep.c (sh_gdbarch_init): Update.
7672 * s390-tdep.c (s390_gdbarch_init): Update.
7673 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7674 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7675 * mips-tdep.c (mips_gdbarch_init): Update.
7676 * mcore-tdep.c (mcore_gdbarch_init): Update.
7677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7678 * ia64-tdep.c (ia64_gdbarch_init): Update.
7679 * i386-tdep.c (i386_gdbarch_init): Update.
7680 * hppa-tdep.c (hppa_gdbarch_init): Update.
7681 * h8300-tdep.c (h8300_gdbarch_init): Update.
7682 * frv-tdep.c (frv_gdbarch_init): Update.
7683 * d10v-tdep.c (d10v_gdbarch_init): Update.
7684 * cris-tdep.c (cris_gdbarch_init): Update.
7685 * avr-tdep.c (avr_gdbarch_init): Update.
7686 * arm-tdep.c (arm_gdbarch_init): Update.
7687 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7688 * alpha-tdep.c (alpha_gdbarch_init): Update.
7689
7690 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7691
7692 * signals/signals.c (do_target_signal_to_host): Correct realtime
7693 signal range test.
7694
7695 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7696
7697 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7698 (struct sal_chain, map_catch_names): Remove.
7699 (catch_exception_command_1): Don't call
7700 handle_gnu_4_16_catch_command.
7701
7702 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7703
7704 From Mark Dettinger <dettinge@de.ibm.com>:
7705 * dwarf2cfi.c (read_2u): Increment pointer by two.
7706
7707 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7708
7709 * signals/signals.c: Fix typos in last change.
7710
7711 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7712
7713 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7714 not already defined. Use __SIGRTMIN if available.
7715 (target_signal_from_host): Remove SIGRTMIN block.
7716 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7717 the signal is within the realtime range.
7718
7719 2003-03-25 Adam Fedor <fedor@gnu.org>
7720
7721 * Makefile.in (infrun.o): Add $(language_h)
7722 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7723 for language specific trampolines.
7724 * language.h (struct language_defn): Add skip_trampoline.
7725 (skip_language_trampoline): Declare.
7726 * language.c (unk_lang_trampoline, skip_language_trampoline):
7727 New functions.
7728 (unknown_language_defn, auto_language_defn, local_language_defn):
7729 Add ukn_lang_trampoline.
7730 * ada-lang.c (ada_language_defn): Add NULL for language
7731 specific skip_trampoline.
7732 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7733 scm-lang.c: Likewise.
7734 * objc-lang.c (objc_skip_trampoline): New function.
7735 (objc_language_defn): Add objc_skip_trampoline.
7736
7737 2003-03-25 Andrew Cagney <cagney@redhat.com>
7738
7739 * frame.c (get_prev_frame): Delay validating a frame's ID -
7740 non-NULL, didn't go backwards - until an attempt to unwind it to
7741 the previous frame.
7742
7743 2003-03-25 Andrew Cagney <cagney@redhat.com>
7744
7745 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7746 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7747 * gdbarch.h, gdbarch.c: Re-generate.
7748 * config/sparc/tm-sparc.h
7749 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7750 * sparc-tdep.c (sparc_gdbarch_init): Set
7751 deprecated_extra_stack_alignment_needed.
7752 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7753 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7754 extra_stack_alignment_needed.
7755 * v850-tdep.c (v850_gdbarch_init): Ditto.
7756 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7757 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7758 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7759 * cris-tdep.c (cris_gdbarch_init): Ditto.
7760 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7761 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7762
7763 2003-03-25 Andrew Cagney <cagney@redhat.com>
7764
7765 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7766 STORE_STRUCT_RETURN.
7767 * gdbarch.h, gdbarch.c: Regenerate.
7768 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7769 (d10v_push_arguments): Set the struct return register.
7770 (d10v_gdbarch_init): Update.
7771 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7772 * x86-64-tdep.c (x86_64_init_abi): Update.
7773 * vax-tdep.c (vax_gdbarch_init): Update.
7774 * v850-tdep.c (v850_gdbarch_init): Update.
7775 * sparc-tdep.c (sparc_gdbarch_init): Update.
7776 * sh-tdep.c (sh_gdbarch_init): Update.
7777 * s390-tdep.c (s390_gdbarch_init): Update.
7778 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7779 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7780 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7781 * mips-tdep.c (mips_gdbarch_init): Update.
7782 * mcore-tdep.c (mcore_gdbarch_init): Update.
7783 * m68k-tdep.c (m68k_gdbarch_init): Update.
7784 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7785 * ia64-tdep.c (ia64_gdbarch_init): Update.
7786 * i386-tdep.c (i386_gdbarch_init): Update.
7787 * hppa-tdep.c (hppa_gdbarch_init): Update.
7788 * h8300-tdep.c (h8300_gdbarch_init): Update.
7789 * frv-tdep.c (frv_gdbarch_init): Update.
7790 * cris-tdep.c (cris_gdbarch_init): Update.
7791 * avr-tdep.c (avr_gdbarch_init): Update.
7792 * arm-tdep.c (arm_gdbarch_init): Update.
7793 * alpha-tdep.c (alpha_gdbarch_init): Update.
7794
7795 2003-03-25 Andrew Cagney <cagney@redhat.com>
7796
7797 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7798 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7799 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7800 * gdbarch.h, gdbarch.c: Regenerate.
7801 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7802 call_dummy_stack_adjust_p.
7803 * vax-tdep.c (vax_gdbarch_init): Ditto.
7804 * v850-tdep.c (v850_gdbarch_init): Ditto.
7805 * sh-tdep.c (sh_gdbarch_init): Ditto.
7806 * s390-tdep.c (s390_gdbarch_init): Ditto.
7807 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7808 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7809 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7810 * mips-tdep.c (mips_gdbarch_init): Ditto.
7811 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7812 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7813 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7814 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7815 * i386-tdep.c (i386_gdbarch_init): Ditto.
7816 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7817 * frv-tdep.c (frv_gdbarch_init): Ditto.
7818 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7819 * cris-tdep.c (cris_gdbarch_init): Ditto.
7820 * avr-tdep.c (avr_gdbarch_init): Ditto.
7821 * arm-tdep.c (arm_gdbarch_init): Ditto.
7822 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7823 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7824 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7825 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7826 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7827 call_dummy_stack_adjust_p.
7828 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7829 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7830 * sparc-tdep.c (sparc32_push_arguments): Update.
7831 * valops.c (hand_function_call): Update.
7832
7833 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7834
7835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7836 set_gdbarch_char_signed.
7837
7838 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7839
7840 PR cli/548
7841 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7842
7843 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7844
7845 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7846 (_initialize_arm_tdep): Don't set tm_print_insn.
7847
7848 2003-03-24 Adam Fedor <fedor@gnu.org>
7849
7850 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7851 * objc-lang.h: Add multiple inclusion protection.
7852 (start_msglist, add_msglist, end_msglist): Additional declarations.
7853
7854 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7855
7856 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7857 value was renamed to ARM_FLOAT_SOFT_FPA.
7858
7859 2003-03-23 Andrew Cagney <cagney@redhat.com>
7860
7861 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7862 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7863 * gdbarch.h, gdbarch.c: Regenerate.
7864 * valops.c (hand_function_call): Update.
7865 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7866 * frame.c (legacy_saved_regs_this_id): Update.
7867 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7868 * dummy-frame.h: Update.
7869 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7870 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7871 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7872 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7873 * config/m68k/tm-sun3.h: Update.
7874 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7875 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7876 * x86-64-tdep.c (x86_64_init_abi): Update.
7877 * vax-tdep.c (vax_gdbarch_init): Update.
7878 * v850-tdep.c (v850_gdbarch_init): Update.
7879 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7880 * sh-tdep.c (sh_gdbarch_init): Update.
7881 * s390-tdep.c (s390_gdbarch_init): Update.
7882 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7883 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7884 (frame_get_saved_regs): Update.
7885 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7886 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7887 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7888 * mips-tdep.c (mips_gdbarch_init): Update.
7889 * mcore-tdep.c (mcore_gdbarch_init): Update.
7890 * m68k-tdep.c (m68k_gdbarch_init): Update.
7891 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7892 * ia64-tdep.c (ia64_gdbarch_init): Update.
7893 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7894 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7895 (i386_interix_back_one_frame): Update.
7896 * hppa-tdep.c (hppa_gdbarch_init): Update.
7897 (hppa_init_extra_frame_info): Update.
7898 * h8300-tdep.c (h8300_gdbarch_init): Update.
7899 * frv-tdep.c (frv_gdbarch_init): Update.
7900 * cris-tdep.c (cris_gdbarch_init): Update.
7901 * avr-tdep.c (avr_gdbarch_init): Update.
7902 * arm-tdep.c (arm_gdbarch_init): Update.
7903 * alpha-tdep.c (alpha_gdbarch_init): Update.
7904
7905 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7906
7907 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7908 (arm_get_fp_model): Declare.
7909 * arm-tdep.c (fp_model_strings): New string array.
7910 (arm_fp_model, current_fp_model): New variables.
7911 (arm_get_fp_model): New function.
7912 (arm_set_fp): New function.
7913 (set_fp_model_sfunc): New function.
7914 (show_fp_model): New function.
7915 (_initialize_arm_tdep): Add new command to set/show the FPU.
7916 (arm_extract_return_value): Use arm_get_fp_model.
7917 (arm_store_return_value): Likewise.
7918 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7919 to initialize the floating-point data types.
7920 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7921 model is FPA.
7922
7923 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7924
7925 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7926 the current setting of each value.
7927 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7928 new_set and new_show. Use add_setshow_cmd_full and
7929 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7930 commands and add new version as subcommands of "set/show arm".
7931
7932 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7933
7934 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7935 (set_arm_command, show_arm_command): New functions.
7936 (_initialize_arm_tdep): Add them.
7937 (num_disassembly_options): Renamed from num_flavor_options.
7938 (valid_disassembly_styles): Renamed from valid_flavors.
7939 (disassembly_style): Renamed from disassembly_flavor.
7940 (set_disassembly_style_sfunc): Renamed from
7941 set_disassembly_flavor_sfunc.
7942 (set_disassembly_style): Renamed from set_disassembly_flavor.
7943 (arm_othernames): Updated.
7944 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7945 command. Add "set/show arm disassembly" commands. Deprecate
7946 "othernames" command.
7947
7948 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7949
7950 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7951 (arm-tdep.o): Depend on elf_arm_h.
7952
7953 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7954
7955 * Makefile.in (coff_internal_h): Define.
7956 (arm-tdep.o): Update dependencies.
7957
7958 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7959
7960 * arm-tdep.c (prologue_cache): Delete.
7961 (check_prologue_cache, save_prologue_cache): Delete.
7962 (arm_scan_prologue): Don't check or update the prologue_cache.
7963 (arm_gdb_arch_init): Don't initialize it.
7964 (_initialize_arm_tdep): Likewise.
7965
7966 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7967
7968 * MAINTAINERS (tui): Maintainer of tui code.
7969
7970 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7971
7972 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7973 (i386-cygwin-tdep.o): Add dependencies.
7974 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7975 * i386-cygwin-tdep.c: New file.
7976 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7977 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7978
7979 2003-03-20 Andrew Cagney <cagney@redhat.com>
7980
7981 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7982 (handle_inferior_event): Remove code calling
7983 DYNAMIC_TRAMPOLINE_NEXTPC.
7984
7985 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7986 already has a full path.
7987
7988 * main.c (gdb_main): Return 1.
7989 (captured_main): Call error to report an invalid interpreter.
7990
7991 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7992 * alpha-osf1-tdep.c: Include "gdb_string.h".
7993
7994 2003-03-19 J. Brobecker <brobecker@gnat.com>
7995
7996 Continuing work to convert the hppa targets to multiarch partial.
7997
7998 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7999 method, now that hppa_push_dummy_frame has a conformant prototype.
8000 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8001 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8002 for the switch to multiarch partial.
8003
8004 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8005
8006 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8007 when iss is issNull.
8008
8009 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8010
8011 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8012 NUM_REGS bounds check.
8013
8014 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8015
8016 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8017 * mips-tdep.c (gdb_assert.h): Include.
8018 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8019 (mips_register_name): Handle integer registers explicitly. Add
8020 bounds checking.
8021 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8022 (mips_lsi33k_reg_names): Don't list integer registers; they're
8023 handled by mips_register_name() now.
8024 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8025 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8026 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8027 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8028 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8029
8030 2003-03-18 Andrew Cagney <cagney@redhat.com>
8031
8032 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8033 a void pointer.
8034 * gdbtypes.h (print_scalar_formatted): Update declaration.
8035 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8036
8037 2003-03-18 J. Brobecker <brobecker@gnat.com>
8038
8039 * infrun.c (observer.h): Add #include.
8040 (normal_stop): Add call to observer_notify_normal_stop.
8041 * Makefile.in (infrun.o): Add dependency on observer.h.
8042
8043 2003-03-18 J. Brobecker <brobecker@gnat.com>
8044
8045 Continuing work to convert the hppa targets to multiarch partial.
8046 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8047 parameter. Reformat comment.
8048 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8049 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8050 to match new profile.
8051
8052 2003-03-18 J. Brobecker <brobecker@gnat.com>
8053
8054 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8055 appear to be working in any case.
8056
8057 2003-03-18 J. Brobecker <brobecker@gnat.com>
8058
8059 * observer.c (observer_test_first_observer): New static variable.
8060 (observer_test_second_observer): Likewise.
8061 (observer_test_third_observer): Likewise.
8062 (observer_test_first_notification_function): New static function.
8063 (observer_test_second_notification_function): Likewise.
8064 (observer_test_third_notification_function): Likewise.
8065
8066 2003-03-17 J. Brobecker <brobecker@gnat.com>
8067
8068 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8069 * somsolib.c (gdb_assert.h): Likewise.
8070 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8071 (somsolib.o): Likewise.
8072
8073 2003-03-17 Andrew Cagney <cagney@redhat.com>
8074
8075 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8076 BFD. Simplify setting of di.endian.
8077
8078 2003-03-17 Andrew Cagney <cagney@redhat.com>
8079
8080 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8081 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8082
8083 From Elena Zannoni <ezannoni@redhat.com>
8084 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8085 vector and floating-point parameters.
8086 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8087 convention.
8088 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8089
8090 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8091
8092 * MAINTAINERS: Remove my name from several maintainership roles.
8093
8094 2003-03-17 Andrew Cagney <cagney@redhat.com>
8095
8096 Fix frame off-by-one bug.
8097 * frame-unwind.h (frame_this_id_ftype): Replace
8098 frame_unwind_id_ftype.
8099 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8100 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8101 with "prev_register".
8102 * frame-unwind.c (frame_unwind_find_by_pc): Return
8103 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8104 comment.
8105 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8106 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8107 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8108 (dummy_frame_unwind): Update.
8109 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8110 sentinel_frame_register_unwind.
8111 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8112 (sentinel_frame_unwinder): Update.
8113 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8114 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8115 * frame.c (create_sentinel_frame): Update. Initialize
8116 "prologue_cache" instead of "unwind_cache".
8117 (frame_register_unwind): Call this frame's prev_register with the
8118 next frame and this frame's prologue cache.
8119 (get_prev_frame): Simplify. Always call prev frame's this_id with
8120 this frame and prev frame's prologue cache. Document that this
8121 call is shifted one to the left when compared to the
8122 frame_register_unwind call.
8123 (legacy_saved_regs_prev_register): Replace
8124 frame_saved_regs_register_unwind.
8125 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8126 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8127 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8128 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8129 (d10v_frame_unwind): Update.
8130 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8131 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8132 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8133 "saved_regs" with "this_saved_regs".
8134
8135 2003-03-16 Andrew Cagney <cagney@redhat.com>
8136
8137 * frame.c (frame_pop): Don't call target_store_registers. Fix
8138 problem reported by Mark Kettenis.
8139
8140 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8141
8142 * i386-tdep.c (i386_register_type): Renamed from
8143 i386_register_virtual_type. Adjust function signature.
8144 (i386_gdbarch_init): Set register_type instead of
8145 deprecated_max_register_raw_size,
8146 deprecated_max_register_virtual_size and register_virtual_type.
8147
8148 2003-03-14 Andrew Cagney <cagney@redhat.com>
8149
8150 * frame.c (get_prev_frame): When a legacy frame, always call
8151 legacy_get_prev_frame. Simplify unwind code using assumption that
8152 the unwinder is new.
8153 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8154 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8155 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8156
8157 2003-03-14 Andrew Cagney <cagney@redhat.com>
8158
8159 * frame.c (get_saved_register): Delete function.
8160 * frame.h (get_saved_register): Delete declaration.
8161 * xstormy16-tdep.c: Update comment.
8162 * regcache.h: Update comments.
8163 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8164 get_saved_register and extract_address, use
8165 frame_read_unsigned_register.
8166 (sparc_frame_saved_pc): Ditto.
8167 (sparc_get_saved_register): Instead of get_saved_register, use
8168 frame_register.
8169 (sparc_pop_frame): Ditto.
8170 * findvar.c: Update comments.
8171 (value_of_register): Call frame_register instead of
8172 get_saved_register.
8173 (value_from_register): Ditto.
8174 * config/sparc/tm-sparc.h: Update comment.
8175 * breakpoint.c: Update comment.
8176
8177 2003-03-14 Andrew Cagney <cagney@redhat.com>
8178
8179 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8180 GET_SAVED_REGISTER.
8181 * gdbarch.h, gdbarch.c: Re-generate.
8182 * frame.h: Update comments.
8183 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8184 * x86-64-tdep.c (x86_64_init_abi): Update.
8185 * sparc-tdep.c (sparc_gdbarch_init): Update.
8186 * sh-tdep.c (sh_gdbarch_init): Update.
8187 * mips-tdep.c (mips_gdbarch_init): Update.
8188 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8189 * cris-tdep.c (cris_gdbarch_init): Update.
8190 * ia64-tdep.c (ia64_gdbarch_init): Update.
8191 * frame.c (frame_register): Update.
8192 (get_saved_register): Update.
8193 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8194
8195 2003-03-13 Andrew Cagney <cagney@redhat.com>
8196
8197 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8198 * gdbarch.h, gdbarch.c: Regenerate.
8199 * valops.c (hand_function_call): Update comment.
8200 * stack.c (return_command): Update comment.
8201 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8202 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8203 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8204 * x86-64-tdep.c (x86_64_init_abi): Update.
8205 * vax-tdep.c (vax_gdbarch_init): Update.
8206 * v850-tdep.c (v850_gdbarch_init): Update.
8207 * sparc-tdep.c (sparc_gdbarch_init): Update.
8208 * sh-tdep.c (sh_gdbarch_init): Update.
8209 * s390-tdep.c (s390_gdbarch_init): Update.
8210 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8211 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8212 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8213 * mips-tdep.c (mips_gdbarch_init): Update.
8214 * mcore-tdep.c (mcore_gdbarch_init): Update.
8215 * m68k-tdep.c (m68k_gdbarch_init): Update.
8216 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8217 * ia64-tdep.c (ia64_gdbarch_init): Update.
8218 * i386-tdep.c (i386_gdbarch_init): Update.
8219 * hppa-tdep.c (hppa_gdbarch_init): Update.
8220 * h8300-tdep.c (h8300_gdbarch_init): Update.
8221 * frv-tdep.c (frv_gdbarch_init): Update.
8222 * cris-tdep.c (cris_gdbarch_init): Update.
8223 * avr-tdep.c (avr_gdbarch_init): Update.
8224 * arm-tdep.c (arm_gdbarch_init): Update.
8225 * alpha-tdep.c (alpha_gdbarch_init): Update.
8226
8227 2003-03-13 Andrew Cagney <cagney@redhat.com>
8228
8229 * frame.c (legacy_frame_p): New function.
8230 (get_prev_frame): Use legacy_frame_p.
8231 * frame.h (legacy_frame_p): Declare.
8232
8233 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8234
8235 * MAINTAINERS (write after approval): Alphabetically
8236 listing corrected.
8237
8238 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8239
8240 * MAINTAINERS (write after approval): Add myself.
8241
8242 2003-03-12 Andrew Cagney <cagney@redhat.com>
8243
8244 * frame.c (get_prev_frame): Rename the frame parameter to
8245 "this_frame".
8246 (get_next_frame, legacy_get_prev_frame): Ditto.
8247
8248 2003-03-12 Andrew Cagney <cagney@redhat.com>
8249
8250 * frame.c (get_current_frame): Check target_has_registers before
8251 checking target_has_stack.
8252 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8253 instead of deprecated_selected_frame.
8254 * findvar.c (value_of_register): Pass "frame", not
8255 deprecated_selected_frame, to value_of_builtin_reg.
8256
8257 2003-03-12 Andrew Cagney <cagney@redhat.com>
8258
8259 * regcache.c (regcache_cooked_write_signed): New function.
8260 (regcache_cooked_write_unsigned): New function.
8261 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8262 (regcache_cooked_read_signed): Fix regnum in range assertion.
8263 * regcache.h (regcache_cooked_write_signed): Declare.
8264 (regcache_cooked_write_unsigned): Declare.
8265
8266 2003-03-12 Andrew Cagney <cagney@redhat.com>
8267
8268 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8269 * gdbarch.h, gdbarch.c: Re-generate.
8270 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8271 * x86-64-tdep.h: Update.
8272 * x86-64-tdep.c (x86_64_init_abi): Update.
8273 * v850-tdep.c (v850_gdbarch_init): Update.
8274 * sparc-tdep.c (sparc_gdbarch_init): Update.
8275 * sh-tdep.c (sh_gdbarch_init): Update.
8276 * s390-tdep.c (s390_gdbarch_init): Update.
8277 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8278 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8279 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8280 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8281 * mips-tdep.c (mips_gdbarch_init): Update.
8282 * mcore-tdep.c (mcore_gdbarch_init): Update.
8283 * m68k-tdep.c (m68k_gdbarch_init): Update.
8284 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8285 * ia64-tdep.c (ia64_gdbarch_init): Update.
8286 * i386-tdep.c (i386_gdbarch_init): Update.
8287 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8288 * hppa-tdep.c (hppa_gdbarch_init): Update.
8289 * h8300-tdep.c (h8300_gdbarch_init): Update.
8290 * frv-tdep.c (frv_gdbarch_init): Update.
8291 * cris-tdep.c (cris_gdbarch_init): Update.
8292 * avr-tdep.c (avr_gdbarch_init): Update.
8293 * arm-tdep.c (arm_gdbarch_init): Update.
8294 * alpha-tdep.c (alpha_gdbarch_init): Update.
8295 * sh-tdep.c (sh_init_extra_frame_info): Update.
8296 (sh64_init_extra_frame_info): Update.
8297 * ns32knbsd-nat.c (frame_num_args): Update.
8298 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8299 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8300 (xstormy16_frame_chain_valid): Update.
8301 * vax-tdep.c (vax_saved_pc_after_call): Update.
8302 * v850-tdep.c (v850_frame_chain): Update.
8303 (v850_pop_frame): Update.
8304 (v850_init_extra_frame_info): Update.
8305 * sparc-tdep.c (setup_arbitrary_frame): Update.
8306 * ns32k-tdep.c (umax_frame_num_args): Update.
8307 * s390-tdep.c (s390_pop_frame_regular): Update.
8308 * mn10300-tdep.c (mn10300_frame_chain): Update.
8309 (mn10300_pop_frame_regular): Update.
8310 (mn10300_init_extra_frame_info): Update.
8311 * mips-tdep.c (mips_init_frame_pc_first): Update.
8312 (mips_frame_chain): Update.
8313 (mips_pop_frame): Update.
8314 * mcore-tdep.c (mcore_frame_chain): Update.
8315 (mcore_pop_frame): Update.
8316 (mcore_init_extra_frame_info): Update.
8317 * arch-utils.c (init_frame_pc_default): Update.
8318 * m68k-tdep.c (isi_frame_num_args): Update.
8319 (delta68_frame_num_args): Update.
8320 (news_frame_num_args): Update.
8321 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8322 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8323 (alpha_frame_chain): Update.
8324 (alpha_pop_frame): Update.
8325 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8326 (hppa_init_extra_frame_info): Update.
8327 (hppa_frame_chain): Update.
8328 (hppa_frame_chain_valid): Update.
8329 * cris-tdep.c (cris_init_extra_frame_info): Update.
8330 * avr-tdep.c (avr_init_extra_frame_info): Update.
8331 * arm-tdep.c (arm_frame_chain_valid): Update.
8332 (arm_init_extra_frame_info): Update.
8333 (arm_pop_frame): Update.
8334 * frame.c (frame_pc_unwind): Update.
8335 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8336 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8337 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8338 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8339 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8340 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8341
8342 2003-03-12 Andrew Cagney <cagney@redhat.com>
8343
8344 Eliminate the need for POP_FRAME.
8345 * frame.c (do_frame_unwind_register): New function.
8346 (frame_pop): When no POP_FRAME, pop the frame using register
8347 unwind and a scratch regcache.
8348 (frame_saved_regs_pop): Delete function.
8349 (trad_frame_unwinder): Update.
8350 * d10v-tdep.c (d10v_frame_pop): Delete function.
8351 (d10v_frame_unwind): Update.
8352 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8353 (sentinel_frame_unwinder): Update.
8354 * dummy-frame.c (dummy_frame_pop): Delete function.
8355 (dummy_frame_unwind): Update.
8356 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8357 (struct frame_unwind): Update.
8358
8359 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8360
8361 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8362 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8363 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8364 Do range checks on register number obtained from debugging info.
8365 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8366 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8367 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8368 mapping function.
8369 (do_fp_register_row): Fix typo which caused double type to be
8370 used when attempting to unpack a float.
8371
8372 2003-03-11 J. Brobecker <brobecker@gnat.com>
8373
8374 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8375
8376 2003-03-11 Andrew Cagney <cagney@redhat.com>
8377
8378 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8379 frame. Problem found by Corinna Vinschen.
8380
8381 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8382
8383 * doublest.c (floatformat_from_length): Accept also
8384 the real size of 'long double' type.
8385
8386 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8387
8388 From Klee Dienes <kdienes@apple.com>:
8389 * breakpoint.c (bpstat_copy): Copy the command lines as well
8390 as the old value, to match what is freed in bpstat_clear.
8391
8392 2003-03-10 David Carlton <carlton@math.stanford.edu>
8393
8394 * minsyms.c (add_minsym_to_hash_table): Replace
8395 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8396 (compare_minimal_symbols, compact_minimal_symbols)
8397 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8398 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8399 of DEPRECATED_SYMBOL_MATCHES_NAME.
8400 (lookup_minimal_symbol_solib_trampoline): Ditto.
8401
8402 2003-03-10 Andrew Cagney <cagney@redhat.com>
8403
8404 * regcache.h (regcache_cooked_read_ftype): Define.
8405 (regcache_save, regcache_restore): Add a cooked_read parameter.
8406 * regcache.c (regcache_save, regcache_restore): Update.
8407 (do_cooked_read): New function.
8408 (regcache_cpy): Pass do_cooked_read to regcache_save and
8409 regcache_restore.
8410
8411 2003-03-10 Andrew Cagney <cagney@redhat.com>
8412
8413 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8414 * gdbarch.h, gdbarch.c: Re-generate.
8415 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8416 * x86-64-tdep.h: Update.
8417 * x86-64-tdep.c (x86_64_init_abi): Update.
8418 * v850-tdep.c (v850_gdbarch_init): Update.
8419 * sparc-tdep.c (sparc_gdbarch_init): Update.
8420 * sh-tdep.c (sh_gdbarch_init): Update.
8421 * s390-tdep.c (s390_gdbarch_init): Update.
8422 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8423 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8424 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8425 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8426 * mips-tdep.c (mips_gdbarch_init): Update.
8427 * mcore-tdep.c (mcore_gdbarch_init): Update.
8428 * m68k-tdep.c (m68k_gdbarch_init): Update.
8429 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8430 * ia64-tdep.c (ia64_gdbarch_init): Update.
8431 * i386-tdep.c (i386_gdbarch_init): Update.
8432 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8433 * hppa-tdep.c (hppa_gdbarch_init): Update.
8434 * h8300-tdep.c (h8300_gdbarch_init): Update.
8435 * frv-tdep.c (frv_gdbarch_init): Update.
8436 * cris-tdep.c (cris_gdbarch_init): Update.
8437 * avr-tdep.c (avr_gdbarch_init): Update.
8438 * arm-tdep.c (arm_gdbarch_init): Update.
8439 * alpha-tdep.c (alpha_gdbarch_init): Update.
8440 * sh-tdep.c (sh_init_extra_frame_info): Update.
8441 (sh64_init_extra_frame_info): Update.
8442 * ns32knbsd-nat.c (frame_num_args): Update.
8443 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8444 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8445 (xstormy16_frame_chain_valid): Update.
8446 * vax-tdep.c (vax_saved_pc_after_call): Update.
8447 * v850-tdep.c (v850_frame_chain): Update.
8448 (v850_pop_frame): Update.
8449 (v850_init_extra_frame_info): Update.
8450 * sparc-tdep.c (setup_arbitrary_frame): Update.
8451 * ns32k-tdep.c (umax_frame_num_args): Update.
8452 * s390-tdep.c (s390_pop_frame_regular): Update.
8453 * mn10300-tdep.c (mn10300_frame_chain): Update.
8454 (mn10300_pop_frame_regular): Update.
8455 (mn10300_init_extra_frame_info): Update.
8456 * mips-tdep.c (mips_init_frame_pc_first): Update.
8457 (mips_frame_chain): Update.
8458 (mips_pop_frame): Update.
8459 * mcore-tdep.c (mcore_frame_chain): Update.
8460 (mcore_pop_frame): Update.
8461 (mcore_init_extra_frame_info): Update.
8462 * arch-utils.c (init_frame_pc_default): Update.
8463 * m68k-tdep.c (isi_frame_num_args): Update.
8464 (delta68_frame_num_args): Update.
8465 (news_frame_num_args): Update.
8466 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8467 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8468 (alpha_frame_chain): Update.
8469 (alpha_pop_frame): Update.
8470 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8471 (hppa_init_extra_frame_info): Update.
8472 (hppa_frame_chain): Update.
8473 (hppa_frame_chain_valid): Update.
8474 * cris-tdep.c (cris_init_extra_frame_info): Update.
8475 * avr-tdep.c (avr_init_extra_frame_info): Update.
8476 * arm-tdep.c (arm_frame_chain_valid): Update.
8477 (arm_init_extra_frame_info): Update.
8478 (arm_pop_frame): Update.
8479 * frame.c (frame_pc_unwind): Update.
8480 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8481 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8482 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8483 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8484 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8485 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8486
8487 2003-03-10 Andrew Cagney <cagney@redhat.com>
8488
8489 * gdbarch.sh (gdbarch_unwind_pc): New method.
8490 * gdbarch.h, gdbarch.c: Regenerate.
8491 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8492 but use read_pc and FRAME_SAVED_PC as fall backs.
8493 (frame_saved_regs_pc_unwind): Delete function.
8494 (trad_frame_unwinder): Update.
8495 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8496 (struct frame_unwind): Update.
8497 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8498 (dummy_frame_unwind): Update.
8499 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8500 (sentinel_frame_unwinder): Update.
8501 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8502 (d10v_frame_unwind): Update.
8503 (d10v_unwind_pc): New function.
8504 (d10v_gdbarch_init): Set unwind_pc.
8505
8506 2003-03-10 Andrew Cagney <cagney@redhat.com>
8507
8508 * gdbarch.h: Re-generate.
8509
8510 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8511 PC.
8512 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8513 the PC register.
8514
8515 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8516
8517 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8518
8519 2003-03-08 Andrew Cagney <cagney@redhat.com>
8520
8521 * cli-out.c: Update copyright.
8522 (cli_out_data): Define typedef. Use instead of ui_out_data.
8523
8524 2003-03-08 Andrew Cagney <cagney@redhat.com>
8525
8526 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8527 the result.
8528
8529 2003-03-07 Andrew Cagney <cagney@redhat.com>
8530
8531 * gdbarch.sh: Don't generate two macro definitions when an
8532 undefined macro taking no arguments.
8533 * gdbarch.h: Regenerate.
8534
8535 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8536
8537 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8538 (x86_64_unwind_dummy_id): New functions.
8539 (x86_64_init_abi): Register these two new functions.
8540
8541 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8542
8543 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8544 (x86_64_skip_prologue): Move prologue detection to
8545 separate function.
8546 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8547
8548 2003-03-05 Andrew Cagney <cagney@redhat.com>
8549
8550 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8551 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8552 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8553 to use unwind_dummy_id when a dummy frame.
8554 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8555 predicate.
8556 * gdbarch.h, gdbarch.c: Regneerate.
8557
8558 2003-03-05 Andrew Cagney <cagney@redhat.com>
8559
8560 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8561 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8562 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8563 values.
8564
8565 2003-03-05 Andrew Cagney <cagney@redhat.com>
8566
8567 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8568 (struct d10v_unwind_cache): Delete field "frameless". Replace
8569 "next_addr" with "sp_offset". Add "r11_offset".
8570 (d10v_frame_unwind_cache): Update.
8571 (prologue_find_regs): Update. When "mv r11, sp", save the
8572 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8573 RN was saved in r11_offset.
8574
8575 2003-03-05 Andrew Cagney <cagney@redhat.com>
8576
8577 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8578 cached PC value in the next frame.
8579
8580 2003-03-05 Andrew Cagney <cagney@redhat.com>
8581
8582 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8583 "id_unwind_cache" with "id".
8584 (frame_id_unwind): Delete declaration.
8585 * frame.c (frame_id_unwind): Delete function.
8586 (get_prev_frame): Call the frame id unwind method directly. Store
8587 the returned next frame's ID value in NEXT_FRAME. Note that there
8588 is a problem with the wrong unwind ID being called with the wrong
8589 unwind cache.
8590
8591 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8592
8593 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8594
8595 2003-03-05 James Ingham <jingham@apple.com>
8596 Daniel Jacobowitz <drow@mvista.com>
8597
8598 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8599 (auto_cp_abi): New variable.
8600 (current_cp_abi, num_cp_abis): Make static.
8601 (CP_ABI_MAX): Define.
8602 (cp_abis): Turn into an array.
8603 (value_virtual_fn_field): Fix formatting.
8604 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8605 takes a pointer.
8606 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8607 (list_cp_abis, _initialize_cp_abi): New functions.
8608 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8609 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8610 switch_to_cp_abi. Update prototype for register_cp_abi.
8611 * Makefile.in (cp-abi.o): Update dependencies.
8612 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8613 instead of switch_to_cp_abi.
8614 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8615 register_cp_abi.
8616 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8617 register_cp_abi.
8618 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8619
8620 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8621
8622 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8623 * dwarf2loc.c: Include "regcache.h".
8624 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8625 register_size.
8626 * Makefile.in (dwarf2loc.o): Update dependencies.
8627
8628 2003-03-04 Theodore A. Roth <troth@openavr.org>
8629
8630 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8631 number of io registers reported by remote target is not a multiple of
8632 step.
8633
8634 2003-03-04 David Carlton <carlton@math.stanford.edu>
8635
8636 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8637 (lookup_symbol_aux_psymtabs): Update call to
8638 lookup_partial_symbol.
8639 (lookup_transparent_type, find_main_psymtab)
8640 (make_symbol_overload_list): Ditto.
8641
8642 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8643
8644 * MAINTAINERS (Write after approval): Update my email address.
8645
8646 2003-03-03 Andrew Cagney <cagney@redhat.com>
8647
8648 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8649 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8650 predicate. Replace MAX_REGISTER_RAW_SIZE.
8651 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8652 MAX_REGISTER_VIRTUAL_SIZE.
8653 * regcache.c (legacy_max_register_raw_size): New function.
8654 (legacy_max_register_virtual_size): New function.
8655 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8656 (MAX_REGISTER_RAW_SIZE): Define.
8657 (legacy_max_register_raw_size): Declare.
8658 (legacy_max_register_virtual_size): Declare.
8659 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8660 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8661 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8662 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8663 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8664 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8665 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8666 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8667 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8668 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8669 * vax-tdep.c (vax_gdbarch_init): Update.
8670 * v850-tdep.c (v850_gdbarch_init): Update.
8671 * sparc-tdep.c (sparc_gdbarch_init): Update.
8672 * sh-tdep.c (sh_gdbarch_init): Update.
8673 * s390-tdep.c (s390_gdbarch_init): Update.
8674 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8675 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8676 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8677 * mips-tdep.c (mips_gdbarch_init): Update.
8678 * mcore-tdep.c (mcore_gdbarch_init): Update.
8679 * m68k-tdep.c (m68k_gdbarch_init): Update.
8680 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8681 * ia64-tdep.c (ia64_gdbarch_init): Update.
8682 * i386-tdep.c (i386_gdbarch_init): Update.
8683 * hppa-tdep.c (hppa_gdbarch_init): Update.
8684 * h8300-tdep.c (h8300_gdbarch_init): Update.
8685 * frv-tdep.c (frv_gdbarch_init): Update.
8686 * cris-tdep.c (cris_gdbarch_init): Update.
8687 * avr-tdep.c (avr_gdbarch_init): Update.
8688 * arm-tdep.c (arm_gdbarch_init): Update.
8689 * alpha-tdep.c (alpha_gdbarch_init): Update.
8690 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8691 max_register_raw_size or max_register_virtual_size.
8692
8693 2003-03-03 David Carlton <carlton@math.stanford.edu>
8694
8695 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8696 SYMBOL_MATCHES_NAME, add comment.
8697 (SYMBOL_MATCHES_NATURAL_NAME): New.
8698 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8699 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8700 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8701 * symtab.c (lookup_partial_symbol): Use
8702 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8703 unhelpful comment.
8704 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8705 SYMBOL_MATCHES_NAME.
8706 Fix for PR c++/33.
8707
8708 2003-03-03 David Carlton <carlton@math.stanford.edu>
8709
8710 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8711 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8712 by regexp matching against SYMBOL_NATURAL_NAME.
8713
8714 2003-03-03 David Carlton <carlton@math.stanford.edu>
8715
8716 * linespec.c (find_method): Extract code into collect_methods.
8717 (collect_methods): New.
8718
8719 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8720
8721 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8722 get_frame_base.
8723
8724 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8725 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8726
8727 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8728
8729 * arch-utils.c (generic_register_byte): Fix to use the loop index
8730 and not regnum when summing the size of all registers up to regnum.
8731
8732 2003-03-01 Andrew Cagney <cagney@redhat.com>
8733
8734 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8735 FRAME_INIT_SAVED_REGS.
8736 * gdbarch.h, gdbarch.c: Regenerate.
8737 * stack.c (frame_info): Update.
8738 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8739 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8740 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8741 * ns32k-tdep.c (ns32k_pop_frame): Update.
8742 * mips-tdep.c (mips_pop_frame): Update.
8743 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8744 * ia64-tdep.c (ia64_frame_chain): Update.
8745 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8746 (ia64_frameless_function_invocation): Update.
8747 (ia64_init_extra_frame_info): Update.
8748 (ia64_pop_frame_regular): Update.
8749 * frame.h (struct frame_info): Update comment.
8750 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8751 * frame.c (frame_saved_regs_register_unwind): Update.
8752 (frame_saved_regs_register_unwind): Update.
8753 (deprecated_generic_get_saved_register): Update.
8754 * cris-tdep.c: Update comment.
8755 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8756 Rename macro.
8757 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8758 * x86-64-tdep.c (x86_64_init_abi): Update.
8759 * vax-tdep.c (vax_gdbarch_init): Update.
8760 * v850-tdep.c (v850_gdbarch_init): Update.
8761 * sparc-tdep.c (sparc_gdbarch_init): Update.
8762 * sh-tdep.c (sh_gdbarch_init): Update.
8763 * s390-tdep.c (s390_gdbarch_init): Update.
8764 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8765 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8766 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8767 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8768 * mips-tdep.c (mips_gdbarch_init): Update.
8769 * mcore-tdep.c (mcore_gdbarch_init): Update.
8770 * m68k-tdep.c (m68k_gdbarch_init): Update.
8771 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8772 * ia64-tdep.c (ia64_gdbarch_init): Update.
8773 * i386-tdep.c (i386_gdbarch_init): Update.
8774 * frv-tdep.c (frv_gdbarch_init): Update.
8775 * avr-tdep.c (avr_gdbarch_init): Update.
8776 * arm-tdep.c (arm_gdbarch_init): Update.
8777 * alpha-tdep.c (alpha_gdbarch_init): Update.
8778
8779 2003-03-01 Andrew Cagney <cagney@redhat.com>
8780
8781 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8782 option enum and switch. When no windows, set the interpreter to
8783 INTERP_CONSOLE.
8784
8785 2003-03-01 Andrew Cagney <cagney@redhat.com>
8786
8787 * main.c (captured_main): Replace magic option characters with an
8788 enum.
8789
8790 2003-03-01 Andrew Cagney <cagney@redhat.com>
8791
8792 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8793 INIT_EXTRA_FRAME_INFO.
8794 * gdbarch.h, gdbarch.c: Regenerate.
8795 * arm-tdep.c: Update comments.
8796 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8797 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8798 * frame.h, avr-tdep.c: Ditto.
8799 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8800 (create_new_frame, legacy_get_prev_frame): Ditto.
8801 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8802 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8804 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8805 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8806 * v850-tdep.c (v850_gdbarch_init): Ditto.
8807 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8808 * sh-tdep.c (sh_gdbarch_init): Ditto.
8809 * s390-tdep.c (s390_gdbarch_init): Ditto.
8810 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8811 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8812 * mips-tdep.c (mips_gdbarch_init): Ditto.
8813 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8814 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8815 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8816 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8817 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8818 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8819 * frv-tdep.c (frv_gdbarch_init): Ditto.
8820 * cris-tdep.c (cris_gdbarch_init): Ditto.
8821 * avr-tdep.c (avr_gdbarch_init): Ditto.
8822 * arm-tdep.c (arm_gdbarch_init): Ditto.
8823 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8824 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8825
8826 2003-03-01 Andrew Cagney <cagney@redhat.com>
8827
8828 * gdbarch.sh (register_type): New function with predicate.
8829 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8830 * gdbarch.h, gdbarch.c: Re-generate.
8831 * arch-utils.c (generic_register_byte): Use generic_register_size.
8832 (generic_register_size): When available, use
8833 gdbarch_register_type.
8834 * regcache.c (init_regcache_descr): When available, initialize the
8835 register type array using gdbarch_register_type. If the
8836 architecture supplies gdbarch_register_type, do not use the legacy
8837 regcache layout.
8838 * d10v-tdep.c (d10v_register_type): Replace
8839 d10v_register_virtual_type.
8840 (d10v_gdbarch_init): Set register_type instead of
8841 register_virtual_type.
8842
8843 2003-03-01 Andrew Cagney <cagney@redhat.com>
8844
8845 * Makefile.in (ax-gdb.o): Update dependencies.
8846 * ax-gdb.c: Include "regcache.h".
8847 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8848 * findvar.c (value_of_register): Ditto.
8849 * infcmd.c (default_print_registers_info): Ditto.
8850
8851 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8852
8853 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8854 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8855
8856 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8857
8858 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8859 of STREQ.
8860
8861 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8862
8863 * Makefile.in (dwarf2loc.o): Update dependencies.
8864 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8865 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8866 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8867 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8868 (locexpr_tracepoint_var_ref): New function.
8869 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8870
8871 2003-02-28 Andrew Cagney <cagney@redhat.com>
8872
8873 * regcache.c (register_size): New function.
8874 * regcache.h (register_size): Declare
8875 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8876 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8877
8878 2003-02-28 David Carlton <carlton@math.stanford.edu>
8879
8880 * linespec.c (decode_compound): Extract code into find_method.
8881 (find_method): New.
8882
8883 2003-02-28 J. Brobecker <brobecker@gnat.com>
8884
8885 * Makefile.in: Add rules to build and link in observer.o.
8886
8887 2003-02-27 J. Brobecker <brobecker@gnat.com>
8888
8889 * observer.c: Minor comments edits.
8890
8891 2003-02-27 J. Brobecker <brobecker@gnat.com>
8892
8893 * observer.h, observer.c: New file.
8894
8895 2003-02-27 Andrew Cagney <cagney@redhat.com>
8896
8897 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8898
8899 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8900
8901 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8902 (M6812_OP_STS_EXT): Likewise.
8903 (m6811_prologue): Use the above to recognize prologue.
8904 (m6812_prologue): Likewise.
8905
8906 2003-02-27 David Carlton <carlton@math.stanford.edu>
8907
8908 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8909 SYMBOL_PRINT_NAME.
8910 (compare_psymbols): Ditto.
8911 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8912
8913 2003-02-27 Michael Snyder <msnyder@redhat.com>
8914
8915 * f-lang.c (build_fortran_types): New function.
8916 (_initialize_f_language): Gdbarch-register built-in fortran types.
8917 * doublest.c (extract_floating): Fix warning text.
8918
8919 2003-02-27 Andrew Cagney <cagney@redhat.com>
8920
8921 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8922 predicate. Replaces PUSH_DUMMY_FRAME.
8923 * gdbarch.h, gdbarch.c: Regnerate.
8924 * valops.c (hand_function_call): Update. Call
8925 generic_push_dummy_frame directly.
8926 * vax-tdep.c (vax_gdbarch_init): Update.
8927 * sparc-tdep.c (sparc_gdbarch_init): Update.
8928 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8929 * m68k-tdep.c (m68k_gdbarch_init): Update.
8930 * hppa-tdep.c (hppa_gdbarch_init): Update.
8931 * alpha-tdep.c (alpha_gdbarch_init): Update.
8932 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8933 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8934 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8935 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8936 push_dummy_frame to generic_push_dummy_frame.
8937 * v850-tdep.c (v850_gdbarch_init): Ditto.
8938 * sh-tdep.c (sh_gdbarch_init): Ditto.
8939 * s390-tdep.c (s390_gdbarch_init): Ditto.
8940 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8941 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8942 * mips-tdep.c (mips_gdbarch_init): Ditto.
8943 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8945 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8946 * i386-tdep.c (i386_gdbarch_init): Ditto.
8947 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8948 * frv-tdep.c (frv_gdbarch_init): Ditto.
8949 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8950 * cris-tdep.c (cris_gdbarch_init): Ditto.
8951 * avr-tdep.c (avr_gdbarch_init): Ditto.
8952 * arm-tdep.c (arm_gdbarch_init): Ditto.
8953
8954 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8955
8956 * mips-tdep.c (show_mips_abi): New function.
8957 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8958 command ``show mips abi''.
8959
8960 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8961
8962 From Elena Zannoni <ezannoni@redhat.com>
8963 * dbxread.c (process_one_symbol): Only record line 0 if one or
8964 more sline entries have been seen for the function.
8965
8966 2003-02-26 Michael Chastain <mec@shout.net>
8967
8968 * configure: Regenerate with autoconf 000227.
8969
8970 2003-02-26 Michael Chastain <mec@shout.net>
8971
8972 Close PR build/660.
8973 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8974 for old libc5/glibc.
8975 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8976
8977 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8978
8979 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8980 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8981
8982 2003-02-26 Michael Chastain <mec@shout.net>
8983
8984 * configure.in: New variable HAVE_UINTPTR_T.
8985 * configure, config.in: Regenerated.
8986
8987 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8988
8989 Fix PR build/1097.
8990 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8991
8992 2003-02-25 Andrew Cagney <cagney@redhat.com>
8993
8994 * frame.c (get_prev_frame): Add comment on check for
8995 inside_entry_func. Only check for inside_entry_file when not a
8996 dummy and not a sentinel. Check that the new frame is not inner
8997 to the old frame.
8998
8999 2003-02-25 Andrew Cagney <cagney@redhat.com>
9000
9001 * frame.c (frame_debug): New variable.
9002 (_initialize_frame): Add "set/show debug frame" command.
9003 (get_prev_frame): When frame_debug, print reason why unwind
9004 failed.
9005
9006 2003-02-25 Michael Chastain <mec@shout.net>
9007
9008 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9009 to avoid uintptr_t definition problems.
9010
9011 2003-02-25 David Carlton <carlton@math.stanford.edu>
9012
9013 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9014 (SYMBOL_LINKAGE_NAME): Ditto.
9015 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9016 SYMBOL_LINKAGE_NAME.
9017 (struct general_symbol_info): Expand comment.
9018 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9019 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9020 (SYMBOL_MATCHES_REGEXP): Ditto.
9021 * symtab.c (symbol_natural_name): New function.
9022 * objfiles.h: Replace all uses of SYMBOL_NAME by
9023 DEPRECATED_SYMBOL_NAME.
9024 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9025 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9026 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9027 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9028 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9029 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9030 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9031 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9032 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9033 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9034 * ada-exp.y: Ditto.
9035 * ada-exp.y: Update copyright.
9036 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9037 * cp-valprint.c: Ditto.
9038
9039 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9040
9041 * infptrace.c (detach): Do not flag error if ptrace detach fails
9042 and errno is set to ESRCH.
9043
9044 2003-02-24 Andrew Cagney <cagney@redhat.com>
9045
9046 * infptrace.c (udot_info): Change type of udot_off to long. Use
9047 paddr when printing udot_off's value.
9048
9049 2003-02-24 David Carlton <carlton@math.stanford.edu>
9050
9051 * symtab.c (make_symbol_overload_list): Only read in partial
9052 symtabs containing a matching partial symbol.
9053
9054 2003-02-24 David Carlton <carlton@math.stanford.edu>
9055
9056 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9057 do the comparison, not strcmp.
9058 * symfile.c (compare_psymbols): Ditto.
9059 * defs.h: Declare strcmp_iw_ordered.
9060 * utils.c (strcmp_iw_ordered): New function.
9061
9062 2003-02-24 Jim Blandy <jimb@redhat.com>
9063
9064 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9065 support, shared libs): Remove my name from here, to better reflect
9066 reality.
9067
9068 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9069
9070 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9071 (target_ops): Add to_have_continuable_watchpoint.
9072 * target.c (update_current_target): Add INHERIT line for
9073 to_have_continuable_watchpoint.
9074 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9075 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9076 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9077 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9078
9079 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9080
9081 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9082 maintainership.
9083
9084 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9085
9086 * solib.c (solib_open): Call target defined search function after
9087 failing with solib-search-path.
9088 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9089 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9090
9091 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9092
9093 * MAINTAINERS: Add myself to Write After section.
9094
9095 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9096
9097 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9098
9099 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9100
9101 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9102 (m68hc11_add_reggroups): New function.
9103 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9104 (m68hc11_gdbarch_init): Install the reggroups.
9105 (_initialize_m68hc11_tdep): Initialize them.
9106
9107 2003-02-21 James E Wilson <wilson@tuliptree.org>
9108
9109 * MAINTAINERS: Update my email address.
9110
9111 2003-02-21 David Carlton <carlton@math.stanford.edu>
9112
9113 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9114
9115 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9116
9117 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9118 * symtab.h: Add opaque declarations of struct axs_value and
9119 struct agent_expr.
9120 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9121 (struct location_funcs): New type.
9122 (struct symbol): Add "loc" to aux_value.
9123 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9124 * dwarf2read.c: Include "dwarf2expr.h".
9125 (dwarf2_symbol_mark_computed): New function.
9126 (read_func_scope): Use it.
9127 (var_decode_location): New function.
9128 (new_symbol): Use it.
9129 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9130
9131 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9132 (dwarf2expr_h, dwarf2loc_h): New variables.
9133 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9134 (dwarf2expr.o, dwarf2loc.o): New rules.
9135 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9136 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9137 LOC_COMPUTED_ARG.
9138 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9139 * m2-exp.y (yylex): Likewise.
9140 * printcmd.c (address_info, print_frame_args): Likewise.
9141 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9142 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9143 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9144 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9145 * symtab.c (lookup_block_symbol): Likewise.
9146
9147 2003-02-20 Adam Fedor <fedor@gnu.org>
9148
9149 * symtab.h: Remove objc_specific struct
9150 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9151 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9152 Have language_objc use cplus_specific struct.
9153
9154 2003-02-20 Tom Tromey <tromey@redhat.com>
9155
9156 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9157 TYPE_NAME, when printing a String value. PR java/1075.
9158
9159 2003-02-20 Adam Fedor <fedor@gnu.org>
9160
9161 * objc-lang.h (find_methods): Remove declaration.
9162 * objc-lang.c (find_methods): Make static.
9163
9164 2003-02-20 Christopher Faylor <cgf@redhat.com>
9165
9166 * win32-nat.c (get_image_name): Check return value from
9167 ReadProcessMemory.
9168 (child_xfer_memory): Ditto.
9169
9170 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9171
9172 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9173 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9174 '${exec_prefix}' (in addition to the expansion thereof) as
9175 relocatable.
9176 * configure: Rebuilt.
9177
9178 2003-02-20 David Carlton <carlton@math.stanford.edu>
9179
9180 * symtab.c (search_symbols): Revert the search_symbols part of my
9181 2002-12-23 patch. Add comment.
9182
9183 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9184
9185 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9186 * dbxread.c (elfstab_build_psymtabs): Don't call
9187 install_minimal_symbols.
9188 (stabsect_build_psymtabs): Likewise.
9189 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9190 earlier.
9191 * somread.c (som_symfile_read): Call install_minimal_symbols
9192 and do_cleanups earlier.
9193 * nlmread.c (nlm_symfile_read): Likewise.
9194 * mdebugread.c (elfmdebug_build_psymtabs): Call
9195 install_minimal_symbols and make appropriate cleanups.
9196
9197 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9198
9199 * solib.c (reload_shared_libraries): New function.
9200 (_initialize_solib): Add callbacks for ``set solib-search-path''
9201 and ``set solib-absolute-prefix''.
9202
9203 2003-02-20 David Carlton <carlton@math.stanford.edu>
9204
9205 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9206 expand comment.
9207 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9208 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9209 * ada-typeprint.c (ada_typedef_print): Ditto.
9210 * ax-gdb.c (gen_var_ref): Ditto.
9211 * breakpoint.c (print_one_breakpoint): Ditto.
9212 * buildsym.c (finish_block): Ditto.
9213 * c-valprint.c (c_val_print): Ditto.
9214 * expprint.c (print_subexp): Ditto.
9215 * findvar.c (locate_var_value): Ditto.
9216 * infcmd.c (jump_command): Ditto.
9217 * linespec.c (decode_line_2, decode_compound): Ditto.
9218 * maint.c (maintenance_translate_address): Ditto.
9219 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9220 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9221 Ditto.
9222 * p-valprint.c (pascal_val_print): Ditto.
9223 * stabsread.c (define_symbol): Ditto.
9224 * stack.c (print_frame, frame_info, print_block_frame_locals)
9225 (print_frame_arg_vars, return_command): Ditto.
9226 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9227 * symmisc.c (print_symbol): Ditto.
9228 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9229 (compare_search_syms, print_symbol_info, print_msymbol_info)
9230 (rbreak_command): Ditto.
9231 * tracepoint.c (tracepoints_info): Ditto.
9232 * typeprint.c (typedef_print): Ditto.
9233 * valops.c (value_of_variable, hand_function_call): Ditto.
9234 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9235 * ada-typeprint.c: Update Copyright.
9236 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9237 * tracepoint.c, cli/cli-cmds.c: Ditto.
9238
9239 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9240
9241 * frame.c (generic_unwind_get_saved_register): Make non-static.
9242 * frame.h (generic_unwind_get_saved_register): Declare.
9243 * mips-tdep.c (read_next_frame_reg): Fetch register from
9244 current regcache when frame is NULL.
9245 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9246 that must be NULL.
9247 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9248 instead of frame_register_unwind().
9249
9250 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9251
9252 * remote-sim.c (gdbsim_insert_breakpoint)
9253 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9254 code.
9255
9256 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9257
9258 * remote.c (_initialize_remote): Add commands "set/show remote
9259 hardware-watchpoint-limit" and "set/show remote
9260 hardware-breakpoint-limit".
9261 (remote_hw_watchpoint_limit): Initialize to -1.
9262 (remote_hw_breakpoint_limit): Ditto.
9263 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9264
9265 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9266
9267 * coff-pe-read.c: New file - support reading of minimal symbols from a
9268 portable executable using the export table.
9269 * coff-pe-read.h: New file.
9270 * coffread.c: Include coff-pe-read.h.
9271 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9272 debugging symbols found.
9273 * Makefile.in (SFILES): Add coff-pe-read.o.
9274 (coff_pe_read_h): Define.
9275 (COMMON_OBS): Add coff-pe-read.o.
9276 (coffread.o): Add coff_pe_read_h dependency.
9277 (coff-pe-read.o): New target.
9278
9279 2003-02-19 David Carlton <carlton@math.stanford.edu>
9280
9281 * Makefile.in (SFILES): Add block.c.
9282 (block_h): New.
9283 (COMMON_OBS): Add block.o.
9284 (block.o): New.
9285 (x86-64-tdep.o): Add $(block_h).
9286 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9287 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9288 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9289 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9290 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9291 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9292 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9293 * value.h: Add opaque declaration for struct block.
9294 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9295 * ada-lang.h: Ditto.
9296 * x86-64-tdep.c: #include "block.h"
9297 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9298 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9299 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9300 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9301 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9302 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9303 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9304 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9305 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9306 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9307 * symtab.c (block_function): Ditto.
9308 (contained_in): Ditto.
9309 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9310 block.h. Add opaque declaration for struct block.
9311 * symtab.h: Move block_function and contained_in declarations to
9312 block.h. Add opaque declarations for struct block, struct
9313 blockvector.
9314 (struct block): Move to block.h.
9315 (struct blockvector): Ditto.
9316 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9317 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9318 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9319 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9320 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9321 Ditto.
9322 * block.c: New file.
9323 * block.h: New file.
9324
9325 2003-02-19 Theodore A. Roth <troth@openavr.org>
9326
9327 * avr-tdep.c (avr_extract_return_value): Remove function.
9328 (avr_store_return_value): Remove function.
9329 (avr_extract_struct_value_address): Remove function.
9330 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9331
9332 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9333
9334 * rs6000-tdep.c: Include "gdb_assert.h".
9335 (registers_e500): Add "acc" and "spefscr".
9336 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9337 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9338 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9339 really is "r0".
9340 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9341
9342 2003-02-18 Keith Seitz <keiths@redhat.com>
9343
9344 * Makefile.in: Add gdbtk-interps.c.
9345
9346 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9347
9348 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9349 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9350
9351 2003-02-18 Andrew Cagney <cagney@redhat.com>
9352
9353 * symtab.h (struct objfile): Add opaque declaration.
9354
9355 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9356
9357 From Jim Ingham <jingham@apple.com>:
9358 * dbxread.c (process_one_symbol): Use last_function_start rather
9359 than function_start_offset to find the real beginning of the
9360 current function. The latter is just the text section offset on
9361 some systems, the former is always the real function start.
9362
9363 2003-02-17 Andrew Cagney <cagney@redhat.com>
9364
9365 * configure.in: Revert ${target} != ${host}.
9366
9367 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9368
9369 * configure.in (Makefile): Use the test ${target} != ${host},
9370 instead of the absence of the "nm.h" file, to determine of the
9371 configuration non-native.
9372 * configure: Regenerate.
9373
9374 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9375
9376 From Brian Ford <ford@vss.fsi.com>
9377
9378 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9379 conditionalize tui_active test.
9380 (lookup_cmd_1): Ditto.
9381
9382 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9383
9384 * configure.in: Add check for _etext.
9385 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9386 available.
9387 * config.in, configure: regenerated.
9388
9389 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9390
9391 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9392
9393 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9394
9395 * main.c (tui_version): Delete variable.
9396 (captured_main): When --tui, set interpreter_p to "tui" instead of
9397 enabling tui_version.
9398 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9399 tui_version.
9400 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9401 * cli/cli-cmds.c (disassemble_command): Ditto.
9402 * defs.h (tui_version): Delete declaration.
9403 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9404 (tui-interp.o): Add rules.
9405 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9406
9407 2003-02-14 Christopher Faylor <cgf@redhat.com>
9408
9409 * win32-nat.c (register_loaded_dll): Correctly set address range for
9410 just-loaded dll.
9411
9412 2003-02-12 Jason Molenda (jmolenda@apple.com)
9413
9414 * symmisc.c (print_objfile_statistics): Include information about
9415 the number of psymtabs and symtabs in each object file.
9416
9417 2003-02-13 Keith R Seitz <keiths@redhat.com>
9418
9419 * main.h (struct captured_main_args): Add interpreter_p.
9420 * main.c (captured_main): Initialize interpreter_p from context.
9421 * gdb.c (main): Set interpreter_p argument.
9422 * Makefile.in (gdb.o): Add dependency for interps.h.
9423
9424 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9425
9426 * event-top.c (cli_command_loop): Delete declaration.
9427 (_initialize_event_loop): Delete function setting event_loop_hook.
9428 * event-top.h (cli_command_loop): Declare. Update copyright.
9429 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9430 * interps.c (current_interp_command_loop): When event_loop_p, call
9431 cli_command_loop.
9432
9433 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9434
9435 * interps.h (interp_command_loop_ftype): Change return type to
9436 void.
9437
9438 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9439
9440 * x86-64-tdep.c (x86_64_extract_return_value)
9441 (x86_64_store_return_value): Use regcache instead of regbuf.
9442 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9443 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9444
9445 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9446
9447 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9448 * aclocal.m4: Regenerate.
9449 * configure: Regenerate.
9450
9451 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9452 TCL_LD_SEARCH_FLAGS.
9453
9454 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9455
9456 * dwarf2cfi.c: Reindented.
9457
9458 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9459
9460 * interps.c (clear_interpreter_hooks): Convert function definition
9461 to ISO C.
9462
9463 2003-02-07 David Carlton <carlton@math.stanford.edu>
9464
9465 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9466
9467 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9468
9469 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9470 (struct type): ...to here.
9471 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9472 field.
9473 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9474 (replace_type): Set length on all type variants for a given type.
9475
9476 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9477
9478 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9479 <sys/stat.h>.
9480 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9481
9482 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9483
9484 * Makefile.in (symm-nat.o): Update dependencies.
9485 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9486 (lynx-nat.o, ia64-linux-nat.): Ditto.
9487 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9488 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9489 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9490
9491 * Makefile.in (inflow_h): Define.
9492 (procfs.o, inflow.o, procfs.o): Update dependencies.
9493 * inftarg.c (child_stop): Delete extern declaration of
9494 inferior_process_group. Include "inflow.h".
9495 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9496 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9497 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9498 (our_process_group, inferior_process_group): Extern declarations.
9499
9500 * procfs.c: Include "gdb_assert.h".
9501
9502 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9503 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9504 * jv-typeprint.c (java_type_print_base): Ditto.
9505 * typeprint.c (typedef_print): Eliminate STREQ.
9506 * cli/cli-script.c (define_command, define_command): Ditto.
9507 * main.c (captured_main): Ditto.
9508 * values.c (lookup_internalvar): Ditto.
9509 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9510 within `if' conditional.
9511 * linespec.c (decode_line_2): Ditto.
9512 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9513 (bfd_openw_with_cleanup): Ditto.
9514
9515 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9516
9517 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9518 legacy_extract_return_value and store_return_value to
9519 legacy_return_value.
9520
9521 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9522
9523 * win32-nat.c (get_relocated_section_addrs): New function. Find
9524 section load addresses for symbol handling in relocated DLLs.
9525 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9526
9527 2003-02-05 Fred Fish <fnf@intrinsity.com>
9528
9529 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9530 '=' and '!='.
9531 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9532 with '&' and '=='.
9533 (angel_RDI_info): Ditto.
9534 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9535 with '&' and '!='.
9536 (threads_continue_all_with_signals): Ditto.
9537
9538 2003-02-05 Jim Ingham <jingham@apple.com>
9539 Keith Seitz <keiths@redhat.com>
9540 Elena Zannoni <ezannoni@redhat.com>
9541 Andrew Cagney <ac131313@redhat.com>
9542
9543 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9544 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9545 (SUBDIR_MI_OBS): Add "mi-interp.o".
9546 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9547 (SFILES): Add "interps.c".
9548 (COMMON_OBS): Add "interps.o".
9549 (interps_h, mi_main_h): Define.
9550 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9551 (mi-main.o, main.o, event-top.o): Update dependencies.
9552 * cli/cli-interp.c: New file.
9553 * interps.h, interps.c: New files.
9554 * top.c: (gdb_init): Don't install the default interpreter, handed
9555 by captured_main.
9556 * main.c: Include "interps.h".
9557 (interpreter_p): Note that it should malloc'ed.
9558 (captured_command_loop): Call current_interp_command_loop.
9559 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9560 xfree and xstrdup when updating interpreter_p. Install the
9561 default interpreter. Add hack to stop mi1's copyright notice
9562 being encoded.
9563 * event-top.h (gdb_setup_readline): Declare.
9564 (gdb_disable_readline): Declare.
9565 * event-top.c: Include "interps.h".
9566 (display_gdb_prompt): Call current_interp_display_prompt_p.
9567 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9568 gdb_stdlog, and gdb_stdtarg.
9569 (_initialize_event_loop): Don't call gdb_setup_readline.
9570 * cli-out.c (cli_out_set_stream): New function.
9571 * cli-out.h (cli_out_set_stream): Declare.
9572
9573 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9574
9575 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9576 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9577 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9578 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9579 config/i386/i386v42mp.mt: Removed.
9580
9581 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9582
9583 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9584 GDB_OSABI_SOLARIS.
9585
9586 2003-02-05 Michael Chastain <mec@shout.net>
9587
9588 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9589 2.12.1 and earlier versions.
9590
9591 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9592
9593 Remove orphaned hosts, targets and files.
9594 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9595 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9596 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9597 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9598 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9599 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9600 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9601 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9602 * config/sparc/tm-sp64sim.h: Delete.
9603 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9604 hosts.
9605 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9606 mips*-dec-mach3* targets.
9607
9608 2003-02-04 Michael Chastain <mec@shout.net>
9609
9610 * NEWS: Fix typo: sepcifying -> specifying.
9611
9612 2003-02-04 Michael Chastain <mec@shout.net>
9613
9614 * dwarfread.c: Add documentation on the state of dwarf-1,
9615 looking towards obsoletion.
9616
9617 2003-02-03 Michael Chastain <mec@shout.net>
9618
9619 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9620 gdb/testsuite/gdb.c++/pr-1023.exp.
9621
9622 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9623
9624 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9625 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9626
9627 * utils.c (init_page_info): Delete reference to MPW in comments.
9628 * main.c (captured_main): Delete #ifdef MPW.
9629
9630 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9631
9632 * NEWS: Note that the m32r-*-elf* is obsolete.
9633 * monitor.c (monitor_expect): Obsolete reference to m32r.
9634 * configure.tgt: Mark m32r-*-elf* as obsolete.
9635 * MAINTAINERS: Mark m32k as obsolete.
9636 * m32r-rom.c: Obsolete file.
9637 * config/m32r/m32r.mt: Obsolete file.
9638 * config/m32r/tm-m32r.h: Obsolete file.
9639 * m32r-stub.c: Obsolete file.
9640 * m32r-tdep.c: Obsolete file.
9641
9642 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9643
9644 * NEWS: Mention that the z8k-zilog-none is obsolete.
9645 * MAINTAINERS: Mark z8k as obsolete.
9646 * configure.tgt: Obsolete the z8k-*-coff* target.
9647 * config/z8k/z8k.mt: Obsolete file.
9648 * config/z8k/tm-z8k.h: Obsolete file.
9649 * z8k-tdep.c: Obsolete file.
9650
9651 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9652
9653 * NEWS: Mention that the mn10200-elf is obsolete.
9654 * configure.tgt: Obsolete mn10200-*-* target.
9655 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9656 mention that the mn10200 is obsolete.
9657 * breakpoint.h: Ditto.
9658 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9659 * config/mn10200/mn10200.mt: Obsolete file.
9660 * config/mn10200/tm-mn10200.h: Obsolete file.
9661 * mn10200-tdep.c: Obsolete file.
9662
9663 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9664
9665 * MAINTAINERS: Mark h8500 as obsolete.
9666 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9667 * findvar.c (value_from_register): Ditto.
9668 * h8500-tdep.c: Mark file as obsolete.
9669 * config/h8500/h8500.mt: Ditto.
9670 * config/h8500/tm-h8500.h: Ditto.
9671 * NEWS: Mention that h8500 is obsolete.
9672
9673 2003-02-04 David Carlton <carlton@math.stanford.edu>
9674
9675 * objfiles.c (allocate_objfile): Always set name. Add comment at
9676 start of function.
9677 * jv-lang.c (get_dynamics_objfile): Add comment.
9678
9679 2003-02-04 David Carlton <carlton@math.stanford.edu>
9680
9681 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9682 * printcmd.c (build_address_symbolic): Replace uses of
9683 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9684 SYMBOL_NAME, and asm_demangle.
9685 Update copyright.
9686
9687 2003-02-04 David Carlton <carlton@math.stanford.edu>
9688
9689 * linespec.c (decode_compound): Extract code into
9690 lookup_prefix_sym.
9691 (lookup_prefix_sym): New function.
9692
9693 2003-02-04 David Carlton <carlton@math.stanford.edu>
9694
9695 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9696 FLOAT_COERCION_BADNESS.
9697 * gdbtypes.c (rank_one_type): Replace all uses of
9698 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9699
9700 2003-02-04 Jim Blandy <jimb@redhat.com>
9701
9702 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9703 section, let dwarf_macinfo_section point to it, not
9704 dwarf_loc_section.
9705
9706 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9707
9708 Pointed out by Anton Blanchard <anton@samba.org>.
9709 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9710 (ppc_linux_at_sigtramp_return_path): Use it.
9711
9712 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9713
9714 * defs.h (streq): Add prototype.
9715 * utils.c (streq): New function.
9716
9717 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9718 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9719 * mdebugread.c (new_symbol): Likewise.
9720 * stabsread.c (define_symbol): Likewise.
9721 * coffread.c (process_coff_symbol): Likewise.
9722 * dwarfread.c (new_symbol): Likewise.
9723
9724 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9725 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9726 here.
9727 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9728 SYMBOL_INIT_DEMANGLED_NAME.
9729 * objfiles.c: Include "hashtab.h".
9730 (allocate_objfile): Call htab_set_functions_ex for the
9731 demangled_names_hash.
9732 (free_objfile): Call htab_delete for the demangled_names_hash.
9733 * objfiles.h (struct htab): Add declaration.
9734 (struct objfile): Add demangled_names_hash.
9735 * symfile.c: Include "hashtab.h".
9736 (reread_symbols): Call htab_delete for the demangled_names_hash.
9737 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9738 SYMBOL_NAME in the bcache.
9739 * symtab.c: Include "hashtab.h". Update comments.
9740 (create_demangled_names_hash, symbol_set_names): New functions.
9741 (symbol_find_demangled_name): New function, broken out from
9742 symbol_init_demangled_names.
9743 (symbol_init_demangled_names): Use it.
9744 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9745 (SYMBOL_SET_NAMES): New macro.
9746 (symbol_set_names): Add prototype.
9747
9748 2003-02-03 Jim Blandy <jimb@redhat.com>
9749
9750 Use a single, consistent representation for an empty minimal
9751 symbol table in an objfile.
9752 * objfiles.c (terminate_minimal_symbol_table): New function.
9753 (allocate_objfile): Call it.
9754 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9755 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9756 non-NULL.
9757 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9758 objfile has minimal symbols, compare minimal_symbol_count to zero,
9759 instead of comparing msymbols with NULL.
9760 * objfiles.c (have_minimal_symbols): Same.
9761 * solib-sunos.c (solib_add_common_symbols): Call
9762 terminate_minimal_symbol_table.
9763 * symfile.c (reread_symbols): Same.
9764
9765 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9766
9767 * s390-tdep.c (s390_address_class_type_flags)
9768 (s390_address_class_type_flags_to_name)
9769 (s390_address_class_name_to_type_flags): New functions.
9770 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9771 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9772
9773 2003-02-03 Michael Snyder <msnyder@redhat.com>
9774
9775 * arm-tdep.c: Fix spell-o in comment.
9776
9777 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9778
9779 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9780 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9781 error messages to contain BFD filename.
9782
9783 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9784
9785 Fix PR gdb/742 gdb/743 gdb/877
9786 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9787 (do_mixed_source_and_assembly): Use
9788 make_cleanup_ui_out_tuple_begin_end and
9789 make_cleanup_ui_out_tuple_begin_end.
9790 (do_mixed_source_and_assembly): Ditto.
9791 * thread.c (do_captured_list_thread_ids): Ditto.
9792 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9793 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9794 ui_out_tuple_end): Delete prototypes.
9795 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9796 ui_out_list_end, ui_out_tuple_end): Delete.
9797
9798 From Kevin Buettner <kevinb@redhat.com>:
9799 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9800 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9801 (do_cleanup_table_end): New functions.
9802 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9803 Use cleanups to invoke_ui_out_tuple_end().
9804 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9805 * cli/cli-setshow.c (cmd_show_list): Use
9806 make_cleanup_ui_out_tuple_begin_end.
9807
9808 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9809
9810 * frame.c (frame_unwind_register): New function.
9811 (frame_unwind_unsigned_register): Use.
9812 (frame_unwind_signed_register): Use.
9813 (frame_read_register): New function.
9814 * frame.h (frame_unwind_register): Declare.
9815 (frame_read_register): Declare.
9816
9817 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9818 and frame_unwind_register instead of read_memory, write_register
9819 and deprecated_write_register_bytes.
9820
9821 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9822
9823 * frame.h: Note that namelen can be negative.
9824 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9825 NAME's length.
9826
9827 * NEWS: Mention that the d10v's `regs' command is deprecated.
9828 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9829 (d10v_print_registers_info): New function.
9830 (show_regs): Call d10v_print_registers_info.
9831 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9832
9833 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9834
9835 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9836 lost in the previous patch.
9837
9838 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9839
9840 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9841 * stack.c (print_frame_info_base): Output complete FRAME tuple
9842 for synthesized frames.
9843
9844 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9845
9846 * mips-nat.c (zerobuf): Delete.
9847 (fetch_inferior_registers): Alloc local zerobuf.
9848 (fetch_core_registers): Alloc local zerobuf.
9849 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9850 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9851 * thread-db.c (thread_db_store_registers): Ditto.
9852 * sh-tdep.c (sh_do_register): Ditto.
9853 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9854 * remote-sim.c (gdbsim_store_register): Ditto.
9855 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9856 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9857 * monitor.c (monitor_supply_register): Ditto.
9858 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9859 * mips-nat.c (fetch_inferior_registers): Ditto.
9860 * m68klinux-nat.c (fetch_register): Ditto.
9861 * lynx-nat.c (fetch_inferior_registers): Ditto.
9862 (fetch_inferior_registers): Ditto.
9863 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9864 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9865 (hpux_thread_store_registers): Ditto.
9866 * hppah-nat.c (fetch_register): Ditto.
9867 * hppab-nat.c (fetch_register): Ditto.
9868 * hppa-tdep.c (pa_register_look_aside): Ditto.
9869 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9870 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9871
9872 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9873
9874 * gdbarch.sh: Explictly specify all method levels. When a
9875 variable with an empty level, provide a non-multi-arch default.
9876 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9877 * gdbarch.h: Re-generate.
9878 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9879 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9880
9881 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9882
9883 * defs.h (host_pointer_to_address): Delete declaration.
9884 (address_to_host_pointer): Delete declaration.
9885 * utils.c (host_pointer_to_address): Delete function.
9886 (address_to_host_pointer): Delete function.
9887 * procfs.c (procfs_address_to_host_pointer): New function.
9888 * procfs.c (proc_set_watchpoint): Use.
9889 (procfs_can_use_hw_breakpoint): Update comments.
9890 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9891 (som_solib_add): Use.
9892 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9893 * hppa-tdep.c (unwind_command): Use.
9894
9895 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9896
9897 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9898 strlen d_name.
9899
9900 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9901 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9902 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9903 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9904 (define_symbol): Update.
9905 * symfile.c (generic_load): Remove references to nindy.
9906 * symtab.c: Remove references to nindy.
9907
9908 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9909
9910 * infcmd.c (print_float_info): Delete code conditional on
9911 FLOAT_INFO.
9912 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9913 * config/m68k/nm-apollo68b.h: Ditto.
9914 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9915 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9916 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9917
9918 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9919
9920 * config/i386/tm-i386os9k.h: Removed.
9921
9922 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9923 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9924 they're identical to i[3456]86-*-sysv* now.
9925 * config/i386/i386v32.mh: Removed.
9926 * config/i386/xm-i386v32.h: Removed.
9927 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9928
9929 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9930
9931 * config/i386/i386dgux.mh: Removed.
9932 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9933
9934 * configure.in: Fix typo.
9935 * configure: Regenerated.
9936
9937 2003-01-31 David Carlton <carlton@math.stanford.edu>
9938
9939 * dwarf2read.c (dwarf2_locate_sections): Set
9940 dwarf_ranges_section.
9941
9942 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9943
9944 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9945 * utils.c: Update comments documenting legitimate uses of PTR.
9946
9947 * utils.c: Re-indent.
9948
9949 * config/djgpp/fnchange.lst: Delete nindy files.
9950 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9951 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9952 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9953 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9954 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9955 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9956 * Makefile.in (init.c): Remove nindy references.
9957 (saber_gdb): Delete rule.
9958 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9959 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9960 and a68v-nat.c.
9961 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9962 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9963 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9964 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9965 nindy-share/stop.h.
9966 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9967 * saber.suppress: Delete file.
9968
9969 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9970
9971 * dbxread.c (stabs_data): New static variable.
9972 (fill_symbuf): Support an in-memory buffer for stabs data.
9973 (stabs_seek): New function.
9974 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9975 (read_ofile_symtab): Use stabs_seek.
9976 (elfstab_build_psymtabs): Take an asection* instead of
9977 an offset and size. Relocate the stabs data if necessary.
9978 Save the section* for dbx_psymtab_to_symtab.
9979 * dwarf2read.c: Add section variables for each debug section.
9980 (dwarf2_locate_sections): Fill them in.
9981 (dwarf2_read_section): Take an asection* argument.
9982 Relocate the section contents if necessary.
9983 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9984 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9985 it to dwarf2_read_section.
9986 (dwarf2_build_frame_info): Update callers.
9987 * elfread.c (elf_symfile_read): Update call to
9988 elfstab_build_psymtabs.
9989 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9990 (DBX_STAB_SECTION): New macro.
9991 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9992 * symfile.c (symfile_dummy_outputs): New function.
9993 (symfile_relocate_debug_section): New function.
9994 * symfile.h (symfile_relocate_debug_section): Add prototype.
9995
9996 2003-01-31 Richard Henderson <rth@redhat.com>
9997
9998 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9999 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10000 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10001 * alpha-tdep.c (alpha_register_name): Add "unique".
10002 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10003 (ALPHA_UNIQUE_REGNUM): New.
10004 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10005
10006 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10007
10008 * README: Remove reference to Ericsson 1800 monitor.
10009 * Makefile.in (remote-es.o): Delete rule.
10010 (ALLDEPFILES): Delete remote-es.c.
10011 * remote-es.c: Delete file.
10012 * config/m68k/es1800.mt: Delete file.
10013 * config/djgpp/fnchange.lst: Update.
10014 * configure.tgt: Delete m68*-ericsson-* target.
10015
10016 2003-01-31 Adam Fedor <fedor@gnu.org>
10017
10018 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10019 Remove duplicate/shadowing variable of same name.
10020
10021 2003-01-30 Jim Blandy <jimb@redhat.com>
10022
10023 * symfile.c (find_separate_debug_file): Assert that the objfile's
10024 directory name we compute ends with a slash, and then assume that
10025 that's so everywhere we use it.
10026
10027 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10028
10029 * valops.c (value_assign): Flush frame cache after stores to memory
10030 also.
10031
10032 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10033
10034 * Makefile.in (mon960-rom.o): Delete rule.
10035 * mon960-rom.c: Delete file.
10036
10037 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10038
10039 * d10v-tdep.c: Include "frame-unwind.h".
10040 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10041 list.
10042 (next_addr, uses_frame): Delete.
10043 (struct d10v_unwind_cache): Define.
10044 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10045 Use info instead of next_addr and uses_frame globals.
10046 (d10v_frame_init_saved_regs): Delete function.
10047 (d10v_init_extra_frame_info): Delete function.
10048 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10049 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10050 init_frame_pc or frame_saved_pc.
10051 (d10v_pop_frame): Delete function.
10052 (do_d10v_pop_frame): Delete function.
10053 (d10v_frame_chain): Delete function.
10054 (d10v_frame_chain_valid): Delete function.
10055 (d10v_frame_pc_unwind): New function.
10056 (d10v_frame_id_unwind): New function.
10057 (saved_regs_unwinder): New function.
10058 (d10v_frame_register_unwind): New function.
10059 (d10v_frame_pop): New function.
10060 (d10v_frame_unwind): New variable.
10061 (d10v_frame_p): New function.
10062 (d10v_frame_saved_pc): Delete function.
10063 * Makefile.in (d10v-tdep.o): Update dependencies.
10064
10065 2003-01-30 J. Brobecker <brobecker@gnat.com>
10066
10067 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10068 causing some regressions due to a change in the default value
10069 for this macro.
10070
10071 2003-01-29 Richard Henderson <rth@redhat.com>
10072 Elena Zannoni <ezannoni@redhat.com>
10073 Daniel Jacobowitz <drow@mvista.com>
10074
10075 Fix PR gdb/961.
10076 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10077 variables.
10078 (RANGES_SECTION): New.
10079 (dwarf_ranges_buffer): New variable.
10080 (struct comp_unit_head): Add member "die".
10081 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10082 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10083 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10084 (dwarf2_locate_sections): Likewise.
10085 (dwarf2_build_psymtabs): Read .debug_ranges.
10086 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10087 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10088 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10089 Look for DW_AT_ranges and return the bounding box.
10090
10091 2003-01-29 Brian Ford <ford@vss.fsi.com>
10092
10093 * win32-nat.c (cygwin_pid): Removed as unused.
10094 (child_attach): Try fall back to Cygwin pid.
10095
10096 2003-01-29 Jim Blandy <jimb@redhat.com>
10097
10098 * objfiles.h (struct objfile): Doc fix.
10099
10100 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10101
10102 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10103 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10104 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10105 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10106 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10107 (FRAME_SAVED_PC): Change to a function with predicate.
10108 * gdbarch.h, gdbarch.c: Re-generate.
10109
10110 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10111
10112 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10113
10114 * complaints.c (complain): Delete function.
10115 * complaints.h (struct deprecated_complaint): Delete definition.
10116 (complain): Delete declaration.
10117
10118 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10119
10120 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10121 dummy frames.
10122
10123 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10124
10125 * sentinel-frame.h, sentinel-frame.c: New files.
10126 * Makefile.in (frame.o): Update dependencies.
10127 (SFILES): Add sentinel-frame.c.
10128 (sentinel_frame_h): Define.
10129 (COMMON_OBS): Add sentinel-frame.o.
10130 (sentinel-frame.o): Specify dependencies.
10131 * frame.c: Include "sentinel-frame.h".
10132 (frame_register_unwind): Rewrite assuming that there is always a a
10133 ->next frame.
10134 (frame_register, generic_unwind_get_saved_register): Ditto.
10135 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10136 (create_sentinel_frame, unwind_to_current_frame): New functions.
10137 (get_current_frame): Rewrite using create_sentinel_frame and
10138 unwind_to_current_frame. When possible, always create a frame.
10139 (create_new_frame): Set next to the sentinel frame.
10140 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10141 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10142 ID cache when necessary.
10143 (frame_saved_regs_id_unwind): Use frame_relative_level.
10144 (deprecated_generic_get_saved_register): Use frame_relative_level,
10145 get_frame_saved_regs, get_frame_pc, get_frame_base and
10146 get_next_frame.
10147 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10148 frame_register.
10149
10150 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10151
10152 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10153
10154 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10155
10156 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10157 (maintenance_set_profile_cmd): Use error () instead of warning ().
10158
10159 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10160
10161 * configure.in: Check that -pg works if using --enable-profiling.
10162 Check for monstartup and _mcleanup regardless of --enable-profiling.
10163 * maint.c: Check for monstartup and _mcleanup before using them.
10164 * config.in: Regenerated.
10165 * configure: Regenerated.
10166
10167 2003-01-24 Nick Clifton <nickc@redhat.com>
10168
10169 * Add sh2e support:
10170
10171 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10172
10173 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10174 (sh2e_show_regs): New.
10175 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10176 * config/sh/tm-sh.h: Added sh2e to comments.
10177
10178 2003-01-23 Jim Blandy <jimb@redhat.com>
10179
10180 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10181 symbols found)" message here; we haven't checked for a separate
10182 debug info file yet, so we don't know yet.
10183 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10184 we've looked everywhere. Also, there's no need to print a special
10185 message when we're loading the separate debug info file: the one
10186 symbol_file_add prints is fine.
10187
10188 2003-01-23 Alexander Larsson <alexl@redhat.com>
10189 Jim Blandy <jimb@redhat.com>
10190
10191 Add support for executables whose debug info has been separated
10192 out into a separate file, leaving only a link behind.
10193 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10194 and separate_debug_objfile_backlink.
10195 (put_objfile_before): New declaration.
10196 * symfile.c: #include "filenames.h".
10197 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10198 debug info in a separate file, read that, too. Save the addrs
10199 argument, so we can use it again to read the separated debug info;
10200 syms_from_objfile modifies the table we pass it.
10201 (reread_symbols): After re-reading an objfile, call
10202 reread_separate_symbols to refresh its separate debug info
10203 objfile, if it has one.
10204 (reread_separate_symbols, find_separate_debug_file,
10205 get_debug_link_info, separate_debug_file_exists): New functions.
10206 (debug_file_directory): New global var.
10207 (_initialize_symfile): Initialize debug_file_directory, and
10208 provide the new `set debug-file-directory' command to let the user
10209 change it.
10210 * objfiles.c (free_objfile): If this objfile has its debug info in
10211 a separate objfile, free that one too. If this is itself a
10212 separate debug info objfile, clear our parent's backlink.
10213 (put_objfile_before): New function.
10214 * utils.c (gnu_debuglink_crc32): New function.
10215 * defs.h (gnu_debuglink_crc32): New declaration.
10216 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10217 * configure.in: Handle --with-separate-debug-dir config option.
10218 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10219 * acconfig.h (DEBUGDIR): New macro.
10220 * configure, aclocal.m4, config.in: Regenerated.
10221
10222 2003-01-22 Jim Blandy <jimb@redhat.com>
10223
10224 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10225 like the old symbol_file_add, but taking new arguments: you can
10226 now pass in either a `struct section_addr_info' list to say where
10227 each section is loaded, or a `struct section_offsets' table. Pass
10228 these new arguments through to syms_from_objfile as appropriate.
10229 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10230 with the appropriate quiescent values for the new arguments.
10231
10232 * symfile.c: #include "gdb_assert.h".
10233 (syms_from_objfile): Add the ability to pass in a section offset
10234 table directly, as an alternative to the section_addr_info table.
10235 Document arguments better.
10236 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10237 * symfile.h (syms_from_objfile): Update declaration.
10238 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10239 syms_from_objfile.
10240 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10241
10242 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10243
10244 Original patch by Tom Tromey <tromey@cygnus.com> and
10245 Jason Molenda <jmolenda@apple.com>.
10246 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10247 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10248 * NEWS: Mention profiling.
10249 * configure.in (--enable-gdbtk): Fix typo.
10250 (--enable-profiling): New. Set PROFILE_CFLAGS.
10251 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10252 Fill in function.
10253 (profiling_state): New variable.
10254 (mcleanup_wrapper): New function.
10255 (_initialize_maint): Remove NOTYET, fix call to
10256 add_setshow_boolean_cmd for "maint set profile".
10257 * configure: Regenerated.
10258
10259 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10260
10261 * Makefile.in (install-gdbtk): Install PNG images too.
10262
10263 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10264
10265 * exec.c (text_start): Delete global variable.
10266 (exec_file_attach): Make text_start local to the function.
10267 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10268 * valops.c (hand_function_call): Delete code that handles
10269 BEFORE_TEXT_END and AFTER_TEXT_END.
10270 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10271 of CALL_DUMMY_LOCATION.
10272 * gdbarch.c: Regenerate.
10273 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10274 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10275 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10276 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10277 (text_end): Delete extern declaration.
10278
10279 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10280
10281 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10282 * blockframe.c (backtrace_below_main): Move to "frame.c".
10283 (frame_chain_valid): Delete check for backtrace_below_main.
10284 (_initialize_blockframe): Delete initialization, move ``set
10285 backtrace-below-main'' command to "frame.c".
10286 (do_flush_frames_sfunc): Delete function.
10287 * frame.c: Include "command.h" and "gdbcmd.h".
10288 (frame_type_from_pc): New function.
10289 (create_new_frame): Use frame_type_from_pc.
10290 (legacy_get_prev_frame): New function.
10291 (get_prev_frame): Rewrite. When an old style frame, call
10292 legacy_get_prev_frame. Otherwize, unwind the PC first.
10293 (_initialize_frame): Add ``set backtrace-below-main'' command.
10294 * Makefile.in (frame.o): Update dependencies.
10295
10296 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10297
10298 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10299 DEPRECATED_REGISTERS_INFO.
10300
10301 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10302
10303 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10304 Maintainers'. Update `Various Maintainers'.
10305
10306 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10307
10308 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10309 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10310 Suppress actual parameters when `-'.
10311 * gdbarch.h, gdbarch.c: Regenerate.
10312
10313 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10314
10315 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10316 code handling dummy frames.
10317
10318 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10319
10320 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10321 (struct frame_unwind): Add field pop.
10322 * frame.h (frame_pop): Declare.
10323 * frame.c (frame_saved_regs_pop): New function.
10324 (trad_frame_unwinder): Add frame_saved_regs_pop.
10325 (frame_pop): New function.
10326 * dummy-frame.c (dummy_frame_pop): New function.
10327 (discard_innermost_dummy): New function.
10328 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10329 (dummy_frame_unwind): Add dummy_frame_pop.
10330 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10331 * valops.c (hand_function_call): Ditto.
10332 * stack.c (return_command): Ditto.
10333
10334 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10335
10336 * cris-tdep.c: Fix function declaration indentation.
10337 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10338 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10339 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10340 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10341 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10342 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10343
10344 2003-01-18 Michael Chastain <mec@shout.net>
10345
10346 * README (Unpacking and Installation -- quick overview):
10347 Warn against ".../gdb-5.3/gdb/configure".
10348
10349 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10350
10351 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10352 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10353 (struct frame_unwind): Declare opaque.
10354 (dummy_frame_p): Declare function.
10355 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10356 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10357 * dummy-frame.c: Include "frame-unwind.h".
10358 (dummy_frame_p): New function.
10359 (dummy_frame_unwind): New variable.
10360 * frame.c: Include "frame-unwind.h".
10361 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10362 to use the new unwind field.
10363 (set_unwind_by_pc): Delete function.
10364 (create_new_frame, get_prev_frame): Set unwind field using
10365 frame_unwind_find_by_pc.
10366 (trad_frame_unwind, trad_frame_unwinder): New variables.
10367 * frame.h (trad_frame_unwind): Declare variable.
10368 (frame_id_unwind_ftype): Delete declaration.
10369 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10370 (struct frame_unwind): Declare opaque.
10371 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10372 register_unwind with a single unwind pointer.
10373 * frame-unwind.h, frame-unwind.c: New files.
10374 * Makefile.in (SFILES): Add frame-unwind.c.
10375 (frame_unwind_h): Define.
10376 (COMMON_OBS): Add frame-unwind.o.
10377 (frame-unwind.o): Specify dependencies.
10378 (frame.o, dummy-frame.o): Update dependencies.
10379
10380 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10381
10382 * ada-valprint.c: Eliminate PTR.
10383 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10384 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10385 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10386 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10387 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10388 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10389 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10390
10391 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10392
10393 * main.c (captured_main): Don't use PTR.
10394 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10395 * gdbtypes.c (lookup_primitive_typename): Ditto.
10396 (lookup_struct_elt_type): Ditto.
10397 * f-valprint.c (info_common_command): Ditto.
10398 (list_all_visible_commons): Ditto.
10399 * jv-typeprint.c (java_type_print_base): Ditto.
10400
10401 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10402 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10403 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10404 i386-interix-nat.c and i386-interix-tdep.c. Rename
10405 m68klinux-nat.c and m68klinux-tdep.c. Rename
10406 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10407 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10408 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10409 * main.c (captured_main): Use xfree, not free.
10410
10411 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10412
10413 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10414 ID back using a parameter.
10415 * frame.c (frame_id_unwind): Update call.
10416 (frame_saved_regs_id_unwind): Update.
10417 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10418 * dummy-frame.h (struct frame_id): Add opaque declaration.
10419 (dummy_frame_id_unwind): Update declaration.
10420
10421 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10422
10423 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10424
10425 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10426
10427 * MAINTAINERS (Stephen P. Smith): Updated email address.
10428
10429 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10430
10431 Fix PR gdb/898
10432 * breakpoint.c (until_break_command): Add new argument. Use it to
10433 decide whether to stop only at the current frame or not.
10434 * breakpoint.h (until_break_command): Update prototype.
10435 * infcmd.c (until_command): Add new argument to until_break_command
10436 call.
10437 (advance_command): New function.
10438 (_initialize_infcmd): Update help string for 'until' command.
10439 Add new 'advance' command.
10440
10441 2003-01-14 David Carlton <carlton@math.stanford.edu>
10442
10443 * linespec.c (decode_line_1): Normalize comments.
10444 (set_flags): Ditto.
10445 (locate_first_half): Ditto.
10446 (decode_compound): Ditto.
10447 (symtab_from_filename): Ditto.
10448 (decode_all_digits): Ditto.
10449 (decode_dollar): Ditto.
10450 (find_methods): Ditto.
10451 (find_toplevel_char): Ditto.
10452
10453 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10454
10455 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10456 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10457 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10458 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10459 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10460 * language.c, language.h, m32r-tdep.c: Update copyright.
10461 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10462 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10463 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10464 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10465 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10466 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10467
10468 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10469
10470 * stabsread.h (process_later, resolve_cfront_continuation):
10471 Obsolete.
10472 Update copyright years.
10473 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10474 Update copyright year.
10475 * dbxread.c(struct cont_elem): Obsolete.
10476 (process_later, process_now): Obsolete functions.
10477 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10478 Update copyright year.
10479 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10480 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10481 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10482 (parse_partial_symbols): Obsolete cfront support.
10483 * stabsread.c
10484 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10485 macros.
10486 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10487 read_cfront_baseclasses, read_cfront_member_functions,
10488 resolve_cfront_continuation,read_cfront_static_fields,
10489 copy_cfront_struct_fields): Obsolete functions.
10490 (define_symbol, read_one_struct_field): Obsolete cfront support.
10491 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10492 Update Copyright year.
10493
10494 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10495
10496 * stack.c (print_frame_info, print_stack_frame_base_stub,
10497 print_stack_frame_base, show_and_print_stack_frame_stub,
10498 show_and_print_stack_frame, print_only_stack_frame_stub,
10499 print_only_stack_frame): Delete functions.
10500 (print_stack_frame_stub): Call print_frame_info instead of
10501 print_frame_info_base.
10502 (print_frame_info_base): Rename to print_frame_info.
10503 (backtrace_command_1): Call print_frame_info, instead of
10504 print_frame_info_base.
10505 (current_frame_command): Call print_stack_frame, instead of
10506 print_only_stack_frame.
10507 (frame_command): Call print_stack_frame, instead of
10508 show_and_print_stack_frame.
10509 (up_command): Ditto.
10510 (down_command): Ditto.
10511 * frame.h (print_only_stack_frame): Delete prototype.
10512 * infrun.c (normal_stop): Call print_stack_frame, instead of
10513 show_and_print_stack_frame.
10514 * thread.c (info_threads_command): Call print_stack_frame, instead
10515 of print_only_stack_frame.
10516
10517 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10518
10519 * README (Graphical interface to GDB): Update URL. Point at
10520 gdb/links/.
10521
10522 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10523 version match.
10524
10525 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10526
10527 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10528 lines.
10529
10530 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10531
10532 * thread-db.c (attach_thread): Prototype.
10533 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10534 thread information (ti), and valid flags (th_valid, ti_valid).
10535 (attach_thread): Move target_pid_to_str call to after the thread
10536 is added to GDB's list. Initialize the cache.
10537 (thread_get_info_callback, thread_db_map_id2thr)
10538 (thread_db_get_info): New functions.
10539 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10540 (thread_db_store_registers, thread_db_thread_alive)
10541 (thread_db_get_thread_local_address): Use them.
10542 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10543 of calling error() for threads in unknown state.
10544
10545 (clear_lwpid_callback): New function.
10546 (thread_db_resume): Use it to clear the cache.
10547
10548 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10549
10550 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10551 (resume_callback): Remove dead code.
10552
10553 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10554
10555 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10556 predicate.
10557 * gdbarch.h, gdbarch.c: Regenerate.
10558 * stack.c (frame_info): Only initialize the saved registers when
10559 FRAME_INIT_SAVED_REGS_P.
10560 * frame.c (frame_saved_regs_register_unwind): Assert
10561 FRAME_INIT_SAVED_REGS_P.
10562 (deprecated_generic_get_saved_register): Ditto.
10563
10564 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10565
10566 * source.c (openp): Squelch warning about "filename".
10567
10568 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10569
10570 * source.c (openp): If the file does not exist don't necessarily
10571 search the path.
10572
10573 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10574
10575 Fix PR gdb/872.
10576 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10577 (integer_types_same_name_p): New function.
10578 (rank_one_type): Use it.
10579 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10580
10581 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10582
10583 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10584 variables.
10585 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10586 * configure.in: Add --with-sysroot.
10587 * configure: Regenerated.
10588 * main.c (gdb_sysroot): New variable.
10589 (captured_main): Initialize gdb_sysroot.
10590 * defs.h (gdb_sysroot): New extern declaration.
10591 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10592
10593 2003-01-12 Michael Chastain <mec@shout.net>
10594
10595 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10596
10597 2003-01-12 Michael Chastain <mec@shout.net>
10598
10599 * top.c (print_gdb_version): Bump copyright year to 2003.
10600
10601 2003-01-12 David Carlton <carlton@bactrian.org>
10602
10603 * linespec.c (symtab_from_filename): Rename variable 's' to
10604 'file_symtab'.
10605
10606 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10607
10608 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10609 dummy frame.
10610 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10611
10612 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10613
10614 * d10v-tdep.c: Include "gdb_assert.h".
10615 (d10v_store_return_value): Rewrite to match current interface.
10616 (d10v_extract_struct_value_address): Ditto.
10617 (d10v_extract_return_value): Ditto.
10618 (d10v_gdbarch_init): Set store_restore_value,
10619 extract_struct_value_address and extract_return_value.
10620
10621 2003-01-12 J. Brobecker <brobecker@gnat.com>
10622
10623 * hpread.c (set_namestring): New procedure replacing the
10624 SET_NAMESTRING macro.
10625 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10626 by calls to set_namestring.
10627
10628 2003-01-11 J. Brobecker <brobecker@gnat.com>
10629
10630 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10631 a compilation warning.
10632 (hpread_process_one_debug_symbol): Likewise.
10633
10634 2003-01-10 David Carlton <carlton@math.stanford.edu>
10635
10636 * linespec.c (decode_line_1): Rename variable 's' to
10637 'file_symtab'.
10638 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10639 (decode_dollar): Ditto.
10640 (decode_variable): Ditto.
10641 (symbol_found): Ditto.
10642
10643 2003-01-09 Michael Chastain <mec@shout.net>
10644
10645 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10646
10647 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10648
10649 * win32-nat.c (set_process_privilege): New function.
10650 (child_attach): Call set_process_privilege() to enable the
10651 SE_DEBUG_NAME user privilege if available in process token.
10652
10653 2003-01-10 J. Brobecker <brobecker@gnat.com>
10654
10655 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10656 compilation error in the previous revision.
10657
10658 2003-01-09 David Carlton <carlton@math.stanford.edu>
10659
10660 * linespec.c: Update copyright.
10661
10662 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10663
10664 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10665 than inferior_ptid.
10666 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10667
10668 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10669
10670 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10671 Update comments.
10672 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10673 (frame_saved_regs_zalloc): Update.
10674 (frame_saved_regs_register_unwind): Update.
10675 (create_new_frame): Update.
10676 (get_prev_frame): Update.
10677 (frame_extra_info_zalloc): Update.
10678 (deprecated_get_frame_saved_regs): Update.
10679 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10680 * cris-tdep.c: Update comment.
10681
10682 * somsolib.h: Fix function indentation.
10683 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10684 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10685 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10686 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10687 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10688
10689 * infrun.c (follow_fork): Use ISO C definition.
10690 * expprint.c (print_subexp): Use xfree instead of free.
10691 * charset.c: Include "gdb_string.h" instead of <string.h>.
10692 (register_iconv_charsets): Use ISO C definition.
10693 (host_charset, target_charset): Ditto.
10694 * Makefile.in (charset.o): Update dependencies.
10695 (mi-cmd-env.o): Update dependencies.
10696
10697 2003-01-08 Andrew Cagney <cagney@redhat.com>
10698
10699 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10700 get_frame_base.
10701
10702 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10703
10704 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10705 build directories. Save edited gdb output in Mbuild.log. If a
10706 build fails, remove any final GDB executable.
10707
10708 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10709
10710 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10711 replacing hex constants with function names and stripping leading
10712 file name directory prefixes.
10713
10714 2003-01-08 Andrew Cagney <cagney@redhat.com>
10715
10716 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10717 get_frame_base.
10718
10719 2003-01-08 David Carlton <carlton@math.stanford.edu>
10720
10721 * linespec.c (decode_line_1): Move code into decode_variable.
10722 (decode_variable): New function.
10723
10724 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10725
10726 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10727
10728 2003-01-08 Andrew Cagney <cagney@redhat.com>
10729
10730 * cris-tdep.c (cris_frame_init_saved_regs): Use
10731 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10732 saved_regs buffer.
10733 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10734 (sh64_nofp_frame_init_saved_regs): Ditto.
10735 (sh_fp_frame_init_saved_regs): Ditto.
10736 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10737 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10738 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10739 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10740
10741 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10742
10743 * minsyms.c (lookup_minimal_symbol): Update comment.
10744 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10745 (lookup_minimal_symbol_solib_trampoline): Likewise.
10746
10747 2003-01-08 Andrew Cagney <cagney@redhat.com>
10748
10749 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10750 frame_relative_level.
10751
10752 * alpha-tdep.c: Use get_frame_extra_info.
10753 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10754 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10755 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10756 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10757
10758 * alpha-tdep.c: Use get_next_frame.
10759 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10760 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10761 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10762 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10763 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10764 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10765 * xstormy16-tdep.c: Ditto.
10766
10767 2003-01-07 Andrew Cagney <cagney@redhat.com>
10768
10769 * alpha-tdep.c: Use get_frame_base.
10770 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10771 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10772 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10773 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10774 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10775 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10776 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10777 * config/sparc/tm-sparc.h: Ditto.
10778
10779 2003-01-07 Andrew Cagney <cagney@redhat.com>
10780
10781 * frame.c (deprecated_get_frame_context): New function.
10782 (deprecated_set_frame_context): New function.
10783 * frame.h (deprecated_get_frame_context): Declare.
10784 (deprecated_set_frame_context): Declare.
10785 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10786 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10787
10788 2003-01-07 Andrew Cagney <cagney@redhat.com>
10789
10790 * frame.c (deprecated_set_frame_next_hack): New function.
10791 (deprecated_set_frame_prev_hack): New function.
10792 * frame.h (deprecated_set_frame_next_hack): Declare.
10793 (deprecated_set_frame_prev_hack): Declare.
10794 * mcore-tdep.c (analyze_dummy_frame): Use
10795 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10796 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10797
10798 2003-01-07 David Carlton <carlton@math.stanford.edu>
10799
10800 * linespec.c (decode_line_1): Move code into decode_dollar.
10801 (decode_dollar): New function.
10802
10803 2003-01-07 Andrew Cagney <cagney@redhat.com>
10804
10805 * arm-tdep.c (arm_init_extra_frame_info): Use
10806 deprecated_update_frame_base_hack.
10807 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10808 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10809 (fix_frame_pointer): Ditto.
10810 (mn10300_analyze_prologue): Ditto.
10811
10812 2003-01-07 Andrew Cagney <cagney@redhat.com>
10813
10814 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10815 extra_info using frame_extra_info_zalloc.
10816 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10817 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10818 (sh64_init_extra_frame_info): Ditto.
10819 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10820 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10821 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10822 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10823 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10824 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10825 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10826 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10827 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10828 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10829 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10830 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10831
10832 * mn10300-tdep.c (analyze_dummy_frame): Use
10833 deprecated_set_frame_extra_info_hack.
10834 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10835
10836 2003-01-07 J. Brobecker <brobecker@gnat.com>
10837
10838 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10839 class is not scText. These do not define "real" procedures.
10840 (parse_partial_symbols): Likewise.
10841
10842 2003-01-06 Michael Snyder <msnyder@redhat.com>
10843
10844 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10845
10846 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10847
10848 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10849 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10850 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10851 deprecated_frame_xmalloc_with_cleanup.
10852 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10853 deprecated_frame_xmalloc.
10854 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10855 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10856
10857 2003-01-06 Andrew Cagney <cagney@redhat.com>
10858
10859 * x86-64-linux-tdep.c: Include "osabi.h".
10860 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10861
10862 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10863
10864 2003-01-06 Andrew Cagney <cagney@redhat.com>
10865
10866 * MAINTAINERS (Target Instruction Set Architectures): Update
10867 arm-elf. Can be built with -Werror, has been multiarched.
10868
10869 * value.h (unpack_long): Make buffer parameter constant.
10870 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10871 * scm-lang.h (scm_parse): Ditto.
10872 * defs.h (extract_typed_address, extract_address): Ditto.
10873 (extract_long_unsigned_integer): Ditto.
10874 * inferior.h (unsigned_pointer_to_address): Ditto.
10875 (signed_pointer_to_address): Ditto.
10876 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10877 * gdbarch.h, gdbarch.c: Regenerate.
10878 * findvar.c (extract_long_unsigned_integer): Update.
10879 (extract_address): Update.
10880 (extract_typed_address): Update.
10881 (unsigned_pointer_to_address): Update.
10882 * values.c (unpack_long): Update.
10883 (unpack_double): Update.
10884 (unpack_pointer): Update.
10885 (unpack_field_as_long): Update.
10886 * d10v-tdep.c (d10v_pointer_to_address): Update.
10887 * avr-tdep.c (avr_pointer_to_address): Update.
10888 * scm-lang.c (scm_unpack): Update.
10889 * findvar.c (signed_pointer_to_address): Update.
10890
10891 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10892
10893 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10894 since it is in i386-tdep.c.
10895
10896 2003-01-06 J. Brobecker <brobecker@gnat.com>
10897
10898 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10899 failure introduced in the previous change.
10900
10901 2003-01-05 Michael Chastain <mec@shout.net>
10902
10903 * README: Remove references to deleted remote-*.c files:
10904 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10905 remote-nrom.c, remote-os9k.c, remote-udi.c.
10906
10907 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10908
10909 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10910 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10911 i386_get_longjmp_target.
10912
10913 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10914
10915 * arm-tdep.c (prologue_cache): Change to a pointer.
10916 (_initialize_arm_tdep): Allocate prologue_cache.
10917 (check_prologue_cache): Update.
10918 (save_prologue_cache): Update.
10919 (arm_gdbarch_init): Update.
10920
10921 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10922
10923 * stabsread.c (update_method_name_from_physname): Call complaint()
10924 instead of error.
10925
10926 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10927
10928 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10929 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10930 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10931
10932 * blockframe.c: Include "gdbcmd.h" and "command.h".
10933 (backtrace_below_main): New variable.
10934 (file_frame_chain_valid, func_frame_chain_valid)
10935 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10936 (generic_func_frame_chain_valid): Remove functions.
10937 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10938 (_initialize_blockframe): New function.
10939 * Makefile.in (blockframe.o): Update dependencies.
10940 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10941 comment. Call frame_chain_valid ().
10942 * frame.h: Remove old prototypes. Add prototype for
10943 frame_chain_valid and update comments to match.
10944 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10945 Remove old comment.
10946 * gdbarch.h: Regenerated.
10947 * gdbarch.c: Regenerated.
10948
10949 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10950 set_gdbarch_frame_chain_valid.
10951 * avr-tdep.c (avr_gdbarch_init): Likewise.
10952 * cris-tdep.c (cris_gdbarch_init): Likewise.
10953 * frv-tdep.c (frv_gdbarch_init): Likewise.
10954 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10955 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10956 (i386_nw_init_abi): Likewise.
10957 (i386_gdbarch_init): Likewise.
10958 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10959 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10960 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10961 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10962 * mips-tdep.c (mips_gdbarch_init): Likewise.
10963 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10964 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10965 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10966 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10967 * s390-tdep.c (s390_gdbarch_init): Likewise.
10968 * sh-tdep.c (sh_gdbarch_init): Likewise.
10969 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10970 * v850-tdep.c (v850_gdbarch_init): Likewise.
10971 * vax-tdep.c (vax_gdbarch_init): Likewise.
10972 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10973
10974 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10975 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10976 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10977 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10978 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10979 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10980 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10981 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10982
10983 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10984
10985 * Makefile.in (acconfig_h): Remove incorrect macro.
10986 (config_h): Define.
10987 (osabi.o): Update dependencies.
10988 * configure.tgt: Set gdb_osabi based on target triplet.
10989 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10990 * configure: Regenerated.
10991 * config.in: Regenerated.
10992 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10993 (GDB_OSABI_DEFAULT): Define if not already defined.
10994 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10995 (set_osabi_string): New variables.
10996 (gdbarch_register_osabi): Add new OS ABI to
10997 gdb_osabi_available_names.
10998 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10999 (set_osabi, show_osabi): New functions.
11000 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11001
11002 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11003
11004 * arch-utils.c (gdbarch_info_init): Set osabi to
11005 GDB_OSABI_UNINITIALIZED.
11006 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11007 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11008 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11009 * gdbarch.c: Regenerated.
11010 * gdbarch.h: Regenerated.
11011 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11012 there's no BFD.
11013 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11014 * osabi.h (enum gdb_osabi): Move to defs.h.
11015 (gdbarch_init_osabi): Update prototype.
11016 * defs.h (enum gdb_osabi): Moved here.
11017 * Makefile.in: Update dependencies.
11018
11019 * alpha-tdep.h: Don't include "osabi.h".
11020 (struct gdbarch_tdep): Remove osabi member.
11021 * alpha-tdep.c: Include "osabi.h".
11022 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11023 iterate over arches. Update call to gdbarch_init_osabi.
11024 (alpha_dump_tdep): Don't dump osabi.
11025 * alpha-linux-tdep.c: Include "osabi.h".
11026 * alpha-osf1-tdep.c: Include "osabi.h".
11027 * alphafbsd-tdep.c: Include "osabi.h".
11028 * alphanbsd-tdep.c: Include "osabi.h".
11029
11030 * arm-tdep.h: Don't include "osabi.h".
11031 (struct gdbarch_tdep): Remove osabi member.
11032 * arm-tdep.c: Include "osabi.h".
11033 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11034 iterate over arches. Update call to gdbarch_init_osabi.
11035 (arm_dump_tdep): Don't dump osabi.
11036 * arm-linux-tdep.c: Include "osabi.h".
11037 * armnbsd-tdep.c: Include "osabi.h".
11038
11039 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11040 Update call to gdbarch_init_osabi.
11041
11042 * i386-tdep.h: Don't include "osabi.h".
11043 (struct gdbarch_tdep): Remove osabi member.
11044 * i386-tdep.c: Include "osabi.h".
11045 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11046 iterate over arches. Update call to gdbarch_init_osabi.
11047 (i386_dump_tdep): Don't dump osabi.
11048 * i386-linux-tdep.c: Include "osabi.h".
11049 * i386-sol2-tdep.c: Include "osabi.h".
11050 * i386bsd-tdep.c: Include "osabi.h".
11051 * i386gnu-tdep.c: Include "osabi.h".
11052 * i386ly-tdep.c: Include "osabi.h".
11053 * i386nbsd-tdep.c: Include "osabi.h".
11054 * i386obsd-tdep.c: Include "osabi.h".
11055
11056 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11057 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11058 check osabi when iterating over arches. Update call to
11059 gdbarch_init_osabi.
11060 (mips_dump_tdep): Don't dump osabi.
11061
11062 * ns32k-tdep.h: Don't include "osabi.h".
11063 (struct gdbarch_tdep): Remove.
11064 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11065 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11066 allocate tdep. Update call to gdbarch_init_osabi.
11067 (ns32k_dump_tdep): Remove.
11068 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11069 * ns32knbsd-tdep.c: Include "osabi.h".
11070
11071 * ppc-tdep.h: Don't include "osabi.h".
11072 (struct gdbarch_tdep): Remove osabi member.
11073 * rs6000-tdep.c: Include "osabi.h".
11074 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11075 osabi when iterating over arches. Update call to
11076 gdbarch_init_osabi.
11077 (rs6000_dump_tdep): Don't dump osabi.
11078 * ppc-linux-tdep.c: Include "osabi.h".
11079 * ppcnbsd-tdep.c: Include "osabi.h".
11080
11081 * sh-tdep.h: Don't include "osabi.h".
11082 (struct gdbarch_tdep): Remove osabi member.
11083 * sh-tdep.c: Include "osabi.h".
11084 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11085 iterate over arches. Update call to gdbarch_init_osabi.
11086 (sh_dump_tdep): Don't dump osabi.
11087 * shnbsd-tdep.c: Include "osabi.h".
11088
11089 * sparc-tdep.c: Include "osabi.h".
11090 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11091 iterate over arches. Update call to gdbarch_init_osabi.
11092 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11093 tdep structure.
11094
11095 * vax-tdep.h: Don't include "osabi.h".
11096 (struct gdbarch_tdep): Remove.
11097 * vax-tdep.c: Include "osabi.h".
11098 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11099 iterate over arches. Don't allocate tdep. Update call
11100 to gdbarch_init_osabi.
11101 (vax_dump_tdep): Remove.
11102 (_initialize_vax_tdep): Update call to gdbarch_register.
11103
11104 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11105
11106 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11107 entirely.
11108 (breakpoint_re_set_one): Don't fetch the value for a disabled
11109 watchpoint.
11110
11111 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11112
11113 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11114 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11115 (COERCE_FLOAT_TO_DOUBLE): Remove.
11116 * gdbarch.c: Regenerate.
11117 * gdbarch.h: Regenerate.
11118 * Makefile.in: Remove value_h from gdbarch_h.
11119 * valops.c (coerce_float_to_double): New variable.
11120 (default_coerce_float_to_double): Remove.
11121 (standard_coerce_float_to_double): Remove.
11122 (value_arg_coerce): Use coerce_float_to_double.
11123 (_initialize_valops): Add "set coerce-float-to-double".
11124 * value.h (default_coerce_float_to_double): Remove prototype.
11125 (standard_coerce_float_to_double): Remove prototype.
11126
11127 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11128 prototyped.
11129 * mdebugread.c (parse_symbol): Likewise.
11130 * stabsread.c (define_symbol): Mark all functions as prototyped.
11131
11132 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11133 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11134 set_gdbarch_coerce_float_to_double.
11135 * arm-tdep.c (arm_gdbarch_init): Likewise.
11136 * frv-tdep.c (frv_gdbarch_init): Likewise.
11137 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11138 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11139 * mips-tdep.c (mips_gdbarch_init): Likewise.
11140 (mips_coerce_float_to_double): Remove.
11141 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11142 (rs6000_coerce_float_to_double): Remove.
11143 * s390-tdep.c (s390_gdbarch_init): Likewise.
11144 * sh-tdep.c (sh_gdbarch_init): Likewise.
11145 (sh_coerce_float_to_double): Remove.
11146 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11147 (sparc_coerce_float_to_double): Remove.
11148 * v850-tdep.c (v850_gdbarch_init): Likewise.
11149 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11150 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11151 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11152 (hppa_coerce_float_to_double): Remove prototype.
11153 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11154
11155 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11156
11157 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11158
11159 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11160
11161 Suggested by Stewart Brown <sb24@avaya.com>:
11162 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11163 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11164 (c_type_print_varspec_suffix): Likewise.
11165
11166 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11167
11168 * configure.in: Don't set and AC_SUBST SUBDIRS.
11169 * configure: Regenerated.
11170
11171 * configure.in: Remove code dealing with shared libraries.
11172 * Makefile.in: Remove HLDFLAGS and HLDENV.
11173 * configure: Regenerated.
11174
11175 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11176
11177 * frame.c (deprecated_frame_xmalloc): New function.
11178 (deprecated_set_frame_saved_regs_hack): New function.
11179 (deprecated_set_frame_extra_info_hack): New function.
11180 * frame.h (deprecated_frame_xmalloc): Declare.
11181 (deprecated_set_frame_saved_regs_hack): Declare.
11182 (deprecated_set_frame_extra_info_hack): Declare.
11183
11184 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11185
11186 * configure.in: Move code that provides the --enable-gdbtk option
11187 right after the code that handles the --enable-tui option, and
11188 polish it somewhat.
11189 * configure: Regenerated.
11190
11191 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11192 AC_CHECK_FUNCS and remove the old check for pread64.
11193 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11194 * acconfig.h (_GNU_SOURCE): Add.
11195 (HAVE_PREAD64): Remove.
11196 * configure, aclocal.m4, config.in: Regenerated.
11197
11198 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11199
11200 * alpha-tdep.c: Use get_frame_saved_regs.
11201 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11202 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11203 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11204 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11205 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11206
11207 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11208
11209 * configure.in: Remove all use of the SUBDIRS variable; add
11210 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11211 code providing the --enable-multi-ice option, and move it right in
11212 front of the code that checks whether gdbserver is supported.
11213 Polish that too.
11214 * configure: Regenerated.
11215 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11216 @SUBDIRS@.
11217
11218 2003-01-03 Andrew Cagney <cagney@redhat.com>
11219
11220 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11221 * avr-tdep.c, cris-tdep.c: Ditto.
11222 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11223 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11224
11225 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11226
11227 * configure.in: Remove --enable-netrom option.
11228 * configure: Regenerated.
11229
11230 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11231
11232 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11233 declaration for `struct re_pattern_buffer' instead.
11234 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11235
11236 2003-01-03 J. Brobecker <brobecker@gnat.com>
11237
11238 * mdebugread.c (parse_symbol): Count until the stEnd matching
11239 the structure name.
11240
11241 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11242
11243 * configure.in: Remove --with-cpu option.
11244 subscripts. Remove evil changequotes here.
11245 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11246 * config.in, configure: Regenerated.
11247
11248 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11249 * configure.in: Cleanup section that sources GDB and BFD configure
11250 subscripts. Remove evil changequotes here.
11251 * config.in, configure: Regenerated.
11252
11253 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11254
11255 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11256 frame accessor methods.
11257 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11258 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11259 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11260 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11261 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11262 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11263 * z8k-tdep.c: Ditto.
11264
11265 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11266
11267 * configure.in: Remove UI_OUT configuration code.
11268 * ada-lang.c: Update assuming UI_OUT is always true.
11269 * Makefile.in (UIOUT_CFLAGS): Remove.
11270 * configure: Regenerated.
11271 * TODO: Remove blurb about elimination of -DUI_OUT.
11272
11273 * configure.in: Move code that provides the --enable-gdbcli,
11274 --enable-gdbmi options right before the code that handles the
11275 --enable-tui option. Polish a bit.
11276 * configure: Regenerated.
11277
11278 * configure.in: Rewrite check for GNU regex and the
11279 --without-included regex option, and move it into the "Checks for
11280 library functions" section. This makes us use the system regex
11281 again by default on systems with version 2 of the GNU C library.
11282 This was apparently broken.
11283 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11284 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11285 * config.in, configure: Regenerated.
11286
11287 * configure.in: Move code that provides the --enable-tui option
11288 before the "Checks for libraries" section. Polish the code
11289 somewhat and set need_curses to yes if we build the TUI. Rewrite
11290 code that looks for a library providing termcap functionality to
11291 match more closely what's done in the Readline library, and move
11292 it into to the "Checks for libraries" section.
11293 * configure: Regenerated.
11294 * Makefile.in (TERMCAP): Remove variable.
11295 * config/i386/go32.mh (TERMCAP): Remove variable.
11296
11297 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11298
11299 * MAINTAINERS: Mention gdb_mbuild.sh.
11300 * gdb_mbuild.sh: Rewrite.
11301
11302 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11303
11304 * configure.in: Fix typo in last change.
11305 * config.in, configure: Regenerated.
11306
11307 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11308
11309 * valarith.c (value_binop): Delete obsolete code and comments.
11310 * configure.host: Ditto.
11311 * buildsym.h (make_blockvector): Ditto.
11312 * buildsym.c (make_blockvector): Ditto.
11313 * defs.h (enum language): Ditto.
11314 (chill_demangle): Ditto.
11315 * elfread.c (elf_symtab_read): Ditto.
11316 * dwarfread.c (CHILL_PRODUCER): Ditto.
11317 (set_cu_language): Ditto.
11318 (handle_producer): Ditto.
11319 * expprint.c (print_subexp): Ditto.
11320 * gdbtypes.c (chill_varying_type): Ditto.
11321 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11322 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11323 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11324 (chill_varying_type): Ditto.
11325 * language.h (_LANG_chill): Ditto.
11326 * language.c (binop_result_type, integral_type): Ditto.
11327 (character_type, string_type, structured_type): Ditto.
11328 (lang_bool_type, binop_type_check): Ditto.
11329 * stabsread.h (os9k_stabs): Ditto.
11330 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11331 (define_symbol, read_type, read_struct_fields): Ditto.
11332 (read_array_type, read_enum_type, read_huge_number): Ditto.
11333 (read_range_type, start_stabs): Ditto.
11334 * symfile.c (init_filename_language_table): Ditto.
11335 (add_psymbol_with_dem_name_to_list): Ditto.
11336 * symtab.c (symbol_init_language_specific): Ditto.
11337 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11338 * symtab.h (struct general_symbol_info): Ditto.
11339 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11340 * typeprint.c (typedef_print): Ditto.
11341 * utils.c (fprintf_symbol_filtered): Ditto.
11342 * valops.c (value_cast, search_struct_field, value_slice): Delete
11343 obsolete code.
11344 (varying_to_slice): Delete function.
11345 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11346 (varying_to_slice): Delete declaration.
11347 * MAINTAINERS: Update.
11348
11349 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11350
11351 * configure.in: Reorganize "Checks for library functions section"
11352 a bit. Remove check for `btowc' and `isascii' functions.
11353 * configure: Regenerated.
11354
11355 * acconfig.h (_MSE_INT_H): Remove.
11356 * configure.in: Create "Checks for header files" section, and move
11357 appropriate tests there. Don't check for objlist.h, wchar.h,
11358 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11359 misdetection fix. Also add "Checks for types", "Checks for
11360 compiler characteristics" and "Checks for library functions"
11361 sections.
11362 * config.in, configure: Regenerated.
11363
11364 * configure.in: Create "Checks for programs" section, and move
11365 appropriate tests there.
11366
11367 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11368
11369 * configure.in: Create "Checks for libraries" section, and move
11370 appropriate tests there. Cleanup check for wctype in libw. Use
11371 AC_SEARCH_LIBS to see whether we need libsocket.
11372 * configure: Regenerated.
11373
11374 For older changes see ChangeLog-2002
11375 \f
11376 Local Variables:
11377 mode: change-log
11378 left-margin: 8
11379 fill-column: 74
11380 version-control: never
11381 End:
This page took 0.247637 seconds and 5 git commands to generate.