* Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
2
3 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
4 (sh64-tdep.o): Add dependencies.
5 * configure.tgt: Add FIXME to sh-*-linux*.
6 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
7 (sh_gdbarch_init): Always set correct sh_show_regs function
8 pointer. Call sh64_gdbarch_init() if machine type is sh5.
9 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
10 * sh64-tdep.c: New file, containing all sh64 related code from
11 sh-tdep.c.
12 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
13 * config/sh/linux.mt (TDEPFILES): Ditto.
14 * config/sh/nbsd.mt (TDEPFILES): Ditto.
15 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
16 * config/sh/wince.mt (TDEPFILES): Ditto.
17
18 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
19
20 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
21 (stop_wait_callback): Handle !lp->signalled also.
22 (lin_lwp_has_pending, flush_callback): New functions.
23 (lin_lwp_wait): Call flush_callback.
24 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
25 (linux_proc_pending_signals): New function.
26 * linux-nat.h (linux_proc_pending_signals): Add prototype.
27
28 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
29
30 From Nick Kelsey <nickk@ubicom.com>:
31 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
32 when the stop PC is at the beginning of a function also.
33
34 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
35
36 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
37 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
38
39 2003-09-06 Mark Kettenis <kettenis@gnu.org>
40
41 * sol-thread.c: Include "gdb_string.h".
42
43 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
44
45 * gcore.c: Reorder include files in alphabetical order. Include
46 "gdb_assert.h". Various coding style fixes.
47 (derive_stack_segment, derive_heap_segment): Replace check for
48 non-null BOTTOM and TOP with gdb_assert.
49 (derive_heap_segment): Replace check for successful creation of
50 ZERO with gdb_assert.
51 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
52
53 2003-09-04 Andrew Cagney <cagney@redhat.com>
54
55 * thread-db.c (verbose_dlsym): New function.
56 (thread_db_load): Use verbose_dlsym
57 (thread_db_new_objfile): Print that libthread_db was loaded, and
58 that thread debugging was enabled.
59
60 2003-09-04 Andrew Cagney <cagney@redhat.com>
61
62 * configure.tgt: Add "mips64*-*-*" target. Delete
63 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
64 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
65 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
66 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
67 mips*-sony-*, and mips64*-*-elf* targets.
68 * config/mips/embedl.mt: Delete file.
69 * config/mips/embedl64.mt: Delete file.
70 * config/mips/mips.mt: Delete file.
71 * config/mips/mips64.mt: Delete file.
72 * config/mips/tm-embed.h: Delete file.
73 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
74 * config/mips/embed64.mt: Delete out-of-date comment.
75
76 2003-09-04 Andrew Cagney <cagney@redhat.com>
77
78 * hppa-tdep.c (hppa_gdbarch_init): Set
79 "have_nonsteppable_watchpoint".
80 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
81 * mips-tdep.c (mips_dump_tdep): Do not print
82 HAVE_NONSTEPPABLE_WATCHPOINT.
83 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
84 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
85 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
86 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
87
88 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
89
90 * breakpoint.c (watchpoint_check): Remove accidentally checked in
91 unused code. Add comment.
92
93 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
94
95 * breakpoint.c (watchpoint_check): Check for pc being in an
96 epilogue if watchpoint frame couldn't be found.
97
98 2003-09-04 Andrew Cagney <cagney@redhat.com>
99
100 * Makefile.in: Re-generate all dependencies.
101
102 2003-09-03 Andrew Cagney <cagney@redhat.com>
103
104 * arch-utils.h (legacy_print_insn): Delete declaration.
105 * arch-utils.c (legacy_print_insn): Delete function.
106 * disasm.c (deprecated_tm_print_insn_info): Delete.
107 (_initialize_disasm): Delete function, contained code initializing
108 deprecated_tm_print_insn_info.
109 * gdbarch.sh (deprecated_tm_print_insn): Delete.
110 (deprecated_tm_print_insn_info): Delete.
111 (TARGET_PRINT_INSN): Do not provide a default.
112 * gdbarch.h, gdbarch.c: Re-generate.
113
114 2003-09-03 Andrew Cagney <cagney@redhat.com>
115
116 * disasm.c (fprintf_disasm): New function.
117 (gdb_disassemble_info): Call "init_disassemble_info", instead of
118 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
119 reverts 2003-08-14 change.
120 (_initialize_disasm): Call "init_disassemble_info", instead of
121 INIT_DISASSEMBLE_INFO_NO_ARCH.
122
123 2003-09-03 Michael Snyder <msnyder@redhat.com>
124
125 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
126
127 2003-09-03 Andrew Cagney <cagney@redhat.com>
128
129 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
130 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
131 * symfile.c (syms_from_objfile): Update.
132 (reread_symbols): `Update
133 * exec.c (exec_file_attach): Update.
134 (exec_file_attach): Update.
135 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
136 2003-08-29 change.
137 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
138
139 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
140
141 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
142 trad-frame.h.
143 (arm_get_cache): Delete macro.
144 (struct arm_prologue_cache): Update comments. Make saved_regs into
145 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
146 to prev_sp.
147 (thumb_scan_prologue): Update for cache changes. Don't call
148 DEPRECATED_PC_IN_CALL_DUMMY.
149 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
150 argument and use it in desperation search for our prologue. Do not
151 search past the specified PC.
152 (arm_make_prologue_cache): Simplify.
153
154 (arm_prologue_this_id, arm_prologue_prev_register)
155 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
156 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
157 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
158 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
159 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
160
161 (arm_frame_chain_valid, arm_find_callers_reg)
162 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
163 (arm_pop_frame): Delete obsolete methods.
164 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
165
166 (arm_gdbarch_init): Update for new frame methods. Register prologue
167 and sigtramp unwinders. Set the default frame base method.
168
169 * Makefile.in (arm-tdep.o): Update dependencies.
170 * varobj.c (find_frame_addr_in_frame_chain): Call
171 get_frame_base_address.
172 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
173
174 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
175
176 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
177 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
178 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
179 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
180 Take NEXT_FRAME and CACHE arguments. Call
181 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
182 Set unwound_pc in CACHE instead of modifying the frame argument.
183 Don't bother checking the frame type when looking for sigtramp
184 frames.
185 (arm_make_prologue_cache, arm_frame_chain)
186 (arm_init_extra_frame_info): New functions.
187
188 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
189
190 * arm-tdep.c (arm_get_cache): Define.
191 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
192 unwound_sp, unwound_pc, and saved_regs.
193 (thumb_scan_prologue): Take a cache instead of the frame.
194 (arm_scan_prologue): Likewise.
195 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
196 instead of a temporary frame.
197 (arm_init_extra_frame_info): Allocate and use a cache.
198 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
199
200 2003-09-03 Andrew Cagney <cagney@redhat.com>
201
202 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
203 * config/mips/wince.mt (TM_CLIBS): Ditto.
204 * config/sh/wince.mt (TM_CLIBS): Ditto.
205 * config/pa/hppa64.mt (TM_CLIBS): Delete.
206 * config/sparc/sp64.mt (CC): Delete.
207
208 2003-09-03 Andrew Cagney <cagney@redhat.com>
209
210 * defs.h: Do not include "arch-utils.h".
211 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
212 GDB_MULTI_ARCH_PURE.
213 * configure.in (GDB_MULTI_ARCH): Do not define.
214 * configure, config.in: Regenerate.
215 * configure.tgt: Do not set variable "gdb_multi_arch".
216 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
217 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
218 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
219 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
220 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
221 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
222 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
223 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
224 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
225 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
226 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
227 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
228 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
229 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
230 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
231 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
232 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
233 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
234
235 2003-08-30 Michael Chastain <mec@shout.net>
236
237 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
238 * config/m68k/nm-hp300hpux.h: Delete.
239 * config/m68k/tm-hp300hpux.h: Delete.
240 * config/m68k/xm-hp300hpux.h: Delete.
241 * config/m68k/xm-hp300bsd.h: Delete.
242 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
243 tm-hp300hpux.h, xm-hp300hpux.h.
244 * somsolib.c: Remove comment about hp300 shared libraries.
245
246 2003-08-31 Mark Kettenis <kettenis@gnu.org>
247
248 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
249 Only define PTRACE_GET_THREAD_AREA is not already defined.
250 Various style fixes in code and comments and some additional
251 spelling fixes in comments. Move after functions dealing with
252 debug registers.
253 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
254 Fix coding-style.
255
256 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
257 frame_unwind_register_unsigned instead of
258 frame_unwind_unsigned_register.
259
260 2003-08-30 Mark Kettenis <kettenis@gnu.org>
261
262 * configure.in: Search for gethostbyname in libnsl.
263 * configure: Regenerated.
264
265 2003-08-29 Mark Kettenis <kettenis@gnu.org>
266
267 * configure.in: Remove redundant AC_MSG_RESULT in check for
268 uintptr_t in stdint.h.
269 * configure: Regenerated.
270
271 * amd64-nat.h (struct regcache): Add opaque declaration.
272
273 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
274 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
275 Change "register array" to "register cache" in comments.
276 (x86_64_linux_gregset64_reg_offset): New variable.
277 (GETREGS_SUPPLIES): Remove macro.
278 (supply_gregset): Call amd64_supply_native_gregset instead of
279 x86_64_linux_supply_gregset.
280 (fill_gregset): Rename `regno' to `regnum'. Call
281 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
282 (store_regs): Rename `regno' to `regnum'.
283 (store_fpregs): Rename `regno' to `regnum'.
284 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
285 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
286 Reorganize function a bit.
287 (store_inferior_registers): Rename `regno' to `regnum'. Use
288 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
289 Reorganize function a bit.
290 (_initialize_x86_64_linux_nat): New function.
291 * config/i386/x86-64linux.mh.
292
293 2003-08-29 Andrew Cagney <cagney@redhat.com>
294
295 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
296 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
297 (target_remove_watchpoint): Delete macro.
298 (target_insert_watchpoint): Delete macro.
299 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
300 (remote_mips_stopped_by_watchpoint): Delete declaration.
301 (remote_mips_remove_watchpoint): Delete declaration.
302 (remote_mips_set_watchpoint): Delete declaration.
303 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
304 * remote-mips.c (_initialize_remote_mips): Set
305 "to_insert_watchpoint", "to_stopped_by_watchpoint",
306 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
307 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
308 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
309 (mips_stopped_by_watchpoint): Rename
310 remote_mips_stopped_by_watchpoint.
311 (mips_can_hardware_watchpoint): Rename
312 remote_mips_can_use_hardware_watchpoint, update function
313 signature.
314
315 2003-08-29 Mark Kettenis <kettenis@gnu.org>
316
317 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
318 USER_DS. We haven't given them a register number yet.
319
320 * amd64-nat.h: New file.
321 * amd64-nat.c: New file.
322 * amd64fbsd-nat.c: Include "amd64-nat.h".
323 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
324 (amd64fbsd32_r_reg_offset): New variable.
325 (supply_gregset): Simply call amd64_supply_native_gregset.
326 (fill_gregset): Rename `regno' to `regnum'. Simply call
327 amd64_collect_native_gregset.
328 (fill_fpregset): Rename `regno' to `regnum'.
329 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
330 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
331 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
332 `fpregset_t'. Call amd64_supply_native_gregset instead of
333 supply_gregset. Call x86_64_supply_fxsave instead of
334 supply_fpregset.
335 (store_inferior_registers): Rename `regno' to `regnum'. Replace
336 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
337 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
338 `fpregset_t'. Call amd64_collect_native_gregset instead of
339 fill_gregset. Call x86_64_collect_fxsave instead of
340 fill_fpregset.
341 (_initialize_am64fbsd_nat): Initialize
342 amd64_native_gregset32_reg_offset and
343 amd64_native_gregset64_reg_offset.
344 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
345
346 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
347 null pointer. Fix typo in comment.
348
349 * regcache.c (supply_register): Reimplement to call
350 regcache_raw_supply.
351 (regcache_collect): Reimplement by calling regcache_raw_collect.
352
353 2003-08-28 Mark Kettenis <kettenis@gnu.org>
354
355 * regcache.c (register_buffer): Consitify first argument.
356 (regcache_raw_supply, regcache_raw_collect): New
357 functions.
358
359 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
360
361 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
362 by Nathan J. Williams.
363
364 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
365
366 * lin-lwp.c (wait_lwp): New function, copied from
367 stop_wait_callback. Clean up.
368 (stop_wait_callback): Use wait_lwp.
369
370 2003-08-28 Andrew Cagney <cagney@redhat.com>
371
372 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
373 flavour and disassembler options.
374 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
375 (mips_gdbarch_init): Set "print_insn". Delete initialization of
376 deprecated_tm_print_insn_info.
377
378 2003-08-27 Andrew Cagney <cagney@redhat.com>
379
380 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
381 Use target_read_memory.
382 (s390_get_frame_info): Update. Do not reference
383 deprecated_tm_print_insn_info.
384 (s390_check_function_end, s390_is_sigreturn): Ditto.
385
386 2003-08-27 Andrew Cagney <cagney@redhat.com>
387
388 * Makefile.in (cris-tdep.o): Update dependencies.
389 * cris-tdep.c: Include "gdb_assert.h".
390 (cris_gdbarch_init): Set print_insn.
391 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
392 (cris_delayed_get_disassembler): Simplify, directly call the
393 disassembler returned by cris_get_disassembler.
394 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
395 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
396 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
397 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
398 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
399 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
400 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
401 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
402 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
403 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
404 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
405 (gdb_print_insn_sparc): Delete function.
406 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
407 deprecated_tm_print_insn_info.
408 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
409 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
410 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
411 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
412 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
413 * s390-tdep.c (gdb_print_insn_s390): Delete function.
414 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
415 (s390_gdbarch_init): Set print_insn.
416
417 2003-08-27 Andrew Cagney <cagney@redhat.com>
418
419 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
420 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
421 * infcall.c (call_function_by_hand): Convert the entry point
422 address into a code address.
423
424 2003-08-27 Andrew Cagney <cagney@redhat.com>
425
426 * dsrec.c: Include "gdb_string.h".
427 * Makefile.in (dsrec.o): Update dependencies.
428
429 2003-08-27 Michael Chastain <mec@shout.net>
430
431 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
432
433 2003-08-27 Andrew Cagney <cagney@redhat.com>
434
435 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
436 (alpha_osf1_init_abi): Do not set call_dummy_address.
437
438 2003-08-27 David Carlton <carlton@kealia.com>
439
440 From Randolph Chung <tausq@debian.org>:
441 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
442 compiles with -Wformat-nonliteral -Werror.
443
444 2003-08-26 Jim Blandy <jimb@redhat.com>
445
446 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
447 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
448 bfd_lookup_symbol, since we only want symbols in code sections.
449 (look_for_base): Pass zero as the SECT_FLAGS argument to
450 bfd_lookup_symbol, since we're not concerned about which section
451 the symbol is in.
452
453 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
454
455 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
456 we are frameless or the return address register is already known.
457
458 2003-08-26 Andrew Cagney <cagney@redhat.com>
459
460 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
461 in size. Add comments.
462
463 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
464
465 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
466 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
467
468 2003-08-26 Jason Merrill <jason@redhat.com>
469
470 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
471 case out of #ifdef MIPS block.
472
473 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
474
475 PR java/1322
476 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
477 available before calling SECT_OFF_TEXT.
478 * PROBLEMS: Remove description of java/1322.
479
480 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
481
482 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
483 bof, and nat0-nat127 as pseudo-registers.
484 (ia64_frame_cache): New struct used to cache frame info.
485 (ia64_register_reggroup_p): New routine used to override default
486 register grouping so registers without names are still saved and
487 restored.
488 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
489 pseudo values.
490 (ia64_pseudo_register_read): New routine to read pseudo-registers.
491 (ia64_pseudo_register_write): New routine to write pseudo-registers.
492 (ia64_alloc_frame_cache): New routine to create a new
493 ia64_frame_cache.
494 (examine_prologue): Change prototype to add next_frame pointer.
495 Assume frameless until otherwise proven. Verify that the cfm for
496 current frame matches the cfm that should occur for the prologues
497 alloc insn and if equal, mark as not frameless. At end of routine,
498 if not frameless, calculate registers for the previous frame and store
499 in the cache, if a cache is provided.
500 (ia64_skip_prologue): Use new prototype when calling examine_prologue
501 and pass 0 for next_frame.
502 (ia64_store_return_value): Change to use convert_typed_floating()
503 instead of calling ia64_convert_to_raw().
504 (ia64_extract_return_value): Change to use convert_typed_floating()
505 instead of calling ia64_convert_to_virtual().
506 (ia64_frame_cache): New routine to support new frame model.
507 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
508 (ia64_frame_sniffer): Ditto.
509 (ia64_sigtramp_frame_init_saved_regs): Ditto.
510 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
511 (ia64_sigtramp_frame_prev_register): Ditto.
512 (ia64_sigtramp_frame_sniffer): Ditto.
513 (ia64_frame_base_address): Ditto.
514 (ia64_extract_struct_value_address): Change to issue error message.
515 (ia64_frame_align): New routine to align sp.
516 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
517 (ia64_push_arguments): Removed. Logic moved to
518 ia64_push_dummy_call().
519 (ia64_push_return_address): Ditto.
520 (ia64_unwind_dummy_id): New function.
521 (ia64_unwind_pc): Ditto.
522 (ia64_convert_register_p): Ditto.
523 (ia64_register_to_value): Ditto.
524 (ia64_value_to_register): Ditto.
525 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
526 (ia64_register_byte, ia64_register_raw_size): Ditto.
527 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
528 (ia64_saved_pc_after_call): Ditto.
529 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
530 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
531 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
532 (ia64_register_convert_to_raw): Ditto.
533 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
534 (ia64_init_extra_frame_info): Ditto.
535 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
536 (ia64_gdbarch_init): Remove registering of deprecated functions that
537 are no longer used. Add registration of new gdbarch functions.
538 Remove registering deprecated_write_sp. Replace
539 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
540 Delete set_gdbarch_deprecated_register_convertible(),
541 set_gdbarch_deprecated_register_convert_to_virtual(), and
542 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
543 set_gdbarch_deprecated_register_size(),
544 set_gdbarch_deprecated_register_bytes(),
545 set_gdbarch_pcregnum(),
546 set_gdbarch_deprecated_register_byte(),
547 set_gdbarch_deprecated_register_raw_size(),
548 set_gdbarch_deprecated_max_register_raw_size(),
549 set_gdbarch_deprecated_register_virtual_size(),
550 and set_gdbarch_deprecated_max_register_virtual_size() calls.
551 Replace set_gdbarch_deprecated_extract_return_value() with
552 set_gdbarch_extract_return_value(). Remove calls to:
553 set_gdbarch_deprecated_saved_pc_after_call();
554 set_gdbarch_deprecated_frame_chain(),
555 set_gdbarch_deprecated_frame_saved_pc(),
556 set_gdbarch_deprecated_frame_init_saved_regs(),
557 set_gdbarch_deprecated_get_saved_register(),
558 set_gdbarch_deprecated_call_dummy_words(),
559 set_gdbarch_deprecated_sizeof_call_dummy_words(),
560 set_gdbarch_deprecated_init_extra_frame_info(),
561 set_gdbarch_deprecated_frame_args_address(),
562 set_gdbarch_deprecated_frame_locals_address(),
563 and set_gdbarch_deprecated_dummy_write_sp().
564 Add set_gdbarch_convert_register_p(),
565 set_gdbarch_register_to_value(),
566 set_gdbarch_value_to_register(),
567 set_gdbarch_push_dummy_call(),
568 set_gdbarch_frame_align(),
569 set_gdbarch_unwind_dummy_id(),
570 set_gdbarch_unwind_pc(),
571 frame_unwind_append_sniffer(),
572 frame_unwind_append_sniffer(),
573 and frame_base_set_default().
574
575 2003-08-25 Chris Demetriou <cgd@broadcom.com>
576
577 * configure.tgt: Document need for special "mipsisa64" handling.
578 (mipsisa64*-*-linux64): Handle as target linux64.
579 (mipsisa64*-*-*): Handle as target embed64.
580
581 2003-08-18 Michael Chastain <mec@shout.net>
582
583 * PROBLEMS: Document pr gdb/1322, the Java anonymous
584 objfile bug.
585
586 2003-08-24 Mark Kettenis <kettenis@gnu.org>
587
588 * i387-tdep.h: Update copyright date.
589 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
590
591 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
592 CFLAGS games to reflect reality.
593
594 2003-08-24 Andrew Cagney <cagney@redhat.com>
595
596 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
597 GDB_MULTI_ARCH is always non-zero.
598 * osabi.c (_initialize_gdb_osabi): Ditto.
599 (gdbarch_init_osabi): Ditto.
600 * sparc-tdep.c: Ditto for #if code.
601
602 2003-08-23 Mark Kettenis <kettenis@gnu.org>
603
604 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
605 Update comments.
606 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
607 comments.
608 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
609 x86_64_supply_fxsave.
610 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
611 x86_64_supply_fxsave.
612 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
613 x86_64_supply_fxsave.
614
615 2003-08-23 Andreas Jaeger <aj@suse.de>
616
617 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
618 i387_supply_fxsave.
619
620 2003-08-23 Mark Kettenis <kettenis@gnu.org>
621
622 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
623 i387_supply_register.
624 (go32_fetch_registers): Adjust call to i387_supply_fsave.
625 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
626 i387_supply_fsave.
627 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
628 i387_supply_fxsave.
629 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
630 i387_supply_fsave.
631 * i386bsd-nat.c (supply_fpregset): Adjust call to
632 i387_supply_fsave.
633 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
634 call to i387_supply_fxsave. Call i387_supply_fsave instead of
635 supply_fpregset.
636 (store_inferior_registers): Remove extraneous whitespace. Call
637 i387_fill_fsave instead of fill_fpregset.
638 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
639 (supply_fpregset): Likewise.
640 * i386v4-nat.c (supply_fpregset): Adjust call to
641 i387_supply_fsave.
642 * i386-interix-nat.c (supply_fpregset): Adjust call to
643 i387_supply_fsave.
644 * i386-linux-nat.c (supply_fpregset): Adjust call to
645 i387_supply_fsave.
646 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
647 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
648 i387supply_fsave and i387_supply_fxsave.
649 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
650 Incorporate code from `i387_supply_register.
651 (i387_supply_register): Remove.
652 (i387_supply_fxsave): Add `regnum' argument.
653 Update comments.
654 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
655 prototype.
656 (i387_supply_register): remove prototype.
657 Update comments.
658
659 2003-08-22 Michael Chastain <mec@shout.net>
660
661 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
662 Add lines for files in gdb/testsuite/gdb.cp/* that are
663 still not 8.3 unique.
664
665 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
666
667 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
668 TYPE_VPTR_FIELDNO is valid.
669
670 2003-08-19 Mark Kettenis <kettenis@gnu.org>
671
672 * utils.c (set_width_command): Remove prototypes.
673 (set_screen_size): New prototype.
674 (init_page_info): Simplify by fetching the screen size from
675 Readline. Call set_screen_size.
676 (set_screen_size): New function.
677 (set_width): Add missing whitespace in comment.
678 (set_width_command): Call set_screen_size.
679 (set_height_command): New function.
680 (initialize_utils): Fix formatting. Make "set height" command
681 call set_height_command. Remove redundant code that turns off
682 pagination if output isn't a terminal. Remove redundant call to
683 set_width_command.
684
685 2003-08-22 Mark Kettenis <kettenis@gnu.org>
686
687 * sparc64-tdep.h (sparc64_regnum): Fix comment.
688 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
689 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
690 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
691 `case' keyword.
692 (sparc64_register_info): Give the reister with number
693 SPARC64_STATE_REGNUM a name.
694 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
695 %asi and %ccr.
696 (sparc64_push_dummy_call): Take BIAS into account when checking
697 stcak alignment.
698 (sparc_software_single_step): Remove assertions that check whether
699 NPC and NNPC were zero.
700 (sparc_supply_rwindow): Make public. Merge functionality with
701 sparc64_supply_rwindow.
702 (sparc_fill_rwindow): Make public. Merge functionality with
703 sparc64_fill_rwindow.
704 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
705 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
706 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
707 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
708 sparc_supply_rwindow instead of sparc64_supply_rwindow.
709
710 * reggroups.c: Add whitespace after declarations of local
711 variables in functions.
712
713 2003-08-21 Michael Chastain <mec@shout.net>
714
715 * gdbtypes.h: Change array bound type from an int to enum.
716
717 2003-08-21 Andrew Cagney <cagney@redhat.com>
718
719 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
720 * config/sparc/tm-sparc.h: Ditto.
721 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
722 unconditionally.
723 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
724
725 2003-07-13 Mark Kettenis <kettenis@gnu.org>
726
727 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
728 (register_objfile_data, set_objfile_data, objfile_data): New
729 prototypes.
730 * objfiles.c (objfile_alloc_data, objfile_free_data): New
731 prototypes.
732 (allocate_objfile): Call objfile_alloc_data.
733 (free_objfile): Call objfile_free_data.
734 (struct objfile_data): New.
735 (struct objfile_data_registration): New.
736 (struct objfile_data_registry): New.
737 (objfile_data_registry): New variable.
738 (register_objfile_data): New function.
739 (objfile_alloc_data, objfile_free_data): New functions.
740 (set_objfile_data, objfile_data): New functions.
741 * dwarf2-frame.c (dwarf2_frame_data): New variable.
742 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
743 (_initialize_dwarf2_frame): New function and prototype.
744
745 2003-08-21 Andrew Cagney <cagney@redhat.com>
746
747 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
748 a specific architecture.
749 * arch-utils.h (set_architecture_from_arch_mach): Delete
750 declaration.
751 (target_architecture_hook): Delete declaration.
752 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
753 (default_float_format): Assume GDB_MULTI_ARCH.
754 (default_double_format): Assume GDB_MULTI_ARCH.
755 (set_endian_from_file): Delete function.
756 (arch_ok): Delete function.
757 (set_arch): Delete function.
758 (set_architecture_from_arch_mach): Delete function.
759 (set_architecture_from_file): Delete function.
760 (set_architecture): Assume GDB_MULTI_ARCH.
761 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
762
763 2003-08-21 Mark Kettenis <kettenis@gnu.org>
764
765 Rewrite FreeBSD/sparc64 native configuration.
766 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
767 * sparc64fbsd-nat.c: New file.
768 * sparc64fbsd-tdep.c: New file.
769 * sparc64-tdep.c sparc64-tdep.h: New files.
770 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
771 sparc64fbsd-tdep.o): New dependencies.
772 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
773 and sparc64fbsd-tdep.c.
774 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
775 * config/sparc/fbsd.mh: Remove copyright notice.
776 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
777 sparcbsd-nat.o.
778 * config/sparc/fbsd.mt: Remove copyright notice.
779 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
780 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
781 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
782 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
783 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
784 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
785 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
786 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
787 "sparc/tm-sp64.h".
788 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
789 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
790
791 2003-08-21 Michael Chastain <mec@shout.net>
792
793 * symtab.h: Add doco on the space critical structures and
794 some measurements of space usage.
795
796 2003-08-21 Michael Snyder <msnyder@redhat.com>
797
798 * tracepoint.c (trace_dump_command): Trace break address
799 is subject to DECR_PC_AFTER_BREAK.
800 (set_traceframe_context): Make "trace_line" an int.
801 Fixes suggested by Mark Newman <mark.newman@lmco.com>
802
803 2003-08-20 Michael Snyder <msnyder@redhat.com>
804
805 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
806 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
807 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
808 argument passing.
809 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
810 functions, replace sh_push_dummy_call.
811 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
812
813 2003-08-20 Michael Chastain <mec@shout.net>
814
815 * gdbtypes.h (struct main_type): Rearrange to save space.
816
817 2003-08-20 Michael Snyder <msnyder@redhat.com>
818
819 * trad-frame.c: Comment typo fix.
820
821 2003-08-20 Michael Snyder <msnyder@redhat.com>
822 Kevin Buettner <kevinb@redhat.com>
823
824 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
825 (frv_frame_init_saved_regs): Add declaration.
826 (frame_extra_info): Add new field ``saved_regs''.
827 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
828 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
829 Update frame related code.
830 (frv_extract_struct_value_address): Adjust formatting.
831 * Makefile.in (frv-tdep.o): Update dependencies.
832 * config/frv/tm-frv.h (target_insert_watchpoint)
833 (target_remove_watchpoint, target_insert_hw_breakpoint)
834 (target_remove_hw_breakpoint): Delete these macros.
835 (remote_insert_watchpoint, remote_remove_watchpoint)
836 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
837 these declarations.
838
839 2003-08-20 Michael Chastain <mec@shout.net>
840
841 * defs.h (ENUM_BITFIELD): New macro.
842 * symtab.h (ENUM_BITFIELD): Use it.
843 (BYTE_BITFIELD): Remove old macro, which was already disabled.
844
845 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
846
847 * MAINTAINERS (write after approval): Add myself.
848
849 2003-08-18 Andrew Cagney <cagney@redhat.com>
850
851 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
852 * gdbarch.h, gdbarch.c: Re-generate.
853 * infcall.c (call_function_by_hand): Adjust the SP by
854 frame_red_zone_size before allocating any stack space.
855 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
856 * x86-64-tdep.c (x86_64_frame_align): New function.
857 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
858
859 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
860 Remove code adjusting SP so that it skips over the Red Zone.
861
862 2003-08-18 Mark Kettenis <kettenis@gnu.org>
863
864 * NEWS (New native configurations): Mention FreeBSD/amd64.
865
866 2003-08-18 Andrew Cagney <cagney@redhat.com>
867
868 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
869 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
870 "m68k_frame_p".
871 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
872
873 2003-08-18 Mark Kettenis <kettenis@gnu.org>
874
875 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
876
877 2003-08-18 Michal Ludvig <mludvig@suse.cz>
878
879 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
880 Define.
881 * i386-linux-nat.c: Include "linux-nat.h".
882 (child_post_startup_inferior): New function.
883
884 2003-08-18 Mark Kettenis <kettenis@gnu.org>
885
886 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
887 at the start of a frameless function. This probably fixes PR
888 backtrace/1338.
889
890 2003-08-17 Michael Chastain <mec@shout.net>
891
892 * symfile.c (find_sym_fns): Remove special case for apollo target.
893
894 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
895
896 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
897 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
898 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
899 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
900 (linux_supports_tracevforkdone): New function.
901 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
902 TRACEVFORKDONE.
903 (child_follow_fork): Handle vfork.
904 (linux_handle_extended_wait): Likewise. Also handle exec.
905 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
906 * NEWS: Mention fork tracing.
907
908 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
909
910 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
911
912 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
913
914 * Makefile.in (i386-linux-nat.o): Update dependencies.
915 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
916 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
917 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
918 * i386-linux-nat.c: Include "linux-nat.h".
919 (child_post_startup_inferior): New function.
920 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
921 * infptrace.c (kill_inferior): Wrap in #ifdef.
922 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
923 attaching to each LWP.
924 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
925 (init_lin_lwp_ops): Fill in some more operations.
926 * linux-nat.h (linux_enable_event_reporting)
927 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
928 prototypes.
929 * linux-nat.c (linux_enable_event_reporting): New function.
930 (child_post_attach, linux_child_post_startup_inferior)
931 (child_post_startup_inferior, child_follow_fork)
932 (linux_handle_extended_wait, kill_inferior): New functions.
933
934 2003-08-16 Andrew Cagney <cagney@redhat.com>
935
936 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
937 * gdbarch.h, gdbarch.c: Re-generate.
938
939 2003-08-16 Mark Kettenis <kettenis@gnu.org>
940
941 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
942
943 2003-08-16 Andrew Cagney <cagney@redhat.com>
944
945 * NEWS: Mention that "set prompt-escape-char" was deleted.
946 * top.c (get_prompt_1): Delete function.
947 (gdb_prompt_escape):
948 (init_main): Do not clear "gdb_prompt_escape". Delete "set
949 prompt-escape-char" command.
950 (MAX_PROMPT_SIZE): Delete macro.
951 (get_prompt): Simplify, do not call get_prompt_1.
952
953 2003-08-16 Andrew Cagney <cagney@redhat.com>
954
955 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
956 -Werror. -Wformat-nonliteral problems.
957
958 2003-08-15 J. Brobecker <brobecker@gnat.com>
959
960 Further multiarching work mostly for hppa64-*-hpux11:
961 * hppa-tdep.h: New file.
962 * hppa-tdep.c: #include hppa-tdep.c.
963 (hppa32_num_regs): Renamed from hppa_num_regs.
964 (hppa64_num_regs): New constant.
965 (hppa64_call_dummy_breakpoint_offset): New constant.
966 (hppa32_call_dummy_length): New constant.
967 (hppa64_call_dummy_length): New constant.
968 (hppa32_stack_align): Make name 32bit explicit.
969 (hppa32_register_virtual_type): Likewise.
970 (hppa32_extract_return_value): Likewise.
971 (hppa32_use_struct_convention): Likewise.
972 (hppa32_store_return_value): Likewise.
973 (hppa64_register_virtual_type): New function.
974 (hppa64_extract_return_value): New function.
975 (hppa64_use_struct_convention): New function.
976 (hppa64_store_return_value): New function.
977 (hppa_frame_locals_address): Remove declaration, function does
978 not exist anymore.
979 (hppa_register_byte): Add support for PA64 ABI.
980 (hppa_gdbarch_init): Add support for PA64 ABI.
981 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
982 Make name 32bit explicit.
983 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
984 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
985 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
986 (hppa64_hpux_frame_base_before_sigtramp): New function.
987 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
988 * config/pa/tm-hppa64.h: Remove macros that are no longer
989 necessary now that the gdbarch vector is properly setup.
990 Transform some macros into function calls. Some minor cleanup.
991 * config/pa/tm-hppah.h: Update function calls in macros
992 following the function renaming in hppa-hpux-tdep.c.
993 * Makefile.in (hppa_tdep_h): New variable.
994 (hppa-tdep.o): Add dependency over hppa_tdep_h.
995
996 2003-08-14 Michael Snyder <msnyder@redhat.com>
997
998 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
999
1000 2003-08-13 J. Brobecker <brobecker@gnat.com>
1001
1002 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1003 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1004 routine.
1005
1006 2003-08-13 Michael Snyder <msnyder@redhat.com>
1007
1008 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1009 (frv_saved_pc_after_call): Use deprecated ftype.
1010 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1011 (frv_remote_translate_xfer_address): Remove.
1012 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1013
1014 2003-08-13 J. Brobecker <brobecker@gnat.com>
1015
1016 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1017 initialization after the common gdbarch initialization, not before.
1018
1019 2003-08-13 J. Brobecker <brobecker@gnat.com>
1020
1021 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1022 (ADDR_BITS_REMOVE): Remove, redundant.
1023
1024 2003-08-13 J. Brobecker <brobecker@gnat.com>
1025
1026 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1027 gdbarch method to clear the 2 low bits of text addresses.
1028
1029 2003-08-12 Andrew Cagney <cagney@redhat.com>
1030
1031 * Makefile.in (dsrec.o): Update dependencies.
1032 * dsrec.c: Include "gdb_assert.h".
1033 (make_srec): Use snprintf instead of sprintf, use a literal format
1034 string.
1035
1036 2003-08-12 Andrew Cagney <cagney@redhat.com>
1037
1038 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1039 FRAME_OBSTACK_ZALLOC.
1040
1041 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1042
1043 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1044 SSE registers.
1045
1046 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1047
1048 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1049 amd64fbsd_sc_reg_offset): Add extern declarations.
1050 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1051 declarations.
1052
1053 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1054
1055 * MAINTAINERS (write after approval): Update my mail address.
1056
1057 2003-08-10 Andrew Cagney <cagney@redhat.com>
1058
1059 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1060
1061 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1062
1063 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1064 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1065 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1066 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1067 i386bsd_sc_reg_offset): Add extern declarations.
1068 * i386obsd-nat.c: Include "i386-tdep.h"
1069 (_initialize_i386obsd_nat): Remove extern declarations.
1070 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1071 declarations.
1072 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1073 declarations.
1074
1075 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1076 instead of frame_read_register.
1077 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1078 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1079 SP_REGNUM.
1080 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1081 instead of frame_unwind_unsigned_register. Use
1082 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1083 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1084 instead of read_register. Use builtin_type_void_data_ptr instead
1085 of builtin_type_void_func_ptr when extracting the address of the
1086 jmp_buf.
1087 (i386_extract_return_value, i386_store_return_value,
1088 i386_pseudo_register_read, i386_pseudo_register_write): Use
1089 register_size instead REGISTER_RAW_SIZE.
1090
1091 2003-08-10 Andrew Cagney <cagney@redhat.com>
1092
1093 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1094 sprintf. Make "name" constant.
1095
1096 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1097
1098 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1099 instead of frame_read_register.
1100 (i387_print_float_info): Use get_frame_register and
1101 get_frame_register_unsigned instead of frame_register_read.
1102
1103 * i386fbsd-nat.c: Include "i386-tdep.h".
1104 (child_resume): Make `eflags' an ULONGEST. Use
1105 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1106 instead of register_read and register_write.
1107
1108 * i386bsd-nat.c (fetch_inferior_registers,
1109 store_inferior_registers): Don't use && at the end of a line.
1110 (_initialize_i386bsd_nat): Fix typo.
1111
1112 * frame.c (_initialize_frame): Add missing backslash.
1113
1114 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1115 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1116 and supply_register instead of manipulating the register buffer
1117 directly.
1118
1119 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1120 * config/i386/nm-i386sol2.h
1121 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1122
1123 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1124 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1125 instructions that GCC likes to mingle into the prologue. Fixes
1126 gdb/1253 and gdb/1255.
1127
1128 2003-08-09 Andrew Cagney <cagney@redhat.com>
1129
1130 Fix GDB PR cli/926.
1131 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1132 * command.h (add_setshow_uinteger_cmd): Declare.
1133 * frame.c (set_backtrace_cmd): New function.
1134 (show_backtrace_cmd): New function.
1135 * frame.c (_initialize_frame): Replace "set/show
1136 backtrace-below-main" with "set/show backtrace past-main". Add
1137 command "set/show backtrace limit".
1138 (backtrace_past_main): Rename "backtrace_below_main".
1139 (backtrace_limit): New variable.
1140 (get_prev_frame): Update. Check the backtrace_limit.
1141
1142 2003-08-09 Andrew Cagney <cagney@redhat.com>
1143
1144 * defs.h (xstrprintf): Declare.
1145 * utils.c (xstrprintf): New function.
1146 * breakpoint.c (insert_breakpoints): Replace sprintf and
1147 non-literal format strings, with xstrprintf and cleanups.
1148 (delete_breakpoint,breakpoint_re_set): Ditto.
1149 (commands_command, insert_breakpoints): Ditto.
1150 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1151 (break_at_finish_command_1): Ditto.
1152
1153 2003-08-09 Andrew Cagney <cagney@redhat.com>
1154
1155 * MAINTAINERS (language support): List Adam Fedor as Objective C
1156 maintainer.
1157
1158 2003-08-08 J. Brobecker <brobecker@gnat.com>
1159
1160 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1161 are now multiarched.
1162
1163 2003-08-08 J. Brobecker <brobecker@gnat.com>
1164
1165 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1166 longer necessary now that hppa64 is partially multiarch'ed.
1167
1168 2003-08-08 Andrew Cagney <cagney@redhat.com>
1169
1170 * interps.c (interp_set): Check for a NULL "old_interp".
1171
1172 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1173
1174 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1175 (install-only): Support DESTDIR.
1176 (uninstall): Likewise.
1177 (install-gdbtk): Likewise.
1178
1179 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1180
1181 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1182 contains something meaningful at all times.
1183
1184 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1185
1186 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1187
1188 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1189
1190 * MAINTAINERS (write after approval): Added self.
1191
1192 2003-08-07 Andrew Cagney <cagney@redhat.com>
1193
1194 * inferior.h (AT_SYMBOL): Define.
1195 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1196 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1197 * mips-tdep.c (mips_call_dummy_address): Delete function.
1198 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1199 set call_dummy_address.
1200
1201 2003-08-07 Andrew Cagney <cagney@redhat.com>
1202
1203 * language.c (op_error): Delete function.
1204 (binop_type_check): Delete function.
1205 * language.h (type_op_error, range_op_error): Delete macros.
1206 (op_error): Delete declaration.
1207
1208 2003-08-07 Andrew Cagney <cagney@redhat.com>
1209
1210 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1211
1212 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1213
1214 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1215 (x86_64_push_arguments): Skip the red zone.
1216
1217 2003-08-05 Andrew Cagney <cagney@redhat.com>
1218
1219 * reggroups.c (reggroup_next): Check for the final entry.
1220
1221 2003-08-04 Andrew Cagney <cagney@redhat.com>
1222
1223 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1224 * cli/cli-script.c (define_command): Call query directly, instead
1225 of passing it a buffer.
1226 * ocd.c (ocd_error): Pass error a constant format string.
1227 * remote-mips.c (mips_error): Use fputs_filtered.
1228
1229 * solib-svr4.c (_initialize_svr4_solib): Update
1230 register_gdbarch_data call.
1231 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1232
1233 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1234 (register_gdbarch_data): Delete "free" parameter. Update
1235 comments.
1236 * gdbarch.h, gdbarch.c: Re-generate.
1237 * reggroups.c (_initialize_reggroup): Update.
1238 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1239 * frame-base.c (_initialize_frame_base): Update.
1240 * frame-unwind.c (_initialize_frame_unwind): Update.
1241 * user-regs.c (_initialize_user_regs): Update.
1242 * remote.c (_initialize_remote): Update.
1243 * regcache.c (_initialize_regcache): Update.
1244
1245 * regcache.c (xfree_regcache_descr): Delete function.
1246 (_initialize_regcache): Update call to register_gdbarch_data.
1247 (init_regcache_descr, init_legacy_regcache_descr): Use
1248 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1249
1250 * remote.c (free_remote_state): Delete function.
1251 (_initialize_remote): Update register_gdbarch_data.
1252 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1253 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1254
1255 2003-08-04 Andrew Cagney <cagney@redhat.com>
1256
1257 * reggroups.c (struct reggroup_el): Define.
1258 (struct reggroups): Delete field "nr_group". Replace array
1259 "group" with a "first" to "last" linked list.
1260 (reggroups_init): Update. Allocate using gdbarch's obstack.
1261 (reggroups_free): Delete function.
1262 (add_group): Update. Add "el" parameter.
1263 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1264 (default_groups): Update.
1265 (reggroup_next): Replace reggroups.
1266 (reggroups_dump): Update.
1267 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1268 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1269 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1270
1271 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1272
1273 * Makefile.in (tui-interp.o): Update dependencies.
1274
1275 2003-08-04 David Carlton <carlton@kealia.com>
1276
1277 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1278 to internal_error call.
1279 * source.c (forward_search_command): Add "%s" format argument.
1280 (reverse_search_command): Ditto.
1281 * top.c (quit_confirm): Ditto.
1282 * cli/cli-setshow.c (do_setshow_command): Ditto.
1283 * cp-valprint.c (cp_print_class_method): Replace
1284 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1285 (cp_print_class_member): Ditto.
1286 * event-top.c (command_line_handler): Ditto.
1287 * linux-proc.c (linux_info_proc_cmd): Ditto.
1288 * p-typeprint.c (pascal_type_print_base): Ditto.
1289 * p-valprint.c (pascal_object_print_class_method): Ditto.
1290 (pascal_object_print_class_member): Ditto.
1291 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1292 * remote.c (remote_cisco_section_offsets): Ditto.
1293 * top.c (command_line_input): Ditto.
1294 * utils.c (vwarning,error_stream,quit): Ditto.
1295 * valprint.c (print_floating,print_binary_chars)
1296 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1297
1298 2003-08-04 Andrew Cagney <cagney@redhat.com>
1299
1300 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1301
1302 2003-08-02 Andrew Cagney <cagney@redhat.com>
1303
1304 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1305 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1306 amd64fbsd-nat.c.
1307
1308 2003-08-02 Andrew Cagney <cagney@redhat.com>
1309
1310 * Makefile.in: Update all dependencies and definitions.
1311
1312 2003-08-02 Adam Fedor <fedor@gnu.org>
1313
1314 * linespec.c (is_objc_method_format): New function
1315 (decode_line_1, locate_first_half): Use it.
1316 Fixes PR objc/1298
1317
1318 2003-08-01 Andrew Cagney <cagney@redhat.com>
1319
1320 * NEWS: Mention that m32r is multi-arch.
1321 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1322 * configure.tgt: Recognize m32r-*-*.
1323 * config/m32r/tm-m32r.h: Delete file.
1324 * config/m32r/m32r.mt: New file.
1325 * m32r-rom.c (m32r_upload_command): Use hostent only when
1326 gethostname succeeds, in order to avoid a compilation
1327 warning.
1328 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1329 compiler warning.
1330
1331 2003-08-01 Michael Snyder <msnyder@redhat.com>
1332
1333 * sh-tdep.c (sh_frame_align): New gdbarch method.
1334 (sh_gdbarch_init): Set up frame_align method.
1335
1336 2003-07-31 Michael Snyder <msnyder@redhat.com>
1337
1338 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1339 which is already covered by the new frames infrastructure.
1340
1341 2003-07-31 Andrew Cagney <cagney@redhat.com>
1342
1343 * user-regs.c (struct user_reg): Add "next" link.
1344 (struct user_regs): Replace "user" with "first" and "last" links.
1345 (append_user_reg): Add pre-allocated "reg" parameter.
1346 (builtin_user_regs): Provide initial value for "last".
1347 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1348 (user_regs_init): Allocate memory from the gdbarch obstack.
1349 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1350 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1351 linked list.
1352 (usernum_to_user_reg): New function.
1353 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1354 (value_of_user_reg): Use usernum_to_user_reg.
1355 (user_regs_free): Delete function.
1356 (_initialize_user_regs): Update register_gdbarch_data call.
1357
1358 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1359
1360 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1361
1362 2003-07-30 Michael Snyder <msnyder@redhat.com>
1363
1364 * value.h (value_being_returned): Add a struct_addr argument.
1365 * infcall.c (call_function_by_hand): Pass struct_addr to
1366 value_being_returned.
1367 * infcmd.c (print_return_value): Pass zero as struct_addr.
1368 * values.c (value_being_returned): If struct_addr is passed,
1369 use it instead of trying to recover it from the inferior.
1370
1371 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1372
1373 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1374 the prologue analyzer won't need to attempt to extract the pc
1375 value from the woefully incomplete dummy frame.
1376 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1377 possible. Disable code which modifies the frame.
1378
1379 2003-07-28 Andrew Cagney <cagney@redhat.com>
1380
1381 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1382 to level 2.
1383 (annotate_breakpoints_table, annotate_record): Ditto.
1384 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1385 (annotate_field_name_end, annotate_field_value): Ditto.
1386 (annotate_field_end, annotate_frame_source_begin): Ditto.
1387 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1388 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1389 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1390 (annotate_frame_address_end, annotate_frame_address): Ditto.
1391 (annotate_frame_args, annotate_frame_end): Ditto.
1392 (annotate_frame_where, annotate_arg_begin): Ditto.
1393 (annotate_arg_name_end, annotate_arg_value): Ditto.
1394 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1395 (annotate_function_call, annotate_signal_name): Ditto.
1396 (annotate_signal_string, annotate_signal_name_end): Ditto.
1397 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1398 (annotate_value_begin, annotate_value_history_value): Ditto.
1399 (annotate_value_history_end, annotate_value_end): Ditto.
1400 (annotate_display_begin, annotate_display_number_end): Ditto.
1401 (annotate_display_format, annotate_display_expression): Ditto.
1402 (annotate_display_expression_end, annotate_display_value): Ditto.
1403 (annotate_display_end, annotate_array_section_begin): Ditto.
1404 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1405 (annotate_elt, annotate_array_section_end): Ditto.
1406
1407 2003-07-28 Andrew Cagney <cagney@redhat.com>
1408
1409 * regcache.c (struct regcache_descr): Update comments on
1410 nr_raw_registers.
1411 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1412 sizeof_raw_register_valid_p.
1413 (init_regcache_descr): Set nr_raw_registers and
1414 sizeof_raw_register_valid_p before calling
1415 init_legacy_regcache_descr.
1416
1417 2003-07-28 Andrew Cagney <cagney@redhat.com>
1418
1419 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1420 MOD NUM_REGS.
1421
1422 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1423
1424 * thread.c (info_threads_command): Use get_selected_frame ().
1425 Check that there is at least one non-sentinel frame.
1426
1427 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1428
1429 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1430 (m68hc11_pop_frame): Remove.
1431 (m68hc11_frame_saved_pc): Remove.
1432 (m68hc11_frame_chain): Remove.
1433 (m68hc11_frame_init_saved_regs): Remove.
1434 (m68hc11_init_extra_frame_info): Remove.
1435 (m68hc11_store_struct_return): Remove.
1436 (m68hc11_saved_pc_after_call): Remove.
1437
1438 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1439
1440 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1441 frame unwind information.
1442 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1443 and adapted for frame unwinding.
1444 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1445 (m68hc11_unwind_pc): New function.
1446 (m68hc11_frame_unwind_cache): New function to analyze frames.
1447 (m68hc11_frame_this_id): New function to create new frame struct.
1448 (m68hc11_frame_prev_register): New function to unwind a register from
1449 the frame.
1450 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1451 (m68hc11_frame_p): New function for the above.
1452 (m68hc11_frame_base_address): New function to return fp of frame.
1453 (m68hc11_frame_args_address): Update for frame.
1454 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1455 (m68hc11_unwind_sp): New function.
1456 (m68hc11_unwind_dummy_id): New function.
1457 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1458 calls.
1459
1460 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1461
1462 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1463 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1464 when we are beyond the current pc.
1465
1466 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1467
1468 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1469 from m68hc11_push_arguments.
1470 (m68hc11_push_arguments): Remove.
1471 (m68hc11_push_return_address): Remove.
1472 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1473 handlers; remove deprecated_extra_stack_alignment_needed.
1474
1475 2003-07-27 Andrew Cagney <cagney@redhat.com>
1476
1477 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1478 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1479 REAL_PC and not the pointer.
1480 * hppa-hpux-tdep.c: Include frame.h
1481
1482 2003-07-27 Andrew Cagney <cagney@redhat.com>
1483
1484 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1485 GDB_MULTI_ACH_PARTIAL.
1486
1487 2003-07-27 Andrew Cagney <cagney@redhat.com>
1488
1489 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1490 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1491 operator at start and not end of line.
1492 (decode_prologue): Ditto.
1493 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1494 frame_unwind_register_unsigned instead of
1495 frame_unwind_unsigned_register.
1496 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1497 read_register.
1498 (m32r_push_dummy_call): Use register_size instead of
1499 REGISTER_RAW_SIZE.
1500 (m32r_frame_sniffer): Replace m32r_frame_p.
1501 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1502 * m32r-rom.c (report_transfer_performance): Delete extern
1503 declaration.
1504 (m32r_load, m32r_upload_command): Use print_transfer_performance
1505 instead of report_transfer_performance.
1506 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1507 / add_show_from_set.
1508
1509 2003-07-26 Andrew Cagney <cagney@redhat.com>
1510
1511 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1512 store_return_value and extract_struct_value_address.
1513
1514 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1515
1516 PR c++/1267
1517 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1518 NULL, default to the section containing PC.
1519
1520 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1521
1522 * NEWS: Mention "regs" deprecated for m68hc11 too.
1523
1524 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1525 (m68hc11_print_register): New function to print out one register.
1526 (m68hc11_print_registers_info): New function to print registers.
1527 (show_regs): Deprecate and use the above.
1528 (m68hc11_gdbarch_init): Install the print_registers_info.
1529
1530 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1531
1532 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1533 that we have a SIGTRAP before returning non-zero.
1534
1535 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1536 Elena Zannoni <ezannoni@redhat.com>
1537
1538 * linespec.c (decode_line_2): Avoid crash if
1539 find_function_start_sal() returns empty record.
1540
1541 2003-07-23 Andreas Schwab <schwab@suse.de>
1542
1543 * ia64-tdep.c (ia64_print_insn): New function.
1544 (ia64_gdbarch_init): Set print_insn to it.
1545 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1546 deprecated_tm_print_insn_info.
1547
1548 2003-07-22 Michael Snyder <msnyder@redhat.com>
1549
1550 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1551 handle 8-bit returns (long long).
1552 (h8300h_extract_return_value): Ditto.
1553 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1554
1555 2003-07-22 Andrew Cagney <cagney@redhat.com>
1556
1557 * gdbarch.c Include "gdb_obstack.h".
1558 (struct gdbarch): Add an "obstack".
1559 (alloc_gdbarch_data): Allocate the gdbarch data using
1560 GDBARCH_OBSTACK_CALLOC.
1561 (free_gdbarch_data): Delete function.
1562 (gdbarch_obstack_zalloc): New function.
1563 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1564 Assert that the architecture is not initialized.
1565 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1566 vector from the obstack.
1567 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1568 architecture obstack.
1569 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1570 (set_gdbarch_data): Assert that the data is not initialized.
1571 (struct gdbarch_data): Delete member "free".
1572 (register_gdbarch_data): Do not initialize "free".
1573 * gdbarch.h, gdbarch.c: Re-generate.
1574
1575 2003-07-22 Andrew Cagney <cagney@redhat.com>
1576
1577 * configure.in (build_warnings): Add -Wformat-nonliteral.
1578 * configure: Re-generate.
1579
1580 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1581
1582 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1583
1584 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1585
1586 * findvar.c (read_var_value): Remove case for thread local storage
1587 variables. It is now entirely handled by the dwarf2 location
1588 expression code.
1589 * printcmd.c (address_info): Ditto.
1590 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1591 enumeration value.
1592 (struct symbol): Remove objfile field, which was used by
1593 LOC_THREAD_LOCAL_STATIC only.
1594 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1595 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1596 usage of objfile pointer.
1597 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1598 thread local variables.
1599 Add include of objfiles.h.
1600 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1601 storage variables.
1602 * Makefile.in (dwarf2loc.o): Update dependencies.
1603
1604 2003-07-22 Andrew Cagney <cagney@redhat.com>
1605
1606 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1607 get_frame_base.
1608 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1609 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1610 (struct value): Add opaque declaration.
1611 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1612
1613 2003-07-21 Andrew Cagney <cagney@redhat.com>
1614
1615 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1616 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1617
1618 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1619
1620 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1621 regcache_cooked_read_unsigned instead of read_register.
1622 (m68hc11_saved_pc_after_call): Likewise.
1623 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1624 instead of write_register.
1625 (m68hc11_register_type): New function.
1626 (m68hc11_register_virtual_type): Remove.
1627 (m68hc11_store_return_value): Convert to use the regcache.
1628 (m68hc11_extract_struct_value_address): Likewise.
1629 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1630 m68hc11_register_type; undeprecate store_return_value and
1631 extract_struct_value_address.
1632
1633 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1634
1635 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1636 and translate to use regcache.
1637 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1638
1639 2003-07-18 Andrew Cagney <cagney@redhat.com>
1640
1641 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1642 * gdbarch.h, gdbarch.c: Re-generate.
1643 * i386-tdep.c (i386_gdbarch_init): Do not set
1644 DWARF2_BUILD_FRAME_INFO.
1645 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1646 unconditionally.
1647 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1648 DWARF2_BUILD_FRAME_INFO.
1649
1650 2003-07-18 Andrew Cagney <cagney@redhat.com>
1651
1652 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1653 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1654
1655 2003-07-18 Andrew Cagney <cagney@redhat.com>
1656
1657 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1658 frame_unwind_address_in_block, instead of frame_pc_unwind.
1659 (dwarf2_frame_cache): Ditto.
1660
1661 2003-07-18 Andrew Cagney <cagney@redhat.com>
1662
1663 * user-regs.h (struct gdbarch): Declare opaque.
1664 * ui-out.h (struct ui_file): Declare opaque.
1665 * dwarf2-frame.h (struct frame_info): Declare opaque.
1666
1667 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1668
1669 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1670 #include "...".
1671 (procfs_meminfo): Change strerror to safe_strerror.
1672 (procfs_can_run): Remove K&R badness.
1673
1674 2003-07-17 Michael Snyder <msnyder@redhat.com>
1675
1676 * remote-sim.c: Comment typo fix.
1677
1678 2003-07-17 Andrew Cagney <cagney@redhat.com>
1679
1680 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1681 configure.
1682 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1683 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1684 GDB_MULTI_ARCH_PARTIAL.
1685
1686 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1687
1688 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1689 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1690 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1691
1692 2003-07-16 Theodore A. Roth <troth@openavr.org>
1693
1694 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1695 found.
1696 (avr_frame_unwind_cache): Don't unwind FP for main.
1697 Update a comment.
1698 Save the computed prev_sp.
1699 (avr_saved_regs_unwinder): Remove function.
1700 (avr_frame_prev_register): Use PC unwind logic from
1701 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1702
1703 2003-07-16 Andrew Cagney <cagney@redhat.com>
1704
1705 * frame-base.h (frame_base_p_ftype): Delete definition.
1706 (frame_base_append_predicate): Delete declaration.
1707 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1708 (frame_unwind_append_predicate): Delete declaration.
1709 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1710 (append_predicate): Delete parameter "p".
1711 (frame_unwind_append_predicate): Delete function.
1712 (frame_unwind_append_sniffer): Update call to append_predicate.
1713 (frame_unwind_free): Delete function.
1714 (_initialize_frame_unwind): Pass NULL as "free" to
1715 register_gdbarch_data.
1716 (frame_unwind_init): Append the dummy_frame_sniffer.
1717 (frame_unwind_find_by_frame): Simplify.
1718 * frame-base.c (struct frame_base_table): Delete field "p".
1719 (append_predicate): Delete parameter "p".
1720 (frame_base_append_predicate): Delete function.
1721 (frame_base_append_sniffer): Update call to append_predicate.
1722 (frame_base_free): Delete function.
1723 (frame_base_find_by_frame): Simplify.
1724 (_initialize_frame_base): Pass NULL as "free" to
1725 register_gdbarch_data.
1726 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1727 (x86_64_sigtramp_frame_sniffer): Replace
1728 "x86_64_sigtramp_frame_p".
1729 (x86_64_init_abi): Set the frame unwind sniffers.
1730 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1731 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1732 (m68k_gdbarch_init): Set the frame unwind sniffers.
1733 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1734 "i386_sigtramp_frame_p".
1735 (i386_frame_sniffer): Replace "i386_frame_p".
1736 (i386_gdbarch_init): Set the frame unwind sniffers.
1737 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1738 (avr_gdbarch_init): Set the frame unwind sniffers.
1739 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1740 "alpha_sigtramp_frame_p"
1741 (alpha_heuristic_frame_sniffer): Replace
1742 "alpha_heuristic_frame_p".
1743 (alpha_gdbarch_init): Set the frame unwind sniffers.
1744 (alpha_dwarf2_init_abi): Ditto.
1745 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1746 "alpha_debug_frame_p".
1747 (alpha_mdebug_frame_base_sniffer): Replace
1748 "alpha_mdebug_frame_base_p".
1749 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1750 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1751 (d10v_gdbarch_init): Set the frame unwind sniffer.
1752 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1753 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1754 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1755 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1756 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1757 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1758
1759 2003-07-16 Michael Snyder <msnyder@redhat.com>
1760
1761 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1762 should go thru sh_dsp_register_sim_regno, else the dsp regs
1763 will not get the right values.
1764
1765 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1766
1767 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1768 deprecated_store_floating by call to store_typed_floating.
1769 (sh_sh4_register_convert_to_raw): Substitute call to
1770 deprecated_extract_floating by call to extract_typed_floating.
1771
1772 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1773
1774 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1775
1776 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1777
1778 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1779 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1780 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1781 as possible.
1782 (do_pseudo_register): Remove.
1783 (sh_push_dummy_code): New function.
1784 (sh64_store_struct_return): Rename from sh_store_struct_return.
1785 Only called for sh64 now.
1786 (sh_extract_struct_value_address): Regcache'ify.
1787 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1788 and accomodate new tasks.
1789 (sh64_push_return_address): Rename from sh_push_return_address.
1790 Only called for sh64 now.
1791 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1792 Regcache'ify.
1793 (sh3e_sh4_extract_return_value): Regcache'ify.
1794 (sh_default_store_return_value): Ditto.
1795 (sh3e_sh4_store_return_value): Ditto.
1796 (sh_default_register_byte): Remove.
1797 (sh_sh4_register_byte): Remove.
1798 (sh_default_register_raw_size): Remove.
1799 (sh_sh4_register_raw_size): Remove.
1800 (sh_register_virtual_size): Remove.
1801 (sh_sh3e_register_virtual_type): Remove.
1802 (sh_sh3e_register_type): New function.
1803 (sh_sh4_register_virtual_type): Remove.
1804 (sh_sh4_register_type): New function.
1805 (sh_default_register_virtual_type): Remove.
1806 (sh_default_register_type): New function.
1807 (do_fv_register_info): Add parameters to accomodate call from
1808 sh_print_registers_info.
1809 (do_dr_register_info): Ditto.
1810 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1811 Add parameters to accomodate call from sh_print_registers_info.
1812 (sh_do_fp_register): Ditto.
1813 (sh64_do_pseudo_register): Call do_dr_register_info,
1814 do_fv_register_info and sh_do_fp_register with default parameters.
1815 (sh_do_register): Add parameters to accomodate call from
1816 sh_print_registers_info.
1817 (sh_print_register): Ditto.
1818 (sh_print_registers_info): Rename from sh_do_registers_info.
1819 Add parameters to be used as gdbarch_print_registers_info
1820 implementation. Accomodate removed do_pseudo_register function
1821 pointer.
1822 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1823 function pointer. Call sh_print_register with default parameters.
1824 (sh64_do_registers_info): Call sh_print_registers_info instead of
1825 sh_do_registers_info.
1826 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1827 detection of deprecated vs. non-deprecated functionality.
1828 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1829 function pointer assignments by direct function calls.
1830
1831 2003-07-15 Andrew Cagney <cagney@redhat.com>
1832
1833 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1834 (frame_register_unwind, create_new_frame): Ditto.
1835 (legacy_get_prev_frame, get_frame_type): Ditto.
1836 (get_frame_base_address): Use frame_base_find_by_frame.
1837 (get_frame_locals_address): Use frame_base_find_by_frame.
1838 (get_frame_args_address): Use frame_base_find_by_frame.
1839 * frame-base.h (frame_base_sniffer_ftype): Declare.
1840 (frame_base_append_sniffer): Declare.
1841 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1842 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1843 (frame_base_append_sniffer): New function.
1844 (frame_base_append_predicate): Add a NULL sniffer.
1845 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1846 (struct frame_base_table): Add "sniffer".
1847 (frame_base_free): Free the "sniffer" table.
1848 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1849 (frame_unwind_append_sniffer): Declare.
1850 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1851 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1852 (struct frame_unwind_table): Add "sniffer", delete "middle".
1853 (append_predicate): Add "sniffer" parameter, append the sniffer.
1854 (frame_unwind_init): Update append_predicate call.
1855 (frame_unwind_append_sniffer): New function.
1856 (frame_unwind_append_predicate): Update append_predicate call.
1857 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1858
1859 2003-07-15 Andrew Cagney <cagney@redhat.com>
1860
1861 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1862 before code inhibiting repeated unwind attempts. Add to
1863 commentary on that test's problems.
1864 * blockframe.c (inside_main_func): Look for "main" in the minimal
1865 symbol table.
1866 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1867 identical.
1868
1869 2003-07-15 Andrew Cagney <cagney@redhat.com>
1870
1871 * complaints.c (struct explanation): Define.
1872 (struct complaints): Change type of "explanation" to "struct
1873 explanation".
1874 (symfile_explanations): Convert to a "struct explanation" table.
1875 (vcomplaint): Update.
1876
1877 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1878
1879 * x86-64-linux-nat.c (regmap): Removed.
1880 (supply_gregset, fill_gregset): Call
1881 x86_64_linux_(fill,supply)_gregset functions.
1882 * x86-64-linux-tdep.c (USER_*): New defines.
1883 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1884 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1885 New functions.
1886 (fetch_core_registers): Ditto.
1887 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1888 * x86-64-linux-tdep.h: New file.
1889 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1890 and core-regset.o.
1891 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1892
1893 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1894
1895 * x86-64-tdep.c (x86_64_store_return_value): Use
1896 regcache_cooked_write_part instead of regcache_cooked_write.
1897
1898 * configure.host: Add x86_64-*-freebsd*.
1899 * configure.tgt: Add x86_64-*-freebsd*.
1900 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1901 * amd64fbsd-nat.c: New file.
1902 * amd64fbsd-tdep.c: New file.
1903 * config/i386/nm-fbsd64.h: New file.
1904 * config/i386/fbsd64.mh: New file.
1905 * config/i386/fbsd64.mt: New file.
1906
1907 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1908
1909 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1910 `sc_regs_offset' and `sc_fpregs_offset'.
1911 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1912 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1913 (alpha_sigtramp_register_address): Rewrite to use new members of
1914 `struct gdbarch_tdep'.
1915 (alpha_gdbarch_init): Initialize new members of struct
1916 gdbarch_tdep'.
1917 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1918 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1919 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1920 (alphafbsd_pc_in_sigtramp): Implement.
1921 (alphafbsd_sigtramp_offset): New function.
1922 (alphafbsd_sigcontext_addr): New function.
1923 (alphafbsd_init_abi): Initialize signal trampoline related members
1924 of `struct gdbarch_tdep'.
1925 (_initialize_alphafbsd_tdep): Add prototype.
1926
1927 2003-07-11 Theodore A. Roth <troth@openavr.org>
1928
1929 * Makefile.in (install-only): Quote sed expression when generating
1930 transformed_name.
1931
1932 2003-07-11 Richard Henderson <rth@redhat.com>
1933
1934 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1935 * dwarf2-frame.c: Include complaints.h.
1936 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1937 variable initialization; return NULL on error.
1938 (decode_frame_entry): New.
1939
1940 2003-07-11 Andrew Cagney <cagney@redhat.com>
1941
1942 * frame.h (frame_address_in_block): Delete declaration.
1943 * blockframe.c (frame_address_in_block): Delete function.
1944 (get_frame_block): Use get_frame_address_in_block.
1945 (block_innermost_frame): Ditto.
1946 * stack.c (print_frame, backtrace_command_1): Ditto.
1947
1948 * frame.h (get_frame_address_in_block): Declare.
1949 (frame_unwind_address_in_block): Declare.
1950 * frame.c (frame_unwind_address_in_block): New function.
1951 (get_frame_address_in_block): New function.
1952
1953 2003-07-10 Andrew Cagney <cagney@redhat.com>
1954
1955 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1956 pre-default. Note: re-generate has no effect.
1957
1958 2003-07-10 Andrew Cagney <cagney@redhat.com>
1959
1960 * gdbarch.sh: When a variable, but not a function, compare against
1961 0. Fix problem in previous patch.
1962 * gdbarch.c: Re-generate.
1963
1964 2003-07-10 Andrew Cagney <cagney@redhat.com>
1965
1966 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1967 functions against NULL, not 0.
1968 * gdbarch.c: Re-generate.
1969
1970 2003-07-10 Fred Fish <fnf@ninemoons.com>
1971
1972 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1973 null string instead of a null pointer.
1974 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1975
1976 2003-07-09 Michael Snyder <msnyder@redhat.com>
1977
1978 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1979
1980 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1981
1982 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1983 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1984 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1985 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1986 * x86-64-tdep.c: ... from here.
1987
1988 2003-07-09 Andreas Schwab <schwab@suse.de>
1989
1990 * m68k-tdep.h (enum struct_return): Define.
1991 (struct gdbarch_tdep): Add struct_return.
1992 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1993 bytes are padded to the right, not to the left. Pass struct value
1994 address in register %a1, not on stack.
1995 (m68k_use_struct_convention): New function.
1996 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1997 struct_return in tdep to pcc_struct_return.
1998 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1999 reg_struct_return.
2000
2001 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2002
2003 * somread.c (som_symfile_offsets): Fix compilation error.
2004
2005 2003-07-09 Andrew Cagney <cagney@redhat.com>
2006
2007 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2008 Add comments about the checks.
2009
2010 2003-07-08 Andrew Cagney <cagney@redhat.com>
2011
2012 * Makefile.in: Make dependency section headers consistent.
2013 (config_h): Move to $BUILD headers section.
2014 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2015 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2016 (ada-exp.tab.c): Move to YACC/LEX section.
2017 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2018 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2019
2020 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2021
2022 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2023 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2024 of strerror with safe_strerror, use ISO C function definitions,
2025 and replace instances of sprintf with snprintf.
2026
2027 2003-07-07 Andrew Cagney <cagney@redhat.com>
2028
2029 * frame.c (get_prev_frame): Enable check for identical frames.
2030 Update comments. Update error messages.
2031
2032 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2033
2034 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2035
2036 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2037
2038 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2039 sort_symtab_syms, no longer necessary.
2040
2041 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2042
2043 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2044
2045 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2046
2047 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2048 (mips_register_byte): Likewise.
2049
2050 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2051
2052 * Makefile.in (sparc_tdep_h): New.
2053 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2054 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2055 * sparc-linux-nat.c: Include "sparc-tdep.h".
2056 * sparc-nat.c: Likewise.
2057 * sparc-tdep.c: Likewise.
2058 * sparc64nbsd-nat.c: Likewise.
2059 * sparcnbsd-nat.c: Likewise.
2060 * sparcnbsd-tdep.c: Likewise.
2061 * sparc-tdep.h: New file.
2062 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2063 and sparc_npc_regnum.
2064
2065 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2066
2067 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2068 (mips_linux_cannot_store_register): List supported instead of
2069 unsupported registers.
2070
2071 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2072
2073 * disasm.c (dump_insns): Separate instructions from addresses.
2074
2075 2003-07-07 Andreas Schwab <schwab@suse.de>
2076
2077 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2078 dependencies.
2079 * m68k-tdep.c (NUM_FREGS): Delete.
2080 (SIG_PC_FP_OFFSET): Delete.
2081 (TARGET_M68K): Delete.
2082 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2083 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2084 P_MOVEL_SP, P_MOVEML_SP): Define.
2085 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2086 P_TRAP): Delete.
2087 (m68k_register_raw_size): Delete.
2088 (m68k_register_virtual_size): Delete.
2089 (m68k_register_type): Renamed from m68k_register_virtual_type and
2090 add gdbarch argument.
2091 (m68k_store_struct_return): Delete.
2092 (m68k_deprecated_extract_return_value): Delete.
2093 (m68k_deprecated_extract_struct_value_address): Delete.
2094 (m68k_frame_chain): Delete.
2095 (m68k_frame_saved_pc): Delete.
2096 (m68k_fix_call_dummy): Delete.
2097 (m68k_push_dummy_frame): Delete.
2098 (m68k_pop_frame): Delete.
2099 (m68k_extract_return_value): New function.
2100 (m68k_store_return_value): Rewrite using regcache.
2101 (m68k_extract_struct_value_address): Rewrite using regcache.
2102 (m68k_push_dummy_call): New function.
2103 (struct m68k_frame_cache): Define.
2104 (m68k_alloc_frame_cache): New function.
2105 (m68k_analyze_frame_setup): New function.
2106 (m68k_analyze_register_saves): New function.
2107 (m68k_analyze_prologue): New function.
2108 (m68k_skip_prologue): Rewrite using above functions.
2109 (m68k_unwind_pc): New function.
2110 (m68k_frame_cache): New function.
2111 (m68k_frame_this_id): New function.
2112 (m68k_frame_prev_register): New function.
2113 (m68k_frame_unwind): New variable.
2114 (m68k_frame_p): New function.
2115 (m68k_sigtramp_frame_cache): New function.
2116 (m68k_sigtramp_frame_this_id): New function.
2117 (m68k_sigtramp_frame_prev_register): New function.
2118 (m68k_sigtramp_frame_unwind): New variable.
2119 (m68k_sigtramp_frame_p): New function.
2120 (m68k_frame_base_address): New function.
2121 (m68k_frame_base): New function.
2122 (m68k_unwind_dummy_id): New function.
2123 (fill_gregset): Use regcache_collect.
2124 (fill_fpregset): Likewise.
2125 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2126 defined.
2127 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2128 deprecated_init_frame_pc, deprecated_store_struct_return,
2129 deprecated_extract_return_value, deprecated_store_return_value,
2130 deprecated_frame_chain, deprecated_frame_saved_pc,
2131 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2132 deprecated_register_virtual_size,
2133 deprecated_max_register_raw_size,
2134 deprecated_max_register_virtual_size,
2135 deprecated_register_virtual_type, deprecated_register_size,
2136 deprecated_register_byte, deprecated_register_bytes,
2137 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2138 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2139 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2140 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2141 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2142 deprecated_push_dummy_frame, deprecated_pop_frame,
2143 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2144 only if SYSCALL_TRAP is defined. Set extract_return_value,
2145 store_return_value, extract_struct_value_address, register_type,
2146 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2147 predicates.
2148 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2149 M68K_MAX_REGISTER_SIZE): Define.
2150 (struct m68k_sigtramp_info): Define.
2151 (struct gdbarch_tdep): Add get_sigtramp_info.
2152 * m68klinux-nat.c (fetch_register): Use register_size instead of
2153 REGISTER_RAW_SIZE. Don't put assignment in if.
2154 (store_register): Likewise.
2155 (fetch_inferior_registers): Likewise.
2156 (store_inferior_registers): Likewise.
2157 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2158 (m68k_linux_frame_saved_pc): Delete.
2159 (m68k_linux_sigcontext_reg_offset,
2160 m68k_linux_ucontext_reg_offset): Define.
2161 (m68k_linux_get_sigtramp_info): New function.
2162 (m68k_linux_extract_return_value): Rewrite using regcache.
2163 (m68k_linux_store_return_value): Likewise.
2164 (m68k_linux_extract_struct_value_address): Likewise.
2165 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2166 Don't set deprecated_frame_saved_pc,
2167 deprecated_extract_return_value, deprecated_store_return_value,
2168 deprecated_extract_struct_value_address. Set
2169 extract_return_value, store_return_value,
2170 extract_struct_value_address.
2171
2172 2003-07-07 Andrew Cagney <cagney@redhat.com>
2173
2174 * expprint.c: Include "user-regs.h" instead of "frame.h".
2175 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2176 frame_map_regnum_to_name.
2177 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2178 (frame_map_name_to_regnum): Simplify, call
2179 user_reg_map_name_to_regnum.
2180 (frame_map_regnum_to_name): Simplify, call
2181 user_reg_map_regnum_to_name.
2182 (frame_register_unwind): Update.
2183 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2184 (_initialize_frame_reg): Call user_reg_add_builtin.
2185 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2186 (value_of_register): Use value_of_user_reg.
2187 * eval.c (evaluate_subexp_standard): Update.
2188 * parse.c (write_dollar_variable): Update.
2189 * d10v-tdep.c (d10v_print_registers_info): Update.
2190 * infcmd.c (registers_info): Update.
2191 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2192 (builtin_regs_h): Delete macro.
2193 (user_regs_h): Define.
2194 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2195 (builtin-regs.o): Delete target.
2196 (user-regs.o): Specify dependencies.
2197 (expprint.o): Update dependencies.
2198 (findvar.o): Update dependencies.
2199 (frame.o): Update dependencies.
2200 (std-regs.o): Update dependencies.
2201
2202 2003-07-06 Christopher Faylor <cgf@redhat.com>
2203
2204 * win32-nat.c (solib_symbols_add): Use one variable for all section
2205 address stuff. Pass variable rather than address of variable to
2206 safe_symbol_file_add.
2207
2208 2003-07-06 Andreas Schwab <schwab@suse.de>
2209
2210 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2211
2212 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2213
2214 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2215
2216 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2217
2218 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2219
2220 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2221
2222 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2223 * config/i386/nto.mh: New file.
2224 * config/i386/nm-nto.h: New file.
2225 * configure.host: Add i[3456]86-*-nto*.
2226
2227 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2228
2229 * remote-vx.c (vx_add_symbols): Fix compilation error.
2230
2231 2003-07-03 Andrew Cagney <cagney@redhat.com>
2232
2233 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2234 * gdbarch.h, gdbarch.c: Re-generate.
2235 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2236 (legacy_register_name): Declare.
2237 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2238 (REGISTER_NAME): Define.
2239 * sparc-tdep.c (legacy_register_name): New function.
2240 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2241 (REGISTER_NAME): Define.
2242 (hppa64_register_name): Declare.
2243 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2244 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2245 (hppa64_register_name): New function.
2246 (hppa_register_name): New function.
2247 * arch-utils.c (legacy_register_name): Delete.
2248 * arch-utils.h (legacy_register_name): Delete.
2249
2250 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2251
2252 * cli/cli-interp.c (cli_interpreter_resume): Update the
2253 cli_uiout's stream to gdb_stdout.
2254
2255 2003-07-03 Andrew Cagney <cagney@redhat.com>
2256
2257 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2258 predicate.
2259 * gdbarch.h, gdbarch.c: Re-generate.
2260 * regcache.c (init_regcache_descr): Use legacy code when either
2261 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2262
2263 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2264
2265 * NEWS: Move "set logging" entry into GDB 6.0 section.
2266
2267 2003-07-02 Jim Blandy <jimb@redhat.com>
2268
2269 * s390-tdep.c (struct frame_extra_info): new member:
2270 'stack_bought_valid'.
2271 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2272 initialize fextra_info->stack_bought.
2273 (s390_frameless_function_invocation): Don't trust the value of
2274 fextra_info_ptr->stack_bought unless
2275 fextra_info->stack_bought_valid is set.
2276
2277 New S390 prologue analyzer.
2278 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2279 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2280 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2281 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2282 compute_x_addr, s390_on_stack, s390_store,
2283 s390_get_signal_frame_info): New functions.
2284 (S390_NUM_SPILL_SLOTS): New macro.
2285 (s390_get_frame_info): Rewritten.
2286 (is_arg_reg): Deleted.
2287
2288 Break out the decoding of S/390 instructions into separate
2289 functions, to make it more legible, and easier to check
2290 against the spec.
2291 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2292 is_rx, is_rxe): New functions.
2293 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2294 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2295 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2296 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2297 enums for opcode values. (Is this an improvement?)
2298
2299 2003-07-02 Andrew Cagney <cagney@redhat.com>
2300
2301 * i386-tdep.c: Revert change committed as part of trad-frame code
2302 below.
2303
2304 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2305
2306 * breakpoint.c (insert_catchpoint): Make static.
2307
2308 2003-07-02 Andreas Schwab <schwab@suse.de>
2309
2310 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2311 former ia64_push_arguments and ia64_push_return_address, and use
2312 regcache functions instead of read/write_register.
2313 (ia64_gdbarch_init): Set push_dummy_call instead of
2314 deprecated_push_arguments and deprecated_push_return_address.
2315
2316 2003-07-01 Andreas Jaeger <aj@suse.de>
2317
2318 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2319 before the call.
2320 Set %rax only to number of SSE registers used.
2321
2322 2003-07-01 Andrew Cagney <cagney@redhat.com>
2323
2324 * trad-frame.h: Update comments, a -1 .addr is reserved.
2325 (trad_frame_value_p, trad_frame_addr_p): Declare.
2326 (trad_frame_reg_p): Declare.
2327 (trad_frame_set_value): Rename trad_frame_register_value.
2328 (trad_frame_set_unknown): Declare.
2329 * trad-frame.c (trad_frame_realreg_p): New function.
2330 (trad_frame_addr_p, trad_frame_value_p): New function.
2331 (trad_frame_set_unknown): New function.
2332 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2333 (trad_frame_prev_register): Use trad_frame_realreg_p,
2334 trad_frame_addr_p and trad_frame_value_p.
2335 (trad_frame_set_value): Rename trad_frame_register_value.
2336 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2337 and trad_frame_set_value.
2338
2339 2003-06-30 Jim Blandy <jimb@redhat.com>
2340
2341 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2342 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2343 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2344 for 16 registers, and then 32 more bytes.
2345 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2346 New macros.
2347 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2348 Move up in the file, since it's now used by is_simple_arg.
2349 (is_simple_arg): Don't assume registers are four bytes long.
2350 Exclude all double arguments. Extended floats are not simple
2351 args.
2352 (is_power_of_two): New function.
2353 (pass_by_copy_ref): Call is_power_of_two, and check that the
2354 length fits in a register, rather than listing all the acceptable
2355 sizes. Extended floats are not passed by reference.
2356 (s390_push_arguments): Don't assume registers are four bytes long.
2357 Reserve an argument register to point to the buffer for structures
2358 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2359 S390_STACK_FRAME_OVERHEAD.
2360
2361 2003-06-30 Andreas Schwab <schwab@suse.de>
2362
2363 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2364 format error message.
2365
2366 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2367
2368 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2369
2370 2003-06-30 David Carlton <carlton@kealia.com>
2371
2372 Band-aid for PR c++/1245.
2373 * Makefile.in (cp-support.o): Depend on complaints_h.
2374 * cp-support.c: Include complaints.h. Add declaration for
2375 find_last_component.
2376 (cp_find_first_component): Separate code into
2377 cp_find_first_component_aux.
2378 (cp_find_first_component_aux): Call demangled_name_complaint.
2379 (demangled_name_complaint): New.
2380
2381 2003-06-30 Andrew Cagney <cagney@redhat.com>
2382
2383 * remote.c (remote_write_bytes): Explicitly compute and then use
2384 the payload size. Update comments to reflect. Fixes problem of
2385 GDB not sending small packets as found by Fred Fish.
2386
2387 2003-06-30 Andrew Cagney <cagney@redhat.com>
2388
2389 * remote.c (remote_async_wait): Fix -Wformat problem.
2390
2391 2003-06-29 Andrew Cagney <cagney@redhat.com>
2392
2393 * remote.c (remote_wait): Call error, and not warning, when the
2394 packet is corrupt.
2395 (remote_async_wait): Ditto.
2396
2397 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2398
2399 * sparc-tdep.c (sparc_y_regnum): Make external again.
2400
2401 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2402
2403 * cli/cli-logging.c (pop_output_files): Add void to function
2404 definition.
2405
2406 2003-06-29 Andrew Cagney <cagney@redhat.com>
2407
2408 * frame.c (frame_register_unwind): Use unsigned char when dumping
2409 the buffer contents.
2410
2411 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2412
2413 * cli/cli-logging.c: New file.
2414 * cli-out.c (struct ui_out_data): Add original_stream.
2415 (cli_redirect): New function.
2416 (cli_ui_out_impl): Add cli_redirect.
2417 (cli_out_new): Initialize original_stream.
2418 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2419 (uo_redirect, ui_out_redirect): New.
2420 * ui-out.h (struct ui_out_impl): Add redirect member.
2421 (redirect_ftype): New.
2422 (ui_out_redirect): Add prototype.
2423 * Makefile.in: Add rules for cli-logging.c.
2424 * NEWS: Mention "set logging".
2425
2426 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2427
2428 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2429
2430 2003-06-27 Andrew Cagney <cagney@redhat.com>
2431
2432 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2433 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2434 * avr-tdep.c (avr_call_dummy_address): Delete function.
2435 (avr_gdbarch_init): Do not set call_dummy_address.
2436
2437 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2438
2439 * symfile.c (syms_from_objfile): Move variables to inner block.
2440 Move the checks for the non-mainline case a bit earlier to avoid
2441 doing some useless computations.
2442
2443 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2444
2445 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2446
2447 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2448
2449 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2450 sections.
2451
2452 2003-06-26 Michael Chastain <mec@shout.net>
2453
2454 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2455 gdb/testsuite/gdb.c++/pr-1210.exp.
2456
2457 2003-06-26 Andrew Cagney <cagney@redhat.com>
2458
2459 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2460 altivec_expression.h and altivec_registers.h.
2461
2462 2003-06-26 Andrew Cagney <cagney@redhat.com>
2463
2464 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2465 info->mach when MIPS16. Patch suggested by Fred Fish.
2466
2467 2003-06-26 Andrew Cagney <cagney@redhat.com>
2468
2469 * utils.c (internal_vproblem): Print the problem to a reason
2470 buffer and then pass to query. Make the msg variable more local.
2471
2472 2003-06-26 Andrew Cagney <cagney@redhat.com>
2473
2474 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2475 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2476 * gdbarch.h, gdbarch.c: Re-generate.
2477 * frame-base.c (default_frame_args_address): Update. Use
2478 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2479 not available.
2480 (default_frame_locals_address): Ditto for
2481 DEPRECATED_FRAME_LOCALS_ADDRESS.
2482 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2483 (vax_frame_num_args): Update.
2484 (vax_gdbarch_init): Update.
2485 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2486 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2487 * mcore-tdep.c (mcore_gdbarch_init): Update.
2488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2489 * ia64-tdep.c (ia64_gdbarch_init): Update.
2490 * symtab.h (address_class): Update comments.
2491 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2492 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2493 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2494 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2495 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2496 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2497 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2498 * alpha-mdebug-tdep.c: Update.
2499 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2500
2501 2003-06-26 Andreas Jaeger <aj@suse.de>
2502
2503 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2504 of SSE registers so that varargs functions work. Rework handling
2505 of passing arguments on the stack.
2506 (x86_64_store_return_value): Return double and float values in SSE
2507 register.
2508
2509 2003-06-24 Michael Chastain <mec@shout.net>
2510
2511 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2512 the "constructor breakpoints ignored" bug.
2513
2514 2003-06-25 David Carlton <carlton@kealia.com>
2515
2516 * MAINTAINERS: Update e-mail address.
2517
2518 2003-06-24 Jim Blandy <jimb@redhat.com>
2519
2520 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2521
2522 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2523 function.
2524 (ppc_linux_init_abi): Register it as the
2525 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2526
2527 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2528 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2529 method.
2530
2531 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2532 (ppc64_standard_linkage_target): Use it.
2533
2534 2003-06-23 Andrew Cagney <cagney@redhat.com>
2535
2536 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2537 for 0 "int0" and 4 "int32" sized registers.
2538 * gdbtypes.c (builtin_type_int0): Define.
2539 (build_gdbtypes): Initialize builtin_type_int0.
2540 * gdbtypes.h (builtin_type_int0): Declare.
2541
2542 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2543
2544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2545 as characters are unsigned.
2546
2547 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2548
2549 PR gdb/1179
2550 * dwarfread.c (struct_type): Skip static fields without crashing.
2551
2552 2003-06-22 Andrew Cagney <cagney@redhat.com>
2553
2554 GDB 6.0 branch created.
2555 * README: Update.
2556 * PROBLEMS: Update. Empty.
2557 * NEWS: Update.
2558
2559 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2560
2561 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2562 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2563
2564 2003-06-22 Andrew Cagney <cagney@redhat.com>
2565
2566 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2567 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2568 Velikov.
2569
2570 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2571
2572 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2573 compilers.
2574
2575 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2576
2577 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2578 argument of val_print.
2579 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2580 to the address argument of baseclass_offset or target_read_memory.
2581 Do add it to the argument of cp_print_value_fields.
2582
2583 2003-06-21 Andrew Cagney <cagney@redhat.com>
2584
2585 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2586 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2587 instead of 0..NUM_REGS.
2588 (mips_register_reggroup_p): New function.
2589 (mips_pseudo_register_write): New function.
2590 (mips_pseudo_register_read): New function.
2591 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2592 based on the register's type.
2593 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2594 cooked.
2595 (mips_get_saved_register): Simplify. Assert that REGNO is a
2596 pseudo / cooked.
2597 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2598 (mips_register_type): Replace mips_register_virtual_type. Map
2599 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2600 when available.
2601 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2602 that the register is cooked / virtual.
2603 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2604 Only get the extra info when needed.
2605 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2606 (mips32_heuristic_proc_desc): Fetch the cooked register.
2607 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2608 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2609 (mips_print_register): Use gdbarch_register_type, instead of
2610 REGISTER_VIRTUAL_TYPE.
2611 (print_gp_register_row): Use gdbarch_register_type, instead of
2612 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2613 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2614 Print the pseudo / cooked registers.
2615 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2616 Print the pseudo / cooked registers.
2617 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2618 REG_NUM is pseudo / cooked.
2619 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2620 (mips_n32n64_xfer_return_value): Ditto.
2621 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2622 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2623 (mips_register_sim_regno): New function.
2624 (mips_gdbarch_init): Set deprecated_register_byte,
2625 register_group_p, pseudo_register_write, pseudo_register_read,
2626 register_sim_regno, and num_pseudo_regs. Set register_type,
2627 instead of register_virtual_type.
2628 * Makefile.in (mips-tdep.o): Update dependencies.
2629 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2630 REGISTER_VIRTUAL_TYPE.
2631 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2632 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2633 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2634 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2635 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2636
2637 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2638
2639 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2640 * cli/cli-cmds.c: Include "gdb_vfork.h".
2641 (shell_escape): Use vfork.
2642
2643 2003-06-21 Andrew Cagney <cagney@redhat.com>
2644
2645 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2646 32 bit floating-point register saves.
2647
2648 * frame.h (deprecated_unwind_get_saved_register): Delete.
2649 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2650 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2651 and deprecated_get_next_frame_hack instead of
2652 deprecated_unwind_get_saved_register.
2653
2654 * mips-tdep.c (mips_dump_tdep): Do not print
2655 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2656
2657 * frame.c (get_frame_register): New function.
2658 (frame_unwind_register_signed): New function.
2659 (get_frame_register_signed): New function.
2660 (frame_unwind_register_unsigned): New function.
2661 (get_frame_register_unsigned): New function.
2662 * frame.h: Add comments on naming schema.
2663 (get_frame_register, frame_unwind_register_signed): Declare.
2664 (get_frame_register_signed, get_frame_register_signed): Declare.
2665 (frame_unwind_register_unsigned): Declare.
2666 (get_frame_register_unsigned): Declare.
2667
2668 2003-06-20 Theodore A. Roth <troth@openavr.org>
2669
2670 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2671
2672 2003-06-20 Theodore A. Roth <troth@openavr.org>
2673
2674 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2675 (avr_read_sp): Ditto.
2676
2677 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2678
2679 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2680 * config/arm/nm-linux.h: Likewise.
2681 * config/arm/tm-linux.h: Likewise.
2682 * config/ia64/nm-linux.h: Likewise.
2683 * config/ia64/tm-ia64.h: Likewise.
2684 * config/s390/tm-linux.h: Likewise.
2685 * config/s390/tm-s390.h: Likewise.
2686 * s390-nat.c: Likewise.
2687 * s390-tdep.c: Likewise.
2688
2689 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2690 * config/ia64/linux.mt: Likewise.
2691 * config/m68k/linux.mh: Likewise.
2692 * config/mips/linux.mt: Likewise.
2693 * config/powerpc/linux.mh: Likewise.
2694 * config/sh/linux.mt: Likewise.
2695
2696 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2697
2698 * solib.c (solib_open): Change tests for whether to search
2699 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2700 comments.
2701
2702 2003-06-19 Theodore A. Roth <troth@openavr.org>
2703
2704 * avr-tdep.c (avr_frame_address): Delete function.
2705 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2706 set_gdbarch_frame_args_address.
2707
2708 2003-06-19 Andrew Cagney <cagney@redhat.com>
2709
2710 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2711 (REGISTER_CONVERT_FROM_TYPE): Delete.
2712 (mips_register_convert_to_type): Delete declaration.
2713 (mips_register_convert_from_type): Delete declaration.
2714 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2715 kernel/.
2716
2717 2003-06-19 Michael Snyder <msnyder@redhat.com>
2718
2719 * linux-nat.h: New file.
2720 * linux-nat.c: Include linux-nat.h.
2721 * lin-lwp.c: Include linux-nat.h.
2722 Move struct lwp_info def to linux-nat.h.
2723 * linux-proc.c: Include linux-nat.h.
2724 (linux_make_note_section): Iterate over lwps instead of threads.
2725 (linux_do_thread_registers): Use lwp instead of merged pid.
2726 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2727 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2728 Add dependency on linux_nat_h.
2729
2730 2003-06-19 Theodore A. Roth <troth@openavr.org>
2731
2732 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2733
2734 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2735
2736 * varobj.c (get_type, get_target_type): Use check_typedef.
2737
2738 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2739
2740 * breakpoint.c (insert_catchpoint): Call internal_error.
2741
2742 2003-06-19 Theodore A. Roth <troth@openavr.org>
2743
2744 * avr-tdep.c (avr_push_dummy_code): Delete function.
2745 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2746
2747 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2748
2749 * arch-utils.c (default_prepare_to_proceed): Remove.
2750 (generic_prepare_to_proceed): Remove.
2751 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2752 (generic_prepare_to_proceed): Remove prototype.
2753 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2754 * gdbarch.c: Regenerate.
2755 * gdbarch.h: Regenerate.
2756 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2757 * hppah-nat.c (hppa_switched_threads): Remove.
2758 * infrun.c (prepare_to_proceed): New static function, copied from
2759 generic_prepare_to_proceed. Remove select_it argument.
2760 (proceed): Call prepare_to_proceed.
2761 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2762 variables.
2763 (ptrace_wait): Don't set the removed variables.
2764 (hppa_switched_threads): Remove.
2765 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2766 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2767 (lin_lwp_prepare_to_proceed): Remove prototype.
2768 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2769 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2770
2771 2003-06-18 Theodore A. Roth <troth@openavr.org>
2772
2773 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2774 trad-frame.h.
2775 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2776 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2777 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2778 (AVR_PROLOGUE_*): Enumerate prologue types.
2779 (struct frame_extra_info): Remove.
2780 (struct avr_unwind_cache): Define.
2781 (avr_write_sp): Delete function.
2782 (avr_read_fp): Ditto.
2783 (avr_init_extra_frame_info): Ditto.
2784 (avr_pop_frame): Ditto.
2785 (avr_frame_saved_pc): Ditto.
2786 (avr_saved_pc_after_call): Ditto.
2787 (avr_push_return_address): Ditto.
2788 (avr_frame_chain): Ditto.
2789 (avr_store_struct_return): Ditto.
2790 (avr_push_arguments): Ditto.
2791 (avr_scan_prologue): Update comments. Changed to set up the info for
2792 cache unwinding. Now returns end of prologue PC.
2793 (avr_skip_prologue): Better handling of functions lacking a prologue
2794 by using avr_scan_prologue.
2795 (avr_scan_arg_moves): New function.
2796 (avr_saved_regs_unwinder): Ditto.
2797 (avr_frame_unwind_cache): Ditto.
2798 (avr_unwind_pc): Ditto.
2799 (avr_frame_this_id): Ditto.
2800 (avr_frame_prev_register): Ditto.
2801 (avr_frame_p): Ditto.
2802 (avr_frame_base_address ): Ditto.
2803 (avr_unwind_dummy_id): Ditto.
2804 (avr_push_dummy_code): Ditto.
2805 (push_stack_item): Ditto.
2806 (pop_stack_item): Ditto.
2807 (avr_push_dummy_call): Ditto.
2808 (struct stack_item): Define.
2809 (avr_frame_unwind): Declare structure.
2810 (avr_frame_base): Ditto.
2811 (avr_gdbarch_init): Remove calls to
2812 set_gdbarch_deprecated_init_frame_pc,
2813 set_gdbarch_deprecated_target_read_fp,
2814 set_gdbarch_deprecated_dummy_write_sp,
2815 set_gdbarch_deprecated_fp_regnum,
2816 set_gdbarch_deprecated_push_arguments,
2817 set_gdbarch_deprecated_push_return_address,
2818 set_gdbarch_deprecated_pop_frame,
2819 set_gdbarch_deprecated_store_struct_return,
2820 set_gdbarch_deprecated_frame_init_saved_regs,
2821 set_gdbarch_deprecated_init_extra_frame_info,
2822 set_gdbarch_deprecated_frame_chain,
2823 set_gdbarch_deprecated_frame_saved_pc,
2824 set_gdbarch_deprecated_saved_pc_after_call.
2825 Add calls to set_gdbarch_push_dummy_call,
2826 set_gdbarch_push_dummy_code,
2827 frame_unwind_append_predicate,
2828 frame_base_set_default,
2829 set_gdbarch_unwind_dummy_id,
2830 set_gdbarch_unwind_pc.
2831 Wrap a long line.
2832
2833 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2834
2835 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2836 registers for H8/300S.
2837 (h8300_print_registers_info): Ditto.
2838 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2839
2840 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2841
2842 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2843 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2844 (lin_lwp_wait): Likewise. Update comments.
2845 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2846 (pull_pid_from_list, linux_record_stopped_pid): New.
2847
2848 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2849
2850 * ada-lang.c (scan_discrim_bound): Name first argument.
2851 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2852 declared by ALL_BLOCK_SYMBOLS.
2853
2854 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2855
2856 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2857 ("regcache.h"): Include it.
2858 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2859
2860 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2861
2862 * NEWS: Mention gdbserver detach change and "disconnect" command.
2863 * infcmd.c (disconnect_command): New function.
2864 (_initialize_infcmd): Add ``disconnect'' command.
2865 * remote.c (remote_async_detach): Delete.
2866 (remote_detach): Merge remote_async_detach.
2867 (remote_disconnect): New.
2868 (init_remote_ops): Set to_disconnect.
2869 (init_remote_cisco_ops): Likewise.
2870 (init_remote_async_ops): Likewise. Use remote_detach.
2871 * target.c (cleanup_target): Default to_disconnect.
2872 (update_current_target): Inherit to_disconnect.
2873 (target_disconnect, debug_to_disconnect): New functions.
2874 (setup_target_debug): Set to_disconnect.
2875 * target.h (struct target_ops): Add to_disconnect.
2876 (target_disconnect): Add prototype.
2877
2878 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2879
2880 * breakpoint.c (insert_catchpoint): New function.
2881 (insert_breakpoints): Use catch_exceptions to call
2882 insert_catchpoint. Disable catchpoints if they fail to insert.
2883
2884 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2885
2886 * symfile.c (reread_symbols): Clear sym_private.
2887
2888 2003-06-17 Andrew Cagney <cagney@redhat.com>
2889
2890 * trad-frame.h (struct frame_info): Add opaque declaration.
2891 * remote-fileio.h (struct cmd_list_element): Add opaque
2892 declaration.
2893 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2894 comments.
2895
2896 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2897
2898 * remote.c (remote_prepare_to_store): Replace call to
2899 deprecated_read_register_bytes with multiple regcache_raw_read
2900 calls.
2901
2902 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2903
2904 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2905 (nto_find_and_open_solib): Likewise.
2906 (nto_init_solib_absolute_prefix): Likewise.
2907 (_initialize_nto_tdep): Fix indentation.
2908
2909 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2910
2911 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2912
2913 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2914
2915 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2916
2917 2003-06-17 Jim Blandy <jimb@redhat.com>
2918
2919 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2920
2921 2003-06-16 Theodore A. Roth <troth@openavr.org>
2922
2923 * avr-tdep.c (avr_extract_return_value): New function.
2924 (avr_gdbarch_init): Set extract_return_value method.
2925
2926 2003-06-16 Andrew Cagney <cagney@redhat.com>
2927
2928 * frame.h (deprecated_get_next_frame_hack): Declare.
2929 * frame.c (legacy_saved_regs_prev_register): Only require
2930 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2931 there are always saved regs.
2932 (deprecated_generic_get_saved_register): Do not require
2933 DEPRECATED_FRAME_INIT_SAVED_REGS.
2934 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2935 use frame ID unwind instead.
2936 (deprecated_get_next_frame_hack): New function.
2937
2938 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2939
2940 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2941 (h8300_push_dummy_call): ...this function. Some minor optimization.
2942 (h8300_push_return_address): Remove.
2943 (h8300_gdbarch_init): Remove calls to
2944 set_gdbarch_deprecated_dummy_write_sp,
2945 set_gdbarch_deprecated_push_arguments and
2946 set_gdbarch_deprecated_push_return_address.
2947 Add call to set_gdbarch_push_dummy_call.
2948
2949 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2950
2951 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2952 (E_PSEUDO_EXR_REGNUM): Ditto.
2953 (h8300_is_argument_spill): Check for instructions moving argument
2954 registers into safe registers.
2955 (h8300_skip_prologue): Check for stm instruction to push registers
2956 used for register variables onto stack.
2957 (gdb_print_insn_h8300): Remove.
2958 (h8300_examine_prologue): Add a comment.
2959 (h8300_register_name): Take pseudo registers into account.
2960 (h8300s_register_name): Ditto.
2961 (h8300sx_register_name): Ditto.
2962 (h8300_print_register): Ditto.
2963 (h8300_print_registers_info): Define "nice" printing order.
2964 (h8300_saved_pc_after_call): Take pseudo registers into account.
2965 (h8300_register_type): Ditto. Return type used for remote connection
2966 when requesting real CCR or EXR register, return actual type when
2967 requesting pseudo CCR or EXR.
2968 (h8300_pseudo_register_read): New function.
2969 (h8300_pseudo_register_write): Ditto.
2970 (h8300_dbg_reg_to_regnum): Ditto.
2971 (h8300s_dbg_reg_to_regnum): Ditto.
2972 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2973 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2974 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2975 set_gdbarch_print_insn architecture dependent.
2976 Call set_gdbarch_pseudo_register_read and
2977 set_gdbarch_pseudo_register_write.
2978 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2979
2980 2003-06-16 Andrew Cagney <cagney@redhat.com>
2981
2982 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2983 * gdbarch.h, gdbarch.c: Re-generate.
2984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2985 * s390-tdep.c (s390_gdbarch_init): Update.
2986 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2987 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2988 * mips-tdep.c (mips_gdbarch_init): Update.
2989 * mcore-tdep.c (mcore_gdbarch_init): Update.
2990 * cris-tdep.c (cris_gdbarch_init): Update.
2991 * infcall.c (call_function_by_hand): Update.
2992 * ia64-tdep.c (ia64_push_arguments): Update comment.
2993 * frame.c (legacy_get_prev_frame): Do not assume
2994 SAVE_DUMMY_FRAME_TOS_P.
2995 * dummy-frame.c (find_dummy_frame): Update comment.
2996
2997 2003-06-16 Andrew Cagney <cagney@redhat.com>
2998
2999 * regcache.c (do_cooked_read): Do not use register_valid_p.
3000
3001 2003-06-15 Theodore A. Roth <troth@openavr.org>
3002
3003 * avr-tdep.c (avr_register_type): Remove a blank line.
3004 (avr_scan_prologue): Correct some comments.
3005
3006 2003-06-15 Theodore A. Roth <troth@openavr.org>
3007
3008 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3009 prologue types.
3010 Properly scan prologues generated by gcc with the -mcall-prologues
3011 option.
3012 Add code to scan -mcall-prologues for mega devices.
3013
3014 2003-06-15 Theodore A. Roth <troth@openavr.org>
3015
3016 * avr-tdep.c (avr_register_byte): Delete function.
3017 (avr_register_raw_size): Delete function.
3018 (avr_register_virtual_size): Delete function.
3019 (avr_register_virtual_type): Delete function.
3020 (avr_register_type): New function.
3021 (avr_address_to_pointer): Remove unused code.
3022 (avr_read_fp): Need to read FP as two separate bytes due to change to
3023 avr_register_type() usage.
3024 (avr_gdbarch_init): Don't set deprecated_register_size.
3025 Don't set deprecated_register_bytes.
3026 Don't set deprecated_register_byte.
3027 Don't set deprecated_register_raw_size.
3028 Don't set deprecated_max_register_raw_size.
3029 Don't set deprecated_register_virtual_size.
3030 Don't set deprecated_max_register_virtual_size.
3031 Don't set deprecated_register_virtual_type.
3032 Set register_type method.
3033
3034 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3035
3036 * Makefile.in (linux-nat.o): Add rule.
3037 * linux-nat.c: New file.
3038 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3039 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3040 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3041 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3042 * config/arm/linux.mh (NATDEPFILES): Likewise.
3043 * config/i386/linux.mh (NATDEPFILES): Likewise.
3044 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3045 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3046 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3047 * config/mips/linux.mh (NATDEPFILES): Likewise.
3048 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3049 * config/s390/s390.mh (NATDEPFILES): Likewise.
3050 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3051
3052 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3053
3054 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3055 replace out-of-date comment.
3056
3057 2003-06-15 Andrew Cagney <cagney@redhat.com>
3058
3059 * rdi-share/host.h (Fail): Change to a varargs function.
3060 * remote-rdi.c (Fail): Update.
3061
3062 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3063
3064 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3065 (i386_convert_register_p, i386_register_to_value,
3066 i386_register_from_value): Handle types longer than 8 bytes.
3067
3068 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3069
3070 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3071 Move floating-point code to new function in i387-tdep.c.
3072 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3073 New functions containing code moved here from i386-tdep.c.
3074 * i387-tdep.h: Add opaque declaration for `struct type'.
3075 (i387_register_to_value, i387_value_to_register): New prototypes.
3076 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3077 (x86_64_init_abi): Set convert_register_p, register_to_value and
3078 value_to_register here.
3079
3080 2003-06-14 Andrew Cagney <cagney@redhat.com>
3081
3082 * mips-tdep.c (mips_register_to_value): Make static.
3083 (mips_value_to_register): Make static.
3084 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3085 * ia64-tdep.c (ia64_register_raw_size): Make static.
3086 (ia64_register_virtual_size): Make static.
3087 (ia64_register_byte): Make static.
3088 * i387-tdep.c: Include "i387-tdep.h".
3089 (print_387_control_word): Delete function.
3090 (print_387_status_word): Delete function.
3091 (print_387_status_bits): Delete function.
3092 (print_387_control_bits): Delete function.
3093 * Makefile.in (i387-tdep.o): Update dependencies.
3094 * rdi-share/host.h (Fail): Declare.
3095 * remote-rdi.c (Fail): Update to match declaration.
3096
3097 2003-06-14 Andrew Cagney <cagney@redhat.com>
3098
3099 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3100 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3101 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3102 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3103 * README: Delete reference to remote-array.
3104 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3105 (remote-array.o): Delete target.
3106 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3107 * remote-array.c: Delete file.
3108
3109 2003-06-14 Andrew Cagney <cagney@redhat.com>
3110 Mark Kettenis <kettenis@gnu.org>
3111
3112 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3113 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3114 parameter with "frame".
3115 * gdbarch.h, gdbarch.c: Re-generate.
3116 * frame.h (put_frame_register): Declare.
3117 * frame.c (put_frame_register): New function.
3118 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3119 (legacy_register_to_value): Rewrite, use "frame" to get the
3120 register value.
3121 (legacy_value_to_register): Rewrite, use "frame" to find the
3122 register's location before storing.
3123 * arch-utils.h (legacy_convert_register_p): Update.
3124 (legacy_register_to_value, legacy_value_to_register): Update.
3125 * findvar.c (value_from_register): Rewrite, eliminate use of
3126 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3127 "frame" to REGISTER_TO_VALUE.
3128 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3129 lval_reg_frame_relative + lval_register branch of the switch. Do
3130 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3131 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3132 I386_EDI_REGNUM): New defines.
3133 (i386_next_regnum, i386_convert_register_p,
3134 i386_register_to_value, i386_value_to_register): New functions.
3135 (i386_register_convertible, i386_register_convert_to_virtual,
3136 i386_convert_to_raw): Remove functions.
3137 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3138 value_to_register instead of register_convertible,
3139 register_convert_to_virtual and register_convert_to_raw.
3140 * mips-tdep.c (mips_convert_register_p): New function.
3141 (mips_value_to_register): Replace mips_register_convert_from_type.
3142 (mips_register_to_value): Replace mips_register_convert_to_type.
3143 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3144 register_to_value.
3145 * alpha-tdep.c (alpha_convert_register_p): Update.
3146 (alpha_value_to_register): Update, store the register.
3147 (alpha_register_to_value): Update, fetch the register.
3148
3149 2003-06-14 Theodore A. Roth <troth@openavr.org>
3150
3151 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3152 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3153 Don't set deprecated_call_dummy_words.
3154 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3155 Don't set remote_translate_xfer_address.
3156 (avr_io_reg_read_command): Remove commented out debug printf.
3157 Wrap a long line.
3158
3159 2003-06-14 Theodore A. Roth <troth@openavr.org>
3160
3161 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3162 causes gdb to seg fault.
3163
3164 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3165
3166 * sparc-nat.c (fetch_inferior_registers): Correct
3167 a reference to "registers".
3168
3169 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3170
3171 * Makefile.in (exc_request_U_h): Define
3172 (exc_request_S_h): Likewise.
3173 (msg_reply_S_h): Likewise.
3174 (msg_U_h): Likewise.
3175 (notify_S_h): Likewise.
3176 (process_reply_S_h): Likewise.
3177 (gnu-nat.o): Depend on gdb_obstack_h
3178 * gnu-nat.c: Include "gdb_obstack.h".
3179
3180 2003-06-13 Andrew Cagney <cagney@redhat.com>
3181
3182 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3183 * gdbarch.h, gdbarch.c: Re-generate.
3184
3185 2003-06-13 Andrew Cagney <cagney@redhat.com>
3186
3187 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3188 when deprecated REGISTER macros can be deleted.
3189 * gdbarch.h, gdbarch.c: Re-generate.
3190
3191 2003-06-13 Jim Blandy <jimb@redhat.com>
3192
3193 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3194 Linux entry point symbols for _dl_debug_state, too.
3195
3196 2003-06-13 Andrew Cagney <cagney@redhat.com>
3197
3198 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3199 available, do not use the FP register, and always save the TOS.
3200 * dummy-frame.c (dummy_frame_this_id): Do not assert
3201 SAVE_DUMMY_FRAME_TOS.
3202 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3203 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3204 (i386_push_dummy_call): Add 8 to the returned SP.
3205 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3206 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3207 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3208 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3209 (x86_64_push_dummy_call): Return "sp + 16".
3210 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3211 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3212 save_dummy_frame_tos.
3213
3214 2003-06-13 Jim Blandy <jimb@redhat.com>
3215
3216 * frv-tdep.c (frv_use_struct_convention): Delete static
3217 declaration for function deleted in my change of 2003-06-12.
3218
3219 2003-06-13 Theodore A. Roth <troth@openavr.org>
3220
3221 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3222 (avr_pointer_to_address): Shift code addrs left 1 bit.
3223 (avr_convert_from_func_ptr_addr): Delete function since operation is
3224 better handled by avr_address_to_pointer and avr_pointer_to_address.
3225 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3226
3227 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3228
3229 From Kelley Cook <kelleycook@wideopenwest.com>:
3230 * configure.host: Accept i[34567]86 variants.
3231 * configure.tgt: Likewise.
3232 * nlm/configure.in: Likewise.
3233 * nlm/configure: Regenerated.
3234
3235 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3236
3237 * arm-tdep.c (solib-svr4.h): Dont' include it.
3238 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3239 * arm-linux-tdep.c: ... here. Make static.
3240 (arm_linux_init_abi): Register it.
3241 (solib-svr4.h): Include it.
3242 * Makefile.in: Update dependencies.
3243 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3244 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3245
3246 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3247
3248 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3249 indicate registers used for return values.
3250 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3251 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3252 members.
3253 (h8300_init_extra_frame_info): Ditto.
3254 (h8300_frame_locals_address): Removed.
3255 (h8300_frame_args_address): Removed.
3256 (h8300_extract_return_value): Use new regcache structure. Only care
3257 for 16 bit CPUs.
3258 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3259 (h8300_store_return_value): Use new regcache structure. Only care
3260 for 16 bit CPUs.
3261 (h8300h_store_return_value): Same function for 32 bit CPUs.
3262 (h8300_store_struct_return): Removed.
3263 (h8300_extract_struct_value_address): Use new regcache structure.
3264 (h8300h_extract_struct_value_address): Removed.
3265 (h8300_push_dummy_code): New function.
3266 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3267 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3268 set_gdbarch_store_return_value architecture dependent.
3269 Call set_gdbarch_push_dummy_code and
3270 set_gdbarch_extract_struct_value_address.
3271 Remove calls to set_gdbarch_frame_args_address,
3272 set_gdbarch_frame_locals_address,
3273 set_gdbarch_deprecated_store_struct_return,
3274 set_gdbarch_deprecated_extract_return_value,
3275 set_gdbarch_deprecated_extract_struct_value_address,
3276 set_gdbarch_deprecated_call_dummy_words and
3277 set_gdbarch_deprecated_sizeof_call_dummy_words.
3278
3279 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3280
3281 * h8300-tdep.c (h8300_register_byte): Remove.
3282 (h8300h_register_byte): Remove.
3283 (h8300_register_virtual_type): Remove. Substitute by...
3284 (h8300_register_type): New function.
3285 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3286 (h8300h_extract_struct_value_address): Ditto.
3287 (h8300_gdbarch_init): Drop calls to
3288 set_gdbarch_deprecated_register_byte and
3289 set_gdbarch_deprecated_register_virtual_type.
3290 Add call to set_gdbarch_register_type.
3291
3292 2003-06-13 Andrew Cagney <cagney@redhat.com>
3293
3294 * gdbarch.sh: Update comments on registers.
3295 (deprecated_register_byte): Rename register_byte.
3296 (deprecated_register_raw_size): Rename register_raw_size.
3297 (deprecated_register_virtual_size): Rename register_virtual_size.
3298 (deprecated_register_virtual_type): Rename register_virtual_type.
3299 * gdbarch.h, gdbarch.c: Re-generate.
3300 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3301 * vax-tdep.c (vax_gdbarch_init): Update.
3302 * v850-tdep.c (v850_gdbarch_init): Update.
3303 * sparc-tdep.c (sparc_gdbarch_init): Update.
3304 * sh-tdep.c (sh_gdbarch_init): Update.
3305 * s390-tdep.c (s390_gdbarch_init): Update.
3306 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3307 * ns32k-tdep.c: Update.
3308 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3309 * mips-tdep.c (mips_gdbarch_init): Update.
3310 * mcore-tdep.c (mcore_gdbarch_init): Update.
3311 * m68k-tdep.c (m68k_gdbarch_init): Update.
3312 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3313 * ia64-tdep.c (ia64_gdbarch_init): Update.
3314 * hppa-tdep.c (hppa_gdbarch_init): Update.
3315 * h8300-tdep.c (h8300_gdbarch_init): Update.
3316 * frv-tdep.c (frv_gdbarch_init): Update.
3317 * cris-tdep.c (cris_gdbarch_init): Update.
3318 * avr-tdep.c (avr_gdbarch_init): Update.
3319 * alpha-tdep.c (alpha_gdbarch_init): Update.
3320 * arm-tdep.c (arm_gdbarch_init): Update.
3321
3322 2003-06-13 Andrew Cagney <cagney@redhat.com>
3323
3324 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3325 mips_o32_use_struct_convention with always_use_struct_convention.
3326
3327 2003-06-12 David Carlton <carlton@kealia.com>
3328
3329 * cp-namespace.c (cp_set_block_scope): Comment out
3330 processing_has_namespace_info branch.
3331
3332 2003-06-12 Jim Blandy <jimb@redhat.com>
3333
3334 Recognize and skip 64-bit PowerPC Linux linkage functions.
3335 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3336 insn_pattern, insns_match_pattern, d_field, ds_field): New
3337 functions, macros, and types for working with PPC instructions.
3338 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3339 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3340 ppc64_skip_trampoline_code): New functions, variables, and macros
3341 for recognizing and skipping linkage functions.
3342 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3343 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3344
3345 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3346 register offsets for both the 32- and 64-bit interfaces.
3347
3348 Actually finish the job started by my change of 2003-05-29.
3349 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3350 other #definition of this.
3351 (ppc_linux_skip_trampoline_code): Remove declaration.
3352 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3353 static.
3354 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3355 method for GDBARCH.
3356
3357 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3358 'long' on ppc64-*-linux*.
3359
3360 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3361 isn't #defined, assume the register doesn't exist: act as if
3362 tdep->ppc_mq_regnum were -1.
3363
3364 * configure.host, configure.tgt: Add entries for
3365 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3366 powerpc/linux.mt.
3367 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3368 New files.
3369
3370 * arch-utils.c (always_use_struct_convention): New function.
3371 * arch-utils.h (always_use_struct_convention): New prototype.
3372 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3373 (alpha_gdbarch_init): Register always_use_struct_convention,
3374 instead of alpha_use_struct_convention.
3375 * cris-tdep.c (cris_use_struct_convention): Delete.
3376 (cris_gdbarch_init): Register always_use_struct_convention,
3377 instead of cris_use_struct_convention.
3378 * frv-tdep.c (frv_use_struct_convention): Delete.
3379 (frv_gdbarch_init): Register always_use_struct_convention,
3380 instead of frv_use_struct_convention.
3381 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3382 (h8300_gdbarch_init): Register always_use_struct_convention,
3383 instead of h8300_use_struct_convention.
3384 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3385 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3386 instead of mips_o32_use_struct_convention.
3387
3388 2003-06-12 Andrew Cagney <cagney@redhat.com>
3389
3390 * wince.c: Include "mips-tdep.h".
3391 * mips-tdep.h (mips_next_pc): Declare.
3392 * mcore-tdep.c: Make more local functions static.
3393 * Makefile.in (wince.o): Update dependencies.
3394
3395 2003-06-12 David Carlton <carlton@kealia.com>
3396
3397 * symtab.c (lookup_symbol_aux_minsyms): Replace
3398 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3399 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3400 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3401 SYMBOL_NATURAL_NAME.
3402
3403 2003-06-12 Andreas Schwab <schwab@suse.de>
3404
3405 * Makefile.in (tuiDisassem.o): Update dependencies.
3406
3407 2003-06-12 David Carlton <carlton@bactrian.org>
3408
3409 * symtab.h: Delete declaration of make_symbol_overload_list.
3410 Add declaration of lookup_partial_symbol.
3411 * symtab.c (remove_params): Move to cp-support.c.
3412 (overload_list_add_symbol, make_symbol_overload_list)
3413 (sym_return_val_size, sym_return_val_index): Ditto.
3414 (lookup_partial_symbol): Make extern.
3415 * cp-support.h: Add declaration of make_symbol_overload_list.
3416 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3417 symtab.h, and block.h.
3418 (remove_params): Move here from symtab.c.
3419 (overload_list_add_symbol, make_symbol_overload_list)
3420 (sym_return_val_size, sym_return_val_index): Ditto.
3421 * valops.c: Include cp-support.h.
3422 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3423 frame_h, and block_h.
3424 (valops.o): Depend on cp_support_h.
3425
3426 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3427
3428 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3429 substitute by NUM_REGS throughout.
3430 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3431 (h8300s_register_name): New function for H8S registers.
3432 (h8300sx_register_name): Ditto for H8SX registers.
3433 (h8300_print_register): Revise register printing, avoid depending
3434 on 32 bit long.
3435 (h8300_register_byte): Only care for H8/300 registers.
3436 (h8300h_register_byte): New function for any other architecture.
3437 (h8300_register_raw_size): Remove.
3438 (h8300_register_virtual_type): Revise to return actually useful
3439 type.
3440 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3441 (h8300h_extract_struct_value_address): New function for any other
3442 architecture.
3443 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3444 set_gdbarch_register_name, set_gdbarch_register_byte,
3445 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3446 Remove calls to set_gdbarch_deprecated_register_size,
3447 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3448 set_gdbarch_deprecated_max_register_raw_size,
3449 set_gdbarch_register_virtual_size and
3450 set_gdbarch_deprecated_max_register_virtual_size entirely.
3451 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3452 set_gdbarch_long_double_bit.
3453
3454 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3455
3456 * doublest.c (convert_doublest_to_floatformat): When dealing
3457 with the implied integer bit, only alter mant_bits if we are
3458 processing a full 32 bits of mantissa.
3459
3460 2003-06-11 David Carlton <carlton@bactrian.org>
3461
3462 * dictionary.h: New.
3463 * dictionary.c: New.
3464 * block.h: Add opaque declaration for struct dictionary.
3465 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3466 'sym' members.
3467 (BLOCK_DICT): New macro.
3468 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3469 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3470 BLOCK_SHOULD_SORT.
3471 (ALL_BLOCK_SYMBOLS): Update definition.
3472 * Makefile.in (SFILES): Add dictionary.c.
3473 (dictionary_h): New.
3474 (COMMON_OBS): Add dictionary.o.
3475 (dictionary.o): New.
3476 (ada-lang.o): Depend on dictionary_h.
3477 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3478 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3479 (mi-cmd-stack.o): Ditto.
3480 (gdbtk-cmds.o): Update dependencies.
3481 (gdbtk-stack.o): Ditto.
3482 * ada-lang.c: Include dictionary.h.
3483 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3484 (fill_in_ada_prototype, debug_print_block): Ditto.
3485 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3486 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3487 'is_sorted'.
3488 * mdebugread.c: Include dictionary.h.
3489 (struct parse_stack): Delete 'maxsyms' member.
3490 (parse_symbol): Update calls to new_block. Delete calls to
3491 shrink_block. Use dictionary methods.
3492 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3493 Update calls to new_symtab. Don't maintain maxsyms data.
3494 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3495 (add_symbol): Just call dict_add_symbol.
3496 (new_symtab): Delete 'maxsyms' argument.
3497 (new_symtab): Update calls to new_block.
3498 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3499 (shrink_block): Delete function.
3500 (fixup_sigtramp): Update call to new_block. Add symbol via
3501 dict_add_symbol.
3502 * jv-lang.c: Include dictionary.h.
3503 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3504 appropriately. Set class_symtab->free_func. Make sure the
3505 blockvector is big enough to hold two blocks.
3506 (add_class_symtab_symbol): Use dictionary methods.
3507 (free_class_block): New function.
3508 (type_from_class): Replace explicit iteration by
3509 ALL_BLOCK_SYMBOLS.
3510 * symtab.h (struct symtab): Replace 'free_ptr' method by
3511 'free_func'.
3512 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3513 sort_symtab_syms.
3514 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3515 sort_symtab_syms.
3516 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3517 Include dictionary.h.
3518 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3519 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3520 sort_symtab_syms.
3521 * objfiles.c: Include dictionary.h.
3522 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3523 * buildsym.c: Include dictionary.h.
3524 (finish_block): Use dictionary methods.
3525 (end_symtab): Set free_func to NULL, not free_ptr.
3526 * tracepoint.c: Include dictionary.h.
3527 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3528 (scope_info): Ditto.
3529 * stack.c: Include dictionary.h.
3530 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3531 (print_block_frame_labels, print_frame_arg_vars)
3532 (print_frame_args): Ditto.
3533 * symmisc.c (free_symtab_block): Use dictionary methods.
3534 (dump_symtab): Ditto.
3535 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3536 Include dictionary.h.
3537 * symfile.h: Delete declarations of sort_block_syms,
3538 sort_symtab_syms.
3539 * symfile.c (sort_block_syms): Delete.
3540 (sort_symtab_syms): Delete.
3541 * symtab.c: Include dictionary.h.
3542 (lookup_block_symbol): Use dictionary iterators.
3543 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3544 (search_symbols, make_symbol_completion_list): Ditto.
3545 (make_symbol_overload_list): Ditto.
3546 * valops.c (value_of_local): Use dict_empty.
3547 Include dictionary.h.
3548
3549 2003-06-11 J. Brobecker <brobecker@gnat.com>
3550
3551 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3552
3553 2003-06-11 David Carlton <carlton@bactrian.org>
3554
3555 * block.h (BLOCK_SHOULD_SORT): Delete.
3556 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3557 blocks.
3558 * ada-lang.c (ada_add_block_symbols): Ditto.
3559 * symfile.c (sort_block_syms): Delete.
3560 (sort_symtab_syms): Ditto.
3561 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3562 declarations.
3563 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3564 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3565 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3566 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3567 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3568 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3569 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3570
3571 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3572
3573 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3574 bits to 128.
3575
3576 2003-06-11 Andrew Cagney <cagney@redhat.com>
3577
3578 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3579 REGISTER_CONVERTIBLE.
3580 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3581 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3582 * gdbarch.h, gdbarch.c: Re-generate.
3583 * arch-utils.h (deprecated_register_convertible_not): Rename
3584 generic_register_convertible_not.
3585 * arch-utils.c (deprecated_register_convertible_not): Rename
3586 generic_register_convertible.
3587 (legacy_convert_register_p, legacy_register_to_value): Update.
3588 * sh-tdep.c (sh64_push_arguments): Update.
3589 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3590 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3591 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3592 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3593 * arch-utils.c (legacy_value_to_register): Update.
3594 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3595 (rs6000_register_convert_to_raw): Make parameter "from" const.
3596 * mips-tdep.c (mips_gdbarch_init): Update.
3597 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3598 * infcmd.c (default_print_registers_info): Update.
3599 * ia64-tdep.c (ia64_gdbarch_init): Update.
3600 (ia64_register_convert_to_raw): Make parameter "from" const.
3601 * i386-tdep.c (i386_gdbarch_init): Update.
3602 (i386_register_convert_to_raw): Update.
3603
3604 2003-06-11 Andrew Cagney <cagney@redhat.com>
3605
3606 * remote-fileio.c: Include "remote-fileio.h".
3607 * Makefile.in (remote-fileio.o): Update dependencies.
3608 (remote_fileio_h): Fix typo.
3609
3610 2003-06-11 Andrew Cagney <cagney@redhat.com>
3611
3612 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3613 (xstormy16_save_dummy_frame_tos): Make static.
3614 (_initialize_xstormy16_tdep): Add declaration.
3615 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3616 * v850-tdep.c: Make local functions static.
3617 (_initialize_v850_tdep): Add declaration.
3618 * sparc-tdep.c: Make local functions static.
3619 (_initialize_sparc_tdep): Add declaration.
3620 * sh-tdep.c: Make local functions static.
3621 (_initialize_sh_tdep): Add declaration.
3622 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3623 * s390-tdep.c: Make local functions static.
3624 (_initialize_s390_tdep): Add declaration.
3625 * dbxread.c (find_stab_function_addr): Make static.
3626 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3627 * ocd.c (_initialize_remote_ocd): Add declaration.
3628 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3629 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3630 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3631 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3632 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3633 * remote-array.c (_initialize_array): Add declaration.
3634 (_initialize_remote_monitors): Add declaration.
3635 * remote-mips.c: Make local functions static.
3636 (_initialize_remote_mips): Add declaration.
3637 * mcore-tdep.c: Make all local functions static.
3638 (_initialize_mcore_tdep): Add declaration.
3639 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3640 * abug-rom.c (_initialize_abug_rom): Add declaration.
3641 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3642 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3643 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3644 * remote-est.c (_initialize_est): Add declaration.
3645 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3646 (m68hc11_call_dummy_address): Make static.
3647 * ia64-tdep.c: Make local functions static.
3648 (_initialize_ia64_tdep): Add declaration.
3649 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3650 * monitor.c (monitor_wait_filter): Make static.
3651 (_initialize_remote_monitors): Add declaration.
3652 * remote-hms.c (_initialize_remote_hms): Add declaration.
3653 * remote-e7000.c (fetch_regs_from_dump): Make static.
3654 (expect_n): Make static.
3655 (_initialize_remote_e7000): Add declaration.
3656 * ser-e7kpc.c: Always include "defs.h".
3657 (_initialize_ser_e7000pc): Add declaration.
3658 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3659 * cris-tdep.c: Make all but one function static.
3660 (_initialize_cris_tdep): Add declaration.
3661 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3662 * solib.c (update_solib_list): Make static.
3663 (_initialize_solib): Add declaration.
3664 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3665 (_initialize_avr_tdep): Add declaration.
3666 * remote-rdi.c (voiddummy): Make static.
3667 (_initialize_remote_rdi): Add declaration.
3668 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3669 * remote-rdp.c (send_rdp): Make static.
3670 (_initialize_remote_rdp): Add declaration.
3671 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3672
3673 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3674
3675 * remote-fileio.c: Make ari happy.
3676
3677 2003-06-10 J. Brobecker <brobecker@gnat.com>
3678
3679 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3680 fetching the trailing bytes of the buffer we are about to write.
3681
3682 2003-06-10 Andrew Cagney <cagney@redhat.com>
3683
3684 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3685 * Makefile.in (remote-fileio.o): Update dependencies.
3686 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3687 include <setjmp.h>, or <sys/types.h> conditional on USG.
3688 (remote_fio_jmp_buf): Delete global variable.
3689
3690 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3691 Martin M. Hunt <hunt@redhat.com>
3692
3693 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3694 (SFILES): Add remote-fileio.c.
3695 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3696 dependencies for building remote.o.
3697 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3698 * remote-fileio.h: New header file defining remote File-I/O interface.
3699 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3700 static storage class.
3701 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3702 'F' packet.
3703 (_initialize_remote): Call initialize_remote_fileio().
3704 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3705 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3706 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3707 (captured_main): Initialize new ui_files.
3708 * ui-file.c: Add read and fgets input functions.
3709 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3710 (null_file_read): New function.
3711 (ui_file_read): New function.
3712 (set_ui_file_read): New function.
3713 (stdio_file_read): New function.
3714 * ui-file.h: New type ui_file_read_ftype.
3715 (set_ui_file_read): Declare.
3716 (ui_file_read): Declare.
3717
3718 2003-06-09 Andrew Cagney <cagney@redhat.com>
3719
3720 * frame.h (deprecated_unwind_get_saved_register): Rename
3721 generic_unwind_get_saved_register, update comments.
3722 * mips-tdep.c (mips_get_saved_register): Update.
3723 * frame.c (deprecated_unwind_get_saved_register): Update.
3724
3725 2003-06-09 Andrew Cagney <cagney@redhat.com>
3726
3727 * vax-tdep.c (vax_frame_locals_address): Delete function.
3728 (vax_gdbarch_init): Do not set frame_locals_address.
3729 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3730 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3731 * s390-tdep.c (s390_frame_args_address): Delete function.
3732 (s390_gdbarch_init): Do not set frame_args_address or
3733 frame_locals_address.
3734 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3735 (ns32k_gdbarch_init): Do not set frame_locals_address.
3736 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3737 (hppa_frame_locals_address): Delete function.
3738 (hppa_gdbarch_init): Do not set frame_args_address, or
3739 frame_locals_address.
3740 * arm-tdep.c (arm_frame_args_address): Delete.
3741 (arm_frame_locals_address): Delete.
3742 (arm_gdbarch_init): Do not set frame_args_address, or
3743 frame_locals_address.
3744
3745 2003-06-09 Andrew Cagney <cagney@redhat.com>
3746
3747 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3748 * gdbarch.h, gdbarch.c: Re-generate.
3749 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3750 * arch-utils.c (frame_num_args_unknown): Delete function.
3751 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3752 (frame_info): Use FRAME_NUM_ARGS_P.
3753 * arm-tdep.c (arm_frame_num_args): Delete function.
3754 (arm_gdbarch_init): Do not set frame_num_args.
3755 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3756 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3757 (hppa_gdbarch_init): Do not set frame_num_args.
3758 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3759 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3760 frame_num_args to default frame_num_args_unknown.
3761 * v850-tdep.c (v850_gdbarch_init): Ditto.
3762 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3763 * sh-tdep.c (sh_gdbarch_init): Ditto.
3764 * s390-tdep.c (s390_gdbarch_init): Ditto.
3765 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3766 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3767 * mips-tdep.c (mips_gdbarch_init): Ditto.
3768 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3769 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3770 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3771 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3772 * i386-tdep.c (i386_gdbarch_init): Ditto.
3773 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3774 * frv-tdep.c (frv_gdbarch_init): Ditto.
3775 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3776 * cris-tdep.c (cris_gdbarch_init): Ditto.
3777 * avr-tdep.c (avr_gdbarch_init): Ditto.
3778 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3779
3780 2003-06-09 Andrew Cagney <cagney@redhat.com>
3781
3782 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3783 (print_frame_args): Moved to "stack.c".
3784 * stack.c: Include "gdb_assert.h".
3785 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3786 (print_frame_args): Moved from "printcmd.c".
3787 * frame.h (print_frame_args): Delete declaration.
3788 * Makefile.in (stack.o): Update dependencies.
3789
3790 2003-06-08 Andrew Cagney <cagney@redhat.com>
3791
3792 * frame.c (get_prev_frame): Remove reference to
3793 frame_args_address_correct in comments.
3794 * frame-base.c (default_frame_args_address): Delete code
3795 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3796 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3797 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3798 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3799 (vax_frame_args_address_correct): Delete declaration.
3800
3801 2003-06-08 Andrew Cagney <cagney@redhat.com>
3802
3803 * gdbarch.sh (UNWIND_SP): Add.
3804 * gdbarch.h, gdbarch.c: Re-generate.
3805 * frame.c (frame_sp_unwind): New function.
3806 (get_frame_sp): New function.
3807 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3808 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3809 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3810 value.
3811 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3812 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3813
3814 2003-06-08 Andrew Cagney <cagney@redhat.com>
3815
3816 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3817 REMOTE_BREAKPOINT.
3818 * remote.c: Update.
3819 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3820 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3821 * config/m68k/tm-sun3.h: Update.
3822 * config/m68k/tm-m68klynx.h: Update.
3823 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3824
3825 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3826 trad_frame". Update comments.
3827 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3828 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3829 (trad_frame_register_value, trad_frame_prev_register): Update.
3830
3831 2003-06-08 Andrew Cagney <cagney@redhat.com>
3832
3833 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3834 from GCC's acinclude.m4.
3835 * configure.in: Check for getopt's delcaration.
3836 * aclocal.m4, config.in, configure: Re-generate.
3837 * main.c (error_init): Delete declaration.
3838 * defs.h (error_init): Declare.
3839 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3840 (rs6000_convert_from_func_ptr_addr): Make static.
3841 (_initialize_rs6000_tdep): Add declaration.
3842 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3843 (show_commands, set_verbose, show_history): Delete declaration.
3844 * top.h (set_verbose): Add declaration.
3845 (show_history, set_history, show_commands): Add declaration.
3846 (do_restore_instream_cleanup): Add declaration.
3847 * objc-lang.c (specialcmp): Make static.
3848 (print_object_command): Make static.
3849 (find_objc_msgsend): Make static.
3850 (find_objc_msgcall_submethod_helper): Make static.
3851 (find_objc_msgcall_submethod): Make static.
3852 (_initialize_objc_language): Add declaration.
3853 (find_implementation_from_class): Make static.
3854 (find_implementation): Make static.
3855 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3856 * objc-lang.h (lookup_struct_typedef): Add declaration.
3857 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3858 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3859 (do_restore_user_call_depth): Make static.
3860 (do_restore_instream_cleanup): Delete declaration.
3861 (dont_repeat): Delete declaration.
3862 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3863 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3864 * reggroups.c (_initialize_reggroup): Add declaration.
3865 * cp-support.c (_initialize_cp_support): Add declaration.
3866 * cp-abi.c (_initialize_cp_abi): Add declaration.
3867 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3868 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3869 (_initialize_gnu_v3_abi): Add declaration.
3870 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3871 (_initialize_gnu_v2_abi): Add declaration.
3872 * frame-base.c (_initialize_frame_base): Add declaration.
3873 * doublest.c (floatformat_from_length): Make static.
3874 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3875 * frame.c (create_sentinel_frame): Make static.
3876 (_initialize_frame): Add declaration.
3877 * top.c (do_catch_errors): Make static.
3878 (gdb_rl_operate_and_get_next_completion): Make static.
3879 * typeprint.c: Include "typeprint.h".
3880 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3881 (sentinel_frame_this_id): Make static.
3882 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3883 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3884 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3885 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3886 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3887 * maint.c (maintenance_print_architecture): Make static.
3888 * signals/signals.c (_initialize_signals): Add declaration.
3889 * std-regs.c (_initialize_frame_reg): Add declaration.
3890 * jv-exp.y (push_variable): ISO C definition.
3891 (push_qualified_expression_name): Ditto.
3892 * memattr.c (_initialize_mem): Add declaration.
3893 * remote.c (remote_check_watch_resources): Make static.
3894 (remote_stopped_by_watchpoint): Make static.
3895 (remote_stopped_data_address): Make static.
3896 * d10v-tdep.c (nr_dmap_regs): Make static.
3897 (a0_regnum): Make static.
3898 (d10v_frame_unwind_cache): Make static.
3899 (d10v_frame_p): Make static.
3900 * osabi.c (show_osabi): Make static.
3901 (_initialize_gdb_osabi): Add extern declaration.
3902 * gdbtypes.c (make_qualified_type): Make static.
3903 (safe_parse_type): Make static.
3904 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3905 * macrotab.c (macro_bcache_free): Make static.
3906 * interps.c (interp_set_quiet): Make static.
3907 (interpreter_exec_cmd): Make static.
3908 * stack.h (select_frame_command): New file.
3909 * stack.c: Include "stack.h".
3910 (select_frame_command_wrapper): Delete function.
3911 (select_frame_command): Make global.
3912 * infcall.c: Include "infcall.h".
3913 * linespec.c: Include "linespec.h".
3914 * symfile.c (sections_overlap): Make static.
3915 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3916 * charset.c (_initialize_charset): Add missing prototype.
3917 * regcache.c (init_legacy_regcache_descr): Make static.
3918 (do_regcache_xfree): Make static.
3919 (regcache_xfer_part): Make static.
3920 (_initialize_regcache): Add missing prototype.
3921 * breakpoint.c (parse_breakpoint_sals): Make static.
3922 (breakpoint_sals_to_pc): Make static.
3923 * interps.h (clear_interpreter_hooks): ISO C declaration.
3924 * Makefile.in (stack_h): Define.
3925 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3926 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3927
3928 2003-06-08 Andrew Cagney <cagney@redhat.com>
3929
3930 * Makefile.in (d10v-tdep.o): Update dependencies.
3931 (SFILES): Add trad-frame.c.
3932 (trad_frame_h): Define.
3933 (COMMON_OBS): Add trad-frame.o.
3934 (trad-frame.o): Specify dependencies.
3935 * d10v-tdep.c: Include "trad-frame.h".
3936 (saved_regs_unwinder): Delete function.
3937 (d10v_frame_prev_register): Use trad_frame_prev_register.
3938 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3939 trad_frame", delete "regs" and "prev_sp".
3940 (prologue_find_regs): Use trad-frame.
3941 * trad-frame.h, trad-frame.c: New files.
3942
3943 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3944
3945 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3946
3947 2003-06-07 Adam Fedor <fedor@gnu.org>
3948
3949 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3950 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3951 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3952 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3953 resolve_msgsend_super, resolve_msgsend_super_stret):
3954 Use it.
3955
3956 2003-06-07 Andrew Cagney <cagney@redhat.com>
3957
3958 * symfile.h: Re-indent, clean up comments.
3959
3960 2003-06-07 Andrew Cagney <cagney@redhat.com>
3961
3962 * inferior.h (deprecated_write_sp): Replace
3963 generic_target_write_sp.
3964 * regcache.c (deprecated_write_sp): Replace
3965 generic_target_write_sp.
3966 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3967 * vax-tdep.c (vax_gdbarch_init): Update.
3968 * v850-tdep.c (v850_gdbarch_init): Update.
3969 * sparc-tdep.c (sparc_gdbarch_init): Update.
3970 * sh-tdep.c (sh_gdbarch_init): Update.
3971 * s390-tdep.c (s390_gdbarch_init): Update.
3972 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3973 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3974 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3975 * mcore-tdep.c (mcore_gdbarch_init): Update.
3976 * m68k-tdep.c (m68k_gdbarch_init): Update.
3977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3978 * ia64-tdep.c (ia64_gdbarch_init): Update.
3979 * h8300-tdep.c (h8300_gdbarch_init): Update.
3980 * frv-tdep.c (frv_gdbarch_init): Update.
3981 * cris-tdep.c (cris_gdbarch_init): Update.
3982 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3983
3984 2003-06-07 Andrew Cagney <cagney@redhat.com>
3985
3986 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3987 Assert that PC_REGNUM is valid.
3988 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3989
3990 2003-06-07 Andrew Cagney <cagney@redhat.com>
3991
3992 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3993 * gdbarch.h, gdbarch.c: Regenerate.
3994 * mn10300-tdep.c: Include "gdb_assert.h".
3995 (mn10300_read_fp): New function.
3996 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3997 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3998 * ia64-tdep.c: Include "gdb_assert.h".
3999 (ia64_read_fp): New function.
4000 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4001 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4002 * regcache.c (generic_target_read_sp): Delete function.
4003 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4004 * inferior.h (generic_target_read_sp): Delete declaration.
4005 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4006 generic_target_read_sp.
4007 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4008 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4009 * sh-tdep.c (sh_gdbarch_init): Ditto.
4010 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4011 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4012
4013 2003-06-07 Andrew Cagney <cagney@redhat.com>
4014
4015 * gdbarch.sh: Comment each field of startup_gdbarch.
4016 * gdbarch.h, gdbarch.c: Re-generate.
4017
4018 2003-06-07 Andrew Cagney <cagney@redhat.com>
4019
4020 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4021 * gdbarch.h, gdbarch.c: Re-generate.
4022 * regcache.c: Update comments on read_pc et.al.
4023 (generic_target_read_pc): Delete function.
4024 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4025 * inferior.h (generic_target_read_pc): Delete declaration.
4026 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4027 generic_target_read_pc.
4028 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4029 * sh-tdep.c (sh_gdbarch_init): Ditto.
4030 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4031 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4032
4033 2003-06-07 Andrew Cagney <cagney@redhat.com>
4034
4035 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4036 "index" with "special_local_sect". Use strcmp instead of STREQ.
4037 Append period to coments.
4038
4039 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4040
4041 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4042 (elfstab_offset_sections): Likewise.
4043 * gdb-stabs.h (stab_section_info): Likewise.
4044 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4045 * objfiles.c (objfile_relocate): Likewise.
4046 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4047 * remote.c (get_offsets): Likewise.
4048 (remote_cisco_objfile_relocate): Likewise.
4049 * somread.c (som_symfile_offsets): Likewise.
4050 * symfile.c (alloc_section_addr_info): New function.
4051 (build_section_addr_info_from_section_tab): Use it.
4052 (free_section_addr_info): Adjust.
4053 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4054 (syms_from_objfile): Allocate local_addr dynamically.
4055 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4056 dynamically.
4057 (add_symbol_file_command): Allocate sect_opts dynamically.
4058 (reread_symbols): Avoid use of SECT_OFF_MAX.
4059 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4060 (alloc_section_addr_info): Declare it.
4061 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4062 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4063 dynamically.
4064 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4065
4066 2003-06-06 Andrew Cagney <cagney@redhat.com>
4067
4068 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4069 (d10v_frame_unwind_cache): Do not set "return_pc".
4070
4071 2003-06-06 Michael Snyder <msnyder@redhat.com>
4072
4073 * h8300-tdep.c: Make tidy (long lines).
4074
4075 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4076
4077 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4078 to regcache_collect().
4079
4080 2003-06-05 J. Brobecker <brobecker@gnat.com>
4081
4082 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4083 pc_in_sigtramp multiarch method.
4084 (hppa_hpux_som_init_abi): Use it.
4085 (hppa_hpux_elf_init_abi): Likewise.
4086 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4087 macro has been multiarched.
4088 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4089 macro here, as hppa64 isn't multiarched yet.
4090
4091 2003-06-05 Andrew Cagney <cagney@redhat.com>
4092
4093 * Makefile.in (value_h): Add $(frame_h).
4094 * value.h: Include "frame.h".
4095 (struct value): Replace "frame_addr" with "frame_id".
4096 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4097 * values.c (allocate_value): Use VALUE_FRAME_ID.
4098 (value_copy): Use VALUE_FRAME_ID.
4099 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4100 * valops.c (value_assign): Update. Use frame_find_by_id.
4101
4102 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4103
4104 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4105 in each pass.
4106
4107 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4108
4109 * thread-db.c (check_event): For create/death event breakpoints,
4110 loop through all messages to ensure that we read the message
4111 corresponding to the breakpoint we are at.
4112
4113 2003-06-04 Michael Snyder <msnyder@redhat.com>
4114
4115 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4116
4117 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4118
4119 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4120 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4121 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4122 when handling .eh_frame sections.
4123
4124 2003-06-04 J. Brobecker <brobecker@gnat.com>
4125
4126 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4127 prepare_to_proceed procedure instead of the hppa-specific one.
4128 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4129
4130 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4131
4132 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4133 * config.in: Regenerated.
4134 * configure.in: Add test for syscall function and check for
4135 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4136 * configure: Regenerated.
4137 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4138 <sys/syscall.h>.
4139 (kill_lwp): New function that uses tkill syscall or
4140 uses kill, depending on whether threading model is nptl or not.
4141 All callers of kill() changed to use kill_lwp().
4142 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4143 see if all threads have already exited in the nptl model.
4144 (stop_and_resume_callback): New callback function used by the
4145 lin_lwp_wait thread exit handling code.
4146 (stop_wait_callback): Check for threads already having exited and
4147 delete such threads fromt the lwp list when discovered.
4148 (stop_callback): Don't assert retcode of kill call.
4149
4150 Roland McGrath <roland@redhat.com>
4151 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4152 nptl libthread_db.
4153
4154 2003-06-03 Richard Henderson <rth@redhat.com>
4155
4156 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4157 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4158 (alpha_sigtramp_frame_prev_register): Likewise.
4159 (alpha_heuristic_frame_prev_register): Likewise.
4160 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4161
4162 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4163 alpha-specific register id names.
4164 (alpha_mdebug_frame_unwind_cache): Likewise.
4165 (alpha_mdebug_frame_prev_register): Likewise.
4166
4167 2003-06-03 Richard Henderson <rth@redhat.com>
4168
4169 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4170 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4171 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4172 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4173 unwind routines.
4174 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4175 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4176 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4177
4178 * alpha-linux-tdep.c: Remove unnecessary includes.
4179 * Makefile.in (alpha-linux-tdep.o): Update.
4180
4181 2003-06-03 Richard Henderson <rth@redhat.com>
4182
4183 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4184 (alphabsd_fill_fpreg): Likewise.
4185
4186 2003-06-03 J. Brobecker <brobecker@gnat.com>
4187
4188 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4189 references to struct frame_info fields by calls to the equivalent
4190 accessors. Necessary now that frame_info is opaque.
4191
4192 2003-06-03 J. Brobecker <brobecker@gnat.com>
4193
4194 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4195 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4196 structure, field no longer exists.
4197
4198 2003-06-03 J. Brobecker <brobecker@gnat.com>
4199
4200 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4201 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4202
4203 2003-06-03 J. Brobecker <brobecker@gnat.com>
4204
4205 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4206 references to struct frame_info fields by calls to the equivalent
4207 accessors. Necessary now that frame_info is opaque.
4208
4209 2003-06-03 J. Brobecker <brobecker@gnat.com>
4210
4211 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4212 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4213 structure, field no longer exists.
4214
4215 2003-06-03 Theodore A. Roth <troth@openavr.org>
4216
4217 * remote.c (init_remote_state): Compute sizeof_g_packet by
4218 accumulation of the size of all registers instead of blindly using
4219 DEPRECATED_REGISTER_BYTES.
4220
4221 2003-06-03 Michael Snyder <msnyder@redhat.com>
4222
4223 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4224 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4225 for h8300sx.
4226
4227 2003-06-03 J. Brobecker <brobecker@gnat.com>
4228
4229 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4230 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4231
4232 2003-06-03 Andrew Cagney <cagney@redhat.com>
4233
4234 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4235 (sparc_convert_to_raw): Delete function.
4236 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4237 register_convert_to_virtual.
4238
4239 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4240
4241 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4242 layer if not dealing with a statically-linked threaded program.
4243
4244 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4245
4246 * solib.c (solib_open): Update comment to reflect actual search order.
4247
4248 2003-06-03 Andrew Cagney <cagney@redhat.com>
4249
4250 * frame.c (get_frame_memory_signed): New function.
4251 (get_frame_memory, get_frame_memory_unsigned): New function.
4252 (get_frame_arch): New function.
4253 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4254 (get_frame_memory, get_frame_unsigned_memory): Declare.
4255 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4256 get_frame_memory_unsigned and get_frame_arch.
4257 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4258
4259 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4260
4261 * MAINTAINERS (write after approval): Add myself.
4262
4263 2003-06-03 Jim Blandy <jimb@redhat.com>
4264
4265 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4266 elements of gregset_t are 64 bits each, but access registers
4267 are still 32 bits, so they're packed two per gregset_t
4268 element. Unpack/pack them properly.
4269
4270 2003-06-02 David Carlton <carlton@bactrian.org>
4271
4272 * linespec.c (find_methods): Break out code into
4273 add_matching_methods and add_constructors.
4274 (add_matching_methods): New.
4275 (add_constructors): Ditto.
4276
4277 2003-06-02 Andrew Cagney <cagney@redhat.com>
4278
4279 * sparc-tdep.c (sparc_print_registers): Delete call to
4280 REGISTER_CONVERTIBLE.
4281 (sparc_gdbarch_init): Do not set register_convertible.
4282 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4283 * frv-tdep.c (frv_gdbarch_init): Ditto.
4284 * cris-tdep.c (cris_gdbarch_init): Ditto.
4285
4286 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4287
4288 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4289 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4290 (syms_from_objfile): Ditto.
4291
4292 2003-06-03 Andreas Schwab <schwab@suse.de>
4293
4294 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4295 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4296
4297 2003-06-02 Richard Henderson <rth@redhat.com>
4298
4299 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4300 a member of all_reggroup.
4301
4302 2003-06-02 Richard Henderson <rth@redhat.com>
4303
4304 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4305 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4306 (alpha_lds, alpha_sts): New.
4307 (alpha_convert_register_p): Change from _register_convertible.
4308 (alpha_register_to_value): Change from _convert_to_virtual;
4309 restructure and fail for type sizes other than 4 or 8.
4310 (alpha_value_to_register): Similarly.
4311 (alpha_extract_return_value): Use alpha_sts.
4312 (alpha_store_return_value): Use alpha_lds.
4313 (alpha_gdbarch_init): Update hooks.
4314
4315 2003-06-02 Richard Henderson <rth@redhat.com>
4316
4317 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4318 regnum identifiers.
4319 (alpha_sigtramp_register_address): Likewise.
4320
4321 2003-06-02 Richard Henderson <rth@redhat.com>
4322
4323 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4324 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4325 * alpha-tdep.h: Declare them.
4326
4327 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4328 Remove zerobuf. Don't error on UNIQUE.
4329 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4330 (ALPHA_REGSET_UNIQUE): Provide default.
4331 (supply_gregset): Use alpha_supply_int_regs.
4332 (fill_gregset): Use alpha_fill_int_regs.
4333 (supply_fpregset): Use alpha_supply_fp_regs.
4334 (fill_fpregset): Use alpha_fill_fp_regs.
4335 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4336 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4337 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4338 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4339 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4340 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4341
4342 2003-06-02 Richard Henderson <rth@redhat.com>
4343
4344 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4345
4346 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4347 (alpha_store_return_value): Likewise.
4348
4349 2003-06-02 David Carlton <carlton@math.stanford.edu>
4350
4351 * block.c (contained_in): Add 'const' to arguments.
4352 (block_function): Ditto.
4353 * block.h: Update declarations for block_function and
4354 contained_in.
4355
4356 2003-06-02 David Carlton <carlton@math.stanford.edu>
4357
4358 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4359 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4360 * p-valprint.c (pascal_val_print): Ditto.
4361 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4362
4363 2003-06-02 Richard Henderson <rth@redhat.com>
4364
4365 * alpha-tdep.c (alpha_push_dummy_call): Use
4366 builtin_type_ieee_double_little instead of builtin_type_double.
4367
4368 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4369 sign-extension of 32-bit values.
4370 (alpha_store_return_value): Similarly.
4371
4372 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4373 (alpha_extract_return_value): Likewise.
4374 (alpha_store_return_value): Likewise.
4375
4376 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4377 (alpha_store_return_value): Error on IEEE Quad floats.
4378
4379 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4380 (alpha_extract_struct_value_address): Likewise.
4381 (alpha_store_return_value): Likewise.
4382 (alpha_store_struct_return): Remove.
4383 (alpha_gdbarch_init): Update hook registration to match.
4384
4385 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4386 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4387 macros where appropriate.
4388 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4389 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4390
4391 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4392 for SP, GP; void_func_ptr for PC; non-language-specific types
4393 for all others.
4394 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4395
4396 2003-06-02 Richard Henderson <rth@redhat.com>
4397
4398 * top.h (lim_at_start): Declare.
4399 * main.c (captured_main): Set it.
4400 * top.c (lim_at_start): Define.
4401 (command_loop): Use it instead of &environ.
4402 * event-top.c (command_handler): Likewise.
4403
4404 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4405
4406 * mipsnbsd-tdep.c: Update copyright years.
4407 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4408
4409 2003-06-01 Richard Henderson <rth@redhat.com>
4410
4411 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4412 (alpha-linux-tdep.o): Update dependencies.
4413 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4414 * alpha-mdebug-tdep.c: Remove unneeded includes.
4415
4416 2003-06-01 Richard Henderson <rth@redhat.com>
4417
4418 * alpha-tdep.c (alpha_register_reggroup_p): New.
4419 (alpha_gdbarch_init): Register it.
4420
4421 2003-06-02 Andrew Cagney <cagney@redhat.com>
4422
4423 * dwarfread.c: Eliminate "register"
4424 (decode_die_type): Eliminate assignment within "if".
4425 (struct_type, decode_array_element_type): Ditto.
4426 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4427 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4428 (decode_modified_type, completedieinfo): Ditto.
4429 * block.c: Eliminate "register".
4430 (blockvector_for_pc_sect): Eliminate assignment within "if".
4431 * cp-support.h (struct symbol): Opaque declaration.
4432 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4433
4434 2003-06-01 Richard Henderson <rth@redhat.com>
4435
4436 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4437 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4438
4439 2003-06-01 Adam Fedor <fedor@gnu.org>
4440
4441 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4442 * gdbarch.[ch]: Regenerate.
4443 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4444 (hppa_gdbarch_init): Set it in the gdbarch vector.
4445 * i386-tdep.c (i386_fetch_pointer_argument): New
4446 (i386_gdbarch_init): Set it into gdbarch.
4447 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4448 (rs6000_gdbarch_init): Set it in gdbarch.
4449 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4450 (sparc_gdbarch_init): Set it in gdbarch.
4451
4452 2003-06-01 Andrew Cagney <cagney@redhat.com>
4453
4454 * defs.h (extract_address): Delete declaration.
4455 * findvar.c (extract_address): Delete function.
4456 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4457 extract_address with the inline equivalent,
4458 extract_unsigned_integer.
4459 (xstormy16_extract_struct_value_address): Ditto.
4460 (xstormy16_pointer_to_address): Ditto.
4461 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4462 * v850-tdep.c (v850_push_arguments): Ditto.
4463 (v850_extract_return_value): Ditto.
4464 (v850_extract_struct_value_address): Ditto.
4465 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4466 (sparcnbsd_get_longjmp_target_64): Ditto.
4467 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4468 (get_longjmp_target): Ditto.
4469 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4470 (sh64_extract_struct_value_address): Ditto.
4471 (sh_push_arguments): Ditto.
4472 (sh64_push_arguments): Ditto.
4473 * remote-vxsparc.c (vx_read_register): Ditto.
4474 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4475 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4476 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4477 * mipsv4-nat.c (get_longjmp_target): Ditto.
4478 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4479 * mips-nat.c (get_longjmp_target): Ditto.
4480 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4481 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4482 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4483 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4484 * irix5-nat.c (get_longjmp_target): Ditto.
4485 * irix4-nat.c (get_longjmp_target): Ditto.
4486 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4487 (ia64_push_arguments): Ditto.
4488 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4489 * h8300-tdep.c (h8300_push_arguments): Ditto.
4490 (h8300_store_return_value): Ditto.
4491 (h8300_extract_struct_value_address): Ditto.
4492 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4493 (frv_push_arguments): Ditto.
4494 * avr-tdep.c (avr_pointer_to_address): Ditto.
4495 (avr_push_arguments): Ditto.
4496 * arm-tdep.c (arm_push_dummy_call): Ditto.
4497 (arm_get_longjmp_target): Ditto.
4498 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4499 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4500 (alpha_get_longjmp_target): Ditto.
4501
4502 * solib-irix.c (extract_mips_address): Inline extract_address,
4503 replacing it with extract_signed_integer.
4504 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4505 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4506 (first_link_map_member, open_symbol_file_object): Ditto.
4507 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4508 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4509 (LM_NEXT, LM_NAME): Ditto.
4510
4511 2003-06-01 Richard Henderson <rth@redhat.com>
4512
4513 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4514 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4515 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4516 (alpha_cannot_store_register): Likewise.
4517 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4518 * alpha-nat.c (supply_gregset): Likewise.
4519 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4520
4521 2003-06-01 Andrew Cagney <cagney@redhat.com>
4522
4523 * infcall.c (call_function_by_hand): Update comment on
4524 DEPRECATED_DUMMY_WRITE_SP.
4525
4526 * mips-tdep.c (mips_gdbarch_init): Do not set
4527 deprecated_dummy_write_sp.
4528 (mips_eabi_push_dummy_call): Set the SP register.
4529 (mips_o64_push_dummy_call): Set the SP register.
4530 (mips_o32_push_dummy_call): Set the SP register.
4531 (mips_n32n64_push_dummy_call): Set the SP register.
4532
4533 2003-06-01 Richard Henderson <rth@redhat.com>
4534
4535 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4536 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4537 (supply_gregset): Likewise.
4538 * alpha-tdep.c (alpha_store_return_value): Likewise.
4539 (alpha_get_longjmp_target): Likewise.
4540 (alpha_register_name): Constify array.
4541 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4542 deprecated_register_size, deprecated_register_bytes,
4543 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4544 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4545 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4546
4547 2003-06-01 Richard Henderson <rth@redhat.com>
4548
4549 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4550 from arg_reg_buffer to regcache to avoid double conversion.
4551
4552 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4553
4554 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4555 SP_REGNUM.
4556 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4557 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4558
4559 2003-06-01 Richard Henderson <rth@redhat.com>
4560
4561 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4562 (decode_frame_entry): Set it. Skip FDE augmentation.
4563
4564 2003-06-01 Richard Henderson <rth@redhat.com>
4565
4566 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4567 not overlapping PC_REGNUM.
4568
4569 2003-06-01 Richard Henderson <rth@redhat.com>
4570
4571 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4572 alpha_push_arguments. Don't dump argument register data to
4573 the target stack. Fix float and 128-bit long double semantics.
4574 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4575 (alpha_fix_call_dummy): Remove.
4576 (alpha_call_dummy_words): Remove.
4577 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4578
4579 2003-06-01 Richard Henderson <rth@redhat.com>
4580
4581 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4582
4583 2003-06-01 Andrew Cagney <cagney@redhat.com>
4584
4585 * mips-tdep.c (is_mips16_addr): New function.
4586 (make_mips16_addr, unmake_mips16_addr): New functions.
4587 (pc_is_mips16, mips_fetch_instruction): Use.
4588 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4589 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4590 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4591 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4592 TARGET_MIPS.
4593 * config/mips/tm-mips.h: Update copyright.
4594 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4595 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4596 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4597 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4598 (TM_PRINT_INSN_MACH): Delete.
4599 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4600
4601 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4602 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4603 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4604 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4605 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4606 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4607 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4608 mips*-*-riscos* and mips*-*-sysv* onto mips.
4609 * config/mips/mips64.mt: New file.
4610 * config/mips/mips.mt: New file.
4611 * config/mips/littlemips.mt: Delete file.
4612 * config/mips/decstation.mt: Delete file.
4613 * config/mips/vr4300el.mt: Delete file.
4614 * config/mips/vr5000el.mt: Delete file.
4615 * config/mips/vr5000.mt: Delete file.
4616 * config/mips/vr4100.mt: Delete file.
4617 * config/mips/vr4xxxel.mt: Delete file.
4618 * config/mips/vr4300.mt: Delete file.
4619 * config/mips/vr4xxx.mt: Delete file.
4620 * config/mips/bigmips.mt: Delete file.
4621 * config/mips/bigmips64.mt: Delete file.
4622 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4623 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4624 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4625 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4626 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4627 "tm-bigmips.h".
4628 * config/mips/tm-irix3.h: Ditto.
4629 * config/mips/tm-mipsv4.h: Ditto.
4630 * config/mips/tm-embed.h: Ditto.
4631 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4632 "tm-bigmips64.h".
4633 * config/mips/tm-vr5000el.h: Delete file.
4634 * config/mips/tm-tx39l.h: Delete file.
4635 * config/mips/tm-vr4300el.h: Delete file.
4636 * config/mips/tm-vr4xxxel.h: Delete file.
4637 * config/mips/tm-vr4300.h: Delete file.
4638 * config/mips/tm-vr4100.h: Delete file.
4639 * config/mips/tm-vr4xxx.h: Delete file.
4640 * config/mips/tm-vr5000.h: Delete file.
4641 * config/mips/tm-embedl64.h: Delete file.
4642 * config/mips/tm-embedl.h: Delete file.
4643 * config/mips/tm-embed64.h: Delete file.
4644 * config/mips/tm-bigmips64.h: Delete file.
4645 * config/mips/tm-bigmips.h: Delete file.
4646
4647 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4648
4649 Fix gdb/1216.
4650 * shnbsd-nat.c: Include "sh-tdep.h".
4651
4652 From Richard Henderson <rth@redhat.com>:
4653 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4654
4655 2003-05-31 Andrew Cagney <cagney@redhat.com>
4656
4657 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4658 forward declaration.
4659 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4660 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4661 (mips_find_saved_regs): Use set_reg_offset.
4662 (mips_frame_init_saved_regs): Delete function.
4663 (mips_pop_frame): Call mips_find_saved_regs instead of
4664 DEPRECATED_FRAME_INIT_SAVED_REGS.
4665
4666 2003-05-31 Andrew Cagney <cagney@redhat.com>
4667
4668 * mips-tdep.c (mips_gdbarch_init): Do not set
4669 deprecated_max_register_raw_size, register_virtual_size, and
4670 deprecated_max_register_virtual_size.
4671
4672 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4673
4674 * i386-tdep.c: Include "dwarf2-frame.h".
4675 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4676 * Makefile.in (i386-tdep.o): Update dependencies.
4677
4678 * dwarf2-frame.c, dwarf2-frame.h: New files.
4679 * Makefile.in (SFILES): Add dwarf2-frame.c.
4680 (dwarf2_frame_h): Define.
4681 (COMMON_OBS): Add dwarf2-frame.o.
4682 (dwarf2-frame.o): Add dependencies.
4683
4684 2003-05-31 Andreas Jaeger <aj@suse.de>
4685
4686 * x86-64-linux-nat.c: Fix comment.
4687
4688 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4689
4690 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4691 function signature.
4692
4693 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4694 have a sigcontext_addr handler.
4695 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4696 sigcontext_addr handler.
4697
4698 2003-05-31 Andrew Cagney <cagney@redhat.com>
4699
4700 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4701 (print_fp_register_row): Replace do_fp_register_row.
4702 (mips_print_fp_register): Add "file" and "frame" parameters.
4703 (mips_print_register): Add "file" and "frame" parameters.
4704 (mips_print_registers_info): Replace mips_do_registers_info.
4705 (mips_gdbarch_init): Set print_registers_info instead of
4706 deprecated_do_registers_info.
4707 (mips_read_fp_register_single): Add "frame" parameter.
4708 (mips_read_fp_register_double): Add "frame" parameter.
4709
4710 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4711
4712 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4713 Fixes a bug where GDB would print the wrong register names for
4714 targets without SSE.
4715
4716 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4717 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4718 registers.
4719
4720 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4721 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4722 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4723 TDEP->sc_sp_offset.
4724
4725 From Michal Ludvig <mludvig@suse.cz>:
4726 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4727 and `sc_num_regs'.
4728 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4729 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4730 I386_ST0_REGNUM): Move here from...
4731 * i386-tdep.c: ... here.
4732 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4733 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4734 registers if possible.
4735 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4736 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4737 Remove variables.
4738 (i386bsd_sc_reg_offset): New variable.
4739 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4740 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4741 TDEP->sc_sp_offset.
4742 (i386fbsd_sc_reg_offset): New variable.
4743 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4744 TDEP->sc_num_regs.
4745 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4746 variables.
4747 (i386fbsd4_sc_reg_offset): New variable.
4748 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4749 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4750 TDEP->sc_sp_offset.
4751 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4752 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4753 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4754 Remove variables.
4755 (i386nbsd_sc_reg_offset): New variable.
4756 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4757 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4758 TDEP->sc_sp_offset.
4759 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4760 Remove variables.
4761 (i386obsd_sc_reg_offset): New variable.
4762 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4763 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4764 TDEP->sc_sp_offset.
4765 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4766 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4767 for frame pointer offset in `struct sigcontext'.
4768
4769 2003-05-31 Andrew Cagney <cagney@redhat.com>
4770
4771 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4772 architecture methods call_dummy_words, sizeof_call_dummy_words,
4773 push_return_address, store_struct_return, and fix_call_dummy. Set
4774 push_dummy_call instead of deprecated_push_arguments.
4775 (mips_store_struct_return): Delete function.
4776 (mips_fix_call_dummy): Delete function.
4777 (mips_push_return_address): Delete function.
4778 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4779 RA_REGNUM and T9_REGNUM.
4780 (mips_n32n64_push_dummy_call): Ditto for
4781 mips_n32n64_push_arguments.
4782 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4783 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4784
4785 2003-05-31 Andrew Cagney <cagney@redhat.com>
4786
4787 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4788 "dummy_addr" to "bp_addr".
4789 * infcall.c (call_function_by_hand): Pass "funaddr" to
4790 gdbarch_push_dummy_call.
4791 * gdbarch.h, gdbarch.c: Re-generate.
4792 * i386-tdep.c (i386_push_dummy_call): Update.
4793 * arm-tdep.c (arm_push_dummy_call): Update.
4794 * d10v-tdep.c (d10v_push_dummy_call): Update.
4795
4796 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4797
4798 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4799 variable declarations.
4800 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4801 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4802 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4803 x86_64_init_frame_pc, x86_64_init_frame_pc,
4804 x86_64_function_has_prologue): Remove prototypes.
4805 (X86_64_NUM_GREGS): New define.
4806 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4807 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4808 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4809 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4810 XMM1_REGNUM): Remove defines.
4811 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4812 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4813 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4814 X86_64_XMM1_REGNUM): New defines.
4815 (struct x86_64_register_info): Renamed from `struct
4816 register_info'. Remove `size' member.
4817 (x86_64_register_info_table): Remove variable.
4818 (x86_64_register_info): New variable.
4819 (X86_64_NUM_REGS): New define.
4820 (X86_64_NUM_GREGS): Remove define.
4821 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4822 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4823 Remove variables.
4824 (x86_54_dwarf2_reg_to_regnum): Remove function.
4825 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4826 (x86_64_dwarf_reg_to_regnum): New function.
4827 (x86_64_register_name): Rewrite.
4828 (x86_64_register_raw_size): Remove function.
4829 (x86_64_register_byte_table): Remove variable.
4830 (x86_64_register_byte): Remove function.
4831 (x86_64_register_virtual_type): Remove function.
4832 (x86_64_register_type): New function.
4833 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4834 x86_64_register_convert_to_raw): Remove functions.
4835 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4836 (x86_64_use_struct_convention): Make static. Adjust for renamed
4837 defines.
4838 (x86_64_frame_init_saved_regs): Remove function.
4839 (x86_64_push_arguments): Make static. Change to accept a regcache
4840 as argument.
4841 (x86_64_store_return_value, x86_64_extract_return_value): Make
4842 static. Rewrite based on i386 counterparts.
4843 (x86_64_push_dummy_call): New function.
4844 (X86_64_NUM_SAVED_REGS): New define.
4845 (x86_64_register_number): Remove function.
4846 (x86_64_store_struct_return): Remove function.
4847 (x86_64_frameless_function_invocation,
4848 x86_64_function_has_prologue): Remove functions.
4849 (PROLOG_BUFSIZE): Remove define.
4850 (struct x86_64_frame_cache): New structure.
4851 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4852 x86_64_frame_cache, x86_64_frame_this_id,
4853 x86_64_frame_prev_register, x86_64_frame_p,
4854 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4855 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4856 functions.
4857 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4858 variables.
4859 (x86_64_skip_prologue): Rewrite in terms of
4860 x86_64_analyze_prologue.
4861 (x86_64_frame_base_address): New function.
4862 (x86_64_frame_base): New variable.
4863 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4864 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4865 set deprecated_fp_regnum, deprecated_register_size,
4866 deprecated_register_bytes, register_raw_size, register_byte,
4867 register_virtual_type, register_convertiable,
4868 register_convert_to_virtual, convert_to_raw,
4869 deprecated_get_saved_register, deprecated_target_read_fp,
4870 deprecated_push_arguments, deprecated_push_return_address,
4871 deprecated_pop_frame, deprecated_store_struct_return,
4872 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4873 frameless_function_invocation, deprecated_frame_saved_pc,
4874 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4875 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4876 deprecated_init_frame_pc and virtual_frame_pointer. Call
4877 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4878 and x86_64_frame_p. Call frame_base_set_default to register
4879 x86_64_frame_base.
4880 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4881 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4882 (_initialize_x86_64_tdep): Remove function.
4883 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4884 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4885 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4886 define.
4887 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4888 (x86_64_linux_sigcontext_addr): Rewrite.
4889 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4890 x86_64_linux_frame_saved_pc): Remove functions.
4891 (x86_64_linux_pc_in_sigtramp): Renamed from
4892 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4893 trampoline.
4894 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4895 Remove_functions.
4896 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4897 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4898 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4899 (x86_64_regmap): Rename to regmap.
4900 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4901 x86_64_num_gregs.
4902 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4903 x86_64_regmap.
4904 (x86_64_fxsave_offset): Remove function.
4905 (supply_fpregset): Simply call x86_64_supply_fxsave.
4906 (fill_fpregset): Simply call x86_64_fill_fxsave.
4907 (fetch_inferior_registers, store_inferior_registers): Avoid
4908 asignment in if-statement.
4909 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4910 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4911 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4912 (fetch_core_registers): Remove function.
4913 (linux_elf_core_fns): Remove.
4914 (offsetoff): Don't define.
4915 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4916 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4917 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4918 add core-regset.o.
4919 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4920 protection against multiple includes instead of NM_X86_64_h. Add
4921 various comments. Include "config/nm-linux.h". Don't include
4922 <signal.h>.
4923 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4924 GET_THREAD_SIGNALS): Remove defines.
4925 (x86_64_register_u_addr, kernel_u_size,
4926 lin_thread_get_thread_signals): Remove prototypes.
4927 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4928 [HAVE_LINK_H]: Don't include "solib.h".
4929 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4930 * config/i386/tm-x86-64linux.h: Fix comments.
4931 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4932 x86-64-tdep.o): Update dependencies.
4933
4934 2003-05-30 Andrew Cagney <cagney@redhat.com>
4935
4936 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4937 Change parameter type to a "struct regcache *".
4938
4939 * gdbarch.sh: Regardless of the multi-arch level, always define
4940 the macro when not already defined.
4941 * gdbarch.h, gdbarch.c: Re-generate.
4942
4943 2003-05-30 Richard Henderson <rth@redhat.com>
4944
4945 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4946 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4947 (alpha_mdebug_frame_this_id): Likewise.
4948 (alpha_mdebug_frame_prev_register): Likewise.
4949 (alpha_mdebug_frame_base_address): Likewise.
4950 (alpha_mdebug_frame_locals_address): Likewise.
4951 (alpha_mdebug_frame_args_address): Likewise.
4952 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4953 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4954 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4955 loop increment.
4956 (alpha_heuristic_frame_this_id): Make static.
4957 (alpha_heuristic_frame_prev_register): Likewise.
4958 (alpha_heuristic_frame_base_address): Likewise.
4959 * alpha-tdep.h: Update.
4960
4961 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4962
4963 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4964 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4965 defenitions.
4966 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4967 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4968 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4969 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4970 I386_ST0_REGNUM): New defines.
4971 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4972 codestream_get): Remove define.
4973 (codestream_next_addr, condestream_addr, condestream_buf,
4974 codestream_off, codestream_cnt): Remove variables.
4975 (codestream_fill, codestream_seek, codestream_read): Remove
4976 functions.
4977 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4978 functionality.
4979 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4980 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4981 i386_frame_saved_pc, i386_saved_pc_after_call,
4982 i386_frame_num_args, i386_frame_init_saved_regs,
4983 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4984 i386_push_arguments): Remove functions.
4985 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4986 functionality. Use i386_analyze_prologue instead of
4987 i386_get_frame_setup.
4988 (I386_NUM_SAVED_REGS): New define.
4989 (struct i386_frame_cache): New structure.
4990 (i386_alloc_frame_cache, i386_analyze_struct_return,
4991 i386_skip_probe, i386_analyze_frame_setup,
4992 i386_analyze_register_saves, i386_analyze_prologue,
4993 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4994 i386_frame_prev_register, i386_sigtramp_frame_cache,
4995 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4996 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4997 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4998 New functions.
4999 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5000 New variables.
5001 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5002 I386_EAX_REGNUM and I386_EDX_REGNUM.
5003 (i386_extract_return_value, i386_store_return_value): Use
5004 I386_ST0_REGNUM where appropriate.
5005 (i386_extract_struct_value_address): Rewrite to use extract_address.
5006 (i386_svr4_pc_in_sigtramp): Add comment.
5007 (i386_svr4_sigcontext_addr): Rewrite.
5008 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5009 TDEP->sc_sp_offset.
5010 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5011 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5012 of new defines. Set push_dummy_call, don't set
5013 deprecated_push_arguments, deprecated_push_return_address,
5014 deprecated_pop_frame. Don't set parm_boundary. Don't set
5015 deprecated_frame_chain, deprecated_frame_saved_pc,
5016 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5017 save_dummy_frame_tos, unwind_pc. Call
5018 frame_unwind_append_predicate and frame_base_set_default. Don't
5019 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5020 Don't set frameless_function_invocation. Don't set
5021 deprecated_register_bytes, deprecated_register_size,
5022 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5023 * i386-linux-tdep.c: Fix formatting in some comments.
5024 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5025 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5026 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5027 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5028 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5029 redundant parentheses.
5030 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5031 (i386_linux_sigcontext_addr): Use it. Rewrite.
5032 (find_minsym_and_objfile): Change name of second argument.
5033 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5034 changed. Use frame_pc_unwind instead of
5035 DEPRECATED_SAVED_PC_AFTER_CALL.
5036 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5037 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5038 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5039 unwinder.
5040 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5041 "dummy-frame.h".
5042 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5043 (_initialize_i386_cygwin_tdep): New prototype.
5044 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5045 deprecated_frame_chain_valid.
5046 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5047 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5048 Rely on the SVR4 defaults.
5049 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5050 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5051
5052 2003-05-30 Andrew Cagney <cagney@redhat.com>
5053
5054 * infcall.c (call_function_by_hand): Always call
5055 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5056
5057 2003-05-30 Richard Henderson <rth@redhat.com>
5058
5059 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5060 increment.
5061
5062 2003-05-29 Jim Blandy <jimb@redhat.com>
5063
5064 Use gdbarch methods for solib stuff on PowerPC Linux.
5065 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5066 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5067 show through.
5068 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5069 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5070 giving the same effect as the #definitions above.
5071
5072 2003-05-29 Adam Fedor <fedor@gnu.org>
5073
5074 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5075 (find_implementation_from_class): Replace it with the standard
5076 case i.e. do nothing.
5077
5078 2003-05-29 Richard Henderson <rth@redhat.com>
5079
5080 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5081 (alpha_linux_sigtramp_offset): Use it. Make static.
5082 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5083 update for new frame model.
5084 * alpha-mdebug-tdep.c: New file.
5085 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5086 (alpha_osf1_init_abi): Install it.
5087 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5088 (linked_proc_desc_table): Remove.
5089 (alpha_frame_past_sigtramp_frame): Remove.
5090 (alpha_dynamic_sigtramp_offset): Remove.
5091 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5092 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5093 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5094 (push_sigtramp_desc): Remove.
5095 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5096 (alpha_cannot_store_register): Likewise.
5097 (alpha_sigcontext_addr): Remove.
5098 (alpha_find_saved_regs): Remove.
5099 (alpha_frame_init_saved_regs): Remove.
5100 (alpha_init_frame_pc_first): Remove.
5101 (read_next_frame_reg): Remove.
5102 (alpha_frame_saved_pc): Remove.
5103 (alpha_saved_pc_after_call): Remove.
5104 (temp_proc_desc, temp_saved_regs): Remove.
5105 (alpha_about_to_return): Remove.
5106 (cached_proc_desc): Remove.
5107 (alpha_frame_chain): Remove.
5108 (alpha_print_extra_frame_info): Remove.
5109 (alpha_init_extra_frame_info): Remove.
5110 (alpha_frame_locals_address): Remove.
5111 (alpha_frame_args_address): Remove.
5112 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5113 (alpha_push_dummy_frame): Remove.
5114 (alpha_pop_frame): Remove.
5115 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5116 (alpha_read_insn): New.
5117 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5118 for different insn encodings.
5119 (alpha_in_lenient_prologue): Remove.
5120 (struct alpha_sigtramp_unwind_cache): New.
5121 (alpha_sigtramp_frame_unwind_cache): New.
5122 (alpha_sigtramp_register_address): New.
5123 (alpha_sigtramp_frame_this_id): New.
5124 (alpha_sigtramp_frame_prev_register): New.
5125 (alpha_sigtramp_frame_unwind): New.
5126 (alpha_sigtramp_frame_p): New.
5127 (struct alpha_heuristic_unwind_cache): New.
5128 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5129 don't count nop insns that occur between functions.
5130 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5131 heuristic_proc_desc, but without the mdebug wrapping.
5132 (alpha_heuristic_frame_this_id): New.
5133 (alpha_heuristic_frame_prev_register): New.
5134 (alpha_heuristic_frame_unwind): New.
5135 (alpha_heuristic_frame_p): New.
5136 (alpha_heuristic_frame_base_address): New.
5137 (alpha_heuristic_frame_base): New.
5138 (alpha_unwind_dummy_id): New.
5139 (alpha_unwind_pc): New.
5140 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5141 frame related deprecated initializations; install replacements.
5142 (alpha_dump_tdep): Remove.
5143 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5144 (alpha_read_insn, alpha_after_prologue,
5145 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5146 alpha_heuristic_frame_prev_register,
5147 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5148 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5149 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5150 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5151
5152 2003-05-29 Andrew Cagney <cagney@redhat.com>
5153
5154 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5155 dependant on the availability of ASSERT_FUNCTION.
5156 (ASSERT_FUNCTION): Do not define when there is no function name.
5157
5158 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5159
5160 From Jimi X <jimix@watson.ibm.com>:
5161 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5162
5163 2003-05-28 Jim Blandy <jimb@redhat.com>
5164
5165 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5166 argument to ptrace to int; the system headers should give it the
5167 right type, and pointers don't fit in ints on powerpc64-*-*.
5168
5169 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5170
5171 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5172 DW_TAG_catch_block.
5173
5174 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5175
5176 * stabsread.c (dbx_lookup_type): Make static.
5177 (read_type): Ditto.
5178 (add_undefined_type): Ditto.
5179 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5180 not export.
5181
5182 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5183
5184 * hpread.c (hpread_has_name): Make static.
5185 (hpread_psymtab_to_symtab): Ditto.
5186 (file_exists): Ditto.
5187 (hpread_call_pxdb): Ditto.
5188 (hpread_pxdb_needed): Ditto.
5189 (hpread_quick_traverse): Ditto.
5190 (hpread_get_header): Ditto.
5191 (hpread_get_lntt): Ditto.
5192 (hpread_get_slt): Ditto.
5193 (class_of): Ditto.
5194
5195 2003-05-25 Andreas Schwab <schwab@suse.de>
5196
5197 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5198 stack_align and deprecated_extra_stack_alignment_needed.
5199 (m68k_stack_align): Delete.
5200
5201 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5202 (m68k_register_virtual_size): Likewise.
5203 (altos_skip_prologue): Remove obsolete function.
5204 (isi_frame_num_args): Likewise.
5205 (news_frame_num_args): Likewise.
5206 (m68k_fix_call_dummy): Make static.
5207 (m68k_push_dummy_frame): Likewise.
5208 (m68k_pop_frame): Likewise.
5209 (m68k_skip_prologue): Likewise.
5210 (m68k_frame_init_saved_regs): Likewise.
5211 (m68k_saved_pc_after_call): Likewise.
5212 (m68k_get_longjmp_target): Make multi-arch.
5213 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5214 structure. Register m68k_get_longjmp_target if enabled.
5215 * m68k-tdep.h (struct gdbarch_tdep): Define.
5216 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5217
5218 * Makefile.in (config.status): Also depend on configure.tgt
5219 and configure.host.
5220 (m68klinux-tdep.o): Update dependencies.
5221 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5222 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5223 (M68K_LINUX_JB_PC): Define.
5224 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5225 and take additional parameter.
5226 (m68k_linux_sigtramp_saved_pc): Update.
5227 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5228 m68k_linux_pc_in_sigtramp, in_plt_section,
5229 find_solib_trampoline_target.
5230 * config/m68k/tm-linux.h: Don't include any tm headers.
5231 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5232 (JB_ELEMENT_SIZE): Likewise.
5233 (JB_PC): Likewise.
5234 (GET_LONGJMP_TARGET): Likewise.
5235 (IN_SIGTRAMP): Likewise.
5236 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5237
5238 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5239
5240 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5241 (sparc32_push_arguments): Re-implement by calling
5242 sparc32_do_push_arguments.
5243
5244 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5245
5246 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5247 SPARC_O1_REGNUM): New defines.
5248 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5249 (sparc32_store_return_value): New function.
5250 (sparc_extract_struct_value_address): Rewrite to operate on a
5251 regcache.
5252 (sparc_gdbarch_init): Don't set
5253 deprecated_extract_struct_value_address. Set
5254 extract_struct_value_address instead. Don't set
5255 deprecated_extract_return_value and deprecated_store_return_value
5256 for 32-bit targets. Set extract_return_value and
5257 store_return_value instead.
5258 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5259 DEPRECTAED_EXTRACT_RETURN_VALUE,
5260 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5261 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5262 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5263 (sparc_store_return_value): Remove prototype.
5264 (sparc32_store_return_value): New prototype.
5265 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5266 Adjust prototypes.
5267
5268 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5269
5270 * sparcnbsd-tdep.c: Include "gdb_string.h".
5271
5272 2003-05-23 Andrew Cagney <cagney@redhat.com>
5273
5274 * p-valprint.c (pascal_val_print): Replace extract_address with
5275 the inline equivalent extract_unsigned_integer.
5276 * jv-valprint.c (java_value_print): Ditto.
5277 * ada-valprint.c (ada_val_print_1): Ditto.
5278 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5279
5280 2003-05-23 Theodore A. Roth <troth@openavr.org>
5281
5282 * blockframe.c (frameless_look_for_prologue): Remove unused
5283 after_prologue variable.
5284
5285 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5286
5287 * blockframe.c (get_pc_function_start): Rewrite to avoid
5288 asignments in if-statements.
5289
5290 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5291
5292 Committed by Elena Zannoni <ezannoni@redhat.com>.
5293 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5294 files, don't relocate absolute symbols (and do use mst_abs).
5295
5296 2003-05-23 Andrew Cagney <cagney@redhat.com>
5297
5298 * objc-lang.c: Include "gdb_assert.h".
5299 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5300 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5301 (gdb_check, gdb_check_fatal): Delete functions.
5302 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5303 gdb_assert.
5304 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5305 * Makefile.in (objc-lang.o): Update dependencies.
5306
5307 2003-05-22 Ian Lance Taylor <ian@airs.com>
5308
5309 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5310 with fprintf_filtered, not fprintf_unfiltered.
5311
5312 2003-05-22 Andrew Cagney <cagney@redhat.com>
5313
5314 * stack.c (frame_info): Inline extract_address, replacing it with
5315 extract_unsigned_integer.
5316 * findvar.c (unsigned_pointer_to_address): Ditto.
5317 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5318 * dwarf2expr.c (dwarf2_read_address): Ditto.
5319 * frame.c (frame_pc_unwind): Update comment.
5320 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5321
5322 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5323
5324 * infptrace.c (detach): Call print_sys_errmsg rather than
5325 perror_with_name to issue warning message when errno is non-zero
5326 after calling ptrace detach.
5327
5328 2003-05-21 J. Brobecker <brobecker@gnat.com>
5329
5330 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5331 macro definitions from here...
5332 * hppa-tdep.c: ...to there.
5333
5334 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5335
5336 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5337 register_ptrace_addr(). Fix all callers.
5338
5339 2003-05-21 Andreas Schwab <schwab@suse.de>
5340
5341 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5342 dependencies.
5343 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5344 end.
5345 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5346 (_initialize_m68k_linux_tdep): New function.
5347 (m68k_linux_frame_saved_pc): Make static.
5348 (m68k_linux_extract_return_value): Likewise.
5349 (m68k_linux_store_return_value): Likewise.
5350 (m68k_linux_extract_struct_value_address): Likewise.
5351 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5352 Remove.
5353 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5354 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5355 (DEPRECATED_FRAME_SAVED_PC): Remove.
5356
5357 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5358
5359 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5360 regset numbering rather than our own.
5361
5362 2003-05-19 David Carlton <carlton@bactrian.org>
5363
5364 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5365
5366 2003-05-19 David Carlton <carlton@bactrian.org>
5367
5368 Partial fix for PR c++/827.
5369 * cp-support.h: Include symtab.h.
5370 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5371 * cp-namespace.c: Update contributors.
5372 (cp_lookup_symbol_nonlocal): New.
5373 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5374 (lookup_symbol_file): Ditto.
5375 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5376 * block.h: Declare block_scope, block_using, block_global_block.
5377 * block.c (block_scope): New.
5378 (block_using, block_global_block): Ditto.
5379 * Makefile.in (cp_support_h): Depend on symtab_h.
5380 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5381
5382 2003-05-19 David Carlton <carlton@bactrian.org>
5383
5384 * language.h (struct language_defn): Add 'la_value_of_this'
5385 and 'la_lookup_symbol_nonlocal' members.
5386 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5387 lookup_symbol_static, lookup_symbol_global,
5388 lookup_symbol_aux_block.
5389 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5390 if we should search fields of this and how to do static/global
5391 lookup.
5392 (lookup_symbol_aux_block): Make extern.
5393 (basic_lookup_symbol_nonlocal): New.
5394 (lookup_symbol_static, lookup_symbol_global): Ditto.
5395 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5396 'la_lookup_symbol_nonlocal' members.
5397 * c-lang.c (c_language_defn, cplus_language_defn)
5398 (asm_language_defn, minimal_language_defn): Ditto.
5399 * jv-lang.c (java_language_defn): Ditto.
5400 * language.c (unknown_language_defn, auto_language_defn)
5401 (local_language_defn): Ditto.
5402 * m2-lang.c (m2_language_defn): Ditto.
5403 * objc-lang.c (objc_language_defn): Ditto.
5404 * scm-lang.c (scm_language_defn): Ditto.
5405 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5406 * p-lang.c (pascal_language_defn): Ditto for both.
5407 * Makefile.in (f-lang.o): Depend on value_h.
5408 (p-lang.o): Ditto.
5409
5410 2003-05-19 David Carlton <carlton@bactrian.org>
5411
5412 * block.h: Declare block_static_block.
5413 * block.c (block_static_block): New.
5414 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5415 lookup_symbol_aux_local, calling block_static_block instead.
5416 (lookup_symbol_aux_local): Delete 'static_block' argument.
5417
5418 2003-05-19 David Carlton <carlton@bactrian.org>
5419
5420 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5421
5422 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5423
5424 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5425 register numbers mapping.
5426
5427 2003-05-18 Adam Fedor <fedor@gnu.org>
5428
5429 * symtab.c (completion_list_objc_symbol): New function.
5430 (make_symbol_completion_list): Use it to add ObjC symbols
5431 when looking though the list.
5432 (language_search_unquoted_string): New function.
5433 (make_file_symbol_completion_list): Use it.
5434
5435 2003-05-18 Andreas Schwab <schwab@suse.de>
5436
5437 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5438 dependencies.
5439 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5440 as m68k_linux_extract_return_value.
5441 (DEPRECATED_STORE_RETURN_VALUE): Define as
5442 m68k_linux_store_return_value.
5443 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5444 m68k_linux_extract_struct_value_address.
5445 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5446 get_next_frame, get_frame_base, get_frame_pc.
5447 (m68k_linux_frame_saved_pc): Use get_frame_base.
5448 (m68k_linux_extract_return_value): New function.
5449 (m68k_linux_store_return_value): New function.
5450 (m68k_linux_extract_struct_value_address): New function.
5451 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5452
5453 * c-exp.y (typebase): Remove duplicate occurence of
5454 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5455 of lookup_signed_typename.
5456
5457 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5458
5459 * dwarf2loc.c (find_location_expression): Change type of second
5460 argument to `size_t *'.
5461 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5462 for size variable.
5463
5464 2003-05-18 David Carlton <carlton@bactrian.org>
5465
5466 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5467 'linkage_name'. Add comment.
5468 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5469 'linkage_name'.
5470 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5471 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5472 (lookup_block_symbol): Ditto.
5473
5474 2003-05-16 Andrew Cagney <cagney@redhat.com>
5475
5476 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5477 * gdbarch.h, gdbarch.c: Re-generate.
5478 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5479 * TODO (REGISTER_BYTES): Delete reference.
5480 * alpha-tdep.c (alpha_gdbarch_init): Update.
5481 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5482 * x86-64-tdep.c (x86_64_init_abi): Update.
5483 * vax-tdep.c (vax_gdbarch_init): Update.
5484 * v850-tdep.c (v850_gdbarch_init): Update.
5485 * sparc-tdep.c (sparc_gdbarch_init): Update.
5486 * sh-tdep.c (sh_gdbarch_init): Update.
5487 * s390-tdep.c (s390_gdbarch_init): Update.
5488 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5489 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5490 (ns32k_gdbarch_init_32382): Update.
5491 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5492 * mcore-tdep.c (mcore_gdbarch_init): Update.
5493 * m68k-tdep.c (m68k_gdbarch_init): Update.
5494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5495 * ia64-tdep.c (ia64_gdbarch_init): Update.
5496 * i386-tdep.c (i386_gdbarch_init): Update.
5497 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5498 * hppa-tdep.c (hppa_gdbarch_init): Update.
5499 * h8300-tdep.c (h8300_gdbarch_init): Update.
5500 * frv-tdep.c (frv_gdbarch_init): Update.
5501 * cris-tdep.c (cris_gdbarch_init): Update.
5502 * avr-tdep.c (avr_gdbarch_init): Update.
5503 * arm-tdep.c (arm_gdbarch_init): Update.
5504 * sparc-tdep.c (sparc_pop_frame): Update.
5505 * rs6000-tdep.c (rs6000_pop_frame): Update.
5506 * remote.c (init_remote_state): Update.
5507 (remote_prepare_to_store): Update.
5508 * remote-vx.c (vx_prepare_to_store): Update.
5509 * remote-sds.c (sds_fetch_registers): Update.
5510 (sds_prepare_to_store): Update.
5511 * remote-array.c: Update.
5512 * regcache.c (init_legacy_regcache_descr): Update.
5513 (init_regcache_descr): Update.
5514 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5515 (mips_o64_extract_return_value): Update.
5516 * irix5-nat.c (fetch_core_registers): Update.
5517 * irix4-nat.c (fetch_core_registers): Update.
5518 * i386-tdep.h: Update.
5519 * hppa-tdep.c (pa_do_registers_info): Update.
5520 (pa_do_strcat_registers_info): Update.
5521 * cris-tdep.c (cris_register_bytes_ok): Update.
5522 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5523 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5524 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5525 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5526 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5527 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5528 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5529 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5530 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5531 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5532 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5533 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5534 (REGISTER_BYTES_OK): Update.
5535 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5536 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5537
5538 2003-05-16 Ian Lance Taylor <ian@airs.com>
5539
5540 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5541 (vax_print_insn, print_insn_arg): Remove static functions.
5542 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5543 print_insn_vax from opcodes library.
5544 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5545
5546 2003-05-15 Andrew Cagney <cagney@redhat.com>
5547
5548 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5549 * target.h (memory_breakpoint_from_pc): Delete declaration.
5550 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5551 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5552 * monitor.c (monitor_insert_breakpoint): Use
5553 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5554 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5555 * gdbarch.h, gdbarch.c: Re-generate.
5556 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5557 (sparc_gdbarch_init): Set breakpoint_from_pc to
5558 sparc_breakpoint_from_pc.
5559 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5560 (BREAKPOINT_FROM_PC): Define.
5561 (sparc_breakpoint_from_pc): Declare.
5562 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5563 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5564 (BREAKPOINT_FROM_PC): Define.
5565 (BREAKPOINT): Delete macro.
5566 * target.h: Update comment.
5567 * s390-tdep.c (s390_gdbarch_init): Update comments.
5568 * remote.c: Update comments.
5569 * remote-mips.c: Update comments.
5570 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5571 * mem-break.c: Update comment.
5572 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5573 (ia64_memory_insert_breakpoint): Update.
5574 * config/sparc/tm-sparc.h: Update comment.
5575 * config/pa/tm-hppa64.h: Update comment.
5576 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5577 (rs6000_breakpoint_from_pc): Update.
5578 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5579 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5580 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5581 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5582 (mips_breakpoint_from_pc): Update.
5583 (mips_dump_tdep): Update.
5584
5585 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5586 * minsyms.c (lookup_minimal_symbol): Inline
5587 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5588
5589 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5590 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5591 * p-lang.c (pascal_printstr): Ditto.
5592 * objc-lang.c (objc_printstr): Ditto.
5593 * m2-lang.c (m2_printstr): Ditto.
5594 * jv-valprint.c (java_print_value_fields): Ditto.
5595 * f-lang.c (f_printstr): Ditto.
5596 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5597 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5598 for repeat_count_threshold.
5599 * Makefile.in (cp-valprint.o): Update dependencies.
5600
5601 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5602
5603 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5604 (examine_prologue): Support looking through leaf functions, knowing
5605 they start with mov r2,r12. Support skipping over indirect stores
5606 of the input registers. Upon hitting a non-nop branch instruction
5607 or predicated instruction, bail out by setting lim_pc to the current
5608 pc value in the loop. At the end, if the lim_pc value is still
5609 beyond our calculated value and we have trust_limit set,
5610 use the lim_pc value.
5611
5612 2003-05-15 Andrew Cagney <cagney@redhat.com>
5613
5614 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5615 generic_find_dummy_frame.
5616 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5617 (deprecated_generic_find_dummy_frame): Update.
5618 (deprecated_read_register_dummy): Update.
5619 * frame.c (deprecated_generic_get_saved_register): Update.
5620
5621 2003-05-15 Theodore A. Roth <troth@openavr.org>
5622
5623 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5624 (avr_gdbarch_init): Set breakpoint_from_pc method.
5625
5626 2003-05-15 Andrew Cagney <cagney@redhat.com>
5627
5628 * regcache.c (build_regcache): Set deprecated_register_valid
5629 directly.
5630 (deprecated_grub_regcache_for_register_valid): Delete function.
5631 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5632 declaration.
5633
5634 2003-05-15 David Carlton <carlton@bactrian.org>
5635
5636 Committed by Elena Zannoni <ezannoni@redhat.com>
5637 * symtab.c (lookup_symbol_aux): Delete calls to
5638 lookup_symbol_aux_minsyms.
5639 (lookup_symbol_aux_minsyms): Comment out function and
5640 prototype. Delete lookup by mangled name.
5641
5642 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5643
5644 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5645 correctly indicate an empty stack and ``stack_allocated'' to the
5646 indicate the number of elements initially allocated.
5647 (dwarf_expr_grow_stack): Simplify method for computing new
5648 stack size. Don't loop infinitely if ``stack_len'' is zero.
5649 (execute_stack_op): Move ``ctx->in_reg'' initialization
5650 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5651 be used in conjuction with DW_OP_piece. Revise error message
5652 accordingly.
5653
5654 2003-05-14 Theodore A. Roth <troth@openavr.org>
5655
5656 * MAINTAINERS: Update my email address.
5657 * avr-tdep.c: Ditto.
5658
5659 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5660
5661 * symtab.h (enum domain_enum): Rename from namespace_enum.
5662 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5663 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5664 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5665 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5666 TYPES_NAMESPACE, METHODS_NAMESPACE.
5667 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5668 (struct symbol, struct partial_symbol): Rename field
5669 'namespace_enum namespace' to 'domain_enum domain'.
5670 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5671 Delete old define kludge for namespace.
5672
5673 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5674 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5675 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5676 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5677 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5678 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5679 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5680 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5681 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5682 occurrences of the above.
5683
5684 2003-05-14 Ian Lance Taylor <ian@airs.com>
5685
5686 * Makefile.in (install-only): Use $(SHELL) when running
5687 mkinstalldirs.
5688
5689 2003-05-13 Ian Lance Taylor <ian@airs.com>
5690
5691 * MAINTAINERS (write after approval): Add myself.
5692
5693 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5694 second and third arguments.
5695 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5696 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5697
5698 2003-05-13 Andrew Cagney <cagney@redhat.com>
5699
5700 * defs.h (store_address): Delete declaration.
5701 findvar.c (store_address): Delete function.
5702 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5703 store_unsigned_integer.
5704 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5705 * v850-tdep.c (v850_push_arguments): Ditto.
5706 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5707 * sh-tdep.c (sh64_get_saved_register): Ditto.
5708 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5709 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5710 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5711 (mips_get_saved_register): Ditto.
5712 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5713 (find_func_descr, ia64_push_arguments): Ditto.
5714 * i386-tdep.c (i386_push_arguments): Ditto.
5715 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5716 * frv-tdep.c (frv_push_arguments): Ditto.
5717 * frame.c (legacy_saved_regs_prev_register): Ditto.
5718 (deprecated_generic_get_saved_register): Ditto.
5719 * findvar.c (unsigned_address_to_pointer): Ditto.
5720 * dwarf2read.c (dwarf2_const_value): Ditto.
5721 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5722 * alpha-tdep.c (alpha_push_arguments): Ditto.
5723
5724 2003-05-12 J. Brobecker <brobecker@gnat.com>
5725
5726 * NEWS: Mention that the hppa-hpux port has been partially
5727 multiarched (32bit ABIT only, so far).
5728
5729 2003-05-11 Andrew Cagney <cagney@redhat.com>
5730
5731 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5732 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5733 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5734 sim/testsuite/sim/arm/misaligned2.ms, and
5735 sim/testsuite/sim/arm/misaligned3.ms.
5736 * disasm.h (struct ui_file): Add opaque struct declaration.
5737 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5738 * frame.h (struct ui_file): Ditto.
5739
5740 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5741
5742 * value.h: Pretty print.
5743
5744 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5745
5746 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5747
5748 2003-05-08 Andrew Cagney <cagney@redhat.com>
5749
5750 * regcache.h (max_register_size): Delete declaration.
5751 * regcache.c (max_register_size): Delete function.
5752 (struct regcache_descr): Delete field "max_register_size".
5753 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5754 registers fit in MAX_REGISTER_SIZE.
5755 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5756 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5757 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5758 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5759 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5760 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5761 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5762 * dve3900-rom.c, hppa-tdep.c: Ditto.
5763
5764 2003-05-08 David Carlton <carlton@math.stanford.edu>
5765
5766 * valops.c (push_word): Fix typo.
5767
5768 2003-05-08 Andrew Cagney <cagney@redhat.com>
5769
5770 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5771 * gdbarch.h: Re-generate.
5772 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5773 (legacy_max_register_raw_size): Delete declaration.
5774 * regcache.c (legacy_max_register_raw_size): Delete function.
5775 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5776 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5777 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5778 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5779 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5780 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5781 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5782 * findvar.c, dwarf2cfi.c: Ditto.
5783
5784 2003-05-08 Andrew Cagney <cagney@redhat.com>
5785
5786 * mips-tdep.c (read_signed_register): New function, moved to here
5787 from "regcache.c".
5788 (read_signed_register_pid): Ditto.
5789 * regcache.c (read_signed_register_pid): Delete function, moved to
5790 "mips-tdep.c".
5791 (read_signed_register): Ditto.
5792 * regcache.h (read_signed_register): Delete declaration.
5793 (read_signed_register_pid): Delete declaration.
5794
5795 2003-05-08 Andrew Cagney <cagney@redhat.com>
5796
5797 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5798 * gdbarch.h: Re-generate.
5799 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5800 (legacy_max_register_virtual_size): Delete declaration.
5801 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5802 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5803 * tracepoint.c (memrange_sortmerge): Ditto.
5804 * sparc-tdep.c (sparc_print_registers): Ditto.
5805 * regcache.c (legacy_max_register_virtual_size): Delete function.
5806
5807 2002-05-08 J. Brobecker <brobecker@gnat.com>
5808
5809 * fork-child.c (escape_bang_in_quoted_argument): New function.
5810 (fork_inferior): Escape '!' characters in quoted arguments
5811 only when needed.
5812
5813 2003-05-08 J. Brobecker <brobecker@gnat.com>
5814
5815 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5816 the language of the CU is not currently supported by GDB.
5817
5818 2003-05-08 J. Brobecker <brobecker@gnat.com>
5819
5820 * defs.h (language): Add language_minimal enum value.
5821 * c-lang.c (minimal_language_defn): New language definition.
5822 (_initialize_c_language): Add the new minimal language to the list
5823 of languages known to GDB.
5824
5825 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5826
5827 * frame.c (get_frame_type): Don't attempt to lazily initialize
5828 frame's unwinder for legacy frames.
5829
5830 2003-05-07 Andrew Cagney <cagney@redhat.com>
5831
5832 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5833 and "regcache" parameters.
5834 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5835
5836 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5837
5838 * dwarf2read.c (dwarf_decode_lines): Only use output of
5839 check_cu_functions() when calling record_line(). Do not update
5840 the current address.
5841
5842 2003-05-07 Andrew Cagney <cagney@redhat.com>
5843
5844 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5845 code.
5846
5847 2003-05-07 Jim Blandy <jimb@redhat.com>
5848
5849 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5850 'maint info symtabs' and 'maint info psymtabs'.
5851 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5852 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5853 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5854 Declarations updated.
5855 * maint.c (maintenance_list_command): Delete.
5856 (_initialize_maint_cmds): Update calls to add_cmd.
5857 * gdbcmd.h (maintenancelistlist): Delete declaration.
5858 * cli/cli-cmds.c (maintenancelistlist): Delete.
5859 (init_cmd_lists): Don't initialize it.
5860 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5861
5862 2003-05-07 Andrew Cagney <cagney@redhat.com>
5863
5864 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5865 "regcache".
5866 (d10v_print_registers_info): Update.
5867 (d10v_dmap_register, d10v_imap_register): Delete functions.
5868 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5869 and "imap_register".
5870 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5871 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5872 * arch-utils.c (generic_remote_translate_xfer_address): Add
5873 "regcache" and "gdbarch" parameters.
5874 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5875 parameter. Change class to multi-arch.
5876 * gdbarch.h, gdbarch.c: Re-generate.
5877 * remote.c (remote_xfer_memory): Use
5878 gdbarch_remote_translate_xfer_address.
5879
5880 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5881
5882 * infrun.c (prev_pc): Move declaration ahead of proceed().
5883 (proceed): Refresh prev_pc value before resuming.
5884 (stop_stepping): Remove code to refresh prev_pc.
5885
5886 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5887
5888 * nto-tdep.c: Removed stray comment.
5889
5890 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5891
5892 * i386-nto-tdep.c: Fix old K&R function definitions.
5893 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5894 Also change add_show_from_set() call to add_setshow_cmd().
5895 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5896
5897 2003-05-05 Andrew Cagney <cagney@redhat.com>
5898
5899 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5900 (fprint_dummy_frames): New function.
5901 (maintenance_print_dummy_frames): New function.
5902 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5903 * frame.c (fprint_frame_id): Make global.
5904 * frame.h (fprint_frame_id): Declare.
5905 * Makefile.in (dummy-frame.o): Update dependencies.
5906
5907 2003-05-05 Andrew Cagney <cagney@redhat.com>
5908
5909 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5910 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5911 SIZEOF_CALL_DUMMY_WORDS.
5912 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5913 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5914 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5915 CALL_DUMMY_BREAKPOINT_OFFSET.
5916 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5917 CALL_DUMMY_START_OFFSET.
5918 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5919 * gdbarch.h, gdbarch.c: Re-generate.
5920 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5921 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5922 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5923 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5924 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5925 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5926 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5927 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5928 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5929 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5930 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5931 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5932 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5933 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5934 * config/sparc/tm-sparc.h: Update.
5935
5936 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5937
5938 * configure.tgt: Add i[3456]86-*-nto*.
5939 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5940 * nto-tdep.c: New file. Neutrino target support routines.
5941 * nto-tdep.h: New file. Neutrino target header.
5942 * config/tm-qnxnto.h: New file.
5943 * config/i386/i386nto.mt: New file.
5944 * config/i386/tm-i386nto.h: New file.
5945
5946 2003-05-04 Andrew Cagney <cagney@redhat.com>
5947
5948 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5949 (load_infrun_state): Ditto.
5950 (struct thread_info): Drop "prev_func_name" field.
5951 * thread.c (load_infrun_state): Update.
5952 (save_infrun_state): Update.
5953 * infrun.c (prev_func_name): Delete variable.
5954 (init_wait_for_inferior): Do not clear prev_func_name.
5955 (stop_stepping, keep_going, context_switch): Do not swap
5956 prev_func_name.
5957 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5958 instead of PC_IN_SIGTRAMP.
5959
5960 2003-05-04 Andrew Cagney <cagney@redhat.com>
5961
5962 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5963 REGISTER_BYTE with register_offset_hack.
5964 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5965 that REGISTER_BYTE is consistent with the regcache.
5966 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5967 * gdbarch.h, gdbarch.c: Regenerate.
5968
5969 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5970
5971 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5972 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5973
5974 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5975
5976 2003-05-03 J. Brobecker <brobecker@gnat.com>
5977
5978 From Thierry Schneider <tpschneider1@yahoo.com>
5979 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5980 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5981 (mi-cmd-symbol.o): Add rule.
5982
5983 2003-05-03 Andrew Cagney <cagney@redhat.com>
5984
5985 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5986 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5987 * gdbarch.h, gdbarch.c: Re-generate.
5988 * d10v-tdep.c (d10v_push_dummy_code): New function.
5989 (d10v_gdbarch_init): Set push_dummy_code.
5990 * infcall.c (legacy_push_dummy_code): New function.
5991 (generic_push_dummy_code): New function.
5992 (push_dummy_code): New function.
5993 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5994 instead of dummy_addr, to push_dummy_call. Move call to
5995 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5996 switch.
5997 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5998
5999 2003-05-03 Andrew Cagney <cagney@redhat.com>
6000
6001 * disasm.h (print_insn): Declare.
6002 * disasm.c (init_gdb_disassemble_info): New function.
6003 (gdb_disassembly): Call init_gdb_disassemble_info.
6004 (gdb_print_insn): New function.
6005 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6006 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6007 * mcore-tdep.c: Include "disasm.h"
6008 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6009 * d10v-tdep.c: Include "disasm.h".
6010 (display_trace): Call gdb_print_insn, instead of print_insn.
6011 (print_insn): Delete function.
6012 * printcmd.c: Include "disasm.h".
6013 (print_insn): Delete function.
6014 (print_formatted): Call gdb_print_insn, instead of print_insn.
6015 * Makefile.in (printcmd.o): Update dependencies.
6016 (mcore-tdep.o, d10v-tdep.o): Ditto.
6017
6018 2003-05-02 Andrew Cagney <cagney@redhat.com>
6019
6020 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6021 PC_REGNUM, re-indent.
6022 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6023 PC_REGNUM isn't set.
6024
6025 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6026 * gdbarch.h, gdbarch.c: Re-generate.
6027 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6028 register_virtual_size, pc_regnum, or register_bytes.
6029 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6030 (d10v_register_type): Use D10V_PC_REGNUM.
6031 (d10v_print_registers_info, d10v_read_pc): Ditto.
6032 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6033 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6034
6035 2003-05-02 David Carlton <carlton@bactrian.org>
6036
6037 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6038 the name with mstrsave.
6039
6040 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6041
6042 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6043 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6044 (host_charset_name, target_charset_name): New vars for use by
6045 set/show commands.
6046 (host_charset_enum, target_charset_enum): New enums for set/show
6047 commands.
6048 (set_charset_sfunc, set_host_charset_sfunc,
6049 set_target_charset_sfunc): New functions.
6050 (set_host_charset, set_target_charset): Make static.
6051 (list_charsets, set_host_charset_command,
6052 set_target_charset_command): Delete functions.
6053 (show_charset_command): Rewrite as....
6054 (show_charset): Hook this up with the set/show command mechanism.
6055 (_initialize_charset): Change names of charsets to match the
6056 set/show enums. Use host_charset_name and target_charset_name.
6057 Use set/show mechanism for charset, host-charset, target-charset
6058 commands. Do not make 'show host-charset' and 'show
6059 target-charset' be aliases of 'show charset'.
6060
6061 * charset.h (set_host_charset, set_target_charset): Don't export,
6062 they are not used outside the file.
6063
6064 2003-05-01 Andrew Cagney <cagney@redhat.com>
6065
6066 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6067 (gdb_disassembly): Make "di" non static, always initialize and
6068 cleanup. Always use dis_asm_read_memory.
6069 (gdb_dis_asm_read_memory): Delete function.
6070
6071 2003-05-01 Andrew Cagney <cagney@redhat.com>
6072
6073 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6074 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6075
6076 2003-04-30 Andrew Cagney <cagney@redhat.com>
6077
6078 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6079 "tm_print_insn_info".
6080 (TARGET_PRINT_INSN_INFO): Delete macro.
6081 (dis_asm_read_memory): Delete function declaration.
6082 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6083 (tm_print_insn_info): Delete variable definition.
6084 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6085 * gdbarch.h, gdbarch.c: Re-generate.
6086 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6087 "deprecated_tm_print_insn_info".
6088 * mcore-tdep.c (mcore_dump_insn): Ditto.
6089 * mips-tdep.c (mips_gdbarch_init): Ditto.
6090 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6091 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6092 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6093 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6094 instead of TARGET_PRINT_INSN_INFO, add comment.
6095 * s390-tdep.c (s390_get_frame_info): Instead of
6096 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6097 (s390_check_function_end, s390_is_sigreturn): Ditto.
6098 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6099 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6100 * disasm.c: Include "gdbcore.h".
6101 (_initialize_disasm): New function, initialize
6102 "deprecated_tm_print_insn_info".
6103 (deprecated_tm_print_insn_info): New variable.
6104 (dis_asm_read_memory): Moved from "corefile.c", made static.
6105 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6106 * Makefile.in (disasm.o): Update dependencies.
6107
6108 2003-04-30 Andrew Cagney <cagney@redhat.com>
6109
6110 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6111
6112 2003-04-29 Adam Fedor <fedor@gnu.org>
6113
6114 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6115 * infcall.c (find_function_addr): Make non-static.
6116 * infcall.h (find_function_addr): Declare.
6117 * Makefile.in (eval.o): Update dependencies.
6118
6119 2003-04-28 Adam Fedor <fedor@gnu.org>
6120
6121 * symtab.c (symbol_find_demangled_name): Check for and demangle
6122 ObjC symbols.
6123 (symbol_init_demangled_name): Init for language_objc as well.
6124
6125 2003-04-28 Andrew Cagney <cagney@redhat.com>
6126
6127 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6128 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6129 * gdbarch.h, gdbarch.c: Re-generate.
6130 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6131 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6132 * inferior.h (deprecated_read_fp): Rename read_fp.
6133 (generic_target_read_fp): Delete declaration.
6134 * regcache.c (generic_target_read_fp): Delete function.
6135 (deprecated_read_fp): Replace read_fp, use
6136 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6137 * d10v-tdep.c (d10v_read_fp): Delete function.
6138 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6139
6140 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6141 deprecated_target_read_fp to generic_target_read_fp.
6142 * sh-tdep.c (sh_gdbarch_init): Ditto.
6143 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6145 * frv-tdep.c (frv_gdbarch_init): Ditto.
6146
6147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6148 deprecated_fp_regnum.
6149 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6150 * vax-tdep.c (vax_gdbarch_init): Ditto.
6151 * v850-tdep.c (v850_gdbarch_init): Ditto.
6152 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6153 * sh-tdep.c (sh_gdbarch_init): Ditto.
6154 * s390-tdep.c (s390_gdbarch_init): Ditto.
6155 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6156 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6157 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6158 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6159 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6160 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6161 * i386-tdep.c (i386_gdbarch_init): Ditto.
6162 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6163 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6164 * frv-tdep.c (frv_gdbarch_init): Ditto.
6165 * cris-tdep.c (cris_gdbarch_init): Ditto.
6166 * avr-tdep.c (avr_gdbarch_init): Ditto.
6167 * arm-tdep.c (arm_gdbarch_init): Ditto.
6168 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6169
6170 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6171 * v850-tdep.c (v850_gdbarch_init): Ditto.
6172 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6173 * sh-tdep.c (sh_gdbarch_init): Ditto.
6174 * s390-tdep.c (s390_gdbarch_init): Ditto.
6175 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6176 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6177 * mips-tdep.c (mips_gdbarch_init): Ditto.
6178 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6179 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6180 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6181 * frv-tdep.c (frv_gdbarch_init): Ditto.
6182 * avr-tdep.c (avr_gdbarch_init): Ditto.
6183 * arm-tdep.c (arm_gdbarch_init): Ditto.
6184
6185 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6186 DEPRECATED_FP_REGNUM.
6187 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6188 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6189 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6190 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6191 (sparc32_register_virtual_type): Ditto.
6192 * sh-tdep.c (sh64_frame_chain): Ditto.
6193 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6194 (sh_nofp_frame_init_saved_regs): Ditto.
6195 (sh64_nofp_frame_init_saved_regs): Ditto.
6196 (sh_fp_frame_init_saved_regs): Ditto.
6197 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6198 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6199 * procfs.c (procfs_fetch_registers): Ditto.
6200 (procfs_store_registers): Ditto.
6201 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6202 (store_inferior_registers, fetch_core_registers): Ditto.
6203 (fetch_kcore_registers, clear_regs): Ditto.
6204 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6205 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6206 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6207 * nlm/i386.c (do_status): Ditto.
6208 * mipsv4-nat.c (supply_gregset): Ditto.
6209 * mips-tdep.c: Ditto for comments.
6210 * mips-nat.c (fetch_inferior_registers): Ditto.
6211 (store_inferior_registers, fetch_core_registers): Ditto.
6212 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6213 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6214 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6215 (i386_do_pop_frame, i386_register_type): Ditto.
6216 * hppa-tdep.c (hppa_frame_chain): Ditto.
6217 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6218 (hppa_pop_frame, hppa_read_fp): Ditto.
6219 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6220 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6221 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6222 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6223 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6224 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6225 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6226 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6227 * blockframe.c: Ditto for comments.
6228 * arch-utils.h: Ditto for comments.
6229 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6230 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6231 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6232 * alpha-tdep.h: Ditto for comments.
6233 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6234 (alpha_cannot_store_register): Ditto.
6235 (alpha_push_dummy_frame): Ditto.
6236 * alpha-nat.c (supply_gregset): Ditto.
6237
6238 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6239 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6240 * config/sparc/tm-sparc.h: Update comment.
6241
6242 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6243 deprecated_read_fp instead of TARGET_READ_FP.
6244 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6245 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6246 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6247 deprecated_read_fp instead of read_fp.
6248 * s390-tdep.c (s390_push_arguments): Ditto.
6249 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6250 * frame.h: Ditto in comments.
6251 * frame.c (legacy_get_prev_frame): Ditto.
6252 * dummy-frame.c (dummy_frame_this_id): Ditto.
6253 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6254
6255 2003-04-28 Andrew Cagney <cagney@redhat.com>
6256
6257 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6258 * gdbarch.h, gdbarch.c: Re-generate.
6259 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6260 * vax-tdep.c (_initialize_vax_tdep): Update.
6261 * v850-tdep.c (_initialize_v850_tdep): Update.
6262 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6263 * s390-tdep.c (_initialize_s390_tdep): Update.
6264 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6265 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6266 * mips-tdep.c (_initialize_mips_tdep): Update.
6267 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6268 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6269 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6270 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6271 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6272 * frv-tdep.c (_initialize_frv_tdep): Update.
6273 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6274 (_initialize_cris_tdep): Update.
6275 * arch-utils.c (legacy_print_insn): Update.
6276 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6277
6278 2003-04-26 Adam Fedor <fedor@gnu.org>
6279
6280 * linespec.c (decode_objc): New function to decode ObjC calls
6281 (decode_line_1): Check for ObjC calls (using decode_objc)
6282 * Makefile (linespec.o): Update dependencies.
6283
6284 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6285
6286 * breakpoint.h (struct breakpoint_ops): New.
6287 (struct breakpoint): Add ops member.
6288
6289 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6290 (mention): Use new breakpoint ops member.
6291 (set_raw_breakpoint): Initialize ops field to NULL.
6292 (print_exception_catchpoint, print_one_exception_catchpoint)
6293 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6294 (gnu_v3_exception_catchpoint_ops): New.
6295 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6296
6297 2003-04-25 Adam Fedor <fedor@gnu.org>
6298
6299 * Makefile.in (COMMON_OBS): Add objc-lang.o
6300
6301 2003-04-25 Andrew Cagney <cagney@redhat.com>
6302
6303 * d10v-tdep.c (print_insn): Delete function.
6304 (display_trace): Use TARGET_PRINT_INSN.
6305 (_initialize_d10v_tdep): Do not set tm_print_insn.
6306 (d10v_gdbarch_init): Set print_insn.
6307
6308 2003-04-25 Andrew Cagney <cagney@redhat.com>
6309
6310 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6311 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6312 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6313 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6314 (nr_dmap_regs, a0_regnum): ... new functions.
6315 (d10v_print_registers_info): Use a0_regnum, use register_size.
6316 (d10v_register_byte): Delete function.
6317 (d10v_register_raw_size): Delete function.
6318 (d10v_register_type): Use a0_regnum.
6319 (d10v_print_registers_info): Use a0_regnum.
6320 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6321 (d10v_gdbarch_init): Do not set register_byte or
6322 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6323 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6324 extract_address.
6325 (trace_command): Use XCALLOC.
6326 (print_insn): Delete reference to tm_print_insn.
6327 (saved_regs_unwinder): Use store_unsigned_integer instead of
6328 store_address.
6329 * frame.h (FRAME_OBSTACK_CALLOC): Define
6330
6331 2003-04-25 David Carlton <carlton@bactrian.org>
6332
6333 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6334
6335 2003-04-24 Adam Fedor <fedor@gnu.org>
6336
6337 * objc-lang.c: Include "valprint.h"
6338 * Makefile.in (objc-lang.o): Update dependencies.
6339
6340 2003-04-24 Adam Fedor <fedor@gnu.org>
6341
6342 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6343 architecture dependant compilation and mark as unimplemented
6344 (until they get put in the gdbarch vector).
6345
6346 2003-04-23 David Carlton <carlton@bactrian.org>
6347
6348 * cp-support.c (cp_find_first_component): Accept 'operator' in
6349 more locations.
6350
6351 2003-04-23 Andrew Cagney <cagney@redhat.com>
6352
6353 * infcall.c (call_function_by_hand): Eliminate redundant
6354 indentation. Move "saved_async" and "old_cleanups" to where they
6355 are needed.
6356
6357 2003-04-23 Andrew Cagney <cagney@redhat.com>
6358
6359 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6360 and "buffer". Move the "name" code to where it is needed.
6361
6362 2003-04-23 Andrew Cagney <cagney@redhat.com>
6363
6364 * infcall.c (call_function_by_hand): Move variables "start_sp",
6365 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6366 code to ON_STACK switch branch.
6367
6368 2003-04-23 Andrew Cagney <cagney@redhat.com>
6369
6370 * infcall.c (call_function_by_hand): Make declaration of "i",
6371 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6372 lint.
6373
6374 2003-04-23 Andrew Cagney <cagney@redhat.com>
6375
6376 * infcall.c (call_function_by_hand): Delete variable
6377 "n_method_args". Localize "param_type"'s declaration to the loop
6378 that it is used. Reinstate code assigning to said variable -
6379 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6380 Rationalize code using "param_type".
6381
6382 2003-04-22 Andrew Cagney <cagney@redhat.com>
6383
6384 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6385 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6386 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6387 to DEPRECATED_PUSH_RETURN_ADDRESS.
6388
6389 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6390
6391 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6392 on the DWARF2 register number prior to fetching a register.
6393
6394 2003-04-22 J. Brobecker <brobecker@gnat.com>
6395
6396 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6397 Update all the tests using SOFT_FLOAT considering the fact that
6398 this macro was always set to 0.
6399 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6400 considering the fact that this macro was always set to 0.
6401 * hppa-tdep.h (hppa_store_return_value): Likewise.
6402 (hppa_extract_return_value): Likewise.
6403
6404 2003-04-22 J. Brobecker <brobecker@gnat.com>
6405
6406 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6407 the hppa-pro target only.
6408
6409 2003-04-21 J. Brobecker <brobecker@gnat.com>
6410
6411 Ongoing multi-arch conversion effort for HP/UX:
6412 * config/pa/tm-hppa.h: Move all macro that are no longer
6413 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6414 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6415
6416 2003-04-21 J. Brobecker <brobecker@gnat.com>
6417
6418 * config/pa/tm-hppa.h: Obsolete a section that was only used
6419 for hppa-pro.
6420
6421 2003-04-21 J. Brobecker <brobecker@gnat.com>
6422
6423 Ongoing multi-arch conversion for HP/UX.
6424 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6425 if already defined (allows hppa64 to stay non-multiarched for now).
6426 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6427
6428 2003-04-21 Andrew Cagney <cagney@redhat.com>
6429
6430 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6431
6432 2003-04-21 Andrew Cagney <cagney@redhat.com>
6433
6434 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6435 "i386_num_mmx_regs".
6436
6437 2003-04-21 Andrew Cagney <cagney@redhat.com>
6438
6439 * infcall.c: New file.
6440 * infcall.h: New file.
6441 * valarith.c: Include "infcall.h".
6442 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6443 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6444 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6445 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6446 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6447 (SFILES): Add "infcall.c"
6448 (COMMON_OBS): Add "infcall.o".
6449 (infcall.o): Specify dependencies.
6450 * value.h (call_function_by_hand): Delete declaration.
6451 * inferior.h (run_stack_dummy): Delete declaration.
6452 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6453 (run_stack_dummy): Move to "infcall.c", merged into
6454 call_function_by_hand.
6455 * valops.c (call_function_by_hand): Moved to "infcall.c".
6456 (find_function_addr, value_arg_coerce): Ditto.
6457 (unwindonsignal_p, coerce_float_to_double): Ditto.
6458 (_initialize_valops): Move "set/show coerce-float-to-double", and
6459 "set/show unwindonsignal" commands to "infcall.c".
6460 * v850-tdep.c, target.h: Update comments.
6461 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6462 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6463 (sh64_init_extra_frame_info): Update comments.
6464 * mn10300-tdep.c: Update comments.
6465 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6466 * config/sparc/tm-sparc.h: Update comments.
6467 * breakpoint.h: Update comments.
6468 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6469 * arm-tdep.c: Update comment.
6470
6471 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6472
6473 * i386-tdep.c (i386_num_register_names): New variable.
6474 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6475 (MM0_REGNUM): Remove redundant parentheses in define.
6476 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6477 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6478 i386_mxcsr_regnum_p): Remove redundant parentheses.
6479 (i386_register_name): Use i386_num_register_names.
6480
6481 * i386-tdep.c (i386_extract_return_value,
6482 i386_store_return_value): Correct check for availability of
6483 floating-point registers.
6484
6485 * i386-tdep.c (i386_frame_num_args): Remove function.
6486 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6487
6488 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6489 mmx_regnum_to_fp_regnum. Adjust all callers.
6490
6491 * i386-tdep.c (i386_get_longjmp_target): Use
6492 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6493 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6494 extract_address.
6495
6496 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6497
6498 * core-regset.c: Update comments to reflect reality. Re-order
6499 includes.
6500 (fetch_core_registers): Use switch instead of if. Remove
6501 redundant prototype.
6502
6503 2003-04-18 Jim Blandy <jimb@redhat.com>
6504
6505 * s390-tdep.c (s390_frame_align): New function.
6506 (s390_gdbarch_init): Register it with the gdbarch object.
6507
6508 2003-04-17 Richard Henderson <rth@redhat.com>
6509
6510 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6511
6512 2003-04-17 Michael Snyder <msnyder@redhat.com>
6513 Karen Bennet <bennet@redhat.com>
6514
6515 Committed by Elena Zannoni <ezannoni@redhat.com>
6516 * gdb_gcore.sh: New script to create a core dump of a process.
6517
6518 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6519
6520 * values.c (value_being_returned): Don't fetch the return
6521 value if the return type is void.
6522
6523 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6524
6525 * thread-db.c: Reindented.
6526
6527 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6528
6529 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6530 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6531 as types.
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6558
6559 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6560 the size of ``long double'' to 16, instead of 8.
6561
6562 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6563
6564 * i386-linux-nat.c: Add some whitespace to make things more
6565 readable.
6566 (fetch_register, store_register, fetch_inferior_registers,
6567 store_inferior_registers): Get rid of assignment in if-statement.
6568 (store_register): Fix typo in error message.
6569
6570 2003-04-16 Andrew Cagney <cagney@redhat.com>
6571
6572 * utils.c (xmmalloc): Always allocate something, matches
6573 libiberty/xmalloc's semantics.
6574 (xmrealloc, xmcalloc): Ditto.
6575
6576 2003-04-16 Andrew Cagney <cagney@redhat.com>
6577
6578 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6579 update comments.
6580 (get_frame_type): Initialize unwind and type when needed.
6581 (get_frame_id, frame_register_unwind): Ditto.
6582
6583 2003-04-16 Andrew Cagney <cagney@redhat.com>
6584
6585 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6586 obsolete.
6587 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6588 * sparcl-stub.c: Obsolete file.
6589 * config/sparc/tm-sparclet.h: Obsolete file.
6590 * sparclet-stub.c: Obsolete file.
6591 * sparclet-rom.c: Obsolete file.
6592 * sparcl-tdep.c: Obsolete file.
6593 * config/sparc/tm-sparclite.h: Obsolete file.
6594 * config/sparc/sparclite.mt: Obsolete file.
6595 * config/sparc/sparclet.mt: Obsolete file.
6596 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6597 sparc86x-*-* obsolete.
6598
6599 2003-04-15 David Carlton <carlton@math.stanford.edu>
6600
6601 * Makefile.in (SFILES): Add cp-namespace.c.
6602 (COMMON_OBS): Add cp-namespace.o.
6603 (block.o): Depend on gdb_obstack_h and cp_support_h.
6604 (buildsym.o): Depend on cp_support_h.
6605 (cp-namespace.o): New.
6606 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6607 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6608 (dwarf2read.o): Depend on cp_support_h.
6609 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6610 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6611 processing_current_namespace.
6612 (read_namespace): Update processing_current_namespace; check for
6613 anonymous namespaces.
6614 (dwarf2_name): New function.
6615 (dwarf2_extension): Ditto.
6616 * cp-support.h: Update copyright, contributors.
6617 Add inclusion guards.
6618 Add opaque declaration for structs obstack, block, symbol.
6619 (struct using_direct): New struct.
6620 Add declarations for cp_find_first_component,
6621 cp_entire_prefix_len, processing_has_namespace_info,
6622 processing_current_namespace, cp_is_anonymous,
6623 cp_add_using_directive, cp_initialize_namespace,
6624 cp_finalize_namespace, cp_set_block_scope,
6625 cp_scan_for_anonymous_namespaces.
6626 * cp-namespace.c: New file.
6627 * cp-support.c: Update copyright.
6628 Include ctype.h, gdb_assert.h, gdbcmd.h.
6629 New variable maint_cplus_cmd_list.
6630 (cp_find_first_component): New function.
6631 (cp_entire_prefix_len, maint_cplus_command)
6632 (first_component_command, _initialize_cp_support): Ditto.
6633 * buildsym.c: Include cp-support.h.
6634 New variable using_list.
6635 (add_symbol_to_list): Check for anonymous namespaces.
6636 (finish_block): Set block's scope.
6637 (start_symtab): Initialize C++ namespace support.
6638 (end_symtab): Finalize C++ namespace support.
6639 * block.h: Add opaque declarations for structs
6640 block_namespace_info, using_direct, and obstack.
6641 Add declarations for block_set_scope and block_set_using.
6642 (struct block): Add 'language_specific' member.
6643 (BLOCK_NAMESPACE): New macro.
6644 * block.c: Include gdb_obstack.h and cp-support.h.
6645 (struct block_namespace_info): New struct.
6646 (block_set_scope): New function.
6647 (block_set_using, block_initialize_namespace): Ditto.
6648
6649 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6650
6651 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6652 (locate_base): Return early if there aren't any link map offsets.
6653 (svr4_solib_create_inferior_hook): Warn if shared library support
6654 is unavailable.
6655
6656 2003-04-14 David Carlton <carlton@math.stanford.edu>
6657
6658 * symtab.c (symbol_set_names): Add prefix when storing Java names
6659 in hash table. Fix for PR java/1039.
6660
6661 2003-04-14 David Carlton <carlton@math.stanford.edu>
6662
6663 * symtab.c (symbol_set_names): Rename 'name' arg to
6664 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6665 * symtab.h: Change 'name' argument in declaration of
6666 symbol_set_names to 'linkage_name'.
6667 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6668
6669 2003-04-14 Andrew Cagney <cagney@redhat.com>
6670
6671 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6672 return the fully sign-extended register value.
6673 (get_frame_pointer): Ditto.
6674 (mips_pop_frame): Initialize "proc_desc" after checking for a
6675 dummy frame.
6676
6677 2003-04-14 Andrew Cagney <cagney@redhat.com>
6678
6679 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6680 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6681 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6682 (mips_push_register): Delete function.
6683 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6684 PUSH_FP_REGNUM.
6685
6686 2003-04-14 Jim Blandy <jimb@redhat.com>
6687
6688 * symmisc.c: #include "gdb_regex.h".
6689 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6690 functions.
6691 * maint.c (maintenance_list_command): New function.
6692 (_initialize_maint_cmds): Register the above as commands.
6693 * symtab.h (maintenance_list_symtabs,
6694 maintenance_list_psymtabs): New declarations.
6695 * cli/cli-cmds.c (maintenancelistlist): New variable.
6696 (init_cmd_lists): Initialize it.
6697 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6698 * gdbcmd.h (maintenancelistlist): New declaration.
6699 * Makefile.in (symmisc.o): Update dependencies.
6700
6701 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6702
6703 * s390-nat.c: Include asm/types.h for addr_t.
6704
6705 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6706
6707 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6708 actually incoming type.
6709
6710 2003-04-13 Andrew Cagney <cagney@redhat.com>
6711
6712 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6713 get_next_frame and get_frame_saved_regs.
6714
6715 2003-04-13 Andrew Cagney <cagney@redhat.com>
6716
6717 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6718 of gdbarch_num_regs.
6719
6720 2003-04-13 Andrew Cagney <cagney@redhat.com>
6721
6722 * frame.h: Mention what replaced what in "struct frame_info".
6723 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6724 deprecated_update_frame_base_hack and
6725 deprecated_update_frame_pc_hack.
6726 * hppa-tdep.c: Ditto.
6727
6728 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6729
6730 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6731 to read_reg and update its comment. Remove regnum member.
6732 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6733 Don't call read_reg when setting in_reg. Call read_reg to get
6734 the frame base if it's in a register. Return the register number
6735 on the stack instead of in the context. Remove extra arguments
6736 to read_reg.
6737 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6738 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6739 the register number on the expression stack.
6740 (needs_frame_read_reg): Remove extra arguments.
6741
6742 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6743
6744 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6745 made non-static.
6746 (execute_stack_op): All callers updated.
6747 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6748 * dwarf2loc.c (find_location_expression): New function.
6749 (dwarf_expr_frame_base): Call it.
6750 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6751 (dwarf2_tracepoint_var_ref): New function, broken out from
6752 locexpr_tracepoint_var_ref.
6753 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6754 Make static.
6755 (loclist_read_variable, loclist_read_needs_frame): New functions.
6756 (loclist_describe_location, loclist_tracepoint_var_ref): New
6757 functions.
6758 (dwarf2_loclist_funcs): New struct location_funcs.
6759 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6760 (struct dwarf2_locexpr_baton): Add comments.
6761 (dwarf2_loclist_funcs): New extern.
6762 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6763 base_address and base_known.
6764 (dwarf_loc_buffer): New variable.
6765 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6766 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6767 (dwarf2_has_info): Initialize dwarf_loc_offset.
6768 (dwarf2_build_psymtabs): Read in .debug_loc.
6769 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6770 DWARF_LOC_SIZE.
6771 (psymtab_to_symtab_1): Likewise. Move base address calculation
6772 here, from...
6773 (dwarf2_get_pc_bounds): ... here. Use the base address from
6774 cu_header.
6775 (dwarf2_symbol_mark_computed): Handle location lists.
6776
6777 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6778
6779 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6780 if the linkage name demangled successfully.
6781
6782 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6783
6784 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6785 disassmbly_flavour): Removed.
6786
6787 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6788
6789 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6790
6791 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6792
6793 2003-04-12 Andrew Cagney <cagney@redhat.com>
6794
6795 * frame.h (struct frame_info): Move definition from here ...
6796 * frame.c (struct frame_info): ... to here.
6797
6798 2003-04-12 Andrew Cagney <cagney@redhat.com>
6799
6800 * gdbthread.h (save_infrun_state): Delete parameter
6801 "prev_func_start".
6802 (struct thread_info): Delete field "prev_func_start".
6803 (load_infrun_state): Ditto.
6804 * thread.c (load_infrun_state, save_infrun_state): Update.
6805 * infrun.c (prev_func_start): Delete variable.
6806 (context_switch, init_wait_for_inferior): Update.
6807 (stop_stepping, keep_going): Update.
6808
6809 2003-04-12 Andrew Cagney <cagney@redhat.com>
6810
6811 * gdbarch.sh: Add missing opaque declarations.
6812 * gdbarch.h: Regnerate.
6813 * symtab.h: Add missing opaque declarations.
6814 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6815 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6816 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6817 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6818 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6819 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6820 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6821 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6822 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6823 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6824 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6825 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6826 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6827
6828 2003-04-11 Andrew Cagney <cagney@redhat.com>
6829
6830 * frame.c (get_frame_id): Return this frame's "id".
6831 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6832 function start.
6833 (legacy_saved_regs_this_id): Replace function body with
6834 internal-error.
6835 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6836 FRAME_OBSTACK_ZALLOC.
6837 (create_new_frame): Mark the frame ID as valid.
6838
6839 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6840
6841 * Makefile.in (libbfd_h): Added missing setting.
6842 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6843 according to the selected ABI.
6844
6845 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6846
6847 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6848
6849 2003-04-11 Andrew Cagney <cagney@redhat.com>
6850
6851 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6852 SAVED_PC_AFTER_CALL.
6853 * gdbarch.h, gdbarch.c: Regenerate.
6854 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6855 * x86-64-tdep.c (x86_64_init_abi): Update.
6856 * vax-tdep.c (vax_gdbarch_init): Update.
6857 * v850-tdep.c (v850_gdbarch_init): Update.
6858 * sparc-tdep.c (sparc_gdbarch_init): Update.
6859 * sh-tdep.c (sh_gdbarch_init): Update.
6860 * s390-tdep.c (s390_gdbarch_init): Update.
6861 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6862 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6863 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6864 * mips-tdep.c (mips_gdbarch_init): Update.
6865 * mcore-tdep.c (mcore_gdbarch_init): Update.
6866 * m68k-tdep.c (m68k_gdbarch_init): Update.
6867 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6868 * ia64-tdep.c (ia64_gdbarch_init): Update.
6869 (ia64_saved_pc_after_call): Update declaration.
6870 * i386ly-tdep.c (i386lynx_init_abi): Update.
6871 * i386-tdep.c (i386_gdbarch_init): Update.
6872 * hppa-tdep.c (hppa_gdbarch_init): Update.
6873 * h8300-tdep.c (h8300_gdbarch_init): Update.
6874 * frv-tdep.c (frv_gdbarch_init): Update.
6875 * cris-tdep.c (cris_gdbarch_init): Update.
6876 * avr-tdep.c (avr_gdbarch_init): Update.
6877 * arm-tdep.c (arm_gdbarch_init): Update.
6878 * alpha-tdep.c (alpha_gdbarch_init): Update.
6879 * ns32knbsd-nat.c (frame_num_args): Update.
6880 * ns32k-tdep.c (umax_frame_num_args): Update.
6881 * mips-tdep.c (mips_init_frame_pc_first): Update.
6882 * infrun.c (step_over_function): Update.
6883 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6884 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6885 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6886 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6887 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6888 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6889 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6890 * arch-utils.c (init_frame_pc_default): Update.
6891 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6892 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6893 declaration.
6894
6895 2003-04-11 Andrew Cagney <cagney@redhat.com>
6896
6897 * i387-tdep.c: Update copyright.
6898 (i387_to_double): Delete function.
6899 (double_to_i387): Delete function.
6900
6901 2003-04-10 Andrew Cagney <cagney@redhat.com>
6902
6903 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6904 frame's function's address. Simplify.
6905 (d10v_frame_unwind_cache): Check that the frame's function is
6906 non-zero.
6907
6908 2003-04-10 Jim Blandy <jimb@redhat.com>
6909
6910 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6911 call to set_gdbarch_deprecated_push_arguments.
6912
6913 2003-04-10 Andrew Cagney <cagney@redhat.com>
6914
6915 * frame.c (fprint_frame_id): New function.
6916 (fprint_frame_type, fprint_frame): New function.
6917 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6918 (create_sentinel_frame, get_frame_id): Ditto.
6919 (frame_id_p, frame_id_eq): Ditto.
6920 (frame_id_inner, create_new_frame): Ditto.
6921 (legacy_get_prev_frame, get_prev_frame): Ditto.
6922 (deprecated_update_frame_pc_hack): Ditto.
6923 (frame_register_unwind): Ditto.
6924 (deprecated_update_frame_base_hack): Ditto.
6925
6926 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6927
6928 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6929 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6930 frame_chain function.
6931 * Makefile.in: Add dependencies due to above change.
6932
6933 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6934
6935 * blockframe.c (legacy_frame_chain_valid): Move call to
6936 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6937 inside_entry_file.
6938
6939 2003-04-09 Andrew Cagney <cagney@redhat.com>
6940
6941 * frame.h (struct frame_id): Replace "pc" and "base" with
6942 "stack_addr" and "code_addr". Update comments.
6943 (frame_id_build): Update parameter names and comment.
6944 (struct frame_info): Replace "id_p" and "id" with "this_id".
6945 * dummy-frame.c (dummy_frame_this_id): Update.
6946 * breakpoint.c (print_one_breakpoint): Update.
6947 * frame.c (get_frame_id): Update.
6948 (get_frame_base, frame_id_build): Update.
6949 (create_sentinel_frame, legacy_get_prev_frame): Update.
6950 (deprecated_update_frame_base_hack): Update.
6951 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6952 (frame_id_inner): Ditto.
6953
6954 2003-04-09 Andrew Cagney <cagney@redhat.com>
6955
6956 * defs.h (gdb_print_host_address): Make "addr" parameter a
6957 pointer constant.
6958 * utils.c (gdb_print_host_address): Update.
6959
6960 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6961
6962 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6963 register number for R0 is 0.
6964
6965 2003-04-09 J. Brobecker <brobecker@gnat.com>
6966
6967 * frame.h (struct gdbarch): Add opaque structure definition
6968 to avoid a compilation warning on LynxOS 4.0.
6969
6970 2003-04-09 Andrew Cagney <cagney@redhat.com>
6971
6972 * frame.h (struct frame_info): Delete field "pc". Replace
6973 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6974 structure.
6975 * frame.c (frame_pc_unwind): Update.
6976 (create_sentinel_frame): Do not set "pc".
6977 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6978 (get_frame_pc): Call frame_pc_unwind.
6979 (deprecated_update_frame_pc_hack): Update.
6980 (create_new_frame): Use "pc" not "->pc".
6981
6982 2003-04-09 Andrew Cagney <cagney@redhat.com>
6983
6984 * frame.c (get_frame_id): Eliminate code updating "frame".
6985 (legacy_get_prev_frame): Ditto.
6986 (get_frame_base): Return id.base directly.
6987 (deprecated_update_frame_base_hack): Update "id.base".
6988 * frame.h (struct frame_info): Delete field "frame".
6989
6990 2003-04-09 Andrew Cagney <cagney@redhat.com>
6991
6992 * NEWS: Mention that the "Sequent family" is obsolete.
6993 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6994 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6995 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6996 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6997 * config/i386/tm-ptx4.h: Obsolete file.
6998 * config/i386/tm-ptx.h: Obsolete file.
6999 * symm-tdep.c: Obsolete file.
7000 * config/i386/symmetry.mt: Obsolete file.
7001 * config/i386/tm-symmetry.h: Obsolete file.
7002 * symm-nat.c: Obsolete file.
7003 * config/i386/nm-symmetry.h: Obsolete file.
7004 * config/i386/xm-symmetry.h: Obsolete file.
7005 * config/i386/symmetry.mh: Obsolete file.
7006 * config/i386/nm-ptx4.h: Obsolete file.
7007 * config/i386/ptx4.mh: Obsolete file.
7008 * config/i386/ptx.mt: Obsolete file.
7009 * config/i386/ptx.mh: Obsolete file.
7010 * config/i386/xm-ptx4.h: Obsolete file.
7011 * config/i386/xm-ptx.h: Obsolete file.
7012
7013 2003-04-09 Andrew Cagney <cagney@redhat.com>
7014
7015 Obsolete mips*-*-mach3*.
7016 * NEWS: Mention that mips*-*-mach3* is obsolete.
7017 * m3-nat.c: Obsolete file.
7018 * config/nm-m3.h: Obsolete file.
7019 * config/mips/tm-mipsm3.h: Obsolete file.
7020 * config/mips/mipsm3.mt: Obsolete file.
7021 * config/mips/mipsm3.mh: Obsolete file.
7022 * config/mips/xm-mipsm3.h: Obsolete file.
7023 * mipsm3-nat.c: Obsolete file.
7024 * configure.host: Obsolete mips-dec-mach3*.
7025 * configure.tgt: Obsolete mips*-*-mach3*.
7026
7027 2003-04-09 Andrew Cagney <cagney@redhat.com>
7028
7029 * doublest.h: Update copyright.
7030 (deprecated_store_floating, deprecated_extract_floating): Rename
7031 store_floating and extract_floating. Update comments.
7032 * doublest.c: Update copyright.
7033 (extract_floating_by_length): Replace extract_floating.
7034 (store_floating_by_length): Replace store_floating.
7035 (deprecated_extract_floating): New function.
7036 (deprecated_store_floating): New function.
7037 (extract_typed_floating): Call extract_floating_by_length.
7038 (store_typed_floating): Call store_floating_by_length.
7039 * x86-64-tdep.c (x86_64_store_return_value): Update.
7040 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7041 (sh64_extract_return_value): Update.
7042 (sh_sh4_register_convert_to_virtual): Update.
7043 (sh_sh64_register_convert_to_virtual): Update.
7044 (sh_sh4_register_convert_to_raw): Update.
7045 (sh_sh64_register_convert_to_raw): Update.
7046 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7047 (rs6000_register_convert_to_raw): Update.
7048 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7049 (ia64_register_convert_to_raw): Update.
7050 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7051 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7052 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7053 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7054 (alpha_register_convert_to_raw): Update.
7055
7056 2003-04-08 Andrew Cagney <cagney@redhat.com>
7057
7058 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7059 * gdbarch.h, gdbarch.c: Re-generate.
7060 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7061 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7062 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7063 conditionally, use frame_pc_unwind as an alternative. Add
7064 comments.
7065 * arch-utils.c (init_frame_pc_default): Only call
7066 SAVED_PC_AFTER_CALL when available.
7067
7068 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7069
7070 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7071 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7072 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7073 (start_remote): Ditto.
7074 (handle_inferior_event): Ditto.
7075 (save_inferior_status): Ditto.
7076 (restore_inferior_status): Ditto.
7077 * infcmd.c (attach_command): Ditto.
7078 * fork-child.c (startup_inferior): Ditto.
7079 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7080 * alpha-tdep.c (heuristic_proc_start): Ditto.
7081 * mips-tdep.c (heuristic_proc_start): Ditto.
7082 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7083 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7084 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7085 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7086 * remote-vx.c (vx_create_inferior): Ditto.
7087
7088 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7089
7090 * infrun.c (stop_soon_quietly): Make it an enum, to better
7091 override the default behavior of handle_inferior_event.
7092 (clear_proceed_status): Update uses of stop_soon_quietly to
7093 reflect that it is now an enum.
7094 (start_remote): Ditto.
7095 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7096 is set to handle the new GNU/Linux kernel behavior for
7097 attach/sigstop. Update uses of stop_soon_quietly.
7098 * inferior.h (enum stop_kind): New enum.
7099 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7100 Reset normal handle_inferior_event behavior, afterwards.
7101 * fork-child.c (startup_inferior): Update.
7102 * alpha-tdep.c (heuristic_proc_start): Update.
7103 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7104 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7105 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7106 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7107 * remote-vx.c (vx_create_inferior): Update.
7108 * mips-tdep.c (heuristic_proc_start): Update.
7109
7110 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7111
7112 * disasm.c (dump_insns): Move variables inside loop, or they will
7113 be freed more than once, causing wild memory corruptions.
7114 (gdb_disassembly): Look for the substring "-thread",
7115 instead of "-threads" in the target name, to make sure to find
7116 the 'multi-thread' target. Also, make sure we do the right thing
7117 with the "core" target.
7118
7119 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7120
7121 * mips-tdep.c (mips_print_fp_register): New function, created from
7122 do_fp_register_row(). Registers are now (also) printed as hex.
7123 Only one register is printed per row.
7124 (mips_print_register, do_fp_register_row): Print floating point
7125 registers with mips_print_fp_register().
7126
7127 2003-04-06 Andrew Cagney <cagney@redhat.com>
7128
7129 * valprint.h (inspect_it): Add extern declaration.
7130 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7131 (selectors_info, classes_info): Ditto.
7132 (find_objc_msgcall): Fix indentation.
7133 (objc_printstr): Delete extern declarations.
7134
7135 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7136
7137 2003-04-06 Andrew Cagney <cagney@redhat.com>
7138
7139 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7140 Update comment.
7141 * frame.c (legacy_saved_regs_this_id): Update.
7142 (legacy_get_prev_frame): Update.
7143 * xstormy16-tdep.c: Update comment.
7144 * sparc-tdep.c (sparc_frame_chain): Update comment.
7145 * blockframe.c (legacy_frame_chain_valid): Update.
7146
7147 2003-04-06 Andrew Cagney <cagney@redhat.com>
7148
7149 * valprint.c (val_print_type_code_int): Delete #ifdef
7150 PRINT_TYPELESS_INTEGER code.
7151
7152 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7153 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7154 multi-arch definition.
7155 * gdbarch.h: Re-generate.
7156
7157 2003-04-05 Andrew Cagney <cagney@redhat.com>
7158
7159 Eliminate FRAME_FIND_SAVED_REGS.
7160 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7161 Change FSR parameter to a pointer.
7162 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7163 Assume FSR parameter is a pointer.
7164 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7165 Make fsr a pointer.
7166 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7167 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7168 saved_regs a pointer.
7169 (hppa_frame_saved_pc): Ditto.
7170 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7171 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7172 pointer.
7173 (restore_pc_queue): Make fsr a pointer.
7174 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7175 (hppa_frame_chain): Make saved_regs a pointer, call
7176 hppa_frame_init_saved_regs.
7177 * sparc-tdep.c: Include "gdb_assert.h".
7178 (sparc_frame_find_saved_regs): Replace internal_error with
7179 gdb_assert.
7180 * remote-vxsparc.c (vx_read_register): Delete reference to
7181 FRAME_FIND_SAVED_REGS.
7182 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7183 * gdbarch.h: Regenerate.
7184 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7185 (deprecated_get_frame_saved_regs): Delete declaration.
7186 (struct frame_saved_regs): Delete definition.
7187 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7188 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7189 (hppa_frame_find_saved_regs): Delete declaration.
7190 (FRAME_FIND_SAVED_REGS): Delete macro.
7191 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7192 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7193 FRAME_FIND_SAVED_REGS in comment.
7194
7195 2003-04-05 Andrew Cagney <cagney@redhat.com>
7196
7197 * frame.c (frame_func_unwind, get_frame_func): New functions.
7198 * frame.h (get_frame_func, frame_func_unwind): Declare.
7199 (struct frame_info): Add field "prev_func" for caching the
7200 previous frame's function address.
7201 * arm-tdep.c (arm_frameless_function_invocation): Combine
7202 get_pc_function_start and get_frame_pc into get_frame_func.
7203 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7204 (sh64_nofp_frame_init_saved_regs): Ditto.
7205 * s390-tdep.c (s390_function_start): Ditto.
7206 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7207 (rs6000_frameless_function_invocation): Ditto.
7208 (rs6000_frame_saved_pc): Ditto.
7209 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7210 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7211 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7212 (i386_frame_init_saved_regs): Ditto.
7213 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7214 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7215 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7216 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7217 * blockframe.c (frameless_look_for_prologue): Ditto.
7218
7219 2003-04-05 Andrew Cagney <cagney@redhat.com>
7220
7221 * frame.c (legacy_get_prev_frame): Link prev to next at the
7222 function start. Update comments.
7223
7224 2003-04-05 Andrew Cagney <cagney@redhat.com>
7225
7226 * frame.c (get_frame_id): Update comment.
7227 (legacy_get_prev_frame): Update comment.
7228 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7229 * gdbarch.h: Regenerate.
7230 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7231 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7232
7233 2003-04-05 Andrew Cagney <cagney@redhat.com>
7234
7235 * stack.c (print_frame_info): Use get_frame_pc.
7236
7237 2003-04-04 Andrew Cagney <cagney@redhat.com>
7238
7239 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7240 the frame's type from the unwinder.
7241 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7242 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7243 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7244 (get_frame_base_address): Use get_frame_type.
7245 (get_frame_locals_address, get_frame_args_address): Ditto.
7246 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7247 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7248 (struct frame_info): Add comment explaining why the frame contains
7249 a "type" field.
7250 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7251 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7252 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7253 NORMAL_FRAME.
7254 * frame-unwind.h: Include "frame.h".
7255 (struct frame_unwind): Add "type" field.
7256 * Makefile.in (frame_unwind_h): Add $(frame_h).
7257
7258 2003-04-04 Andrew Cagney <cagney@redhat.com>
7259
7260 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7261 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7262 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7263 get_frame_base.
7264 (d10v_unwind_dummy_id): Use frame_id_build.
7265 * frame.c (find_frame_sal): Use get_frame_pc.
7266 (create_new_frame): Use deprecated_update_frame_pc_hack and
7267 deprecated_update_frame_base_hack.
7268 (create_sentinel_frame): Add comment about ->pc going away.
7269 (get_prev_frame): Add comment about ->pc going away.
7270 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7271 frame_id_build, deprecated_update_frame_pc_hack and
7272 deprecated_update_frame_base_hack.
7273 (select_frame): Use get_frame_pc.
7274 (legacy_saved_regs_this_id): Use frame_id_build.
7275
7276 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7277
7278 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7279 signed integer case.
7280 (classify_argument): Handle enumerations and references.
7281
7282 2003-04-04 Andrew Cagney <cagney@redhat.com>
7283
7284 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7285 ID to NULL.
7286
7287 2003-04-01 Adam Fedor <fedor@gnu.org>
7288
7289 * gdb/objc-lang.c (selectors_info): Replace calls to
7290 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7291 SYMBOL_NATURAL_NAME.
7292 (classes_info, find_methods): Likewise.
7293
7294 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7295
7296 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7297 ``mach'' to the value determined by bfd_default_set_arch_mach().
7298
7299 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7300
7301 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7302 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7303 (mi-cmd-file.o): Update dependencies.
7304
7305 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7306
7307 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7308 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7309
7310 2003-04-01 Adam Fedor <fedor@gnu.org>
7311
7312 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7313 * language.h (struct language_defn): Add la_demangle.
7314 (language_demangle): Declare.
7315 * language.c (language_demangle): New function.
7316 (unk_lang_demangle): Likewise.
7317 (unknown_language_defn, auto_language_defn, local_language_defn):
7318 Add ukn_lang_demangle.
7319 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7320 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7321 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7322 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7323 * jv-lang.c (java_demangle): New function
7324 (java_language_defn): Use it for la_demangle element.
7325 * objc-lang.c (objc_demangle): Add options argument
7326 (objc_language_defn): Use objc_demangle for la_demangle element.
7327 * maint.c (maintenance_demangle): Replace switch with
7328 call to language_demangle.
7329 * utils.c (fprintf_symbol_filtered): Likewise.
7330
7331 2003-04-01 Andrew Cagney <cagney@redhat.com>
7332
7333 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7334 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7335 PRINT_TYPELESS_INTEGER.
7336 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7337 PUSH_RETURN_ADDRESS.
7338
7339 2003-04-01 Andrew Cagney <cagney@redhat.com>
7340
7341 * Makefile.in (d10v-tdep.o): Update dependencies.
7342 * d10v-tdep.c: Include "frame-base.h".
7343 (d10v_frame_unwind): Make constant.
7344 (d10v_frame_base_address): New function.
7345 (d10v_frame_base): New variable.
7346 (d10v_gdbarch_init): Set frame_base default.
7347 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7348 comment for base.
7349 (d10v_frame_unwind_cache): Set and use "prev_sp".
7350 (d10v_frame_this_id): Use the previous frame's inner most stack
7351 address and this frame's func address for the frame ID. Use
7352 frame_id_build. Don't analyze beyond the current instruction.
7353
7354 2003-04-01 Andrew Cagney <cagney@redhat.com>
7355
7356 * frame.h (get_frame_locals_address, get_frame_args_address):
7357 Refer to the base address, instead of the address of the first
7358 local or parameter.
7359
7360 2003-04-01 Andrew Cagney <cagney@redhat.com>
7361
7362 Add frame debug info addresses:
7363 * frame-base.c: New file.
7364 * frame-base.h: New file.
7365 * frame.h (struct frame_base): Add opaque declaration.
7366 (get_frame_base): Update comment.
7367 (get_frame_base_address): Declare.
7368 (get_frame_locals_address): Declare.
7369 (get_frame_args_address): Declare.
7370 (struct frame_info): Add "base" and "base_cache". Update
7371 comments on the unwinder.
7372 * frame.c: Include "frame-base.h".
7373 (get_frame_locals_address): New function.
7374 (get_frame_base_address): New function.
7375 (get_frame_args_address): New function.
7376 * findvar.c (read_var_value): Use get_frame_locals_address and
7377 get_frame_args_address.
7378 * stack.c (frame_info): Use get_frame_locals_address and
7379 get_frame_args_address.
7380 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7381 moved to "frame-base.c".
7382 * printcmd.c (print_frame_nameless_args): Ditto.
7383 * symtab.h (address_class): Update comments.
7384 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7385 get_frame_base_address.
7386 * dwarf2expr.c (execute_stack_op): Ditto.
7387 * Makefile.in (frame_base_h): Define.
7388 (frame.o): Update dependencies.
7389 (frame-base.o): Add dependencies.
7390 (SFILES): Add frame-base.c.
7391 (COMMON_OBS): Add frame-base.o.
7392
7393 2003-04-01 Andrew Cagney <cagney@redhat.com>
7394
7395 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7396 CALL_DUMMY_LENGTH): Ditto.
7397 * gdbarch.c: Re-generate.
7398 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7399 (CALL_DUMMY_LENGTH): Delete macro.
7400 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7401 * arm-tdep.c (arm_gdbarch_init): Ditto.
7402 * avr-tdep.c (avr_gdbarch_init): Ditto.
7403 * cris-tdep.c (cris_gdbarch_init): Ditto.
7404 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7405 * frv-tdep.c (frv_gdbarch_init): Ditto.
7406 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7407 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7408 * i386-tdep.c (i386_gdbarch_init): Ditto.
7409 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7410 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7411 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7412 * mips-tdep.c (mips_gdbarch_init): Ditto.
7413 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7414 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7415 * s390-tdep.c (s390_gdbarch_init): Ditto.
7416 * sh-tdep.c (sh_gdbarch_init): Ditto.
7417 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7418 * v850-tdep.c (v850_gdbarch_init): Ditto.
7419 * vax-tdep.c (vax_gdbarch_init): Ditto.
7420 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7421
7422 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7423
7424 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7425
7426 2003-04-01 Andrew Cagney <cagney@redhat.com>
7427
7428 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7429 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7430 * gdbarch.h, gdbarch.c: Re-generate.
7431 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7432 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7433 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7434 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7435 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7436 * infcmd.c (run_stack_dummy): Simplify assuming
7437 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7438 * infrun.c (handle_inferior_event): Ditto.
7439 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7440 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7441 * arm-tdep.c (arm_gdbarch_init): Ditto.
7442 * avr-tdep.c (avr_gdbarch_init): Ditto.
7443 * cris-tdep.c (cris_gdbarch_init): Ditto.
7444 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7445 * frv-tdep.c (frv_gdbarch_init): Ditto.
7446 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7447 * i386-tdep.c (i386_gdbarch_init): Ditto.
7448 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7449 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7450 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7451 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7452 * mips-tdep.c (mips_gdbarch_init): Ditto.
7453 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7454 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7455 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7456 * s390-tdep.c (s390_gdbarch_init): Ditto.
7457 * sh-tdep.c (sh_gdbarch_init): Ditto.
7458 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7459 * v850-tdep.c (v850_gdbarch_init): Ditto.
7460 * vax-tdep.c (vax_gdbarch_init): Ditto.
7461 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7462
7463 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7464
7465 * symfile.c (symfile_relocate_debug_section): Update call to
7466 bfd_simple_get_relocated_section_contents.
7467
7468 2003-03-31 Andrew Cagney <cagney@redhat.com>
7469
7470 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7471 * gdbarch.h, gdbarch.c: Regenerate.
7472 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7473 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7474 available.
7475 * frame.h (generic_fix_call_dummy): Delete declaration.
7476 * dummy-frame.h: Update comment.
7477 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7478 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7479 fix_call_dummy.
7480 * sh-tdep.c (sh_gdbarch_init): Ditto.
7481 * s390-tdep.c (s390_gdbarch_init): Ditto.
7482 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7483 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7484 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7485 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7486 * i386-tdep.c (i386_gdbarch_init): Ditto.
7487 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7488 * frv-tdep.c (frv_gdbarch_init): Ditto.
7489 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7490 * cris-tdep.c (cris_gdbarch_init): Ditto.
7491 * avr-tdep.c (avr_gdbarch_init): Ditto.
7492 * arm-tdep.c (arm_gdbarch_init): Ditto.
7493
7494 2003-03-31 J. Brobecker <brobecker@gnat.com>
7495
7496 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7497 (INIT_FRAME_AP): Likewise.
7498 (EXTRA_FRAME_INFO): Likewise.
7499
7500 2003-03-31 Andrew Cagney <cagney@redhat.com>
7501
7502 * gdbarch.sh: Include "symfile.h".
7503 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7504 * gdbarch.h, gdbarch.c: Re-generate.
7505 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7506 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7507 call_dummy_address, the default is at entry_point_address.
7508 * v850-tdep.c (v850_gdbarch_init): Ditto.
7509 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7510 * sh-tdep.c (sh_gdbarch_init): Ditto.
7511 * s390-tdep.c (s390_gdbarch_init): Ditto.
7512 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7513 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7514 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7515 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7516 * i386-tdep.c (i386_gdbarch_init): Ditto.
7517 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7518 * frv-tdep.c (frv_gdbarch_init): Ditto.
7519 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7520 * cris-tdep.c (cris_gdbarch_init): Ditto.
7521 * arm-tdep.c (arm_gdbarch_init): Ditto.
7522
7523 2003-03-31 Andrew Cagney <cagney@redhat.com>
7524
7525 * gdbarch.sh (CALL_DUMMY_P): Delete.
7526 * gdbarch.h, gdbarch.c: Re-generate.
7527 * inferior.h (CALL_DUMMY_P): Delete macro.
7528 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7529 * vax-tdep.c (vax_gdbarch_init): Update.
7530 * v850-tdep.c (v850_gdbarch_init): Update.
7531 * sparc-tdep.c (sparc_gdbarch_init): Update.
7532 * sh-tdep.c (sh_gdbarch_init): Update.
7533 * s390-tdep.c (s390_gdbarch_init): Update.
7534 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7535 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7536 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7537 * mips-tdep.c (mips_gdbarch_init): Update.
7538 * mcore-tdep.c (mcore_gdbarch_init): Update.
7539 * m68k-tdep.c (m68k_gdbarch_init): Update.
7540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7541 * ia64-tdep.c (ia64_gdbarch_init): Update.
7542 * i386-tdep.c (i386_gdbarch_init): Update.
7543 * h8300-tdep.c (h8300_gdbarch_init): Update.
7544 * frv-tdep.c (frv_gdbarch_init): Update.
7545 * d10v-tdep.c (d10v_gdbarch_init): Update.
7546 * cris-tdep.c (cris_gdbarch_init): Update.
7547 * breakpoint.c (deprecated_frame_in_dummy): Update.
7548 * avr-tdep.c (avr_gdbarch_init): Update.
7549 * alpha-tdep.c (alpha_gdbarch_init): Update.
7550 * arm-tdep.c (arm_gdbarch_init): Update.
7551 * dummy-frame.c (dummy_frame_this_id): Update comments.
7552 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7553 * frame.c (legacy_get_prev_frame): Ditto.
7554 * valops.c (call_function_by_hand): Delete function.
7555 (hand_function_call): Rename to call_function_by_hand
7556
7557 2003-03-30 Andrew Cagney <cagney@redhat.com>
7558
7559 2002-11-10 Klee Dienes <kdienes@apple.com>
7560 * value.h (struct value): Update comment.
7561
7562 2003-03-30 Andrew Cagney <cagney@redhat.com>
7563
7564 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7565 D10V_FP_REGNUM.
7566 (d10v_gdbarch_init): Do not set fp_regnum.
7567
7568 * frame.c (get_frame_base): Force ID initialization.
7569 (get_prev_frame): Move computation of the frame ID from here ...
7570 (get_frame_id): ... to here.
7571 (legacy_get_prev_frame): Mark the frame ID as valid.
7572 * frame.h (struct frame_info): Add field "id_p".
7573
7574 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7575
7576 * i386-tdep.c (i386_store_struct_return): Removed.
7577 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7578
7579 2003-03-30 Andrew Cagney <cagney@redhat.com>
7580
7581 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7582 * gdbarch.h, gdbarch.c: Regenerate.
7583 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7584 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7585 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7586 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7587 * i386-tdep.c (i386_gdbarch_init): Ditto.
7588 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7589 * cris-tdep.c (cris_gdbarch_init): Ditto.
7590 * vax-tdep.c (vax_gdbarch_init): Ditto.
7591 * s390-tdep.c (s390_gdbarch_init): Ditto.
7592 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7593 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7594 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7595 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7596 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7597 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7598 * sparc-tdep.c (sparc_gdbarch_init): Update.
7599 * sh-tdep.c (sh_gdbarch_init): Update.
7600 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7601 * mips-tdep.c (mips_gdbarch_init): Update.
7602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7603 * ia64-tdep.c (ia64_gdbarch_init): Update.
7604 * frv-tdep.c (frv_gdbarch_init): Update.
7605 * avr-tdep.c (avr_gdbarch_init): Update.
7606 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7607 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7608 instead of when push_dummy_call is not available.
7609
7610 2003-03-30 Andrew Cagney <cagney@redhat.com>
7611
7612 * infttrace.c: Include "gdbthread.h".
7613 (parent_attach_all): Fix function signature.
7614 (call_ptrace): Update call.
7615 * Makefile.in (infttrace.o): Update dependencies.
7616
7617 2003-03-30 Andrew Cagney <cagney@redhat.com>
7618
7619 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7620 PUSH_RETURN_ADDRESS.
7621 * gdbarch.h, gdbarch.c: Regenerate.
7622 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7623 * x86-64-tdep.c (x86_64_init_abi): Update.
7624 * v850-tdep.c (v850_gdbarch_init): Update.
7625 * sparc-tdep.c (sparc_gdbarch_init): Update.
7626 * sh-tdep.c (sh_gdbarch_init): Update.
7627 * s390-tdep.c (s390_gdbarch_init): Update.
7628 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7629 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7630 * mips-tdep.c (mips_gdbarch_init): Update.
7631 * mcore-tdep.c (mcore_gdbarch_init): Update.
7632 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7633 * ia64-tdep.c (ia64_gdbarch_init): Update.
7634 * i386-tdep.c (i386_gdbarch_init): Update.
7635 * h8300-tdep.c (h8300_gdbarch_init): Update.
7636 * frv-tdep.c (frv_gdbarch_init): Update.
7637 * cris-tdep.c (cris_gdbarch_init): Update.
7638 * avr-tdep.c (avr_gdbarch_init): Update.
7639 * arm-tdep.c (arm_gdbarch_init): Update.
7640 * valops.c (hand_function_call): Update.
7641
7642 2003-03-29 Andrew Cagney <cagney@redhat.com>
7643
7644 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7645 sizeof_call_dummy_words.
7646 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7647 define.
7648 * gdbarch.h: Regenerate.
7649
7650 2003-03-29 Andrew Cagney <cagney@redhat.com>
7651
7652 * infttrace.h: New file.
7653 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7654 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7655 (hpread_read_doc_function_type): Detect an initialized type1.
7656 (hpread_quick_traverse): Initialize mod_name_string.
7657 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7658 (som_solib_get_solib_by_pc): Declare.
7659 (so_lib_thread_start_addr): Declare.
7660 (no_shared_libraries): Declare.
7661 * somread.c (init_import_symbols): Make static. Add forward
7662 declaration.
7663 * config/pa/nm-hppah.h: Include "infttrace.h" for
7664 parent_attach_all.
7665 (hppa_insert_hw_watchpoint): Declare.
7666 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7667 * hppah-nat.c: Include "gdb_string.h".
7668 (parent_attach_all): Delete extern declaration, moved to
7669 "infttrace.h".
7670 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7671 int.
7672 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7673 * Makefile.in (infttrace_h): Define.
7674 (hpread.o): Update dependencies.
7675 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7676 * hppa-hpux-tdep.c: Include "gdb_string.h".
7677 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7678 * infrun.c (handle_inferior_event): Always initialize
7679 stepped_after_stopped_by_watchpoint. Add default and remove
7680 fallthrough in switch statement.
7681 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7682 parameter to int.
7683 (hppa_remove_hw_watchpoint): Ditto.
7684
7685 2003-03-29 Andrew Cagney <cagney@redhat.com>
7686
7687 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7688 offset.
7689
7690 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7691
7692 * arm-tdep.c (arm_push_arguments): Delete.
7693 (struct stack_item): New type.
7694 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7695 (arm_store_struct_return): Delte.
7696 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7697 arm_push_arguments or arm_store_struct_return.
7698
7699 2003-03-28 Andrew Cagney <cagney@redhat.com>
7700
7701 * Makefile.in (d10v-tdep.o): Update dependencies.
7702 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7703 * d10v-tdep.c: Include "remote.h".
7704 (target_resume_hook): Delete extern declaration.
7705 (target_wait_loop_hook): Ditto.
7706 (tdisassemble_command): Eliminate assignment in "if" conditional.
7707 (d10v_ts2_register_sim_regno): Eliminate call to
7708 legacy_register_sim_regno.
7709 (d10v_ts3_register_sim_regno): Ditto.
7710
7711 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7712
7713 * thread.c: Reindented.
7714 * lin-lwp.c: Ditto.
7715 * linux-proc.c: Ditto.
7716
7717 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7718
7719 * MAINTAINERS (write after approval): Add myself.
7720
7721 2003-03-27 Theodore A. Roth <troth@openavr.org>
7722
7723 * objc-exp.y: Add missing semi-colons.
7724
7725 2003-03-27 Andrew Cagney <cagney@redhat.com>
7726
7727 * regcache.c (write_sp): Delete function and references.
7728 * inferior.h (write_sp): Delete declaration.
7729 * valops.c (hand_function_call): Replace write_sp with
7730 TARGET_WRITE_SP.
7731 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7732 (sparc_pop_frame): Ditto.
7733
7734 2003-03-27 Andrew Cagney <cagney@redhat.com>
7735
7736 * NEWS: Mention removal of support for hppa*-*-bsd* and
7737 hppa*-*-osf* natives, and hppa*-*-pro* target.
7738 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7739 * config/pa/xm-pa.h: Obsolete file.
7740 * config/pa/xm-hppab.h: Obsolete file.
7741 * config/pa/nm-hppab.h: Obsolete file.
7742 * config/pa/tm-hppab.h: Obsolete file.
7743 * config/pa/tm-hppao.h: Obsolete file.
7744 * config/pa/nm-hppao.h: Obsolete file.
7745 * config/pa/tm-pro.h: Obsolete file.
7746 * config/pa/hppaosf.mt: Obsolete file.
7747 * config/pa/hppaosf.mh: Obsolete file.
7748 * config/pa/hppapro.mt: Obsolete file.
7749 * config/pa/hppabsd.mt: Obsolete file.
7750 * config/pa/hppabsd.mh: Obsolete file.
7751 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7752 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7753 hppa*-*-osf*.
7754
7755 2003-03-27 Andrew Cagney <cagney@redhat.com>
7756
7757 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7758 push_arguments. Don't set push_return_address or write_sp.
7759 (d10v_push_dummy_call): Replace d10v_push_arguments.
7760 (d10v_push_return_address, d10v_write_sp): Delete function,
7761 handled by push_dummy_call.
7762
7763 2003-03-26 Andrew Cagney <cagney@redhat.com>
7764
7765 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7766 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7767 regcache and dummy_addr parameters.
7768 * gdbarch.h, gdbarch.c: Re-generate.
7769 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7770 available; assume it will handle stack alignment and return
7771 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7772 legacy_push_arguments.
7773 (legacy_push_arguments): Rename default_push_arguments.
7774 * value.h (legacy_push_arguments): Rename default_push_arguments.
7775 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7776 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7777 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7778 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7779 * config/i386/tm-symmetry.h: Update.
7780 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7781 * x86-64-tdep.c (x86_64_init_abi): Update.
7782 * v850-tdep.c (v850_gdbarch_init): Update.
7783 * sparc-tdep.c (sparc_gdbarch_init): Update.
7784 * sh-tdep.c (sh_gdbarch_init): Update.
7785 * s390-tdep.c (s390_gdbarch_init): Update.
7786 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7787 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7788 * mips-tdep.c (mips_gdbarch_init): Update.
7789 * mcore-tdep.c (mcore_gdbarch_init): Update.
7790 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7791 * ia64-tdep.c (ia64_gdbarch_init): Update.
7792 * i386-tdep.c (i386_gdbarch_init): Update.
7793 * hppa-tdep.c (hppa_gdbarch_init): Update.
7794 * h8300-tdep.c (h8300_gdbarch_init): Update.
7795 * frv-tdep.c (frv_gdbarch_init): Update.
7796 * d10v-tdep.c (d10v_gdbarch_init): Update.
7797 * cris-tdep.c (cris_gdbarch_init): Update.
7798 * avr-tdep.c (avr_gdbarch_init): Update.
7799 * arm-tdep.c (arm_gdbarch_init): Update.
7800 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7801 * alpha-tdep.c (alpha_gdbarch_init): Update.
7802
7803 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7804
7805 * signals/signals.c (do_target_signal_to_host): Correct realtime
7806 signal range test.
7807
7808 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7809
7810 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7811 (struct sal_chain, map_catch_names): Remove.
7812 (catch_exception_command_1): Don't call
7813 handle_gnu_4_16_catch_command.
7814
7815 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7816
7817 From Mark Dettinger <dettinge@de.ibm.com>:
7818 * dwarf2cfi.c (read_2u): Increment pointer by two.
7819
7820 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7821
7822 * signals/signals.c: Fix typos in last change.
7823
7824 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7825
7826 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7827 not already defined. Use __SIGRTMIN if available.
7828 (target_signal_from_host): Remove SIGRTMIN block.
7829 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7830 the signal is within the realtime range.
7831
7832 2003-03-25 Adam Fedor <fedor@gnu.org>
7833
7834 * Makefile.in (infrun.o): Add $(language_h)
7835 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7836 for language specific trampolines.
7837 * language.h (struct language_defn): Add skip_trampoline.
7838 (skip_language_trampoline): Declare.
7839 * language.c (unk_lang_trampoline, skip_language_trampoline):
7840 New functions.
7841 (unknown_language_defn, auto_language_defn, local_language_defn):
7842 Add ukn_lang_trampoline.
7843 * ada-lang.c (ada_language_defn): Add NULL for language
7844 specific skip_trampoline.
7845 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7846 scm-lang.c: Likewise.
7847 * objc-lang.c (objc_skip_trampoline): New function.
7848 (objc_language_defn): Add objc_skip_trampoline.
7849
7850 2003-03-25 Andrew Cagney <cagney@redhat.com>
7851
7852 * frame.c (get_prev_frame): Delay validating a frame's ID -
7853 non-NULL, didn't go backwards - until an attempt to unwind it to
7854 the previous frame.
7855
7856 2003-03-25 Andrew Cagney <cagney@redhat.com>
7857
7858 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7859 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7860 * gdbarch.h, gdbarch.c: Re-generate.
7861 * config/sparc/tm-sparc.h
7862 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7863 * sparc-tdep.c (sparc_gdbarch_init): Set
7864 deprecated_extra_stack_alignment_needed.
7865 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7866 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7867 extra_stack_alignment_needed.
7868 * v850-tdep.c (v850_gdbarch_init): Ditto.
7869 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7870 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7871 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7872 * cris-tdep.c (cris_gdbarch_init): Ditto.
7873 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7874 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7875
7876 2003-03-25 Andrew Cagney <cagney@redhat.com>
7877
7878 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7879 STORE_STRUCT_RETURN.
7880 * gdbarch.h, gdbarch.c: Regenerate.
7881 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7882 (d10v_push_arguments): Set the struct return register.
7883 (d10v_gdbarch_init): Update.
7884 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7885 * x86-64-tdep.c (x86_64_init_abi): Update.
7886 * vax-tdep.c (vax_gdbarch_init): Update.
7887 * v850-tdep.c (v850_gdbarch_init): Update.
7888 * sparc-tdep.c (sparc_gdbarch_init): Update.
7889 * sh-tdep.c (sh_gdbarch_init): Update.
7890 * s390-tdep.c (s390_gdbarch_init): Update.
7891 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7892 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7893 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7894 * mips-tdep.c (mips_gdbarch_init): Update.
7895 * mcore-tdep.c (mcore_gdbarch_init): Update.
7896 * m68k-tdep.c (m68k_gdbarch_init): Update.
7897 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7898 * ia64-tdep.c (ia64_gdbarch_init): Update.
7899 * i386-tdep.c (i386_gdbarch_init): Update.
7900 * hppa-tdep.c (hppa_gdbarch_init): Update.
7901 * h8300-tdep.c (h8300_gdbarch_init): Update.
7902 * frv-tdep.c (frv_gdbarch_init): Update.
7903 * cris-tdep.c (cris_gdbarch_init): Update.
7904 * avr-tdep.c (avr_gdbarch_init): Update.
7905 * arm-tdep.c (arm_gdbarch_init): Update.
7906 * alpha-tdep.c (alpha_gdbarch_init): Update.
7907
7908 2003-03-25 Andrew Cagney <cagney@redhat.com>
7909
7910 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7911 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7912 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7913 * gdbarch.h, gdbarch.c: Regenerate.
7914 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7915 call_dummy_stack_adjust_p.
7916 * vax-tdep.c (vax_gdbarch_init): Ditto.
7917 * v850-tdep.c (v850_gdbarch_init): Ditto.
7918 * sh-tdep.c (sh_gdbarch_init): Ditto.
7919 * s390-tdep.c (s390_gdbarch_init): Ditto.
7920 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7921 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7922 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7923 * mips-tdep.c (mips_gdbarch_init): Ditto.
7924 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7925 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7926 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7927 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7928 * i386-tdep.c (i386_gdbarch_init): Ditto.
7929 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7930 * frv-tdep.c (frv_gdbarch_init): Ditto.
7931 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7932 * cris-tdep.c (cris_gdbarch_init): Ditto.
7933 * avr-tdep.c (avr_gdbarch_init): Ditto.
7934 * arm-tdep.c (arm_gdbarch_init): Ditto.
7935 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7936 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7937 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7938 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7939 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7940 call_dummy_stack_adjust_p.
7941 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7942 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7943 * sparc-tdep.c (sparc32_push_arguments): Update.
7944 * valops.c (hand_function_call): Update.
7945
7946 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7947
7948 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7949 set_gdbarch_char_signed.
7950
7951 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7952
7953 PR cli/548
7954 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7955
7956 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7957
7958 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7959 (_initialize_arm_tdep): Don't set tm_print_insn.
7960
7961 2003-03-24 Adam Fedor <fedor@gnu.org>
7962
7963 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7964 * objc-lang.h: Add multiple inclusion protection.
7965 (start_msglist, add_msglist, end_msglist): Additional declarations.
7966
7967 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7968
7969 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7970 value was renamed to ARM_FLOAT_SOFT_FPA.
7971
7972 2003-03-23 Andrew Cagney <cagney@redhat.com>
7973
7974 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7975 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7976 * gdbarch.h, gdbarch.c: Regenerate.
7977 * valops.c (hand_function_call): Update.
7978 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7979 * frame.c (legacy_saved_regs_this_id): Update.
7980 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7981 * dummy-frame.h: Update.
7982 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7983 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7984 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7985 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7986 * config/m68k/tm-sun3.h: Update.
7987 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7988 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7989 * x86-64-tdep.c (x86_64_init_abi): Update.
7990 * vax-tdep.c (vax_gdbarch_init): Update.
7991 * v850-tdep.c (v850_gdbarch_init): Update.
7992 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7993 * sh-tdep.c (sh_gdbarch_init): Update.
7994 * s390-tdep.c (s390_gdbarch_init): Update.
7995 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7996 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7997 (frame_get_saved_regs): Update.
7998 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7999 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8000 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8001 * mips-tdep.c (mips_gdbarch_init): Update.
8002 * mcore-tdep.c (mcore_gdbarch_init): Update.
8003 * m68k-tdep.c (m68k_gdbarch_init): Update.
8004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8005 * ia64-tdep.c (ia64_gdbarch_init): Update.
8006 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8007 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8008 (i386_interix_back_one_frame): Update.
8009 * hppa-tdep.c (hppa_gdbarch_init): Update.
8010 (hppa_init_extra_frame_info): Update.
8011 * h8300-tdep.c (h8300_gdbarch_init): Update.
8012 * frv-tdep.c (frv_gdbarch_init): Update.
8013 * cris-tdep.c (cris_gdbarch_init): Update.
8014 * avr-tdep.c (avr_gdbarch_init): Update.
8015 * arm-tdep.c (arm_gdbarch_init): Update.
8016 * alpha-tdep.c (alpha_gdbarch_init): Update.
8017
8018 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8019
8020 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8021 (arm_get_fp_model): Declare.
8022 * arm-tdep.c (fp_model_strings): New string array.
8023 (arm_fp_model, current_fp_model): New variables.
8024 (arm_get_fp_model): New function.
8025 (arm_set_fp): New function.
8026 (set_fp_model_sfunc): New function.
8027 (show_fp_model): New function.
8028 (_initialize_arm_tdep): Add new command to set/show the FPU.
8029 (arm_extract_return_value): Use arm_get_fp_model.
8030 (arm_store_return_value): Likewise.
8031 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8032 to initialize the floating-point data types.
8033 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8034 model is FPA.
8035
8036 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8037
8038 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8039 the current setting of each value.
8040 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8041 new_set and new_show. Use add_setshow_cmd_full and
8042 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8043 commands and add new version as subcommands of "set/show arm".
8044
8045 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8046
8047 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8048 (set_arm_command, show_arm_command): New functions.
8049 (_initialize_arm_tdep): Add them.
8050 (num_disassembly_options): Renamed from num_flavor_options.
8051 (valid_disassembly_styles): Renamed from valid_flavors.
8052 (disassembly_style): Renamed from disassembly_flavor.
8053 (set_disassembly_style_sfunc): Renamed from
8054 set_disassembly_flavor_sfunc.
8055 (set_disassembly_style): Renamed from set_disassembly_flavor.
8056 (arm_othernames): Updated.
8057 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8058 command. Add "set/show arm disassembly" commands. Deprecate
8059 "othernames" command.
8060
8061 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8062
8063 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8064 (arm-tdep.o): Depend on elf_arm_h.
8065
8066 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8067
8068 * Makefile.in (coff_internal_h): Define.
8069 (arm-tdep.o): Update dependencies.
8070
8071 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8072
8073 * arm-tdep.c (prologue_cache): Delete.
8074 (check_prologue_cache, save_prologue_cache): Delete.
8075 (arm_scan_prologue): Don't check or update the prologue_cache.
8076 (arm_gdb_arch_init): Don't initialize it.
8077 (_initialize_arm_tdep): Likewise.
8078
8079 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8080
8081 * MAINTAINERS (tui): Maintainer of tui code.
8082
8083 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8084
8085 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8086 (i386-cygwin-tdep.o): Add dependencies.
8087 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8088 * i386-cygwin-tdep.c: New file.
8089 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8090 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8091
8092 2003-03-20 Andrew Cagney <cagney@redhat.com>
8093
8094 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8095 (handle_inferior_event): Remove code calling
8096 DYNAMIC_TRAMPOLINE_NEXTPC.
8097
8098 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8099 already has a full path.
8100
8101 * main.c (gdb_main): Return 1.
8102 (captured_main): Call error to report an invalid interpreter.
8103
8104 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8105 * alpha-osf1-tdep.c: Include "gdb_string.h".
8106
8107 2003-03-19 J. Brobecker <brobecker@gnat.com>
8108
8109 Continuing work to convert the hppa targets to multiarch partial.
8110
8111 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8112 method, now that hppa_push_dummy_frame has a conformant prototype.
8113 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8114 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8115 for the switch to multiarch partial.
8116
8117 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8118
8119 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8120 when iss is issNull.
8121
8122 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8123
8124 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8125 NUM_REGS bounds check.
8126
8127 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8128
8129 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8130 * mips-tdep.c (gdb_assert.h): Include.
8131 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8132 (mips_register_name): Handle integer registers explicitly. Add
8133 bounds checking.
8134 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8135 (mips_lsi33k_reg_names): Don't list integer registers; they're
8136 handled by mips_register_name() now.
8137 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8138 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8139 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8140 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8141 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8142
8143 2003-03-18 Andrew Cagney <cagney@redhat.com>
8144
8145 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8146 a void pointer.
8147 * gdbtypes.h (print_scalar_formatted): Update declaration.
8148 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8149
8150 2003-03-18 J. Brobecker <brobecker@gnat.com>
8151
8152 * infrun.c (observer.h): Add #include.
8153 (normal_stop): Add call to observer_notify_normal_stop.
8154 * Makefile.in (infrun.o): Add dependency on observer.h.
8155
8156 2003-03-18 J. Brobecker <brobecker@gnat.com>
8157
8158 Continuing work to convert the hppa targets to multiarch partial.
8159 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8160 parameter. Reformat comment.
8161 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8162 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8163 to match new profile.
8164
8165 2003-03-18 J. Brobecker <brobecker@gnat.com>
8166
8167 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8168 appear to be working in any case.
8169
8170 2003-03-18 J. Brobecker <brobecker@gnat.com>
8171
8172 * observer.c (observer_test_first_observer): New static variable.
8173 (observer_test_second_observer): Likewise.
8174 (observer_test_third_observer): Likewise.
8175 (observer_test_first_notification_function): New static function.
8176 (observer_test_second_notification_function): Likewise.
8177 (observer_test_third_notification_function): Likewise.
8178
8179 2003-03-17 J. Brobecker <brobecker@gnat.com>
8180
8181 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8182 * somsolib.c (gdb_assert.h): Likewise.
8183 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8184 (somsolib.o): Likewise.
8185
8186 2003-03-17 Andrew Cagney <cagney@redhat.com>
8187
8188 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8189 BFD. Simplify setting of di.endian.
8190
8191 2003-03-17 Andrew Cagney <cagney@redhat.com>
8192
8193 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8194 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8195
8196 From Elena Zannoni <ezannoni@redhat.com>
8197 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8198 vector and floating-point parameters.
8199 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8200 convention.
8201 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8202
8203 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8204
8205 * MAINTAINERS: Remove my name from several maintainership roles.
8206
8207 2003-03-17 Andrew Cagney <cagney@redhat.com>
8208
8209 Fix frame off-by-one bug.
8210 * frame-unwind.h (frame_this_id_ftype): Replace
8211 frame_unwind_id_ftype.
8212 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8213 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8214 with "prev_register".
8215 * frame-unwind.c (frame_unwind_find_by_pc): Return
8216 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8217 comment.
8218 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8219 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8220 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8221 (dummy_frame_unwind): Update.
8222 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8223 sentinel_frame_register_unwind.
8224 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8225 (sentinel_frame_unwinder): Update.
8226 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8227 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8228 * frame.c (create_sentinel_frame): Update. Initialize
8229 "prologue_cache" instead of "unwind_cache".
8230 (frame_register_unwind): Call this frame's prev_register with the
8231 next frame and this frame's prologue cache.
8232 (get_prev_frame): Simplify. Always call prev frame's this_id with
8233 this frame and prev frame's prologue cache. Document that this
8234 call is shifted one to the left when compared to the
8235 frame_register_unwind call.
8236 (legacy_saved_regs_prev_register): Replace
8237 frame_saved_regs_register_unwind.
8238 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8239 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8240 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8241 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8242 (d10v_frame_unwind): Update.
8243 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8244 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8245 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8246 "saved_regs" with "this_saved_regs".
8247
8248 2003-03-16 Andrew Cagney <cagney@redhat.com>
8249
8250 * frame.c (frame_pop): Don't call target_store_registers. Fix
8251 problem reported by Mark Kettenis.
8252
8253 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8254
8255 * i386-tdep.c (i386_register_type): Renamed from
8256 i386_register_virtual_type. Adjust function signature.
8257 (i386_gdbarch_init): Set register_type instead of
8258 deprecated_max_register_raw_size,
8259 deprecated_max_register_virtual_size and register_virtual_type.
8260
8261 2003-03-14 Andrew Cagney <cagney@redhat.com>
8262
8263 * frame.c (get_prev_frame): When a legacy frame, always call
8264 legacy_get_prev_frame. Simplify unwind code using assumption that
8265 the unwinder is new.
8266 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8267 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8268 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8269
8270 2003-03-14 Andrew Cagney <cagney@redhat.com>
8271
8272 * frame.c (get_saved_register): Delete function.
8273 * frame.h (get_saved_register): Delete declaration.
8274 * xstormy16-tdep.c: Update comment.
8275 * regcache.h: Update comments.
8276 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8277 get_saved_register and extract_address, use
8278 frame_read_unsigned_register.
8279 (sparc_frame_saved_pc): Ditto.
8280 (sparc_get_saved_register): Instead of get_saved_register, use
8281 frame_register.
8282 (sparc_pop_frame): Ditto.
8283 * findvar.c: Update comments.
8284 (value_of_register): Call frame_register instead of
8285 get_saved_register.
8286 (value_from_register): Ditto.
8287 * config/sparc/tm-sparc.h: Update comment.
8288 * breakpoint.c: Update comment.
8289
8290 2003-03-14 Andrew Cagney <cagney@redhat.com>
8291
8292 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8293 GET_SAVED_REGISTER.
8294 * gdbarch.h, gdbarch.c: Re-generate.
8295 * frame.h: Update comments.
8296 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8297 * x86-64-tdep.c (x86_64_init_abi): Update.
8298 * sparc-tdep.c (sparc_gdbarch_init): Update.
8299 * sh-tdep.c (sh_gdbarch_init): Update.
8300 * mips-tdep.c (mips_gdbarch_init): Update.
8301 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8302 * cris-tdep.c (cris_gdbarch_init): Update.
8303 * ia64-tdep.c (ia64_gdbarch_init): Update.
8304 * frame.c (frame_register): Update.
8305 (get_saved_register): Update.
8306 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8307
8308 2003-03-13 Andrew Cagney <cagney@redhat.com>
8309
8310 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8311 * gdbarch.h, gdbarch.c: Regenerate.
8312 * valops.c (hand_function_call): Update comment.
8313 * stack.c (return_command): Update comment.
8314 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8315 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8316 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8317 * x86-64-tdep.c (x86_64_init_abi): Update.
8318 * vax-tdep.c (vax_gdbarch_init): Update.
8319 * v850-tdep.c (v850_gdbarch_init): Update.
8320 * sparc-tdep.c (sparc_gdbarch_init): Update.
8321 * sh-tdep.c (sh_gdbarch_init): Update.
8322 * s390-tdep.c (s390_gdbarch_init): Update.
8323 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8324 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8325 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8326 * mips-tdep.c (mips_gdbarch_init): Update.
8327 * mcore-tdep.c (mcore_gdbarch_init): Update.
8328 * m68k-tdep.c (m68k_gdbarch_init): Update.
8329 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8330 * ia64-tdep.c (ia64_gdbarch_init): Update.
8331 * i386-tdep.c (i386_gdbarch_init): Update.
8332 * hppa-tdep.c (hppa_gdbarch_init): Update.
8333 * h8300-tdep.c (h8300_gdbarch_init): Update.
8334 * frv-tdep.c (frv_gdbarch_init): Update.
8335 * cris-tdep.c (cris_gdbarch_init): Update.
8336 * avr-tdep.c (avr_gdbarch_init): Update.
8337 * arm-tdep.c (arm_gdbarch_init): Update.
8338 * alpha-tdep.c (alpha_gdbarch_init): Update.
8339
8340 2003-03-13 Andrew Cagney <cagney@redhat.com>
8341
8342 * frame.c (legacy_frame_p): New function.
8343 (get_prev_frame): Use legacy_frame_p.
8344 * frame.h (legacy_frame_p): Declare.
8345
8346 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8347
8348 * MAINTAINERS (write after approval): Alphabetically
8349 listing corrected.
8350
8351 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8352
8353 * MAINTAINERS (write after approval): Add myself.
8354
8355 2003-03-12 Andrew Cagney <cagney@redhat.com>
8356
8357 * frame.c (get_prev_frame): Rename the frame parameter to
8358 "this_frame".
8359 (get_next_frame, legacy_get_prev_frame): Ditto.
8360
8361 2003-03-12 Andrew Cagney <cagney@redhat.com>
8362
8363 * frame.c (get_current_frame): Check target_has_registers before
8364 checking target_has_stack.
8365 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8366 instead of deprecated_selected_frame.
8367 * findvar.c (value_of_register): Pass "frame", not
8368 deprecated_selected_frame, to value_of_builtin_reg.
8369
8370 2003-03-12 Andrew Cagney <cagney@redhat.com>
8371
8372 * regcache.c (regcache_cooked_write_signed): New function.
8373 (regcache_cooked_write_unsigned): New function.
8374 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8375 (regcache_cooked_read_signed): Fix regnum in range assertion.
8376 * regcache.h (regcache_cooked_write_signed): Declare.
8377 (regcache_cooked_write_unsigned): Declare.
8378
8379 2003-03-12 Andrew Cagney <cagney@redhat.com>
8380
8381 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8382 * gdbarch.h, gdbarch.c: Re-generate.
8383 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8384 * x86-64-tdep.h: Update.
8385 * x86-64-tdep.c (x86_64_init_abi): Update.
8386 * v850-tdep.c (v850_gdbarch_init): Update.
8387 * sparc-tdep.c (sparc_gdbarch_init): Update.
8388 * sh-tdep.c (sh_gdbarch_init): Update.
8389 * s390-tdep.c (s390_gdbarch_init): Update.
8390 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8391 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8392 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8393 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8394 * mips-tdep.c (mips_gdbarch_init): Update.
8395 * mcore-tdep.c (mcore_gdbarch_init): Update.
8396 * m68k-tdep.c (m68k_gdbarch_init): Update.
8397 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8398 * ia64-tdep.c (ia64_gdbarch_init): Update.
8399 * i386-tdep.c (i386_gdbarch_init): Update.
8400 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8401 * hppa-tdep.c (hppa_gdbarch_init): Update.
8402 * h8300-tdep.c (h8300_gdbarch_init): Update.
8403 * frv-tdep.c (frv_gdbarch_init): Update.
8404 * cris-tdep.c (cris_gdbarch_init): Update.
8405 * avr-tdep.c (avr_gdbarch_init): Update.
8406 * arm-tdep.c (arm_gdbarch_init): Update.
8407 * alpha-tdep.c (alpha_gdbarch_init): Update.
8408 * sh-tdep.c (sh_init_extra_frame_info): Update.
8409 (sh64_init_extra_frame_info): Update.
8410 * ns32knbsd-nat.c (frame_num_args): Update.
8411 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8412 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8413 (xstormy16_frame_chain_valid): Update.
8414 * vax-tdep.c (vax_saved_pc_after_call): Update.
8415 * v850-tdep.c (v850_frame_chain): Update.
8416 (v850_pop_frame): Update.
8417 (v850_init_extra_frame_info): Update.
8418 * sparc-tdep.c (setup_arbitrary_frame): Update.
8419 * ns32k-tdep.c (umax_frame_num_args): Update.
8420 * s390-tdep.c (s390_pop_frame_regular): Update.
8421 * mn10300-tdep.c (mn10300_frame_chain): Update.
8422 (mn10300_pop_frame_regular): Update.
8423 (mn10300_init_extra_frame_info): Update.
8424 * mips-tdep.c (mips_init_frame_pc_first): Update.
8425 (mips_frame_chain): Update.
8426 (mips_pop_frame): Update.
8427 * mcore-tdep.c (mcore_frame_chain): Update.
8428 (mcore_pop_frame): Update.
8429 (mcore_init_extra_frame_info): Update.
8430 * arch-utils.c (init_frame_pc_default): Update.
8431 * m68k-tdep.c (isi_frame_num_args): Update.
8432 (delta68_frame_num_args): Update.
8433 (news_frame_num_args): Update.
8434 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8435 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8436 (alpha_frame_chain): Update.
8437 (alpha_pop_frame): Update.
8438 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8439 (hppa_init_extra_frame_info): Update.
8440 (hppa_frame_chain): Update.
8441 (hppa_frame_chain_valid): Update.
8442 * cris-tdep.c (cris_init_extra_frame_info): Update.
8443 * avr-tdep.c (avr_init_extra_frame_info): Update.
8444 * arm-tdep.c (arm_frame_chain_valid): Update.
8445 (arm_init_extra_frame_info): Update.
8446 (arm_pop_frame): Update.
8447 * frame.c (frame_pc_unwind): Update.
8448 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8449 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8450 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8451 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8452 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8453 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8454
8455 2003-03-12 Andrew Cagney <cagney@redhat.com>
8456
8457 Eliminate the need for POP_FRAME.
8458 * frame.c (do_frame_unwind_register): New function.
8459 (frame_pop): When no POP_FRAME, pop the frame using register
8460 unwind and a scratch regcache.
8461 (frame_saved_regs_pop): Delete function.
8462 (trad_frame_unwinder): Update.
8463 * d10v-tdep.c (d10v_frame_pop): Delete function.
8464 (d10v_frame_unwind): Update.
8465 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8466 (sentinel_frame_unwinder): Update.
8467 * dummy-frame.c (dummy_frame_pop): Delete function.
8468 (dummy_frame_unwind): Update.
8469 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8470 (struct frame_unwind): Update.
8471
8472 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8473
8474 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8475 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8476 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8477 Do range checks on register number obtained from debugging info.
8478 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8479 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8480 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8481 mapping function.
8482 (do_fp_register_row): Fix typo which caused double type to be
8483 used when attempting to unpack a float.
8484
8485 2003-03-11 J. Brobecker <brobecker@gnat.com>
8486
8487 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8488
8489 2003-03-11 Andrew Cagney <cagney@redhat.com>
8490
8491 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8492 frame. Problem found by Corinna Vinschen.
8493
8494 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8495
8496 * doublest.c (floatformat_from_length): Accept also
8497 the real size of 'long double' type.
8498
8499 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8500
8501 From Klee Dienes <kdienes@apple.com>:
8502 * breakpoint.c (bpstat_copy): Copy the command lines as well
8503 as the old value, to match what is freed in bpstat_clear.
8504
8505 2003-03-10 David Carlton <carlton@math.stanford.edu>
8506
8507 * minsyms.c (add_minsym_to_hash_table): Replace
8508 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8509 (compare_minimal_symbols, compact_minimal_symbols)
8510 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8511 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8512 of DEPRECATED_SYMBOL_MATCHES_NAME.
8513 (lookup_minimal_symbol_solib_trampoline): Ditto.
8514
8515 2003-03-10 Andrew Cagney <cagney@redhat.com>
8516
8517 * regcache.h (regcache_cooked_read_ftype): Define.
8518 (regcache_save, regcache_restore): Add a cooked_read parameter.
8519 * regcache.c (regcache_save, regcache_restore): Update.
8520 (do_cooked_read): New function.
8521 (regcache_cpy): Pass do_cooked_read to regcache_save and
8522 regcache_restore.
8523
8524 2003-03-10 Andrew Cagney <cagney@redhat.com>
8525
8526 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8527 * gdbarch.h, gdbarch.c: Re-generate.
8528 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8529 * x86-64-tdep.h: Update.
8530 * x86-64-tdep.c (x86_64_init_abi): Update.
8531 * v850-tdep.c (v850_gdbarch_init): Update.
8532 * sparc-tdep.c (sparc_gdbarch_init): Update.
8533 * sh-tdep.c (sh_gdbarch_init): Update.
8534 * s390-tdep.c (s390_gdbarch_init): Update.
8535 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8536 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8537 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8538 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8539 * mips-tdep.c (mips_gdbarch_init): Update.
8540 * mcore-tdep.c (mcore_gdbarch_init): Update.
8541 * m68k-tdep.c (m68k_gdbarch_init): Update.
8542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8543 * ia64-tdep.c (ia64_gdbarch_init): Update.
8544 * i386-tdep.c (i386_gdbarch_init): Update.
8545 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8546 * hppa-tdep.c (hppa_gdbarch_init): Update.
8547 * h8300-tdep.c (h8300_gdbarch_init): Update.
8548 * frv-tdep.c (frv_gdbarch_init): Update.
8549 * cris-tdep.c (cris_gdbarch_init): Update.
8550 * avr-tdep.c (avr_gdbarch_init): Update.
8551 * arm-tdep.c (arm_gdbarch_init): Update.
8552 * alpha-tdep.c (alpha_gdbarch_init): Update.
8553 * sh-tdep.c (sh_init_extra_frame_info): Update.
8554 (sh64_init_extra_frame_info): Update.
8555 * ns32knbsd-nat.c (frame_num_args): Update.
8556 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8557 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8558 (xstormy16_frame_chain_valid): Update.
8559 * vax-tdep.c (vax_saved_pc_after_call): Update.
8560 * v850-tdep.c (v850_frame_chain): Update.
8561 (v850_pop_frame): Update.
8562 (v850_init_extra_frame_info): Update.
8563 * sparc-tdep.c (setup_arbitrary_frame): Update.
8564 * ns32k-tdep.c (umax_frame_num_args): Update.
8565 * s390-tdep.c (s390_pop_frame_regular): Update.
8566 * mn10300-tdep.c (mn10300_frame_chain): Update.
8567 (mn10300_pop_frame_regular): Update.
8568 (mn10300_init_extra_frame_info): Update.
8569 * mips-tdep.c (mips_init_frame_pc_first): Update.
8570 (mips_frame_chain): Update.
8571 (mips_pop_frame): Update.
8572 * mcore-tdep.c (mcore_frame_chain): Update.
8573 (mcore_pop_frame): Update.
8574 (mcore_init_extra_frame_info): Update.
8575 * arch-utils.c (init_frame_pc_default): Update.
8576 * m68k-tdep.c (isi_frame_num_args): Update.
8577 (delta68_frame_num_args): Update.
8578 (news_frame_num_args): Update.
8579 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8580 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8581 (alpha_frame_chain): Update.
8582 (alpha_pop_frame): Update.
8583 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8584 (hppa_init_extra_frame_info): Update.
8585 (hppa_frame_chain): Update.
8586 (hppa_frame_chain_valid): Update.
8587 * cris-tdep.c (cris_init_extra_frame_info): Update.
8588 * avr-tdep.c (avr_init_extra_frame_info): Update.
8589 * arm-tdep.c (arm_frame_chain_valid): Update.
8590 (arm_init_extra_frame_info): Update.
8591 (arm_pop_frame): Update.
8592 * frame.c (frame_pc_unwind): Update.
8593 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8594 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8595 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8596 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8597 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8598 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8599
8600 2003-03-10 Andrew Cagney <cagney@redhat.com>
8601
8602 * gdbarch.sh (gdbarch_unwind_pc): New method.
8603 * gdbarch.h, gdbarch.c: Regenerate.
8604 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8605 but use read_pc and FRAME_SAVED_PC as fall backs.
8606 (frame_saved_regs_pc_unwind): Delete function.
8607 (trad_frame_unwinder): Update.
8608 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8609 (struct frame_unwind): Update.
8610 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8611 (dummy_frame_unwind): Update.
8612 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8613 (sentinel_frame_unwinder): Update.
8614 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8615 (d10v_frame_unwind): Update.
8616 (d10v_unwind_pc): New function.
8617 (d10v_gdbarch_init): Set unwind_pc.
8618
8619 2003-03-10 Andrew Cagney <cagney@redhat.com>
8620
8621 * gdbarch.h: Re-generate.
8622
8623 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8624 PC.
8625 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8626 the PC register.
8627
8628 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8629
8630 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8631
8632 2003-03-08 Andrew Cagney <cagney@redhat.com>
8633
8634 * cli-out.c: Update copyright.
8635 (cli_out_data): Define typedef. Use instead of ui_out_data.
8636
8637 2003-03-08 Andrew Cagney <cagney@redhat.com>
8638
8639 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8640 the result.
8641
8642 2003-03-07 Andrew Cagney <cagney@redhat.com>
8643
8644 * gdbarch.sh: Don't generate two macro definitions when an
8645 undefined macro taking no arguments.
8646 * gdbarch.h: Regenerate.
8647
8648 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8649
8650 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8651 (x86_64_unwind_dummy_id): New functions.
8652 (x86_64_init_abi): Register these two new functions.
8653
8654 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8655
8656 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8657 (x86_64_skip_prologue): Move prologue detection to
8658 separate function.
8659 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8660
8661 2003-03-05 Andrew Cagney <cagney@redhat.com>
8662
8663 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8664 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8665 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8666 to use unwind_dummy_id when a dummy frame.
8667 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8668 predicate.
8669 * gdbarch.h, gdbarch.c: Regneerate.
8670
8671 2003-03-05 Andrew Cagney <cagney@redhat.com>
8672
8673 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8674 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8675 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8676 values.
8677
8678 2003-03-05 Andrew Cagney <cagney@redhat.com>
8679
8680 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8681 (struct d10v_unwind_cache): Delete field "frameless". Replace
8682 "next_addr" with "sp_offset". Add "r11_offset".
8683 (d10v_frame_unwind_cache): Update.
8684 (prologue_find_regs): Update. When "mv r11, sp", save the
8685 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8686 RN was saved in r11_offset.
8687
8688 2003-03-05 Andrew Cagney <cagney@redhat.com>
8689
8690 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8691 cached PC value in the next frame.
8692
8693 2003-03-05 Andrew Cagney <cagney@redhat.com>
8694
8695 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8696 "id_unwind_cache" with "id".
8697 (frame_id_unwind): Delete declaration.
8698 * frame.c (frame_id_unwind): Delete function.
8699 (get_prev_frame): Call the frame id unwind method directly. Store
8700 the returned next frame's ID value in NEXT_FRAME. Note that there
8701 is a problem with the wrong unwind ID being called with the wrong
8702 unwind cache.
8703
8704 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8705
8706 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8707
8708 2003-03-05 James Ingham <jingham@apple.com>
8709 Daniel Jacobowitz <drow@mvista.com>
8710
8711 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8712 (auto_cp_abi): New variable.
8713 (current_cp_abi, num_cp_abis): Make static.
8714 (CP_ABI_MAX): Define.
8715 (cp_abis): Turn into an array.
8716 (value_virtual_fn_field): Fix formatting.
8717 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8718 takes a pointer.
8719 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8720 (list_cp_abis, _initialize_cp_abi): New functions.
8721 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8722 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8723 switch_to_cp_abi. Update prototype for register_cp_abi.
8724 * Makefile.in (cp-abi.o): Update dependencies.
8725 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8726 instead of switch_to_cp_abi.
8727 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8728 register_cp_abi.
8729 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8730 register_cp_abi.
8731 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8732
8733 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8734
8735 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8736 * dwarf2loc.c: Include "regcache.h".
8737 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8738 register_size.
8739 * Makefile.in (dwarf2loc.o): Update dependencies.
8740
8741 2003-03-04 Theodore A. Roth <troth@openavr.org>
8742
8743 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8744 number of io registers reported by remote target is not a multiple of
8745 step.
8746
8747 2003-03-04 David Carlton <carlton@math.stanford.edu>
8748
8749 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8750 (lookup_symbol_aux_psymtabs): Update call to
8751 lookup_partial_symbol.
8752 (lookup_transparent_type, find_main_psymtab)
8753 (make_symbol_overload_list): Ditto.
8754
8755 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8756
8757 * MAINTAINERS (Write after approval): Update my email address.
8758
8759 2003-03-03 Andrew Cagney <cagney@redhat.com>
8760
8761 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8762 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8763 predicate. Replace MAX_REGISTER_RAW_SIZE.
8764 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8765 MAX_REGISTER_VIRTUAL_SIZE.
8766 * regcache.c (legacy_max_register_raw_size): New function.
8767 (legacy_max_register_virtual_size): New function.
8768 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8769 (MAX_REGISTER_RAW_SIZE): Define.
8770 (legacy_max_register_raw_size): Declare.
8771 (legacy_max_register_virtual_size): Declare.
8772 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8773 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8774 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8775 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8776 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8777 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8778 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8779 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8780 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8781 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8782 * vax-tdep.c (vax_gdbarch_init): Update.
8783 * v850-tdep.c (v850_gdbarch_init): Update.
8784 * sparc-tdep.c (sparc_gdbarch_init): Update.
8785 * sh-tdep.c (sh_gdbarch_init): Update.
8786 * s390-tdep.c (s390_gdbarch_init): Update.
8787 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8788 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8789 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8790 * mips-tdep.c (mips_gdbarch_init): Update.
8791 * mcore-tdep.c (mcore_gdbarch_init): Update.
8792 * m68k-tdep.c (m68k_gdbarch_init): Update.
8793 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8794 * ia64-tdep.c (ia64_gdbarch_init): Update.
8795 * i386-tdep.c (i386_gdbarch_init): Update.
8796 * hppa-tdep.c (hppa_gdbarch_init): Update.
8797 * h8300-tdep.c (h8300_gdbarch_init): Update.
8798 * frv-tdep.c (frv_gdbarch_init): Update.
8799 * cris-tdep.c (cris_gdbarch_init): Update.
8800 * avr-tdep.c (avr_gdbarch_init): Update.
8801 * arm-tdep.c (arm_gdbarch_init): Update.
8802 * alpha-tdep.c (alpha_gdbarch_init): Update.
8803 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8804 max_register_raw_size or max_register_virtual_size.
8805
8806 2003-03-03 David Carlton <carlton@math.stanford.edu>
8807
8808 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8809 SYMBOL_MATCHES_NAME, add comment.
8810 (SYMBOL_MATCHES_NATURAL_NAME): New.
8811 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8812 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8813 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8814 * symtab.c (lookup_partial_symbol): Use
8815 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8816 unhelpful comment.
8817 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8818 SYMBOL_MATCHES_NAME.
8819 Fix for PR c++/33.
8820
8821 2003-03-03 David Carlton <carlton@math.stanford.edu>
8822
8823 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8824 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8825 by regexp matching against SYMBOL_NATURAL_NAME.
8826
8827 2003-03-03 David Carlton <carlton@math.stanford.edu>
8828
8829 * linespec.c (find_method): Extract code into collect_methods.
8830 (collect_methods): New.
8831
8832 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8833
8834 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8835 get_frame_base.
8836
8837 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8838 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8839
8840 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8841
8842 * arch-utils.c (generic_register_byte): Fix to use the loop index
8843 and not regnum when summing the size of all registers up to regnum.
8844
8845 2003-03-01 Andrew Cagney <cagney@redhat.com>
8846
8847 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8848 FRAME_INIT_SAVED_REGS.
8849 * gdbarch.h, gdbarch.c: Regenerate.
8850 * stack.c (frame_info): Update.
8851 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8852 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8853 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8854 * ns32k-tdep.c (ns32k_pop_frame): Update.
8855 * mips-tdep.c (mips_pop_frame): Update.
8856 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8857 * ia64-tdep.c (ia64_frame_chain): Update.
8858 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8859 (ia64_frameless_function_invocation): Update.
8860 (ia64_init_extra_frame_info): Update.
8861 (ia64_pop_frame_regular): Update.
8862 * frame.h (struct frame_info): Update comment.
8863 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8864 * frame.c (frame_saved_regs_register_unwind): Update.
8865 (frame_saved_regs_register_unwind): Update.
8866 (deprecated_generic_get_saved_register): Update.
8867 * cris-tdep.c: Update comment.
8868 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8869 Rename macro.
8870 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8871 * x86-64-tdep.c (x86_64_init_abi): Update.
8872 * vax-tdep.c (vax_gdbarch_init): Update.
8873 * v850-tdep.c (v850_gdbarch_init): Update.
8874 * sparc-tdep.c (sparc_gdbarch_init): Update.
8875 * sh-tdep.c (sh_gdbarch_init): Update.
8876 * s390-tdep.c (s390_gdbarch_init): Update.
8877 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8878 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8879 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8880 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8881 * mips-tdep.c (mips_gdbarch_init): Update.
8882 * mcore-tdep.c (mcore_gdbarch_init): Update.
8883 * m68k-tdep.c (m68k_gdbarch_init): Update.
8884 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8885 * ia64-tdep.c (ia64_gdbarch_init): Update.
8886 * i386-tdep.c (i386_gdbarch_init): Update.
8887 * frv-tdep.c (frv_gdbarch_init): Update.
8888 * avr-tdep.c (avr_gdbarch_init): Update.
8889 * arm-tdep.c (arm_gdbarch_init): Update.
8890 * alpha-tdep.c (alpha_gdbarch_init): Update.
8891
8892 2003-03-01 Andrew Cagney <cagney@redhat.com>
8893
8894 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8895 option enum and switch. When no windows, set the interpreter to
8896 INTERP_CONSOLE.
8897
8898 2003-03-01 Andrew Cagney <cagney@redhat.com>
8899
8900 * main.c (captured_main): Replace magic option characters with an
8901 enum.
8902
8903 2003-03-01 Andrew Cagney <cagney@redhat.com>
8904
8905 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8906 INIT_EXTRA_FRAME_INFO.
8907 * gdbarch.h, gdbarch.c: Regenerate.
8908 * arm-tdep.c: Update comments.
8909 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8910 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8911 * frame.h, avr-tdep.c: Ditto.
8912 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8913 (create_new_frame, legacy_get_prev_frame): Ditto.
8914 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8915 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8916 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8917 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8918 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8919 * v850-tdep.c (v850_gdbarch_init): Ditto.
8920 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8921 * sh-tdep.c (sh_gdbarch_init): Ditto.
8922 * s390-tdep.c (s390_gdbarch_init): Ditto.
8923 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8924 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8925 * mips-tdep.c (mips_gdbarch_init): Ditto.
8926 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8927 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8928 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8929 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8930 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8931 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8932 * frv-tdep.c (frv_gdbarch_init): Ditto.
8933 * cris-tdep.c (cris_gdbarch_init): Ditto.
8934 * avr-tdep.c (avr_gdbarch_init): Ditto.
8935 * arm-tdep.c (arm_gdbarch_init): Ditto.
8936 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8937 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8938
8939 2003-03-01 Andrew Cagney <cagney@redhat.com>
8940
8941 * gdbarch.sh (register_type): New function with predicate.
8942 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8943 * gdbarch.h, gdbarch.c: Re-generate.
8944 * arch-utils.c (generic_register_byte): Use generic_register_size.
8945 (generic_register_size): When available, use
8946 gdbarch_register_type.
8947 * regcache.c (init_regcache_descr): When available, initialize the
8948 register type array using gdbarch_register_type. If the
8949 architecture supplies gdbarch_register_type, do not use the legacy
8950 regcache layout.
8951 * d10v-tdep.c (d10v_register_type): Replace
8952 d10v_register_virtual_type.
8953 (d10v_gdbarch_init): Set register_type instead of
8954 register_virtual_type.
8955
8956 2003-03-01 Andrew Cagney <cagney@redhat.com>
8957
8958 * Makefile.in (ax-gdb.o): Update dependencies.
8959 * ax-gdb.c: Include "regcache.h".
8960 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8961 * findvar.c (value_of_register): Ditto.
8962 * infcmd.c (default_print_registers_info): Ditto.
8963
8964 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8965
8966 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8967 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8968
8969 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8970
8971 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8972 of STREQ.
8973
8974 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8975
8976 * Makefile.in (dwarf2loc.o): Update dependencies.
8977 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8978 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8979 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8980 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8981 (locexpr_tracepoint_var_ref): New function.
8982 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8983
8984 2003-02-28 Andrew Cagney <cagney@redhat.com>
8985
8986 * regcache.c (register_size): New function.
8987 * regcache.h (register_size): Declare
8988 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8989 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8990
8991 2003-02-28 David Carlton <carlton@math.stanford.edu>
8992
8993 * linespec.c (decode_compound): Extract code into find_method.
8994 (find_method): New.
8995
8996 2003-02-28 J. Brobecker <brobecker@gnat.com>
8997
8998 * Makefile.in: Add rules to build and link in observer.o.
8999
9000 2003-02-27 J. Brobecker <brobecker@gnat.com>
9001
9002 * observer.c: Minor comments edits.
9003
9004 2003-02-27 J. Brobecker <brobecker@gnat.com>
9005
9006 * observer.h, observer.c: New file.
9007
9008 2003-02-27 Andrew Cagney <cagney@redhat.com>
9009
9010 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9011
9012 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9013
9014 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9015 (M6812_OP_STS_EXT): Likewise.
9016 (m6811_prologue): Use the above to recognize prologue.
9017 (m6812_prologue): Likewise.
9018
9019 2003-02-27 David Carlton <carlton@math.stanford.edu>
9020
9021 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9022 SYMBOL_PRINT_NAME.
9023 (compare_psymbols): Ditto.
9024 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9025
9026 2003-02-27 Michael Snyder <msnyder@redhat.com>
9027
9028 * f-lang.c (build_fortran_types): New function.
9029 (_initialize_f_language): Gdbarch-register built-in fortran types.
9030 * doublest.c (extract_floating): Fix warning text.
9031
9032 2003-02-27 Andrew Cagney <cagney@redhat.com>
9033
9034 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9035 predicate. Replaces PUSH_DUMMY_FRAME.
9036 * gdbarch.h, gdbarch.c: Regnerate.
9037 * valops.c (hand_function_call): Update. Call
9038 generic_push_dummy_frame directly.
9039 * vax-tdep.c (vax_gdbarch_init): Update.
9040 * sparc-tdep.c (sparc_gdbarch_init): Update.
9041 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9042 * m68k-tdep.c (m68k_gdbarch_init): Update.
9043 * hppa-tdep.c (hppa_gdbarch_init): Update.
9044 * alpha-tdep.c (alpha_gdbarch_init): Update.
9045 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9046 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9047 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9048 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9049 push_dummy_frame to generic_push_dummy_frame.
9050 * v850-tdep.c (v850_gdbarch_init): Ditto.
9051 * sh-tdep.c (sh_gdbarch_init): Ditto.
9052 * s390-tdep.c (s390_gdbarch_init): Ditto.
9053 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9054 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9055 * mips-tdep.c (mips_gdbarch_init): Ditto.
9056 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9057 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9058 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9059 * i386-tdep.c (i386_gdbarch_init): Ditto.
9060 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9061 * frv-tdep.c (frv_gdbarch_init): Ditto.
9062 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9063 * cris-tdep.c (cris_gdbarch_init): Ditto.
9064 * avr-tdep.c (avr_gdbarch_init): Ditto.
9065 * arm-tdep.c (arm_gdbarch_init): Ditto.
9066
9067 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9068
9069 * mips-tdep.c (show_mips_abi): New function.
9070 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9071 command ``show mips abi''.
9072
9073 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9074
9075 From Elena Zannoni <ezannoni@redhat.com>
9076 * dbxread.c (process_one_symbol): Only record line 0 if one or
9077 more sline entries have been seen for the function.
9078
9079 2003-02-26 Michael Chastain <mec@shout.net>
9080
9081 * configure: Regenerate with autoconf 000227.
9082
9083 2003-02-26 Michael Chastain <mec@shout.net>
9084
9085 Close PR build/660.
9086 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9087 for old libc5/glibc.
9088 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9089
9090 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9091
9092 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9093 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9094
9095 2003-02-26 Michael Chastain <mec@shout.net>
9096
9097 * configure.in: New variable HAVE_UINTPTR_T.
9098 * configure, config.in: Regenerated.
9099
9100 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9101
9102 Fix PR build/1097.
9103 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9104
9105 2003-02-25 Andrew Cagney <cagney@redhat.com>
9106
9107 * frame.c (get_prev_frame): Add comment on check for
9108 inside_entry_func. Only check for inside_entry_file when not a
9109 dummy and not a sentinel. Check that the new frame is not inner
9110 to the old frame.
9111
9112 2003-02-25 Andrew Cagney <cagney@redhat.com>
9113
9114 * frame.c (frame_debug): New variable.
9115 (_initialize_frame): Add "set/show debug frame" command.
9116 (get_prev_frame): When frame_debug, print reason why unwind
9117 failed.
9118
9119 2003-02-25 Michael Chastain <mec@shout.net>
9120
9121 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9122 to avoid uintptr_t definition problems.
9123
9124 2003-02-25 David Carlton <carlton@math.stanford.edu>
9125
9126 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9127 (SYMBOL_LINKAGE_NAME): Ditto.
9128 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9129 SYMBOL_LINKAGE_NAME.
9130 (struct general_symbol_info): Expand comment.
9131 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9132 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9133 (SYMBOL_MATCHES_REGEXP): Ditto.
9134 * symtab.c (symbol_natural_name): New function.
9135 * objfiles.h: Replace all uses of SYMBOL_NAME by
9136 DEPRECATED_SYMBOL_NAME.
9137 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9138 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9139 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9140 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9141 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9142 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9143 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9144 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9145 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9146 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9147 * ada-exp.y: Ditto.
9148 * ada-exp.y: Update copyright.
9149 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9150 * cp-valprint.c: Ditto.
9151
9152 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9153
9154 * infptrace.c (detach): Do not flag error if ptrace detach fails
9155 and errno is set to ESRCH.
9156
9157 2003-02-24 Andrew Cagney <cagney@redhat.com>
9158
9159 * infptrace.c (udot_info): Change type of udot_off to long. Use
9160 paddr when printing udot_off's value.
9161
9162 2003-02-24 David Carlton <carlton@math.stanford.edu>
9163
9164 * symtab.c (make_symbol_overload_list): Only read in partial
9165 symtabs containing a matching partial symbol.
9166
9167 2003-02-24 David Carlton <carlton@math.stanford.edu>
9168
9169 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9170 do the comparison, not strcmp.
9171 * symfile.c (compare_psymbols): Ditto.
9172 * defs.h: Declare strcmp_iw_ordered.
9173 * utils.c (strcmp_iw_ordered): New function.
9174
9175 2003-02-24 Jim Blandy <jimb@redhat.com>
9176
9177 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9178 support, shared libs): Remove my name from here, to better reflect
9179 reality.
9180
9181 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9182
9183 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9184 (target_ops): Add to_have_continuable_watchpoint.
9185 * target.c (update_current_target): Add INHERIT line for
9186 to_have_continuable_watchpoint.
9187 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9188 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9189 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9190 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9191
9192 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9193
9194 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9195 maintainership.
9196
9197 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9198
9199 * solib.c (solib_open): Call target defined search function after
9200 failing with solib-search-path.
9201 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9202 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9203
9204 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9205
9206 * MAINTAINERS: Add myself to Write After section.
9207
9208 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9209
9210 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9211
9212 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9213
9214 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9215 (m68hc11_add_reggroups): New function.
9216 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9217 (m68hc11_gdbarch_init): Install the reggroups.
9218 (_initialize_m68hc11_tdep): Initialize them.
9219
9220 2003-02-21 James E Wilson <wilson@tuliptree.org>
9221
9222 * MAINTAINERS: Update my email address.
9223
9224 2003-02-21 David Carlton <carlton@math.stanford.edu>
9225
9226 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9227
9228 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9229
9230 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9231 * symtab.h: Add opaque declarations of struct axs_value and
9232 struct agent_expr.
9233 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9234 (struct location_funcs): New type.
9235 (struct symbol): Add "loc" to aux_value.
9236 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9237 * dwarf2read.c: Include "dwarf2expr.h".
9238 (dwarf2_symbol_mark_computed): New function.
9239 (read_func_scope): Use it.
9240 (var_decode_location): New function.
9241 (new_symbol): Use it.
9242 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9243
9244 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9245 (dwarf2expr_h, dwarf2loc_h): New variables.
9246 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9247 (dwarf2expr.o, dwarf2loc.o): New rules.
9248 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9249 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9250 LOC_COMPUTED_ARG.
9251 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9252 * m2-exp.y (yylex): Likewise.
9253 * printcmd.c (address_info, print_frame_args): Likewise.
9254 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9255 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9256 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9257 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9258 * symtab.c (lookup_block_symbol): Likewise.
9259
9260 2003-02-20 Adam Fedor <fedor@gnu.org>
9261
9262 * symtab.h: Remove objc_specific struct
9263 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9264 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9265 Have language_objc use cplus_specific struct.
9266
9267 2003-02-20 Tom Tromey <tromey@redhat.com>
9268
9269 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9270 TYPE_NAME, when printing a String value. PR java/1075.
9271
9272 2003-02-20 Adam Fedor <fedor@gnu.org>
9273
9274 * objc-lang.h (find_methods): Remove declaration.
9275 * objc-lang.c (find_methods): Make static.
9276
9277 2003-02-20 Christopher Faylor <cgf@redhat.com>
9278
9279 * win32-nat.c (get_image_name): Check return value from
9280 ReadProcessMemory.
9281 (child_xfer_memory): Ditto.
9282
9283 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9284
9285 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9286 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9287 '${exec_prefix}' (in addition to the expansion thereof) as
9288 relocatable.
9289 * configure: Rebuilt.
9290
9291 2003-02-20 David Carlton <carlton@math.stanford.edu>
9292
9293 * symtab.c (search_symbols): Revert the search_symbols part of my
9294 2002-12-23 patch. Add comment.
9295
9296 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9297
9298 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9299 * dbxread.c (elfstab_build_psymtabs): Don't call
9300 install_minimal_symbols.
9301 (stabsect_build_psymtabs): Likewise.
9302 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9303 earlier.
9304 * somread.c (som_symfile_read): Call install_minimal_symbols
9305 and do_cleanups earlier.
9306 * nlmread.c (nlm_symfile_read): Likewise.
9307 * mdebugread.c (elfmdebug_build_psymtabs): Call
9308 install_minimal_symbols and make appropriate cleanups.
9309
9310 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9311
9312 * solib.c (reload_shared_libraries): New function.
9313 (_initialize_solib): Add callbacks for ``set solib-search-path''
9314 and ``set solib-absolute-prefix''.
9315
9316 2003-02-20 David Carlton <carlton@math.stanford.edu>
9317
9318 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9319 expand comment.
9320 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9321 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9322 * ada-typeprint.c (ada_typedef_print): Ditto.
9323 * ax-gdb.c (gen_var_ref): Ditto.
9324 * breakpoint.c (print_one_breakpoint): Ditto.
9325 * buildsym.c (finish_block): Ditto.
9326 * c-valprint.c (c_val_print): Ditto.
9327 * expprint.c (print_subexp): Ditto.
9328 * findvar.c (locate_var_value): Ditto.
9329 * infcmd.c (jump_command): Ditto.
9330 * linespec.c (decode_line_2, decode_compound): Ditto.
9331 * maint.c (maintenance_translate_address): Ditto.
9332 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9333 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9334 Ditto.
9335 * p-valprint.c (pascal_val_print): Ditto.
9336 * stabsread.c (define_symbol): Ditto.
9337 * stack.c (print_frame, frame_info, print_block_frame_locals)
9338 (print_frame_arg_vars, return_command): Ditto.
9339 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9340 * symmisc.c (print_symbol): Ditto.
9341 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9342 (compare_search_syms, print_symbol_info, print_msymbol_info)
9343 (rbreak_command): Ditto.
9344 * tracepoint.c (tracepoints_info): Ditto.
9345 * typeprint.c (typedef_print): Ditto.
9346 * valops.c (value_of_variable, hand_function_call): Ditto.
9347 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9348 * ada-typeprint.c: Update Copyright.
9349 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9350 * tracepoint.c, cli/cli-cmds.c: Ditto.
9351
9352 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9353
9354 * frame.c (generic_unwind_get_saved_register): Make non-static.
9355 * frame.h (generic_unwind_get_saved_register): Declare.
9356 * mips-tdep.c (read_next_frame_reg): Fetch register from
9357 current regcache when frame is NULL.
9358 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9359 that must be NULL.
9360 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9361 instead of frame_register_unwind().
9362
9363 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9364
9365 * remote-sim.c (gdbsim_insert_breakpoint)
9366 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9367 code.
9368
9369 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9370
9371 * remote.c (_initialize_remote): Add commands "set/show remote
9372 hardware-watchpoint-limit" and "set/show remote
9373 hardware-breakpoint-limit".
9374 (remote_hw_watchpoint_limit): Initialize to -1.
9375 (remote_hw_breakpoint_limit): Ditto.
9376 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9377
9378 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9379
9380 * coff-pe-read.c: New file - support reading of minimal symbols from a
9381 portable executable using the export table.
9382 * coff-pe-read.h: New file.
9383 * coffread.c: Include coff-pe-read.h.
9384 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9385 debugging symbols found.
9386 * Makefile.in (SFILES): Add coff-pe-read.o.
9387 (coff_pe_read_h): Define.
9388 (COMMON_OBS): Add coff-pe-read.o.
9389 (coffread.o): Add coff_pe_read_h dependency.
9390 (coff-pe-read.o): New target.
9391
9392 2003-02-19 David Carlton <carlton@math.stanford.edu>
9393
9394 * Makefile.in (SFILES): Add block.c.
9395 (block_h): New.
9396 (COMMON_OBS): Add block.o.
9397 (block.o): New.
9398 (x86-64-tdep.o): Add $(block_h).
9399 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9400 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9401 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9402 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9403 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9404 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9405 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9406 * value.h: Add opaque declaration for struct block.
9407 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9408 * ada-lang.h: Ditto.
9409 * x86-64-tdep.c: #include "block.h"
9410 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9411 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9412 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9413 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9414 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9415 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9416 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9417 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9418 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9419 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9420 * symtab.c (block_function): Ditto.
9421 (contained_in): Ditto.
9422 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9423 block.h. Add opaque declaration for struct block.
9424 * symtab.h: Move block_function and contained_in declarations to
9425 block.h. Add opaque declarations for struct block, struct
9426 blockvector.
9427 (struct block): Move to block.h.
9428 (struct blockvector): Ditto.
9429 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9430 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9431 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9432 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9433 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9434 Ditto.
9435 * block.c: New file.
9436 * block.h: New file.
9437
9438 2003-02-19 Theodore A. Roth <troth@openavr.org>
9439
9440 * avr-tdep.c (avr_extract_return_value): Remove function.
9441 (avr_store_return_value): Remove function.
9442 (avr_extract_struct_value_address): Remove function.
9443 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9444
9445 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9446
9447 * rs6000-tdep.c: Include "gdb_assert.h".
9448 (registers_e500): Add "acc" and "spefscr".
9449 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9450 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9451 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9452 really is "r0".
9453 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9454
9455 2003-02-18 Keith Seitz <keiths@redhat.com>
9456
9457 * Makefile.in: Add gdbtk-interps.c.
9458
9459 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9460
9461 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9462 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9463
9464 2003-02-18 Andrew Cagney <cagney@redhat.com>
9465
9466 * symtab.h (struct objfile): Add opaque declaration.
9467
9468 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9469
9470 From Jim Ingham <jingham@apple.com>:
9471 * dbxread.c (process_one_symbol): Use last_function_start rather
9472 than function_start_offset to find the real beginning of the
9473 current function. The latter is just the text section offset on
9474 some systems, the former is always the real function start.
9475
9476 2003-02-17 Andrew Cagney <cagney@redhat.com>
9477
9478 * configure.in: Revert ${target} != ${host}.
9479
9480 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9481
9482 * configure.in (Makefile): Use the test ${target} != ${host},
9483 instead of the absence of the "nm.h" file, to determine of the
9484 configuration non-native.
9485 * configure: Regenerate.
9486
9487 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9488
9489 From Brian Ford <ford@vss.fsi.com>
9490
9491 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9492 conditionalize tui_active test.
9493 (lookup_cmd_1): Ditto.
9494
9495 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9496
9497 * configure.in: Add check for _etext.
9498 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9499 available.
9500 * config.in, configure: regenerated.
9501
9502 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9503
9504 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9505
9506 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9507
9508 * main.c (tui_version): Delete variable.
9509 (captured_main): When --tui, set interpreter_p to "tui" instead of
9510 enabling tui_version.
9511 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9512 tui_version.
9513 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9514 * cli/cli-cmds.c (disassemble_command): Ditto.
9515 * defs.h (tui_version): Delete declaration.
9516 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9517 (tui-interp.o): Add rules.
9518 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9519
9520 2003-02-14 Christopher Faylor <cgf@redhat.com>
9521
9522 * win32-nat.c (register_loaded_dll): Correctly set address range for
9523 just-loaded dll.
9524
9525 2003-02-12 Jason Molenda (jmolenda@apple.com)
9526
9527 * symmisc.c (print_objfile_statistics): Include information about
9528 the number of psymtabs and symtabs in each object file.
9529
9530 2003-02-13 Keith R Seitz <keiths@redhat.com>
9531
9532 * main.h (struct captured_main_args): Add interpreter_p.
9533 * main.c (captured_main): Initialize interpreter_p from context.
9534 * gdb.c (main): Set interpreter_p argument.
9535 * Makefile.in (gdb.o): Add dependency for interps.h.
9536
9537 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9538
9539 * event-top.c (cli_command_loop): Delete declaration.
9540 (_initialize_event_loop): Delete function setting event_loop_hook.
9541 * event-top.h (cli_command_loop): Declare. Update copyright.
9542 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9543 * interps.c (current_interp_command_loop): When event_loop_p, call
9544 cli_command_loop.
9545
9546 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9547
9548 * interps.h (interp_command_loop_ftype): Change return type to
9549 void.
9550
9551 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9552
9553 * x86-64-tdep.c (x86_64_extract_return_value)
9554 (x86_64_store_return_value): Use regcache instead of regbuf.
9555 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9556 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9557
9558 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9559
9560 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9561 * aclocal.m4: Regenerate.
9562 * configure: Regenerate.
9563
9564 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9565 TCL_LD_SEARCH_FLAGS.
9566
9567 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9568
9569 * dwarf2cfi.c: Reindented.
9570
9571 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9572
9573 * interps.c (clear_interpreter_hooks): Convert function definition
9574 to ISO C.
9575
9576 2003-02-07 David Carlton <carlton@math.stanford.edu>
9577
9578 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9579
9580 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9581
9582 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9583 (struct type): ...to here.
9584 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9585 field.
9586 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9587 (replace_type): Set length on all type variants for a given type.
9588
9589 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9590
9591 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9592 <sys/stat.h>.
9593 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9594
9595 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9596
9597 * Makefile.in (symm-nat.o): Update dependencies.
9598 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9599 (lynx-nat.o, ia64-linux-nat.): Ditto.
9600 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9601 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9602 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9603
9604 * Makefile.in (inflow_h): Define.
9605 (procfs.o, inflow.o, procfs.o): Update dependencies.
9606 * inftarg.c (child_stop): Delete extern declaration of
9607 inferior_process_group. Include "inflow.h".
9608 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9609 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9610 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9611 (our_process_group, inferior_process_group): Extern declarations.
9612
9613 * procfs.c: Include "gdb_assert.h".
9614
9615 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9616 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9617 * jv-typeprint.c (java_type_print_base): Ditto.
9618 * typeprint.c (typedef_print): Eliminate STREQ.
9619 * cli/cli-script.c (define_command, define_command): Ditto.
9620 * main.c (captured_main): Ditto.
9621 * values.c (lookup_internalvar): Ditto.
9622 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9623 within `if' conditional.
9624 * linespec.c (decode_line_2): Ditto.
9625 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9626 (bfd_openw_with_cleanup): Ditto.
9627
9628 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9629
9630 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9631 legacy_extract_return_value and store_return_value to
9632 legacy_return_value.
9633
9634 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9635
9636 * win32-nat.c (get_relocated_section_addrs): New function. Find
9637 section load addresses for symbol handling in relocated DLLs.
9638 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9639
9640 2003-02-05 Fred Fish <fnf@intrinsity.com>
9641
9642 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9643 '=' and '!='.
9644 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9645 with '&' and '=='.
9646 (angel_RDI_info): Ditto.
9647 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9648 with '&' and '!='.
9649 (threads_continue_all_with_signals): Ditto.
9650
9651 2003-02-05 Jim Ingham <jingham@apple.com>
9652 Keith Seitz <keiths@redhat.com>
9653 Elena Zannoni <ezannoni@redhat.com>
9654 Andrew Cagney <ac131313@redhat.com>
9655
9656 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9657 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9658 (SUBDIR_MI_OBS): Add "mi-interp.o".
9659 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9660 (SFILES): Add "interps.c".
9661 (COMMON_OBS): Add "interps.o".
9662 (interps_h, mi_main_h): Define.
9663 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9664 (mi-main.o, main.o, event-top.o): Update dependencies.
9665 * cli/cli-interp.c: New file.
9666 * interps.h, interps.c: New files.
9667 * top.c: (gdb_init): Don't install the default interpreter, handed
9668 by captured_main.
9669 * main.c: Include "interps.h".
9670 (interpreter_p): Note that it should malloc'ed.
9671 (captured_command_loop): Call current_interp_command_loop.
9672 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9673 xfree and xstrdup when updating interpreter_p. Install the
9674 default interpreter. Add hack to stop mi1's copyright notice
9675 being encoded.
9676 * event-top.h (gdb_setup_readline): Declare.
9677 (gdb_disable_readline): Declare.
9678 * event-top.c: Include "interps.h".
9679 (display_gdb_prompt): Call current_interp_display_prompt_p.
9680 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9681 gdb_stdlog, and gdb_stdtarg.
9682 (_initialize_event_loop): Don't call gdb_setup_readline.
9683 * cli-out.c (cli_out_set_stream): New function.
9684 * cli-out.h (cli_out_set_stream): Declare.
9685
9686 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9687
9688 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9689 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9690 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9691 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9692 config/i386/i386v42mp.mt: Removed.
9693
9694 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9695
9696 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9697 GDB_OSABI_SOLARIS.
9698
9699 2003-02-05 Michael Chastain <mec@shout.net>
9700
9701 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9702 2.12.1 and earlier versions.
9703
9704 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9705
9706 Remove orphaned hosts, targets and files.
9707 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9708 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9709 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9710 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9711 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9712 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9713 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9714 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9715 * config/sparc/tm-sp64sim.h: Delete.
9716 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9717 hosts.
9718 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9719 mips*-dec-mach3* targets.
9720
9721 2003-02-04 Michael Chastain <mec@shout.net>
9722
9723 * NEWS: Fix typo: sepcifying -> specifying.
9724
9725 2003-02-04 Michael Chastain <mec@shout.net>
9726
9727 * dwarfread.c: Add documentation on the state of dwarf-1,
9728 looking towards obsoletion.
9729
9730 2003-02-03 Michael Chastain <mec@shout.net>
9731
9732 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9733 gdb/testsuite/gdb.c++/pr-1023.exp.
9734
9735 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9736
9737 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9738 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9739
9740 * utils.c (init_page_info): Delete reference to MPW in comments.
9741 * main.c (captured_main): Delete #ifdef MPW.
9742
9743 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9744
9745 * NEWS: Note that the m32r-*-elf* is obsolete.
9746 * monitor.c (monitor_expect): Obsolete reference to m32r.
9747 * configure.tgt: Mark m32r-*-elf* as obsolete.
9748 * MAINTAINERS: Mark m32k as obsolete.
9749 * m32r-rom.c: Obsolete file.
9750 * config/m32r/m32r.mt: Obsolete file.
9751 * config/m32r/tm-m32r.h: Obsolete file.
9752 * m32r-stub.c: Obsolete file.
9753 * m32r-tdep.c: Obsolete file.
9754
9755 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9756
9757 * NEWS: Mention that the z8k-zilog-none is obsolete.
9758 * MAINTAINERS: Mark z8k as obsolete.
9759 * configure.tgt: Obsolete the z8k-*-coff* target.
9760 * config/z8k/z8k.mt: Obsolete file.
9761 * config/z8k/tm-z8k.h: Obsolete file.
9762 * z8k-tdep.c: Obsolete file.
9763
9764 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9765
9766 * NEWS: Mention that the mn10200-elf is obsolete.
9767 * configure.tgt: Obsolete mn10200-*-* target.
9768 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9769 mention that the mn10200 is obsolete.
9770 * breakpoint.h: Ditto.
9771 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9772 * config/mn10200/mn10200.mt: Obsolete file.
9773 * config/mn10200/tm-mn10200.h: Obsolete file.
9774 * mn10200-tdep.c: Obsolete file.
9775
9776 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9777
9778 * MAINTAINERS: Mark h8500 as obsolete.
9779 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9780 * findvar.c (value_from_register): Ditto.
9781 * h8500-tdep.c: Mark file as obsolete.
9782 * config/h8500/h8500.mt: Ditto.
9783 * config/h8500/tm-h8500.h: Ditto.
9784 * NEWS: Mention that h8500 is obsolete.
9785
9786 2003-02-04 David Carlton <carlton@math.stanford.edu>
9787
9788 * objfiles.c (allocate_objfile): Always set name. Add comment at
9789 start of function.
9790 * jv-lang.c (get_dynamics_objfile): Add comment.
9791
9792 2003-02-04 David Carlton <carlton@math.stanford.edu>
9793
9794 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9795 * printcmd.c (build_address_symbolic): Replace uses of
9796 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9797 SYMBOL_NAME, and asm_demangle.
9798 Update copyright.
9799
9800 2003-02-04 David Carlton <carlton@math.stanford.edu>
9801
9802 * linespec.c (decode_compound): Extract code into
9803 lookup_prefix_sym.
9804 (lookup_prefix_sym): New function.
9805
9806 2003-02-04 David Carlton <carlton@math.stanford.edu>
9807
9808 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9809 FLOAT_COERCION_BADNESS.
9810 * gdbtypes.c (rank_one_type): Replace all uses of
9811 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9812
9813 2003-02-04 Jim Blandy <jimb@redhat.com>
9814
9815 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9816 section, let dwarf_macinfo_section point to it, not
9817 dwarf_loc_section.
9818
9819 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9820
9821 Pointed out by Anton Blanchard <anton@samba.org>.
9822 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9823 (ppc_linux_at_sigtramp_return_path): Use it.
9824
9825 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9826
9827 * defs.h (streq): Add prototype.
9828 * utils.c (streq): New function.
9829
9830 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9831 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9832 * mdebugread.c (new_symbol): Likewise.
9833 * stabsread.c (define_symbol): Likewise.
9834 * coffread.c (process_coff_symbol): Likewise.
9835 * dwarfread.c (new_symbol): Likewise.
9836
9837 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9838 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9839 here.
9840 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9841 SYMBOL_INIT_DEMANGLED_NAME.
9842 * objfiles.c: Include "hashtab.h".
9843 (allocate_objfile): Call htab_set_functions_ex for the
9844 demangled_names_hash.
9845 (free_objfile): Call htab_delete for the demangled_names_hash.
9846 * objfiles.h (struct htab): Add declaration.
9847 (struct objfile): Add demangled_names_hash.
9848 * symfile.c: Include "hashtab.h".
9849 (reread_symbols): Call htab_delete for the demangled_names_hash.
9850 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9851 SYMBOL_NAME in the bcache.
9852 * symtab.c: Include "hashtab.h". Update comments.
9853 (create_demangled_names_hash, symbol_set_names): New functions.
9854 (symbol_find_demangled_name): New function, broken out from
9855 symbol_init_demangled_names.
9856 (symbol_init_demangled_names): Use it.
9857 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9858 (SYMBOL_SET_NAMES): New macro.
9859 (symbol_set_names): Add prototype.
9860
9861 2003-02-03 Jim Blandy <jimb@redhat.com>
9862
9863 Use a single, consistent representation for an empty minimal
9864 symbol table in an objfile.
9865 * objfiles.c (terminate_minimal_symbol_table): New function.
9866 (allocate_objfile): Call it.
9867 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9868 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9869 non-NULL.
9870 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9871 objfile has minimal symbols, compare minimal_symbol_count to zero,
9872 instead of comparing msymbols with NULL.
9873 * objfiles.c (have_minimal_symbols): Same.
9874 * solib-sunos.c (solib_add_common_symbols): Call
9875 terminate_minimal_symbol_table.
9876 * symfile.c (reread_symbols): Same.
9877
9878 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9879
9880 * s390-tdep.c (s390_address_class_type_flags)
9881 (s390_address_class_type_flags_to_name)
9882 (s390_address_class_name_to_type_flags): New functions.
9883 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9884 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9885
9886 2003-02-03 Michael Snyder <msnyder@redhat.com>
9887
9888 * arm-tdep.c: Fix spell-o in comment.
9889
9890 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9891
9892 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9893 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9894 error messages to contain BFD filename.
9895
9896 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9897
9898 Fix PR gdb/742 gdb/743 gdb/877
9899 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9900 (do_mixed_source_and_assembly): Use
9901 make_cleanup_ui_out_tuple_begin_end and
9902 make_cleanup_ui_out_tuple_begin_end.
9903 (do_mixed_source_and_assembly): Ditto.
9904 * thread.c (do_captured_list_thread_ids): Ditto.
9905 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9906 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9907 ui_out_tuple_end): Delete prototypes.
9908 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9909 ui_out_list_end, ui_out_tuple_end): Delete.
9910
9911 From Kevin Buettner <kevinb@redhat.com>:
9912 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9913 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9914 (do_cleanup_table_end): New functions.
9915 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9916 Use cleanups to invoke_ui_out_tuple_end().
9917 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9918 * cli/cli-setshow.c (cmd_show_list): Use
9919 make_cleanup_ui_out_tuple_begin_end.
9920
9921 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9922
9923 * frame.c (frame_unwind_register): New function.
9924 (frame_unwind_unsigned_register): Use.
9925 (frame_unwind_signed_register): Use.
9926 (frame_read_register): New function.
9927 * frame.h (frame_unwind_register): Declare.
9928 (frame_read_register): Declare.
9929
9930 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9931 and frame_unwind_register instead of read_memory, write_register
9932 and deprecated_write_register_bytes.
9933
9934 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9935
9936 * frame.h: Note that namelen can be negative.
9937 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9938 NAME's length.
9939
9940 * NEWS: Mention that the d10v's `regs' command is deprecated.
9941 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9942 (d10v_print_registers_info): New function.
9943 (show_regs): Call d10v_print_registers_info.
9944 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9945
9946 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9947
9948 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9949 lost in the previous patch.
9950
9951 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9952
9953 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9954 * stack.c (print_frame_info_base): Output complete FRAME tuple
9955 for synthesized frames.
9956
9957 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9958
9959 * mips-nat.c (zerobuf): Delete.
9960 (fetch_inferior_registers): Alloc local zerobuf.
9961 (fetch_core_registers): Alloc local zerobuf.
9962 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9963 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9964 * thread-db.c (thread_db_store_registers): Ditto.
9965 * sh-tdep.c (sh_do_register): Ditto.
9966 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9967 * remote-sim.c (gdbsim_store_register): Ditto.
9968 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9969 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9970 * monitor.c (monitor_supply_register): Ditto.
9971 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9972 * mips-nat.c (fetch_inferior_registers): Ditto.
9973 * m68klinux-nat.c (fetch_register): Ditto.
9974 * lynx-nat.c (fetch_inferior_registers): Ditto.
9975 (fetch_inferior_registers): Ditto.
9976 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9977 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9978 (hpux_thread_store_registers): Ditto.
9979 * hppah-nat.c (fetch_register): Ditto.
9980 * hppab-nat.c (fetch_register): Ditto.
9981 * hppa-tdep.c (pa_register_look_aside): Ditto.
9982 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9983 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9984
9985 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9986
9987 * gdbarch.sh: Explictly specify all method levels. When a
9988 variable with an empty level, provide a non-multi-arch default.
9989 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9990 * gdbarch.h: Re-generate.
9991 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9992 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9993
9994 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9995
9996 * defs.h (host_pointer_to_address): Delete declaration.
9997 (address_to_host_pointer): Delete declaration.
9998 * utils.c (host_pointer_to_address): Delete function.
9999 (address_to_host_pointer): Delete function.
10000 * procfs.c (procfs_address_to_host_pointer): New function.
10001 * procfs.c (proc_set_watchpoint): Use.
10002 (procfs_can_use_hw_breakpoint): Update comments.
10003 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10004 (som_solib_add): Use.
10005 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10006 * hppa-tdep.c (unwind_command): Use.
10007
10008 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10009
10010 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10011 strlen d_name.
10012
10013 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10014 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10015 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10016 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10017 (define_symbol): Update.
10018 * symfile.c (generic_load): Remove references to nindy.
10019 * symtab.c: Remove references to nindy.
10020
10021 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10022
10023 * infcmd.c (print_float_info): Delete code conditional on
10024 FLOAT_INFO.
10025 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10026 * config/m68k/nm-apollo68b.h: Ditto.
10027 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10028 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10029 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10030
10031 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10032
10033 * config/i386/tm-i386os9k.h: Removed.
10034
10035 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10036 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10037 they're identical to i[3456]86-*-sysv* now.
10038 * config/i386/i386v32.mh: Removed.
10039 * config/i386/xm-i386v32.h: Removed.
10040 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10041
10042 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10043
10044 * config/i386/i386dgux.mh: Removed.
10045 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10046
10047 * configure.in: Fix typo.
10048 * configure: Regenerated.
10049
10050 2003-01-31 David Carlton <carlton@math.stanford.edu>
10051
10052 * dwarf2read.c (dwarf2_locate_sections): Set
10053 dwarf_ranges_section.
10054
10055 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10056
10057 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10058 * utils.c: Update comments documenting legitimate uses of PTR.
10059
10060 * utils.c: Re-indent.
10061
10062 * config/djgpp/fnchange.lst: Delete nindy files.
10063 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10064 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10065 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10066 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10067 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10068 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10069 * Makefile.in (init.c): Remove nindy references.
10070 (saber_gdb): Delete rule.
10071 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10072 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10073 and a68v-nat.c.
10074 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10075 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10076 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10077 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10078 nindy-share/stop.h.
10079 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10080 * saber.suppress: Delete file.
10081
10082 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10083
10084 * dbxread.c (stabs_data): New static variable.
10085 (fill_symbuf): Support an in-memory buffer for stabs data.
10086 (stabs_seek): New function.
10087 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10088 (read_ofile_symtab): Use stabs_seek.
10089 (elfstab_build_psymtabs): Take an asection* instead of
10090 an offset and size. Relocate the stabs data if necessary.
10091 Save the section* for dbx_psymtab_to_symtab.
10092 * dwarf2read.c: Add section variables for each debug section.
10093 (dwarf2_locate_sections): Fill them in.
10094 (dwarf2_read_section): Take an asection* argument.
10095 Relocate the section contents if necessary.
10096 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10097 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10098 it to dwarf2_read_section.
10099 (dwarf2_build_frame_info): Update callers.
10100 * elfread.c (elf_symfile_read): Update call to
10101 elfstab_build_psymtabs.
10102 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10103 (DBX_STAB_SECTION): New macro.
10104 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10105 * symfile.c (symfile_dummy_outputs): New function.
10106 (symfile_relocate_debug_section): New function.
10107 * symfile.h (symfile_relocate_debug_section): Add prototype.
10108
10109 2003-01-31 Richard Henderson <rth@redhat.com>
10110
10111 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10112 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10113 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10114 * alpha-tdep.c (alpha_register_name): Add "unique".
10115 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10116 (ALPHA_UNIQUE_REGNUM): New.
10117 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10118
10119 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10120
10121 * README: Remove reference to Ericsson 1800 monitor.
10122 * Makefile.in (remote-es.o): Delete rule.
10123 (ALLDEPFILES): Delete remote-es.c.
10124 * remote-es.c: Delete file.
10125 * config/m68k/es1800.mt: Delete file.
10126 * config/djgpp/fnchange.lst: Update.
10127 * configure.tgt: Delete m68*-ericsson-* target.
10128
10129 2003-01-31 Adam Fedor <fedor@gnu.org>
10130
10131 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10132 Remove duplicate/shadowing variable of same name.
10133
10134 2003-01-30 Jim Blandy <jimb@redhat.com>
10135
10136 * symfile.c (find_separate_debug_file): Assert that the objfile's
10137 directory name we compute ends with a slash, and then assume that
10138 that's so everywhere we use it.
10139
10140 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10141
10142 * valops.c (value_assign): Flush frame cache after stores to memory
10143 also.
10144
10145 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10146
10147 * Makefile.in (mon960-rom.o): Delete rule.
10148 * mon960-rom.c: Delete file.
10149
10150 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10151
10152 * d10v-tdep.c: Include "frame-unwind.h".
10153 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10154 list.
10155 (next_addr, uses_frame): Delete.
10156 (struct d10v_unwind_cache): Define.
10157 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10158 Use info instead of next_addr and uses_frame globals.
10159 (d10v_frame_init_saved_regs): Delete function.
10160 (d10v_init_extra_frame_info): Delete function.
10161 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10162 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10163 init_frame_pc or frame_saved_pc.
10164 (d10v_pop_frame): Delete function.
10165 (do_d10v_pop_frame): Delete function.
10166 (d10v_frame_chain): Delete function.
10167 (d10v_frame_chain_valid): Delete function.
10168 (d10v_frame_pc_unwind): New function.
10169 (d10v_frame_id_unwind): New function.
10170 (saved_regs_unwinder): New function.
10171 (d10v_frame_register_unwind): New function.
10172 (d10v_frame_pop): New function.
10173 (d10v_frame_unwind): New variable.
10174 (d10v_frame_p): New function.
10175 (d10v_frame_saved_pc): Delete function.
10176 * Makefile.in (d10v-tdep.o): Update dependencies.
10177
10178 2003-01-30 J. Brobecker <brobecker@gnat.com>
10179
10180 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10181 causing some regressions due to a change in the default value
10182 for this macro.
10183
10184 2003-01-29 Richard Henderson <rth@redhat.com>
10185 Elena Zannoni <ezannoni@redhat.com>
10186 Daniel Jacobowitz <drow@mvista.com>
10187
10188 Fix PR gdb/961.
10189 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10190 variables.
10191 (RANGES_SECTION): New.
10192 (dwarf_ranges_buffer): New variable.
10193 (struct comp_unit_head): Add member "die".
10194 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10195 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10196 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10197 (dwarf2_locate_sections): Likewise.
10198 (dwarf2_build_psymtabs): Read .debug_ranges.
10199 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10200 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10201 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10202 Look for DW_AT_ranges and return the bounding box.
10203
10204 2003-01-29 Brian Ford <ford@vss.fsi.com>
10205
10206 * win32-nat.c (cygwin_pid): Removed as unused.
10207 (child_attach): Try fall back to Cygwin pid.
10208
10209 2003-01-29 Jim Blandy <jimb@redhat.com>
10210
10211 * objfiles.h (struct objfile): Doc fix.
10212
10213 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10214
10215 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10216 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10217 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10218 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10219 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10220 (FRAME_SAVED_PC): Change to a function with predicate.
10221 * gdbarch.h, gdbarch.c: Re-generate.
10222
10223 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10224
10225 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10226
10227 * complaints.c (complain): Delete function.
10228 * complaints.h (struct deprecated_complaint): Delete definition.
10229 (complain): Delete declaration.
10230
10231 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10232
10233 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10234 dummy frames.
10235
10236 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10237
10238 * sentinel-frame.h, sentinel-frame.c: New files.
10239 * Makefile.in (frame.o): Update dependencies.
10240 (SFILES): Add sentinel-frame.c.
10241 (sentinel_frame_h): Define.
10242 (COMMON_OBS): Add sentinel-frame.o.
10243 (sentinel-frame.o): Specify dependencies.
10244 * frame.c: Include "sentinel-frame.h".
10245 (frame_register_unwind): Rewrite assuming that there is always a a
10246 ->next frame.
10247 (frame_register, generic_unwind_get_saved_register): Ditto.
10248 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10249 (create_sentinel_frame, unwind_to_current_frame): New functions.
10250 (get_current_frame): Rewrite using create_sentinel_frame and
10251 unwind_to_current_frame. When possible, always create a frame.
10252 (create_new_frame): Set next to the sentinel frame.
10253 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10254 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10255 ID cache when necessary.
10256 (frame_saved_regs_id_unwind): Use frame_relative_level.
10257 (deprecated_generic_get_saved_register): Use frame_relative_level,
10258 get_frame_saved_regs, get_frame_pc, get_frame_base and
10259 get_next_frame.
10260 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10261 frame_register.
10262
10263 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10264
10265 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10266
10267 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10268
10269 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10270 (maintenance_set_profile_cmd): Use error () instead of warning ().
10271
10272 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10273
10274 * configure.in: Check that -pg works if using --enable-profiling.
10275 Check for monstartup and _mcleanup regardless of --enable-profiling.
10276 * maint.c: Check for monstartup and _mcleanup before using them.
10277 * config.in: Regenerated.
10278 * configure: Regenerated.
10279
10280 2003-01-24 Nick Clifton <nickc@redhat.com>
10281
10282 * Add sh2e support:
10283
10284 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10285
10286 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10287 (sh2e_show_regs): New.
10288 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10289 * config/sh/tm-sh.h: Added sh2e to comments.
10290
10291 2003-01-23 Jim Blandy <jimb@redhat.com>
10292
10293 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10294 symbols found)" message here; we haven't checked for a separate
10295 debug info file yet, so we don't know yet.
10296 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10297 we've looked everywhere. Also, there's no need to print a special
10298 message when we're loading the separate debug info file: the one
10299 symbol_file_add prints is fine.
10300
10301 2003-01-23 Alexander Larsson <alexl@redhat.com>
10302 Jim Blandy <jimb@redhat.com>
10303
10304 Add support for executables whose debug info has been separated
10305 out into a separate file, leaving only a link behind.
10306 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10307 and separate_debug_objfile_backlink.
10308 (put_objfile_before): New declaration.
10309 * symfile.c: #include "filenames.h".
10310 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10311 debug info in a separate file, read that, too. Save the addrs
10312 argument, so we can use it again to read the separated debug info;
10313 syms_from_objfile modifies the table we pass it.
10314 (reread_symbols): After re-reading an objfile, call
10315 reread_separate_symbols to refresh its separate debug info
10316 objfile, if it has one.
10317 (reread_separate_symbols, find_separate_debug_file,
10318 get_debug_link_info, separate_debug_file_exists): New functions.
10319 (debug_file_directory): New global var.
10320 (_initialize_symfile): Initialize debug_file_directory, and
10321 provide the new `set debug-file-directory' command to let the user
10322 change it.
10323 * objfiles.c (free_objfile): If this objfile has its debug info in
10324 a separate objfile, free that one too. If this is itself a
10325 separate debug info objfile, clear our parent's backlink.
10326 (put_objfile_before): New function.
10327 * utils.c (gnu_debuglink_crc32): New function.
10328 * defs.h (gnu_debuglink_crc32): New declaration.
10329 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10330 * configure.in: Handle --with-separate-debug-dir config option.
10331 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10332 * acconfig.h (DEBUGDIR): New macro.
10333 * configure, aclocal.m4, config.in: Regenerated.
10334
10335 2003-01-22 Jim Blandy <jimb@redhat.com>
10336
10337 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10338 like the old symbol_file_add, but taking new arguments: you can
10339 now pass in either a `struct section_addr_info' list to say where
10340 each section is loaded, or a `struct section_offsets' table. Pass
10341 these new arguments through to syms_from_objfile as appropriate.
10342 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10343 with the appropriate quiescent values for the new arguments.
10344
10345 * symfile.c: #include "gdb_assert.h".
10346 (syms_from_objfile): Add the ability to pass in a section offset
10347 table directly, as an alternative to the section_addr_info table.
10348 Document arguments better.
10349 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10350 * symfile.h (syms_from_objfile): Update declaration.
10351 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10352 syms_from_objfile.
10353 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10354
10355 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10356
10357 Original patch by Tom Tromey <tromey@cygnus.com> and
10358 Jason Molenda <jmolenda@apple.com>.
10359 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10360 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10361 * NEWS: Mention profiling.
10362 * configure.in (--enable-gdbtk): Fix typo.
10363 (--enable-profiling): New. Set PROFILE_CFLAGS.
10364 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10365 Fill in function.
10366 (profiling_state): New variable.
10367 (mcleanup_wrapper): New function.
10368 (_initialize_maint): Remove NOTYET, fix call to
10369 add_setshow_boolean_cmd for "maint set profile".
10370 * configure: Regenerated.
10371
10372 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10373
10374 * Makefile.in (install-gdbtk): Install PNG images too.
10375
10376 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10377
10378 * exec.c (text_start): Delete global variable.
10379 (exec_file_attach): Make text_start local to the function.
10380 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10381 * valops.c (hand_function_call): Delete code that handles
10382 BEFORE_TEXT_END and AFTER_TEXT_END.
10383 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10384 of CALL_DUMMY_LOCATION.
10385 * gdbarch.c: Regenerate.
10386 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10387 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10388 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10389 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10390 (text_end): Delete extern declaration.
10391
10392 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10393
10394 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10395 * blockframe.c (backtrace_below_main): Move to "frame.c".
10396 (frame_chain_valid): Delete check for backtrace_below_main.
10397 (_initialize_blockframe): Delete initialization, move ``set
10398 backtrace-below-main'' command to "frame.c".
10399 (do_flush_frames_sfunc): Delete function.
10400 * frame.c: Include "command.h" and "gdbcmd.h".
10401 (frame_type_from_pc): New function.
10402 (create_new_frame): Use frame_type_from_pc.
10403 (legacy_get_prev_frame): New function.
10404 (get_prev_frame): Rewrite. When an old style frame, call
10405 legacy_get_prev_frame. Otherwize, unwind the PC first.
10406 (_initialize_frame): Add ``set backtrace-below-main'' command.
10407 * Makefile.in (frame.o): Update dependencies.
10408
10409 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10410
10411 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10412 DEPRECATED_REGISTERS_INFO.
10413
10414 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10415
10416 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10417 Maintainers'. Update `Various Maintainers'.
10418
10419 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10420
10421 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10422 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10423 Suppress actual parameters when `-'.
10424 * gdbarch.h, gdbarch.c: Regenerate.
10425
10426 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10427
10428 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10429 code handling dummy frames.
10430
10431 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10432
10433 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10434 (struct frame_unwind): Add field pop.
10435 * frame.h (frame_pop): Declare.
10436 * frame.c (frame_saved_regs_pop): New function.
10437 (trad_frame_unwinder): Add frame_saved_regs_pop.
10438 (frame_pop): New function.
10439 * dummy-frame.c (dummy_frame_pop): New function.
10440 (discard_innermost_dummy): New function.
10441 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10442 (dummy_frame_unwind): Add dummy_frame_pop.
10443 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10444 * valops.c (hand_function_call): Ditto.
10445 * stack.c (return_command): Ditto.
10446
10447 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10448
10449 * cris-tdep.c: Fix function declaration indentation.
10450 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10451 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10452 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10453 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10454 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10455 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10456
10457 2003-01-18 Michael Chastain <mec@shout.net>
10458
10459 * README (Unpacking and Installation -- quick overview):
10460 Warn against ".../gdb-5.3/gdb/configure".
10461
10462 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10463
10464 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10465 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10466 (struct frame_unwind): Declare opaque.
10467 (dummy_frame_p): Declare function.
10468 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10469 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10470 * dummy-frame.c: Include "frame-unwind.h".
10471 (dummy_frame_p): New function.
10472 (dummy_frame_unwind): New variable.
10473 * frame.c: Include "frame-unwind.h".
10474 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10475 to use the new unwind field.
10476 (set_unwind_by_pc): Delete function.
10477 (create_new_frame, get_prev_frame): Set unwind field using
10478 frame_unwind_find_by_pc.
10479 (trad_frame_unwind, trad_frame_unwinder): New variables.
10480 * frame.h (trad_frame_unwind): Declare variable.
10481 (frame_id_unwind_ftype): Delete declaration.
10482 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10483 (struct frame_unwind): Declare opaque.
10484 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10485 register_unwind with a single unwind pointer.
10486 * frame-unwind.h, frame-unwind.c: New files.
10487 * Makefile.in (SFILES): Add frame-unwind.c.
10488 (frame_unwind_h): Define.
10489 (COMMON_OBS): Add frame-unwind.o.
10490 (frame-unwind.o): Specify dependencies.
10491 (frame.o, dummy-frame.o): Update dependencies.
10492
10493 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10494
10495 * ada-valprint.c: Eliminate PTR.
10496 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10497 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10498 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10499 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10500 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10501 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10502 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10503
10504 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10505
10506 * main.c (captured_main): Don't use PTR.
10507 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10508 * gdbtypes.c (lookup_primitive_typename): Ditto.
10509 (lookup_struct_elt_type): Ditto.
10510 * f-valprint.c (info_common_command): Ditto.
10511 (list_all_visible_commons): Ditto.
10512 * jv-typeprint.c (java_type_print_base): Ditto.
10513
10514 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10515 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10516 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10517 i386-interix-nat.c and i386-interix-tdep.c. Rename
10518 m68klinux-nat.c and m68klinux-tdep.c. Rename
10519 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10520 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10521 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10522 * main.c (captured_main): Use xfree, not free.
10523
10524 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10525
10526 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10527 ID back using a parameter.
10528 * frame.c (frame_id_unwind): Update call.
10529 (frame_saved_regs_id_unwind): Update.
10530 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10531 * dummy-frame.h (struct frame_id): Add opaque declaration.
10532 (dummy_frame_id_unwind): Update declaration.
10533
10534 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10535
10536 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10537
10538 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10539
10540 * MAINTAINERS (Stephen P. Smith): Updated email address.
10541
10542 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10543
10544 Fix PR gdb/898
10545 * breakpoint.c (until_break_command): Add new argument. Use it to
10546 decide whether to stop only at the current frame or not.
10547 * breakpoint.h (until_break_command): Update prototype.
10548 * infcmd.c (until_command): Add new argument to until_break_command
10549 call.
10550 (advance_command): New function.
10551 (_initialize_infcmd): Update help string for 'until' command.
10552 Add new 'advance' command.
10553
10554 2003-01-14 David Carlton <carlton@math.stanford.edu>
10555
10556 * linespec.c (decode_line_1): Normalize comments.
10557 (set_flags): Ditto.
10558 (locate_first_half): Ditto.
10559 (decode_compound): Ditto.
10560 (symtab_from_filename): Ditto.
10561 (decode_all_digits): Ditto.
10562 (decode_dollar): Ditto.
10563 (find_methods): Ditto.
10564 (find_toplevel_char): Ditto.
10565
10566 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10567
10568 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10569 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10570 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10571 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10572 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10573 * language.c, language.h, m32r-tdep.c: Update copyright.
10574 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10575 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10576 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10577 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10578 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10579 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10580
10581 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10582
10583 * stabsread.h (process_later, resolve_cfront_continuation):
10584 Obsolete.
10585 Update copyright years.
10586 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10587 Update copyright year.
10588 * dbxread.c(struct cont_elem): Obsolete.
10589 (process_later, process_now): Obsolete functions.
10590 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10591 Update copyright year.
10592 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10593 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10594 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10595 (parse_partial_symbols): Obsolete cfront support.
10596 * stabsread.c
10597 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10598 macros.
10599 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10600 read_cfront_baseclasses, read_cfront_member_functions,
10601 resolve_cfront_continuation,read_cfront_static_fields,
10602 copy_cfront_struct_fields): Obsolete functions.
10603 (define_symbol, read_one_struct_field): Obsolete cfront support.
10604 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10605 Update Copyright year.
10606
10607 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10608
10609 * stack.c (print_frame_info, print_stack_frame_base_stub,
10610 print_stack_frame_base, show_and_print_stack_frame_stub,
10611 show_and_print_stack_frame, print_only_stack_frame_stub,
10612 print_only_stack_frame): Delete functions.
10613 (print_stack_frame_stub): Call print_frame_info instead of
10614 print_frame_info_base.
10615 (print_frame_info_base): Rename to print_frame_info.
10616 (backtrace_command_1): Call print_frame_info, instead of
10617 print_frame_info_base.
10618 (current_frame_command): Call print_stack_frame, instead of
10619 print_only_stack_frame.
10620 (frame_command): Call print_stack_frame, instead of
10621 show_and_print_stack_frame.
10622 (up_command): Ditto.
10623 (down_command): Ditto.
10624 * frame.h (print_only_stack_frame): Delete prototype.
10625 * infrun.c (normal_stop): Call print_stack_frame, instead of
10626 show_and_print_stack_frame.
10627 * thread.c (info_threads_command): Call print_stack_frame, instead
10628 of print_only_stack_frame.
10629
10630 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10631
10632 * README (Graphical interface to GDB): Update URL. Point at
10633 gdb/links/.
10634
10635 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10636 version match.
10637
10638 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10639
10640 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10641 lines.
10642
10643 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10644
10645 * thread-db.c (attach_thread): Prototype.
10646 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10647 thread information (ti), and valid flags (th_valid, ti_valid).
10648 (attach_thread): Move target_pid_to_str call to after the thread
10649 is added to GDB's list. Initialize the cache.
10650 (thread_get_info_callback, thread_db_map_id2thr)
10651 (thread_db_get_info): New functions.
10652 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10653 (thread_db_store_registers, thread_db_thread_alive)
10654 (thread_db_get_thread_local_address): Use them.
10655 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10656 of calling error() for threads in unknown state.
10657
10658 (clear_lwpid_callback): New function.
10659 (thread_db_resume): Use it to clear the cache.
10660
10661 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10662
10663 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10664 (resume_callback): Remove dead code.
10665
10666 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10667
10668 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10669 predicate.
10670 * gdbarch.h, gdbarch.c: Regenerate.
10671 * stack.c (frame_info): Only initialize the saved registers when
10672 FRAME_INIT_SAVED_REGS_P.
10673 * frame.c (frame_saved_regs_register_unwind): Assert
10674 FRAME_INIT_SAVED_REGS_P.
10675 (deprecated_generic_get_saved_register): Ditto.
10676
10677 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10678
10679 * source.c (openp): Squelch warning about "filename".
10680
10681 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10682
10683 * source.c (openp): If the file does not exist don't necessarily
10684 search the path.
10685
10686 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10687
10688 Fix PR gdb/872.
10689 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10690 (integer_types_same_name_p): New function.
10691 (rank_one_type): Use it.
10692 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10693
10694 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10695
10696 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10697 variables.
10698 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10699 * configure.in: Add --with-sysroot.
10700 * configure: Regenerated.
10701 * main.c (gdb_sysroot): New variable.
10702 (captured_main): Initialize gdb_sysroot.
10703 * defs.h (gdb_sysroot): New extern declaration.
10704 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10705
10706 2003-01-12 Michael Chastain <mec@shout.net>
10707
10708 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10709
10710 2003-01-12 Michael Chastain <mec@shout.net>
10711
10712 * top.c (print_gdb_version): Bump copyright year to 2003.
10713
10714 2003-01-12 David Carlton <carlton@bactrian.org>
10715
10716 * linespec.c (symtab_from_filename): Rename variable 's' to
10717 'file_symtab'.
10718
10719 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10720
10721 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10722 dummy frame.
10723 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10724
10725 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10726
10727 * d10v-tdep.c: Include "gdb_assert.h".
10728 (d10v_store_return_value): Rewrite to match current interface.
10729 (d10v_extract_struct_value_address): Ditto.
10730 (d10v_extract_return_value): Ditto.
10731 (d10v_gdbarch_init): Set store_restore_value,
10732 extract_struct_value_address and extract_return_value.
10733
10734 2003-01-12 J. Brobecker <brobecker@gnat.com>
10735
10736 * hpread.c (set_namestring): New procedure replacing the
10737 SET_NAMESTRING macro.
10738 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10739 by calls to set_namestring.
10740
10741 2003-01-11 J. Brobecker <brobecker@gnat.com>
10742
10743 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10744 a compilation warning.
10745 (hpread_process_one_debug_symbol): Likewise.
10746
10747 2003-01-10 David Carlton <carlton@math.stanford.edu>
10748
10749 * linespec.c (decode_line_1): Rename variable 's' to
10750 'file_symtab'.
10751 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10752 (decode_dollar): Ditto.
10753 (decode_variable): Ditto.
10754 (symbol_found): Ditto.
10755
10756 2003-01-09 Michael Chastain <mec@shout.net>
10757
10758 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10759
10760 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10761
10762 * win32-nat.c (set_process_privilege): New function.
10763 (child_attach): Call set_process_privilege() to enable the
10764 SE_DEBUG_NAME user privilege if available in process token.
10765
10766 2003-01-10 J. Brobecker <brobecker@gnat.com>
10767
10768 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10769 compilation error in the previous revision.
10770
10771 2003-01-09 David Carlton <carlton@math.stanford.edu>
10772
10773 * linespec.c: Update copyright.
10774
10775 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10776
10777 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10778 than inferior_ptid.
10779 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10780
10781 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10782
10783 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10784 Update comments.
10785 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10786 (frame_saved_regs_zalloc): Update.
10787 (frame_saved_regs_register_unwind): Update.
10788 (create_new_frame): Update.
10789 (get_prev_frame): Update.
10790 (frame_extra_info_zalloc): Update.
10791 (deprecated_get_frame_saved_regs): Update.
10792 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10793 * cris-tdep.c: Update comment.
10794
10795 * somsolib.h: Fix function indentation.
10796 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10797 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10798 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10799 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10800 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10801
10802 * infrun.c (follow_fork): Use ISO C definition.
10803 * expprint.c (print_subexp): Use xfree instead of free.
10804 * charset.c: Include "gdb_string.h" instead of <string.h>.
10805 (register_iconv_charsets): Use ISO C definition.
10806 (host_charset, target_charset): Ditto.
10807 * Makefile.in (charset.o): Update dependencies.
10808 (mi-cmd-env.o): Update dependencies.
10809
10810 2003-01-08 Andrew Cagney <cagney@redhat.com>
10811
10812 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10813 get_frame_base.
10814
10815 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10816
10817 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10818 build directories. Save edited gdb output in Mbuild.log. If a
10819 build fails, remove any final GDB executable.
10820
10821 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10822
10823 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10824 replacing hex constants with function names and stripping leading
10825 file name directory prefixes.
10826
10827 2003-01-08 Andrew Cagney <cagney@redhat.com>
10828
10829 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10830 get_frame_base.
10831
10832 2003-01-08 David Carlton <carlton@math.stanford.edu>
10833
10834 * linespec.c (decode_line_1): Move code into decode_variable.
10835 (decode_variable): New function.
10836
10837 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10838
10839 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10840
10841 2003-01-08 Andrew Cagney <cagney@redhat.com>
10842
10843 * cris-tdep.c (cris_frame_init_saved_regs): Use
10844 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10845 saved_regs buffer.
10846 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10847 (sh64_nofp_frame_init_saved_regs): Ditto.
10848 (sh_fp_frame_init_saved_regs): Ditto.
10849 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10850 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10851 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10852 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10853
10854 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10855
10856 * minsyms.c (lookup_minimal_symbol): Update comment.
10857 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10858 (lookup_minimal_symbol_solib_trampoline): Likewise.
10859
10860 2003-01-08 Andrew Cagney <cagney@redhat.com>
10861
10862 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10863 frame_relative_level.
10864
10865 * alpha-tdep.c: Use get_frame_extra_info.
10866 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10867 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10868 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10869 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10870
10871 * alpha-tdep.c: Use get_next_frame.
10872 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10873 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10874 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10875 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10876 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10877 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10878 * xstormy16-tdep.c: Ditto.
10879
10880 2003-01-07 Andrew Cagney <cagney@redhat.com>
10881
10882 * alpha-tdep.c: Use get_frame_base.
10883 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10884 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10885 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10886 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10887 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10888 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10889 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10890 * config/sparc/tm-sparc.h: Ditto.
10891
10892 2003-01-07 Andrew Cagney <cagney@redhat.com>
10893
10894 * frame.c (deprecated_get_frame_context): New function.
10895 (deprecated_set_frame_context): New function.
10896 * frame.h (deprecated_get_frame_context): Declare.
10897 (deprecated_set_frame_context): Declare.
10898 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10899 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10900
10901 2003-01-07 Andrew Cagney <cagney@redhat.com>
10902
10903 * frame.c (deprecated_set_frame_next_hack): New function.
10904 (deprecated_set_frame_prev_hack): New function.
10905 * frame.h (deprecated_set_frame_next_hack): Declare.
10906 (deprecated_set_frame_prev_hack): Declare.
10907 * mcore-tdep.c (analyze_dummy_frame): Use
10908 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10909 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10910
10911 2003-01-07 David Carlton <carlton@math.stanford.edu>
10912
10913 * linespec.c (decode_line_1): Move code into decode_dollar.
10914 (decode_dollar): New function.
10915
10916 2003-01-07 Andrew Cagney <cagney@redhat.com>
10917
10918 * arm-tdep.c (arm_init_extra_frame_info): Use
10919 deprecated_update_frame_base_hack.
10920 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10921 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10922 (fix_frame_pointer): Ditto.
10923 (mn10300_analyze_prologue): Ditto.
10924
10925 2003-01-07 Andrew Cagney <cagney@redhat.com>
10926
10927 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10928 extra_info using frame_extra_info_zalloc.
10929 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10930 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10931 (sh64_init_extra_frame_info): Ditto.
10932 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10933 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10934 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10935 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10936 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10937 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10938 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10939 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10940 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10941 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10942 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10943 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10944
10945 * mn10300-tdep.c (analyze_dummy_frame): Use
10946 deprecated_set_frame_extra_info_hack.
10947 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10948
10949 2003-01-07 J. Brobecker <brobecker@gnat.com>
10950
10951 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10952 class is not scText. These do not define "real" procedures.
10953 (parse_partial_symbols): Likewise.
10954
10955 2003-01-06 Michael Snyder <msnyder@redhat.com>
10956
10957 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10958
10959 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10960
10961 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10962 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10963 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10964 deprecated_frame_xmalloc_with_cleanup.
10965 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10966 deprecated_frame_xmalloc.
10967 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10968 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10969
10970 2003-01-06 Andrew Cagney <cagney@redhat.com>
10971
10972 * x86-64-linux-tdep.c: Include "osabi.h".
10973 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10974
10975 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10976
10977 2003-01-06 Andrew Cagney <cagney@redhat.com>
10978
10979 * MAINTAINERS (Target Instruction Set Architectures): Update
10980 arm-elf. Can be built with -Werror, has been multiarched.
10981
10982 * value.h (unpack_long): Make buffer parameter constant.
10983 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10984 * scm-lang.h (scm_parse): Ditto.
10985 * defs.h (extract_typed_address, extract_address): Ditto.
10986 (extract_long_unsigned_integer): Ditto.
10987 * inferior.h (unsigned_pointer_to_address): Ditto.
10988 (signed_pointer_to_address): Ditto.
10989 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10990 * gdbarch.h, gdbarch.c: Regenerate.
10991 * findvar.c (extract_long_unsigned_integer): Update.
10992 (extract_address): Update.
10993 (extract_typed_address): Update.
10994 (unsigned_pointer_to_address): Update.
10995 * values.c (unpack_long): Update.
10996 (unpack_double): Update.
10997 (unpack_pointer): Update.
10998 (unpack_field_as_long): Update.
10999 * d10v-tdep.c (d10v_pointer_to_address): Update.
11000 * avr-tdep.c (avr_pointer_to_address): Update.
11001 * scm-lang.c (scm_unpack): Update.
11002 * findvar.c (signed_pointer_to_address): Update.
11003
11004 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11005
11006 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11007 since it is in i386-tdep.c.
11008
11009 2003-01-06 J. Brobecker <brobecker@gnat.com>
11010
11011 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11012 failure introduced in the previous change.
11013
11014 2003-01-05 Michael Chastain <mec@shout.net>
11015
11016 * README: Remove references to deleted remote-*.c files:
11017 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11018 remote-nrom.c, remote-os9k.c, remote-udi.c.
11019
11020 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11021
11022 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11023 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11024 i386_get_longjmp_target.
11025
11026 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11027
11028 * arm-tdep.c (prologue_cache): Change to a pointer.
11029 (_initialize_arm_tdep): Allocate prologue_cache.
11030 (check_prologue_cache): Update.
11031 (save_prologue_cache): Update.
11032 (arm_gdbarch_init): Update.
11033
11034 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11035
11036 * stabsread.c (update_method_name_from_physname): Call complaint()
11037 instead of error.
11038
11039 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11040
11041 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11042 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11043 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11044
11045 * blockframe.c: Include "gdbcmd.h" and "command.h".
11046 (backtrace_below_main): New variable.
11047 (file_frame_chain_valid, func_frame_chain_valid)
11048 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11049 (generic_func_frame_chain_valid): Remove functions.
11050 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11051 (_initialize_blockframe): New function.
11052 * Makefile.in (blockframe.o): Update dependencies.
11053 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11054 comment. Call frame_chain_valid ().
11055 * frame.h: Remove old prototypes. Add prototype for
11056 frame_chain_valid and update comments to match.
11057 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11058 Remove old comment.
11059 * gdbarch.h: Regenerated.
11060 * gdbarch.c: Regenerated.
11061
11062 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11063 set_gdbarch_frame_chain_valid.
11064 * avr-tdep.c (avr_gdbarch_init): Likewise.
11065 * cris-tdep.c (cris_gdbarch_init): Likewise.
11066 * frv-tdep.c (frv_gdbarch_init): Likewise.
11067 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11068 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11069 (i386_nw_init_abi): Likewise.
11070 (i386_gdbarch_init): Likewise.
11071 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11073 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11074 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11075 * mips-tdep.c (mips_gdbarch_init): Likewise.
11076 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11077 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11078 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11079 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11080 * s390-tdep.c (s390_gdbarch_init): Likewise.
11081 * sh-tdep.c (sh_gdbarch_init): Likewise.
11082 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11083 * v850-tdep.c (v850_gdbarch_init): Likewise.
11084 * vax-tdep.c (vax_gdbarch_init): Likewise.
11085 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11086
11087 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11088 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11089 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11090 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11091 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11092 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11093 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11094 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11095
11096 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11097
11098 * Makefile.in (acconfig_h): Remove incorrect macro.
11099 (config_h): Define.
11100 (osabi.o): Update dependencies.
11101 * configure.tgt: Set gdb_osabi based on target triplet.
11102 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11103 * configure: Regenerated.
11104 * config.in: Regenerated.
11105 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11106 (GDB_OSABI_DEFAULT): Define if not already defined.
11107 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11108 (set_osabi_string): New variables.
11109 (gdbarch_register_osabi): Add new OS ABI to
11110 gdb_osabi_available_names.
11111 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11112 (set_osabi, show_osabi): New functions.
11113 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11114
11115 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11116
11117 * arch-utils.c (gdbarch_info_init): Set osabi to
11118 GDB_OSABI_UNINITIALIZED.
11119 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11120 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11121 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11122 * gdbarch.c: Regenerated.
11123 * gdbarch.h: Regenerated.
11124 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11125 there's no BFD.
11126 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11127 * osabi.h (enum gdb_osabi): Move to defs.h.
11128 (gdbarch_init_osabi): Update prototype.
11129 * defs.h (enum gdb_osabi): Moved here.
11130 * Makefile.in: Update dependencies.
11131
11132 * alpha-tdep.h: Don't include "osabi.h".
11133 (struct gdbarch_tdep): Remove osabi member.
11134 * alpha-tdep.c: Include "osabi.h".
11135 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11136 iterate over arches. Update call to gdbarch_init_osabi.
11137 (alpha_dump_tdep): Don't dump osabi.
11138 * alpha-linux-tdep.c: Include "osabi.h".
11139 * alpha-osf1-tdep.c: Include "osabi.h".
11140 * alphafbsd-tdep.c: Include "osabi.h".
11141 * alphanbsd-tdep.c: Include "osabi.h".
11142
11143 * arm-tdep.h: Don't include "osabi.h".
11144 (struct gdbarch_tdep): Remove osabi member.
11145 * arm-tdep.c: Include "osabi.h".
11146 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11147 iterate over arches. Update call to gdbarch_init_osabi.
11148 (arm_dump_tdep): Don't dump osabi.
11149 * arm-linux-tdep.c: Include "osabi.h".
11150 * armnbsd-tdep.c: Include "osabi.h".
11151
11152 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11153 Update call to gdbarch_init_osabi.
11154
11155 * i386-tdep.h: Don't include "osabi.h".
11156 (struct gdbarch_tdep): Remove osabi member.
11157 * i386-tdep.c: Include "osabi.h".
11158 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11159 iterate over arches. Update call to gdbarch_init_osabi.
11160 (i386_dump_tdep): Don't dump osabi.
11161 * i386-linux-tdep.c: Include "osabi.h".
11162 * i386-sol2-tdep.c: Include "osabi.h".
11163 * i386bsd-tdep.c: Include "osabi.h".
11164 * i386gnu-tdep.c: Include "osabi.h".
11165 * i386ly-tdep.c: Include "osabi.h".
11166 * i386nbsd-tdep.c: Include "osabi.h".
11167 * i386obsd-tdep.c: Include "osabi.h".
11168
11169 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11170 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11171 check osabi when iterating over arches. Update call to
11172 gdbarch_init_osabi.
11173 (mips_dump_tdep): Don't dump osabi.
11174
11175 * ns32k-tdep.h: Don't include "osabi.h".
11176 (struct gdbarch_tdep): Remove.
11177 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11178 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11179 allocate tdep. Update call to gdbarch_init_osabi.
11180 (ns32k_dump_tdep): Remove.
11181 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11182 * ns32knbsd-tdep.c: Include "osabi.h".
11183
11184 * ppc-tdep.h: Don't include "osabi.h".
11185 (struct gdbarch_tdep): Remove osabi member.
11186 * rs6000-tdep.c: Include "osabi.h".
11187 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11188 osabi when iterating over arches. Update call to
11189 gdbarch_init_osabi.
11190 (rs6000_dump_tdep): Don't dump osabi.
11191 * ppc-linux-tdep.c: Include "osabi.h".
11192 * ppcnbsd-tdep.c: Include "osabi.h".
11193
11194 * sh-tdep.h: Don't include "osabi.h".
11195 (struct gdbarch_tdep): Remove osabi member.
11196 * sh-tdep.c: Include "osabi.h".
11197 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11198 iterate over arches. Update call to gdbarch_init_osabi.
11199 (sh_dump_tdep): Don't dump osabi.
11200 * shnbsd-tdep.c: Include "osabi.h".
11201
11202 * sparc-tdep.c: Include "osabi.h".
11203 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11204 iterate over arches. Update call to gdbarch_init_osabi.
11205 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11206 tdep structure.
11207
11208 * vax-tdep.h: Don't include "osabi.h".
11209 (struct gdbarch_tdep): Remove.
11210 * vax-tdep.c: Include "osabi.h".
11211 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11212 iterate over arches. Don't allocate tdep. Update call
11213 to gdbarch_init_osabi.
11214 (vax_dump_tdep): Remove.
11215 (_initialize_vax_tdep): Update call to gdbarch_register.
11216
11217 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11218
11219 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11220 entirely.
11221 (breakpoint_re_set_one): Don't fetch the value for a disabled
11222 watchpoint.
11223
11224 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11225
11226 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11227 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11228 (COERCE_FLOAT_TO_DOUBLE): Remove.
11229 * gdbarch.c: Regenerate.
11230 * gdbarch.h: Regenerate.
11231 * Makefile.in: Remove value_h from gdbarch_h.
11232 * valops.c (coerce_float_to_double): New variable.
11233 (default_coerce_float_to_double): Remove.
11234 (standard_coerce_float_to_double): Remove.
11235 (value_arg_coerce): Use coerce_float_to_double.
11236 (_initialize_valops): Add "set coerce-float-to-double".
11237 * value.h (default_coerce_float_to_double): Remove prototype.
11238 (standard_coerce_float_to_double): Remove prototype.
11239
11240 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11241 prototyped.
11242 * mdebugread.c (parse_symbol): Likewise.
11243 * stabsread.c (define_symbol): Mark all functions as prototyped.
11244
11245 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11246 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11247 set_gdbarch_coerce_float_to_double.
11248 * arm-tdep.c (arm_gdbarch_init): Likewise.
11249 * frv-tdep.c (frv_gdbarch_init): Likewise.
11250 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11251 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11252 * mips-tdep.c (mips_gdbarch_init): Likewise.
11253 (mips_coerce_float_to_double): Remove.
11254 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11255 (rs6000_coerce_float_to_double): Remove.
11256 * s390-tdep.c (s390_gdbarch_init): Likewise.
11257 * sh-tdep.c (sh_gdbarch_init): Likewise.
11258 (sh_coerce_float_to_double): Remove.
11259 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11260 (sparc_coerce_float_to_double): Remove.
11261 * v850-tdep.c (v850_gdbarch_init): Likewise.
11262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11263 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11264 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11265 (hppa_coerce_float_to_double): Remove prototype.
11266 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11267
11268 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11269
11270 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11271
11272 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11273
11274 Suggested by Stewart Brown <sb24@avaya.com>:
11275 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11276 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11277 (c_type_print_varspec_suffix): Likewise.
11278
11279 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11280
11281 * configure.in: Don't set and AC_SUBST SUBDIRS.
11282 * configure: Regenerated.
11283
11284 * configure.in: Remove code dealing with shared libraries.
11285 * Makefile.in: Remove HLDFLAGS and HLDENV.
11286 * configure: Regenerated.
11287
11288 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11289
11290 * frame.c (deprecated_frame_xmalloc): New function.
11291 (deprecated_set_frame_saved_regs_hack): New function.
11292 (deprecated_set_frame_extra_info_hack): New function.
11293 * frame.h (deprecated_frame_xmalloc): Declare.
11294 (deprecated_set_frame_saved_regs_hack): Declare.
11295 (deprecated_set_frame_extra_info_hack): Declare.
11296
11297 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11298
11299 * configure.in: Move code that provides the --enable-gdbtk option
11300 right after the code that handles the --enable-tui option, and
11301 polish it somewhat.
11302 * configure: Regenerated.
11303
11304 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11305 AC_CHECK_FUNCS and remove the old check for pread64.
11306 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11307 * acconfig.h (_GNU_SOURCE): Add.
11308 (HAVE_PREAD64): Remove.
11309 * configure, aclocal.m4, config.in: Regenerated.
11310
11311 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11312
11313 * alpha-tdep.c: Use get_frame_saved_regs.
11314 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11315 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11316 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11317 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11318 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11319
11320 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11321
11322 * configure.in: Remove all use of the SUBDIRS variable; add
11323 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11324 code providing the --enable-multi-ice option, and move it right in
11325 front of the code that checks whether gdbserver is supported.
11326 Polish that too.
11327 * configure: Regenerated.
11328 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11329 @SUBDIRS@.
11330
11331 2003-01-03 Andrew Cagney <cagney@redhat.com>
11332
11333 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11334 * avr-tdep.c, cris-tdep.c: Ditto.
11335 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11336 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11337
11338 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11339
11340 * configure.in: Remove --enable-netrom option.
11341 * configure: Regenerated.
11342
11343 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11344
11345 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11346 declaration for `struct re_pattern_buffer' instead.
11347 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11348
11349 2003-01-03 J. Brobecker <brobecker@gnat.com>
11350
11351 * mdebugread.c (parse_symbol): Count until the stEnd matching
11352 the structure name.
11353
11354 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11355
11356 * configure.in: Remove --with-cpu option.
11357 subscripts. Remove evil changequotes here.
11358 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11359 * config.in, configure: Regenerated.
11360
11361 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11362 * configure.in: Cleanup section that sources GDB and BFD configure
11363 subscripts. Remove evil changequotes here.
11364 * config.in, configure: Regenerated.
11365
11366 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11367
11368 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11369 frame accessor methods.
11370 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11371 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11372 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11373 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11374 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11375 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11376 * z8k-tdep.c: Ditto.
11377
11378 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11379
11380 * configure.in: Remove UI_OUT configuration code.
11381 * ada-lang.c: Update assuming UI_OUT is always true.
11382 * Makefile.in (UIOUT_CFLAGS): Remove.
11383 * configure: Regenerated.
11384 * TODO: Remove blurb about elimination of -DUI_OUT.
11385
11386 * configure.in: Move code that provides the --enable-gdbcli,
11387 --enable-gdbmi options right before the code that handles the
11388 --enable-tui option. Polish a bit.
11389 * configure: Regenerated.
11390
11391 * configure.in: Rewrite check for GNU regex and the
11392 --without-included regex option, and move it into the "Checks for
11393 library functions" section. This makes us use the system regex
11394 again by default on systems with version 2 of the GNU C library.
11395 This was apparently broken.
11396 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11397 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11398 * config.in, configure: Regenerated.
11399
11400 * configure.in: Move code that provides the --enable-tui option
11401 before the "Checks for libraries" section. Polish the code
11402 somewhat and set need_curses to yes if we build the TUI. Rewrite
11403 code that looks for a library providing termcap functionality to
11404 match more closely what's done in the Readline library, and move
11405 it into to the "Checks for libraries" section.
11406 * configure: Regenerated.
11407 * Makefile.in (TERMCAP): Remove variable.
11408 * config/i386/go32.mh (TERMCAP): Remove variable.
11409
11410 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11411
11412 * MAINTAINERS: Mention gdb_mbuild.sh.
11413 * gdb_mbuild.sh: Rewrite.
11414
11415 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11416
11417 * configure.in: Fix typo in last change.
11418 * config.in, configure: Regenerated.
11419
11420 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11421
11422 * valarith.c (value_binop): Delete obsolete code and comments.
11423 * configure.host: Ditto.
11424 * buildsym.h (make_blockvector): Ditto.
11425 * buildsym.c (make_blockvector): Ditto.
11426 * defs.h (enum language): Ditto.
11427 (chill_demangle): Ditto.
11428 * elfread.c (elf_symtab_read): Ditto.
11429 * dwarfread.c (CHILL_PRODUCER): Ditto.
11430 (set_cu_language): Ditto.
11431 (handle_producer): Ditto.
11432 * expprint.c (print_subexp): Ditto.
11433 * gdbtypes.c (chill_varying_type): Ditto.
11434 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11435 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11436 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11437 (chill_varying_type): Ditto.
11438 * language.h (_LANG_chill): Ditto.
11439 * language.c (binop_result_type, integral_type): Ditto.
11440 (character_type, string_type, structured_type): Ditto.
11441 (lang_bool_type, binop_type_check): Ditto.
11442 * stabsread.h (os9k_stabs): Ditto.
11443 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11444 (define_symbol, read_type, read_struct_fields): Ditto.
11445 (read_array_type, read_enum_type, read_huge_number): Ditto.
11446 (read_range_type, start_stabs): Ditto.
11447 * symfile.c (init_filename_language_table): Ditto.
11448 (add_psymbol_with_dem_name_to_list): Ditto.
11449 * symtab.c (symbol_init_language_specific): Ditto.
11450 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11451 * symtab.h (struct general_symbol_info): Ditto.
11452 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11453 * typeprint.c (typedef_print): Ditto.
11454 * utils.c (fprintf_symbol_filtered): Ditto.
11455 * valops.c (value_cast, search_struct_field, value_slice): Delete
11456 obsolete code.
11457 (varying_to_slice): Delete function.
11458 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11459 (varying_to_slice): Delete declaration.
11460 * MAINTAINERS: Update.
11461
11462 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11463
11464 * configure.in: Reorganize "Checks for library functions section"
11465 a bit. Remove check for `btowc' and `isascii' functions.
11466 * configure: Regenerated.
11467
11468 * acconfig.h (_MSE_INT_H): Remove.
11469 * configure.in: Create "Checks for header files" section, and move
11470 appropriate tests there. Don't check for objlist.h, wchar.h,
11471 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11472 misdetection fix. Also add "Checks for types", "Checks for
11473 compiler characteristics" and "Checks for library functions"
11474 sections.
11475 * config.in, configure: Regenerated.
11476
11477 * configure.in: Create "Checks for programs" section, and move
11478 appropriate tests there.
11479
11480 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11481
11482 * configure.in: Create "Checks for libraries" section, and move
11483 appropriate tests there. Cleanup check for wctype in libw. Use
11484 AC_SEARCH_LIBS to see whether we need libsocket.
11485 * configure: Regenerated.
11486
11487 For older changes see ChangeLog-2002
11488 \f
11489 Local Variables:
11490 mode: change-log
11491 left-margin: 8
11492 fill-column: 74
11493 version-control: never
11494 End:
This page took 0.788029 seconds and 4 git commands to generate.