]> Git Repo - binutils.git/blame - gdb/ChangeLog
Fix description of comment character for PPC.
[binutils.git] / gdb / ChangeLog
CommitLineData
2ef47cd0
DJ
12003-09-06 Daniel Jacobowitz <[email protected]>
2
3 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
4 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
5
6f4492c8
MK
62003-09-06 Mark Kettenis <[email protected]>
7
8 * sol-thread.c: Include "gdb_string.h".
9
d3420b2f
MK
102003-09-03 Mark Kettenis <[email protected]>
11
12 * gcore.c: Reorder include files in alphabetical order. Include
13 "gdb_assert.h". Various coding style fixes.
14 (derive_stack_segment, derive_heap_segment): Replace check for
15 non-null BOTTOM and TOP with gdb_assert.
16 (derive_heap_segment): Replace check for successful creation of
17 ZERO with gdb_assert.
18 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
19
5220ea4c
AC
202003-09-04 Andrew Cagney <[email protected]>
21
22 * thread-db.c (verbose_dlsym): New function.
23 (thread_db_load): Use verbose_dlsym
24 (thread_db_new_objfile): Print that libthread_db was loaded, and
25 that thread debugging was enabled.
26
6e8c2c06
AC
272003-09-04 Andrew Cagney <[email protected]>
28
29 * configure.tgt: Add "mips64*-*-*" target. Delete
30 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
31 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
32 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
33 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
34 mips*-sony-*, and mips64*-*-elf* targets.
35 * config/mips/embedl.mt: Delete file.
36 * config/mips/embedl64.mt: Delete file.
37 * config/mips/mips.mt: Delete file.
38 * config/mips/mips64.mt: Delete file.
39 * config/mips/tm-embed.h: Delete file.
40 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
41 * config/mips/embed64.mt: Delete out-of-date comment.
42
3a3bc038
AC
432003-09-04 Andrew Cagney <[email protected]>
44
45 * hppa-tdep.c (hppa_gdbarch_init): Set
46 "have_nonsteppable_watchpoint".
47 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
48 * mips-tdep.c (mips_dump_tdep): Do not print
49 HAVE_NONSTEPPABLE_WATCHPOINT.
50 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
51 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
52 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
53 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
54
a957e642
CV
552003-09-04 Corinna Vinschen <[email protected]>
56
57 * breakpoint.c (watchpoint_check): Remove accidentally checked in
58 unused code. Add comment.
59
a6fbcf2f
CV
602003-09-04 Corinna Vinschen <[email protected]>
61
62 * breakpoint.c (watchpoint_check): Check for pc being in an
63 epilogue if watchpoint frame couldn't be found.
64
c14a44d5
AC
652003-09-04 Andrew Cagney <[email protected]>
66
67 * Makefile.in: Re-generate all dependencies.
68
f6c40618
AC
692003-09-03 Andrew Cagney <[email protected]>
70
71 * arch-utils.h (legacy_print_insn): Delete declaration.
72 * arch-utils.c (legacy_print_insn): Delete function.
73 * disasm.c (deprecated_tm_print_insn_info): Delete.
74 (_initialize_disasm): Delete function, contained code initializing
75 deprecated_tm_print_insn_info.
76 * gdbarch.sh (deprecated_tm_print_insn): Delete.
77 (deprecated_tm_print_insn_info): Delete.
78 (TARGET_PRINT_INSN): Do not provide a default.
79 * gdbarch.h, gdbarch.c: Re-generate.
80
242e8be5
AC
812003-09-03 Andrew Cagney <[email protected]>
82
83 * disasm.c (fprintf_disasm): New function.
84 (gdb_disassemble_info): Call "init_disassemble_info", instead of
85 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
86 reverts 2003-08-14 change.
87 (_initialize_disasm): Call "init_disassemble_info", instead of
88 INIT_DISASSEMBLE_INFO_NO_ARCH.
89
3ffc3dda
MS
902003-09-03 Michael Snyder <[email protected]>
91
92 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
93
52d16ba8
AC
942003-09-03 Andrew Cagney <[email protected]>
95
96 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
97 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
98 * symfile.c (syms_from_objfile): Update.
99 (reread_symbols): `Update
100 * exec.c (exec_file_attach): Update.
101 (exec_file_attach): Update.
102 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
103 2003-08-29 change.
104 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
105
eb5492fa
DJ
1062003-09-03 Daniel Jacobowitz <[email protected]>
107
108 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
109 trad-frame.h.
110 (arm_get_cache): Delete macro.
111 (struct arm_prologue_cache): Update comments. Make saved_regs into
112 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
113 to prev_sp.
114 (thumb_scan_prologue): Update for cache changes. Don't call
115 DEPRECATED_PC_IN_CALL_DUMMY.
116 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
117 argument and use it in desperation search for our prologue. Do not
118 search past the specified PC.
119 (arm_make_prologue_cache): Simplify.
120
121 (arm_prologue_this_id, arm_prologue_prev_register)
122 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
123 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
124 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
125 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
126 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
127
128 (arm_frame_chain_valid, arm_find_callers_reg)
129 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
130 (arm_pop_frame): Delete obsolete methods.
131 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
132
133 (arm_gdbarch_init): Update for new frame methods. Register prologue
134 and sigtramp unwinders. Set the default frame base method.
135
136 * Makefile.in (arm-tdep.o): Update dependencies.
137 * varobj.c (find_frame_addr_in_frame_chain): Call
138 get_frame_base_address.
139 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
140
24de872b
DJ
1412003-09-03 Daniel Jacobowitz <[email protected]>
142
143 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
144 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
145 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
146 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
147 Take NEXT_FRAME and CACHE arguments. Call
148 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
149 Set unwound_pc in CACHE instead of modifying the frame argument.
150 Don't bother checking the frame type when looking for sigtramp
151 frames.
152 (arm_make_prologue_cache, arm_frame_chain)
153 (arm_init_extra_frame_info): New functions.
154
9b8d791a
DJ
1552003-09-03 Daniel Jacobowitz <[email protected]>
156
157 * arm-tdep.c (arm_get_cache): Define.
158 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
159 unwound_sp, unwound_pc, and saved_regs.
160 (thumb_scan_prologue): Take a cache instead of the frame.
161 (arm_scan_prologue): Likewise.
162 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
163 instead of a temporary frame.
164 (arm_init_extra_frame_info): Allocate and use a cache.
165 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
166
7ee3275f
AC
1672003-09-03 Andrew Cagney <[email protected]>
168
169 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
170 * config/mips/wince.mt (TM_CLIBS): Ditto.
171 * config/sh/wince.mt (TM_CLIBS): Ditto.
172 * config/pa/hppa64.mt (TM_CLIBS): Delete.
173 * config/sparc/sp64.mt (CC): Delete.
174
57b29be7
AC
1752003-09-03 Andrew Cagney <[email protected]>
176
177 * defs.h: Do not include "arch-utils.h".
178 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
179 GDB_MULTI_ARCH_PURE.
180 * configure.in (GDB_MULTI_ARCH): Do not define.
181 * configure, config.in: Regenerate.
182 * configure.tgt: Do not set variable "gdb_multi_arch".
183 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
184 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
185 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
186 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
187 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
188 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
189 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
190 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
191 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
192 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
193 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
194 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
195 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
196 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
197 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
198 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
199 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
200 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
201
12e035e2
MC
2022003-08-30 Michael Chastain <[email protected]>
203
204 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
205 * config/m68k/nm-hp300hpux.h: Delete.
206 * config/m68k/tm-hp300hpux.h: Delete.
207 * config/m68k/xm-hp300hpux.h: Delete.
208 * config/m68k/xm-hp300bsd.h: Delete.
209 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
210 tm-hp300hpux.h, xm-hp300hpux.h.
211 * somsolib.c: Remove comment about hp300 shared libraries.
212
bda34dc2
MK
2132003-08-31 Mark Kettenis <[email protected]>
214
5bca7895
MK
215 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
216 Only define PTRACE_GET_THREAD_AREA is not already defined.
217 Various style fixes in code and comments and some additional
218 spelling fixes in comments. Move after functions dealing with
219 debug registers.
220 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
221 Fix coding-style.
222
bda34dc2
MK
223 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
224 frame_unwind_register_unsigned instead of
225 frame_unwind_unsigned_register.
226
c890192f
MK
2272003-08-30 Mark Kettenis <[email protected]>
228
229 * configure.in: Search for gethostbyname in libnsl.
230 * configure: Regenerated.
231
60fac5b8
MK
2322003-08-29 Mark Kettenis <[email protected]>
233
e294916c
MK
234 * configure.in: Remove redundant AC_MSG_RESULT in check for
235 uintptr_t in stdint.h.
236 * configure: Regenerated.
237
c40d267a
MK
238 * amd64-nat.h (struct regcache): Add opaque declaration.
239
60fac5b8
MK
240 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
241 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
242 Change "register array" to "register cache" in comments.
243 (x86_64_linux_gregset64_reg_offset): New variable.
244 (GETREGS_SUPPLIES): Remove macro.
245 (supply_gregset): Call amd64_supply_native_gregset instead of
246 x86_64_linux_supply_gregset.
247 (fill_gregset): Rename `regno' to `regnum'. Call
248 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
249 (store_regs): Rename `regno' to `regnum'.
250 (store_fpregs): Rename `regno' to `regnum'.
251 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
252 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
253 Reorganize function a bit.
254 (store_inferior_registers): Rename `regno' to `regnum'. Use
255 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
256 Reorganize function a bit.
257 (_initialize_x86_64_linux_nat): New function.
258 * config/i386/x86-64linux.mh.
259
546143b6
AC
2602003-08-29 Andrew Cagney <[email protected]>
261
262 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
263 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
264 (target_remove_watchpoint): Delete macro.
265 (target_insert_watchpoint): Delete macro.
266 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
267 (remote_mips_stopped_by_watchpoint): Delete declaration.
268 (remote_mips_remove_watchpoint): Delete declaration.
269 (remote_mips_set_watchpoint): Delete declaration.
270 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
271 * remote-mips.c (_initialize_remote_mips): Set
272 "to_insert_watchpoint", "to_stopped_by_watchpoint",
273 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
274 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
275 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
276 (mips_stopped_by_watchpoint): Rename
277 remote_mips_stopped_by_watchpoint.
278 (mips_can_hardware_watchpoint): Rename
279 remote_mips_can_use_hardware_watchpoint, update function
280 signature.
281
7bace51b
MK
2822003-08-29 Mark Kettenis <[email protected]>
283
b0f5c6f2
MK
284 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
285 USER_DS. We haven't given them a register number yet.
286
2a6d284d
MK
287 * amd64-nat.h: New file.
288 * amd64-nat.c: New file.
289 * amd64fbsd-nat.c: Include "amd64-nat.h".
290 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
291 (amd64fbsd32_r_reg_offset): New variable.
292 (supply_gregset): Simply call amd64_supply_native_gregset.
293 (fill_gregset): Rename `regno' to `regnum'. Simply call
294 amd64_collect_native_gregset.
295 (fill_fpregset): Rename `regno' to `regnum'.
296 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
297 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
298 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
299 `fpregset_t'. Call amd64_supply_native_gregset instead of
300 supply_gregset. Call x86_64_supply_fxsave instead of
301 supply_fpregset.
302 (store_inferior_registers): Rename `regno' to `regnum'. Replace
303 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
304 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
305 `fpregset_t'. Call amd64_collect_native_gregset instead of
306 fill_gregset. Call x86_64_collect_fxsave instead of
307 fill_fpregset.
308 (_initialize_am64fbsd_nat): Initialize
309 amd64_native_gregset32_reg_offset and
310 amd64_native_gregset64_reg_offset.
311 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
312
a16d75cc
MK
313 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
314 null pointer. Fix typo in comment.
315
7bace51b
MK
316 * regcache.c (supply_register): Reimplement to call
317 regcache_raw_supply.
318 (regcache_collect): Reimplement by calling regcache_raw_collect.
319
9a661b68
MK
3202003-08-28 Mark Kettenis <[email protected]>
321
322 * regcache.c (register_buffer): Consitify first argument.
323 (regcache_raw_supply, regcache_raw_collect): New
324 functions.
325
e94cc8fa
DJ
3262003-08-28 Daniel Jacobowitz <[email protected]>
327
328 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
329 by Nathan J. Williams.
330
c64bd0ce
DJ
3312003-08-28 Daniel Jacobowitz <[email protected]>
332
333 * lin-lwp.c (wait_lwp): New function, copied from
334 stop_wait_callback. Clean up.
335 (stop_wait_callback): Use wait_lwp.
336
e5ab0dce
AC
3372003-08-28 Andrew Cagney <[email protected]>
338
339 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
340 flavour and disassembler options.
341 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
342 (mips_gdbarch_init): Set "print_insn". Delete initialization of
343 deprecated_tm_print_insn_info.
344
a788de9b
AC
3452003-08-27 Andrew Cagney <[email protected]>
346
347 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
348 Use target_read_memory.
349 (s390_get_frame_info): Update. Do not reference
350 deprecated_tm_print_insn_info.
351 (s390_check_function_end, s390_is_sigreturn): Ditto.
352
36482093
AC
3532003-08-27 Andrew Cagney <[email protected]>
354
355 * Makefile.in (cris-tdep.o): Update dependencies.
356 * cris-tdep.c: Include "gdb_assert.h".
357 (cris_gdbarch_init): Set print_insn.
358 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
359 (cris_delayed_get_disassembler): Simplify, directly call the
360 disassembler returned by cris_get_disassembler.
361 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
362 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
363 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
364 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
365 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
366 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
367 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
368 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
369 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
370 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
371 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
372 (gdb_print_insn_sparc): Delete function.
373 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
374 deprecated_tm_print_insn_info.
375 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
376 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
377 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
378 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
379 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
380 * s390-tdep.c (gdb_print_insn_s390): Delete function.
381 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
382 (s390_gdbarch_init): Set print_insn.
383
0285512f
AC
3842003-08-27 Andrew Cagney <[email protected]>
385
386 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
387 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
388 * infcall.c (call_function_by_hand): Convert the entry point
389 address into a code address.
390
cdcd5552
AC
3912003-08-27 Andrew Cagney <[email protected]>
392
393 * dsrec.c: Include "gdb_string.h".
394 * Makefile.in (dsrec.o): Update dependencies.
395
e85cddad
MC
3962003-08-27 Michael Chastain <[email protected]>
397
398 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
399
8bbfbb23
AC
4002003-08-27 Andrew Cagney <[email protected]>
401
402 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
403 (alpha_osf1_init_abi): Do not set call_dummy_address.
404
ba058b66
DC
4052003-08-27 David Carlton <[email protected]>
406
407 From Randolph Chung <[email protected]>:
408 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
409 compiles with -Wformat-nonliteral -Werror.
410
87f84c9d
JB
4112003-08-26 Jim Blandy <[email protected]>
412
413 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
414 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
415 bfd_lookup_symbol, since we only want symbols in code sections.
416 (look_for_base): Pass zero as the SECT_FLAGS argument to
417 bfd_lookup_symbol, since we're not concerned about which section
418 the symbol is in.
419
102d615a
JJ
4202003-08-26 Jeff Johnston <[email protected]>
421
422 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
423 we are frameless or the return address register is already known.
424
cc7ad3ea
AC
4252003-08-26 Andrew Cagney <[email protected]>
426
427 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
428 in size. Add comments.
429
af8b88dd
JJ
4302003-08-26 Jeff Johnston <[email protected]>
431
432 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
433 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
434
e0a4f5a1
JM
4352003-08-26 Jason Merrill <[email protected]>
436
437 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
438 case out of #ifdef MIPS block.
439
4ae9ee8e
DJ
4402003-08-25 Daniel Jacobowitz <[email protected]>
441
442 PR java/1322
443 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
444 available before calling SECT_OFF_TEXT.
3c164570 445 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 446
004d836a
JJ
4472003-08-25 Jeff Johnston <[email protected]>
448
449 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
450 bof, and nat0-nat127 as pseudo-registers.
451 (ia64_frame_cache): New struct used to cache frame info.
452 (ia64_register_reggroup_p): New routine used to override default
453 register grouping so registers without names are still saved and
454 restored.
455 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
456 pseudo values.
457 (ia64_pseudo_register_read): New routine to read pseudo-registers.
458 (ia64_pseudo_register_write): New routine to write pseudo-registers.
459 (ia64_alloc_frame_cache): New routine to create a new
460 ia64_frame_cache.
461 (examine_prologue): Change prototype to add next_frame pointer.
462 Assume frameless until otherwise proven. Verify that the cfm for
463 current frame matches the cfm that should occur for the prologues
464 alloc insn and if equal, mark as not frameless. At end of routine,
465 if not frameless, calculate registers for the previous frame and store
466 in the cache, if a cache is provided.
467 (ia64_skip_prologue): Use new prototype when calling examine_prologue
468 and pass 0 for next_frame.
469 (ia64_store_return_value): Change to use convert_typed_floating()
470 instead of calling ia64_convert_to_raw().
471 (ia64_extract_return_value): Change to use convert_typed_floating()
472 instead of calling ia64_convert_to_virtual().
473 (ia64_frame_cache): New routine to support new frame model.
474 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
475 (ia64_frame_sniffer): Ditto.
476 (ia64_sigtramp_frame_init_saved_regs): Ditto.
477 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
478 (ia64_sigtramp_frame_prev_register): Ditto.
479 (ia64_sigtramp_frame_sniffer): Ditto.
480 (ia64_frame_base_address): Ditto.
481 (ia64_extract_struct_value_address): Change to issue error message.
482 (ia64_frame_align): New routine to align sp.
483 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
484 (ia64_push_arguments): Removed. Logic moved to
485 ia64_push_dummy_call().
486 (ia64_push_return_address): Ditto.
487 (ia64_unwind_dummy_id): New function.
488 (ia64_unwind_pc): Ditto.
489 (ia64_convert_register_p): Ditto.
490 (ia64_register_to_value): Ditto.
491 (ia64_value_to_register): Ditto.
492 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
493 (ia64_register_byte, ia64_register_raw_size): Ditto.
494 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
495 (ia64_saved_pc_after_call): Ditto.
496 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
497 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
498 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
499 (ia64_register_convert_to_raw): Ditto.
500 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
501 (ia64_init_extra_frame_info): Ditto.
502 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
503 (ia64_gdbarch_init): Remove registering of deprecated functions that
504 are no longer used. Add registration of new gdbarch functions.
505 Remove registering deprecated_write_sp. Replace
506 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
507 Delete set_gdbarch_deprecated_register_convertible(),
508 set_gdbarch_deprecated_register_convert_to_virtual(), and
509 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
510 set_gdbarch_deprecated_register_size(),
511 set_gdbarch_deprecated_register_bytes(),
512 set_gdbarch_pcregnum(),
513 set_gdbarch_deprecated_register_byte(),
514 set_gdbarch_deprecated_register_raw_size(),
515 set_gdbarch_deprecated_max_register_raw_size(),
516 set_gdbarch_deprecated_register_virtual_size(),
517 and set_gdbarch_deprecated_max_register_virtual_size() calls.
518 Replace set_gdbarch_deprecated_extract_return_value() with
519 set_gdbarch_extract_return_value(). Remove calls to:
520 set_gdbarch_deprecated_saved_pc_after_call();
521 set_gdbarch_deprecated_frame_chain(),
522 set_gdbarch_deprecated_frame_saved_pc(),
523 set_gdbarch_deprecated_frame_init_saved_regs(),
524 set_gdbarch_deprecated_get_saved_register(),
525 set_gdbarch_deprecated_call_dummy_words(),
526 set_gdbarch_deprecated_sizeof_call_dummy_words(),
527 set_gdbarch_deprecated_init_extra_frame_info(),
528 set_gdbarch_deprecated_frame_args_address(),
529 set_gdbarch_deprecated_frame_locals_address(),
530 and set_gdbarch_deprecated_dummy_write_sp().
531 Add set_gdbarch_convert_register_p(),
532 set_gdbarch_register_to_value(),
533 set_gdbarch_value_to_register(),
534 set_gdbarch_push_dummy_call(),
535 set_gdbarch_frame_align(),
536 set_gdbarch_unwind_dummy_id(),
537 set_gdbarch_unwind_pc(),
538 frame_unwind_append_sniffer(),
539 frame_unwind_append_sniffer(),
540 and frame_base_set_default().
541
aede7613
CD
5422003-08-25 Chris Demetriou <[email protected]>
543
544 * configure.tgt: Document need for special "mipsisa64" handling.
545 (mipsisa64*-*-linux64): Handle as target linux64.
546 (mipsisa64*-*-*): Handle as target embed64.
547
43c3a82e
MC
5482003-08-18 Michael Chastain <[email protected]>
549
550 * PROBLEMS: Document pr gdb/1322, the Java anonymous
551 objfile bug.
552
6564f77d
MK
5532003-08-24 Mark Kettenis <[email protected]>
554
2de139ba
MK
555 * i387-tdep.h: Update copyright date.
556 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
557
6564f77d
MK
558 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
559 CFLAGS games to reflect reality.
560
42cf1509
AC
5612003-08-24 Andrew Cagney <[email protected]>
562
563 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
564 GDB_MULTI_ARCH is always non-zero.
565 * osabi.c (_initialize_gdb_osabi): Ditto.
566 (gdbarch_init_osabi): Ditto.
567 * sparc-tdep.c: Ditto for #if code.
568
0485f6ad
MK
5692003-08-23 Mark Kettenis <[email protected]>
570
571 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
572 Update comments.
573 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
574 comments.
575 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
576 x86_64_supply_fxsave.
577 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
578 x86_64_supply_fxsave.
579 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
580 x86_64_supply_fxsave.
581
c7716133
AJ
5822003-08-23 Andreas Jaeger <[email protected]>
583
584 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
585 i387_supply_fxsave.
586
ed504bdf
MK
5872003-08-23 Mark Kettenis <[email protected]>
588
589 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
590 i387_supply_register.
591 (go32_fetch_registers): Adjust call to i387_supply_fsave.
592 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
593 i387_supply_fsave.
594 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
595 i387_supply_fxsave.
596 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
597 i387_supply_fsave.
598 * i386bsd-nat.c (supply_fpregset): Adjust call to
599 i387_supply_fsave.
600 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
601 call to i387_supply_fxsave. Call i387_supply_fsave instead of
602 supply_fpregset.
603 (store_inferior_registers): Remove extraneous whitespace. Call
604 i387_fill_fsave instead of fill_fpregset.
605 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
606 (supply_fpregset): Likewise.
607 * i386v4-nat.c (supply_fpregset): Adjust call to
608 i387_supply_fsave.
609 * i386-interix-nat.c (supply_fpregset): Adjust call to
610 i387_supply_fsave.
611 * i386-linux-nat.c (supply_fpregset): Adjust call to
612 i387_supply_fsave.
613 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
614 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
615 i387supply_fsave and i387_supply_fxsave.
616 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
617 Incorporate code from `i387_supply_register.
618 (i387_supply_register): Remove.
619 (i387_supply_fxsave): Add `regnum' argument.
620 Update comments.
621 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
622 prototype.
623 (i387_supply_register): remove prototype.
624 Update comments.
625
4be5d520
MC
6262003-08-22 Michael Chastain <[email protected]>
627
628 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
629 Add lines for files in gdb/testsuite/gdb.cp/* that are
630 still not 8.3 unique.
631
7ed85d26
DJ
6322003-08-22 Daniel Jacobowitz <[email protected]>
633
634 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
635 TYPE_VPTR_FIELDNO is valid.
636
eb0d3137
MK
6372003-08-19 Mark Kettenis <[email protected]>
638
639 * utils.c (set_width_command): Remove prototypes.
640 (set_screen_size): New prototype.
641 (init_page_info): Simplify by fetching the screen size from
642 Readline. Call set_screen_size.
643 (set_screen_size): New function.
644 (set_width): Add missing whitespace in comment.
645 (set_width_command): Call set_screen_size.
646 (set_height_command): New function.
647 (initialize_utils): Fix formatting. Make "set height" command
648 call set_height_command. Remove redundant code that turns off
649 pagination if output isn't a terminal. Remove redundant call to
650 set_width_command.
651
7e6d0ac8
MK
6522003-08-22 Mark Kettenis <[email protected]>
653
3567a8ea
MK
654 * sparc64-tdep.h (sparc64_regnum): Fix comment.
655 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
656 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
657 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
658 `case' keyword.
659 (sparc64_register_info): Give the reister with number
660 SPARC64_STATE_REGNUM a name.
661 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
662 %asi and %ccr.
663 (sparc64_push_dummy_call): Take BIAS into account when checking
664 stcak alignment.
665 (sparc_software_single_step): Remove assertions that check whether
666 NPC and NNPC were zero.
667 (sparc_supply_rwindow): Make public. Merge functionality with
668 sparc64_supply_rwindow.
669 (sparc_fill_rwindow): Make public. Merge functionality with
670 sparc64_fill_rwindow.
671 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
672 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
673 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
674 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
675 sparc_supply_rwindow instead of sparc64_supply_rwindow.
676
7e6d0ac8
MK
677 * reggroups.c: Add whitespace after declarations of local
678 variables in functions.
679
72e5f484
MC
6802003-08-21 Michael Chastain <[email protected]>
681
682 * gdbtypes.h: Change array bound type from an int to enum.
683
435ac228
AC
6842003-08-21 Andrew Cagney <[email protected]>
685
686 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
687 * config/sparc/tm-sparc.h: Ditto.
688 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
689 unconditionally.
690 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
691
0d0e1a63
MK
6922003-07-13 Mark Kettenis <[email protected]>
693
694 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
695 (register_objfile_data, set_objfile_data, objfile_data): New
696 prototypes.
697 * objfiles.c (objfile_alloc_data, objfile_free_data): New
698 prototypes.
699 (allocate_objfile): Call objfile_alloc_data.
700 (free_objfile): Call objfile_free_data.
701 (struct objfile_data): New.
702 (struct objfile_data_registration): New.
703 (struct objfile_data_registry): New.
704 (objfile_data_registry): New variable.
705 (register_objfile_data): New function.
706 (objfile_alloc_data, objfile_free_data): New functions.
707 (set_objfile_data, objfile_data): New functions.
708 * dwarf2-frame.c (dwarf2_frame_data): New variable.
709 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
710 (_initialize_dwarf2_frame): New function and prototype.
711
d90cf509
AC
7122003-08-21 Andrew Cagney <[email protected]>
713
714 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
715 a specific architecture.
716 * arch-utils.h (set_architecture_from_arch_mach): Delete
717 declaration.
718 (target_architecture_hook): Delete declaration.
719 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
720 (default_float_format): Assume GDB_MULTI_ARCH.
721 (default_double_format): Assume GDB_MULTI_ARCH.
722 (set_endian_from_file): Delete function.
723 (arch_ok): Delete function.
724 (set_arch): Delete function.
725 (set_architecture_from_arch_mach): Delete function.
726 (set_architecture_from_file): Delete function.
727 (set_architecture): Assume GDB_MULTI_ARCH.
728 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
729
8b39fe56
MK
7302003-08-21 Mark Kettenis <[email protected]>
731
732 Rewrite FreeBSD/sparc64 native configuration.
733 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
734 * sparc64fbsd-nat.c: New file.
735 * sparc64fbsd-tdep.c: New file.
736 * sparc64-tdep.c sparc64-tdep.h: New files.
737 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
738 sparc64fbsd-tdep.o): New dependencies.
739 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
740 and sparc64fbsd-tdep.c.
741 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
742 * config/sparc/fbsd.mh: Remove copyright notice.
743 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
744 sparcbsd-nat.o.
745 * config/sparc/fbsd.mt: Remove copyright notice.
746 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
747 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
748 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
749 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
750 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
751 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
752 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
753 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
754 "sparc/tm-sp64.h".
755 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
756 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
757
a7f19c79
MC
7582003-08-21 Michael Chastain <[email protected]>
759
760 * symtab.h: Add doco on the space critical structures and
761 some measurements of space usage.
762
da08ea5b
MS
7632003-08-21 Michael Snyder <[email protected]>
764
765 * tracepoint.c (trace_dump_command): Trace break address
766 is subject to DECR_PC_AFTER_BREAK.
767 (set_traceframe_context): Make "trace_line" an int.
768 Fixes suggested by Mark Newman <[email protected]>
769
6df2bf50
MS
7702003-08-20 Michael Snyder <[email protected]>
771
772 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
773 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
774 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
775 argument passing.
776 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
777 functions, replace sh_push_dummy_call.
778 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
779
0955bbf0
MC
7802003-08-20 Michael Chastain <[email protected]>
781
782 * gdbtypes.h (struct main_type): Rearrange to save space.
783
260a4188
MS
7842003-08-20 Michael Snyder <[email protected]>
785
786 * trad-frame.c: Comment typo fix.
787
8baa6f92
KB
7882003-08-20 Michael Snyder <[email protected]>
789 Kevin Buettner <[email protected]>
790
791 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
792 (frv_frame_init_saved_regs): Add declaration.
793 (frame_extra_info): Add new field ``saved_regs''.
794 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
795 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
796 Update frame related code.
797 (frv_extract_struct_value_address): Adjust formatting.
798 * Makefile.in (frv-tdep.o): Update dependencies.
799 * config/frv/tm-frv.h (target_insert_watchpoint)
800 (target_remove_watchpoint, target_insert_hw_breakpoint)
801 (target_remove_hw_breakpoint): Delete these macros.
802 (remote_insert_watchpoint, remote_remove_watchpoint)
803 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
804 these declarations.
805
87193939
MC
8062003-08-20 Michael Chastain <[email protected]>
807
808 * defs.h (ENUM_BITFIELD): New macro.
809 * symtab.h (ENUM_BITFIELD): Use it.
810 (BYTE_BITFIELD): Remove old macro, which was already disabled.
811
062103ba
SA
8122003-08-19 Shrinivas Atre <[email protected]>
813
814 * MAINTAINERS (write after approval): Add myself.
815
8b148df9
AC
8162003-08-18 Andrew Cagney <[email protected]>
817
818 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
819 * gdbarch.h, gdbarch.c: Re-generate.
820 * infcall.c (call_function_by_hand): Adjust the SP by
821 frame_red_zone_size before allocating any stack space.
822 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
823 * x86-64-tdep.c (x86_64_frame_align): New function.
824 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
825
826 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
827 Remove code adjusting SP so that it skips over the Red Zone.
828
954a4db8
MK
8292003-08-18 Mark Kettenis <[email protected]>
830
831 * NEWS (New native configurations): Mention FreeBSD/amd64.
832
1a241548
AC
8332003-08-18 Andrew Cagney <[email protected]>
834
835 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
836 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
837 "m68k_frame_p".
838 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
839
f82b2acd
MK
8402003-08-18 Mark Kettenis <[email protected]>
841
842 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
843
4056d258
ML
8442003-08-18 Michal Ludvig <[email protected]>
845
846 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
847 Define.
848 * i386-linux-nat.c: Include "linux-nat.h".
849 (child_post_startup_inferior): New function.
850
99ab4326
MK
8512003-08-18 Mark Kettenis <[email protected]>
852
853 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
854 at the start of a frameless function. This probably fixes PR
855 backtrace/1338.
856
c8d5f0d6
MC
8572003-08-17 Michael Chastain <[email protected]>
858
859 * symfile.c (find_sym_fns): Remove special case for apollo target.
860
9016a515
DJ
8612003-08-17 Daniel Jacobowitz <[email protected]>
862
863 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
864 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
865 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
866 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
867 (linux_supports_tracevforkdone): New function.
868 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
869 TRACEVFORKDONE.
870 (child_follow_fork): Handle vfork.
871 (linux_handle_extended_wait): Likewise. Also handle exec.
872 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
873 * NEWS: Mention fork tracing.
874
c538c11c
DJ
8752003-08-17 Daniel Jacobowitz <[email protected]>
876
877 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
878
4de4c07c
DJ
8792003-08-17 Daniel Jacobowitz <[email protected]>
880
881 * Makefile.in (i386-linux-nat.o): Update dependencies.
882 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
883 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
884 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
885 * i386-linux-nat.c: Include "linux-nat.h".
886 (child_post_startup_inferior): New function.
887 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
888 * infptrace.c (kill_inferior): Wrap in #ifdef.
889 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
890 attaching to each LWP.
891 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
892 (init_lin_lwp_ops): Fill in some more operations.
893 * linux-nat.h (linux_enable_event_reporting)
894 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
895 prototypes.
896 * linux-nat.c (linux_enable_event_reporting): New function.
897 (child_post_attach, linux_child_post_startup_inferior)
898 (child_post_startup_inferior, child_follow_fork)
899 (linux_handle_extended_wait, kill_inferior): New functions.
900
7996bcec
AC
9012003-08-16 Andrew Cagney <[email protected]>
902
903 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
904 * gdbarch.h, gdbarch.c: Re-generate.
905
3d48a7a0
MK
9062003-08-16 Mark Kettenis <[email protected]>
907
908 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
909
7989c619
AC
9102003-08-16 Andrew Cagney <[email protected]>
911
912 * NEWS: Mention that "set prompt-escape-char" was deleted.
913 * top.c (get_prompt_1): Delete function.
914 (gdb_prompt_escape):
915 (init_main): Do not clear "gdb_prompt_escape". Delete "set
916 prompt-escape-char" command.
917 (MAX_PROMPT_SIZE): Delete macro.
918 (get_prompt): Simplify, do not call get_prompt_1.
919
07978cd8
AC
9202003-08-16 Andrew Cagney <[email protected]>
921
922 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
923 -Werror. -Wformat-nonliteral problems.
924
3ff7cf9e
JB
9252003-08-15 J. Brobecker <[email protected]>
926
927 Further multiarching work mostly for hppa64-*-hpux11:
928 * hppa-tdep.h: New file.
929 * hppa-tdep.c: #include hppa-tdep.c.
930 (hppa32_num_regs): Renamed from hppa_num_regs.
931 (hppa64_num_regs): New constant.
932 (hppa64_call_dummy_breakpoint_offset): New constant.
933 (hppa32_call_dummy_length): New constant.
934 (hppa64_call_dummy_length): New constant.
935 (hppa32_stack_align): Make name 32bit explicit.
936 (hppa32_register_virtual_type): Likewise.
937 (hppa32_extract_return_value): Likewise.
938 (hppa32_use_struct_convention): Likewise.
939 (hppa32_store_return_value): Likewise.
940 (hppa64_register_virtual_type): New function.
941 (hppa64_extract_return_value): New function.
942 (hppa64_use_struct_convention): New function.
943 (hppa64_store_return_value): New function.
944 (hppa_frame_locals_address): Remove declaration, function does
945 not exist anymore.
946 (hppa_register_byte): Add support for PA64 ABI.
947 (hppa_gdbarch_init): Add support for PA64 ABI.
948 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
949 Make name 32bit explicit.
950 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
951 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
952 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
953 (hppa64_hpux_frame_base_before_sigtramp): New function.
954 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
955 * config/pa/tm-hppa64.h: Remove macros that are no longer
956 necessary now that the gdbarch vector is properly setup.
957 Transform some macros into function calls. Some minor cleanup.
958 * config/pa/tm-hppah.h: Update function calls in macros
959 following the function renaming in hppa-hpux-tdep.c.
960 * Makefile.in (hppa_tdep_h): New variable.
961 (hppa-tdep.o): Add dependency over hppa_tdep_h.
962
5d05ca6d
MS
9632003-08-14 Michael Snyder <[email protected]>
964
965 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
966
37ba2569
JB
9672003-08-13 J. Brobecker <[email protected]>
968
969 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
970 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
971 routine.
972
aed7f26a
MS
9732003-08-13 Michael Snyder <[email protected]>
974
975 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
976 (frv_saved_pc_after_call): Use deprecated ftype.
977 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
978 (frv_remote_translate_xfer_address): Remove.
979 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
980
752d4ac1
JB
9812003-08-13 J. Brobecker <[email protected]>
982
983 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
984 initialization after the common gdbarch initialization, not before.
985
1426ac1d
JB
9862003-08-13 J. Brobecker <[email protected]>
987
988 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
989 (ADDR_BITS_REMOVE): Remove, redundant.
990
b6fbdd1d
JB
9912003-08-13 J. Brobecker <[email protected]>
992
993 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
994 gdbarch method to clear the 2 low bits of text addresses.
995
44160db3
AC
9962003-08-12 Andrew Cagney <[email protected]>
997
998 * Makefile.in (dsrec.o): Update dependencies.
999 * dsrec.c: Include "gdb_assert.h".
1000 (make_srec): Use snprintf instead of sprintf, use a literal format
1001 string.
1002
bcf7d3ca
AC
10032003-08-12 Andrew Cagney <[email protected]>
1004
1005 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1006 FRAME_OBSTACK_ZALLOC.
1007
49ed40de
KB
10082003-08-12 Kevin Buettner <[email protected]>
1009
1010 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1011 SSE registers.
1012
b246147c
MK
10132003-08-10 Mark Kettenis <[email protected]>
1014
1015 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1016 amd64fbsd_sc_reg_offset): Add extern declarations.
1017 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1018 declarations.
1019
d95fdc0d
BE
10202003-08-11 Ben Elliston <[email protected]>
1021
1022 * MAINTAINERS (write after approval): Update my mail address.
1023
cf6a0e73
AC
10242003-08-10 Andrew Cagney <[email protected]>
1025
1026 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1027
f837910f
MK
10282003-08-10 Mark Kettenis <[email protected]>
1029
e2dbbd2d
MK
1030 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1031 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1032 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1033 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1034 i386bsd_sc_reg_offset): Add extern declarations.
1035 * i386obsd-nat.c: Include "i386-tdep.h"
1036 (_initialize_i386obsd_nat): Remove extern declarations.
1037 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1038 declarations.
1039 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1040 declarations.
1041
f837910f
MK
1042 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1043 instead of frame_read_register.
1044 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1045 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1046 SP_REGNUM.
1047 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1048 instead of frame_unwind_unsigned_register. Use
1049 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1050 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1051 instead of read_register. Use builtin_type_void_data_ptr instead
1052 of builtin_type_void_func_ptr when extracting the address of the
1053 jmp_buf.
1054 (i386_extract_return_value, i386_store_return_value,
1055 i386_pseudo_register_read, i386_pseudo_register_write): Use
1056 register_size instead REGISTER_RAW_SIZE.
1057
edcf254d
AC
10582003-08-10 Andrew Cagney <[email protected]>
1059
1060 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1061 sprintf. Make "name" constant.
1062
26604a34
MK
10632003-08-10 Mark Kettenis <[email protected]>
1064
192285c6
MK
1065 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1066 instead of frame_read_register.
f837910f
MK
1067 (i387_print_float_info): Use get_frame_register and
1068 get_frame_register_unsigned instead of frame_register_read.
192285c6 1069
f0925262
MK
1070 * i386fbsd-nat.c: Include "i386-tdep.h".
1071 (child_resume): Make `eflags' an ULONGEST. Use
1072 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1073 instead of register_read and register_write.
1074
a144416f
MK
1075 * i386bsd-nat.c (fetch_inferior_registers,
1076 store_inferior_registers): Don't use && at the end of a line.
1077 (_initialize_i386bsd_nat): Fix typo.
1078
fec74868
MK
1079 * frame.c (_initialize_frame): Add missing backslash.
1080
87232496
MK
1081 From Peter Schauer ([email protected]):
1082 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1083 and supply_register instead of manipulating the register buffer
1084 directly.
1085
c9b9de0b
MK
1086 From Peter Schauer ([email protected]):
1087 * config/i386/nm-i386sol2.h
1088 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1089
26604a34
MK
1090 Based on a patch from Michael Elizabeth Chastain ([email protected]):
1091 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1092 instructions that GCC likes to mingle into the prologue. Fixes
1093 gdb/1253 and gdb/1255.
1094
25d29d70
AC
10952003-08-09 Andrew Cagney <[email protected]>
1096
1097 Fix GDB PR cli/926.
1098 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1099 * command.h (add_setshow_uinteger_cmd): Declare.
1100 * frame.c (set_backtrace_cmd): New function.
1101 (show_backtrace_cmd): New function.
1102 * frame.c (_initialize_frame): Replace "set/show
1103 backtrace-below-main" with "set/show backtrace past-main". Add
1104 command "set/show backtrace limit".
1105 (backtrace_past_main): Rename "backtrace_below_main".
1106 (backtrace_limit): New variable.
1107 (get_prev_frame): Update. Check the backtrace_limit.
1108
9ebf4acf
AC
11092003-08-09 Andrew Cagney <[email protected]>
1110
1111 * defs.h (xstrprintf): Declare.
1112 * utils.c (xstrprintf): New function.
1113 * breakpoint.c (insert_breakpoints): Replace sprintf and
1114 non-literal format strings, with xstrprintf and cleanups.
1115 (delete_breakpoint,breakpoint_re_set): Ditto.
1116 (commands_command, insert_breakpoints): Ditto.
1117 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1118 (break_at_finish_command_1): Ditto.
1119
3771659b
AC
11202003-08-09 Andrew Cagney <[email protected]>
1121
1122 * MAINTAINERS (language support): List Adam Fedor as Objective C
1123 maintainer.
1124
b4263afa
JB
11252003-08-08 J. Brobecker <[email protected]>
1126
1127 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1128 are now multiarched.
1129
d84defb1
JB
11302003-08-08 J. Brobecker <[email protected]>
1131
1132 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1133 longer necessary now that hppa64 is partially multiarch'ed.
1134
f786f615
AC
11352003-08-08 Andrew Cagney <[email protected]>
1136
1137 * interps.c (interp_set): Check for a NULL "old_interp".
1138
c938e9b0
L
11392003-08-08 H.J. Lu <[email protected]>
1140
1141 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1142 (install-only): Support DESTDIR.
1143 (uninstall): Likewise.
1144 (install-gdbtk): Likewise.
1145
9a146a11
EZ
11462003-08-08 Elena Zannoni <[email protected]>
1147
1148 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1149 contains something meaningful at all times.
1150
1151Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <[email protected]>
7a76ced5 1152
62599e99 1153 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1154
56296155
BC
1155Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <[email protected]>
1156
62599e99 1157 * MAINTAINERS (write after approval): Added self.
56296155 1158
9710e734
AC
11592003-08-07 Andrew Cagney <[email protected]>
1160
1161 * inferior.h (AT_SYMBOL): Define.
1162 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1163 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1164 * mips-tdep.c (mips_call_dummy_address): Delete function.
1165 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1166 set call_dummy_address.
1167
98b3ab73
AC
11682003-08-07 Andrew Cagney <[email protected]>
1169
1170 * language.c (op_error): Delete function.
1171 (binop_type_check): Delete function.
1172 * language.h (type_op_error, range_op_error): Delete macros.
1173 (op_error): Delete declaration.
1174
2fcf52f0
AC
11752003-08-07 Andrew Cagney <[email protected]>
1176
1177 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1178
abd4220e 11792003-08-07 Michal Ludvig <[email protected]>
fd83bada 1180
abd4220e 1181 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1182 (x86_64_push_arguments): Skip the red zone.
abd4220e 1183
9dd5f34f
AC
11842003-08-05 Andrew Cagney <[email protected]>
1185
1186 * reggroups.c (reggroup_next): Check for the final entry.
1187
e5e78edc
AC
11882003-08-04 Andrew Cagney <[email protected]>
1189
ab4e3d93
AC
1190 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1191 * cli/cli-script.c (define_command): Call query directly, instead
1192 of passing it a buffer.
1193 * ocd.c (ocd_error): Pass error a constant format string.
1194 * remote-mips.c (mips_error): Use fputs_filtered.
1195
1062ca82
AC
1196 * solib-svr4.c (_initialize_svr4_solib): Update
1197 register_gdbarch_data call.
1198 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1199
fcc1c85c
AC
1200 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1201 (register_gdbarch_data): Delete "free" parameter. Update
1202 comments.
1203 * gdbarch.h, gdbarch.c: Re-generate.
1204 * reggroups.c (_initialize_reggroup): Update.
1205 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1206 * frame-base.c (_initialize_frame_base): Update.
1207 * frame-unwind.c (_initialize_frame_unwind): Update.
1208 * user-regs.c (_initialize_user_regs): Update.
1209 * remote.c (_initialize_remote): Update.
1210 * regcache.c (_initialize_regcache): Update.
1211
116f06ea
AC
1212 * regcache.c (xfree_regcache_descr): Delete function.
1213 (_initialize_regcache): Update call to register_gdbarch_data.
1214 (init_regcache_descr, init_legacy_regcache_descr): Use
1215 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1216
e5e78edc
AC
1217 * remote.c (free_remote_state): Delete function.
1218 (_initialize_remote): Update register_gdbarch_data.
1219 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1220 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1221
6c7d17ba
AC
12222003-08-04 Andrew Cagney <[email protected]>
1223
1224 * reggroups.c (struct reggroup_el): Define.
1225 (struct reggroups): Delete field "nr_group". Replace array
1226 "group" with a "first" to "last" linked list.
1227 (reggroups_init): Update. Allocate using gdbarch's obstack.
1228 (reggroups_free): Delete function.
1229 (add_group): Update. Add "el" parameter.
1230 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1231 (default_groups): Update.
1232 (reggroup_next): Replace reggroups.
1233 (reggroups_dump): Update.
1234 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1235 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1236 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1237
89b7795b
DJ
12382003-08-04 Daniel Jacobowitz <[email protected]>
1239
1240 * Makefile.in (tui-interp.o): Update dependencies.
1241
306d9ac5
DC
12422003-08-04 David Carlton <[email protected]>
1243
1244 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1245 to internal_error call.
1246 * source.c (forward_search_command): Add "%s" format argument.
1247 (reverse_search_command): Ditto.
1248 * top.c (quit_confirm): Ditto.
1249 * cli/cli-setshow.c (do_setshow_command): Ditto.
1250 * cp-valprint.c (cp_print_class_method): Replace
1251 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1252 (cp_print_class_member): Ditto.
1253 * event-top.c (command_line_handler): Ditto.
1254 * linux-proc.c (linux_info_proc_cmd): Ditto.
1255 * p-typeprint.c (pascal_type_print_base): Ditto.
1256 * p-valprint.c (pascal_object_print_class_method): Ditto.
1257 (pascal_object_print_class_member): Ditto.
1258 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1259 * remote.c (remote_cisco_section_offsets): Ditto.
1260 * top.c (command_line_input): Ditto.
1261 * utils.c (vwarning,error_stream,quit): Ditto.
1262 * valprint.c (print_floating,print_binary_chars)
1263 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1264
57bfe177
AC
12652003-08-04 Andrew Cagney <[email protected]>
1266
1267 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1268
e546b999
AC
12692003-08-02 Andrew Cagney <[email protected]>
1270
1271 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1272 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1273 amd64fbsd-nat.c.
1274
91092ee5
AC
12752003-08-02 Andrew Cagney <[email protected]>
1276
1277 * Makefile.in: Update all dependencies and definitions.
1278
889f28e2
AF
12792003-08-02 Adam Fedor <[email protected]>
1280
1281 * linespec.c (is_objc_method_format): New function
1282 (decode_line_1, locate_first_half): Use it.
1283 Fixes PR objc/1298
1284
880bc914
AC
12852003-08-01 Andrew Cagney <[email protected]>
1286
1287 * NEWS: Mention that m32r is multi-arch.
1288 From 2003-07-28 Kei Sakamoto <[email protected]>:
1289 * configure.tgt: Recognize m32r-*-*.
1290 * config/m32r/tm-m32r.h: Delete file.
1291 * config/m32r/m32r.mt: New file.
1292 * m32r-rom.c (m32r_upload_command): Use hostent only when
1293 gethostname succeeds, in order to avoid a compilation
1294 warning.
1295 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1296 compiler warning.
1297
19f59343
MS
12982003-08-01 Michael Snyder <[email protected]>
1299
1300 * sh-tdep.c (sh_frame_align): New gdbarch method.
1301 (sh_gdbarch_init): Set up frame_align method.
1302
4e7d7511
MS
13032003-07-31 Michael Snyder <[email protected]>
1304
1305 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1306 which is already covered by the new frames infrastructure.
1307
63022984
AC
13082003-07-31 Andrew Cagney <[email protected]>
1309
1310 * user-regs.c (struct user_reg): Add "next" link.
1311 (struct user_regs): Replace "user" with "first" and "last" links.
1312 (append_user_reg): Add pre-allocated "reg" parameter.
1313 (builtin_user_regs): Provide initial value for "last".
1314 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1315 (user_regs_init): Allocate memory from the gdbarch obstack.
1316 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1317 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1318 linked list.
1319 (usernum_to_user_reg): New function.
1320 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1321 (value_of_user_reg): Use usernum_to_user_reg.
1322 (user_regs_free): Delete function.
1323 (_initialize_user_regs): Update register_gdbarch_data call.
1324
7cf6e574
DJ
13252003-07-31 Daniel Jacobowitz <[email protected]>
1326
1327 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1328
c48a845b
MS
13292003-07-30 Michael Snyder <[email protected]>
1330
4e7d7511 1331 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1332 * infcall.c (call_function_by_hand): Pass struct_addr to
1333 value_being_returned.
1334 * infcmd.c (print_return_value): Pass zero as struct_addr.
1335 * values.c (value_being_returned): If struct_addr is passed,
1336 use it instead of trying to recover it from the inferior.
1337
f0d8db19
KB
13382003-07-30 Kevin Buettner <[email protected]>
1339
1340 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1341 the prologue analyzer won't need to attempt to extract the pc
1342 value from the woefully incomplete dummy frame.
1343 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1344 possible. Disable code which modifies the frame.
1345
e5c113a1
AC
13462003-07-28 Andrew Cagney <[email protected]>
1347
1348 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1349 to level 2.
1350 (annotate_breakpoints_table, annotate_record): Ditto.
1351 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1352 (annotate_field_name_end, annotate_field_value): Ditto.
1353 (annotate_field_end, annotate_frame_source_begin): Ditto.
1354 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1355 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1356 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1357 (annotate_frame_address_end, annotate_frame_address): Ditto.
1358 (annotate_frame_args, annotate_frame_end): Ditto.
1359 (annotate_frame_where, annotate_arg_begin): Ditto.
1360 (annotate_arg_name_end, annotate_arg_value): Ditto.
1361 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1362 (annotate_function_call, annotate_signal_name): Ditto.
1363 (annotate_signal_string, annotate_signal_name_end): Ditto.
1364 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1365 (annotate_value_begin, annotate_value_history_value): Ditto.
1366 (annotate_value_history_end, annotate_value_end): Ditto.
1367 (annotate_display_begin, annotate_display_number_end): Ditto.
1368 (annotate_display_format, annotate_display_expression): Ditto.
1369 (annotate_display_expression_end, annotate_display_value): Ditto.
1370 (annotate_display_end, annotate_array_section_begin): Ditto.
1371 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1372 (annotate_elt, annotate_array_section_end): Ditto.
1373
bb1db049
AC
13742003-07-28 Andrew Cagney <[email protected]>
1375
1376 * regcache.c (struct regcache_descr): Update comments on
1377 nr_raw_registers.
1378 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1379 sizeof_raw_register_valid_p.
1380 (init_regcache_descr): Set nr_raw_registers and
1381 sizeof_raw_register_valid_p before calling
1382 init_legacy_regcache_descr.
1383
20e6603c
AC
13842003-07-28 Andrew Cagney <[email protected]>
1385
1386 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1387 MOD NUM_REGS.
1388
db742940
DJ
13892003-07-28 Daniel Jacobowitz <[email protected]>
1390
1391 * thread.c (info_threads_command): Use get_selected_frame ().
1392 Check that there is at least one non-sentinel frame.
1393
ce7f4371
SC
13942003-07-27 Stephane Carrez <[email protected]>
1395
1396 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1397 (m68hc11_pop_frame): Remove.
1398 (m68hc11_frame_saved_pc): Remove.
1399 (m68hc11_frame_chain): Remove.
1400 (m68hc11_frame_init_saved_regs): Remove.
1401 (m68hc11_init_extra_frame_info): Remove.
1402 (m68hc11_store_struct_return): Remove.
1403 (m68hc11_saved_pc_after_call): Remove.
1404
1ea653ae
SC
14052003-07-27 Stephane Carrez <[email protected]>
1406
1407 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1408 frame unwind information.
1409 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1410 and adapted for frame unwinding.
1411 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1412 (m68hc11_unwind_pc): New function.
1413 (m68hc11_frame_unwind_cache): New function to analyze frames.
1414 (m68hc11_frame_this_id): New function to create new frame struct.
1415 (m68hc11_frame_prev_register): New function to unwind a register from
1416 the frame.
1417 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1418 (m68hc11_frame_p): New function for the above.
1419 (m68hc11_frame_base_address): New function to return fp of frame.
1420 (m68hc11_frame_args_address): Update for frame.
1421 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1422 (m68hc11_unwind_sp): New function.
1423 (m68hc11_unwind_dummy_id): New function.
1424 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1425 calls.
1426
c8a7f6ac
SC
14272003-07-27 Stephane Carrez <[email protected]>
1428
1429 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1430 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1431 when we are beyond the current pc.
1432
3dc990bf
SC
14332003-07-27 Stephane Carrez <[email protected]>
1434
1435 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1436 from m68hc11_push_arguments.
1437 (m68hc11_push_arguments): Remove.
1438 (m68hc11_push_return_address): Remove.
1439 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1440 handlers; remove deprecated_extra_stack_alignment_needed.
1441
222e5d1d
AC
14422003-07-27 Andrew Cagney <[email protected]>
1443
1444 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1445 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1446 REAL_PC and not the pointer.
1447 * hppa-hpux-tdep.c: Include frame.h
1448
a7e9a47e
AC
14492003-07-27 Andrew Cagney <[email protected]>
1450
1451 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1452 GDB_MULTI_ACH_PARTIAL.
1453
7e3dd49e
AC
14542003-07-27 Andrew Cagney <[email protected]>
1455
1456 Patch from 2003-07-22 Kei Sakamoto <[email protected]>:
1457 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1458 operator at start and not end of line.
1459 (decode_prologue): Ditto.
1460 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1461 frame_unwind_register_unsigned instead of
1462 frame_unwind_unsigned_register.
1463 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1464 read_register.
1465 (m32r_push_dummy_call): Use register_size instead of
1466 REGISTER_RAW_SIZE.
1467 (m32r_frame_sniffer): Replace m32r_frame_p.
1468 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1469 * m32r-rom.c (report_transfer_performance): Delete extern
1470 declaration.
1471 (m32r_load, m32r_upload_command): Use print_transfer_performance
1472 instead of report_transfer_performance.
1473 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1474 / add_show_from_set.
1475
0880807f
AC
14762003-07-26 Andrew Cagney <[email protected]>
1477
1478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1479 store_return_value and extract_struct_value_address.
1480
64ae9269
DJ
14812003-07-26 Daniel Jacobowitz <[email protected]>
1482
1483 PR c++/1267
1484 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1485 NULL, default to the section containing PC.
1486
e286caf2
SC
14872003-07-24 Stephane Carrez <[email protected]>
1488
1489 * NEWS: Mention "regs" deprecated for m68hc11 too.
1490
1491 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1492 (m68hc11_print_register): New function to print out one register.
1493 (m68hc11_print_registers_info): New function to print registers.
1494 (show_regs): Deprecate and use the above.
1495 (m68hc11_gdbarch_init): Install the print_registers_info.
1496
705b278b
JJ
14972003-07-24 Jeff Johnston <[email protected]>
1498
1499 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1500 that we have a SIGTRAP before returning non-zero.
1501
63cd4198
EZ
15022003-07-23 Michal Ludvig <[email protected]>
1503 Elena Zannoni <[email protected]>
1504
1505 * linespec.c (decode_line_2): Avoid crash if
1506 find_function_start_sal() returns empty record.
1507
6926787d
AS
15082003-07-23 Andreas Schwab <[email protected]>
1509
1510 * ia64-tdep.c (ia64_print_insn): New function.
1511 (ia64_gdbarch_init): Set print_insn to it.
1512 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1513 deprecated_tm_print_insn_info.
1514
708cc1b6
MS
15152003-07-22 Michael Snyder <[email protected]>
1516
1517 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1518 handle 8-bit returns (long long).
1519 (h8300h_extract_return_value): Ditto.
1520 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1521
aebd7893
AC
15222003-07-22 Andrew Cagney <[email protected]>
1523
1524 * gdbarch.c Include "gdb_obstack.h".
1525 (struct gdbarch): Add an "obstack".
1526 (alloc_gdbarch_data): Allocate the gdbarch data using
1527 GDBARCH_OBSTACK_CALLOC.
1528 (free_gdbarch_data): Delete function.
1529 (gdbarch_obstack_zalloc): New function.
1530 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1531 Assert that the architecture is not initialized.
1532 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1533 vector from the obstack.
1534 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1535 architecture obstack.
1536 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1537 (set_gdbarch_data): Assert that the data is not initialized.
1538 (struct gdbarch_data): Delete member "free".
1539 (register_gdbarch_data): Do not initialize "free".
1540 * gdbarch.h, gdbarch.c: Re-generate.
1541
153721e6
AC
15422003-07-22 Andrew Cagney <[email protected]>
1543
1544 * configure.in (build_warnings): Add -Wformat-nonliteral.
1545 * configure: Re-generate.
1546
c193f044 15472003-07-22 Elena Zannoni <[email protected]>
32ffcbed
EZ
1548
1549 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1550
c3228f12
EZ
15512003-07-22 Elena Zannoni <[email protected]>
1552
1553 * findvar.c (read_var_value): Remove case for thread local storage
1554 variables. It is now entirely handled by the dwarf2 location
1555 expression code.
1556 * printcmd.c (address_info): Ditto.
1557 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1558 enumeration value.
1559 (struct symbol): Remove objfile field, which was used by
1560 LOC_THREAD_LOCAL_STATIC only.
1561 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1562 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1563 usage of objfile pointer.
1564 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1565 thread local variables.
1566 Add include of objfiles.h.
1567 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1568 storage variables.
1569 * Makefile.in (dwarf2loc.o): Update dependencies.
1570
aef9bcd2
AC
15712003-07-22 Andrew Cagney <[email protected]>
1572
1573 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1574 get_frame_base.
1575 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1576 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1577 (struct value): Add opaque declaration.
1578 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1579
d95a8903
AC
15802003-07-21 Andrew Cagney <[email protected]>
1581
1582 From 2003-07-04 Kei Sakamoto <[email protected]>:
1583 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1584
4db73d49
SC
15852003-07-20 Stephane Carrez <[email protected]>
1586
1587 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1588 regcache_cooked_read_unsigned instead of read_register.
1589 (m68hc11_saved_pc_after_call): Likewise.
1590 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1591 instead of write_register.
1592 (m68hc11_register_type): New function.
1593 (m68hc11_register_virtual_type): Remove.
1594 (m68hc11_store_return_value): Convert to use the regcache.
1595 (m68hc11_extract_struct_value_address): Likewise.
1596 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1597 m68hc11_register_type; undeprecate store_return_value and
1598 extract_struct_value_address.
1599
ef2b8fcd
SC
16002003-07-20 Stephane Carrez <[email protected]>
1601
1602 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1603 and translate to use regcache.
1604 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1605
625b0b97
AC
16062003-07-18 Andrew Cagney <[email protected]>
1607
1608 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1609 * gdbarch.h, gdbarch.c: Re-generate.
1610 * i386-tdep.c (i386_gdbarch_init): Do not set
1611 DWARF2_BUILD_FRAME_INFO.
1612 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1613 unconditionally.
1614 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1615 DWARF2_BUILD_FRAME_INFO.
1616
22b0d388
AC
16172003-07-18 Andrew Cagney <[email protected]>
1618
1619 From 2003-07-04 Kei Sakamoto <[email protected]>:
1620 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1621
1ce5d6dd
AC
16222003-07-18 Andrew Cagney <[email protected]>
1623
1624 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1625 frame_unwind_address_in_block, instead of frame_pc_unwind.
1626 (dwarf2_frame_cache): Ditto.
1627
e6e5e94c
AC
16282003-07-18 Andrew Cagney <[email protected]>
1629
1630 * user-regs.h (struct gdbarch): Declare opaque.
1631 * ui-out.h (struct ui_file): Declare opaque.
1632 * dwarf2-frame.h (struct frame_info): Declare opaque.
1633
5483d879
KW
16342003-07-18 Kris Warkentin <[email protected]>
1635
1636 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1637 #include "...".
1638 (procfs_meminfo): Change strerror to safe_strerror.
1639 (procfs_can_run): Remove K&R badness.
1640
278a7cf7
MS
16412003-07-17 Michael Snyder <[email protected]>
1642
1643 * remote-sim.c: Comment typo fix.
1644
606e3b82
AC
16452003-07-17 Andrew Cagney <[email protected]>
1646
1647 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1648 configure.
1649 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1650 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1651 GDB_MULTI_ARCH_PARTIAL.
1652
c43af07c
EZ
16532003-07-17 Elena Zannoni <[email protected]>
1654
1655 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1656 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1657 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1658
3b85b0f1
TR
16592003-07-16 Theodore A. Roth <[email protected]>
1660
1661 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1662 found.
1663 (avr_frame_unwind_cache): Don't unwind FP for main.
1664 Update a comment.
1665 Save the computed prev_sp.
1666 (avr_saved_regs_unwinder): Remove function.
1667 (avr_frame_prev_register): Use PC unwind logic from
1668 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1669
336d1bba
AC
16702003-07-16 Andrew Cagney <[email protected]>
1671
1672 * frame-base.h (frame_base_p_ftype): Delete definition.
1673 (frame_base_append_predicate): Delete declaration.
1674 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1675 (frame_unwind_append_predicate): Delete declaration.
1676 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1677 (append_predicate): Delete parameter "p".
1678 (frame_unwind_append_predicate): Delete function.
1679 (frame_unwind_append_sniffer): Update call to append_predicate.
1680 (frame_unwind_free): Delete function.
1681 (_initialize_frame_unwind): Pass NULL as "free" to
1682 register_gdbarch_data.
1683 (frame_unwind_init): Append the dummy_frame_sniffer.
1684 (frame_unwind_find_by_frame): Simplify.
1685 * frame-base.c (struct frame_base_table): Delete field "p".
1686 (append_predicate): Delete parameter "p".
1687 (frame_base_append_predicate): Delete function.
1688 (frame_base_append_sniffer): Update call to append_predicate.
1689 (frame_base_free): Delete function.
1690 (frame_base_find_by_frame): Simplify.
1691 (_initialize_frame_base): Pass NULL as "free" to
1692 register_gdbarch_data.
1693 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1694 (x86_64_sigtramp_frame_sniffer): Replace
1695 "x86_64_sigtramp_frame_p".
1696 (x86_64_init_abi): Set the frame unwind sniffers.
1697 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1698 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1699 (m68k_gdbarch_init): Set the frame unwind sniffers.
1700 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1701 "i386_sigtramp_frame_p".
1702 (i386_frame_sniffer): Replace "i386_frame_p".
1703 (i386_gdbarch_init): Set the frame unwind sniffers.
1704 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1705 (avr_gdbarch_init): Set the frame unwind sniffers.
1706 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1707 "alpha_sigtramp_frame_p"
1708 (alpha_heuristic_frame_sniffer): Replace
1709 "alpha_heuristic_frame_p".
1710 (alpha_gdbarch_init): Set the frame unwind sniffers.
1711 (alpha_dwarf2_init_abi): Ditto.
1712 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1713 "alpha_debug_frame_p".
1714 (alpha_mdebug_frame_base_sniffer): Replace
1715 "alpha_mdebug_frame_base_p".
1716 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1717 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1718 (d10v_gdbarch_init): Set the frame unwind sniffer.
1719 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1720 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1721 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1722 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1723 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1724 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1725
48db5a3c
CV
17262003-07-16 Michael Snyder <[email protected]>
1727
1728 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1729 should go thru sh_dsp_register_sim_regno, else the dsp regs
1730 will not get the right values.
1731
17322003-07-16 Corinna Vinschen <[email protected]>
1733
1734 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1735 deprecated_store_floating by call to store_typed_floating.
1736 (sh_sh4_register_convert_to_raw): Substitute call to
1737 deprecated_extract_floating by call to extract_typed_floating.
1738
17392003-07-16 Corinna Vinschen <[email protected]>
1740
1741 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1742
17432003-07-16 Corinna Vinschen <[email protected]>
1744
1745 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1746 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1747 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1748 as possible.
1749 (do_pseudo_register): Remove.
1750 (sh_push_dummy_code): New function.
1751 (sh64_store_struct_return): Rename from sh_store_struct_return.
1752 Only called for sh64 now.
1753 (sh_extract_struct_value_address): Regcache'ify.
1754 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1755 and accomodate new tasks.
1756 (sh64_push_return_address): Rename from sh_push_return_address.
1757 Only called for sh64 now.
1758 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1759 Regcache'ify.
1760 (sh3e_sh4_extract_return_value): Regcache'ify.
1761 (sh_default_store_return_value): Ditto.
1762 (sh3e_sh4_store_return_value): Ditto.
1763 (sh_default_register_byte): Remove.
1764 (sh_sh4_register_byte): Remove.
1765 (sh_default_register_raw_size): Remove.
1766 (sh_sh4_register_raw_size): Remove.
1767 (sh_register_virtual_size): Remove.
1768 (sh_sh3e_register_virtual_type): Remove.
1769 (sh_sh3e_register_type): New function.
1770 (sh_sh4_register_virtual_type): Remove.
1771 (sh_sh4_register_type): New function.
1772 (sh_default_register_virtual_type): Remove.
1773 (sh_default_register_type): New function.
1774 (do_fv_register_info): Add parameters to accomodate call from
1775 sh_print_registers_info.
1776 (do_dr_register_info): Ditto.
1777 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1778 Add parameters to accomodate call from sh_print_registers_info.
1779 (sh_do_fp_register): Ditto.
1780 (sh64_do_pseudo_register): Call do_dr_register_info,
1781 do_fv_register_info and sh_do_fp_register with default parameters.
1782 (sh_do_register): Add parameters to accomodate call from
1783 sh_print_registers_info.
1784 (sh_print_register): Ditto.
1785 (sh_print_registers_info): Rename from sh_do_registers_info.
1786 Add parameters to be used as gdbarch_print_registers_info
1787 implementation. Accomodate removed do_pseudo_register function
1788 pointer.
1789 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1790 function pointer. Call sh_print_register with default parameters.
1791 (sh64_do_registers_info): Call sh_print_registers_info instead of
1792 sh_do_registers_info.
1793 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1794 detection of deprecated vs. non-deprecated functionality.
1795 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1796 function pointer assignments by direct function calls.
1797
e8a89fe2
AC
17982003-07-15 Andrew Cagney <[email protected]>
1799
1800 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1801 (frame_register_unwind, create_new_frame): Ditto.
1802 (legacy_get_prev_frame, get_frame_type): Ditto.
1803 (get_frame_base_address): Use frame_base_find_by_frame.
1804 (get_frame_locals_address): Use frame_base_find_by_frame.
1805 (get_frame_args_address): Use frame_base_find_by_frame.
1806 * frame-base.h (frame_base_sniffer_ftype): Declare.
1807 (frame_base_append_sniffer): Declare.
1808 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1809 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1810 (frame_base_append_sniffer): New function.
1811 (frame_base_append_predicate): Add a NULL sniffer.
1812 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1813 (struct frame_base_table): Add "sniffer".
1814 (frame_base_free): Free the "sniffer" table.
1815 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1816 (frame_unwind_append_sniffer): Declare.
1817 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1818 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1819 (struct frame_unwind_table): Add "sniffer", delete "middle".
1820 (append_predicate): Add "sniffer" parameter, append the sniffer.
1821 (frame_unwind_init): Update append_predicate call.
1822 (frame_unwind_append_sniffer): New function.
1823 (frame_unwind_append_predicate): Update append_predicate call.
1824 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1825
0714963c
AC
18262003-07-15 Andrew Cagney <[email protected]>
1827
1828 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1829 before code inhibiting repeated unwind attempts. Add to
1830 commentary on that test's problems.
1831 * blockframe.c (inside_main_func): Look for "main" in the minimal
1832 symbol table.
1833 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1834 identical.
1835
d9170e22
AC
18362003-07-15 Andrew Cagney <[email protected]>
1837
1838 * complaints.c (struct explanation): Define.
1839 (struct complaints): Change type of "explanation" to "struct
1840 explanation".
1841 (symfile_explanations): Convert to a "struct explanation" table.
1842 (vcomplaint): Update.
1843
eba29c8c
ML
18442003-07-15 Michal Ludvig <[email protected]>
1845
1846 * x86-64-linux-nat.c (regmap): Removed.
1847 (supply_gregset, fill_gregset): Call
1848 x86_64_linux_(fill,supply)_gregset functions.
1849 * x86-64-linux-tdep.c (USER_*): New defines.
1850 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1851 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1852 New functions.
1853 (fetch_core_registers): Ditto.
1854 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1855 * x86-64-linux-tdep.h: New file.
1856 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1857 and core-regset.o.
1858 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1859
68cc0bfb
MK
18602003-07-13 Mark Kettenis <[email protected]>
1861
88a115f7
MK
1862 * x86-64-tdep.c (x86_64_store_return_value): Use
1863 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1864
68cc0bfb
MK
1865 * configure.host: Add x86_64-*-freebsd*.
1866 * configure.tgt: Add x86_64-*-freebsd*.
1867 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1868 * amd64fbsd-nat.c: New file.
1869 * amd64fbsd-tdep.c: New file.
1870 * config/i386/nm-fbsd64.h: New file.
1871 * config/i386/fbsd64.mh: New file.
1872 * config/i386/fbsd64.mt: New file.
1873
138e7be5
MK
18742003-07-11 Mark Kettenis <[email protected]>
1875
1876 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1877 `sc_regs_offset' and `sc_fpregs_offset'.
1878 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1879 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1880 (alpha_sigtramp_register_address): Rewrite to use new members of
1881 `struct gdbarch_tdep'.
1882 (alpha_gdbarch_init): Initialize new members of struct
1883 gdbarch_tdep'.
1884 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1885 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1886 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1887 (alphafbsd_pc_in_sigtramp): Implement.
1888 (alphafbsd_sigtramp_offset): New function.
1889 (alphafbsd_sigcontext_addr): New function.
1890 (alphafbsd_init_abi): Initialize signal trampoline related members
1891 of `struct gdbarch_tdep'.
1892 (_initialize_alphafbsd_tdep): Add prototype.
1893
95303a68
TR
18942003-07-11 Theodore A. Roth <[email protected]>
1895
ba292e4c
TR
1896 * Makefile.in (install-only): Quote sed expression when generating
1897 transformed_name.
95303a68 1898
6896c0c7
RH
18992003-07-11 Richard Henderson <[email protected]>
1900
1901 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1902 * dwarf2-frame.c: Include complaints.h.
1903 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1904 variable initialization; return NULL on error.
1905 (decode_frame_entry): New.
1906
8edd5d01
AC
19072003-07-11 Andrew Cagney <[email protected]>
1908
c4a09524
AC
1909 * frame.h (frame_address_in_block): Delete declaration.
1910 * blockframe.c (frame_address_in_block): Delete function.
1911 (get_frame_block): Use get_frame_address_in_block.
1912 (block_innermost_frame): Ditto.
1913 * stack.c (print_frame, backtrace_command_1): Ditto.
1914
8edd5d01
AC
1915 * frame.h (get_frame_address_in_block): Declare.
1916 (frame_unwind_address_in_block): Declare.
1917 * frame.c (frame_unwind_address_in_block): New function.
1918 (get_frame_address_in_block): New function.
1919
f7968451
AC
19202003-07-10 Andrew Cagney <[email protected]>
1921
1922 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1923 pre-default. Note: re-generate has no effect.
1924
ae99b398
AC
19252003-07-10 Andrew Cagney <[email protected]>
1926
1927 * gdbarch.sh: When a variable, but not a function, compare against
1928 0. Fix problem in previous patch.
1929 * gdbarch.c: Re-generate.
1930
956ac328
AC
19312003-07-10 Andrew Cagney <[email protected]>
1932
1933 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1934 functions against NULL, not 0.
1935 * gdbarch.c: Re-generate.
1936
287c3240
FF
19372003-07-10 Fred Fish <[email protected]>
1938
1939 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1940 null string instead of a null pointer.
1941 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1942
32f63c4b
MS
19432003-07-09 Michael Snyder <[email protected]>
1944
1945 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1946
402ecd56
MK
19472003-07-09 Mark Kettenis <[email protected]>
1948
1949 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1950 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1951 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1952 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1953 * x86-64-tdep.c: ... from here.
1954
c481dac7
AS
19552003-07-09 Andreas Schwab <[email protected]>
1956
1957 * m68k-tdep.h (enum struct_return): Define.
1958 (struct gdbarch_tdep): Add struct_return.
1959 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1960 bytes are padded to the right, not to the left. Pass struct value
1961 address in register %a1, not on stack.
1962 (m68k_use_struct_convention): New function.
1963 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1964 struct_return in tdep to pcc_struct_return.
1965 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1966 reg_struct_return.
1967
64176fa3
JB
19682003-07-09 Joel Brobecker <[email protected]>
1969
1970 * somread.c (som_symfile_offsets): Fix compilation error.
1971
96a4ee76
AC
19722003-07-09 Andrew Cagney <[email protected]>
1973
1974 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1975 Add comments about the checks.
1976
1517c6d1
AC
19772003-07-08 Andrew Cagney <[email protected]>
1978
1979 * Makefile.in: Make dependency section headers consistent.
1980 (config_h): Move to $BUILD headers section.
1981 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1982 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1983 (ada-exp.tab.c): Move to YACC/LEX section.
1984 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1985 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1986
dc5dd1eb
KW
19872003-07-08 Kris Warkentin <[email protected]>
1988
1989 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
1990 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1991 of strerror with safe_strerror, use ISO C function definitions,
1992 and replace instances of sprintf with snprintf.
dc5dd1eb 1993
612dde91
AC
19942003-07-07 Andrew Cagney <[email protected]>
1995
1996 * frame.c (get_prev_frame): Enable check for identical frames.
1997 Update comments. Update error messages.
1998
492c11d3
JB
19992003-07-07 Joel Brobecker <[email protected]>
2000
2001 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2002
376a5a49
JB
20032003-07-07 Joel Brobecker <[email protected]>
2004
2005 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2006 sort_symtab_syms, no longer necessary.
2007
22b4a9ad
JB
20082003-07-07 Joel Brobecker <[email protected]>
2009
2010 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2011
5bbcb741
JB
20122003-07-07 Joel Brobecker <[email protected]>
2013
2014 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2015 (mips_register_byte): Likewise.
2016
c139e7d9
DJ
20172003-07-07 Daniel Jacobowitz <[email protected]>
2018
2019 * Makefile.in (sparc_tdep_h): New.
2020 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2021 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2022 * sparc-linux-nat.c: Include "sparc-tdep.h".
2023 * sparc-nat.c: Likewise.
2024 * sparc-tdep.c: Likewise.
2025 * sparc64nbsd-nat.c: Likewise.
2026 * sparcnbsd-nat.c: Likewise.
2027 * sparcnbsd-tdep.c: Likewise.
2028 * sparc-tdep.h: New file.
2029 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2030 and sparc_npc_regnum.
2031
fd8f87c5
DJ
20322003-07-07 Daniel Jacobowitz <[email protected]>
2033
2034 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2035 (mips_linux_cannot_store_register): List supported instead of
2036 unsupported registers.
2037
13adf674
DJ
20382003-07-07 Daniel Jacobowitz <[email protected]>
2039
2040 * disasm.c (dump_insns): Separate instructions from addresses.
2041
8de307e0
AS
20422003-07-07 Andreas Schwab <[email protected]>
2043
2044 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2045 dependencies.
2046 * m68k-tdep.c (NUM_FREGS): Delete.
2047 (SIG_PC_FP_OFFSET): Delete.
2048 (TARGET_M68K): Delete.
2049 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2050 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2051 P_MOVEL_SP, P_MOVEML_SP): Define.
2052 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2053 P_TRAP): Delete.
2054 (m68k_register_raw_size): Delete.
2055 (m68k_register_virtual_size): Delete.
2056 (m68k_register_type): Renamed from m68k_register_virtual_type and
2057 add gdbarch argument.
2058 (m68k_store_struct_return): Delete.
2059 (m68k_deprecated_extract_return_value): Delete.
2060 (m68k_deprecated_extract_struct_value_address): Delete.
2061 (m68k_frame_chain): Delete.
2062 (m68k_frame_saved_pc): Delete.
2063 (m68k_fix_call_dummy): Delete.
2064 (m68k_push_dummy_frame): Delete.
2065 (m68k_pop_frame): Delete.
2066 (m68k_extract_return_value): New function.
2067 (m68k_store_return_value): Rewrite using regcache.
2068 (m68k_extract_struct_value_address): Rewrite using regcache.
2069 (m68k_push_dummy_call): New function.
2070 (struct m68k_frame_cache): Define.
2071 (m68k_alloc_frame_cache): New function.
2072 (m68k_analyze_frame_setup): New function.
2073 (m68k_analyze_register_saves): New function.
2074 (m68k_analyze_prologue): New function.
2075 (m68k_skip_prologue): Rewrite using above functions.
2076 (m68k_unwind_pc): New function.
2077 (m68k_frame_cache): New function.
2078 (m68k_frame_this_id): New function.
2079 (m68k_frame_prev_register): New function.
2080 (m68k_frame_unwind): New variable.
2081 (m68k_frame_p): New function.
2082 (m68k_sigtramp_frame_cache): New function.
2083 (m68k_sigtramp_frame_this_id): New function.
2084 (m68k_sigtramp_frame_prev_register): New function.
2085 (m68k_sigtramp_frame_unwind): New variable.
2086 (m68k_sigtramp_frame_p): New function.
2087 (m68k_frame_base_address): New function.
2088 (m68k_frame_base): New function.
2089 (m68k_unwind_dummy_id): New function.
2090 (fill_gregset): Use regcache_collect.
2091 (fill_fpregset): Likewise.
2092 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2093 defined.
2094 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2095 deprecated_init_frame_pc, deprecated_store_struct_return,
2096 deprecated_extract_return_value, deprecated_store_return_value,
2097 deprecated_frame_chain, deprecated_frame_saved_pc,
2098 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2099 deprecated_register_virtual_size,
2100 deprecated_max_register_raw_size,
2101 deprecated_max_register_virtual_size,
2102 deprecated_register_virtual_type, deprecated_register_size,
2103 deprecated_register_byte, deprecated_register_bytes,
2104 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2105 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2106 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2107 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2108 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2109 deprecated_push_dummy_frame, deprecated_pop_frame,
2110 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2111 only if SYSCALL_TRAP is defined. Set extract_return_value,
2112 store_return_value, extract_struct_value_address, register_type,
2113 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2114 predicates.
2115 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2116 M68K_MAX_REGISTER_SIZE): Define.
2117 (struct m68k_sigtramp_info): Define.
2118 (struct gdbarch_tdep): Add get_sigtramp_info.
2119 * m68klinux-nat.c (fetch_register): Use register_size instead of
2120 REGISTER_RAW_SIZE. Don't put assignment in if.
2121 (store_register): Likewise.
2122 (fetch_inferior_registers): Likewise.
2123 (store_inferior_registers): Likewise.
2124 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2125 (m68k_linux_frame_saved_pc): Delete.
2126 (m68k_linux_sigcontext_reg_offset,
2127 m68k_linux_ucontext_reg_offset): Define.
2128 (m68k_linux_get_sigtramp_info): New function.
2129 (m68k_linux_extract_return_value): Rewrite using regcache.
2130 (m68k_linux_store_return_value): Likewise.
2131 (m68k_linux_extract_struct_value_address): Likewise.
2132 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2133 Don't set deprecated_frame_saved_pc,
2134 deprecated_extract_return_value, deprecated_store_return_value,
2135 deprecated_extract_struct_value_address. Set
2136 extract_return_value, store_return_value,
2137 extract_struct_value_address.
2138
eb8bc282
AC
21392003-07-07 Andrew Cagney <[email protected]>
2140
2141 * expprint.c: Include "user-regs.h" instead of "frame.h".
2142 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2143 frame_map_regnum_to_name.
2144 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2145 (frame_map_name_to_regnum): Simplify, call
2146 user_reg_map_name_to_regnum.
2147 (frame_map_regnum_to_name): Simplify, call
2148 user_reg_map_regnum_to_name.
2149 (frame_register_unwind): Update.
2150 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2151 (_initialize_frame_reg): Call user_reg_add_builtin.
2152 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2153 (value_of_register): Use value_of_user_reg.
2154 * eval.c (evaluate_subexp_standard): Update.
2155 * parse.c (write_dollar_variable): Update.
2156 * d10v-tdep.c (d10v_print_registers_info): Update.
2157 * infcmd.c (registers_info): Update.
2158 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2159 (builtin_regs_h): Delete macro.
2160 (user_regs_h): Define.
2161 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2162 (builtin-regs.o): Delete target.
2163 (user-regs.o): Specify dependencies.
2164 (expprint.o): Update dependencies.
2165 (findvar.o): Update dependencies.
2166 (frame.o): Update dependencies.
2167 (std-regs.o): Update dependencies.
2168
9f476a01
CF
21692003-07-06 Christopher Faylor <[email protected]>
2170
2171 * win32-nat.c (solib_symbols_add): Use one variable for all section
2172 address stuff. Pass variable rather than address of variable to
2173 safe_symbol_file_add.
2174
a731b831
AS
21752003-07-06 Andreas Schwab <[email protected]>
2176
2177 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2178
9f83329d
JB
21792003-07-04 Joel Brobecker <[email protected]>
2180
2181 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2182
27e28cc5
KW
21832003-07-04 Kris Warkentin <[email protected]>
2184
2185 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2186
21872003-07-04 Kris Warkentin <[email protected]>
2188
2189 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2190 * config/i386/nto.mh: New file.
2191 * config/i386/nm-nto.h: New file.
2192 * configure.host: Add i[3456]86-*-nto*.
2193
100f2e98
JB
21942003-07-03 Joel Brobecker <[email protected]>
2195
2196 * remote-vx.c (vx_add_symbols): Fix compilation error.
2197
e23457df
AC
21982003-07-03 Andrew Cagney <[email protected]>
2199
2200 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2201 * gdbarch.h, gdbarch.c: Re-generate.
2202 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2203 (legacy_register_name): Declare.
2204 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2205 (REGISTER_NAME): Define.
2206 * sparc-tdep.c (legacy_register_name): New function.
2207 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2208 (REGISTER_NAME): Define.
2209 (hppa64_register_name): Declare.
2210 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2211 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2212 (hppa64_register_name): New function.
2213 (hppa_register_name): New function.
2214 * arch-utils.c (legacy_register_name): Delete.
2215 * arch-utils.h (legacy_register_name): Delete.
2216
38caaeec
DJ
22172003-07-03 Daniel Jacobowitz <[email protected]>
2218
2219 * cli/cli-interp.c (cli_interpreter_resume): Update the
2220 cli_uiout's stream to gdb_stdout.
2221
dadd712e
AC
22222003-07-03 Andrew Cagney <[email protected]>
2223
2224 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2225 predicate.
2226 * gdbarch.h, gdbarch.c: Re-generate.
2227 * regcache.c (init_regcache_descr): Use legacy code when either
2228 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2229
c7f1390e
DJ
22302003-07-02 Daniel Jacobowitz <[email protected]>
2231
2232 * NEWS: Move "set logging" entry into GDB 6.0 section.
2233
4bc8c588
JB
22342003-07-02 Jim Blandy <[email protected]>
2235
a9dd42f1
JB
2236 * s390-tdep.c (struct frame_extra_info): new member:
2237 'stack_bought_valid'.
2238 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2239 initialize fextra_info->stack_bought.
2240 (s390_frameless_function_invocation): Don't trust the value of
2241 fextra_info_ptr->stack_bought unless
2242 fextra_info->stack_bought_valid is set.
2243
4bc8c588
JB
2244 New S390 prologue analyzer.
2245 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2246 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2247 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2248 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2249 compute_x_addr, s390_on_stack, s390_store,
2250 s390_get_signal_frame_info): New functions.
2251 (S390_NUM_SPILL_SLOTS): New macro.
2252 (s390_get_frame_info): Rewritten.
2253 (is_arg_reg): Deleted.
2254
2255 Break out the decoding of S/390 instructions into separate
2256 functions, to make it more legible, and easier to check
2257 against the spec.
2258 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2259 is_rx, is_rxe): New functions.
2260 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2261 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2262 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2263 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2264 enums for opcode values. (Is this an improvement?)
2265
fd13a04a
AC
22662003-07-02 Andrew Cagney <[email protected]>
2267
2268 * i386-tdep.c: Revert change committed as part of trad-frame code
2269 below.
2270
3f8091c1
DJ
22712003-07-02 Daniel Jacobowitz <[email protected]>
2272
2273 * breakpoint.c (insert_catchpoint): Make static.
2274
8dd5115e
AS
22752003-07-02 Andreas Schwab <[email protected]>
2276
2277 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2278 former ia64_push_arguments and ia64_push_return_address, and use
2279 regcache functions instead of read/write_register.
2280 (ia64_gdbarch_init): Set push_dummy_call instead of
2281 deprecated_push_arguments and deprecated_push_return_address.
2282
a2229c23
AJ
22832003-07-01 Andreas Jaeger <[email protected]>
2284
2285 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2286 before the call.
2287 Set %rax only to number of SSE registers used.
2288
3b3850e8
AC
22892003-07-01 Andrew Cagney <[email protected]>
2290
2291 * trad-frame.h: Update comments, a -1 .addr is reserved.
2292 (trad_frame_value_p, trad_frame_addr_p): Declare.
2293 (trad_frame_reg_p): Declare.
2294 (trad_frame_set_value): Rename trad_frame_register_value.
2295 (trad_frame_set_unknown): Declare.
2296 * trad-frame.c (trad_frame_realreg_p): New function.
2297 (trad_frame_addr_p, trad_frame_value_p): New function.
2298 (trad_frame_set_unknown): New function.
2299 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2300 (trad_frame_prev_register): Use trad_frame_realreg_p,
2301 trad_frame_addr_p and trad_frame_value_p.
2302 (trad_frame_set_value): Rename trad_frame_register_value.
2303 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2304 and trad_frame_set_value.
a2229c23 2305
4d819d0e
JB
23062003-06-30 Jim Blandy <[email protected]>
2307
2308 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2309 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2310 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2311 for 16 registers, and then 32 more bytes.
2312 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2313 New macros.
2314 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2315 Move up in the file, since it's now used by is_simple_arg.
2316 (is_simple_arg): Don't assume registers are four bytes long.
2317 Exclude all double arguments. Extended floats are not simple
2318 args.
2319 (is_power_of_two): New function.
2320 (pass_by_copy_ref): Call is_power_of_two, and check that the
2321 length fits in a register, rather than listing all the acceptable
2322 sizes. Extended floats are not passed by reference.
2323 (s390_push_arguments): Don't assume registers are four bytes long.
2324 Reserve an argument register to point to the buffer for structures
2325 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2326 S390_STACK_FRAME_OVERHEAD.
2327
1ad828f1
AS
23282003-06-30 Andreas Schwab <[email protected]>
2329
2330 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2331 format error message.
2332
39b00981
JB
23332003-06-30 Joel Brobecker <[email protected]>
2334
2335 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2336
b2a7f303
DC
23372003-06-30 David Carlton <[email protected]>
2338
2339 Band-aid for PR c++/1245.
2340 * Makefile.in (cp-support.o): Depend on complaints_h.
2341 * cp-support.c: Include complaints.h. Add declaration for
2342 find_last_component.
2343 (cp_find_first_component): Separate code into
2344 cp_find_first_component_aux.
2345 (cp_find_first_component_aux): Call demangled_name_complaint.
2346 (demangled_name_complaint): New.
2347
a257b5bb
AC
23482003-06-30 Andrew Cagney <[email protected]>
2349
2350 * remote.c (remote_write_bytes): Explicitly compute and then use
2351 the payload size. Update comments to reflect. Fixes problem of
2352 GDB not sending small packets as found by Fred Fish.
2353
0a2cfde4
AC
23542003-06-30 Andrew Cagney <[email protected]>
2355
2356 * remote.c (remote_async_wait): Fix -Wformat problem.
2357
3fcb8548
AC
23582003-06-29 Andrew Cagney <[email protected]>
2359
2360 * remote.c (remote_wait): Call error, and not warning, when the
2361 packet is corrupt.
2362 (remote_async_wait): Ditto.
2363
9f9970a3
DJ
23642003-06-29 Daniel Jacobowitz <[email protected]>
2365
2366 * sparc-tdep.c (sparc_y_regnum): Make external again.
2367
83a8ccca
DJ
23682003-06-29 Daniel Jacobowitz <[email protected]>
2369
2370 * cli/cli-logging.c (pop_output_files): Add void to function
2371 definition.
2372
d2cf594a
AC
23732003-06-29 Andrew Cagney <[email protected]>
2374
2375 * frame.c (frame_register_unwind): Use unsigned char when dumping
2376 the buffer contents.
2377
0fac0b41
DJ
23782003-06-28 Daniel Jacobowitz <[email protected]>
2379
2380 * cli/cli-logging.c: New file.
2381 * cli-out.c (struct ui_out_data): Add original_stream.
2382 (cli_redirect): New function.
2383 (cli_ui_out_impl): Add cli_redirect.
2384 (cli_out_new): Initialize original_stream.
2385 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2386 (uo_redirect, ui_out_redirect): New.
2387 * ui-out.h (struct ui_out_impl): Add redirect member.
2388 (redirect_ftype): New.
2389 (ui_out_redirect): Add prototype.
2390 * Makefile.in: Add rules for cli-logging.c.
2391 * NEWS: Mention "set logging".
2392
88a07d7c
EZ
23932003-06-27 Elena Zannoni <[email protected]>
2394
2395 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2396
4eb58876
AC
23972003-06-27 Andrew Cagney <[email protected]>
2398
2399 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2400 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2401 * avr-tdep.c (avr_call_dummy_address): Delete function.
2402 (avr_gdbarch_init): Do not set call_dummy_address.
2403
1549f619
EZ
24042003-06-27 Elena Zannoni <[email protected]>
2405
2406 * symfile.c (syms_from_objfile): Move variables to inner block.
2407 Move the checks for the non-mainline case a bit earlier to avoid
2408 doing some useless computations.
2409
3cb3398d
EZ
24102003-06-27 Elena Zannoni <[email protected]>
2411
2412 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2413
3799ccc6
EZ
24142003-06-26 Elena Zannoni <[email protected]>
2415
2416 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2417 sections.
2418
ce1f6491
MC
24192003-06-26 Michael Chastain <[email protected]>
2420
2421 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2422 gdb/testsuite/gdb.c++/pr-1210.exp.
2423
d958dfd0
AC
24242003-06-26 Andrew Cagney <[email protected]>
2425
2426 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2427 altivec_expression.h and altivec_registers.h.
2428
d31431ed
AC
24292003-06-26 Andrew Cagney <[email protected]>
2430
2431 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2432 info->mach when MIPS16. Patch suggested by Fred Fish.
2433
714b1282
AC
24342003-06-26 Andrew Cagney <[email protected]>
2435
2436 * utils.c (internal_vproblem): Print the problem to a reason
2437 buffer and then pass to query. Make the msg variable more local.
2438
42efa47a
AC
24392003-06-26 Andrew Cagney <[email protected]>
2440
2441 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2442 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2443 * gdbarch.h, gdbarch.c: Re-generate.
2444 * frame-base.c (default_frame_args_address): Update. Use
2445 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2446 not available.
2447 (default_frame_locals_address): Ditto for
2448 DEPRECATED_FRAME_LOCALS_ADDRESS.
2449 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2450 (vax_frame_num_args): Update.
2451 (vax_gdbarch_init): Update.
2452 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2453 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2454 * mcore-tdep.c (mcore_gdbarch_init): Update.
2455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2456 * ia64-tdep.c (ia64_gdbarch_init): Update.
2457 * symtab.h (address_class): Update comments.
2458 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2459 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2460 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2461 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2462 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2463 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2464 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2465 * alpha-mdebug-tdep.c: Update.
2466 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2467
8ffd9b1b
AJ
24682003-06-26 Andreas Jaeger <[email protected]>
2469
2470 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2471 of SSE registers so that varargs functions work. Rework handling
2472 of passing arguments on the stack.
2473 (x86_64_store_return_value): Return double and float values in SSE
2474 register.
2475
e8ac10a6
MC
24762003-06-24 Michael Chastain <[email protected]>
2477
2478 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2479 the "constructor breakpoints ignored" bug.
2480
986af8e6
DC
24812003-06-25 David Carlton <[email protected]>
2482
2483 * MAINTAINERS: Update e-mail address.
2484
d64558a5
JB
24852003-06-24 Jim Blandy <[email protected]>
2486
e538d2d7
JB
2487 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2488
02631ec0
JB
2489 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2490 function.
2491 (ppc_linux_init_abi): Register it as the
2492 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2493
e716d87a
JB
2494 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2495 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2496 method.
2497
d64558a5
JB
2498 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2499 (ppc64_standard_linkage_target): Use it.
2500
449a5da4
AC
25012003-06-23 Andrew Cagney <[email protected]>
2502
2503 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2504 for 0 "int0" and 4 "int32" sized registers.
2505 * gdbtypes.c (builtin_type_int0): Define.
2506 (build_gdbtypes): Initialize builtin_type_int0.
2507 * gdbtypes.h (builtin_type_int0): Declare.
2508
b2a02dda
SC
25092003-06-23 Stephane Carrez <[email protected]>
2510
2511 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2512 as characters are unsigned.
2513
fba3138e
DJ
25142003-06-22 Daniel Jacobowitz <[email protected]>
2515
2516 PR gdb/1179
2517 * dwarfread.c (struct_type): Skip static fields without crashing.
2518
f6c8180b
AC
25192003-06-22 Andrew Cagney <[email protected]>
2520
2521 GDB 6.0 branch created.
f2c06f52
AC
2522 * README: Update.
2523 * PROBLEMS: Update. Empty.
2524 * NEWS: Update.
f6c8180b 2525
ae822768
DJ
25262003-06-22 Daniel Jacobowitz <[email protected]>
2527
2528 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2529 Suggested by Nick Hibma <[email protected]>.
2530
261de166
AC
25312003-06-22 Andrew Cagney <[email protected]>
2532
2533 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2534 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2535 Velikov.
2536
30e94205
DJ
25372003-06-22 Daniel Jacobowitz <[email protected]>
2538
2539 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2540 compilers.
2541
9e14d721
DJ
25422003-06-21 Daniel Jacobowitz <[email protected]>
2543
2544 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2545 argument of val_print.
2546 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2547 to the address argument of baseclass_offset or target_read_memory.
2548 Do add it to the argument of cp_print_value_fields.
2549
a4b8ebc8
AC
25502003-06-21 Andrew Cagney <[email protected]>
2551
2552 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2553 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2554 instead of 0..NUM_REGS.
2555 (mips_register_reggroup_p): New function.
2556 (mips_pseudo_register_write): New function.
2557 (mips_pseudo_register_read): New function.
2558 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2559 based on the register's type.
2560 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2561 cooked.
2562 (mips_get_saved_register): Simplify. Assert that REGNO is a
2563 pseudo / cooked.
2564 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2565 (mips_register_type): Replace mips_register_virtual_type. Map
2566 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2567 when available.
2568 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2569 that the register is cooked / virtual.
2570 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2571 Only get the extra info when needed.
2572 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2573 (mips32_heuristic_proc_desc): Fetch the cooked register.
2574 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2575 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2576 (mips_print_register): Use gdbarch_register_type, instead of
2577 REGISTER_VIRTUAL_TYPE.
2578 (print_gp_register_row): Use gdbarch_register_type, instead of
2579 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2580 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2581 Print the pseudo / cooked registers.
2582 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2583 Print the pseudo / cooked registers.
2584 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2585 REG_NUM is pseudo / cooked.
2586 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2587 (mips_n32n64_xfer_return_value): Ditto.
2588 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2589 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2590 (mips_register_sim_regno): New function.
2591 (mips_gdbarch_init): Set deprecated_register_byte,
2592 register_group_p, pseudo_register_write, pseudo_register_read,
2593 register_sim_regno, and num_pseudo_regs. Set register_type,
2594 instead of register_virtual_type.
2595 * Makefile.in (mips-tdep.o): Update dependencies.
2596 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2597 REGISTER_VIRTUAL_TYPE.
2598 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2599 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2600 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2601 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2602 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2603
325ed089
DJ
26042003-06-21 Daniel Jacobowitz <[email protected]>
2605
2606 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2607 * cli/cli-cmds.c: Include "gdb_vfork.h".
2608 (shell_escape): Use vfork.
2609
f0e7d0e8
AC
26102003-06-21 Andrew Cagney <[email protected]>
2611
c57bb9fa
AC
2612 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2613 32 bit floating-point register saves.
2614
6e51443a
AC
2615 * frame.h (deprecated_unwind_get_saved_register): Delete.
2616 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2617 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2618 and deprecated_get_next_frame_hack instead of
2619 deprecated_unwind_get_saved_register.
2620
ed183c7c
AC
2621 * mips-tdep.c (mips_dump_tdep): Do not print
2622 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2623
f0e7d0e8
AC
2624 * frame.c (get_frame_register): New function.
2625 (frame_unwind_register_signed): New function.
2626 (get_frame_register_signed): New function.
2627 (frame_unwind_register_unsigned): New function.
2628 (get_frame_register_unsigned): New function.
2629 * frame.h: Add comments on naming schema.
2630 (get_frame_register, frame_unwind_register_signed): Declare.
2631 (get_frame_register_signed, get_frame_register_signed): Declare.
2632 (frame_unwind_register_unsigned): Declare.
2633 (get_frame_register_unsigned): Declare.
2634
2224d941
TR
26352003-06-20 Theodore A. Roth <[email protected]>
2636
2637 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2638
8619218d
TR
26392003-06-20 Theodore A. Roth <[email protected]>
2640
2641 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2642 (avr_read_sp): Ditto.
2643
0b1b50c0
DJ
26442003-06-20 Daniel Jacobowitz <[email protected]>
2645
2646 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2647 * config/arm/nm-linux.h: Likewise.
2648 * config/arm/tm-linux.h: Likewise.
2649 * config/ia64/nm-linux.h: Likewise.
2650 * config/ia64/tm-ia64.h: Likewise.
2651 * config/s390/tm-linux.h: Likewise.
2652 * config/s390/tm-s390.h: Likewise.
2653 * s390-nat.c: Likewise.
2654 * s390-tdep.c: Likewise.
2655
2656 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2657 * config/ia64/linux.mt: Likewise.
2658 * config/m68k/linux.mh: Likewise.
2659 * config/mips/linux.mt: Likewise.
2660 * config/powerpc/linux.mh: Likewise.
2661 * config/sh/linux.mt: Likewise.
2662
c8c18e65
KW
26632003-06-19 Kris Warkentin <[email protected]>
2664
2665 * solib.c (solib_open): Change tests for whether to search
2666 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2667 comments.
2668
dcccef2e
TR
26692003-06-19 Theodore A. Roth <[email protected]>
2670
2671 * avr-tdep.c (avr_frame_address): Delete function.
2672 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2673 set_gdbarch_frame_args_address.
2674
5861a190
AC
26752003-06-19 Andrew Cagney <[email protected]>
2676
2677 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2678 (REGISTER_CONVERT_FROM_TYPE): Delete.
2679 (mips_register_convert_to_type): Delete declaration.
2680 (mips_register_convert_from_type): Delete declaration.
2681 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2682 kernel/.
2683
0274a8ce
MS
26842003-06-19 Michael Snyder <[email protected]>
2685
2686 * linux-nat.h: New file.
2687 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2688 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2689 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2690 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2691 (linux_make_note_section): Iterate over lwps instead of threads.
2692 (linux_do_thread_registers): Use lwp instead of merged pid.
2693 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2694 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2695 Add dependency on linux_nat_h.
2696
adf5f719
TR
26972003-06-19 Theodore A. Roth <[email protected]>
2698
2699 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2700
6766a268
DJ
27012003-06-19 Daniel Jacobowitz <[email protected]>
2702
2703 * varobj.c (get_type, get_target_type): Use check_typedef.
2704
1171114a
DJ
27052003-06-19 Daniel Jacobowitz <[email protected]>
2706
2707 * breakpoint.c (insert_catchpoint): Call internal_error.
2708
adcf68a2
TR
27092003-06-19 Theodore A. Roth <[email protected]>
2710
2711 * avr-tdep.c (avr_push_dummy_code): Delete function.
2712 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2713
ea67f13b
DJ
27142003-06-19 Daniel Jacobowitz <[email protected]>
2715
2716 * arch-utils.c (default_prepare_to_proceed): Remove.
2717 (generic_prepare_to_proceed): Remove.
2718 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2719 (generic_prepare_to_proceed): Remove prototype.
2720 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2721 * gdbarch.c: Regenerate.
2722 * gdbarch.h: Regenerate.
2723 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2724 * hppah-nat.c (hppa_switched_threads): Remove.
2725 * infrun.c (prepare_to_proceed): New static function, copied from
2726 generic_prepare_to_proceed. Remove select_it argument.
2727 (proceed): Call prepare_to_proceed.
2728 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2729 variables.
2730 (ptrace_wait): Don't set the removed variables.
2731 (hppa_switched_threads): Remove.
2732 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2733 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2734 (lin_lwp_prepare_to_proceed): Remove prototype.
2735 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2736 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2737
4add8633
TR
27382003-06-18 Theodore A. Roth <[email protected]>
2739
2740 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2741 trad-frame.h.
2742 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2743 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2744 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2745 (AVR_PROLOGUE_*): Enumerate prologue types.
2746 (struct frame_extra_info): Remove.
2747 (struct avr_unwind_cache): Define.
2748 (avr_write_sp): Delete function.
2749 (avr_read_fp): Ditto.
2750 (avr_init_extra_frame_info): Ditto.
2751 (avr_pop_frame): Ditto.
2752 (avr_frame_saved_pc): Ditto.
2753 (avr_saved_pc_after_call): Ditto.
2754 (avr_push_return_address): Ditto.
2755 (avr_frame_chain): Ditto.
2756 (avr_store_struct_return): Ditto.
2757 (avr_push_arguments): Ditto.
2758 (avr_scan_prologue): Update comments. Changed to set up the info for
2759 cache unwinding. Now returns end of prologue PC.
2760 (avr_skip_prologue): Better handling of functions lacking a prologue
2761 by using avr_scan_prologue.
2762 (avr_scan_arg_moves): New function.
2763 (avr_saved_regs_unwinder): Ditto.
2764 (avr_frame_unwind_cache): Ditto.
2765 (avr_unwind_pc): Ditto.
2766 (avr_frame_this_id): Ditto.
2767 (avr_frame_prev_register): Ditto.
2768 (avr_frame_p): Ditto.
2769 (avr_frame_base_address ): Ditto.
2770 (avr_unwind_dummy_id): Ditto.
2771 (avr_push_dummy_code): Ditto.
2772 (push_stack_item): Ditto.
2773 (pop_stack_item): Ditto.
2774 (avr_push_dummy_call): Ditto.
2775 (struct stack_item): Define.
2776 (avr_frame_unwind): Declare structure.
2777 (avr_frame_base): Ditto.
2778 (avr_gdbarch_init): Remove calls to
2779 set_gdbarch_deprecated_init_frame_pc,
2780 set_gdbarch_deprecated_target_read_fp,
2781 set_gdbarch_deprecated_dummy_write_sp,
2782 set_gdbarch_deprecated_fp_regnum,
2783 set_gdbarch_deprecated_push_arguments,
2784 set_gdbarch_deprecated_push_return_address,
2785 set_gdbarch_deprecated_pop_frame,
2786 set_gdbarch_deprecated_store_struct_return,
2787 set_gdbarch_deprecated_frame_init_saved_regs,
2788 set_gdbarch_deprecated_init_extra_frame_info,
2789 set_gdbarch_deprecated_frame_chain,
2790 set_gdbarch_deprecated_frame_saved_pc,
2791 set_gdbarch_deprecated_saved_pc_after_call.
2792 Add calls to set_gdbarch_push_dummy_call,
2793 set_gdbarch_push_dummy_code,
2794 frame_unwind_append_predicate,
2795 frame_base_set_default,
2796 set_gdbarch_unwind_dummy_id,
2797 set_gdbarch_unwind_pc.
2798 Wrap a long line.
2799
7be04a68
MS
28002003-06-18 Corinna Vinschen <[email protected]>
2801
2802 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2803 registers for H8/300S.
2804 (h8300_print_registers_info): Ditto.
8ffd9b1b 2805 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2806
ae087d01
DJ
28072003-06-18 Daniel Jacobowitz <[email protected]>
2808
2809 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2810 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2811 (lin_lwp_wait): Likewise. Update comments.
2812 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2813 (pull_pid_from_list, linux_record_stopped_pid): New.
2814
07d8f827
SC
28152003-06-17 Stephane Carrez <[email protected]>
2816
2817 * ada-lang.c (scan_discrim_bound): Name first argument.
2818 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2819 declared by ALL_BLOCK_SYMBOLS.
2820
7cb47b14
SC
28212003-06-17 Stephane Carrez <[email protected]>
2822
2823 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2824 ("regcache.h"): Include it.
2825 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2826
6ad8ae5c
DJ
28272003-06-17 Daniel Jacobowitz <[email protected]>
2828
2829 * NEWS: Mention gdbserver detach change and "disconnect" command.
2830 * infcmd.c (disconnect_command): New function.
2831 (_initialize_infcmd): Add ``disconnect'' command.
2832 * remote.c (remote_async_detach): Delete.
2833 (remote_detach): Merge remote_async_detach.
2834 (remote_disconnect): New.
2835 (init_remote_ops): Set to_disconnect.
2836 (init_remote_cisco_ops): Likewise.
2837 (init_remote_async_ops): Likewise. Use remote_detach.
2838 * target.c (cleanup_target): Default to_disconnect.
2839 (update_current_target): Inherit to_disconnect.
2840 (target_disconnect, debug_to_disconnect): New functions.
2841 (setup_target_debug): Set to_disconnect.
2842 * target.h (struct target_ops): Add to_disconnect.
2843 (target_disconnect): Add prototype.
2844
687595f9
DJ
28452003-06-17 Daniel Jacobowitz <[email protected]>
2846
2847 * breakpoint.c (insert_catchpoint): New function.
2848 (insert_breakpoints): Use catch_exceptions to call
2849 insert_catchpoint. Disable catchpoints if they fail to insert.
2850
29239a8f
DJ
28512003-06-17 Daniel Jacobowitz <[email protected]>
2852
2853 * symfile.c (reread_symbols): Clear sym_private.
2854
2cdf3c63
AC
28552003-06-17 Andrew Cagney <[email protected]>
2856
2857 * trad-frame.h (struct frame_info): Add opaque declaration.
2858 * remote-fileio.h (struct cmd_list_element): Add opaque
2859 declaration.
2860 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2861 comments.
2862
cf0e1e0d
DJ
28632003-06-17 Daniel Jacobowitz <[email protected]>
2864
2865 * remote.c (remote_prepare_to_store): Replace call to
2866 deprecated_read_register_bytes with multiple regcache_raw_read
2867 calls.
2868
192cdb19
KW
28692003-06-17 Kris Warkentin <[email protected]>
2870
2871 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2872 (nto_find_and_open_solib): Likewise.
2873 (nto_init_solib_absolute_prefix): Likewise.
2874 (_initialize_nto_tdep): Fix indentation.
2875
89929b45
KW
28762003-06-17 Kris Warkentin <[email protected]>
2877
2878 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2879
46019f27
KW
28802003-06-17 Kris Warkentin <[email protected]>
2881
2882 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2883
1a38736e
JB
28842003-06-17 Jim Blandy <[email protected]>
2885
2886 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2887
3605c34a
TR
28882003-06-16 Theodore A. Roth <[email protected]>
2889
2890 * avr-tdep.c (avr_extract_return_value): New function.
2891 (avr_gdbarch_init): Set extract_return_value method.
2892
870b3035
AC
28932003-06-16 Andrew Cagney <[email protected]>
2894
2895 * frame.h (deprecated_get_next_frame_hack): Declare.
2896 * frame.c (legacy_saved_regs_prev_register): Only require
2897 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2898 there are always saved regs.
2899 (deprecated_generic_get_saved_register): Do not require
2900 DEPRECATED_FRAME_INIT_SAVED_REGS.
2901 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2902 use frame ID unwind instead.
2903 (deprecated_get_next_frame_hack): New function.
2904
63d47a7d
CV
29052003-06-16 Corinna Vinschen <[email protected]>
2906
2907 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2908 (h8300_push_dummy_call): ...this function. Some minor optimization.
2909 (h8300_push_return_address): Remove.
2910 (h8300_gdbarch_init): Remove calls to
2911 set_gdbarch_deprecated_dummy_write_sp,
2912 set_gdbarch_deprecated_push_arguments and
2913 set_gdbarch_deprecated_push_return_address.
2914 Add call to set_gdbarch_push_dummy_call.
2915
4bb1dc5e
CV
29162003-06-16 Corinna Vinschen <[email protected]>
2917
2918 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2919 (E_PSEUDO_EXR_REGNUM): Ditto.
2920 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2921 registers into safe registers.
4bb1dc5e
CV
2922 (h8300_skip_prologue): Check for stm instruction to push registers
2923 used for register variables onto stack.
2924 (gdb_print_insn_h8300): Remove.
2925 (h8300_examine_prologue): Add a comment.
2926 (h8300_register_name): Take pseudo registers into account.
2927 (h8300s_register_name): Ditto.
2928 (h8300sx_register_name): Ditto.
2929 (h8300_print_register): Ditto.
2930 (h8300_print_registers_info): Define "nice" printing order.
2931 (h8300_saved_pc_after_call): Take pseudo registers into account.
2932 (h8300_register_type): Ditto. Return type used for remote connection
2933 when requesting real CCR or EXR register, return actual type when
2934 requesting pseudo CCR or EXR.
2935 (h8300_pseudo_register_read): New function.
2936 (h8300_pseudo_register_write): Ditto.
2937 (h8300_dbg_reg_to_regnum): Ditto.
2938 (h8300s_dbg_reg_to_regnum): Ditto.
2939 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2940 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2941 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2942 set_gdbarch_print_insn architecture dependent.
2943 Call set_gdbarch_pseudo_register_read and
2944 set_gdbarch_pseudo_register_write.
2945 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2946
a59fe496
AC
29472003-06-16 Andrew Cagney <[email protected]>
2948
2949 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2950 * gdbarch.h, gdbarch.c: Re-generate.
2951 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2952 * s390-tdep.c (s390_gdbarch_init): Update.
2953 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2954 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2955 * mips-tdep.c (mips_gdbarch_init): Update.
2956 * mcore-tdep.c (mcore_gdbarch_init): Update.
2957 * cris-tdep.c (cris_gdbarch_init): Update.
2958 * infcall.c (call_function_by_hand): Update.
2959 * ia64-tdep.c (ia64_push_arguments): Update comment.
2960 * frame.c (legacy_get_prev_frame): Do not assume
2961 SAVE_DUMMY_FRAME_TOS_P.
2962 * dummy-frame.c (find_dummy_frame): Update comment.
2963
6f4e5a41
AC
29642003-06-16 Andrew Cagney <[email protected]>
2965
2966 * regcache.c (do_cooked_read): Do not use register_valid_p.
2967
72fab697
TR
29682003-06-15 Theodore A. Roth <[email protected]>
2969
2970 * avr-tdep.c (avr_register_type): Remove a blank line.
2971 (avr_scan_prologue): Correct some comments.
2972
e3d8b004
TR
29732003-06-15 Theodore A. Roth <[email protected]>
2974
2975 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2976 prologue types.
8ffd9b1b 2977 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
2978 option.
2979 Add code to scan -mcall-prologues for mega devices.
2980
866b76ea
TR
29812003-06-15 Theodore A. Roth <[email protected]>
2982
2983 * avr-tdep.c (avr_register_byte): Delete function.
2984 (avr_register_raw_size): Delete function.
2985 (avr_register_virtual_size): Delete function.
2986 (avr_register_virtual_type): Delete function.
2987 (avr_register_type): New function.
2988 (avr_address_to_pointer): Remove unused code.
2989 (avr_read_fp): Need to read FP as two separate bytes due to change to
2990 avr_register_type() usage.
2991 (avr_gdbarch_init): Don't set deprecated_register_size.
2992 Don't set deprecated_register_bytes.
2993 Don't set deprecated_register_byte.
2994 Don't set deprecated_register_raw_size.
2995 Don't set deprecated_max_register_raw_size.
2996 Don't set deprecated_register_virtual_size.
2997 Don't set deprecated_max_register_virtual_size.
2998 Don't set deprecated_register_virtual_type.
2999 Set register_type method.
3000
3993f6b1
DJ
30012003-06-15 Daniel Jacobowitz <[email protected]>
3002
3003 * Makefile.in (linux-nat.o): Add rule.
3004 * linux-nat.c: New file.
3005 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3006 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3007 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3008 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3009 * config/arm/linux.mh (NATDEPFILES): Likewise.
3010 * config/i386/linux.mh (NATDEPFILES): Likewise.
3011 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3012 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3013 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3014 * config/mips/linux.mh (NATDEPFILES): Likewise.
3015 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3016 * config/s390/s390.mh (NATDEPFILES): Likewise.
3017 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3018
786a90bb
MK
30192003-06-15 Mark Kettenis <[email protected]>
3020
3021 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3022 replace out-of-date comment.
3023
3bd3f01e
AC
30242003-06-15 Andrew Cagney <[email protected]>
3025
3026 * rdi-share/host.h (Fail): Change to a varargs function.
3027 * remote-rdi.c (Fail): Update.
8ffd9b1b 3028
de5b9bb9
MK
30292003-06-15 Mark Kettenis <[email protected]>
3030
3031 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3032 (i386_convert_register_p, i386_register_to_value,
3033 i386_register_from_value): Handle types longer than 8 bytes.
3034
d532c08f
MK
30352003-06-15 Mark Kettenis <[email protected]>
3036
3037 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3038 Move floating-point code to new function in i387-tdep.c.
3039 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3040 New functions containing code moved here from i386-tdep.c.
3041 * i387-tdep.h: Add opaque declaration for `struct type'.
3042 (i387_register_to_value, i387_value_to_register): New prototypes.
3043 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3044 (x86_64_init_abi): Set convert_register_p, register_to_value and
3045 value_to_register here.
8ffd9b1b 3046
42c466d7
AC
30472003-06-14 Andrew Cagney <[email protected]>
3048
3049 * mips-tdep.c (mips_register_to_value): Make static.
3050 (mips_value_to_register): Make static.
3051 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3052 * ia64-tdep.c (ia64_register_raw_size): Make static.
3053 (ia64_register_virtual_size): Make static.
3054 (ia64_register_byte): Make static.
3055 * i387-tdep.c: Include "i387-tdep.h".
3056 (print_387_control_word): Delete function.
3057 (print_387_status_word): Delete function.
3058 (print_387_status_bits): Delete function.
3059 (print_387_control_bits): Delete function.
3060 * Makefile.in (i387-tdep.o): Update dependencies.
3061 * rdi-share/host.h (Fail): Declare.
3062 * remote-rdi.c (Fail): Update to match declaration.
3063
2a9cda49
AC
30642003-06-14 Andrew Cagney <[email protected]>
3065
3066 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3067 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3068 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3069 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3070 * README: Delete reference to remote-array.
3071 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3072 (remote-array.o): Delete target.
3073 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3074 * remote-array.c: Delete file.
3075
ff2e87ac
AC
30762003-06-14 Andrew Cagney <[email protected]>
3077 Mark Kettenis <[email protected]>
3078
3079 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3080 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3081 parameter with "frame".
3082 * gdbarch.h, gdbarch.c: Re-generate.
3083 * frame.h (put_frame_register): Declare.
3084 * frame.c (put_frame_register): New function.
3085 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3086 (legacy_register_to_value): Rewrite, use "frame" to get the
3087 register value.
3088 (legacy_value_to_register): Rewrite, use "frame" to find the
3089 register's location before storing.
3090 * arch-utils.h (legacy_convert_register_p): Update.
3091 (legacy_register_to_value, legacy_value_to_register): Update.
3092 * findvar.c (value_from_register): Rewrite, eliminate use of
3093 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3094 "frame" to REGISTER_TO_VALUE.
3095 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3096 lval_reg_frame_relative + lval_register branch of the switch. Do
3097 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3098 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3099 I386_EDI_REGNUM): New defines.
3100 (i386_next_regnum, i386_convert_register_p,
3101 i386_register_to_value, i386_value_to_register): New functions.
3102 (i386_register_convertible, i386_register_convert_to_virtual,
3103 i386_convert_to_raw): Remove functions.
3104 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3105 value_to_register instead of register_convertible,
3106 register_convert_to_virtual and register_convert_to_raw.
3107 * mips-tdep.c (mips_convert_register_p): New function.
3108 (mips_value_to_register): Replace mips_register_convert_from_type.
3109 (mips_register_to_value): Replace mips_register_convert_to_type.
3110 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3111 register_to_value.
3112 * alpha-tdep.c (alpha_convert_register_p): Update.
3113 (alpha_value_to_register): Update, store the register.
3114 (alpha_register_to_value): Update, fetch the register.
3115
98be1e77
TR
31162003-06-14 Theodore A. Roth <[email protected]>
3117
3118 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3119 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3120 Don't set deprecated_call_dummy_words.
3121 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3122 Don't set remote_translate_xfer_address.
3123 (avr_io_reg_read_command): Remove commented out debug printf.
3124 Wrap a long line.
3125
57bc6122
TR
31262003-06-14 Theodore A. Roth <[email protected]>
3127
3128 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3129 causes gdb to seg fault.
3130
eb01fc62
DJ
31312003-06-14 Daniel Jacobowitz <[email protected]>
3132
3133 * sparc-nat.c (fetch_inferior_registers): Correct
3134 a reference to "registers".
3135
3b3e6bee
DJ
31362003-06-14 Jeroen Dekkers <[email protected]>
3137
3138 * Makefile.in (exc_request_U_h): Define
3139 (exc_request_S_h): Likewise.
3140 (msg_reply_S_h): Likewise.
3141 (msg_U_h): Likewise.
3142 (notify_S_h): Likewise.
3143 (process_reply_S_h): Likewise.
3144 (gnu-nat.o): Depend on gdb_obstack_h
3145 * gnu-nat.c: Include "gdb_obstack.h".
3146
b8de8283
AC
31472003-06-13 Andrew Cagney <[email protected]>
3148
3149 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3150 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3151
f3be58bc
AC
31522003-06-13 Andrew Cagney <[email protected]>
3153
3154 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3155 when deprecated REGISTER macros can be deleted.
3156 * gdbarch.h, gdbarch.c: Re-generate.
3157
4c0122c8
JB
31582003-06-13 Jim Blandy <[email protected]>
3159
3160 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3161 Linux entry point symbols for _dl_debug_state, too.
3162
3e210248
AC
31632003-06-13 Andrew Cagney <[email protected]>
3164
3165 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3166 available, do not use the FP register, and always save the TOS.
3167 * dummy-frame.c (dummy_frame_this_id): Do not assert
3168 SAVE_DUMMY_FRAME_TOS.
3169 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3170 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3171 (i386_push_dummy_call): Add 8 to the returned SP.
3172 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3173 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3174 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3175 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3176 (x86_64_push_dummy_call): Return "sp + 16".
3177 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3178 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3179 save_dummy_frame_tos.
3180
0b65af49
JB
31812003-06-13 Jim Blandy <[email protected]>
3182
3183 * frv-tdep.c (frv_use_struct_convention): Delete static
3184 declaration for function deleted in my change of 2003-06-12.
3185
4ea2465e
TR
31862003-06-13 Theodore A. Roth <[email protected]>
3187
3188 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3189 (avr_pointer_to_address): Shift code addrs left 1 bit.
3190 (avr_convert_from_func_ptr_addr): Delete function since operation is
3191 better handled by avr_address_to_pointer and avr_pointer_to_address.
3192 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3193
1581182a
MK
31942003-06-13 Mark Kettenis <[email protected]>
3195
3196 From Kelley Cook <[email protected]>:
3197 * configure.host: Accept i[34567]86 variants.
3198 * configure.tgt: Likewise.
3199 * nlm/configure.in: Likewise.
3200 * nlm/configure: Regenerated.
3201
7aa1783e
RE
32022003-06-13 Richard Earnshaw <[email protected]>
3203
3204 * arm-tdep.c (solib-svr4.h): Dont' include it.
3205 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3206 * arm-linux-tdep.c: ... here. Make static.
3207 (arm_linux_init_abi): Register it.
3208 (solib-svr4.h): Include it.
3209 * Makefile.in: Update dependencies.
3210 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3211 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3212
0261a0d0
CV
32132003-06-13 Corinna Vinschen <[email protected]>
3214
3215 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3216 indicate registers used for return values.
3217 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3218 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3219 members.
3220 (h8300_init_extra_frame_info): Ditto.
3221 (h8300_frame_locals_address): Removed.
3222 (h8300_frame_args_address): Removed.
3223 (h8300_extract_return_value): Use new regcache structure. Only care
3224 for 16 bit CPUs.
3225 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3226 (h8300_store_return_value): Use new regcache structure. Only care
3227 for 16 bit CPUs.
3228 (h8300h_store_return_value): Same function for 32 bit CPUs.
3229 (h8300_store_struct_return): Removed.
3230 (h8300_extract_struct_value_address): Use new regcache structure.
3231 (h8300h_extract_struct_value_address): Removed.
3232 (h8300_push_dummy_code): New function.
3233 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3234 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3235 set_gdbarch_store_return_value architecture dependent.
3236 Call set_gdbarch_push_dummy_code and
3237 set_gdbarch_extract_struct_value_address.
3238 Remove calls to set_gdbarch_frame_args_address,
3239 set_gdbarch_frame_locals_address,
3240 set_gdbarch_deprecated_store_struct_return,
3241 set_gdbarch_deprecated_extract_return_value,
3242 set_gdbarch_deprecated_extract_struct_value_address,
3243 set_gdbarch_deprecated_call_dummy_words and
3244 set_gdbarch_deprecated_sizeof_call_dummy_words.
3245
055c394a
CV
32462003-06-13 Corinna Vinschen <[email protected]>
3247
3248 * h8300-tdep.c (h8300_register_byte): Remove.
3249 (h8300h_register_byte): Remove.
3250 (h8300_register_virtual_type): Remove. Substitute by...
3251 (h8300_register_type): New function.
3252 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3253 (h8300h_extract_struct_value_address): Ditto.
3254 (h8300_gdbarch_init): Drop calls to
3255 set_gdbarch_deprecated_register_byte and
3256 set_gdbarch_deprecated_register_virtual_type.
3257 Add call to set_gdbarch_register_type.
3258
9c04cab7
AC
32592003-06-13 Andrew Cagney <[email protected]>
3260
3261 * gdbarch.sh: Update comments on registers.
3262 (deprecated_register_byte): Rename register_byte.
3263 (deprecated_register_raw_size): Rename register_raw_size.
3264 (deprecated_register_virtual_size): Rename register_virtual_size.
3265 (deprecated_register_virtual_type): Rename register_virtual_type.
3266 * gdbarch.h, gdbarch.c: Re-generate.
3267 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3268 * vax-tdep.c (vax_gdbarch_init): Update.
3269 * v850-tdep.c (v850_gdbarch_init): Update.
3270 * sparc-tdep.c (sparc_gdbarch_init): Update.
3271 * sh-tdep.c (sh_gdbarch_init): Update.
3272 * s390-tdep.c (s390_gdbarch_init): Update.
3273 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3274 * ns32k-tdep.c: Update.
3275 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3276 * mips-tdep.c (mips_gdbarch_init): Update.
3277 * mcore-tdep.c (mcore_gdbarch_init): Update.
3278 * m68k-tdep.c (m68k_gdbarch_init): Update.
3279 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3280 * ia64-tdep.c (ia64_gdbarch_init): Update.
3281 * hppa-tdep.c (hppa_gdbarch_init): Update.
3282 * h8300-tdep.c (h8300_gdbarch_init): Update.
3283 * frv-tdep.c (frv_gdbarch_init): Update.
3284 * cris-tdep.c (cris_gdbarch_init): Update.
3285 * avr-tdep.c (avr_gdbarch_init): Update.
3286 * alpha-tdep.c (alpha_gdbarch_init): Update.
3287 * arm-tdep.c (arm_gdbarch_init): Update.
3288
b060cbea
AC
32892003-06-13 Andrew Cagney <[email protected]>
3290
3291 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3292 mips_o32_use_struct_convention with always_use_struct_convention.
3293
0fc9922a
DC
32942003-06-12 David Carlton <[email protected]>
3295
3296 * cp-namespace.c (cp_set_block_scope): Comment out
3297 processing_has_namespace_info branch.
3298
1fd35568
JB
32992003-06-12 Jim Blandy <[email protected]>
3300
f470a70a
JB
3301 Recognize and skip 64-bit PowerPC Linux linkage functions.
3302 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3303 insn_pattern, insns_match_pattern, d_field, ds_field): New
3304 functions, macros, and types for working with PPC instructions.
3305 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3306 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3307 ppc64_skip_trampoline_code): New functions, variables, and macros
3308 for recognizing and skipping linkage functions.
3309 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3310 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3311
49ff75ad
JB
3312 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3313 register offsets for both the 32- and 64-bit interfaces.
3314
bd918c83
JB
3315 Actually finish the job started by my change of 2003-05-29.
3316 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3317 other #definition of this.
3318 (ppc_linux_skip_trampoline_code): Remove declaration.
3319 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3320 static.
3321 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3322 method for GDBARCH.
3323
3324 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3325 'long' on ppc64-*-linux*.
3326
f8c59253
JB
3327 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3328 isn't #defined, assume the register doesn't exist: act as if
3329 tdep->ppc_mq_regnum were -1.
3330
8fbb30b1
JB
3331 * configure.host, configure.tgt: Add entries for
3332 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3333 powerpc/linux.mt.
3334 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3335 New files.
3336
1fd35568
JB
3337 * arch-utils.c (always_use_struct_convention): New function.
3338 * arch-utils.h (always_use_struct_convention): New prototype.
3339 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3340 (alpha_gdbarch_init): Register always_use_struct_convention,
3341 instead of alpha_use_struct_convention.
3342 * cris-tdep.c (cris_use_struct_convention): Delete.
3343 (cris_gdbarch_init): Register always_use_struct_convention,
3344 instead of cris_use_struct_convention.
3345 * frv-tdep.c (frv_use_struct_convention): Delete.
3346 (frv_gdbarch_init): Register always_use_struct_convention,
3347 instead of frv_use_struct_convention.
3348 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3349 (h8300_gdbarch_init): Register always_use_struct_convention,
3350 instead of h8300_use_struct_convention.
e3305dd9 3351 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3352 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3353 instead of mips_o32_use_struct_convention.
3354
e14e6e9c
AC
33552003-06-12 Andrew Cagney <[email protected]>
3356
3357 * wince.c: Include "mips-tdep.h".
3358 * mips-tdep.h (mips_next_pc): Declare.
3359 * mcore-tdep.c: Make more local functions static.
3360 * Makefile.in (wince.o): Update dependencies.
3361
2335f48e
DC
33622003-06-12 David Carlton <[email protected]>
3363
3364 * symtab.c (lookup_symbol_aux_minsyms): Replace
3365 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3366 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3367 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3368 SYMBOL_NATURAL_NAME.
3369
f70a7d61
AS
33702003-06-12 Andreas Schwab <[email protected]>
3371
3372 * Makefile.in (tuiDisassem.o): Update dependencies.
3373
b6429628
DC
33742003-06-12 David Carlton <[email protected]>
3375
3376 * symtab.h: Delete declaration of make_symbol_overload_list.
3377 Add declaration of lookup_partial_symbol.
3378 * symtab.c (remove_params): Move to cp-support.c.
3379 (overload_list_add_symbol, make_symbol_overload_list)
3380 (sym_return_val_size, sym_return_val_index): Ditto.
3381 (lookup_partial_symbol): Make extern.
3382 * cp-support.h: Add declaration of make_symbol_overload_list.
3383 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3384 symtab.h, and block.h.
3385 (remove_params): Move here from symtab.c.
3386 (overload_list_add_symbol, make_symbol_overload_list)
3387 (sym_return_val_size, sym_return_val_index): Ditto.
3388 * valops.c: Include cp-support.h.
3389 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3390 frame_h, and block_h.
3391 (valops.o): Depend on cp_support_h.
3392
084edea5
CV
33932003-06-12 Corinna Vinschen <[email protected]>
3394
3395 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3396 substitute by NUM_REGS throughout.
3397 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3398 (h8300s_register_name): New function for H8S registers.
3399 (h8300sx_register_name): Ditto for H8SX registers.
3400 (h8300_print_register): Revise register printing, avoid depending
3401 on 32 bit long.
0261a0d0 3402 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3403 (h8300h_register_byte): New function for any other architecture.
3404 (h8300_register_raw_size): Remove.
3405 (h8300_register_virtual_type): Revise to return actually useful
3406 type.
3407 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3408 (h8300h_extract_struct_value_address): New function for any other
3409 architecture.
3410 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3411 set_gdbarch_register_name, set_gdbarch_register_byte,
3412 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3413 Remove calls to set_gdbarch_deprecated_register_size,
3414 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3415 set_gdbarch_deprecated_max_register_raw_size,
3416 set_gdbarch_register_virtual_size and
3417 set_gdbarch_deprecated_max_register_virtual_size entirely.
3418 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3419 set_gdbarch_long_double_bit.
3420
06194148
JJ
34212003-06-11 Jeff Johnston <[email protected]>
3422
8ffd9b1b
AJ
3423 * doublest.c (convert_doublest_to_floatformat): When dealing
3424 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3425 processing a full 32 bits of mantissa.
3426
de4f826b
DC
34272003-06-11 David Carlton <[email protected]>
3428
3429 * dictionary.h: New.
3430 * dictionary.c: New.
3431 * block.h: Add opaque declaration for struct dictionary.
3432 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3433 'sym' members.
3434 (BLOCK_DICT): New macro.
3435 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3436 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3437 BLOCK_SHOULD_SORT.
3438 (ALL_BLOCK_SYMBOLS): Update definition.
3439 * Makefile.in (SFILES): Add dictionary.c.
3440 (dictionary_h): New.
3441 (COMMON_OBS): Add dictionary.o.
3442 (dictionary.o): New.
3443 (ada-lang.o): Depend on dictionary_h.
3444 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3445 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3446 (mi-cmd-stack.o): Ditto.
3447 (gdbtk-cmds.o): Update dependencies.
3448 (gdbtk-stack.o): Ditto.
3449 * ada-lang.c: Include dictionary.h.
3450 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3451 (fill_in_ada_prototype, debug_print_block): Ditto.
3452 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3453 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3454 'is_sorted'.
3455 * mdebugread.c: Include dictionary.h.
3456 (struct parse_stack): Delete 'maxsyms' member.
3457 (parse_symbol): Update calls to new_block. Delete calls to
3458 shrink_block. Use dictionary methods.
3459 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3460 Update calls to new_symtab. Don't maintain maxsyms data.
3461 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3462 (add_symbol): Just call dict_add_symbol.
3463 (new_symtab): Delete 'maxsyms' argument.
3464 (new_symtab): Update calls to new_block.
3465 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3466 (shrink_block): Delete function.
3467 (fixup_sigtramp): Update call to new_block. Add symbol via
3468 dict_add_symbol.
3469 * jv-lang.c: Include dictionary.h.
3470 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3471 appropriately. Set class_symtab->free_func. Make sure the
3472 blockvector is big enough to hold two blocks.
3473 (add_class_symtab_symbol): Use dictionary methods.
3474 (free_class_block): New function.
3475 (type_from_class): Replace explicit iteration by
3476 ALL_BLOCK_SYMBOLS.
3477 * symtab.h (struct symtab): Replace 'free_ptr' method by
3478 'free_func'.
3479 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3480 sort_symtab_syms.
3481 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3482 sort_symtab_syms.
3483 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3484 Include dictionary.h.
3485 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3486 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3487 sort_symtab_syms.
3488 * objfiles.c: Include dictionary.h.
3489 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3490 * buildsym.c: Include dictionary.h.
3491 (finish_block): Use dictionary methods.
3492 (end_symtab): Set free_func to NULL, not free_ptr.
3493 * tracepoint.c: Include dictionary.h.
3494 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3495 (scope_info): Ditto.
3496 * stack.c: Include dictionary.h.
3497 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3498 (print_block_frame_labels, print_frame_arg_vars)
3499 (print_frame_args): Ditto.
3500 * symmisc.c (free_symtab_block): Use dictionary methods.
3501 (dump_symtab): Ditto.
3502 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3503 Include dictionary.h.
3504 * symfile.h: Delete declarations of sort_block_syms,
3505 sort_symtab_syms.
3506 * symfile.c (sort_block_syms): Delete.
3507 (sort_symtab_syms): Delete.
3508 * symtab.c: Include dictionary.h.
3509 (lookup_block_symbol): Use dictionary iterators.
3510 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3511 (search_symbols, make_symbol_completion_list): Ditto.
3512 (make_symbol_overload_list): Ditto.
3513 * valops.c (value_of_local): Use dict_empty.
3514 Include dictionary.h.
3515
a31f978c
JB
35162003-06-11 J. Brobecker <[email protected]>
3517
3518 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3519
526e70c0
DC
35202003-06-11 David Carlton <[email protected]>
3521
3522 * block.h (BLOCK_SHOULD_SORT): Delete.
3523 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3524 blocks.
3525 * ada-lang.c (ada_add_block_symbols): Ditto.
3526 * symfile.c (sort_block_syms): Delete.
3527 (sort_symtab_syms): Ditto.
3528 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3529 declarations.
3530 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3531 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3532 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3533 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3534 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3535 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3536 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3537
33c08150
JJ
35382003-06-11 Jeff Johnston <[email protected]>
3539
8ffd9b1b 3540 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3541 bits to 128.
3542
781a750d
AC
35432003-06-11 Andrew Cagney <[email protected]>
3544
3545 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3546 REGISTER_CONVERTIBLE.
3547 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3548 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3549 * gdbarch.h, gdbarch.c: Re-generate.
3550 * arch-utils.h (deprecated_register_convertible_not): Rename
3551 generic_register_convertible_not.
3552 * arch-utils.c (deprecated_register_convertible_not): Rename
3553 generic_register_convertible.
3554 (legacy_convert_register_p, legacy_register_to_value): Update.
3555 * sh-tdep.c (sh64_push_arguments): Update.
3556 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3557 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3558 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3559 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3560 * arch-utils.c (legacy_value_to_register): Update.
3561 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3562 (rs6000_register_convert_to_raw): Make parameter "from" const.
3563 * mips-tdep.c (mips_gdbarch_init): Update.
3564 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3565 * infcmd.c (default_print_registers_info): Update.
3566 * ia64-tdep.c (ia64_gdbarch_init): Update.
3567 (ia64_register_convert_to_raw): Make parameter "from" const.
3568 * i386-tdep.c (i386_gdbarch_init): Update.
3569 (i386_register_convert_to_raw): Update.
3570
cd90e54f
AC
35712003-06-11 Andrew Cagney <[email protected]>
3572
3573 * remote-fileio.c: Include "remote-fileio.h".
3574 * Makefile.in (remote-fileio.o): Update dependencies.
3575 (remote_fileio_h): Fix typo.
3576
a78f21af
AC
35772003-06-11 Andrew Cagney <[email protected]>
3578
3579 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3580 (xstormy16_save_dummy_frame_tos): Make static.
3581 (_initialize_xstormy16_tdep): Add declaration.
3582 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3583 * v850-tdep.c: Make local functions static.
3584 (_initialize_v850_tdep): Add declaration.
3585 * sparc-tdep.c: Make local functions static.
3586 (_initialize_sparc_tdep): Add declaration.
3587 * sh-tdep.c: Make local functions static.
3588 (_initialize_sh_tdep): Add declaration.
3589 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3590 * s390-tdep.c: Make local functions static.
3591 (_initialize_s390_tdep): Add declaration.
3592 * dbxread.c (find_stab_function_addr): Make static.
3593 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3594 * ocd.c (_initialize_remote_ocd): Add declaration.
3595 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3596 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3597 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3598 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3599 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3600 * remote-array.c (_initialize_array): Add declaration.
3601 (_initialize_remote_monitors): Add declaration.
3602 * remote-mips.c: Make local functions static.
3603 (_initialize_remote_mips): Add declaration.
3604 * mcore-tdep.c: Make all local functions static.
3605 (_initialize_mcore_tdep): Add declaration.
3606 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3607 * abug-rom.c (_initialize_abug_rom): Add declaration.
3608 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3609 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3610 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3611 * remote-est.c (_initialize_est): Add declaration.
3612 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3613 (m68hc11_call_dummy_address): Make static.
3614 * ia64-tdep.c: Make local functions static.
3615 (_initialize_ia64_tdep): Add declaration.
3616 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3617 * monitor.c (monitor_wait_filter): Make static.
3618 (_initialize_remote_monitors): Add declaration.
3619 * remote-hms.c (_initialize_remote_hms): Add declaration.
3620 * remote-e7000.c (fetch_regs_from_dump): Make static.
3621 (expect_n): Make static.
3622 (_initialize_remote_e7000): Add declaration.
3623 * ser-e7kpc.c: Always include "defs.h".
3624 (_initialize_ser_e7000pc): Add declaration.
3625 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3626 * cris-tdep.c: Make all but one function static.
3627 (_initialize_cris_tdep): Add declaration.
3628 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3629 * solib.c (update_solib_list): Make static.
3630 (_initialize_solib): Add declaration.
3631 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3632 (_initialize_avr_tdep): Add declaration.
3633 * remote-rdi.c (voiddummy): Make static.
3634 (_initialize_remote_rdi): Add declaration.
3635 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3636 * remote-rdp.c (send_rdp): Make static.
3637 (_initialize_remote_rdp): Add declaration.
3638 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3639
cbcdb1f5
CV
36402003-06-11 Corinna Vinschen <[email protected]>
3641
3642 * remote-fileio.c: Make ari happy.
3643
a191ea8d
JB
36442003-06-10 J. Brobecker <[email protected]>
3645
3646 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3647 fetching the trailing bytes of the buffer we are about to write.
3648
0ef75e11
AC
36492003-06-10 Andrew Cagney <[email protected]>
3650
3651 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3652 * Makefile.in (remote-fileio.o): Update dependencies.
3653 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3654 include <setjmp.h>, or <sys/types.h> conditional on USG.
3655 (remote_fio_jmp_buf): Delete global variable.
3656
449092f6 36572003-06-10 Corinna Vinschen <[email protected]>
559fa028 3658 Martin M. Hunt <[email protected]>
449092f6 3659
559fa028
AC
3660 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3661 (SFILES): Add remote-fileio.c.
3662 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3663 dependencies for building remote.o.
449092f6
CV
3664 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3665 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3666 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3667 static storage class.
3668 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3669 'F' packet.
3670 (_initialize_remote): Call initialize_remote_fileio().
3671 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3672 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3673 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3674 (captured_main): Initialize new ui_files.
3675 * ui-file.c: Add read and fgets input functions.
3676 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3677 (null_file_read): New function.
3678 (ui_file_read): New function.
3679 (set_ui_file_read): New function.
3680 (stdio_file_read): New function.
3681 * ui-file.h: New type ui_file_read_ftype.
3682 (set_ui_file_read): Declare.
3683 (ui_file_read): Declare.
3684
248de703
AC
36852003-06-09 Andrew Cagney <[email protected]>
3686
3687 * frame.h (deprecated_unwind_get_saved_register): Rename
3688 generic_unwind_get_saved_register, update comments.
3689 * mips-tdep.c (mips_get_saved_register): Update.
3690 * frame.c (deprecated_unwind_get_saved_register): Update.
3691
0ed8aa57
AC
36922003-06-09 Andrew Cagney <[email protected]>
3693
3694 * vax-tdep.c (vax_frame_locals_address): Delete function.
3695 (vax_gdbarch_init): Do not set frame_locals_address.
3696 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3697 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3698 * s390-tdep.c (s390_frame_args_address): Delete function.
3699 (s390_gdbarch_init): Do not set frame_args_address or
3700 frame_locals_address.
3701 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3702 (ns32k_gdbarch_init): Do not set frame_locals_address.
3703 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3704 (hppa_frame_locals_address): Delete function.
3705 (hppa_gdbarch_init): Do not set frame_args_address, or
3706 frame_locals_address.
3707 * arm-tdep.c (arm_frame_args_address): Delete.
3708 (arm_frame_locals_address): Delete.
3709 (arm_gdbarch_init): Do not set frame_args_address, or
3710 frame_locals_address.
3711
983a287a
AC
37122003-06-09 Andrew Cagney <[email protected]>
3713
3714 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3715 * gdbarch.h, gdbarch.c: Re-generate.
3716 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3717 * arch-utils.c (frame_num_args_unknown): Delete function.
3718 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3719 (frame_info): Use FRAME_NUM_ARGS_P.
3720 * arm-tdep.c (arm_frame_num_args): Delete function.
3721 (arm_gdbarch_init): Do not set frame_num_args.
3722 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3723 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3724 (hppa_gdbarch_init): Do not set frame_num_args.
3725 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3726 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3727 frame_num_args to default frame_num_args_unknown.
3728 * v850-tdep.c (v850_gdbarch_init): Ditto.
3729 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3730 * sh-tdep.c (sh_gdbarch_init): Ditto.
3731 * s390-tdep.c (s390_gdbarch_init): Ditto.
3732 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3733 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3734 * mips-tdep.c (mips_gdbarch_init): Ditto.
3735 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3736 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3737 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3738 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3739 * i386-tdep.c (i386_gdbarch_init): Ditto.
3740 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3741 * frv-tdep.c (frv_gdbarch_init): Ditto.
3742 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3743 * cris-tdep.c (cris_gdbarch_init): Ditto.
3744 * avr-tdep.c (avr_gdbarch_init): Ditto.
3745 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3746
8d3b0994
AC
37472003-06-09 Andrew Cagney <[email protected]>
3748
3749 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3750 (print_frame_args): Moved to "stack.c".
3751 * stack.c: Include "gdb_assert.h".
3752 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3753 (print_frame_args): Moved from "printcmd.c".
3754 * frame.h (print_frame_args): Delete declaration.
3755 * Makefile.in (stack.o): Update dependencies.
3756
25e3a86b
AC
37572003-06-08 Andrew Cagney <[email protected]>
3758
3759 * frame.c (get_prev_frame): Remove reference to
3760 frame_args_address_correct in comments.
3761 * frame-base.c (default_frame_args_address): Delete code
3762 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3763 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3764 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3765 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3766 (vax_frame_args_address_correct): Delete declaration.
3767
a9e5fdc2
AC
37682003-06-08 Andrew Cagney <[email protected]>
3769
3770 * gdbarch.sh (UNWIND_SP): Add.
3771 * gdbarch.h, gdbarch.c: Re-generate.
3772 * frame.c (frame_sp_unwind): New function.
3773 (get_frame_sp): New function.
3774 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3775 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3776 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3777 value.
3778 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3779 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3780
8983bd83
AC
37812003-06-08 Andrew Cagney <[email protected]>
3782
7fec2c59
AC
3783 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3784 REMOTE_BREAKPOINT.
3785 * remote.c: Update.
3786 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3787 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3788 * config/m68k/tm-sun3.h: Update.
3789 * config/m68k/tm-m68klynx.h: Update.
3790 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3791
8983bd83
AC
3792 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3793 trad_frame". Update comments.
3794 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3795 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3796 (trad_frame_register_value, trad_frame_prev_register): Update.
3797
b9362cc7
AC
37982003-06-08 Andrew Cagney <[email protected]>
3799
3800 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3801 from GCC's acinclude.m4.
3802 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3803 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3804 * main.c (error_init): Delete declaration.
3805 * defs.h (error_init): Declare.
3806 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3807 (rs6000_convert_from_func_ptr_addr): Make static.
3808 (_initialize_rs6000_tdep): Add declaration.
3809 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3810 (show_commands, set_verbose, show_history): Delete declaration.
3811 * top.h (set_verbose): Add declaration.
3812 (show_history, set_history, show_commands): Add declaration.
3813 (do_restore_instream_cleanup): Add declaration.
3814 * objc-lang.c (specialcmp): Make static.
3815 (print_object_command): Make static.
3816 (find_objc_msgsend): Make static.
3817 (find_objc_msgcall_submethod_helper): Make static.
3818 (find_objc_msgcall_submethod): Make static.
3819 (_initialize_objc_language): Add declaration.
3820 (find_implementation_from_class): Make static.
3821 (find_implementation): Make static.
3822 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3823 * objc-lang.h (lookup_struct_typedef): Add declaration.
3824 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3825 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3826 (do_restore_user_call_depth): Make static.
3827 (do_restore_instream_cleanup): Delete declaration.
3828 (dont_repeat): Delete declaration.
3829 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3830 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3831 * reggroups.c (_initialize_reggroup): Add declaration.
3832 * cp-support.c (_initialize_cp_support): Add declaration.
3833 * cp-abi.c (_initialize_cp_abi): Add declaration.
3834 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3835 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3836 (_initialize_gnu_v3_abi): Add declaration.
3837 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3838 (_initialize_gnu_v2_abi): Add declaration.
3839 * frame-base.c (_initialize_frame_base): Add declaration.
3840 * doublest.c (floatformat_from_length): Make static.
3841 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3842 * frame.c (create_sentinel_frame): Make static.
3843 (_initialize_frame): Add declaration.
3844 * top.c (do_catch_errors): Make static.
3845 (gdb_rl_operate_and_get_next_completion): Make static.
3846 * typeprint.c: Include "typeprint.h".
3847 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3848 (sentinel_frame_this_id): Make static.
3849 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3850 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3851 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3852 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3853 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3854 * maint.c (maintenance_print_architecture): Make static.
3855 * signals/signals.c (_initialize_signals): Add declaration.
3856 * std-regs.c (_initialize_frame_reg): Add declaration.
3857 * jv-exp.y (push_variable): ISO C definition.
3858 (push_qualified_expression_name): Ditto.
3859 * memattr.c (_initialize_mem): Add declaration.
3860 * remote.c (remote_check_watch_resources): Make static.
3861 (remote_stopped_by_watchpoint): Make static.
3862 (remote_stopped_data_address): Make static.
3863 * d10v-tdep.c (nr_dmap_regs): Make static.
3864 (a0_regnum): Make static.
3865 (d10v_frame_unwind_cache): Make static.
3866 (d10v_frame_p): Make static.
3867 * osabi.c (show_osabi): Make static.
3868 (_initialize_gdb_osabi): Add extern declaration.
3869 * gdbtypes.c (make_qualified_type): Make static.
3870 (safe_parse_type): Make static.
3871 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3872 * macrotab.c (macro_bcache_free): Make static.
3873 * interps.c (interp_set_quiet): Make static.
3874 (interpreter_exec_cmd): Make static.
3875 * stack.h (select_frame_command): New file.
3876 * stack.c: Include "stack.h".
3877 (select_frame_command_wrapper): Delete function.
3878 (select_frame_command): Make global.
3879 * infcall.c: Include "infcall.h".
3880 * linespec.c: Include "linespec.h".
3881 * symfile.c (sections_overlap): Make static.
3882 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3883 * charset.c (_initialize_charset): Add missing prototype.
3884 * regcache.c (init_legacy_regcache_descr): Make static.
3885 (do_regcache_xfree): Make static.
3886 (regcache_xfer_part): Make static.
3887 (_initialize_regcache): Add missing prototype.
3888 * breakpoint.c (parse_breakpoint_sals): Make static.
3889 (breakpoint_sals_to_pc): Make static.
3890 * interps.h (clear_interpreter_hooks): ISO C declaration.
3891 * Makefile.in (stack_h): Define.
3892 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3893 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3894
a0f267c7
AC
38952003-06-08 Andrew Cagney <[email protected]>
3896
3897 * Makefile.in (d10v-tdep.o): Update dependencies.
3898 (SFILES): Add trad-frame.c.
3899 (trad_frame_h): Define.
3900 (COMMON_OBS): Add trad-frame.o.
3901 (trad-frame.o): Specify dependencies.
3902 * d10v-tdep.c: Include "trad-frame.h".
3903 (saved_regs_unwinder): Delete function.
3904 (d10v_frame_prev_register): Use trad_frame_prev_register.
3905 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3906 trad_frame", delete "regs" and "prev_sp".
3907 (prologue_find_regs): Use trad-frame.
3908 * trad-frame.h, trad-frame.c: New files.
3909
4538b4f4
MK
39102003-06-08 Mark Kettenis <[email protected]>
3911
3912 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3913
a0273b2f
AF
39142003-06-07 Adam Fedor <[email protected]>
3915
3916 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3917 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3918 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3919 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3920 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3921 Use it.
3922
3a6c3343
AC
39232003-06-07 Andrew Cagney <[email protected]>
3924
3925 * symfile.h: Re-indent, clean up comments.
3926
b46e02f6
AC
39272003-06-07 Andrew Cagney <[email protected]>
3928
3929 * inferior.h (deprecated_write_sp): Replace
3930 generic_target_write_sp.
3931 * regcache.c (deprecated_write_sp): Replace
3932 generic_target_write_sp.
3933 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3934 * vax-tdep.c (vax_gdbarch_init): Update.
3935 * v850-tdep.c (v850_gdbarch_init): Update.
3936 * sparc-tdep.c (sparc_gdbarch_init): Update.
3937 * sh-tdep.c (sh_gdbarch_init): Update.
3938 * s390-tdep.c (s390_gdbarch_init): Update.
3939 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3940 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3941 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3942 * mcore-tdep.c (mcore_gdbarch_init): Update.
3943 * m68k-tdep.c (m68k_gdbarch_init): Update.
3944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3945 * ia64-tdep.c (ia64_gdbarch_init): Update.
3946 * h8300-tdep.c (h8300_gdbarch_init): Update.
3947 * frv-tdep.c (frv_gdbarch_init): Update.
3948 * cris-tdep.c (cris_gdbarch_init): Update.
3949 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3950
a42e117c
AC
39512003-06-07 Andrew Cagney <[email protected]>
3952
3953 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3954 Assert that PC_REGNUM is valid.
3955 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3956
bd1ce8ba
AC
39572003-06-07 Andrew Cagney <[email protected]>
3958
3959 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3960 * gdbarch.h, gdbarch.c: Regenerate.
3961 * mn10300-tdep.c: Include "gdb_assert.h".
3962 (mn10300_read_fp): New function.
3963 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3964 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3965 * ia64-tdep.c: Include "gdb_assert.h".
3966 (ia64_read_fp): New function.
3967 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3968 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3969 * regcache.c (generic_target_read_sp): Delete function.
3970 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3971 * inferior.h (generic_target_read_sp): Delete declaration.
3972 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3973 generic_target_read_sp.
3974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3975 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3976 * sh-tdep.c (sh_gdbarch_init): Ditto.
3977 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3978 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3979
ec5cbaec
AC
39802003-06-07 Andrew Cagney <[email protected]>
3981
3982 * gdbarch.sh: Comment each field of startup_gdbarch.
3983 * gdbarch.h, gdbarch.c: Re-generate.
3984
cde9ea48
AC
39852003-06-07 Andrew Cagney <[email protected]>
3986
3987 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3988 * gdbarch.h, gdbarch.c: Re-generate.
3989 * regcache.c: Update comments on read_pc et.al.
3990 (generic_target_read_pc): Delete function.
3991 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3992 * inferior.h (generic_target_read_pc): Delete declaration.
3993 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3994 generic_target_read_pc.
3995 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3996 * sh-tdep.c (sh_gdbarch_init): Ditto.
3997 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3998 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 3999
9a90a780
AC
40002003-06-07 Andrew Cagney <[email protected]>
4001
4002 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4003 "index" with "special_local_sect". Use strcmp instead of STREQ.
4004 Append period to coments.
4005
a39a16c4
MM
40062003-06-06 Mark Mitchell <[email protected]>
4007
4008 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4009 (elfstab_offset_sections): Likewise.
4010 * gdb-stabs.h (stab_section_info): Likewise.
4011 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4012 * objfiles.c (objfile_relocate): Likewise.
4013 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4014 * remote.c (get_offsets): Likewise.
4015 (remote_cisco_objfile_relocate): Likewise.
4016 * somread.c (som_symfile_offsets): Likewise.
4017 * symfile.c (alloc_section_addr_info): New function.
4018 (build_section_addr_info_from_section_tab): Use it.
4019 (free_section_addr_info): Adjust.
4020 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4021 (syms_from_objfile): Allocate local_addr dynamically.
4022 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4023 dynamically.
4024 (add_symbol_file_command): Allocate sect_opts dynamically.
4025 (reread_symbols): Avoid use of SECT_OFF_MAX.
4026 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4027 (alloc_section_addr_info): Declare it.
4028 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4029 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4030 dynamically.
4031 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4032
20c6c2f8
AC
40332003-06-06 Andrew Cagney <[email protected]>
4034
4035 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4036 (d10v_frame_unwind_cache): Do not set "return_pc".
4037
884a26c8
MS
40382003-06-06 Michael Snyder <[email protected]>
4039
4040 * h8300-tdep.c: Make tidy (long lines).
4041
088ce440
ML
40422003-06-06 Michal Ludvig <[email protected]>
4043
8ffd9b1b 4044 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4045 to regcache_collect().
4046
7d773d96
JB
40472003-06-05 J. Brobecker <[email protected]>
4048
4049 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4050 pc_in_sigtramp multiarch method.
4051 (hppa_hpux_som_init_abi): Use it.
4052 (hppa_hpux_elf_init_abi): Likewise.
4053 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4054 macro has been multiarched.
4055 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4056 macro here, as hppa64 isn't multiarched yet.
4057
1df6926e
AC
40582003-06-05 Andrew Cagney <[email protected]>
4059
4060 * Makefile.in (value_h): Add $(frame_h).
4061 * value.h: Include "frame.h".
4062 (struct value): Replace "frame_addr" with "frame_id".
4063 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4064 * values.c (allocate_value): Use VALUE_FRAME_ID.
4065 (value_copy): Use VALUE_FRAME_ID.
4066 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4067 * valops.c (value_assign): Update. Use frame_find_by_id.
4068
6b53acc6
ML
40692003-06-05 Michal Ludvig <[email protected]>
4070
4071 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4072 in each pass.
4073
4d9850d3
JJ
40742003-06-05 Jeff Johnston <[email protected]>
4075
4076 * thread-db.c (check_event): For create/death event breakpoints,
4077 loop through all messages to ensure that we read the message
4078 corresponding to the breakpoint we are at.
4079
8efca6ba
MS
40802003-06-04 Michael Snyder <[email protected]>
4081
4082 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4083
0912c7f2
MK
40842003-06-04 Mark Kettenis <[email protected]>
4085
4086 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4087 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4088 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4089 when handling .eh_frame sections.
4090
4e370325
JB
40912003-06-04 J. Brobecker <[email protected]>
4092
4093 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4094 prepare_to_proceed procedure instead of the hppa-specific one.
4095 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4096
b757528f 40972003-06-04 Jeff Johnston <[email protected]>
8ffd9b1b 4098
b757528f
JJ
4099 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4100 * config.in: Regenerated.
4101 * configure.in: Add test for syscall function and check for
4102 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4103 * configure: Regenerated.
4104 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4105 <sys/syscall.h>.
4106 (kill_lwp): New function that uses tkill syscall or
4107 uses kill, depending on whether threading model is nptl or not.
4108 All callers of kill() changed to use kill_lwp().
4109 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4110 see if all threads have already exited in the nptl model.
4111 (stop_and_resume_callback): New callback function used by the
4112 lin_lwp_wait thread exit handling code.
4113 (stop_wait_callback): Check for threads already having exited and
4114 delete such threads fromt the lwp list when discovered.
4115 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4116
b757528f
JJ
4117 Roland McGrath <[email protected]>
4118 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4119 nptl libthread_db.
4120
087779b1
RH
41212003-06-03 Richard Henderson <[email protected]>
4122
b21fd293
RH
4123 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4124 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4125 (alpha_sigtramp_frame_prev_register): Likewise.
4126 (alpha_heuristic_frame_prev_register): Likewise.
4127 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4128
8ffd9b1b 4129 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4130 alpha-specific register id names.
4131 (alpha_mdebug_frame_unwind_cache): Likewise.
4132 (alpha_mdebug_frame_prev_register): Likewise.
4133
baa490c4
RH
41342003-06-03 Richard Henderson <[email protected]>
4135
4136 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4137 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4138 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4139 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4140 unwind routines.
4141 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4142 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4143 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4144
4145 * alpha-linux-tdep.c: Remove unnecessary includes.
4146 * Makefile.in (alpha-linux-tdep.o): Update.
4147
41482003-06-03 Richard Henderson <[email protected]>
4149
4150 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4151 (alphabsd_fill_fpreg): Likewise.
4152
f534e522
JB
41532003-06-03 J. Brobecker <[email protected]>
4154
4155 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4156 references to struct frame_info fields by calls to the equivalent
4157 accessors. Necessary now that frame_info is opaque.
4158
4035536b
JB
41592003-06-03 J. Brobecker <[email protected]>
4160
4161 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4162 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4163 structure, field no longer exists.
4164
0bd79c5c
JB
41652003-06-03 J. Brobecker <[email protected]>
4166
4167 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4168 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4169
37bb6d9f
JB
41702003-06-03 J. Brobecker <[email protected]>
4171
4172 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4173 references to struct frame_info fields by calls to the equivalent
4174 accessors. Necessary now that frame_info is opaque.
4175
852ee05c
JB
41762003-06-03 J. Brobecker <[email protected]>
4177
4178 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4179 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4180 structure, field no longer exists.
4181
7d58c67d
TR
41822003-06-03 Theodore A. Roth <[email protected]>
4183
8ffd9b1b 4184 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4185 accumulation of the size of all registers instead of blindly using
4186 DEPRECATED_REGISTER_BYTES.
4187
0a48e7e8
MS
41882003-06-03 Michael Snyder <[email protected]>
4189
4190 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4191 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4192 for h8300sx.
4193
9798ab0d
JB
41942003-06-03 J. Brobecker <[email protected]>
4195
4196 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4197 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4198
00b037e2
AC
41992003-06-03 Andrew Cagney <[email protected]>
4200
4201 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4202 (sparc_convert_to_raw): Delete function.
4203 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4204 register_convert_to_virtual.
4205
043b2f77
JJ
42062003-06-03 Jeff Johnston <[email protected]>
4207
4208 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4209 layer if not dealing with a statically-linked threaded program.
4210
f43caff8
KW
42112003-06-03 Kris Warkentin <[email protected]>
4212
4213 * solib.c (solib_open): Update comment to reflect actual search order.
4214
ae1e7417
AC
42152003-06-03 Andrew Cagney <[email protected]>
4216
4217 * frame.c (get_frame_memory_signed): New function.
4218 (get_frame_memory, get_frame_memory_unsigned): New function.
4219 (get_frame_arch): New function.
4220 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4221 (get_frame_memory, get_frame_unsigned_memory): Declare.
4222 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4223 get_frame_memory_unsigned and get_frame_arch.
4224 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4225
cb123844
RG
42262003-06-03 Raoul Gough <[email protected]>
4227
4228 * MAINTAINERS (write after approval): Add myself.
4229
1bb792e9
JB
42302003-06-03 Jim Blandy <[email protected]>
4231
4232 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4233 elements of gregset_t are 64 bits each, but access registers
4234 are still 32 bits, so they're packed two per gregset_t
4235 element. Unpack/pack them properly.
4236
aee8d8ba
DC
42372003-06-02 David Carlton <[email protected]>
4238
4239 * linespec.c (find_methods): Break out code into
4240 add_matching_methods and add_constructors.
4241 (add_matching_methods): New.
4242 (add_constructors): Ditto.
4243
bf7488d2
AC
42442003-06-02 Andrew Cagney <[email protected]>
4245
bf7488d2
AC
4246 * sparc-tdep.c (sparc_print_registers): Delete call to
4247 REGISTER_CONVERTIBLE.
4248 (sparc_gdbarch_init): Do not set register_convertible.
4249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4250 * frv-tdep.c (frv_gdbarch_init): Ditto.
4251 * cris-tdep.c (cris_gdbarch_init): Ditto.
4252
adedef68
EZ
42532003-06-02 Elena Zannoni <[email protected]>
4254
8ffd9b1b 4255 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4256 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4257 (syms_from_objfile): Ditto.
4258
650fcc91
AS
42592003-06-03 Andreas Schwab <[email protected]>
4260
4261 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4262 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4263
df4a182b
RH
42642003-06-02 Richard Henderson <[email protected]>
4265
4266 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4267 a member of all_reggroup.
4268
c483c494
RH
42692003-06-02 Richard Henderson <[email protected]>
4270
4271 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4272 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4273 (alpha_lds, alpha_sts): New.
4274 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4275 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4276 restructure and fail for type sizes other than 4 or 8.
4277 (alpha_value_to_register): Similarly.
4278 (alpha_extract_return_value): Use alpha_sts.
4279 (alpha_store_return_value): Use alpha_lds.
4280 (alpha_gdbarch_init): Update hooks.
4281
b38b6be2
RH
42822003-06-02 Richard Henderson <[email protected]>
4283
4284 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4285 regnum identifiers.
4286 (alpha_sigtramp_register_address): Likewise.
4287
98a8e1e5
RH
42882003-06-02 Richard Henderson <[email protected]>
4289
4290 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4291 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4292 * alpha-tdep.h: Declare them.
4293
4294 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4295 Remove zerobuf. Don't error on UNIQUE.
4296 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4297 (ALPHA_REGSET_UNIQUE): Provide default.
4298 (supply_gregset): Use alpha_supply_int_regs.
4299 (fill_gregset): Use alpha_fill_int_regs.
4300 (supply_fpregset): Use alpha_supply_fp_regs.
4301 (fill_fpregset): Use alpha_fill_fp_regs.
4302 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4303 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4304 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4305 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4306 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4307 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4308
67dfac52
RH
43092003-06-02 Richard Henderson <[email protected]>
4310
f75d70cc
RH
4311 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4312
67dfac52
RH
4313 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4314 (alpha_store_return_value): Likewise.
4315
0cf566ec
DC
43162003-06-02 David Carlton <[email protected]>
4317
4318 * block.c (contained_in): Add 'const' to arguments.
4319 (block_function): Ditto.
4320 * block.h: Update declarations for block_function and
4321 contained_in.
4322
cdef89d0
DC
43232003-06-02 David Carlton <[email protected]>
4324
4325 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4326 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4327 * p-valprint.c (pascal_val_print): Ditto.
4328 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4329
72667056
RH
43302003-06-02 Richard Henderson <[email protected]>
4331
98a8e1e5
RH
4332 * alpha-tdep.c (alpha_push_dummy_call): Use
4333 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4334
8ffd9b1b 4335 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4336 sign-extension of 32-bit values.
4337 (alpha_store_return_value): Similarly.
0ede8eca 4338
98a8e1e5
RH
4339 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4340 (alpha_extract_return_value): Likewise.
4341 (alpha_store_return_value): Likewise.
7b5e1cb3 4342
98a8e1e5
RH
4343 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4344 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4345
98a8e1e5
RH
4346 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4347 (alpha_extract_struct_value_address): Likewise.
4348 (alpha_store_return_value): Likewise.
4349 (alpha_store_struct_return): Remove.
4350 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4351
98a8e1e5
RH
4352 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4353 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4354 macros where appropriate.
4355 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4356 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4357
98a8e1e5
RH
4358 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4359 for SP, GP; void_func_ptr for PC; non-language-specific types
4360 for all others.
4361 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4362
6dd77b81
RH
43632003-06-02 Richard Henderson <[email protected]>
4364
4365 * top.h (lim_at_start): Declare.
4366 * main.c (captured_main): Set it.
4367 * top.c (lim_at_start): Define.
4368 (command_loop): Use it instead of &environ.
4369 * event-top.c (command_handler): Likewise.
4370
f4dbdb54
JT
43712003-06-01 Jason Thorpe <[email protected]>
4372
4373 * mipsnbsd-tdep.c: Update copyright years.
4374 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4375
8f285956
RH
43762003-06-01 Richard Henderson <[email protected]>
4377
98a8e1e5
RH
4378 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4379 (alpha-linux-tdep.o): Update dependencies.
4380 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4381 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4382
615967cb
RH
43832003-06-01 Richard Henderson <[email protected]>
4384
98a8e1e5
RH
4385 * alpha-tdep.c (alpha_register_reggroup_p): New.
4386 (alpha_gdbarch_init): Register it.
615967cb 4387
b59661bd
AC
43882003-06-02 Andrew Cagney <[email protected]>
4389
4390 * dwarfread.c: Eliminate "register"
4391 (decode_die_type): Eliminate assignment within "if".
4392 (struct_type, decode_array_element_type): Ditto.
4393 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4394 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4395 (decode_modified_type, completedieinfo): Ditto.
4396 * block.c: Eliminate "register".
4397 (blockvector_for_pc_sect): Eliminate assignment within "if".
4398 * cp-support.h (struct symbol): Opaque declaration.
4399 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4400
5ef165c2
RH
44012003-06-01 Richard Henderson <[email protected]>
4402
98a8e1e5
RH
4403 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4404 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4405
143985b7
AF
44062003-06-01 Adam Fedor <[email protected]>
4407
4408 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4409 * gdbarch.[ch]: Regenerate.
4410 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4411 (hppa_gdbarch_init): Set it in the gdbarch vector.
4412 * i386-tdep.c (i386_fetch_pointer_argument): New
4413 (i386_gdbarch_init): Set it into gdbarch.
4414 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4415 (rs6000_gdbarch_init): Set it in gdbarch.
4416 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4417 (sparc_gdbarch_init): Set it in gdbarch.
4418
ae0167b9
AC
44192003-06-01 Andrew Cagney <[email protected]>
4420
7c0b4a20
AC
4421 * defs.h (extract_address): Delete declaration.
4422 * findvar.c (extract_address): Delete function.
4423 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4424 extract_address with the inline equivalent,
4425 extract_unsigned_integer.
4426 (xstormy16_extract_struct_value_address): Ditto.
4427 (xstormy16_pointer_to_address): Ditto.
4428 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4429 * v850-tdep.c (v850_push_arguments): Ditto.
4430 (v850_extract_return_value): Ditto.
4431 (v850_extract_struct_value_address): Ditto.
4432 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4433 (sparcnbsd_get_longjmp_target_64): Ditto.
4434 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4435 (get_longjmp_target): Ditto.
4436 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4437 (sh64_extract_struct_value_address): Ditto.
4438 (sh_push_arguments): Ditto.
4439 (sh64_push_arguments): Ditto.
4440 * remote-vxsparc.c (vx_read_register): Ditto.
4441 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4442 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4443 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4444 * mipsv4-nat.c (get_longjmp_target): Ditto.
4445 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4446 * mips-nat.c (get_longjmp_target): Ditto.
4447 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4448 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4449 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4450 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4451 * irix5-nat.c (get_longjmp_target): Ditto.
4452 * irix4-nat.c (get_longjmp_target): Ditto.
4453 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4454 (ia64_push_arguments): Ditto.
4455 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4456 * h8300-tdep.c (h8300_push_arguments): Ditto.
4457 (h8300_store_return_value): Ditto.
4458 (h8300_extract_struct_value_address): Ditto.
4459 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4460 (frv_push_arguments): Ditto.
4461 * avr-tdep.c (avr_pointer_to_address): Ditto.
4462 (avr_push_arguments): Ditto.
4463 * arm-tdep.c (arm_push_dummy_call): Ditto.
4464 (arm_get_longjmp_target): Ditto.
4465 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4466 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4467 (alpha_get_longjmp_target): Ditto.
4468
ae0167b9
AC
4469 * solib-irix.c (extract_mips_address): Inline extract_address,
4470 replacing it with extract_signed_integer.
4471 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4472 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4473 (first_link_map_member, open_symbol_file_object): Ditto.
4474 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4475 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4476 (LM_NEXT, LM_NAME): Ditto.
4477
44d88583
RH
44782003-06-01 Richard Henderson <[email protected]>
4479
98a8e1e5
RH
4480 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4481 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4482 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4483 (alpha_cannot_store_register): Likewise.
4484 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4485 * alpha-nat.c (supply_gregset): Likewise.
4486 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4487
310e9b6a
AC
44882003-06-01 Andrew Cagney <[email protected]>
4489
4490 * infcall.c (call_function_by_hand): Update comment on
4491 DEPRECATED_DUMMY_WRITE_SP.
4492
4493 * mips-tdep.c (mips_gdbarch_init): Do not set
4494 deprecated_dummy_write_sp.
4495 (mips_eabi_push_dummy_call): Set the SP register.
4496 (mips_o64_push_dummy_call): Set the SP register.
4497 (mips_o32_push_dummy_call): Set the SP register.
4498 (mips_n32n64_push_dummy_call): Set the SP register.
4499
5ab84872
RH
45002003-06-01 Richard Henderson <[email protected]>
4501
98a8e1e5
RH
4502 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4503 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4504 (supply_gregset): Likewise.
4505 * alpha-tdep.c (alpha_store_return_value): Likewise.
4506 (alpha_get_longjmp_target): Likewise.
4507 (alpha_register_name): Constify array.
4508 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4509 deprecated_register_size, deprecated_register_bytes,
4510 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4511 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4512 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4513
09cc52fd
RH
45142003-06-01 Richard Henderson <[email protected]>
4515
4516 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4517 from arg_reg_buffer to regcache to avoid double conversion.
4518
c7f16359
MK
45192003-06-01 Mark Kettenis <[email protected]>
4520
4521 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4522 SP_REGNUM.
4523 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4524 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4525
7131cb6e
RH
45262003-06-01 Richard Henderson <[email protected]>
4527
98a8e1e5
RH
4528 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4529 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4530
f3e0f90b
RH
45312003-06-01 Richard Henderson <[email protected]>
4532
98a8e1e5
RH
4533 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4534 not overlapping PC_REGNUM.
f3e0f90b 4535
c88e30c0
RH
45362003-06-01 Richard Henderson <[email protected]>
4537
98a8e1e5
RH
4538 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4539 alpha_push_arguments. Don't dump argument register data to
4540 the target stack. Fix float and 128-bit long double semantics.
4541 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4542 (alpha_fix_call_dummy): Remove.
4543 (alpha_call_dummy_words): Remove.
4544 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4545
f1a559ae
RH
45462003-06-01 Richard Henderson <[email protected]>
4547
4548 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4549
5e045346
AC
45502003-06-01 Andrew Cagney <[email protected]>
4551
95404a3e
AC
4552 * mips-tdep.c (is_mips16_addr): New function.
4553 (make_mips16_addr, unmake_mips16_addr): New functions.
4554 (pc_is_mips16, mips_fetch_instruction): Use.
4555 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4556 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4557 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4558 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4559 TARGET_MIPS.
4560 * config/mips/tm-mips.h: Update copyright.
4561 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4562 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4563 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4564 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4565 (TM_PRINT_INSN_MACH): Delete.
4566 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4567
5e045346
AC
4568 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4569 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4570 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4571 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4572 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4573 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4574 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4575 mips*-*-riscos* and mips*-*-sysv* onto mips.
4576 * config/mips/mips64.mt: New file.
4577 * config/mips/mips.mt: New file.
4578 * config/mips/littlemips.mt: Delete file.
4579 * config/mips/decstation.mt: Delete file.
4580 * config/mips/vr4300el.mt: Delete file.
4581 * config/mips/vr5000el.mt: Delete file.
4582 * config/mips/vr5000.mt: Delete file.
4583 * config/mips/vr4100.mt: Delete file.
4584 * config/mips/vr4xxxel.mt: Delete file.
4585 * config/mips/vr4300.mt: Delete file.
4586 * config/mips/vr4xxx.mt: Delete file.
4587 * config/mips/bigmips.mt: Delete file.
4588 * config/mips/bigmips64.mt: Delete file.
4589 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4590 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4591 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4592 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4593 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4594 "tm-bigmips.h".
4595 * config/mips/tm-irix3.h: Ditto.
4596 * config/mips/tm-mipsv4.h: Ditto.
4597 * config/mips/tm-embed.h: Ditto.
4598 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4599 "tm-bigmips64.h".
4600 * config/mips/tm-vr5000el.h: Delete file.
4601 * config/mips/tm-tx39l.h: Delete file.
4602 * config/mips/tm-vr4300el.h: Delete file.
4603 * config/mips/tm-vr4xxxel.h: Delete file.
4604 * config/mips/tm-vr4300.h: Delete file.
4605 * config/mips/tm-vr4100.h: Delete file.
4606 * config/mips/tm-vr4xxx.h: Delete file.
4607 * config/mips/tm-vr5000.h: Delete file.
4608 * config/mips/tm-embedl64.h: Delete file.
4609 * config/mips/tm-embedl.h: Delete file.
4610 * config/mips/tm-embed64.h: Delete file.
4611 * config/mips/tm-bigmips64.h: Delete file.
4612 * config/mips/tm-bigmips.h: Delete file.
4613
2473a4a9
MK
46142003-06-01 Mark Kettenis <[email protected]>
4615
97a5b208
MK
4616 Fix gdb/1216.
4617 * shnbsd-nat.c: Include "sh-tdep.h".
4618
2473a4a9
MK
4619 From Richard Henderson <[email protected]>:
4620 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4621
e0f7ec59
AC
46222003-05-31 Andrew Cagney <[email protected]>
4623
4624 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4625 forward declaration.
4626 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4627 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4628 (mips_find_saved_regs): Use set_reg_offset.
4629 (mips_frame_init_saved_regs): Delete function.
4630 (mips_pop_frame): Call mips_find_saved_regs instead of
4631 DEPRECATED_FRAME_INIT_SAVED_REGS.
4632
68dcc709
AC
46332003-05-31 Andrew Cagney <[email protected]>
4634
4635 * mips-tdep.c (mips_gdbarch_init): Do not set
4636 deprecated_max_register_raw_size, register_virtual_size, and
4637 deprecated_max_register_virtual_size.
4638
cfc14b3a
MK
46392003-05-31 Mark Kettenis <[email protected]>
4640
6405b0a6
MK
4641 * i386-tdep.c: Include "dwarf2-frame.h".
4642 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4643 * Makefile.in (i386-tdep.o): Update dependencies.
4644
cfc14b3a
MK
4645 * dwarf2-frame.c, dwarf2-frame.h: New files.
4646 * Makefile.in (SFILES): Add dwarf2-frame.c.
4647 (dwarf2_frame_h): Define.
4648 (COMMON_OBS): Add dwarf2-frame.o.
4649 (dwarf2-frame.o): Add dependencies.
4650
6a2751d2
AJ
46512003-05-31 Andreas Jaeger <[email protected]>
4652
4653 * x86-64-linux-nat.c: Fix comment.
4654
1c3545ae
MK
46552003-05-31 Mark Kettenis <[email protected]>
4656
10f93086
MK
4657 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4658 function signature.
4659
1c3545ae
MK
4660 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4661 have a sigcontext_addr handler.
4662 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4663 sigcontext_addr handler.
4664
e11c53d2
AC
46652003-05-31 Andrew Cagney <[email protected]>
4666
4667 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4668 (print_fp_register_row): Replace do_fp_register_row.
4669 (mips_print_fp_register): Add "file" and "frame" parameters.
4670 (mips_print_register): Add "file" and "frame" parameters.
4671 (mips_print_registers_info): Replace mips_do_registers_info.
4672 (mips_gdbarch_init): Set print_registers_info instead of
4673 deprecated_do_registers_info.
4674 (mips_read_fp_register_single): Add "frame" parameter.
4675 (mips_read_fp_register_double): Add "frame" parameter.
4676
a3386186
MK
46772003-05-31 Mark Kettenis <[email protected]>
4678
70913449
MK
4679 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4680 Fixes a bug where GDB would print the wrong register names for
4681 targets without SSE.
4682
2b5e0749
MK
4683 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4684 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4685 registers.
4686
4687 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4688 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4689 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4690 TDEP->sc_sp_offset.
4691
a3386186
MK
4692 From Michal Ludvig <[email protected]>:
4693 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4694 and `sc_num_regs'.
4695 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4696 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4697 I386_ST0_REGNUM): Move here from...
4698 * i386-tdep.c: ... here.
4699 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4700 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4701 registers if possible.
4702 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4703 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4704 Remove variables.
4705 (i386bsd_sc_reg_offset): New variable.
4706 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4707 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4708 TDEP->sc_sp_offset.
4709 (i386fbsd_sc_reg_offset): New variable.
4710 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4711 TDEP->sc_num_regs.
4712 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4713 variables.
4714 (i386fbsd4_sc_reg_offset): New variable.
4715 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4716 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4717 TDEP->sc_sp_offset.
4718 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4719 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4720 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4721 Remove variables.
4722 (i386nbsd_sc_reg_offset): New variable.
4723 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4724 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4725 TDEP->sc_sp_offset.
4726 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4727 Remove variables.
4728 (i386obsd_sc_reg_offset): New variable.
4729 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4730 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4731 TDEP->sc_sp_offset.
4732 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4733 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4734 for frame pointer offset in `struct sigcontext'.
4735
25ab4790
AC
47362003-05-31 Andrew Cagney <[email protected]>
4737
4738 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4739 architecture methods call_dummy_words, sizeof_call_dummy_words,
4740 push_return_address, store_struct_return, and fix_call_dummy. Set
4741 push_dummy_call instead of deprecated_push_arguments.
4742 (mips_store_struct_return): Delete function.
4743 (mips_fix_call_dummy): Delete function.
4744 (mips_push_return_address): Delete function.
4745 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4746 RA_REGNUM and T9_REGNUM.
4747 (mips_n32n64_push_dummy_call): Ditto for
4748 mips_n32n64_push_arguments.
4749 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4750 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4751
6a65450a
AC
47522003-05-31 Andrew Cagney <[email protected]>
4753
4754 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4755 "dummy_addr" to "bp_addr".
4756 * infcall.c (call_function_by_hand): Pass "funaddr" to
4757 gdbarch_push_dummy_call.
4758 * gdbarch.h, gdbarch.c: Re-generate.
4759 * i386-tdep.c (i386_push_dummy_call): Update.
4760 * arm-tdep.c (arm_push_dummy_call): Update.
4761 * d10v-tdep.c (d10v_push_dummy_call): Update.
4762
c4f35dd8
MK
47632003-05-31 Mark Kettenis <[email protected]>
4764
4765 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4766 variable declarations.
4767 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4768 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4769 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4770 x86_64_init_frame_pc, x86_64_init_frame_pc,
4771 x86_64_function_has_prologue): Remove prototypes.
4772 (X86_64_NUM_GREGS): New define.
4773 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4774 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4775 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4776 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4777 XMM1_REGNUM): Remove defines.
4778 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4779 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4780 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4781 X86_64_XMM1_REGNUM): New defines.
4782 (struct x86_64_register_info): Renamed from `struct
4783 register_info'. Remove `size' member.
4784 (x86_64_register_info_table): Remove variable.
4785 (x86_64_register_info): New variable.
4786 (X86_64_NUM_REGS): New define.
4787 (X86_64_NUM_GREGS): Remove define.
4788 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4789 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4790 Remove variables.
4791 (x86_54_dwarf2_reg_to_regnum): Remove function.
4792 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4793 (x86_64_dwarf_reg_to_regnum): New function.
4794 (x86_64_register_name): Rewrite.
4795 (x86_64_register_raw_size): Remove function.
4796 (x86_64_register_byte_table): Remove variable.
4797 (x86_64_register_byte): Remove function.
4798 (x86_64_register_virtual_type): Remove function.
4799 (x86_64_register_type): New function.
4800 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4801 x86_64_register_convert_to_raw): Remove functions.
4802 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4803 (x86_64_use_struct_convention): Make static. Adjust for renamed
4804 defines.
4805 (x86_64_frame_init_saved_regs): Remove function.
4806 (x86_64_push_arguments): Make static. Change to accept a regcache
4807 as argument.
4808 (x86_64_store_return_value, x86_64_extract_return_value): Make
4809 static. Rewrite based on i386 counterparts.
4810 (x86_64_push_dummy_call): New function.
4811 (X86_64_NUM_SAVED_REGS): New define.
4812 (x86_64_register_number): Remove function.
4813 (x86_64_store_struct_return): Remove function.
4814 (x86_64_frameless_function_invocation,
4815 x86_64_function_has_prologue): Remove functions.
4816 (PROLOG_BUFSIZE): Remove define.
4817 (struct x86_64_frame_cache): New structure.
4818 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4819 x86_64_frame_cache, x86_64_frame_this_id,
4820 x86_64_frame_prev_register, x86_64_frame_p,
4821 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4822 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4823 functions.
4824 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4825 variables.
4826 (x86_64_skip_prologue): Rewrite in terms of
4827 x86_64_analyze_prologue.
4828 (x86_64_frame_base_address): New function.
4829 (x86_64_frame_base): New variable.
4830 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4831 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4832 set deprecated_fp_regnum, deprecated_register_size,
4833 deprecated_register_bytes, register_raw_size, register_byte,
4834 register_virtual_type, register_convertiable,
4835 register_convert_to_virtual, convert_to_raw,
4836 deprecated_get_saved_register, deprecated_target_read_fp,
4837 deprecated_push_arguments, deprecated_push_return_address,
4838 deprecated_pop_frame, deprecated_store_struct_return,
4839 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4840 frameless_function_invocation, deprecated_frame_saved_pc,
4841 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4842 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4843 deprecated_init_frame_pc and virtual_frame_pointer. Call
4844 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4845 and x86_64_frame_p. Call frame_base_set_default to register
4846 x86_64_frame_base.
4847 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4848 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4849 (_initialize_x86_64_tdep): Remove function.
4850 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4851 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4852 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4853 define.
4854 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4855 (x86_64_linux_sigcontext_addr): Rewrite.
4856 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4857 x86_64_linux_frame_saved_pc): Remove functions.
4858 (x86_64_linux_pc_in_sigtramp): Renamed from
4859 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4860 trampoline.
4861 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4862 Remove_functions.
4863 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4864 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4865 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4866 (x86_64_regmap): Rename to regmap.
4867 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4868 x86_64_num_gregs.
4869 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4870 x86_64_regmap.
4871 (x86_64_fxsave_offset): Remove function.
4872 (supply_fpregset): Simply call x86_64_supply_fxsave.
4873 (fill_fpregset): Simply call x86_64_fill_fxsave.
4874 (fetch_inferior_registers, store_inferior_registers): Avoid
4875 asignment in if-statement.
4876 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4877 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4878 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4879 (fetch_core_registers): Remove function.
4880 (linux_elf_core_fns): Remove.
4881 (offsetoff): Don't define.
4882 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4883 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4884 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4885 add core-regset.o.
4886 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4887 protection against multiple includes instead of NM_X86_64_h. Add
4888 various comments. Include "config/nm-linux.h". Don't include
4889 <signal.h>.
4890 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4891 GET_THREAD_SIGNALS): Remove defines.
4892 (x86_64_register_u_addr, kernel_u_size,
4893 lin_thread_get_thread_signals): Remove prototypes.
4894 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4895 [HAVE_LINK_H]: Don't include "solib.h".
4896 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4897 * config/i386/tm-x86-64linux.h: Fix comments.
4898 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4899 x86-64-tdep.o): Update dependencies.
4900
c25083af
AC
49012003-05-30 Andrew Cagney <[email protected]>
4902
c8f55a7b
AC
4903 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4904 Change parameter type to a "struct regcache *".
4905
c25083af
AC
4906 * gdbarch.sh: Regardless of the multi-arch level, always define
4907 the macro when not already defined.
4908 * gdbarch.h, gdbarch.c: Re-generate.
4909
fbe586ae
RH
49102003-05-30 Richard Henderson <[email protected]>
4911
4912 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4913 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4914 (alpha_mdebug_frame_this_id): Likewise.
4915 (alpha_mdebug_frame_prev_register): Likewise.
4916 (alpha_mdebug_frame_base_address): Likewise.
4917 (alpha_mdebug_frame_locals_address): Likewise.
4918 (alpha_mdebug_frame_args_address): Likewise.
4919 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4920 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4921 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4922 loop increment.
4923 (alpha_heuristic_frame_this_id): Make static.
4924 (alpha_heuristic_frame_prev_register): Likewise.
4925 (alpha_heuristic_frame_base_address): Likewise.
4926 * alpha-tdep.h: Update.
4927
acd5c798
MK
49282003-05-30 Mark Kettenis <[email protected]>
4929
4930 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4931 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4932 defenitions.
4933 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4934 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4935 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4936 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4937 I386_ST0_REGNUM): New defines.
4938 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4939 codestream_get): Remove define.
4940 (codestream_next_addr, condestream_addr, condestream_buf,
4941 codestream_off, codestream_cnt): Remove variables.
4942 (codestream_fill, codestream_seek, codestream_read): Remove
4943 functions.
4944 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4945 functionality.
4946 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4947 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4948 i386_frame_saved_pc, i386_saved_pc_after_call,
4949 i386_frame_num_args, i386_frame_init_saved_regs,
4950 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4951 i386_push_arguments): Remove functions.
4952 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4953 functionality. Use i386_analyze_prologue instead of
4954 i386_get_frame_setup.
4955 (I386_NUM_SAVED_REGS): New define.
4956 (struct i386_frame_cache): New structure.
4957 (i386_alloc_frame_cache, i386_analyze_struct_return,
4958 i386_skip_probe, i386_analyze_frame_setup,
4959 i386_analyze_register_saves, i386_analyze_prologue,
4960 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4961 i386_frame_prev_register, i386_sigtramp_frame_cache,
4962 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4963 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4964 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4965 New functions.
4966 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4967 New variables.
4968 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4969 I386_EAX_REGNUM and I386_EDX_REGNUM.
4970 (i386_extract_return_value, i386_store_return_value): Use
4971 I386_ST0_REGNUM where appropriate.
4972 (i386_extract_struct_value_address): Rewrite to use extract_address.
4973 (i386_svr4_pc_in_sigtramp): Add comment.
4974 (i386_svr4_sigcontext_addr): Rewrite.
4975 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4976 TDEP->sc_sp_offset.
4977 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4978 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4979 of new defines. Set push_dummy_call, don't set
4980 deprecated_push_arguments, deprecated_push_return_address,
4981 deprecated_pop_frame. Don't set parm_boundary. Don't set
4982 deprecated_frame_chain, deprecated_frame_saved_pc,
4983 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4984 save_dummy_frame_tos, unwind_pc. Call
4985 frame_unwind_append_predicate and frame_base_set_default. Don't
4986 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4987 Don't set frameless_function_invocation. Don't set
4988 deprecated_register_bytes, deprecated_register_size,
4989 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4990 * i386-linux-tdep.c: Fix formatting in some comments.
4991 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4992 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4993 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4994 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4995 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4996 redundant parentheses.
4997 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4998 (i386_linux_sigcontext_addr): Use it. Rewrite.
4999 (find_minsym_and_objfile): Change name of second argument.
5000 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5001 changed. Use frame_pc_unwind instead of
5002 DEPRECATED_SAVED_PC_AFTER_CALL.
5003 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5004 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5005 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5006 unwinder.
5007 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5008 "dummy-frame.h".
5009 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5010 (_initialize_i386_cygwin_tdep): New prototype.
5011 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5012 deprecated_frame_chain_valid.
5013 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5014 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5015 Rely on the SVR4 defaults.
5016 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5017 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5018
c89b70f1
AC
50192003-05-30 Andrew Cagney <[email protected]>
5020
5021 * infcall.c (call_function_by_hand): Always call
5022 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5023
85b32d22
RH
50242003-05-30 Richard Henderson <[email protected]>
5025
c89b70f1
AC
5026 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5027 increment.
85b32d22 5028
bfe51b1e
JB
50292003-05-29 Jim Blandy <[email protected]>
5030
5031 Use gdbarch methods for solib stuff on PowerPC Linux.
5032 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5033 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5034 show through.
5035 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5036 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5037 giving the same effect as the #definitions above.
5038
1abf022c
AF
50392003-05-29 Adam Fedor <[email protected]>
5040
5041 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5042 (find_implementation_from_class): Replace it with the standard
5043 case i.e. do nothing.
5044
d2427a71
RH
50452003-05-29 Richard Henderson <[email protected]>
5046
5047 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5048 (alpha_linux_sigtramp_offset): Use it. Make static.
5049 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5050 update for new frame model.
5051 * alpha-mdebug-tdep.c: New file.
5052 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5053 (alpha_osf1_init_abi): Install it.
5054 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5055 (linked_proc_desc_table): Remove.
5056 (alpha_frame_past_sigtramp_frame): Remove.
5057 (alpha_dynamic_sigtramp_offset): Remove.
5058 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5059 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5060 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5061 (push_sigtramp_desc): Remove.
5062 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5063 (alpha_cannot_store_register): Likewise.
5064 (alpha_sigcontext_addr): Remove.
5065 (alpha_find_saved_regs): Remove.
5066 (alpha_frame_init_saved_regs): Remove.
5067 (alpha_init_frame_pc_first): Remove.
5068 (read_next_frame_reg): Remove.
5069 (alpha_frame_saved_pc): Remove.
5070 (alpha_saved_pc_after_call): Remove.
5071 (temp_proc_desc, temp_saved_regs): Remove.
5072 (alpha_about_to_return): Remove.
5073 (cached_proc_desc): Remove.
5074 (alpha_frame_chain): Remove.
5075 (alpha_print_extra_frame_info): Remove.
5076 (alpha_init_extra_frame_info): Remove.
5077 (alpha_frame_locals_address): Remove.
5078 (alpha_frame_args_address): Remove.
5079 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5080 (alpha_push_dummy_frame): Remove.
5081 (alpha_pop_frame): Remove.
5082 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5083 (alpha_read_insn): New.
5084 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5085 for different insn encodings.
5086 (alpha_in_lenient_prologue): Remove.
5087 (struct alpha_sigtramp_unwind_cache): New.
5088 (alpha_sigtramp_frame_unwind_cache): New.
5089 (alpha_sigtramp_register_address): New.
5090 (alpha_sigtramp_frame_this_id): New.
5091 (alpha_sigtramp_frame_prev_register): New.
5092 (alpha_sigtramp_frame_unwind): New.
5093 (alpha_sigtramp_frame_p): New.
5094 (struct alpha_heuristic_unwind_cache): New.
5095 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5096 don't count nop insns that occur between functions.
5097 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5098 heuristic_proc_desc, but without the mdebug wrapping.
5099 (alpha_heuristic_frame_this_id): New.
5100 (alpha_heuristic_frame_prev_register): New.
5101 (alpha_heuristic_frame_unwind): New.
5102 (alpha_heuristic_frame_p): New.
5103 (alpha_heuristic_frame_base_address): New.
5104 (alpha_heuristic_frame_base): New.
5105 (alpha_unwind_dummy_id): New.
5106 (alpha_unwind_pc): New.
5107 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5108 frame related deprecated initializations; install replacements.
5109 (alpha_dump_tdep): Remove.
5110 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5111 (alpha_read_insn, alpha_after_prologue,
5112 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5113 alpha_heuristic_frame_prev_register,
5114 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5115 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5116 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5117 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5118
93ec1121
AC
51192003-05-29 Andrew Cagney <[email protected]>
5120
5121 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5122 dependant on the availability of ASSERT_FUNCTION.
5123 (ASSERT_FUNCTION): Do not define when there is no function name.
5124
98f08d3d
KB
51252003-05-29 Kevin Buettner <[email protected]>
5126
5127 From Jimi X <[email protected]>:
5128 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5129
0897f59b
JB
51302003-05-28 Jim Blandy <[email protected]>
5131
5132 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5133 argument to ptrace to int; the system headers should give it the
5134 right type, and pointers don't fit in ints on powerpc64-*-*.
5135
14898363
L
51362003-05-28 H.J. Lu <[email protected]>
5137
5138 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5139 DW_TAG_catch_block.
5140
a7a48797
EZ
51412003-05-26 Elena Zannoni <[email protected]>
5142
5143 * stabsread.c (dbx_lookup_type): Make static.
5144 (read_type): Ditto.
5145 (add_undefined_type): Ditto.
5146 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5147 not export.
5148
f5479e9c
EZ
51492003-05-26 Elena Zannoni <[email protected]>
5150
5151 * hpread.c (hpread_has_name): Make static.
5152 (hpread_psymtab_to_symtab): Ditto.
5153 (file_exists): Ditto.
5154 (hpread_call_pxdb): Ditto.
5155 (hpread_pxdb_needed): Ditto.
5156 (hpread_quick_traverse): Ditto.
5157 (hpread_get_header): Ditto.
5158 (hpread_get_lntt): Ditto.
5159 (hpread_get_slt): Ditto.
5160 (class_of): Ditto.
5161
eb2e12d7
AS
51622003-05-25 Andreas Schwab <[email protected]>
5163
78bf922a
AS
5164 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5165 stack_align and deprecated_extra_stack_alignment_needed.
5166 (m68k_stack_align): Delete.
5167
eb2e12d7
AS
5168 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5169 (m68k_register_virtual_size): Likewise.
5170 (altos_skip_prologue): Remove obsolete function.
5171 (isi_frame_num_args): Likewise.
5172 (news_frame_num_args): Likewise.
5173 (m68k_fix_call_dummy): Make static.
5174 (m68k_push_dummy_frame): Likewise.
5175 (m68k_pop_frame): Likewise.
5176 (m68k_skip_prologue): Likewise.
5177 (m68k_frame_init_saved_regs): Likewise.
5178 (m68k_saved_pc_after_call): Likewise.
5179 (m68k_get_longjmp_target): Make multi-arch.
5180 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5181 structure. Register m68k_get_longjmp_target if enabled.
5182 * m68k-tdep.h (struct gdbarch_tdep): Define.
5183 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5184
5185 * Makefile.in (config.status): Also depend on configure.tgt
5186 and configure.host.
5187 (m68klinux-tdep.o): Update dependencies.
5188 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5189 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5190 (M68K_LINUX_JB_PC): Define.
5191 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5192 and take additional parameter.
5193 (m68k_linux_sigtramp_saved_pc): Update.
5194 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5195 m68k_linux_pc_in_sigtramp, in_plt_section,
5196 find_solib_trampoline_target.
5197 * config/m68k/tm-linux.h: Don't include any tm headers.
5198 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5199 (JB_ELEMENT_SIZE): Likewise.
5200 (JB_PC): Likewise.
5201 (GET_LONGJMP_TARGET): Likewise.
5202 (IN_SIGTRAMP): Likewise.
5203 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5204
eb2c22dc
MK
52052003-05-25 Mark Kettenis <[email protected]>
5206
5207 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5208 (sparc32_push_arguments): Re-implement by calling
5209 sparc32_do_push_arguments.
5210
44b7b84e
MK
52112003-05-25 Mark Kettenis <[email protected]>
5212
5213 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5214 SPARC_O1_REGNUM): New defines.
5215 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5216 (sparc32_store_return_value): New function.
5217 (sparc_extract_struct_value_address): Rewrite to operate on a
5218 regcache.
5219 (sparc_gdbarch_init): Don't set
5220 deprecated_extract_struct_value_address. Set
5221 extract_struct_value_address instead. Don't set
5222 deprecated_extract_return_value and deprecated_store_return_value
5223 for 32-bit targets. Set extract_return_value and
5224 store_return_value instead.
5225 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5226 DEPRECTAED_EXTRACT_RETURN_VALUE,
5227 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5228 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5229 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5230 (sparc_store_return_value): Remove prototype.
5231 (sparc32_store_return_value): New prototype.
5232 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5233 Adjust prototypes.
5234
f6ad61e3
MK
52352003-05-24 Mark Kettenis <[email protected]>
5236
5237 * sparcnbsd-tdep.c: Include "gdb_string.h".
5238
b276f1bb
AC
52392003-05-23 Andrew Cagney <[email protected]>
5240
5241 * p-valprint.c (pascal_val_print): Replace extract_address with
5242 the inline equivalent extract_unsigned_integer.
5243 * jv-valprint.c (java_value_print): Ditto.
5244 * ada-valprint.c (ada_val_print_1): Ditto.
5245 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5246
e76c5fcc
TR
52472003-05-23 Theodore A. Roth <[email protected]>
5248
5249 * blockframe.c (frameless_look_for_prologue): Remove unused
5250 after_prologue variable.
5251
2cdd89cb
MK
52522003-05-23 Mark Kettenis <[email protected]>
5253
5254 * blockframe.c (get_pc_function_start): Rewrite to avoid
5255 asignments in if-statements.
5256
182d43bc
EZ
52572003-05-23 Raoul Gough <[email protected]>
5258
5259 Committed by Elena Zannoni <[email protected]>.
8ffd9b1b 5260 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5261 files, don't relocate absolute symbols (and do use mst_abs).
5262
e8f3fcdd
AC
52632003-05-23 Andrew Cagney <[email protected]>
5264
5265 * objc-lang.c: Include "gdb_assert.h".
5266 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5267 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5268 (gdb_check, gdb_check_fatal): Delete functions.
5269 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5270 gdb_assert.
5271 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5272 * Makefile.in (objc-lang.o): Update dependencies.
5273
3c23e6fb
ILT
52742003-05-22 Ian Lance Taylor <[email protected]>
5275
5276 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5277 with fprintf_filtered, not fprintf_unfiltered.
5278
af1342ab
AC
52792003-05-22 Andrew Cagney <[email protected]>
5280
5281 * stack.c (frame_info): Inline extract_address, replacing it with
5282 extract_unsigned_integer.
5283 * findvar.c (unsigned_pointer_to_address): Ditto.
5284 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5285 * dwarf2expr.c (dwarf2_read_address): Ditto.
5286 * frame.c (frame_pc_unwind): Update comment.
5287 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5288
47e242ec
JJ
52892003-05-22 Jeff Johnston <[email protected]>
5290
5291 * infptrace.c (detach): Call print_sys_errmsg rather than
5292 perror_with_name to issue warning message when errno is non-zero
5293 after calling ptrace detach.
5294
e2ac8128
JB
52952003-05-21 J. Brobecker <[email protected]>
5296
5297 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5298 macro definitions from here...
5299 * hppa-tdep.c: ...to there.
5300
92b3541e
KB
53012003-05-20 Kevin Buettner <[email protected]>
5302
5303 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5304 register_ptrace_addr(). Fix all callers.
5305
55809acb
AS
53062003-05-21 Andreas Schwab <[email protected]>
5307
5308 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5309 dependencies.
5310 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5311 end.
5312 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5313 (_initialize_m68k_linux_tdep): New function.
5314 (m68k_linux_frame_saved_pc): Make static.
5315 (m68k_linux_extract_return_value): Likewise.
5316 (m68k_linux_store_return_value): Likewise.
5317 (m68k_linux_extract_struct_value_address): Likewise.
5318 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5319 Remove.
5320 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5321 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5322 (DEPRECATED_FRAME_SAVED_PC): Remove.
5323
0fbc10f7
KW
53242003-05-20 Kris Warkentin <[email protected]>
5325
5326 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5327 regset numbering rather than our own.
5328
58da2eb2
DC
53292003-05-19 David Carlton <[email protected]>
5330
5331 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5332
1fcb5155
DC
53332003-05-19 David Carlton <[email protected]>
5334
5335 Partial fix for PR c++/827.
5336 * cp-support.h: Include symtab.h.
5337 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5338 * cp-namespace.c: Update contributors.
5339 (cp_lookup_symbol_nonlocal): New.
5340 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5341 (lookup_symbol_file): Ditto.
5342 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5343 * block.h: Declare block_scope, block_using, block_global_block.
5344 * block.c (block_scope): New.
5345 (block_using, block_global_block): Ditto.
5346 * Makefile.in (cp_support_h): Depend on symtab_h.
5347 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5348
5f9a71c3
DC
53492003-05-19 David Carlton <[email protected]>
5350
5351 * language.h (struct language_defn): Add 'la_value_of_this'
5352 and 'la_lookup_symbol_nonlocal' members.
5353 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5354 lookup_symbol_static, lookup_symbol_global,
5355 lookup_symbol_aux_block.
5356 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5357 if we should search fields of this and how to do static/global
5358 lookup.
5359 (lookup_symbol_aux_block): Make extern.
5360 (basic_lookup_symbol_nonlocal): New.
5361 (lookup_symbol_static, lookup_symbol_global): Ditto.
5362 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5363 'la_lookup_symbol_nonlocal' members.
5364 * c-lang.c (c_language_defn, cplus_language_defn)
5365 (asm_language_defn, minimal_language_defn): Ditto.
5366 * jv-lang.c (java_language_defn): Ditto.
5367 * language.c (unknown_language_defn, auto_language_defn)
5368 (local_language_defn): Ditto.
5369 * m2-lang.c (m2_language_defn): Ditto.
5370 * objc-lang.c (objc_language_defn): Ditto.
5371 * scm-lang.c (scm_language_defn): Ditto.
5372 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5373 * p-lang.c (pascal_language_defn): Ditto for both.
5374 * Makefile.in (f-lang.o): Depend on value_h.
5375 (p-lang.o): Ditto.
5376
89a9d1b1
DC
53772003-05-19 David Carlton <[email protected]>
5378
5379 * block.h: Declare block_static_block.
5380 * block.c (block_static_block): New.
5381 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5382 lookup_symbol_aux_local, calling block_static_block instead.
5383 (lookup_symbol_aux_local): Delete 'static_block' argument.
5384
eed3f8ab
DC
53852003-05-19 David Carlton <[email protected]>
5386
5387 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5388
a09d8bda
ML
53892003-05-19 Michal Ludvig <[email protected]>
5390
5391 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5392 register numbers mapping.
5393
69636828
AF
53942003-05-18 Adam Fedor <[email protected]>
5395
5396 * symtab.c (completion_list_objc_symbol): New function.
5397 (make_symbol_completion_list): Use it to add ObjC symbols
5398 when looking though the list.
5399 (language_search_unquoted_string): New function.
5400 (make_file_symbol_completion_list): Use it.
5401
55baeb84
AS
54022003-05-18 Andreas Schwab <[email protected]>
5403
d0b45d99
AS
5404 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5405 dependencies.
5406 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5407 as m68k_linux_extract_return_value.
5408 (DEPRECATED_STORE_RETURN_VALUE): Define as
5409 m68k_linux_store_return_value.
5410 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5411 m68k_linux_extract_struct_value_address.
5412 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5413 get_next_frame, get_frame_base, get_frame_pc.
5414 (m68k_linux_frame_saved_pc): Use get_frame_base.
5415 (m68k_linux_extract_return_value): New function.
5416 (m68k_linux_store_return_value): New function.
5417 (m68k_linux_extract_struct_value_address): New function.
5418 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5419
55baeb84
AS
5420 * c-exp.y (typebase): Remove duplicate occurence of
5421 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5422 of lookup_signed_typename.
55baeb84 5423
b6b08ebf
MK
54242003-05-18 Mark Kettenis <[email protected]>
5425
5426 * dwarf2loc.c (find_location_expression): Change type of second
5427 argument to `size_t *'.
5428 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5429 for size variable.
5430
5ad1c190
DC
54312003-05-18 David Carlton <[email protected]>
5432
5433 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5434 'linkage_name'. Add comment.
5435 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5436 'linkage_name'.
5437 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5438 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5439 (lookup_block_symbol): Ditto.
5440
b8b527c5
AC
54412003-05-16 Andrew Cagney <[email protected]>
5442
5443 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5444 * gdbarch.h, gdbarch.c: Re-generate.
5445 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5446 * TODO (REGISTER_BYTES): Delete reference.
5447 * alpha-tdep.c (alpha_gdbarch_init): Update.
5448 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5449 * x86-64-tdep.c (x86_64_init_abi): Update.
5450 * vax-tdep.c (vax_gdbarch_init): Update.
5451 * v850-tdep.c (v850_gdbarch_init): Update.
5452 * sparc-tdep.c (sparc_gdbarch_init): Update.
5453 * sh-tdep.c (sh_gdbarch_init): Update.
5454 * s390-tdep.c (s390_gdbarch_init): Update.
5455 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5456 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5457 (ns32k_gdbarch_init_32382): Update.
5458 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5459 * mcore-tdep.c (mcore_gdbarch_init): Update.
5460 * m68k-tdep.c (m68k_gdbarch_init): Update.
5461 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5462 * ia64-tdep.c (ia64_gdbarch_init): Update.
5463 * i386-tdep.c (i386_gdbarch_init): Update.
5464 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5465 * hppa-tdep.c (hppa_gdbarch_init): Update.
5466 * h8300-tdep.c (h8300_gdbarch_init): Update.
5467 * frv-tdep.c (frv_gdbarch_init): Update.
5468 * cris-tdep.c (cris_gdbarch_init): Update.
5469 * avr-tdep.c (avr_gdbarch_init): Update.
5470 * arm-tdep.c (arm_gdbarch_init): Update.
5471 * sparc-tdep.c (sparc_pop_frame): Update.
5472 * rs6000-tdep.c (rs6000_pop_frame): Update.
5473 * remote.c (init_remote_state): Update.
5474 (remote_prepare_to_store): Update.
5475 * remote-vx.c (vx_prepare_to_store): Update.
5476 * remote-sds.c (sds_fetch_registers): Update.
5477 (sds_prepare_to_store): Update.
5478 * remote-array.c: Update.
5479 * regcache.c (init_legacy_regcache_descr): Update.
5480 (init_regcache_descr): Update.
5481 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5482 (mips_o64_extract_return_value): Update.
5483 * irix5-nat.c (fetch_core_registers): Update.
5484 * irix4-nat.c (fetch_core_registers): Update.
5485 * i386-tdep.h: Update.
5486 * hppa-tdep.c (pa_do_registers_info): Update.
5487 (pa_do_strcat_registers_info): Update.
5488 * cris-tdep.c (cris_register_bytes_ok): Update.
5489 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5490 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5491 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5492 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5493 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5494 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5495 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5496 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5497 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5498 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5499 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5500 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5501 (REGISTER_BYTES_OK): Update.
5502 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5503 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5504
ee2842e2
ILT
55052003-05-16 Ian Lance Taylor <[email protected]>
5506
5507 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5508 (vax_print_insn, print_insn_arg): Remove static functions.
5509 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5510 print_insn_vax from opcodes library.
5511 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5512
973177d3
AC
55132003-05-15 Andrew Cagney <[email protected]>
5514
aaab4dba
AC
5515 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5516 * target.h (memory_breakpoint_from_pc): Delete declaration.
5517 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5518 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5519 * monitor.c (monitor_insert_breakpoint): Use
5520 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5521 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5522 * gdbarch.h, gdbarch.c: Re-generate.
5523 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5524 (sparc_gdbarch_init): Set breakpoint_from_pc to
5525 sparc_breakpoint_from_pc.
5526 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5527 (BREAKPOINT_FROM_PC): Define.
5528 (sparc_breakpoint_from_pc): Declare.
5529 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5530 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5531 (BREAKPOINT_FROM_PC): Define.
5532 (BREAKPOINT): Delete macro.
5533 * target.h: Update comment.
5534 * s390-tdep.c (s390_gdbarch_init): Update comments.
5535 * remote.c: Update comments.
5536 * remote-mips.c: Update comments.
5537 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5538 * mem-break.c: Update comment.
5539 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5540 (ia64_memory_insert_breakpoint): Update.
5541 * config/sparc/tm-sparc.h: Update comment.
5542 * config/pa/tm-hppa64.h: Update comment.
5543 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5544 (rs6000_breakpoint_from_pc): Update.
5545 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5546 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5547 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5548 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5549 (mips_breakpoint_from_pc): Update.
5550 (mips_dump_tdep): Update.
5551
e06963ff
AC
5552 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5553 * minsyms.c (lookup_minimal_symbol): Inline
5554 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5555
973177d3
AC
5556 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5557 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5558 * p-lang.c (pascal_printstr): Ditto.
5559 * objc-lang.c (objc_printstr): Ditto.
5560 * m2-lang.c (m2_printstr): Ditto.
5561 * jv-valprint.c (java_print_value_fields): Ditto.
5562 * f-lang.c (f_printstr): Ditto.
5563 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5564 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5565 for repeat_count_threshold.
5566 * Makefile.in (cp-valprint.o): Update dependencies.
5567
5ea2bd7f 55682003-05-15 Jeff Johnston <[email protected]>
8ffd9b1b 5569
5ea2bd7f
JJ
5570 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5571 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5572 they start with mov r2,r12. Support skipping over indirect stores
5573 of the input registers. Upon hitting a non-nop branch instruction
5574 or predicated instruction, bail out by setting lim_pc to the current
5575 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5576 beyond our calculated value and we have trust_limit set,
5577 use the lim_pc value.
5578
cc8c88f3
AC
55792003-05-15 Andrew Cagney <[email protected]>
5580
5581 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5582 generic_find_dummy_frame.
5583 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5584 (deprecated_generic_find_dummy_frame): Update.
5585 (deprecated_read_register_dummy): Update.
5586 * frame.c (deprecated_generic_get_saved_register): Update.
5587
909cd28e
TR
55882003-05-15 Theodore A. Roth <[email protected]>
5589
5590 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5591 (avr_gdbarch_init): Set breakpoint_from_pc method.
5592
b923b08d
AC
55932003-05-15 Andrew Cagney <[email protected]>
5594
5595 * regcache.c (build_regcache): Set deprecated_register_valid
5596 directly.
5597 (deprecated_grub_regcache_for_register_valid): Delete function.
5598 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5599 declaration.
5600
ae2f03ac 56012003-05-15 David Carlton <[email protected]>
8ffd9b1b
AJ
5602
5603 Committed by Elena Zannoni <[email protected]>
fbe586ae
RH
5604 * symtab.c (lookup_symbol_aux): Delete calls to
5605 lookup_symbol_aux_minsyms.
5606 (lookup_symbol_aux_minsyms): Comment out function and
5607 prototype. Delete lookup by mangled name.
ae2f03ac 5608
18ec9831
KB
56092003-05-14 Kevin Buettner <[email protected]>
5610
5611 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5612 correctly indicate an empty stack and ``stack_allocated'' to the
5613 indicate the number of elements initially allocated.
5614 (dwarf_expr_grow_stack): Simplify method for computing new
5615 stack size. Don't loop infinitely if ``stack_len'' is zero.
5616 (execute_stack_op): Move ``ctx->in_reg'' initialization
5617 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5618 be used in conjuction with DW_OP_piece. Revise error message
5619 accordingly.
5620
de18ac1f
TR
56212003-05-14 Theodore A. Roth <[email protected]>
5622
5623 * MAINTAINERS: Update my email address.
5624 * avr-tdep.c: Ditto.
5625
176620f1
EZ
56262003-05-14 Elena Zannoni <[email protected]>
5627
5628 * symtab.h (enum domain_enum): Rename from namespace_enum.
5629 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5630 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5631 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5632 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5633 TYPES_NAMESPACE, METHODS_NAMESPACE.
5634 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5635 (struct symbol, struct partial_symbol): Rename field
5636 'namespace_enum namespace' to 'domain_enum domain'.
5637 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5638 Delete old define kludge for namespace.
5639
5640 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5641 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5642 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5643 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5644 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5645 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5646 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5647 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5648 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5649 occurrences of the above.
5650
b7f31508
ILT
56512003-05-14 Ian Lance Taylor <[email protected]>
5652
5653 * Makefile.in (install-only): Use $(SHELL) when running
5654 mkinstalldirs.
5655
2fdbdd39
ILT
56562003-05-13 Ian Lance Taylor <[email protected]>
5657
a208d82c
ILT
5658 * MAINTAINERS (write after approval): Add myself.
5659
2fdbdd39
ILT
5660 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5661 second and third arguments.
5662 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5663 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5664
fbd9dcd3
AC
56652003-05-13 Andrew Cagney <[email protected]>
5666
5667 * defs.h (store_address): Delete declaration.
5668 findvar.c (store_address): Delete function.
5669 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5670 store_unsigned_integer.
5671 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5672 * v850-tdep.c (v850_push_arguments): Ditto.
5673 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5674 * sh-tdep.c (sh64_get_saved_register): Ditto.
5675 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5676 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5677 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5678 (mips_get_saved_register): Ditto.
5679 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5680 (find_func_descr, ia64_push_arguments): Ditto.
5681 * i386-tdep.c (i386_push_arguments): Ditto.
5682 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5683 * frv-tdep.c (frv_push_arguments): Ditto.
5684 * frame.c (legacy_saved_regs_prev_register): Ditto.
5685 (deprecated_generic_get_saved_register): Ditto.
5686 * findvar.c (unsigned_address_to_pointer): Ditto.
5687 * dwarf2read.c (dwarf2_const_value): Ditto.
5688 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5689 * alpha-tdep.c (alpha_push_arguments): Ditto.
5690
6760f9e6
JB
56912003-05-12 J. Brobecker <[email protected]>
5692
5693 * NEWS: Mention that the hppa-hpux port has been partially
5694 multiarched (32bit ABIT only, so far).
5695
30e221b4
AC
56962003-05-11 Andrew Cagney <[email protected]>
5697
5698 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5699 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5700 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5701 sim/testsuite/sim/arm/misaligned2.ms, and
5702 sim/testsuite/sim/arm/misaligned3.ms.
5703 * disasm.h (struct ui_file): Add opaque struct declaration.
5704 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5705 * frame.h (struct ui_file): Ditto.
5706
dea7f9ba
MK
57072003-05-11 Mark Kettenis <[email protected]>
5708
5709 * value.h: Pretty print.
5710
01986c48
MK
57112003-05-10 Mark Kettenis <[email protected]>
5712
5713 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5714
123a958e
AC
57152003-05-08 Andrew Cagney <[email protected]>
5716
5717 * regcache.h (max_register_size): Delete declaration.
5718 * regcache.c (max_register_size): Delete function.
5719 (struct regcache_descr): Delete field "max_register_size".
5720 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5721 registers fit in MAX_REGISTER_SIZE.
5722 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5723 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5724 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5725 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5726 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5727 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5728 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5729 * dve3900-rom.c, hppa-tdep.c: Ditto.
5730
eb294659
DC
57312003-05-08 David Carlton <[email protected]>
5732
5733 * valops.c (push_word): Fix typo.
5734
d9d9c31f
AC
57352003-05-08 Andrew Cagney <[email protected]>
5736
5737 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5738 * gdbarch.h: Re-generate.
5739 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5740 (legacy_max_register_raw_size): Delete declaration.
5741 * regcache.c (legacy_max_register_raw_size): Delete function.
5742 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5743 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5744 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5745 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5746 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5747 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5748 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5749 * findvar.c, dwarf2cfi.c: Ditto.
5750
22540ece
AC
57512003-05-08 Andrew Cagney <[email protected]>
5752
5753 * mips-tdep.c (read_signed_register): New function, moved to here
5754 from "regcache.c".
5755 (read_signed_register_pid): Ditto.
5756 * regcache.c (read_signed_register_pid): Delete function, moved to
5757 "mips-tdep.c".
5758 (read_signed_register): Ditto.
5759 * regcache.h (read_signed_register): Delete declaration.
5760 (read_signed_register_pid): Delete declaration.
5761
0c92afe8
AC
57622003-05-08 Andrew Cagney <[email protected]>
5763
5764 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5765 * gdbarch.h: Re-generate.
5766 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5767 (legacy_max_register_virtual_size): Delete declaration.
5768 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5769 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5770 * tracepoint.c (memrange_sortmerge): Ditto.
5771 * sparc-tdep.c (sparc_print_registers): Ditto.
5772 * regcache.c (legacy_max_register_virtual_size): Delete function.
5773
6037b830
JB
57742002-05-08 J. Brobecker <[email protected]>
5775
5776 * fork-child.c (escape_bang_in_quoted_argument): New function.
5777 (fork_inferior): Escape '!' characters in quoted arguments
5778 only when needed.
5779
5d62c8b1
JB
57802003-05-08 J. Brobecker <[email protected]>
5781
5782 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5783 the language of the CU is not currently supported by GDB.
5784
20a0e81d
JB
57852003-05-08 J. Brobecker <[email protected]>
5786
5787 * defs.h (language): Add language_minimal enum value.
5788 * c-lang.c (minimal_language_defn): New language definition.
5789 (_initialize_c_language): Add the new minimal language to the list
5790 of languages known to GDB.
5791
710ee10a
KB
57922003-05-08 Kevin Buettner <[email protected]>
5793
5794 * frame.c (get_frame_type): Don't attempt to lazily initialize
5795 frame's unwinder for legacy frames.
5796
1750fa04
AC
57972003-05-07 Andrew Cagney <[email protected]>
5798
5799 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5800 and "regcache" parameters.
5801 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5802
ddf9f258 58032003-05-07 Jeff Johnston <[email protected]>
8ffd9b1b
AJ
5804
5805 * dwarf2read.c (dwarf_decode_lines): Only use output of
5806 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5807 the current address.
5808
87767c29
AC
58092003-05-07 Andrew Cagney <[email protected]>
5810
5811 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5812 code.
5813
5e7b2f39
JB
58142003-05-07 Jim Blandy <[email protected]>
5815
5816 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5817 'maint info symtabs' and 'maint info psymtabs'.
5818 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5819 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5820 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5821 Declarations updated.
5822 * maint.c (maintenance_list_command): Delete.
5823 (_initialize_maint_cmds): Update calls to add_cmd.
5824 * gdbcmd.h (maintenancelistlist): Delete declaration.
5825 * cli/cli-cmds.c (maintenancelistlist): Delete.
5826 (init_cmd_lists): Don't initialize it.
5827 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5828
f6684c31
AC
58292003-05-07 Andrew Cagney <[email protected]>
5830
5831 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5832 "regcache".
5833 (d10v_print_registers_info): Update.
5834 (d10v_dmap_register, d10v_imap_register): Delete functions.
5835 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5836 and "imap_register".
5837 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5838 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5839 * arch-utils.c (generic_remote_translate_xfer_address): Add
5840 "regcache" and "gdbarch" parameters.
5841 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5842 parameter. Change class to multi-arch.
5843 * gdbarch.h, gdbarch.c: Re-generate.
5844 * remote.c (remote_xfer_memory): Use
5845 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5846
e4846b08
JJ
58472003-05-07 Jeff Johnston <[email protected]>
5848
5849 * infrun.c (prev_pc): Move declaration ahead of proceed().
5850 (proceed): Refresh prev_pc value before resuming.
5851 (stop_stepping): Remove code to refresh prev_pc.
5852
6b71b8ac
KW
58532003-05-06 Kris Warkentin <[email protected]>
5854
5855 * nto-tdep.c: Removed stray comment.
5856
47979a4b
KW
58572003-05-06 Kris Warkentin <[email protected]>
5858
5859 * i386-nto-tdep.c: Fix old K&R function definitions.
5860 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5861 Also change add_show_from_set() call to add_setshow_cmd().
5862 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5863
00905d52
AC
58642003-05-05 Andrew Cagney <[email protected]>
5865
5866 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5867 (fprint_dummy_frames): New function.
5868 (maintenance_print_dummy_frames): New function.
5869 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5870 * frame.c (fprint_frame_id): Make global.
5871 * frame.h (fprint_frame_id): Declare.
5872 * Makefile.in (dummy-frame.o): Update dependencies.
5873
b1e29e33
AC
58742003-05-05 Andrew Cagney <[email protected]>
5875
5876 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5877 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5878 SIZEOF_CALL_DUMMY_WORDS.
5879 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5880 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5881 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5882 CALL_DUMMY_BREAKPOINT_OFFSET.
5883 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5884 CALL_DUMMY_START_OFFSET.
5885 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5886 * gdbarch.h, gdbarch.c: Re-generate.
5887 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5888 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5889 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5890 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5891 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5892 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5893 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5894 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5895 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5896 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5897 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5898 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5899 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5900 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5901 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5902
59032003-05-05 Kris Warkentin <[email protected]>
5904
5905 * configure.tgt: Add i[3456]86-*-nto*.
5906 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5907 * nto-tdep.c: New file. Neutrino target support routines.
5908 * nto-tdep.h: New file. Neutrino target header.
5909 * config/tm-qnxnto.h: New file.
5910 * config/i386/i386nto.mt: New file.
5911 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5912
0ce3d317
AC
59132003-05-04 Andrew Cagney <[email protected]>
5914
5915 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5916 (load_infrun_state): Ditto.
5917 (struct thread_info): Drop "prev_func_name" field.
5918 * thread.c (load_infrun_state): Update.
5919 (save_infrun_state): Update.
5920 * infrun.c (prev_func_name): Delete variable.
5921 (init_wait_for_inferior): Do not clear prev_func_name.
5922 (stop_stepping, keep_going, context_switch): Do not swap
5923 prev_func_name.
5924 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5925 instead of PC_IN_SIGTRAMP.
5926
46654a5b
AC
59272003-05-04 Andrew Cagney <[email protected]>
5928
5929 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5930 REGISTER_BYTE with register_offset_hack.
5931 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5932 that REGISTER_BYTE is consistent with the regcache.
5933 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5934 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5935
14b08c1b
MK
59362003-05-04 Mark Kettenis <[email protected]>
5937
04c8243f
MK
5938 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5939 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5940
14b08c1b
MK
5941 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5942
c7a11e01
JB
59432003-05-03 J. Brobecker <[email protected]>
5944
5945 From Thierry Schneider <[email protected]>
5946 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5947 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5948 (mi-cmd-symbol.o): Add rule.
5949
7043d8dc
AC
59502003-05-03 Andrew Cagney <[email protected]>
5951
5952 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5953 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5954 * gdbarch.h, gdbarch.c: Re-generate.
5955 * d10v-tdep.c (d10v_push_dummy_code): New function.
5956 (d10v_gdbarch_init): Set push_dummy_code.
5957 * infcall.c (legacy_push_dummy_code): New function.
5958 (generic_push_dummy_code): New function.
5959 (push_dummy_code): New function.
5960 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5961 instead of dummy_addr, to push_dummy_call. Move call to
5962 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5963 switch.
5964 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5965
92bf2b80
AC
59662003-05-03 Andrew Cagney <[email protected]>
5967
5968 * disasm.h (print_insn): Declare.
5969 * disasm.c (init_gdb_disassemble_info): New function.
5970 (gdb_disassembly): Call init_gdb_disassemble_info.
5971 (gdb_print_insn): New function.
5972 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5973 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5974 * mcore-tdep.c: Include "disasm.h"
5975 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5976 * d10v-tdep.c: Include "disasm.h".
5977 (display_trace): Call gdb_print_insn, instead of print_insn.
5978 (print_insn): Delete function.
5979 * printcmd.c: Include "disasm.h".
5980 (print_insn): Delete function.
5981 (print_formatted): Call gdb_print_insn, instead of print_insn.
5982 * Makefile.in (printcmd.o): Update dependencies.
5983 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 5984
27d94c49
AC
59852003-05-02 Andrew Cagney <[email protected]>
5986
82de1e5b
AC
5987 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5988 PC_REGNUM, re-indent.
5989 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5990 PC_REGNUM isn't set.
5991
27d94c49
AC
5992 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5993 * gdbarch.h, gdbarch.c: Re-generate.
5994 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5995 register_virtual_size, pc_regnum, or register_bytes.
5996 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5997 (d10v_register_type): Use D10V_PC_REGNUM.
5998 (d10v_print_registers_info, d10v_read_pc): Ditto.
5999 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6000 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6001
a9c0dc7f
DC
60022003-05-02 David Carlton <[email protected]>
6003
6004 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6005 the name with mstrsave.
6006
e33d66ec
EZ
60072003-05-02 Elena Zannoni <[email protected]>
6008
6009 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6010 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6011 (host_charset_name, target_charset_name): New vars for use by
6012 set/show commands.
6013 (host_charset_enum, target_charset_enum): New enums for set/show
6014 commands.
6015 (set_charset_sfunc, set_host_charset_sfunc,
6016 set_target_charset_sfunc): New functions.
6017 (set_host_charset, set_target_charset): Make static.
6018 (list_charsets, set_host_charset_command,
6019 set_target_charset_command): Delete functions.
6020 (show_charset_command): Rewrite as....
6021 (show_charset): Hook this up with the set/show command mechanism.
6022 (_initialize_charset): Change names of charsets to match the
6023 set/show enums. Use host_charset_name and target_charset_name.
6024 Use set/show mechanism for charset, host-charset, target-charset
6025 commands. Do not make 'show host-charset' and 'show
6026 target-charset' be aliases of 'show charset'.
6027
6028 * charset.h (set_host_charset, set_target_charset): Don't export,
6029 they are not used outside the file.
6030
2b6fd0d8
AC
60312003-05-01 Andrew Cagney <[email protected]>
6032
6033 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6034 (gdb_disassembly): Make "di" non static, always initialize and
6035 cleanup. Always use dis_asm_read_memory.
6036 (gdb_dis_asm_read_memory): Delete function.
6037
6ae2f580
AC
60382003-05-01 Andrew Cagney <[email protected]>
6039
6040 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6041 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6042
810ecf9f
AC
60432003-04-30 Andrew Cagney <[email protected]>
6044
6045 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6046 "tm_print_insn_info".
6047 (TARGET_PRINT_INSN_INFO): Delete macro.
6048 (dis_asm_read_memory): Delete function declaration.
6049 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6050 (tm_print_insn_info): Delete variable definition.
6051 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6052 * gdbarch.h, gdbarch.c: Re-generate.
6053 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6054 "deprecated_tm_print_insn_info".
6055 * mcore-tdep.c (mcore_dump_insn): Ditto.
6056 * mips-tdep.c (mips_gdbarch_init): Ditto.
6057 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6058 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6059 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6060 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6061 instead of TARGET_PRINT_INSN_INFO, add comment.
6062 * s390-tdep.c (s390_get_frame_info): Instead of
6063 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6064 (s390_check_function_end, s390_is_sigreturn): Ditto.
6065 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6066 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6067 * disasm.c: Include "gdbcore.h".
6068 (_initialize_disasm): New function, initialize
6069 "deprecated_tm_print_insn_info".
6070 (deprecated_tm_print_insn_info): New variable.
6071 (dis_asm_read_memory): Moved from "corefile.c", made static.
6072 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6073 * Makefile.in (disasm.o): Update dependencies.
6074
07020390
AC
60752003-04-30 Andrew Cagney <[email protected]>
6076
6077 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6078
a9fa03de
AF
60792003-04-29 Adam Fedor <[email protected]>
6080
6081 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6082 * infcall.c (find_function_addr): Make non-static.
6083 * infcall.h (find_function_addr): Declare.
6084 * Makefile.in (eval.o): Update dependencies.
6085
1bae87b9
AF
60862003-04-28 Adam Fedor <[email protected]>
6087
6088 * symtab.c (symbol_find_demangled_name): Check for and demangle
6089 ObjC symbols.
6090 (symbol_init_demangled_name): Init for language_objc as well.
6091
0ba6dca9
AC
60922003-04-28 Andrew Cagney <[email protected]>
6093
6094 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6095 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6096 * gdbarch.h, gdbarch.c: Re-generate.
6097 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6098 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6099 * inferior.h (deprecated_read_fp): Rename read_fp.
6100 (generic_target_read_fp): Delete declaration.
6101 * regcache.c (generic_target_read_fp): Delete function.
6102 (deprecated_read_fp): Replace read_fp, use
6103 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6104 * d10v-tdep.c (d10v_read_fp): Delete function.
6105 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6106
6107 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6108 deprecated_target_read_fp to generic_target_read_fp.
6109 * sh-tdep.c (sh_gdbarch_init): Ditto.
6110 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6111 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6112 * frv-tdep.c (frv_gdbarch_init): Ditto.
6113
6114 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6115 deprecated_fp_regnum.
6116 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6117 * vax-tdep.c (vax_gdbarch_init): Ditto.
6118 * v850-tdep.c (v850_gdbarch_init): Ditto.
6119 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6120 * sh-tdep.c (sh_gdbarch_init): Ditto.
6121 * s390-tdep.c (s390_gdbarch_init): Ditto.
6122 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6123 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6124 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6125 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6126 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6127 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6128 * i386-tdep.c (i386_gdbarch_init): Ditto.
6129 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6130 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6131 * frv-tdep.c (frv_gdbarch_init): Ditto.
6132 * cris-tdep.c (cris_gdbarch_init): Ditto.
6133 * avr-tdep.c (avr_gdbarch_init): Ditto.
6134 * arm-tdep.c (arm_gdbarch_init): Ditto.
6135 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6136
6137 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6138 * v850-tdep.c (v850_gdbarch_init): Ditto.
6139 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6140 * sh-tdep.c (sh_gdbarch_init): Ditto.
6141 * s390-tdep.c (s390_gdbarch_init): Ditto.
6142 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6143 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6144 * mips-tdep.c (mips_gdbarch_init): Ditto.
6145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6146 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6147 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6148 * frv-tdep.c (frv_gdbarch_init): Ditto.
6149 * avr-tdep.c (avr_gdbarch_init): Ditto.
6150 * arm-tdep.c (arm_gdbarch_init): Ditto.
6151
6152 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6153 DEPRECATED_FP_REGNUM.
6154 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6155 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6156 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6157 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6158 (sparc32_register_virtual_type): Ditto.
6159 * sh-tdep.c (sh64_frame_chain): Ditto.
6160 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6161 (sh_nofp_frame_init_saved_regs): Ditto.
6162 (sh64_nofp_frame_init_saved_regs): Ditto.
6163 (sh_fp_frame_init_saved_regs): Ditto.
6164 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6165 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6166 * procfs.c (procfs_fetch_registers): Ditto.
6167 (procfs_store_registers): Ditto.
6168 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6169 (store_inferior_registers, fetch_core_registers): Ditto.
6170 (fetch_kcore_registers, clear_regs): Ditto.
6171 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6172 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6173 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6174 * nlm/i386.c (do_status): Ditto.
6175 * mipsv4-nat.c (supply_gregset): Ditto.
6176 * mips-tdep.c: Ditto for comments.
6177 * mips-nat.c (fetch_inferior_registers): Ditto.
6178 (store_inferior_registers, fetch_core_registers): Ditto.
6179 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6180 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6181 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6182 (i386_do_pop_frame, i386_register_type): Ditto.
6183 * hppa-tdep.c (hppa_frame_chain): Ditto.
6184 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6185 (hppa_pop_frame, hppa_read_fp): Ditto.
6186 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6187 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6188 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6189 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6190 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6191 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6192 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6193 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6194 * blockframe.c: Ditto for comments.
6195 * arch-utils.h: Ditto for comments.
6196 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6197 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6198 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6199 * alpha-tdep.h: Ditto for comments.
6200 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6201 (alpha_cannot_store_register): Ditto.
6202 (alpha_push_dummy_frame): Ditto.
6203 * alpha-nat.c (supply_gregset): Ditto.
6204
6205 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6206 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6207 * config/sparc/tm-sparc.h: Update comment.
6208
6209 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6210 deprecated_read_fp instead of TARGET_READ_FP.
6211 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6212 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6213 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6214 deprecated_read_fp instead of read_fp.
6215 * s390-tdep.c (s390_push_arguments): Ditto.
6216 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6217 * frame.h: Ditto in comments.
6218 * frame.c (legacy_get_prev_frame): Ditto.
6219 * dummy-frame.c (dummy_frame_this_id): Ditto.
6220 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6221
d7a27068
AC
62222003-04-28 Andrew Cagney <[email protected]>
6223
6224 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6225 * gdbarch.h, gdbarch.c: Re-generate.
6226 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6227 * vax-tdep.c (_initialize_vax_tdep): Update.
6228 * v850-tdep.c (_initialize_v850_tdep): Update.
6229 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6230 * s390-tdep.c (_initialize_s390_tdep): Update.
6231 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6232 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6233 * mips-tdep.c (_initialize_mips_tdep): Update.
6234 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6235 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6236 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6237 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6238 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6239 * frv-tdep.c (_initialize_frv_tdep): Update.
6240 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6241 (_initialize_cris_tdep): Update.
6242 * arch-utils.c (legacy_print_insn): Update.
6243 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6244
d2630e69
AF
62452003-04-26 Adam Fedor <[email protected]>
6246
6247 * linespec.c (decode_objc): New function to decode ObjC calls
6248 (decode_line_1): Check for ObjC calls (using decode_objc)
6249 * Makefile (linespec.o): Update dependencies.
6250
3086aeae
DJ
62512003-04-26 Daniel Jacobowitz <[email protected]>
6252
6253 * breakpoint.h (struct breakpoint_ops): New.
6254 (struct breakpoint): Add ops member.
6255
6256 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6257 (mention): Use new breakpoint ops member.
6258 (set_raw_breakpoint): Initialize ops field to NULL.
6259 (print_exception_catchpoint, print_one_exception_catchpoint)
6260 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6261 (gnu_v3_exception_catchpoint_ops): New.
6262 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6263
1fbec6c3
AF
62642003-04-25 Adam Fedor <[email protected]>
6265
6266 * Makefile.in (COMMON_OBS): Add objc-lang.o
6267
0ef21242
AC
62682003-04-25 Andrew Cagney <[email protected]>
6269
6270 * d10v-tdep.c (print_insn): Delete function.
6271 (display_trace): Use TARGET_PRINT_INSN.
6272 (_initialize_d10v_tdep): Do not set tm_print_insn.
6273 (d10v_gdbarch_init): Set print_insn.
6274
f75493ed
AC
62752003-04-25 Andrew Cagney <[email protected]>
6276
6277 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6278 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6279 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6280 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6281 (nr_dmap_regs, a0_regnum): ... new functions.
6282 (d10v_print_registers_info): Use a0_regnum, use register_size.
6283 (d10v_register_byte): Delete function.
6284 (d10v_register_raw_size): Delete function.
6285 (d10v_register_type): Use a0_regnum.
6286 (d10v_print_registers_info): Use a0_regnum.
6287 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6288 (d10v_gdbarch_init): Do not set register_byte or
6289 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6290 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6291 extract_address.
6292 (trace_command): Use XCALLOC.
6293 (print_insn): Delete reference to tm_print_insn.
6294 (saved_regs_unwinder): Use store_unsigned_integer instead of
6295 store_address.
6296 * frame.h (FRAME_OBSTACK_CALLOC): Define
6297
2202b100
DC
62982003-04-25 David Carlton <[email protected]>
6299
6300 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6301
4e45ca2e
AF
63022003-04-24 Adam Fedor <[email protected]>
6303
6304 * objc-lang.c: Include "valprint.h"
6305 * Makefile.in (objc-lang.o): Update dependencies.
6306
93de3e7f
AF
63072003-04-24 Adam Fedor <[email protected]>
6308
8ffd9b1b 6309 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6310 architecture dependant compilation and mark as unimplemented
6311 (until they get put in the gdbarch vector).
6312
0f20eeea
DC
63132003-04-23 David Carlton <[email protected]>
6314
6315 * cp-support.c (cp_find_first_component): Accept 'operator' in
6316 more locations.
6317
74cfe982
AC
63182003-04-23 Andrew Cagney <[email protected]>
6319
6320 * infcall.c (call_function_by_hand): Eliminate redundant
6321 indentation. Move "saved_async" and "old_cleanups" to where they
6322 are needed.
8ffd9b1b 6323
52557533
AC
63242003-04-23 Andrew Cagney <[email protected]>
6325
6326 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6327 and "buffer". Move the "name" code to where it is needed.
6328
158775de
AC
63292003-04-23 Andrew Cagney <[email protected]>
6330
6331 * infcall.c (call_function_by_hand): Move variables "start_sp",
6332 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6333 code to ON_STACK switch branch.
8ffd9b1b 6334
ebc7896c
AC
63352003-04-23 Andrew Cagney <[email protected]>
6336
6337 * infcall.c (call_function_by_hand): Make declaration of "i",
6338 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6339 lint.
6340
d727590f
AC
63412003-04-23 Andrew Cagney <[email protected]>
6342
6343 * infcall.c (call_function_by_hand): Delete variable
6344 "n_method_args". Localize "param_type"'s declaration to the loop
6345 that it is used. Reinstate code assigning to said variable -
6346 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6347 Rationalize code using "param_type".
6348
d585e13a
AC
63492003-04-22 Andrew Cagney <[email protected]>
6350
6351 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6352 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6353 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6354 to DEPRECATED_PUSH_RETURN_ADDRESS.
6355
051caad9
KB
63562003-04-22 Kevin Buettner <[email protected]>
6357
6358 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6359 on the DWARF2 register number prior to fetching a register.
6360
77296879
JB
63612003-04-22 J. Brobecker <[email protected]>
6362
6363 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6364 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6365 this macro was always set to 0.
77296879
JB
6366 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6367 considering the fact that this macro was always set to 0.
6368 * hppa-tdep.h (hppa_store_return_value): Likewise.
6369 (hppa_extract_return_value): Likewise.
6370
4252f1df
JB
63712003-04-22 J. Brobecker <[email protected]>
6372
6373 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6374 the hppa-pro target only.
6375
14604c6b
JB
63762003-04-21 J. Brobecker <[email protected]>
6377
6378 Ongoing multi-arch conversion effort for HP/UX:
6379 * config/pa/tm-hppa.h: Move all macro that are no longer
6380 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6381 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6382
77eb01d1
JB
63832003-04-21 J. Brobecker <[email protected]>
6384
6385 * config/pa/tm-hppa.h: Obsolete a section that was only used
6386 for hppa-pro.
6387
61995b3b
JB
63882003-04-21 J. Brobecker <[email protected]>
6389
6390 Ongoing multi-arch conversion for HP/UX.
6391 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6392 if already defined (allows hppa64 to stay non-multiarched for now).
6393 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6394
4aa79dcc
AC
63952003-04-21 Andrew Cagney <[email protected]>
6396
6397 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6398
0f751ff2
AC
63992003-04-21 Andrew Cagney <[email protected]>
6400
6401 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6402 "i386_num_mmx_regs".
6403
04714b91
AC
64042003-04-21 Andrew Cagney <[email protected]>
6405
6406 * infcall.c: New file.
6407 * infcall.h: New file.
6408 * valarith.c: Include "infcall.h".
6409 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6410 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6411 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6412 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6413 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6414 (SFILES): Add "infcall.c"
6415 (COMMON_OBS): Add "infcall.o".
6416 (infcall.o): Specify dependencies.
6417 * value.h (call_function_by_hand): Delete declaration.
6418 * inferior.h (run_stack_dummy): Delete declaration.
6419 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6420 (run_stack_dummy): Move to "infcall.c", merged into
6421 call_function_by_hand.
6422 * valops.c (call_function_by_hand): Moved to "infcall.c".
6423 (find_function_addr, value_arg_coerce): Ditto.
6424 (unwindonsignal_p, coerce_float_to_double): Ditto.
6425 (_initialize_valops): Move "set/show coerce-float-to-double", and
6426 "set/show unwindonsignal" commands to "infcall.c".
6427 * v850-tdep.c, target.h: Update comments.
6428 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6429 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6430 (sh64_init_extra_frame_info): Update comments.
6431 * mn10300-tdep.c: Update comments.
6432 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6433 * config/sparc/tm-sparc.h: Update comments.
6434 * breakpoint.h: Update comments.
6435 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6436 * arm-tdep.c: Update comment.
6437
f9d3c2a8
MK
64382003-04-19 Mark Kettenis <[email protected]>
6439
c40e1eab
MK
6440 * i386-tdep.c (i386_num_register_names): New variable.
6441 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6442 (MM0_REGNUM): Remove redundant parentheses in define.
6443 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6444 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6445 i386_mxcsr_regnum_p): Remove redundant parentheses.
6446 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6447
94ea66b3
MK
6448 * i386-tdep.c (i386_extract_return_value,
6449 i386_store_return_value): Correct check for availability of
6450 floating-point registers.
6451
54299a1d
MK
6452 * i386-tdep.c (i386_frame_num_args): Remove function.
6453 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6454
c86c27af
MK
6455 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6456 mmx_regnum_to_fp_regnum. Adjust all callers.
6457
f9d3c2a8
MK
6458 * i386-tdep.c (i386_get_longjmp_target): Use
6459 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6460 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6461 extract_address.
6462
94ba74a9
MK
64632003-04-19 Mark Kettenis <[email protected]>
6464
6465 * core-regset.c: Update comments to reflect reality. Re-order
6466 includes.
6467 (fetch_core_registers): Use switch instead of if. Remove
6468 redundant prototype.
6469
4074e13c
JB
64702003-04-18 Jim Blandy <[email protected]>
6471
6472 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6473 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6474
e3ab4aba
RH
64752003-04-17 Richard Henderson <[email protected]>
6476
6477 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6478
627bf7c1
EZ
64792003-04-17 Michael Snyder <[email protected]>
6480 Karen Bennet <[email protected]>
6481
6482 Committed by Elena Zannoni <[email protected]>
6483 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6484
514621a9
EZ
64852003-04-17 Elena Zannoni <[email protected]>
6486
6487 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6488 value if the return type is void.
514621a9 6489
b4acd559
JJ
64902003-04-17 Jeff Johnston <[email protected]>
6491
6492 * thread-db.c: Reindented.
8ffd9b1b 6493
530b167e 64942003-04-17 Jeff Johnston <[email protected]>
8ffd9b1b
AJ
6495
6496 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6497 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6498 as types.
6499
0a48e7e8
MS
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
8ffd9b1b 6523
ab9fe00e
KB
65242003-04-16 Kevin Buettner <[email protected]>
6525
610a3745 6526 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6527 the size of ``long double'' to 16, instead of 8.
6528
e64a344c
MK
65292003-04-16 Mark Kettenis <[email protected]>
6530
6531 * i386-linux-nat.c: Add some whitespace to make things more
6532 readable.
6533 (fetch_register, store_register, fetch_inferior_registers,
6534 store_inferior_registers): Get rid of assignment in if-statement.
6535 (store_register): Fix typo in error message.
6536
25d41031
AC
65372003-04-16 Andrew Cagney <[email protected]>
6538
6539 * utils.c (xmmalloc): Always allocate something, matches
6540 libiberty/xmalloc's semantics.
6541 (xmrealloc, xmcalloc): Ditto.
6542
c50901fd
AC
65432003-04-16 Andrew Cagney <[email protected]>
6544
6545 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6546 update comments.
6547 (get_frame_type): Initialize unwind and type when needed.
6548 (get_frame_id, frame_register_unwind): Ditto.
6549
f81824a9
AC
65502003-04-16 Andrew Cagney <[email protected]>
6551
6552 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6553 obsolete.
6554 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6555 * sparcl-stub.c: Obsolete file.
6556 * config/sparc/tm-sparclet.h: Obsolete file.
6557 * sparclet-stub.c: Obsolete file.
6558 * sparclet-rom.c: Obsolete file.
6559 * sparcl-tdep.c: Obsolete file.
6560 * config/sparc/tm-sparclite.h: Obsolete file.
6561 * config/sparc/sparclite.mt: Obsolete file.
6562 * config/sparc/sparclet.mt: Obsolete file.
6563 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6564 sparc86x-*-* obsolete.
6565
9219021c
DC
65662003-04-15 David Carlton <[email protected]>
6567
6568 * Makefile.in (SFILES): Add cp-namespace.c.
6569 (COMMON_OBS): Add cp-namespace.o.
6570 (block.o): Depend on gdb_obstack_h and cp_support_h.
6571 (buildsym.o): Depend on cp_support_h.
6572 (cp-namespace.o): New.
6573 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6574 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6575 (dwarf2read.o): Depend on cp_support_h.
6576 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6577 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6578 processing_current_namespace.
6579 (read_namespace): Update processing_current_namespace; check for
6580 anonymous namespaces.
6581 (dwarf2_name): New function.
6582 (dwarf2_extension): Ditto.
6583 * cp-support.h: Update copyright, contributors.
6584 Add inclusion guards.
6585 Add opaque declaration for structs obstack, block, symbol.
6586 (struct using_direct): New struct.
6587 Add declarations for cp_find_first_component,
6588 cp_entire_prefix_len, processing_has_namespace_info,
6589 processing_current_namespace, cp_is_anonymous,
6590 cp_add_using_directive, cp_initialize_namespace,
6591 cp_finalize_namespace, cp_set_block_scope,
6592 cp_scan_for_anonymous_namespaces.
6593 * cp-namespace.c: New file.
6594 * cp-support.c: Update copyright.
6595 Include ctype.h, gdb_assert.h, gdbcmd.h.
6596 New variable maint_cplus_cmd_list.
6597 (cp_find_first_component): New function.
6598 (cp_entire_prefix_len, maint_cplus_command)
6599 (first_component_command, _initialize_cp_support): Ditto.
6600 * buildsym.c: Include cp-support.h.
6601 New variable using_list.
6602 (add_symbol_to_list): Check for anonymous namespaces.
6603 (finish_block): Set block's scope.
6604 (start_symtab): Initialize C++ namespace support.
6605 (end_symtab): Finalize C++ namespace support.
6606 * block.h: Add opaque declarations for structs
6607 block_namespace_info, using_direct, and obstack.
6608 Add declarations for block_set_scope and block_set_using.
6609 (struct block): Add 'language_specific' member.
6610 (BLOCK_NAMESPACE): New macro.
6611 * block.c: Include gdb_obstack.h and cp-support.h.
6612 (struct block_namespace_info): New struct.
6613 (block_set_scope): New function.
6614 (block_set_using, block_initialize_namespace): Ditto.
6615
d5a921c9
KB
66162003-04-14 Kevin Buettner <[email protected]>
6617
6618 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6619 (locate_base): Return early if there aren't any link map offsets.
6620 (svr4_solib_create_inferior_hook): Warn if shared library support
6621 is unavailable.
6622
d2a52b27
DC
66232003-04-14 David Carlton <[email protected]>
6624
6625 * symtab.c (symbol_set_names): Add prefix when storing Java names
6626 in hash table. Fix for PR java/1039.
6627
980cae7a
DC
66282003-04-14 David Carlton <[email protected]>
6629
6630 * symtab.c (symbol_set_names): Rename 'name' arg to
6631 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6632 * symtab.h: Change 'name' argument in declaration of
6633 symbol_set_names to 'linkage_name'.
6634 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6635
e227b13c
AC
66362003-04-14 Andrew Cagney <[email protected]>
6637
6638 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6639 return the fully sign-extended register value.
6640 (get_frame_pointer): Ditto.
6641 (mips_pop_frame): Initialize "proc_desc" after checking for a
6642 dummy frame.
6643
36712a20
AC
66442003-04-14 Andrew Cagney <[email protected]>
6645
6646 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6647 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6648 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6649 (mips_push_register): Delete function.
6650 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6651 PUSH_FP_REGNUM.
6652
44ea7b70
JB
66532003-04-14 Jim Blandy <[email protected]>
6654
6655 * symmisc.c: #include "gdb_regex.h".
6656 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6657 functions.
6658 * maint.c (maintenance_list_command): New function.
6659 (_initialize_maint_cmds): Register the above as commands.
6660 * symtab.h (maintenance_list_symtabs,
6661 maintenance_list_psymtabs): New declarations.
6662 * cli/cli-cmds.c (maintenancelistlist): New variable.
6663 (init_cmd_lists): Initialize it.
6664 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6665 * gdbcmd.h (maintenancelistlist): New declaration.
6666 * Makefile.in (symmisc.o): Update dependencies.
6667
2d0c7962
EZ
66682003-04-14 Elena Zannoni <[email protected]>
6669
6670 * s390-nat.c: Include asm/types.h for addr_t.
6671
1947a811
CV
66722003-04-14 Corinna Vinschen <[email protected]>
6673
6674 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6675 actually incoming type.
6676
adb616d7
AC
66772003-04-13 Andrew Cagney <[email protected]>
6678
6679 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6680 get_next_frame and get_frame_saved_regs.
6681
9b5e151c
AC
66822003-04-13 Andrew Cagney <[email protected]>
6683
6684 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6685 of gdbarch_num_regs.
6686
ef6e7e13
AC
66872003-04-13 Andrew Cagney <[email protected]>
6688
6689 * frame.h: Mention what replaced what in "struct frame_info".
6690 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6691 deprecated_update_frame_base_hack and
6692 deprecated_update_frame_pc_hack.
6693 * hppa-tdep.c: Ditto.
6694
61fbb938
DJ
66952003-04-13 Daniel Jacobowitz <[email protected]>
6696
6697 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6698 to read_reg and update its comment. Remove regnum member.
6699 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6700 Don't call read_reg when setting in_reg. Call read_reg to get
6701 the frame base if it's in a register. Return the register number
6702 on the stack instead of in the context. Remove extra arguments
6703 to read_reg.
6704 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6705 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6706 the register number on the expression stack.
6707 (needs_frame_read_reg): Remove extra arguments.
6708
0d53c4c4
DJ
67092003-04-13 Daniel Jacobowitz <[email protected]>
6710
6711 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6712 made non-static.
6713 (execute_stack_op): All callers updated.
6714 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6715 * dwarf2loc.c (find_location_expression): New function.
6716 (dwarf_expr_frame_base): Call it.
6717 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6718 (dwarf2_tracepoint_var_ref): New function, broken out from
6719 locexpr_tracepoint_var_ref.
6720 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6721 Make static.
6722 (loclist_read_variable, loclist_read_needs_frame): New functions.
6723 (loclist_describe_location, loclist_tracepoint_var_ref): New
6724 functions.
6725 (dwarf2_loclist_funcs): New struct location_funcs.
6726 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6727 (struct dwarf2_locexpr_baton): Add comments.
6728 (dwarf2_loclist_funcs): New extern.
6729 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6730 base_address and base_known.
6731 (dwarf_loc_buffer): New variable.
6732 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6733 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6734 (dwarf2_has_info): Initialize dwarf_loc_offset.
6735 (dwarf2_build_psymtabs): Read in .debug_loc.
6736 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6737 DWARF_LOC_SIZE.
6738 (psymtab_to_symtab_1): Likewise. Move base address calculation
6739 here, from...
6740 (dwarf2_get_pc_bounds): ... here. Use the base address from
6741 cu_header.
6742 (dwarf2_symbol_mark_computed): Handle location lists.
6743
6aca59a3
DJ
67442003-04-13 Daniel Jacobowitz <[email protected]>
6745
6746 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6747 if the linkage name demangled successfully.
6748
aca1fcd0
MK
67492003-04-13 Mark Kettenis <[email protected]>
6750
97095916
MK
6751 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6752 disassmbly_flavour): Removed.
6753
aca1fcd0
MK
6754 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6755
562a961f
MK
67562003-04-13 Mark Kettenis <[email protected]>
6757
6758 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6759
bd013d54
AC
67602003-04-12 Andrew Cagney <[email protected]>
6761
6762 * frame.h (struct frame_info): Move definition from here ...
6763 * frame.c (struct frame_info): ... to here.
6764
167ef8b1
AC
67652003-04-12 Andrew Cagney <[email protected]>
6766
6767 * gdbthread.h (save_infrun_state): Delete parameter
6768 "prev_func_start".
6769 (struct thread_info): Delete field "prev_func_start".
6770 (load_infrun_state): Ditto.
6771 * thread.c (load_infrun_state, save_infrun_state): Update.
6772 * infrun.c (prev_func_start): Delete variable.
6773 (context_switch, init_wait_for_inferior): Update.
6774 (stop_stepping, keep_going): Update.
6775
da3331ec
AC
67762003-04-12 Andrew Cagney <[email protected]>
6777
6778 * gdbarch.sh: Add missing opaque declarations.
6779 * gdbarch.h: Regnerate.
6780 * symtab.h: Add missing opaque declarations.
6781 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6782 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6783 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6784 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6785 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6786 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6787 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6788 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6789 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6790 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6791 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6792 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6793 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6794
18adea3f
AC
67952003-04-11 Andrew Cagney <[email protected]>
6796
6797 * frame.c (get_frame_id): Return this frame's "id".
6798 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6799 function start.
6800 (legacy_saved_regs_this_id): Replace function body with
6801 internal-error.
6802 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6803 FRAME_OBSTACK_ZALLOC.
6804 (create_new_frame): Mark the frame ID as valid.
6805
2252e863
AO
68062003-04-11 Alexandre Oliva <[email protected]>
6807
6808 * Makefile.in (libbfd_h): Added missing setting.
6809 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6810 according to the selected ABI.
6811
a8245ab8
JJ
68122003-04-11 Jeff Johnston <[email protected]>
6813
6814 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6815
6913c89a
AC
68162003-04-11 Andrew Cagney <[email protected]>
6817
6818 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6819 SAVED_PC_AFTER_CALL.
6820 * gdbarch.h, gdbarch.c: Regenerate.
6821 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6822 * x86-64-tdep.c (x86_64_init_abi): Update.
6823 * vax-tdep.c (vax_gdbarch_init): Update.
6824 * v850-tdep.c (v850_gdbarch_init): Update.
6825 * sparc-tdep.c (sparc_gdbarch_init): Update.
6826 * sh-tdep.c (sh_gdbarch_init): Update.
6827 * s390-tdep.c (s390_gdbarch_init): Update.
6828 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6829 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6830 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6831 * mips-tdep.c (mips_gdbarch_init): Update.
6832 * mcore-tdep.c (mcore_gdbarch_init): Update.
6833 * m68k-tdep.c (m68k_gdbarch_init): Update.
6834 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6835 * ia64-tdep.c (ia64_gdbarch_init): Update.
6836 (ia64_saved_pc_after_call): Update declaration.
6837 * i386ly-tdep.c (i386lynx_init_abi): Update.
6838 * i386-tdep.c (i386_gdbarch_init): Update.
6839 * hppa-tdep.c (hppa_gdbarch_init): Update.
6840 * h8300-tdep.c (h8300_gdbarch_init): Update.
6841 * frv-tdep.c (frv_gdbarch_init): Update.
6842 * cris-tdep.c (cris_gdbarch_init): Update.
6843 * avr-tdep.c (avr_gdbarch_init): Update.
6844 * arm-tdep.c (arm_gdbarch_init): Update.
6845 * alpha-tdep.c (alpha_gdbarch_init): Update.
6846 * ns32knbsd-nat.c (frame_num_args): Update.
6847 * ns32k-tdep.c (umax_frame_num_args): Update.
6848 * mips-tdep.c (mips_init_frame_pc_first): Update.
6849 * infrun.c (step_over_function): Update.
6850 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6851 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6852 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6853 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6854 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6855 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6856 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6857 * arch-utils.c (init_frame_pc_default): Update.
6858 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6859 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6860 declaration.
8ffd9b1b 6861
38edeab8
AC
68622003-04-11 Andrew Cagney <[email protected]>
6863
6864 * i387-tdep.c: Update copyright.
6865 (i387_to_double): Delete function.
6866 (double_to_i387): Delete function.
6867
81f8a206
AC
68682003-04-10 Andrew Cagney <[email protected]>
6869
6870 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6871 frame's function's address. Simplify.
6872 (d10v_frame_unwind_cache): Check that the frame's function is
6873 non-zero.
6874
6e691f7a
JB
68752003-04-10 Jim Blandy <[email protected]>
6876
6877 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6878 call to set_gdbarch_deprecated_push_arguments.
6879
7f78e237
AC
68802003-04-10 Andrew Cagney <[email protected]>
6881
6882 * frame.c (fprint_frame_id): New function.
6883 (fprint_frame_type, fprint_frame): New function.
6884 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6885 (create_sentinel_frame, get_frame_id): Ditto.
6886 (frame_id_p, frame_id_eq): Ditto.
6887 (frame_id_inner, create_new_frame): Ditto.
6888 (legacy_get_prev_frame, get_prev_frame): Ditto.
6889 (deprecated_update_frame_pc_hack): Ditto.
6890 (frame_register_unwind): Ditto.
6891 (deprecated_update_frame_base_hack): Ditto.
6892
f870b49b
CV
68932003-04-10 Corinna Vinschen <[email protected]>
6894
6895 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6896 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6897 frame_chain function.
6898 * Makefile.in: Add dependencies due to above change.
6899
7c86889b
CV
69002003-04-10 Corinna Vinschen <[email protected]>
6901
6902 * blockframe.c (legacy_frame_chain_valid): Move call to
6903 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6904 inside_entry_file.
6905
d0a55772
AC
69062003-04-09 Andrew Cagney <[email protected]>
6907
6908 * frame.h (struct frame_id): Replace "pc" and "base" with
6909 "stack_addr" and "code_addr". Update comments.
6910 (frame_id_build): Update parameter names and comment.
6911 (struct frame_info): Replace "id_p" and "id" with "this_id".
6912 * dummy-frame.c (dummy_frame_this_id): Update.
6913 * breakpoint.c (print_one_breakpoint): Update.
6914 * frame.c (get_frame_id): Update.
6915 (get_frame_base, frame_id_build): Update.
6916 (create_sentinel_frame, legacy_get_prev_frame): Update.
6917 (deprecated_update_frame_base_hack): Update.
6918 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6919 (frame_id_inner): Ditto.
6920
ac16bf07
AC
69212003-04-09 Andrew Cagney <[email protected]>
6922
6923 * defs.h (gdb_print_host_address): Make "addr" parameter a
6924 pointer constant.
6925 * utils.c (gdb_print_host_address): Update.
6926
366cfc9e
KB
69272003-04-09 Kevin Buettner <[email protected]>
6928
6929 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6930 register number for R0 is 0.
6931
cd983b5c
JB
69322003-04-09 J. Brobecker <[email protected]>
6933
6934 * frame.h (struct gdbarch): Add opaque structure definition
6935 to avoid a compilation warning on LynxOS 4.0.
6936
d1340264
AC
69372003-04-09 Andrew Cagney <[email protected]>
6938
6939 * frame.h (struct frame_info): Delete field "pc". Replace
6940 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6941 structure.
6942 * frame.c (frame_pc_unwind): Update.
6943 (create_sentinel_frame): Do not set "pc".
6944 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6945 (get_frame_pc): Call frame_pc_unwind.
6946 (deprecated_update_frame_pc_hack): Update.
6947 (create_new_frame): Use "pc" not "->pc".
6948
90a6fffb
AC
69492003-04-09 Andrew Cagney <[email protected]>
6950
6951 * frame.c (get_frame_id): Eliminate code updating "frame".
6952 (legacy_get_prev_frame): Ditto.
6953 (get_frame_base): Return id.base directly.
6954 (deprecated_update_frame_base_hack): Update "id.base".
6955 * frame.h (struct frame_info): Delete field "frame".
6956
2fbce691
AC
69572003-04-09 Andrew Cagney <[email protected]>
6958
6959 * NEWS: Mention that the "Sequent family" is obsolete.
6960 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6961 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6962 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6963 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6964 * config/i386/tm-ptx4.h: Obsolete file.
6965 * config/i386/tm-ptx.h: Obsolete file.
6966 * symm-tdep.c: Obsolete file.
6967 * config/i386/symmetry.mt: Obsolete file.
6968 * config/i386/tm-symmetry.h: Obsolete file.
6969 * symm-nat.c: Obsolete file.
6970 * config/i386/nm-symmetry.h: Obsolete file.
6971 * config/i386/xm-symmetry.h: Obsolete file.
6972 * config/i386/symmetry.mh: Obsolete file.
6973 * config/i386/nm-ptx4.h: Obsolete file.
6974 * config/i386/ptx4.mh: Obsolete file.
6975 * config/i386/ptx.mt: Obsolete file.
6976 * config/i386/ptx.mh: Obsolete file.
6977 * config/i386/xm-ptx4.h: Obsolete file.
6978 * config/i386/xm-ptx.h: Obsolete file.
6979
78c43945
AC
69802003-04-09 Andrew Cagney <[email protected]>
6981
6982 Obsolete mips*-*-mach3*.
6983 * NEWS: Mention that mips*-*-mach3* is obsolete.
6984 * m3-nat.c: Obsolete file.
6985 * config/nm-m3.h: Obsolete file.
6986 * config/mips/tm-mipsm3.h: Obsolete file.
6987 * config/mips/mipsm3.mt: Obsolete file.
6988 * config/mips/mipsm3.mh: Obsolete file.
6989 * config/mips/xm-mipsm3.h: Obsolete file.
6990 * mipsm3-nat.c: Obsolete file.
6991 * configure.host: Obsolete mips-dec-mach3*.
6992 * configure.tgt: Obsolete mips*-*-mach3*.
6993
f1908289
AC
69942003-04-09 Andrew Cagney <[email protected]>
6995
6996 * doublest.h: Update copyright.
6997 (deprecated_store_floating, deprecated_extract_floating): Rename
6998 store_floating and extract_floating. Update comments.
6999 * doublest.c: Update copyright.
7000 (extract_floating_by_length): Replace extract_floating.
7001 (store_floating_by_length): Replace store_floating.
7002 (deprecated_extract_floating): New function.
7003 (deprecated_store_floating): New function.
7004 (extract_typed_floating): Call extract_floating_by_length.
7005 (store_typed_floating): Call store_floating_by_length.
7006 * x86-64-tdep.c (x86_64_store_return_value): Update.
7007 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7008 (sh64_extract_return_value): Update.
7009 (sh_sh4_register_convert_to_virtual): Update.
7010 (sh_sh64_register_convert_to_virtual): Update.
7011 (sh_sh4_register_convert_to_raw): Update.
7012 (sh_sh64_register_convert_to_raw): Update.
7013 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7014 (rs6000_register_convert_to_raw): Update.
7015 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7016 (ia64_register_convert_to_raw): Update.
7017 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7018 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7019 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7020 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7021 (alpha_register_convert_to_raw): Update.
7022
4443bd83
AC
70232003-04-08 Andrew Cagney <[email protected]>
7024
7025 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7026 * gdbarch.h, gdbarch.c: Re-generate.
7027 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7028 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7029 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7030 conditionally, use frame_pc_unwind as an alternative. Add
7031 comments.
7032 * arch-utils.c (init_frame_pc_default): Only call
7033 SAVED_PC_AFTER_CALL when available.
7034
c0236d92
EZ
70352003-04-08 Elena Zannoni <[email protected]>
7036
fbe586ae 7037 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7038 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7039 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7040 (start_remote): Ditto.
7041 (handle_inferior_event): Ditto.
7042 (save_inferior_status): Ditto.
7043 (restore_inferior_status): Ditto.
7044 * infcmd.c (attach_command): Ditto.
7045 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7046 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7047 * alpha-tdep.c (heuristic_proc_start): Ditto.
7048 * mips-tdep.c (heuristic_proc_start): Ditto.
7049 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7050 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7051 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7052 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7053 * remote-vx.c (vx_create_inferior): Ditto.
7054
70552003-04-08 Elena Zannoni <[email protected]>
7056
7057 * infrun.c (stop_soon_quietly): Make it an enum, to better
7058 override the default behavior of handle_inferior_event.
7059 (clear_proceed_status): Update uses of stop_soon_quietly to
7060 reflect that it is now an enum.
7061 (start_remote): Ditto.
7062 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7063 is set to handle the new GNU/Linux kernel behavior for
7064 attach/sigstop. Update uses of stop_soon_quietly.
7065 * inferior.h (enum stop_kind): New enum.
7066 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7067 Reset normal handle_inferior_event behavior, afterwards.
7068 * fork-child.c (startup_inferior): Update.
7069 * alpha-tdep.c (heuristic_proc_start): Update.
7070 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7071 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7072 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7073 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7074 * remote-vx.c (vx_create_inferior): Update.
7075 * mips-tdep.c (heuristic_proc_start): Update.
7076
1211bce3
EZ
70772003-04-07 Elena Zannoni <[email protected]>
7078
7079 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7080 be freed more than once, causing wild memory corruptions.
1211bce3 7081 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7082 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7083 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7084 with the "core" target.
1211bce3 7085
f0ef6b29
KB
70862003-04-07 Kevin Buettner <[email protected]>
7087
7088 * mips-tdep.c (mips_print_fp_register): New function, created from
7089 do_fp_register_row(). Registers are now (also) printed as hex.
7090 Only one register is printed per row.
7091 (mips_print_register, do_fp_register_row): Print floating point
7092 registers with mips_print_fp_register().
7093
8cf71652
AC
70942003-04-06 Andrew Cagney <[email protected]>
7095
5e488a7b
AC
7096 * valprint.h (inspect_it): Add extern declaration.
7097 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7098 (selectors_info, classes_info): Ditto.
7099 (find_objc_msgcall): Fix indentation.
7100 (objc_printstr): Delete extern declarations.
7101
8cf71652
AC
7102 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7103
e6ba3bc9
AC
71042003-04-06 Andrew Cagney <[email protected]>
7105
7106 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7107 Update comment.
7108 * frame.c (legacy_saved_regs_this_id): Update.
7109 (legacy_get_prev_frame): Update.
7110 * xstormy16-tdep.c: Update comment.
7111 * sparc-tdep.c (sparc_frame_chain): Update comment.
7112 * blockframe.c (legacy_frame_chain_valid): Update.
7113
55e1d7e7
AC
71142003-04-06 Andrew Cagney <[email protected]>
7115
996179ee
AC
7116 * valprint.c (val_print_type_code_int): Delete #ifdef
7117 PRINT_TYPELESS_INTEGER code.
7118
55e1d7e7
AC
7119 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7120 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7121 multi-arch definition.
7122 * gdbarch.h: Re-generate.
7123
43bd9a9e
AC
71242003-04-05 Andrew Cagney <[email protected]>
7125
7126 Eliminate FRAME_FIND_SAVED_REGS.
7127 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7128 Change FSR parameter to a pointer.
7129 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7130 Assume FSR parameter is a pointer.
7131 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7132 Make fsr a pointer.
7133 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7134 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7135 saved_regs a pointer.
7136 (hppa_frame_saved_pc): Ditto.
7137 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7138 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7139 pointer.
7140 (restore_pc_queue): Make fsr a pointer.
7141 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7142 (hppa_frame_chain): Make saved_regs a pointer, call
7143 hppa_frame_init_saved_regs.
7144 * sparc-tdep.c: Include "gdb_assert.h".
7145 (sparc_frame_find_saved_regs): Replace internal_error with
7146 gdb_assert.
7147 * remote-vxsparc.c (vx_read_register): Delete reference to
7148 FRAME_FIND_SAVED_REGS.
7149 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7150 * gdbarch.h: Regenerate.
7151 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7152 (deprecated_get_frame_saved_regs): Delete declaration.
7153 (struct frame_saved_regs): Delete definition.
7154 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7155 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7156 (hppa_frame_find_saved_regs): Delete declaration.
7157 (FRAME_FIND_SAVED_REGS): Delete macro.
7158 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7159 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7160 FRAME_FIND_SAVED_REGS in comment.
7161
be41e9f4
AC
71622003-04-05 Andrew Cagney <[email protected]>
7163
7164 * frame.c (frame_func_unwind, get_frame_func): New functions.
7165 * frame.h (get_frame_func, frame_func_unwind): Declare.
7166 (struct frame_info): Add field "prev_func" for caching the
7167 previous frame's function address.
7168 * arm-tdep.c (arm_frameless_function_invocation): Combine
7169 get_pc_function_start and get_frame_pc into get_frame_func.
7170 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7171 (sh64_nofp_frame_init_saved_regs): Ditto.
7172 * s390-tdep.c (s390_function_start): Ditto.
7173 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7174 (rs6000_frameless_function_invocation): Ditto.
7175 (rs6000_frame_saved_pc): Ditto.
7176 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7177 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7178 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7179 (i386_frame_init_saved_regs): Ditto.
7180 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7181 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7182 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7183 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7184 * blockframe.c (frameless_look_for_prologue): Ditto.
7185
a01dd7cc
AC
71862003-04-05 Andrew Cagney <[email protected]>
7187
7188 * frame.c (legacy_get_prev_frame): Link prev to next at the
7189 function start. Update comments.
7190
5e5592e6
AC
71912003-04-05 Andrew Cagney <[email protected]>
7192
7193 * frame.c (get_frame_id): Update comment.
7194 (legacy_get_prev_frame): Update comment.
7195 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7196 * gdbarch.h: Regenerate.
7197 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7198 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7199
6fba5002
AC
72002003-04-05 Andrew Cagney <[email protected]>
7201
7202 * stack.c (print_frame_info): Use get_frame_pc.
7203
7df05f2b
AC
72042003-04-04 Andrew Cagney <[email protected]>
7205
7206 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7207 the frame's type from the unwinder.
7208 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7209 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7210 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7211 (get_frame_base_address): Use get_frame_type.
7212 (get_frame_locals_address, get_frame_args_address): Ditto.
7213 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7214 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7215 (struct frame_info): Add comment explaining why the frame contains
7216 a "type" field.
7217 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7218 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7219 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7220 NORMAL_FRAME.
7221 * frame-unwind.h: Include "frame.h".
7222 (struct frame_unwind): Add "type" field.
7223 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7224
11889732
AC
72252003-04-04 Andrew Cagney <[email protected]>
7226
7227 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7228 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7229 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7230 get_frame_base.
7231 (d10v_unwind_dummy_id): Use frame_id_build.
7232 * frame.c (find_frame_sal): Use get_frame_pc.
7233 (create_new_frame): Use deprecated_update_frame_pc_hack and
7234 deprecated_update_frame_base_hack.
7235 (create_sentinel_frame): Add comment about ->pc going away.
7236 (get_prev_frame): Add comment about ->pc going away.
7237 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7238 frame_id_build, deprecated_update_frame_pc_hack and
7239 deprecated_update_frame_base_hack.
7240 (select_frame): Use get_frame_pc.
7241 (legacy_saved_regs_this_id): Use frame_id_build.
7242
50c46a0d
EZ
72432003-04-04 Elena Zannoni <[email protected]>
7244
fbe586ae
RH
7245 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7246 signed integer case.
7247 (classify_argument): Handle enumerations and references.
50c46a0d 7248
50bbdbd9
AC
72492003-04-04 Andrew Cagney <[email protected]>
7250
7251 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7252 ID to NULL.
7253
36018d2e
AF
72542003-04-01 Adam Fedor <[email protected]>
7255
7256 * gdb/objc-lang.c (selectors_info): Replace calls to
7257 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7258 SYMBOL_NATURAL_NAME.
7259 (classes_info, find_methods): Likewise.
7260
35cec841
KB
72612003-04-03 Kevin Buettner <[email protected]>
7262
7263 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7264 ``mach'' to the value determined by bfd_default_set_arch_mach().
7265
43136899
BR
72662003-04-02 Bob Rossi <[email protected]>
7267
7268 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7269 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7270 (mi-cmd-file.o): Update dependencies.
7271
040b99fd
KB
72722003-04-01 Kevin Buettner <[email protected]>
7273
7274 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7275 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7276
9a3d7dfd
AF
72772003-04-01 Adam Fedor <[email protected]>
7278
7279 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7280 * language.h (struct language_defn): Add la_demangle.
7281 (language_demangle): Declare.
7282 * language.c (language_demangle): New function.
7283 (unk_lang_demangle): Likewise.
7284 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7285 Add ukn_lang_demangle.
9a3d7dfd 7286 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7287 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7288 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7289 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7290 * jv-lang.c (java_demangle): New function
7291 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7292 * objc-lang.c (objc_demangle): Add options argument
7293 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7294 * maint.c (maintenance_demangle): Replace switch with
7295 call to language_demangle.
7296 * utils.c (fprintf_symbol_filtered): Likewise.
7297
5e074003
AC
72982003-04-01 Andrew Cagney <[email protected]>
7299
7300 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7301 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7302 PRINT_TYPELESS_INTEGER.
7303 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7304 PUSH_RETURN_ADDRESS.
7305
270cb5d6
AC
73062003-04-01 Andrew Cagney <[email protected]>
7307
7308 * Makefile.in (d10v-tdep.o): Update dependencies.
7309 * d10v-tdep.c: Include "frame-base.h".
7310 (d10v_frame_unwind): Make constant.
7311 (d10v_frame_base_address): New function.
7312 (d10v_frame_base): New variable.
7313 (d10v_gdbarch_init): Set frame_base default.
7314 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7315 comment for base.
7316 (d10v_frame_unwind_cache): Set and use "prev_sp".
7317 (d10v_frame_this_id): Use the previous frame's inner most stack
7318 address and this frame's func address for the frame ID. Use
7319 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7320
6bfb3e36
AC
73212003-04-01 Andrew Cagney <[email protected]>
7322
7323 * frame.h (get_frame_locals_address, get_frame_args_address):
7324 Refer to the base address, instead of the address of the first
7325 local or parameter.
8ffd9b1b 7326
da62e633
AC
73272003-04-01 Andrew Cagney <[email protected]>
7328
7329 Add frame debug info addresses:
7330 * frame-base.c: New file.
7331 * frame-base.h: New file.
7332 * frame.h (struct frame_base): Add opaque declaration.
7333 (get_frame_base): Update comment.
7334 (get_frame_base_address): Declare.
7335 (get_frame_locals_address): Declare.
7336 (get_frame_args_address): Declare.
7337 (struct frame_info): Add "base" and "base_cache". Update
7338 comments on the unwinder.
7339 * frame.c: Include "frame-base.h".
7340 (get_frame_locals_address): New function.
7341 (get_frame_base_address): New function.
7342 (get_frame_args_address): New function.
7343 * findvar.c (read_var_value): Use get_frame_locals_address and
7344 get_frame_args_address.
7345 * stack.c (frame_info): Use get_frame_locals_address and
7346 get_frame_args_address.
7347 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7348 moved to "frame-base.c".
7349 * printcmd.c (print_frame_nameless_args): Ditto.
7350 * symtab.h (address_class): Update comments.
7351 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7352 get_frame_base_address.
7353 * dwarf2expr.c (execute_stack_op): Ditto.
7354 * Makefile.in (frame_base_h): Define.
7355 (frame.o): Update dependencies.
7356 (frame-base.o): Add dependencies.
7357 (SFILES): Add frame-base.c.
7358 (COMMON_OBS): Add frame-base.o.
7359
3d30e9c2
AC
73602003-04-01 Andrew Cagney <[email protected]>
7361
7362 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7363 CALL_DUMMY_LENGTH): Ditto.
7364 * gdbarch.c: Re-generate.
7365 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7366 (CALL_DUMMY_LENGTH): Delete macro.
7367 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7368 * arm-tdep.c (arm_gdbarch_init): Ditto.
7369 * avr-tdep.c (avr_gdbarch_init): Ditto.
7370 * cris-tdep.c (cris_gdbarch_init): Ditto.
7371 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7372 * frv-tdep.c (frv_gdbarch_init): Ditto.
7373 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7374 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7375 * i386-tdep.c (i386_gdbarch_init): Ditto.
7376 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7377 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7378 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7379 * mips-tdep.c (mips_gdbarch_init): Ditto.
7380 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7381 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7382 * s390-tdep.c (s390_gdbarch_init): Ditto.
7383 * sh-tdep.c (sh_gdbarch_init): Ditto.
7384 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7385 * v850-tdep.c (v850_gdbarch_init): Ditto.
7386 * vax-tdep.c (vax_gdbarch_init): Ditto.
7387 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7388
ce0c7262
CV
73892003-04-01 Corinna Vinschen <[email protected]>
7390
7391 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7392
73dd234f
AC
73932003-04-01 Andrew Cagney <[email protected]>
7394
7395 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7396 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7397 * gdbarch.h, gdbarch.c: Re-generate.
7398 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7399 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7400 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7401 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7402 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7403 * infcmd.c (run_stack_dummy): Simplify assuming
7404 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7405 * infrun.c (handle_inferior_event): Ditto.
7406 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7407 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7408 * arm-tdep.c (arm_gdbarch_init): Ditto.
7409 * avr-tdep.c (avr_gdbarch_init): Ditto.
7410 * cris-tdep.c (cris_gdbarch_init): Ditto.
7411 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7412 * frv-tdep.c (frv_gdbarch_init): Ditto.
7413 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7414 * i386-tdep.c (i386_gdbarch_init): Ditto.
7415 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7416 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7417 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7418 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7419 * mips-tdep.c (mips_gdbarch_init): Ditto.
7420 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7421 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7422 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7423 * s390-tdep.c (s390_gdbarch_init): Ditto.
7424 * sh-tdep.c (sh_gdbarch_init): Ditto.
7425 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7426 * v850-tdep.c (v850_gdbarch_init): Ditto.
7427 * vax-tdep.c (vax_gdbarch_init): Ditto.
7428 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7429
97606a13
DJ
74302003-04-01 Daniel Jacobowitz <[email protected]>
7431
7432 * symfile.c (symfile_relocate_debug_section): Update call to
7433 bfd_simple_get_relocated_section_contents.
7434
e8ab51f7
AC
74352003-03-31 Andrew Cagney <[email protected]>
7436
7437 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7438 * gdbarch.h, gdbarch.c: Regenerate.
7439 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7440 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7441 available.
7442 * frame.h (generic_fix_call_dummy): Delete declaration.
7443 * dummy-frame.h: Update comment.
7444 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7445 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7446 fix_call_dummy.
7447 * sh-tdep.c (sh_gdbarch_init): Ditto.
7448 * s390-tdep.c (s390_gdbarch_init): Ditto.
7449 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7450 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7451 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7452 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7453 * i386-tdep.c (i386_gdbarch_init): Ditto.
7454 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7455 * frv-tdep.c (frv_gdbarch_init): Ditto.
7456 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7457 * cris-tdep.c (cris_gdbarch_init): Ditto.
7458 * avr-tdep.c (avr_gdbarch_init): Ditto.
7459 * arm-tdep.c (arm_gdbarch_init): Ditto.
7460
018d1b48
JB
74612003-03-31 J. Brobecker <[email protected]>
7462
7463 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7464 (INIT_FRAME_AP): Likewise.
7465 (EXTRA_FRAME_INFO): Likewise.
7466
e9a2674e
AC
74672003-03-31 Andrew Cagney <[email protected]>
7468
7469 * gdbarch.sh: Include "symfile.h".
7470 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7471 * gdbarch.h, gdbarch.c: Re-generate.
7472 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7473 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7474 call_dummy_address, the default is at entry_point_address.
7475 * v850-tdep.c (v850_gdbarch_init): Ditto.
7476 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7477 * sh-tdep.c (sh_gdbarch_init): Ditto.
7478 * s390-tdep.c (s390_gdbarch_init): Ditto.
7479 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7480 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7481 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7482 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7483 * i386-tdep.c (i386_gdbarch_init): Ditto.
7484 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7485 * frv-tdep.c (frv_gdbarch_init): Ditto.
7486 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7487 * cris-tdep.c (cris_gdbarch_init): Ditto.
7488 * arm-tdep.c (arm_gdbarch_init): Ditto.
7489
e8a8712a
AC
74902003-03-31 Andrew Cagney <[email protected]>
7491
7492 * gdbarch.sh (CALL_DUMMY_P): Delete.
7493 * gdbarch.h, gdbarch.c: Re-generate.
7494 * inferior.h (CALL_DUMMY_P): Delete macro.
7495 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7496 * vax-tdep.c (vax_gdbarch_init): Update.
7497 * v850-tdep.c (v850_gdbarch_init): Update.
7498 * sparc-tdep.c (sparc_gdbarch_init): Update.
7499 * sh-tdep.c (sh_gdbarch_init): Update.
7500 * s390-tdep.c (s390_gdbarch_init): Update.
7501 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7502 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7503 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7504 * mips-tdep.c (mips_gdbarch_init): Update.
7505 * mcore-tdep.c (mcore_gdbarch_init): Update.
7506 * m68k-tdep.c (m68k_gdbarch_init): Update.
7507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7508 * ia64-tdep.c (ia64_gdbarch_init): Update.
7509 * i386-tdep.c (i386_gdbarch_init): Update.
7510 * h8300-tdep.c (h8300_gdbarch_init): Update.
7511 * frv-tdep.c (frv_gdbarch_init): Update.
7512 * d10v-tdep.c (d10v_gdbarch_init): Update.
7513 * cris-tdep.c (cris_gdbarch_init): Update.
7514 * breakpoint.c (deprecated_frame_in_dummy): Update.
7515 * avr-tdep.c (avr_gdbarch_init): Update.
7516 * alpha-tdep.c (alpha_gdbarch_init): Update.
7517 * arm-tdep.c (arm_gdbarch_init): Update.
7518 * dummy-frame.c (dummy_frame_this_id): Update comments.
7519 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7520 * frame.c (legacy_get_prev_frame): Ditto.
7521 * valops.c (call_function_by_hand): Delete function.
7522 (hand_function_call): Rename to call_function_by_hand
7523
ed234cf8
AC
75242003-03-30 Andrew Cagney <[email protected]>
7525
7526 2002-11-10 Klee Dienes <[email protected]>
fbe586ae 7527 * value.h (struct value): Update comment.
ed234cf8 7528
06c77151
AC
75292003-03-30 Andrew Cagney <[email protected]>
7530
6c2b5168
AC
7531 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7532 D10V_FP_REGNUM.
7533 (d10v_gdbarch_init): Do not set fp_regnum.
7534
06c77151
AC
7535 * frame.c (get_frame_base): Force ID initialization.
7536 (get_prev_frame): Move computation of the frame ID from here ...
7537 (get_frame_id): ... to here.
7538 (legacy_get_prev_frame): Mark the frame ID as valid.
7539 * frame.h (struct frame_info): Add field "id_p".
7540
97a1a11c
MK
75412003-03-30 Mark Kettenis <[email protected]>
7542
7543 * i386-tdep.c (i386_store_struct_return): Removed.
7544 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7545
6c0e89ed
AC
75462003-03-30 Andrew Cagney <[email protected]>
7547
7548 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7549 * gdbarch.h, gdbarch.c: Regenerate.
7550 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7552 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7553 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7554 * i386-tdep.c (i386_gdbarch_init): Ditto.
7555 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7556 * cris-tdep.c (cris_gdbarch_init): Ditto.
7557 * vax-tdep.c (vax_gdbarch_init): Ditto.
7558 * s390-tdep.c (s390_gdbarch_init): Ditto.
7559 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7560 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7561 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7562 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7563 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7564 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7565 * sparc-tdep.c (sparc_gdbarch_init): Update.
7566 * sh-tdep.c (sh_gdbarch_init): Update.
7567 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7568 * mips-tdep.c (mips_gdbarch_init): Update.
7569 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7570 * ia64-tdep.c (ia64_gdbarch_init): Update.
7571 * frv-tdep.c (frv_gdbarch_init): Update.
7572 * avr-tdep.c (avr_gdbarch_init): Update.
7573 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7574 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7575 instead of when push_dummy_call is not available.
8ffd9b1b 7576
f7dd6af2
AC
75772003-03-30 Andrew Cagney <[email protected]>
7578
7579 * infttrace.c: Include "gdbthread.h".
7580 (parent_attach_all): Fix function signature.
7581 (call_ptrace): Update call.
7582 * Makefile.in (infttrace.o): Update dependencies.
7583
28f617b3
AC
75842003-03-30 Andrew Cagney <[email protected]>
7585
7586 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7587 PUSH_RETURN_ADDRESS.
7588 * gdbarch.h, gdbarch.c: Regenerate.
7589 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7590 * x86-64-tdep.c (x86_64_init_abi): Update.
7591 * v850-tdep.c (v850_gdbarch_init): Update.
7592 * sparc-tdep.c (sparc_gdbarch_init): Update.
7593 * sh-tdep.c (sh_gdbarch_init): Update.
7594 * s390-tdep.c (s390_gdbarch_init): Update.
7595 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7596 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7597 * mips-tdep.c (mips_gdbarch_init): Update.
7598 * mcore-tdep.c (mcore_gdbarch_init): Update.
7599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7600 * ia64-tdep.c (ia64_gdbarch_init): Update.
7601 * i386-tdep.c (i386_gdbarch_init): Update.
7602 * h8300-tdep.c (h8300_gdbarch_init): Update.
7603 * frv-tdep.c (frv_gdbarch_init): Update.
7604 * cris-tdep.c (cris_gdbarch_init): Update.
7605 * avr-tdep.c (avr_gdbarch_init): Update.
7606 * arm-tdep.c (arm_gdbarch_init): Update.
7607 * valops.c (hand_function_call): Update.
7608
4d628cd7
AC
76092003-03-29 Andrew Cagney <[email protected]>
7610
7611 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7612 sizeof_call_dummy_words.
7613 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7614 define.
7615 * gdbarch.h: Regenerate.
8ffd9b1b 7616
65e82032
AC
76172003-03-29 Andrew Cagney <[email protected]>
7618
7619 * infttrace.h: New file.
7620 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7621 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7622 (hpread_read_doc_function_type): Detect an initialized type1.
7623 (hpread_quick_traverse): Initialize mod_name_string.
7624 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7625 (som_solib_get_solib_by_pc): Declare.
7626 (so_lib_thread_start_addr): Declare.
7627 (no_shared_libraries): Declare.
7628 * somread.c (init_import_symbols): Make static. Add forward
7629 declaration.
7630 * config/pa/nm-hppah.h: Include "infttrace.h" for
7631 parent_attach_all.
7632 (hppa_insert_hw_watchpoint): Declare.
7633 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7634 * hppah-nat.c: Include "gdb_string.h".
7635 (parent_attach_all): Delete extern declaration, moved to
7636 "infttrace.h".
7637 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7638 int.
7639 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7640 * Makefile.in (infttrace_h): Define.
7641 (hpread.o): Update dependencies.
7642 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7643 * hppa-hpux-tdep.c: Include "gdb_string.h".
7644 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7645 * infrun.c (handle_inferior_event): Always initialize
7646 stepped_after_stopped_by_watchpoint. Add default and remove
7647 fallthrough in switch statement.
7648 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7649 parameter to int.
7650 (hppa_remove_hw_watchpoint): Ditto.
7651
2c3bbe77
AC
76522003-03-29 Andrew Cagney <[email protected]>
7653
7654 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7655 offset.
7656
2dd604e7
RE
76572003-03-29 Richard Earnshaw <[email protected]>
7658
7659 * arm-tdep.c (arm_push_arguments): Delete.
7660 (struct stack_item): New type.
7661 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7662 (arm_store_struct_return): Delte.
7663 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7664 arm_push_arguments or arm_store_struct_return.
7665
e8933a55
AC
76662003-03-28 Andrew Cagney <[email protected]>
7667
7668 * Makefile.in (d10v-tdep.o): Update dependencies.
7669 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7670 * d10v-tdep.c: Include "remote.h".
7671 (target_resume_hook): Delete extern declaration.
7672 (target_wait_loop_hook): Ditto.
7673 (tdisassemble_command): Eliminate assignment in "if" conditional.
7674 (d10v_ts2_register_sim_regno): Eliminate call to
7675 legacy_register_sim_regno.
7676 (d10v_ts3_register_sim_regno): Ditto.
7677
6949171e
JJ
76782003-03-28 Jeff Johnston <[email protected]>
7679
7680 * thread.c: Reindented.
7681 * lin-lwp.c: Ditto.
7682 * linux-proc.c: Ditto.
7683
98c7071f
BR
76842003-03-28 Bob Rossi <[email protected]>
7685
fbe586ae 7686 * MAINTAINERS (write after approval): Add myself.
98c7071f 7687
5edc9ca6
TR
76882003-03-27 Theodore A. Roth <[email protected]>
7689
7690 * objc-exp.y: Add missing semi-colons.
7691
378bfd1b
AC
76922003-03-27 Andrew Cagney <[email protected]>
7693
7694 * regcache.c (write_sp): Delete function and references.
7695 * inferior.h (write_sp): Delete declaration.
7696 * valops.c (hand_function_call): Replace write_sp with
7697 TARGET_WRITE_SP.
7698 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7699 (sparc_pop_frame): Ditto.
8ffd9b1b 7700
56056df7
AC
77012003-03-27 Andrew Cagney <[email protected]>
7702
7703 * NEWS: Mention removal of support for hppa*-*-bsd* and
7704 hppa*-*-osf* natives, and hppa*-*-pro* target.
7705 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7706 * config/pa/xm-pa.h: Obsolete file.
7707 * config/pa/xm-hppab.h: Obsolete file.
7708 * config/pa/nm-hppab.h: Obsolete file.
7709 * config/pa/tm-hppab.h: Obsolete file.
7710 * config/pa/tm-hppao.h: Obsolete file.
7711 * config/pa/nm-hppao.h: Obsolete file.
7712 * config/pa/tm-pro.h: Obsolete file.
7713 * config/pa/hppaosf.mt: Obsolete file.
7714 * config/pa/hppaosf.mh: Obsolete file.
7715 * config/pa/hppapro.mt: Obsolete file.
7716 * config/pa/hppabsd.mt: Obsolete file.
7717 * config/pa/hppabsd.mh: Obsolete file.
7718 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7719 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7720 hppa*-*-osf*.
7721
5873a88d
AC
77222003-03-27 Andrew Cagney <[email protected]>
7723
7724 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7725 push_arguments. Don't set push_return_address or write_sp.
7726 (d10v_push_dummy_call): Replace d10v_push_arguments.
7727 (d10v_push_return_address, d10v_write_sp): Delete function,
7728 handled by push_dummy_call.
7729
b81774d8
AC
77302003-03-26 Andrew Cagney <[email protected]>
7731
7732 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7733 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7734 regcache and dummy_addr parameters.
7735 * gdbarch.h, gdbarch.c: Re-generate.
7736 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7737 available; assume it will handle stack alignment and return
7738 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7739 legacy_push_arguments.
7740 (legacy_push_arguments): Rename default_push_arguments.
7741 * value.h (legacy_push_arguments): Rename default_push_arguments.
7742 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7743 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7744 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7745 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7746 * config/i386/tm-symmetry.h: Update.
7747 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7748 * x86-64-tdep.c (x86_64_init_abi): Update.
7749 * v850-tdep.c (v850_gdbarch_init): Update.
7750 * sparc-tdep.c (sparc_gdbarch_init): Update.
7751 * sh-tdep.c (sh_gdbarch_init): Update.
7752 * s390-tdep.c (s390_gdbarch_init): Update.
7753 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7754 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7755 * mips-tdep.c (mips_gdbarch_init): Update.
7756 * mcore-tdep.c (mcore_gdbarch_init): Update.
7757 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7758 * ia64-tdep.c (ia64_gdbarch_init): Update.
7759 * i386-tdep.c (i386_gdbarch_init): Update.
7760 * hppa-tdep.c (hppa_gdbarch_init): Update.
7761 * h8300-tdep.c (h8300_gdbarch_init): Update.
7762 * frv-tdep.c (frv_gdbarch_init): Update.
7763 * d10v-tdep.c (d10v_gdbarch_init): Update.
7764 * cris-tdep.c (cris_gdbarch_init): Update.
7765 * avr-tdep.c (avr_gdbarch_init): Update.
7766 * arm-tdep.c (arm_gdbarch_init): Update.
7767 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7768 * alpha-tdep.c (alpha_gdbarch_init): Update.
7769
f541410f
DJ
77702003-03-26 Daniel Jacobowitz <[email protected]>
7771
7772 * signals/signals.c (do_target_signal_to_host): Correct realtime
7773 signal range test.
7774
69f567ae
DJ
77752003-03-26 Daniel Jacobowitz <[email protected]>
7776
7777 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7778 (struct sal_chain, map_catch_names): Remove.
7779 (catch_exception_command_1): Don't call
7780 handle_gnu_4_16_catch_command.
7781
d5d14a5a
DJ
77822003-03-26 Daniel Jacobowitz <[email protected]>
7783
7784 From Mark Dettinger <[email protected]>:
7785 * dwarf2cfi.c (read_2u): Increment pointer by two.
7786
bdd73e22
DJ
77872003-03-26 Daniel Jacobowitz <[email protected]>
7788
7789 * signals/signals.c: Fix typos in last change.
7790
960cb555
DJ
77912003-03-26 Daniel Jacobowitz <[email protected]>
7792
7793 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7794 not already defined. Use __SIGRTMIN if available.
7795 (target_signal_from_host): Remove SIGRTMIN block.
7796 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7797 the signal is within the realtime range.
7798
f636b87d
AF
77992003-03-25 Adam Fedor <[email protected]>
7800
7801 * Makefile.in (infrun.o): Add $(language_h)
7802 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7803 for language specific trampolines.
7804 * language.h (struct language_defn): Add skip_trampoline.
7805 (skip_language_trampoline): Declare.
7806 * language.c (unk_lang_trampoline, skip_language_trampoline):
7807 New functions.
7808 (unknown_language_defn, auto_language_defn, local_language_defn):
7809 Add ukn_lang_trampoline.
7810 * ada-lang.c (ada_language_defn): Add NULL for language
7811 specific skip_trampoline.
7812 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7813 scm-lang.c: Likewise.
7814 * objc-lang.c (objc_skip_trampoline): New function.
7815 (objc_language_defn): Add objc_skip_trampoline.
7816
28f617b3 78172003-03-25 Andrew Cagney <[email protected]>
270c3b1d
AC
7818
7819 * frame.c (get_prev_frame): Delay validating a frame's ID -
7820 non-NULL, didn't go backwards - until an attempt to unwind it to
7821 the previous frame.
7822
f933a9c5
AC
78232003-03-25 Andrew Cagney <[email protected]>
7824
7825 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7826 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7827 * gdbarch.h, gdbarch.c: Re-generate.
7828 * config/sparc/tm-sparc.h
7829 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7830 * sparc-tdep.c (sparc_gdbarch_init): Set
7831 deprecated_extra_stack_alignment_needed.
7832 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7833 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7834 extra_stack_alignment_needed.
7835 * v850-tdep.c (v850_gdbarch_init): Ditto.
7836 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7837 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7838 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7839 * cris-tdep.c (cris_gdbarch_init): Ditto.
7840 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7841 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7842
4183d812
AC
78432003-03-25 Andrew Cagney <[email protected]>
7844
7845 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7846 STORE_STRUCT_RETURN.
7847 * gdbarch.h, gdbarch.c: Regenerate.
7848 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7849 (d10v_push_arguments): Set the struct return register.
7850 (d10v_gdbarch_init): Update.
7851 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7852 * x86-64-tdep.c (x86_64_init_abi): Update.
7853 * vax-tdep.c (vax_gdbarch_init): Update.
7854 * v850-tdep.c (v850_gdbarch_init): Update.
7855 * sparc-tdep.c (sparc_gdbarch_init): Update.
7856 * sh-tdep.c (sh_gdbarch_init): Update.
7857 * s390-tdep.c (s390_gdbarch_init): Update.
7858 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7859 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7860 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7861 * mips-tdep.c (mips_gdbarch_init): Update.
7862 * mcore-tdep.c (mcore_gdbarch_init): Update.
7863 * m68k-tdep.c (m68k_gdbarch_init): Update.
7864 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7865 * ia64-tdep.c (ia64_gdbarch_init): Update.
7866 * i386-tdep.c (i386_gdbarch_init): Update.
7867 * hppa-tdep.c (hppa_gdbarch_init): Update.
7868 * h8300-tdep.c (h8300_gdbarch_init): Update.
7869 * frv-tdep.c (frv_gdbarch_init): Update.
7870 * cris-tdep.c (cris_gdbarch_init): Update.
7871 * avr-tdep.c (avr_gdbarch_init): Update.
7872 * arm-tdep.c (arm_gdbarch_init): Update.
7873 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7874
1bf6d5cc
AC
78752003-03-25 Andrew Cagney <[email protected]>
7876
7877 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7878 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7879 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7880 * gdbarch.h, gdbarch.c: Regenerate.
7881 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7882 call_dummy_stack_adjust_p.
7883 * vax-tdep.c (vax_gdbarch_init): Ditto.
7884 * v850-tdep.c (v850_gdbarch_init): Ditto.
7885 * sh-tdep.c (sh_gdbarch_init): Ditto.
7886 * s390-tdep.c (s390_gdbarch_init): Ditto.
7887 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7888 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7889 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7890 * mips-tdep.c (mips_gdbarch_init): Ditto.
7891 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7892 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7894 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7895 * i386-tdep.c (i386_gdbarch_init): Ditto.
7896 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7897 * frv-tdep.c (frv_gdbarch_init): Ditto.
7898 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7899 * cris-tdep.c (cris_gdbarch_init): Ditto.
7900 * avr-tdep.c (avr_gdbarch_init): Ditto.
7901 * arm-tdep.c (arm_gdbarch_init): Ditto.
7902 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7903 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7904 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7905 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7906 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7907 call_dummy_stack_adjust_p.
7908 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7909 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7910 * sparc-tdep.c (sparc32_push_arguments): Update.
7911 * valops.c (hand_function_call): Update.
7912
71c08af0
CV
79132003-03-25 Corinna Vinschen <[email protected]>
7914
7915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7916 set_gdbarch_char_signed.
7917
30757f90
RE
79182003-03-25 Richard Earnshaw <[email protected]>
7919
7920 PR cli/548
7921 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7922
03d48a7d
RE
79232003-03-25 Richard Earnshaw <[email protected]>
7924
7925 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7926 (_initialize_arm_tdep): Don't set tm_print_insn.
7927
2cf6873c
AF
79282003-03-24 Adam Fedor <[email protected]>
7929
7930 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7931 * objc-lang.h: Add multiple inclusion protection.
7932 (start_msglist, add_msglist, end_msglist): Additional declarations.
7933
17c0759e
RE
79342003-03-24 Richard Earnshaw <[email protected]>
7935
7936 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7937 value was renamed to ARM_FLOAT_SOFT_FPA.
7938
618ce49f
AC
79392003-03-23 Andrew Cagney <[email protected]>
7940
7941 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7942 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7943 * gdbarch.h, gdbarch.c: Regenerate.
7944 * valops.c (hand_function_call): Update.
7945 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7946 * frame.c (legacy_saved_regs_this_id): Update.
7947 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7948 * dummy-frame.h: Update.
7949 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7950 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7951 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7952 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7953 * config/m68k/tm-sun3.h: Update.
7954 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7955 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7956 * x86-64-tdep.c (x86_64_init_abi): Update.
7957 * vax-tdep.c (vax_gdbarch_init): Update.
7958 * v850-tdep.c (v850_gdbarch_init): Update.
7959 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7960 * sh-tdep.c (sh_gdbarch_init): Update.
7961 * s390-tdep.c (s390_gdbarch_init): Update.
7962 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7963 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7964 (frame_get_saved_regs): Update.
7965 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7966 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7967 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7968 * mips-tdep.c (mips_gdbarch_init): Update.
7969 * mcore-tdep.c (mcore_gdbarch_init): Update.
7970 * m68k-tdep.c (m68k_gdbarch_init): Update.
7971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7972 * ia64-tdep.c (ia64_gdbarch_init): Update.
7973 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7974 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7975 (i386_interix_back_one_frame): Update.
7976 * hppa-tdep.c (hppa_gdbarch_init): Update.
7977 (hppa_init_extra_frame_info): Update.
7978 * h8300-tdep.c (h8300_gdbarch_init): Update.
7979 * frv-tdep.c (frv_gdbarch_init): Update.
7980 * cris-tdep.c (cris_gdbarch_init): Update.
7981 * avr-tdep.c (avr_gdbarch_init): Update.
7982 * arm-tdep.c (arm_gdbarch_init): Update.
7983 * alpha-tdep.c (alpha_gdbarch_init): Update.
7984
fd50bc42
RE
79852003-03-22 Richard Earnshaw <[email protected]>
7986
7987 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7988 (arm_get_fp_model): Declare.
7989 * arm-tdep.c (fp_model_strings): New string array.
7990 (arm_fp_model, current_fp_model): New variables.
7991 (arm_get_fp_model): New function.
7992 (arm_set_fp): New function.
7993 (set_fp_model_sfunc): New function.
7994 (show_fp_model): New function.
7995 (_initialize_arm_tdep): Add new command to set/show the FPU.
7996 (arm_extract_return_value): Use arm_get_fp_model.
7997 (arm_store_return_value): Likewise.
7998 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7999 to initialize the floating-point data types.
8000 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8001 model is FPA.
8002
26304000
RE
80032003-03-22 Richard Earnshaw <[email protected]>
8004
8005 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8006 the current setting of each value.
8007 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8008 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8009 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8010 commands and add new version as subcommands of "set/show arm".
8011
afd7eef0
RE
80122003-03-22 Richard Earnshaw <[email protected]>
8013
8014 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8015 (set_arm_command, show_arm_command): New functions.
8016 (_initialize_arm_tdep): Add them.
8017 (num_disassembly_options): Renamed from num_flavor_options.
8018 (valid_disassembly_styles): Renamed from valid_flavors.
8019 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8020 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8021 set_disassembly_flavor_sfunc.
8022 (set_disassembly_style): Renamed from set_disassembly_flavor.
8023 (arm_othernames): Updated.
8024 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8025 command. Add "set/show arm disassembly" commands. Deprecate
8026 "othernames" command.
8027
299a7944
RE
80282003-03-22 Richard Earnshaw <[email protected]>
8029
8030 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8031 (arm-tdep.o): Depend on elf_arm_h.
8032
c1dac9e6
RE
80332003-03-22 Richard Earnshaw <[email protected]>
8034
8035 * Makefile.in (coff_internal_h): Define.
8036 (arm-tdep.o): Update dependencies.
8037
2702d96c
RE
80382003-03-22 Richard Earnshaw <[email protected]>
8039
8040 * arm-tdep.c (prologue_cache): Delete.
8041 (check_prologue_cache, save_prologue_cache): Delete.
8042 (arm_scan_prologue): Don't check or update the prologue_cache.
8043 (arm_gdb_arch_init): Don't initialize it.
8044 (_initialize_arm_tdep): Likewise.
8045
27d5d74b
SC
80462003-03-21 Stephane Carrez <[email protected]>
8047
8048 * MAINTAINERS (tui): Maintainer of tui code.
8049
1762d96d
CV
80502003-03-21 Corinna Vinschen <[email protected]>
8051
8052 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8053 (i386-cygwin-tdep.o): Add dependencies.
8054 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8055 * i386-cygwin-tdep.c: New file.
8056 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8057 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8058
4c2e2391
AC
80592003-03-20 Andrew Cagney <[email protected]>
8060
f20d38b7
AC
8061 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8062 (handle_inferior_event): Remove code calling
8063 DYNAMIC_TRAMPOLINE_NEXTPC.
8064
0022b738
AC
8065 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8066 already has a full path.
8067
864dbc90
AC
8068 * main.c (gdb_main): Return 1.
8069 (captured_main): Call error to report an invalid interpreter.
8070
4c2e2391
AC
8071 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8072 * alpha-osf1-tdep.c: Include "gdb_string.h".
8073
5ef7553b
JB
80742003-03-19 J. Brobecker <[email protected]>
8075
8076 Continuing work to convert the hppa targets to multiarch partial.
8077
8078 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8079 method, now that hppa_push_dummy_frame has a conformant prototype.
8080 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8081 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8082 for the switch to multiarch partial.
8083
7bde8967
KB
80842003-03-19 Kevin Buettner <[email protected]>
8085
8086 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8087 when iss is issNull.
8088
b006a9e9
KB
80892003-03-18 Kevin Buettner <[email protected]>
8090
8091 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8092 NUM_REGS bounds check.
8093
5e2e9765
KB
80942003-03-18 Kevin Buettner <[email protected]>
8095
8096 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8097 * mips-tdep.c (gdb_assert.h): Include.
8098 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8099 (mips_register_name): Handle integer registers explicitly. Add
8100 bounds checking.
8101 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8102 (mips_lsi33k_reg_names): Don't list integer registers; they're
8103 handled by mips_register_name() now.
8104 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8105 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8106 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8107 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8108 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8109
a2867626
AC
81102003-03-18 Andrew Cagney <[email protected]>
8111
8112 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8113 a void pointer.
8114 * gdbtypes.h (print_scalar_formatted): Update declaration.
8115 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8116
06600e06
JB
81172003-03-18 J. Brobecker <[email protected]>
8118
8119 * infrun.c (observer.h): Add #include.
8120 (normal_stop): Add call to observer_notify_normal_stop.
8121 * Makefile.in (infrun.o): Add dependency on observer.h.
8122
7daf4f5b
JB
81232003-03-18 J. Brobecker <[email protected]>
8124
8125 Continuing work to convert the hppa targets to multiarch partial.
8126 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8127 parameter. Reformat comment.
8128 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8129 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8130 to match new profile.
8131
3371ccc0
JB
81322003-03-18 J. Brobecker <[email protected]>
8133
8134 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8135 appear to be working in any case.
8136
4fbe891e
JB
81372003-03-18 J. Brobecker <[email protected]>
8138
8139 * observer.c (observer_test_first_observer): New static variable.
8140 (observer_test_second_observer): Likewise.
8141 (observer_test_third_observer): Likewise.
8142 (observer_test_first_notification_function): New static function.
8143 (observer_test_second_notification_function): Likewise.
8144 (observer_test_third_notification_function): Likewise.
8145
a7ff40e7
JB
81462003-03-17 J. Brobecker <[email protected]>
8147
8148 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8149 * somsolib.c (gdb_assert.h): Likewise.
8150 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8151 (somsolib.o): Likewise.
8152
26ca4152
AC
81532003-03-17 Andrew Cagney <[email protected]>
8154
8155 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8156 BFD. Simplify setting of di.endian.
8157
0a613259
AC
81582003-03-17 Andrew Cagney <[email protected]>
8159
8160 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8161 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8162
8163 From Elena Zannoni <[email protected]>
8164 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8165 vector and floating-point parameters.
8166 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8167 convention.
8168 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8169
1132738f
FN
81702003-03-17 Fernando Nasser <[email protected]>
8171
8172 * MAINTAINERS: Remove my name from several maintainership roles.
8173
6dc42492
AC
81742003-03-17 Andrew Cagney <[email protected]>
8175
8176 Fix frame off-by-one bug.
8177 * frame-unwind.h (frame_this_id_ftype): Replace
8178 frame_unwind_id_ftype.
8179 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8180 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8181 with "prev_register".
8182 * frame-unwind.c (frame_unwind_find_by_pc): Return
8183 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8184 comment.
8185 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8186 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8187 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8188 (dummy_frame_unwind): Update.
8189 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8190 sentinel_frame_register_unwind.
8191 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8192 (sentinel_frame_unwinder): Update.
8193 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8194 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8195 * frame.c (create_sentinel_frame): Update. Initialize
8196 "prologue_cache" instead of "unwind_cache".
8197 (frame_register_unwind): Call this frame's prev_register with the
8198 next frame and this frame's prologue cache.
8199 (get_prev_frame): Simplify. Always call prev frame's this_id with
8200 this frame and prev frame's prologue cache. Document that this
8201 call is shifted one to the left when compared to the
8202 frame_register_unwind call.
8203 (legacy_saved_regs_prev_register): Replace
8204 frame_saved_regs_register_unwind.
8205 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8206 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8207 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8208 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8209 (d10v_frame_unwind): Update.
8210 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8211 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8212 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8213 "saved_regs" with "this_saved_regs".
8214
efd710d6
AC
82152003-03-16 Andrew Cagney <[email protected]>
8216
8217 * frame.c (frame_pop): Don't call target_store_registers. Fix
8218 problem reported by Mark Kettenis.
8219
4e259f09
MK
82202003-03-16 Mark Kettenis <[email protected]>
8221
8222 * i386-tdep.c (i386_register_type): Renamed from
8223 i386_register_virtual_type. Adjust function signature.
8224 (i386_gdbarch_init): Set register_type instead of
8225 deprecated_max_register_raw_size,
8226 deprecated_max_register_virtual_size and register_virtual_type.
8227
055bb976
AC
82282003-03-14 Andrew Cagney <[email protected]>
8229
8230 * frame.c (get_prev_frame): When a legacy frame, always call
8231 legacy_get_prev_frame. Simplify unwind code using assumption that
8232 the unwinder is new.
8233 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8234 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8235 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8236
ac2adee5
AC
82372003-03-14 Andrew Cagney <[email protected]>
8238
8239 * frame.c (get_saved_register): Delete function.
8240 * frame.h (get_saved_register): Delete declaration.
8241 * xstormy16-tdep.c: Update comment.
8242 * regcache.h: Update comments.
8243 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8244 get_saved_register and extract_address, use
8245 frame_read_unsigned_register.
8246 (sparc_frame_saved_pc): Ditto.
8247 (sparc_get_saved_register): Instead of get_saved_register, use
8248 frame_register.
8249 (sparc_pop_frame): Ditto.
8250 * findvar.c: Update comments.
8251 (value_of_register): Call frame_register instead of
8252 get_saved_register.
8253 (value_from_register): Ditto.
8254 * config/sparc/tm-sparc.h: Update comment.
8255 * breakpoint.c: Update comment.
8256
129c1cd6
AC
82572003-03-14 Andrew Cagney <[email protected]>
8258
8259 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8260 GET_SAVED_REGISTER.
8261 * gdbarch.h, gdbarch.c: Re-generate.
8262 * frame.h: Update comments.
8263 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8264 * x86-64-tdep.c (x86_64_init_abi): Update.
8265 * sparc-tdep.c (sparc_gdbarch_init): Update.
8266 * sh-tdep.c (sh_gdbarch_init): Update.
8267 * mips-tdep.c (mips_gdbarch_init): Update.
8268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8269 * cris-tdep.c (cris_gdbarch_init): Update.
8270 * ia64-tdep.c (ia64_gdbarch_init): Update.
8271 * frame.c (frame_register): Update.
8272 (get_saved_register): Update.
8273 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8274
749b82f6
AC
82752003-03-13 Andrew Cagney <[email protected]>
8276
8277 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8278 * gdbarch.h, gdbarch.c: Regenerate.
8279 * valops.c (hand_function_call): Update comment.
8280 * stack.c (return_command): Update comment.
8281 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8282 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8283 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8284 * x86-64-tdep.c (x86_64_init_abi): Update.
8285 * vax-tdep.c (vax_gdbarch_init): Update.
8286 * v850-tdep.c (v850_gdbarch_init): Update.
8287 * sparc-tdep.c (sparc_gdbarch_init): Update.
8288 * sh-tdep.c (sh_gdbarch_init): Update.
8289 * s390-tdep.c (s390_gdbarch_init): Update.
8290 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8291 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8292 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8293 * mips-tdep.c (mips_gdbarch_init): Update.
8294 * mcore-tdep.c (mcore_gdbarch_init): Update.
8295 * m68k-tdep.c (m68k_gdbarch_init): Update.
8296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8297 * ia64-tdep.c (ia64_gdbarch_init): Update.
8298 * i386-tdep.c (i386_gdbarch_init): Update.
8299 * hppa-tdep.c (hppa_gdbarch_init): Update.
8300 * h8300-tdep.c (h8300_gdbarch_init): Update.
8301 * frv-tdep.c (frv_gdbarch_init): Update.
8302 * cris-tdep.c (cris_gdbarch_init): Update.
8303 * avr-tdep.c (avr_gdbarch_init): Update.
8304 * arm-tdep.c (arm_gdbarch_init): Update.
8305 * alpha-tdep.c (alpha_gdbarch_init): Update.
8306
1594fa56
AC
83072003-03-13 Andrew Cagney <[email protected]>
8308
8309 * frame.c (legacy_frame_p): New function.
8310 (get_prev_frame): Use legacy_frame_p.
8311 * frame.h (legacy_frame_p): Declare.
8312
7717fda3
V
83132003-03-13 D. Venkatasubramanian <[email protected]>
8314
fbe586ae 8315 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8316 listing corrected.
8317
0c67cbe9
V
83182003-03-13 D. Venkatasubramanian <[email protected]>
8319
fbe586ae 8320 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8321
03febf99
AC
83222003-03-12 Andrew Cagney <[email protected]>
8323
8324 * frame.c (get_prev_frame): Rename the frame parameter to
8325 "this_frame".
8326 (get_next_frame, legacy_get_prev_frame): Ditto.
8327
0a1e1ca1
AC
83282003-03-12 Andrew Cagney <[email protected]>
8329
8330 * frame.c (get_current_frame): Check target_has_registers before
8331 checking target_has_stack.
8332 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8333 instead of deprecated_selected_frame.
8334 * findvar.c (value_of_register): Pass "frame", not
8335 deprecated_selected_frame, to value_of_builtin_reg.
8336
a66a9c23
AC
83372003-03-12 Andrew Cagney <[email protected]>
8338
8339 * regcache.c (regcache_cooked_write_signed): New function.
8340 (regcache_cooked_write_unsigned): New function.
8341 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8342 (regcache_cooked_read_signed): Fix regnum in range assertion.
8343 * regcache.h (regcache_cooked_write_signed): Declare.
8344 (regcache_cooked_write_unsigned): Declare.
8345
8bedc050
AC
83462003-03-12 Andrew Cagney <[email protected]>
8347
8348 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8349 * gdbarch.h, gdbarch.c: Re-generate.
8350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8351 * x86-64-tdep.h: Update.
8352 * x86-64-tdep.c (x86_64_init_abi): Update.
8353 * v850-tdep.c (v850_gdbarch_init): Update.
8354 * sparc-tdep.c (sparc_gdbarch_init): Update.
8355 * sh-tdep.c (sh_gdbarch_init): Update.
8356 * s390-tdep.c (s390_gdbarch_init): Update.
8357 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8358 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8359 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8360 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8361 * mips-tdep.c (mips_gdbarch_init): Update.
8362 * mcore-tdep.c (mcore_gdbarch_init): Update.
8363 * m68k-tdep.c (m68k_gdbarch_init): Update.
8364 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8365 * ia64-tdep.c (ia64_gdbarch_init): Update.
8366 * i386-tdep.c (i386_gdbarch_init): Update.
8367 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8368 * hppa-tdep.c (hppa_gdbarch_init): Update.
8369 * h8300-tdep.c (h8300_gdbarch_init): Update.
8370 * frv-tdep.c (frv_gdbarch_init): Update.
8371 * cris-tdep.c (cris_gdbarch_init): Update.
8372 * avr-tdep.c (avr_gdbarch_init): Update.
8373 * arm-tdep.c (arm_gdbarch_init): Update.
8374 * alpha-tdep.c (alpha_gdbarch_init): Update.
8375 * sh-tdep.c (sh_init_extra_frame_info): Update.
8376 (sh64_init_extra_frame_info): Update.
8377 * ns32knbsd-nat.c (frame_num_args): Update.
8378 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8379 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8380 (xstormy16_frame_chain_valid): Update.
8381 * vax-tdep.c (vax_saved_pc_after_call): Update.
8382 * v850-tdep.c (v850_frame_chain): Update.
8383 (v850_pop_frame): Update.
8384 (v850_init_extra_frame_info): Update.
8385 * sparc-tdep.c (setup_arbitrary_frame): Update.
8386 * ns32k-tdep.c (umax_frame_num_args): Update.
8387 * s390-tdep.c (s390_pop_frame_regular): Update.
8388 * mn10300-tdep.c (mn10300_frame_chain): Update.
8389 (mn10300_pop_frame_regular): Update.
8390 (mn10300_init_extra_frame_info): Update.
8391 * mips-tdep.c (mips_init_frame_pc_first): Update.
8392 (mips_frame_chain): Update.
8393 (mips_pop_frame): Update.
8394 * mcore-tdep.c (mcore_frame_chain): Update.
8395 (mcore_pop_frame): Update.
8396 (mcore_init_extra_frame_info): Update.
8397 * arch-utils.c (init_frame_pc_default): Update.
8398 * m68k-tdep.c (isi_frame_num_args): Update.
8399 (delta68_frame_num_args): Update.
8400 (news_frame_num_args): Update.
8401 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8402 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8403 (alpha_frame_chain): Update.
8404 (alpha_pop_frame): Update.
8405 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8406 (hppa_init_extra_frame_info): Update.
8407 (hppa_frame_chain): Update.
8408 (hppa_frame_chain_valid): Update.
8409 * cris-tdep.c (cris_init_extra_frame_info): Update.
8410 * avr-tdep.c (avr_init_extra_frame_info): Update.
8411 * arm-tdep.c (arm_frame_chain_valid): Update.
8412 (arm_init_extra_frame_info): Update.
8413 (arm_pop_frame): Update.
8414 * frame.c (frame_pc_unwind): Update.
8415 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8416 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8417 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8418 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8419 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8420 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8421
7a25a7c1
AC
84222003-03-12 Andrew Cagney <[email protected]>
8423
8424 Eliminate the need for POP_FRAME.
8425 * frame.c (do_frame_unwind_register): New function.
8426 (frame_pop): When no POP_FRAME, pop the frame using register
8427 unwind and a scratch regcache.
8428 (frame_saved_regs_pop): Delete function.
8429 (trad_frame_unwinder): Update.
8430 * d10v-tdep.c (d10v_frame_pop): Delete function.
8431 (d10v_frame_unwind): Update.
8432 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8433 (sentinel_frame_unwinder): Update.
8434 * dummy-frame.c (dummy_frame_pop): Delete function.
8435 (dummy_frame_unwind): Update.
8436 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8437 (struct frame_unwind): Update.
8438
2f38ef89
KB
84392003-03-11 Kevin Buettner <[email protected]>
8440
8441 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8442 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8443 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8444 Do range checks on register number obtained from debugging info.
8445 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8446 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8447 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8448 mapping function.
8449 (do_fp_register_row): Fix typo which caused double type to be
8450 used when attempting to unpack a float.
8451
552f4abf
JB
84522003-03-11 J. Brobecker <[email protected]>
8453
8454 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8455
e0d2ae16
AC
84562003-03-11 Andrew Cagney <[email protected]>
8457
8458 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8459 frame. Problem found by Corinna Vinschen.
8460
ddbfdd06
PM
84612003-03-11 Pierre Muller <[email protected]>
8462
8463 * doublest.c (floatformat_from_length): Accept also
8464 the real size of 'long double' type.
8465
088b2ddc 84662003-03-10 Daniel Jacobowitz <[email protected]>
31cc81e9 8467
088b2ddc 8468 From Klee Dienes <[email protected]>:
31cc81e9
DJ
8469 * breakpoint.c (bpstat_copy): Copy the command lines as well
8470 as the old value, to match what is freed in bpstat_clear.
8471
f56f77c1
DC
84722003-03-10 David Carlton <[email protected]>
8473
8474 * minsyms.c (add_minsym_to_hash_table): Replace
8475 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8476 (compare_minimal_symbols, compact_minimal_symbols)
8477 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8478 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8479 of DEPRECATED_SYMBOL_MATCHES_NAME.
8480 (lookup_minimal_symbol_solib_trampoline): Ditto.
8481
5602984a
AC
84822003-03-10 Andrew Cagney <[email protected]>
8483
8484 * regcache.h (regcache_cooked_read_ftype): Define.
8485 (regcache_save, regcache_restore): Add a cooked_read parameter.
8486 * regcache.c (regcache_save, regcache_restore): Update.
8487 (do_cooked_read): New function.
8488 (regcache_cpy): Pass do_cooked_read to regcache_save and
8489 regcache_restore.
8490
8bedc050
AC
84912003-03-10 Andrew Cagney <[email protected]>
8492
8493 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8494 * gdbarch.h, gdbarch.c: Re-generate.
8495 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8496 * x86-64-tdep.h: Update.
8497 * x86-64-tdep.c (x86_64_init_abi): Update.
8498 * v850-tdep.c (v850_gdbarch_init): Update.
8499 * sparc-tdep.c (sparc_gdbarch_init): Update.
8500 * sh-tdep.c (sh_gdbarch_init): Update.
8501 * s390-tdep.c (s390_gdbarch_init): Update.
8502 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8503 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8504 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8505 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8506 * mips-tdep.c (mips_gdbarch_init): Update.
8507 * mcore-tdep.c (mcore_gdbarch_init): Update.
8508 * m68k-tdep.c (m68k_gdbarch_init): Update.
8509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8510 * ia64-tdep.c (ia64_gdbarch_init): Update.
8511 * i386-tdep.c (i386_gdbarch_init): Update.
8512 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8513 * hppa-tdep.c (hppa_gdbarch_init): Update.
8514 * h8300-tdep.c (h8300_gdbarch_init): Update.
8515 * frv-tdep.c (frv_gdbarch_init): Update.
8516 * cris-tdep.c (cris_gdbarch_init): Update.
8517 * avr-tdep.c (avr_gdbarch_init): Update.
8518 * arm-tdep.c (arm_gdbarch_init): Update.
8519 * alpha-tdep.c (alpha_gdbarch_init): Update.
8520 * sh-tdep.c (sh_init_extra_frame_info): Update.
8521 (sh64_init_extra_frame_info): Update.
8522 * ns32knbsd-nat.c (frame_num_args): Update.
8523 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8524 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8525 (xstormy16_frame_chain_valid): Update.
8526 * vax-tdep.c (vax_saved_pc_after_call): Update.
8527 * v850-tdep.c (v850_frame_chain): Update.
8528 (v850_pop_frame): Update.
8529 (v850_init_extra_frame_info): Update.
8530 * sparc-tdep.c (setup_arbitrary_frame): Update.
8531 * ns32k-tdep.c (umax_frame_num_args): Update.
8532 * s390-tdep.c (s390_pop_frame_regular): Update.
8533 * mn10300-tdep.c (mn10300_frame_chain): Update.
8534 (mn10300_pop_frame_regular): Update.
8535 (mn10300_init_extra_frame_info): Update.
8536 * mips-tdep.c (mips_init_frame_pc_first): Update.
8537 (mips_frame_chain): Update.
8538 (mips_pop_frame): Update.
8539 * mcore-tdep.c (mcore_frame_chain): Update.
8540 (mcore_pop_frame): Update.
8541 (mcore_init_extra_frame_info): Update.
8542 * arch-utils.c (init_frame_pc_default): Update.
8543 * m68k-tdep.c (isi_frame_num_args): Update.
8544 (delta68_frame_num_args): Update.
8545 (news_frame_num_args): Update.
8546 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8547 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8548 (alpha_frame_chain): Update.
8549 (alpha_pop_frame): Update.
8550 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8551 (hppa_init_extra_frame_info): Update.
8552 (hppa_frame_chain): Update.
8553 (hppa_frame_chain_valid): Update.
8554 * cris-tdep.c (cris_init_extra_frame_info): Update.
8555 * avr-tdep.c (avr_init_extra_frame_info): Update.
8556 * arm-tdep.c (arm_frame_chain_valid): Update.
8557 (arm_init_extra_frame_info): Update.
8558 (arm_pop_frame): Update.
8559 * frame.c (frame_pc_unwind): Update.
8560 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8561 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8562 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8563 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8564 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8565 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8566
12cc2063
AC
85672003-03-10 Andrew Cagney <[email protected]>
8568
8569 * gdbarch.sh (gdbarch_unwind_pc): New method.
8570 * gdbarch.h, gdbarch.c: Regenerate.
8571 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8572 but use read_pc and FRAME_SAVED_PC as fall backs.
8573 (frame_saved_regs_pc_unwind): Delete function.
8574 (trad_frame_unwinder): Update.
8575 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8576 (struct frame_unwind): Update.
8577 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8578 (dummy_frame_unwind): Update.
8579 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8580 (sentinel_frame_unwinder): Update.
8581 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8582 (d10v_frame_unwind): Update.
8583 (d10v_unwind_pc): New function.
8584 (d10v_gdbarch_init): Set unwind_pc.
8585
ef840a37
AC
85862003-03-10 Andrew Cagney <[email protected]>
8587
a2ce2e56
AC
8588 * gdbarch.h: Re-generate.
8589
ef840a37
AC
8590 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8591 PC.
8592 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8593 the PC register.
8594
08f3424b
MK
85952003-03-08 Mark Kettenis <[email protected]>
8596
8597 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8598
1248ede2
AC
85992003-03-08 Andrew Cagney <[email protected]>
8600
8601 * cli-out.c: Update copyright.
8602 (cli_out_data): Define typedef. Use instead of ui_out_data.
8603
f49bacc8
AC
86042003-03-08 Andrew Cagney <[email protected]>
8605
8606 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8607 the result.
8608
9b05f993
AC
86092003-03-07 Andrew Cagney <[email protected]>
8610
8611 * gdbarch.sh: Don't generate two macro definitions when an
8612 undefined macro taking no arguments.
8613 * gdbarch.h: Regenerate.
8ffd9b1b 8614
166f4c7b
ML
86152002-03-07 Michal Ludvig <[email protected]>
8616
8617 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8618 (x86_64_unwind_dummy_id): New functions.
8619 (x86_64_init_abi): Register these two new functions.
8620
6d686a84
ML
86212003-03-07 Michal Ludvig <[email protected]>
8622
8623 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8624 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8625 separate function.
8626 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8627
6314f104
AC
86282003-03-05 Andrew Cagney <[email protected]>
8629
8630 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8631 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8632 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8633 to use unwind_dummy_id when a dummy frame.
8634 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8635 predicate.
8636 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8637
ceea5145
AC
86382003-03-05 Andrew Cagney <[email protected]>
8639
8640 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8641 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8642 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8643 values.
8644
0d843116
AC
86452003-03-05 Andrew Cagney <[email protected]>
8646
8647 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8648 (struct d10v_unwind_cache): Delete field "frameless". Replace
8649 "next_addr" with "sp_offset". Add "r11_offset".
8650 (d10v_frame_unwind_cache): Update.
8651 (prologue_find_regs): Update. When "mv r11, sp", save the
8652 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8653 RN was saved in r11_offset.
8654
b2579786
AC
86552003-03-05 Andrew Cagney <[email protected]>
8656
8657 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8658 cached PC value in the next frame.
8659
218e5956
AC
86602003-03-05 Andrew Cagney <[email protected]>
8661
8662 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8663 "id_unwind_cache" with "id".
8664 (frame_id_unwind): Delete declaration.
8665 * frame.c (frame_id_unwind): Delete function.
8666 (get_prev_frame): Call the frame id unwind method directly. Store
8667 the returned next frame's ID value in NEXT_FRAME. Note that there
8668 is a problem with the wrong unwind ID being called with the wrong
8669 unwind cache.
8670
ed363b1b
DJ
86712003-03-05 Daniel Jacobowitz <[email protected]>
8672
8673 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8674
fe1f4a5e
DJ
86752003-03-05 James Ingham <[email protected]>
8676 Daniel Jacobowitz <[email protected]>
8677
8678 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8679 (auto_cp_abi): New variable.
8680 (current_cp_abi, num_cp_abis): Make static.
8681 (CP_ABI_MAX): Define.
8682 (cp_abis): Turn into an array.
8683 (value_virtual_fn_field): Fix formatting.
8684 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8685 takes a pointer.
8686 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8687 (list_cp_abis, _initialize_cp_abi): New functions.
8688 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8689 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8690 switch_to_cp_abi. Update prototype for register_cp_abi.
8691 * Makefile.in (cp-abi.o): Update dependencies.
8692 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8693 instead of switch_to_cp_abi.
8694 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8695 register_cp_abi.
8696 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8697 register_cp_abi.
8698 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8699
e4adbba9
DJ
87002003-03-05 Daniel Jacobowitz <[email protected]>
8701
8702 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8703 * dwarf2loc.c: Include "regcache.h".
8704 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8705 register_size.
8706 * Makefile.in (dwarf2loc.o): Update dependencies.
8707
91ccbfc1
TR
87082003-03-04 Theodore A. Roth <[email protected]>
8709
8710 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8711 number of io registers reported by remote target is not a multiple of
8712 step.
8713
3d4e8fd2
DC
87142003-03-04 David Carlton <[email protected]>
8715
8716 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8717 (lookup_symbol_aux_psymtabs): Update call to
8718 lookup_partial_symbol.
8719 (lookup_transparent_type, find_main_psymtab)
8720 (make_symbol_overload_list): Ditto.
8721
ed42d87b
KH
87222003-03-04 Kazu Hirata <[email protected]>
8723
8724 * MAINTAINERS (Write after approval): Update my email address.
8725
a0ed5532
AC
87262003-03-03 Andrew Cagney <[email protected]>
8727
8728 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8729 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8730 predicate. Replace MAX_REGISTER_RAW_SIZE.
8731 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8732 MAX_REGISTER_VIRTUAL_SIZE.
8733 * regcache.c (legacy_max_register_raw_size): New function.
8734 (legacy_max_register_virtual_size): New function.
8735 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8736 (MAX_REGISTER_RAW_SIZE): Define.
8737 (legacy_max_register_raw_size): Declare.
8738 (legacy_max_register_virtual_size): Declare.
8739 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8740 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8741 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8742 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8743 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8744 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8745 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8746 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8747 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8748 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8749 * vax-tdep.c (vax_gdbarch_init): Update.
8750 * v850-tdep.c (v850_gdbarch_init): Update.
8751 * sparc-tdep.c (sparc_gdbarch_init): Update.
8752 * sh-tdep.c (sh_gdbarch_init): Update.
8753 * s390-tdep.c (s390_gdbarch_init): Update.
8754 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8755 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8756 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8757 * mips-tdep.c (mips_gdbarch_init): Update.
8758 * mcore-tdep.c (mcore_gdbarch_init): Update.
8759 * m68k-tdep.c (m68k_gdbarch_init): Update.
8760 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8761 * ia64-tdep.c (ia64_gdbarch_init): Update.
8762 * i386-tdep.c (i386_gdbarch_init): Update.
8763 * hppa-tdep.c (hppa_gdbarch_init): Update.
8764 * h8300-tdep.c (h8300_gdbarch_init): Update.
8765 * frv-tdep.c (frv_gdbarch_init): Update.
8766 * cris-tdep.c (cris_gdbarch_init): Update.
8767 * avr-tdep.c (avr_gdbarch_init): Update.
8768 * arm-tdep.c (arm_gdbarch_init): Update.
8769 * alpha-tdep.c (alpha_gdbarch_init): Update.
8770 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8771 max_register_raw_size or max_register_virtual_size.
8772
8e437497
DC
87732003-03-03 David Carlton <[email protected]>
8774
8775 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8776 SYMBOL_MATCHES_NAME, add comment.
8777 (SYMBOL_MATCHES_NATURAL_NAME): New.
8778 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8779 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8780 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8781 * symtab.c (lookup_partial_symbol): Use
8782 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8783 unhelpful comment.
8784 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8785 SYMBOL_MATCHES_NAME.
8786 Fix for PR c++/33.
8787
25120b0d
DC
87882003-03-03 David Carlton <[email protected]>
8789
8790 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8791 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8792 by regexp matching against SYMBOL_NATURAL_NAME.
8793
78a11fb4
DC
87942003-03-03 David Carlton <[email protected]>
8795
8796 * linespec.c (find_method): Extract code into collect_methods.
8797 (collect_methods): New.
8798
645dd519
MK
87992003-03-02 Mark Kettenis <[email protected]>
8800
b4700d91
MK
8801 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8802 get_frame_base.
8803
645dd519
MK
8804 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8805 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8806
0aa7e1aa
SC
88072003-03-02 Stephane Carrez <[email protected]>
8808
8ffd9b1b 8809 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8810 and not regnum when summing the size of all registers up to regnum.
8811
f30ee0bc
AC
88122003-03-01 Andrew Cagney <[email protected]>
8813
8814 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8815 FRAME_INIT_SAVED_REGS.
8816 * gdbarch.h, gdbarch.c: Regenerate.
8817 * stack.c (frame_info): Update.
8818 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8819 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8820 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8821 * ns32k-tdep.c (ns32k_pop_frame): Update.
8822 * mips-tdep.c (mips_pop_frame): Update.
8823 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8824 * ia64-tdep.c (ia64_frame_chain): Update.
8825 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8826 (ia64_frameless_function_invocation): Update.
8827 (ia64_init_extra_frame_info): Update.
8828 (ia64_pop_frame_regular): Update.
8829 * frame.h (struct frame_info): Update comment.
8830 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8831 * frame.c (frame_saved_regs_register_unwind): Update.
8832 (frame_saved_regs_register_unwind): Update.
8833 (deprecated_generic_get_saved_register): Update.
8834 * cris-tdep.c: Update comment.
8835 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8836 Rename macro.
8837 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8838 * x86-64-tdep.c (x86_64_init_abi): Update.
8839 * vax-tdep.c (vax_gdbarch_init): Update.
8840 * v850-tdep.c (v850_gdbarch_init): Update.
8841 * sparc-tdep.c (sparc_gdbarch_init): Update.
8842 * sh-tdep.c (sh_gdbarch_init): Update.
8843 * s390-tdep.c (s390_gdbarch_init): Update.
8844 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8845 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8846 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8847 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8848 * mips-tdep.c (mips_gdbarch_init): Update.
8849 * mcore-tdep.c (mcore_gdbarch_init): Update.
8850 * m68k-tdep.c (m68k_gdbarch_init): Update.
8851 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8852 * ia64-tdep.c (ia64_gdbarch_init): Update.
8853 * i386-tdep.c (i386_gdbarch_init): Update.
8854 * frv-tdep.c (frv_gdbarch_init): Update.
8855 * avr-tdep.c (avr_gdbarch_init): Update.
8856 * arm-tdep.c (arm_gdbarch_init): Update.
8857 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8858
42fa7c0f
AC
88592003-03-01 Andrew Cagney <[email protected]>
8860
8861 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8862 option enum and switch. When no windows, set the interpreter to
8863 INTERP_CONSOLE.
8ffd9b1b 8864
49c7e338
AC
88652003-03-01 Andrew Cagney <[email protected]>
8866
8867 * main.c (captured_main): Replace magic option characters with an
8868 enum.
8869
e9582e71
AC
88702003-03-01 Andrew Cagney <[email protected]>
8871
8872 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8873 INIT_EXTRA_FRAME_INFO.
8874 * gdbarch.h, gdbarch.c: Regenerate.
8875 * arm-tdep.c: Update comments.
8876 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8877 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8878 * frame.h, avr-tdep.c: Ditto.
8879 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8880 (create_new_frame, legacy_get_prev_frame): Ditto.
8881 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8882 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8883 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8884 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8885 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8886 * v850-tdep.c (v850_gdbarch_init): Ditto.
8887 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8888 * sh-tdep.c (sh_gdbarch_init): Ditto.
8889 * s390-tdep.c (s390_gdbarch_init): Ditto.
8890 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8891 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8892 * mips-tdep.c (mips_gdbarch_init): Ditto.
8893 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8894 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8895 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8896 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8897 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8898 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8899 * frv-tdep.c (frv_gdbarch_init): Ditto.
8900 * cris-tdep.c (cris_gdbarch_init): Ditto.
8901 * avr-tdep.c (avr_gdbarch_init): Ditto.
8902 * arm-tdep.c (arm_gdbarch_init): Ditto.
8903 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8904 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8905
35cac7cf
AC
89062003-03-01 Andrew Cagney <[email protected]>
8907
8908 * gdbarch.sh (register_type): New function with predicate.
8909 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8910 * gdbarch.h, gdbarch.c: Re-generate.
8911 * arch-utils.c (generic_register_byte): Use generic_register_size.
8912 (generic_register_size): When available, use
8913 gdbarch_register_type.
8914 * regcache.c (init_regcache_descr): When available, initialize the
8915 register type array using gdbarch_register_type. If the
8916 architecture supplies gdbarch_register_type, do not use the legacy
8917 regcache layout.
8918 * d10v-tdep.c (d10v_register_type): Replace
8919 d10v_register_virtual_type.
8920 (d10v_gdbarch_init): Set register_type instead of
8921 register_virtual_type.
8922
7b83296f
AC
89232003-03-01 Andrew Cagney <[email protected]>
8924
8925 * Makefile.in (ax-gdb.o): Update dependencies.
8926 * ax-gdb.c: Include "regcache.h".
8927 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8928 * findvar.c (value_of_register): Ditto.
8929 * infcmd.c (default_print_registers_info): Ditto.
8930
eadc1c87
MK
89312003-03-01 Mark Kettenis <[email protected]>
8932
8933 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8934 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8935
14143612
MK
89362003-03-01 Mark Kettenis <[email protected]>
8937
8938 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8939 of STREQ.
8940
a55cc764
DJ
89412003-02-28 Daniel Jacobowitz <[email protected]>
8942
8943 * Makefile.in (dwarf2loc.o): Update dependencies.
8944 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8945 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8946 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8947 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8948 (locexpr_tracepoint_var_ref): New function.
8949 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8950
08a617da
AC
89512003-02-28 Andrew Cagney <[email protected]>
8952
8953 * regcache.c (register_size): New function.
8954 * regcache.h (register_size): Declare
8955 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8956 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8957
4224873a
DC
89582003-02-28 David Carlton <[email protected]>
8959
8960 * linespec.c (decode_compound): Extract code into find_method.
8961 (find_method): New.
8962
ccdc5d7f
JB
89632003-02-28 J. Brobecker <[email protected]>
8964
8965 * Makefile.in: Add rules to build and link in observer.o.
8966
974e8ced
JB
89672003-02-27 J. Brobecker <[email protected]>
8968
8969 * observer.c: Minor comments edits.
8970
7a28f973
JB
89712003-02-27 J. Brobecker <[email protected]>
8972
8973 * observer.h, observer.c: New file.
8974
27cddce2
AC
89752003-02-27 Andrew Cagney <[email protected]>
8976
8977 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8978
b94a41a1
SC
89792003-02-27 Stephane Carrez <[email protected]>
8980
8981 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8982 (M6812_OP_STS_EXT): Likewise.
8983 (m6811_prologue): Use the above to recognize prologue.
8984 (m6812_prologue): Likewise.
8985
c8be8951
DC
89862003-02-27 David Carlton <[email protected]>
8987
8988 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8989 SYMBOL_PRINT_NAME.
8990 (compare_psymbols): Ditto.
8991 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8992
d05bb1fc
MS
89932003-02-27 Michael Snyder <[email protected]>
8994
4e845cd3
MS
8995 * f-lang.c (build_fortran_types): New function.
8996 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
8997 * doublest.c (extract_floating): Fix warning text.
8998
f3824013
AC
89992003-02-27 Andrew Cagney <[email protected]>
9000
9001 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9002 predicate. Replaces PUSH_DUMMY_FRAME.
9003 * gdbarch.h, gdbarch.c: Regnerate.
9004 * valops.c (hand_function_call): Update. Call
9005 generic_push_dummy_frame directly.
9006 * vax-tdep.c (vax_gdbarch_init): Update.
9007 * sparc-tdep.c (sparc_gdbarch_init): Update.
9008 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9009 * m68k-tdep.c (m68k_gdbarch_init): Update.
9010 * hppa-tdep.c (hppa_gdbarch_init): Update.
9011 * alpha-tdep.c (alpha_gdbarch_init): Update.
9012 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9013 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9014 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9015 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9016 push_dummy_frame to generic_push_dummy_frame.
9017 * v850-tdep.c (v850_gdbarch_init): Ditto.
9018 * sh-tdep.c (sh_gdbarch_init): Ditto.
9019 * s390-tdep.c (s390_gdbarch_init): Ditto.
9020 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9021 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9022 * mips-tdep.c (mips_gdbarch_init): Ditto.
9023 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9024 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9025 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9026 * i386-tdep.c (i386_gdbarch_init): Ditto.
9027 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9028 * frv-tdep.c (frv_gdbarch_init): Ditto.
9029 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9030 * cris-tdep.c (cris_gdbarch_init): Ditto.
9031 * avr-tdep.c (avr_gdbarch_init): Ditto.
9032 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9033
ad188201
KB
90342003-02-26 Kevin Buettner <[email protected]>
9035
9036 * mips-tdep.c (show_mips_abi): New function.
9037 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9038 command ``show mips abi''.
9039
6b37567a 90402003-02-26 Jeff Johnston <[email protected]>
8ffd9b1b 9041
6b37567a 9042 From Elena Zannoni <[email protected]>
8ffd9b1b 9043 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9044 more sline entries have been seen for the function.
9045
d3e0a5bf
MC
90462003-02-26 Michael Chastain <[email protected]>
9047
9048 * configure: Regenerate with autoconf 000227.
9049
18972eea
MC
90502003-02-26 Michael Chastain <[email protected]>
9051
9052 Close PR build/660.
9053 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9054 for old libc5/glibc.
9055 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9056
0bbde931
KW
90572003-02-26 Kris Warkentin <[email protected]>
9058
9059 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9060 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9061
27ca5dad
MC
90622003-02-26 Michael Chastain <[email protected]>
9063
9064 * configure.in: New variable HAVE_UINTPTR_T.
9065 * configure, config.in: Regenerated.
9066
6f88d630
DJ
90672003-02-26 Daniel Jacobowitz <[email protected]>
9068
9069 Fix PR build/1097.
9070 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9071
b14185ce
AC
90722003-02-25 Andrew Cagney <[email protected]>
9073
9074 * frame.c (get_prev_frame): Add comment on check for
9075 inside_entry_func. Only check for inside_entry_file when not a
9076 dummy and not a sentinel. Check that the new frame is not inner
9077 to the old frame.
9078
ac2bd0a9
AC
90792003-02-25 Andrew Cagney <[email protected]>
9080
9081 * frame.c (frame_debug): New variable.
9082 (_initialize_frame): Add "set/show debug frame" command.
9083 (get_prev_frame): When frame_debug, print reason why unwind
9084 failed.
9085
b18a0fd2
MC
90862003-02-25 Michael Chastain <[email protected]>
9087
9088 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9089 to avoid uintptr_t definition problems.
9090
22abf04a
DC
90912003-02-25 David Carlton <[email protected]>
9092
9093 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9094 (SYMBOL_LINKAGE_NAME): Ditto.
9095 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9096 SYMBOL_LINKAGE_NAME.
9097 (struct general_symbol_info): Expand comment.
9098 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9099 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9100 (SYMBOL_MATCHES_REGEXP): Ditto.
9101 * symtab.c (symbol_natural_name): New function.
9102 * objfiles.h: Replace all uses of SYMBOL_NAME by
9103 DEPRECATED_SYMBOL_NAME.
9104 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9105 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9106 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9107 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9108 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9109 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9110 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9111 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9112 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9113 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9114 * ada-exp.y: Ditto.
9115 * ada-exp.y: Update copyright.
9116 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9117 * cp-valprint.c: Ditto.
9118
1a5848f6
JJ
91192003-02-25 Jeff Johnston <[email protected]>
9120
9121 * infptrace.c (detach): Do not flag error if ptrace detach fails
9122 and errno is set to ESRCH.
9123
7343d46a
AC
91242003-02-24 Andrew Cagney <[email protected]>
9125
9126 * infptrace.c (udot_info): Change type of udot_off to long. Use
9127 paddr when printing udot_off's value.
9128
49fa1dc2
DC
91292003-02-24 David Carlton <[email protected]>
9130
9131 * symtab.c (make_symbol_overload_list): Only read in partial
9132 symtabs containing a matching partial symbol.
9133
0fe19209
DC
91342003-02-24 David Carlton <[email protected]>
9135
9136 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9137 do the comparison, not strcmp.
9138 * symfile.c (compare_psymbols): Ditto.
9139 * defs.h: Declare strcmp_iw_ordered.
9140 * utils.c (strcmp_iw_ordered): New function.
9141
8e3ee7b5
JB
91422003-02-24 Jim Blandy <[email protected]>
9143
9144 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9145 support, shared libs): Remove my name from here, to better reflect
9146 reality.
9147
7df1a324
KW
91482003-02-24 Kris Warkentin <[email protected]>
9149
9150 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9151 (target_ops): Add to_have_continuable_watchpoint.
9152 * target.c (update_current_target): Add INHERIT line for
9153 to_have_continuable_watchpoint.
9154 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9155 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9156 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9157 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9158
d1c76907
EZ
91592003-02-24 Elena Zannoni <[email protected]>
9160
9161 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9162 maintainership.
9163
2610b0bf
KW
91642003-02-24 Kris Warkentin <[email protected]>
9165
f46169db
KW
9166 * solib.c (solib_open): Call target defined search function after
9167 failing with solib-search-path.
9168 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9169 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9170
9a3c34fe
KW
91712003-02-24 Kris Warkentin <[email protected]>
9172
f46169db 9173 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9174
2417dd25
SC
91752003-02-23 Stephane Carrez <[email protected]>
9176
9177 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9178
b631436b
SC
91792003-02-22 Stephane Carrez <[email protected]>
9180
9181 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9182 (m68hc11_add_reggroups): New function.
9183 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9184 (m68hc11_gdbarch_init): Install the reggroups.
9185 (_initialize_m68hc11_tdep): Initialize them.
9186
0aa8c1e4
JW
91872003-02-21 James E Wilson <[email protected]>
9188
9189 * MAINTAINERS: Update my email address.
9190
50ceaba5
DC
91912003-02-21 David Carlton <[email protected]>
9192
9193 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9194
4c2df51b
DJ
91952003-02-21 Daniel Jacobowitz <[email protected]>
9196
9197 Based on a patch from Daniel Berlin ([email protected]).
9198 * symtab.h: Add opaque declarations of struct axs_value and
9199 struct agent_expr.
9200 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9201 (struct location_funcs): New type.
9202 (struct symbol): Add "loc" to aux_value.
9203 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9204 * dwarf2read.c: Include "dwarf2expr.h".
9205 (dwarf2_symbol_mark_computed): New function.
9206 (read_func_scope): Use it.
9207 (var_decode_location): New function.
9208 (new_symbol): Use it.
9209 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9210
9211 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9212 (dwarf2expr_h, dwarf2loc_h): New variables.
9213 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9214 (dwarf2expr.o, dwarf2loc.o): New rules.
9215 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9216 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9217 LOC_COMPUTED_ARG.
9218 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9219 * m2-exp.y (yylex): Likewise.
9220 * printcmd.c (address_info, print_frame_args): Likewise.
9221 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9222 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9223 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9224 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9225 * symtab.c (lookup_block_symbol): Likewise.
9226
5784d15e
AF
92272003-02-20 Adam Fedor <[email protected]>
9228
9229 * symtab.h: Remove objc_specific struct
9230 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9231 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9232 Have language_objc use cplus_specific struct.
9233
d4cad8db
TT
92342003-02-20 Tom Tromey <[email protected]>
9235
9236 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9237 TYPE_NAME, when printing a String value. PR java/1075.
9238
2f9a90b4
AF
92392003-02-20 Adam Fedor <[email protected]>
9240
d38074a8 9241 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9242 * objc-lang.c (find_methods): Make static.
2f9a90b4 9243
6f17862b
CF
92442003-02-20 Christopher Faylor <[email protected]>
9245
9246 * win32-nat.c (get_image_name): Check return value from
9247 ReadProcessMemory.
9248 (child_xfer_memory): Ditto.
9249
715d1656
AO
92502003-02-20 Alexandre Oliva <[email protected]>
9251
9252 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9253 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9254 '${exec_prefix}' (in addition to the expansion thereof) as
9255 relocatable.
9256 * configure: Rebuilt.
9257
b1262a02
DC
92582003-02-20 David Carlton <[email protected]>
9259
9260 * symtab.c (search_symbols): Revert the search_symbols part of my
9261 2002-12-23 patch. Add comment.
9262
7134143f
DJ
92632002-02-20 Daniel Jacobowitz <[email protected]>
9264
9265 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9266 * dbxread.c (elfstab_build_psymtabs): Don't call
9267 install_minimal_symbols.
9268 (stabsect_build_psymtabs): Likewise.
9269 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9270 earlier.
9271 * somread.c (som_symfile_read): Call install_minimal_symbols
9272 and do_cleanups earlier.
9273 * nlmread.c (nlm_symfile_read): Likewise.
9274 * mdebugread.c (elfmdebug_build_psymtabs): Call
9275 install_minimal_symbols and make appropriate cleanups.
9276
cf466558
KB
92772003-02-20 Kevin Buettner <[email protected]>
9278
9279 * solib.c (reload_shared_libraries): New function.
9280 (_initialize_solib): Add callbacks for ``set solib-search-path''
9281 and ``set solib-absolute-prefix''.
9282
de5ad195
DC
92832003-02-20 David Carlton <[email protected]>
9284
9285 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9286 expand comment.
9287 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9288 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9289 * ada-typeprint.c (ada_typedef_print): Ditto.
9290 * ax-gdb.c (gen_var_ref): Ditto.
9291 * breakpoint.c (print_one_breakpoint): Ditto.
9292 * buildsym.c (finish_block): Ditto.
9293 * c-valprint.c (c_val_print): Ditto.
9294 * expprint.c (print_subexp): Ditto.
9295 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9296 * infcmd.c (jump_command): Ditto.
9297 * linespec.c (decode_line_2, decode_compound): Ditto.
9298 * maint.c (maintenance_translate_address): Ditto.
9299 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9300 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9301 Ditto.
8ffd9b1b
AJ
9302 * p-valprint.c (pascal_val_print): Ditto.
9303 * stabsread.c (define_symbol): Ditto.
de5ad195 9304 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9305 (print_frame_arg_vars, return_command): Ditto.
9306 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9307 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9308 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9309 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9310 (rbreak_command): Ditto.
9311 * tracepoint.c (tracepoints_info): Ditto.
9312 * typeprint.c (typedef_print): Ditto.
9313 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9314 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9315 * ada-typeprint.c: Update Copyright.
9316 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9317 * tracepoint.c, cli/cli-cmds.c: Ditto.
9318
f796e4be
KB
93192003-02-20 Kevin Buettner <[email protected]>
9320
9321 * frame.c (generic_unwind_get_saved_register): Make non-static.
9322 * frame.h (generic_unwind_get_saved_register): Declare.
9323 * mips-tdep.c (read_next_frame_reg): Fetch register from
9324 current regcache when frame is NULL.
9325 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9326 that must be NULL.
9327 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9328 instead of frame_register_unwind().
9329
836cc9f4
AC
93302003-02-20 Andrew Cagney <[email protected]>
9331
9332 * remote-sim.c (gdbsim_insert_breakpoint)
9333 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9334 code.
9335
501eef12
AC
93362003-02-20 Andrew Cagney <[email protected]>
9337
9338 * remote.c (_initialize_remote): Add commands "set/show remote
9339 hardware-watchpoint-limit" and "set/show remote
9340 hardware-breakpoint-limit".
9341 (remote_hw_watchpoint_limit): Initialize to -1.
9342 (remote_hw_breakpoint_limit): Ditto.
9343 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9344
1b6bc7e0
CF
93452003-02-19 Raoul Gough <[email protected]>
9346
9347 * coff-pe-read.c: New file - support reading of minimal symbols from a
9348 portable executable using the export table.
9349 * coff-pe-read.h: New file.
9350 * coffread.c: Include coff-pe-read.h.
9351 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9352 debugging symbols found.
9353 * Makefile.in (SFILES): Add coff-pe-read.o.
9354 (coff_pe_read_h): Define.
9355 (COMMON_OBS): Add coff-pe-read.o.
9356 (coffread.o): Add coff_pe_read_h dependency.
9357 (coff-pe-read.o): New target.
9358
fe898f56
DC
93592003-02-19 David Carlton <[email protected]>
9360
9361 * Makefile.in (SFILES): Add block.c.
9362 (block_h): New.
9363 (COMMON_OBS): Add block.o.
9364 (block.o): New.
9365 (x86-64-tdep.o): Add $(block_h).
9366 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9367 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9368 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9369 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9370 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9371 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9372 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9373 * value.h: Add opaque declaration for struct block.
9374 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9375 * ada-lang.h: Ditto.
9376 * x86-64-tdep.c: #include "block.h"
9377 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9378 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9379 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9380 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9381 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9382 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9383 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9384 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9385 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9386 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9387 * symtab.c (block_function): Ditto.
9388 (contained_in): Ditto.
9389 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9390 block.h. Add opaque declaration for struct block.
9391 * symtab.h: Move block_function and contained_in declarations to
9392 block.h. Add opaque declarations for struct block, struct
9393 blockvector.
9394 (struct block): Move to block.h.
9395 (struct blockvector): Ditto.
9396 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9397 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9398 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9399 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9400 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9401 Ditto.
9402 * block.c: New file.
9403 * block.h: New file.
9404
173345b5
TR
94052003-02-19 Theodore A. Roth <[email protected]>
9406
9407 * avr-tdep.c (avr_extract_return_value): Remove function.
9408 (avr_store_return_value): Remove function.
9409 (avr_extract_struct_value_address): Remove function.
9410 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9411
338ef23d
AC
94122003-02-19 Andrew Cagney <[email protected]>
9413
9414 * rs6000-tdep.c: Include "gdb_assert.h".
9415 (registers_e500): Add "acc" and "spefscr".
9416 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9417 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9418 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9419 really is "r0".
9420 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9421
5412f5f3
KS
94222003-02-18 Keith Seitz <[email protected]>
9423
9424 * Makefile.in: Add gdbtk-interps.c.
9425
881324eb
KB
94262003-02-18 Kevin Buettner <[email protected]>
9427
9428 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9429 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9430
6a2f5abf
AC
94312003-02-18 Andrew Cagney <[email protected]>
9432
9433 * symtab.h (struct objfile): Add opaque declaration.
9434
54c7009d
EZ
94352003-02-18 Elena Zannoni <[email protected]>
9436
9437 From Jim Ingham <[email protected]>:
fbe586ae
RH
9438 * dbxread.c (process_one_symbol): Use last_function_start rather
9439 than function_start_offset to find the real beginning of the
9440 current function. The latter is just the text section offset on
9441 some systems, the former is always the real function start.
54c7009d 9442
7ee6d7eb
AC
94432003-02-17 Andrew Cagney <[email protected]>
9444
9445 * configure.in: Revert ${target} != ${host}.
9446
2846da9b
AC
94472003-02-17 Andrew Cagney <[email protected]>
9448
9449 * configure.in (Makefile): Use the test ${target} != ${host},
9450 instead of the absence of the "nm.h" file, to determine of the
9451 configuration non-native.
9452 * configure: Regenerate.
8ffd9b1b 9453
3b27aeea
EZ
94542003-02-14 Elena Zannoni <[email protected]>
9455
fbe586ae 9456 From Brian Ford <[email protected]>
3b27aeea
EZ
9457
9458 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9459 conditionalize tui_active test.
9460 (lookup_cmd_1): Ditto.
9461
b0b1c2c0
MK
94622003-02-14 Mark Kettenis <[email protected]>
9463
9464 * configure.in: Add check for _etext.
9465 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9466 available.
9467 * config.in, configure: regenerated.
9468
8f05cde5
DJ
94692003-02-14 Daniel Jacobowitz <[email protected]>
9470
9471 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9472
021e7609
AC
94732003-02-14 Andrew Cagney <[email protected]>
9474
9475 * main.c (tui_version): Delete variable.
9476 (captured_main): When --tui, set interpreter_p to "tui" instead of
9477 enabling tui_version.
9478 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9479 tui_version.
9480 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9481 * cli/cli-cmds.c (disassemble_command): Ditto.
9482 * defs.h (tui_version): Delete declaration.
9483 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9484 (tui-interp.o): Add rules.
9485 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9486
e325dcec
CF
94872003-02-14 Christopher Faylor <[email protected]>
9488
36ffb041 9489 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9490 just-loaded dll.
9491
c4f90d87
JM
94922003-02-12 Jason Molenda ([email protected])
9493
fbe586ae
RH
9494 * symmisc.c (print_objfile_statistics): Include information about
9495 the number of psymtabs and symtabs in each object file.
c4f90d87 9496
e46e5ccd
KS
94972003-02-13 Keith R Seitz <[email protected]>
9498
9499 * main.h (struct captured_main_args): Add interpreter_p.
9500 * main.c (captured_main): Initialize interpreter_p from context.
9501 * gdb.c (main): Set interpreter_p argument.
9502 * Makefile.in (gdb.o): Add dependency for interps.h.
9503
fe97fe9c
AC
95042003-02-12 Andrew Cagney <[email protected]>
9505
9506 * event-top.c (cli_command_loop): Delete declaration.
9507 (_initialize_event_loop): Delete function setting event_loop_hook.
9508 * event-top.h (cli_command_loop): Declare. Update copyright.
9509 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9510 * interps.c (current_interp_command_loop): When event_loop_p, call
9511 cli_command_loop.
9512
1cdac4ef
AC
95132003-02-12 Andrew Cagney <[email protected]>
9514
9515 * interps.h (interp_command_loop_ftype): Change return type to
9516 void.
9517
48037ead
ML
95182003-02-12 Michal Ludvig <[email protected]>
9519
9520 * x86-64-tdep.c (x86_64_extract_return_value)
9521 (x86_64_store_return_value): Use regcache instead of regbuf.
9522 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9523 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9524
033afc63
AC
95252003-02-11 Andrew Cagney <[email protected]>
9526
9527 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9528 * aclocal.m4: Regenerate.
9529 * configure: Regenerate.
9530
9531 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9532 TCL_LD_SEARCH_FLAGS.
9533
40d02bca
ML
95342003-02-10 Michal Ludvig <[email protected]>
9535
9536 * dwarf2cfi.c: Reindented.
9537
11308a41
AC
95382003-02-09 Andrew Cagney <[email protected]>
9539
9540 * interps.c (clear_interpreter_hooks): Convert function definition
9541 to ISO C.
9542
e1c1c0f6
DC
95432003-02-07 David Carlton <[email protected]>
9544
9545 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9546
ab5d3da6
KB
95472003-02-07 Kevin Buettner <[email protected]>
9548
9549 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9550 (struct type): ...to here.
9551 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9552 field.
9553 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9554 (replace_type): Set length on all type variants for a given type.
9555
b8a92b82
AC
95562003-02-07 Andrew Cagney <[email protected]>
9557
9558 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9559 <sys/stat.h>.
9560 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9561
5cb316ef
AC
95622003-02-06 Andrew Cagney <[email protected]>
9563
2555fe1a
AC
9564 * Makefile.in (symm-nat.o): Update dependencies.
9565 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9566 (lynx-nat.o, ia64-linux-nat.): Ditto.
9567 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9568 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9569 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9570
44270758
AC
9571 * Makefile.in (inflow_h): Define.
9572 (procfs.o, inflow.o, procfs.o): Update dependencies.
9573 * inftarg.c (child_stop): Delete extern declaration of
9574 inferior_process_group. Include "inflow.h".
9575 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9576 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9577 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9578 (our_process_group, inferior_process_group): Extern declarations.
9579
df8f7274
AC
9580 * procfs.c: Include "gdb_assert.h".
9581
5cb316ef
AC
9582 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9583 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9584 * jv-typeprint.c (java_type_print_base): Ditto.
9585 * typeprint.c (typedef_print): Eliminate STREQ.
9586 * cli/cli-script.c (define_command, define_command): Ditto.
9587 * main.c (captured_main): Ditto.
9588 * values.c (lookup_internalvar): Ditto.
9589 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9590 within `if' conditional.
9591 * linespec.c (decode_line_2): Ditto.
9592 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9593 (bfd_openw_with_cleanup): Ditto.
9594
2a28ccea
MK
95952003-02-07 Mark Kettenis <[email protected]>
9596
9597 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9598 legacy_extract_return_value and store_return_value to
9599 legacy_return_value.
9600
786b8124
CF
96012003-02-06 Raoul Gough <[email protected]>
9602
9603 * win32-nat.c (get_relocated_section_addrs): New function. Find
9604 section load addresses for symbol handling in relocated DLLs.
9605 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9606
b871e4ec
FF
96072003-02-05 Fred Fish <[email protected]>
9608
9609 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9610 '=' and '!='.
9611 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9612 with '&' and '=='.
9613 (angel_RDI_info): Ditto.
9614 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9615 with '&' and '!='.
9616 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9617
4389a95a 96182003-02-05 Jim Ingham <[email protected]>
fbe586ae
RH
9619 Keith Seitz <[email protected]>
9620 Elena Zannoni <[email protected]>
9621 Andrew Cagney <[email protected]>
4389a95a
AC
9622
9623 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9624 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9625 (SUBDIR_MI_OBS): Add "mi-interp.o".
9626 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9627 (SFILES): Add "interps.c".
9628 (COMMON_OBS): Add "interps.o".
9629 (interps_h, mi_main_h): Define.
9630 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9631 (mi-main.o, main.o, event-top.o): Update dependencies.
9632 * cli/cli-interp.c: New file.
9633 * interps.h, interps.c: New files.
9634 * top.c: (gdb_init): Don't install the default interpreter, handed
9635 by captured_main.
9636 * main.c: Include "interps.h".
9637 (interpreter_p): Note that it should malloc'ed.
9638 (captured_command_loop): Call current_interp_command_loop.
9639 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9640 xfree and xstrdup when updating interpreter_p. Install the
9641 default interpreter. Add hack to stop mi1's copyright notice
9642 being encoded.
9643 * event-top.h (gdb_setup_readline): Declare.
9644 (gdb_disable_readline): Declare.
9645 * event-top.c: Include "interps.h".
9646 (display_gdb_prompt): Call current_interp_display_prompt_p.
9647 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9648 gdb_stdlog, and gdb_stdtarg.
9649 (_initialize_event_loop): Don't call gdb_setup_readline.
9650 * cli-out.c (cli_out_set_stream): New function.
9651 * cli-out.h (cli_out_set_stream): Declare.
9652
ff3b5810
MK
96532003-02-06 Mark Kettenis <[email protected]>
9654
9655 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9656 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9657 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9658 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9659 config/i386/i386v42mp.mt: Removed.
9660
5b729aa5
MK
96612003-02-05 Mark Kettenis <[email protected]>
9662
9663 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9664 GDB_OSABI_SOLARIS.
9665
8cc15142
MC
96662003-02-05 Michael Chastain <[email protected]>
9667
9668 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9669 2.12.1 and earlier versions.
9670
5aa5d4b9
AC
96712003-02-05 Andrew Cagney <[email protected]>
9672
9673 Remove orphaned hosts, targets and files.
9674 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9675 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9676 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9677 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9678 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9679 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9680 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9681 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9682 * config/sparc/tm-sp64sim.h: Delete.
9683 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9684 hosts.
9685 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9686 mips*-dec-mach3* targets.
9687
b68767c1
MC
96882003-02-04 Michael Chastain <[email protected]>
9689
9690 * NEWS: Fix typo: sepcifying -> specifying.
9691
5ae7ca1d
MC
96922003-02-04 Michael Chastain <[email protected]>
9693
9694 * dwarfread.c: Add documentation on the state of dwarf-1,
9695 looking towards obsoletion.
9696
d08a4280
MC
96972003-02-03 Michael Chastain <[email protected]>
9698
9699 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9700 gdb/testsuite/gdb.c++/pr-1023.exp.
9701
e9be73e4
AC
97022003-02-04 Andrew Cagney <[email protected]>
9703
9704 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9705 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9706
9707 * utils.c (init_page_info): Delete reference to MPW in comments.
9708 * main.c (captured_main): Delete #ifdef MPW.
9709
05d57f6f
AC
97102003-02-04 Andrew Cagney <[email protected]>
9711
8ffd9b1b 9712 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9713 * monitor.c (monitor_expect): Obsolete reference to m32r.
9714 * configure.tgt: Mark m32r-*-elf* as obsolete.
9715 * MAINTAINERS: Mark m32k as obsolete.
9716 * m32r-rom.c: Obsolete file.
9717 * config/m32r/m32r.mt: Obsolete file.
9718 * config/m32r/tm-m32r.h: Obsolete file.
9719 * m32r-stub.c: Obsolete file.
9720 * m32r-tdep.c: Obsolete file.
9721
8b0e5691
AC
97222003-02-04 Andrew Cagney <[email protected]>
9723
9724 * NEWS: Mention that the z8k-zilog-none is obsolete.
9725 * MAINTAINERS: Mark z8k as obsolete.
9726 * configure.tgt: Obsolete the z8k-*-coff* target.
9727 * config/z8k/z8k.mt: Obsolete file.
9728 * config/z8k/tm-z8k.h: Obsolete file.
9729 * z8k-tdep.c: Obsolete file.
9730
67f16606
AC
97312003-02-04 Andrew Cagney <[email protected]>
9732
9733 * NEWS: Mention that the mn10200-elf is obsolete.
9734 * configure.tgt: Obsolete mn10200-*-* target.
9735 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9736 mention that the mn10200 is obsolete.
9737 * breakpoint.h: Ditto.
9738 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9739 * config/mn10200/mn10200.mt: Obsolete file.
9740 * config/mn10200/tm-mn10200.h: Obsolete file.
9741 * mn10200-tdep.c: Obsolete file.
9742
fd2299bd
AC
97432003-02-04 Andrew Cagney <[email protected]>
9744
9745 * MAINTAINERS: Mark h8500 as obsolete.
9746 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9747 * findvar.c (value_from_register): Ditto.
9748 * h8500-tdep.c: Mark file as obsolete.
9749 * config/h8500/h8500.mt: Ditto.
9750 * config/h8500/tm-h8500.h: Ditto.
9751 * NEWS: Mention that h8500 is obsolete.
9752
eb9a305d
DC
97532003-02-04 David Carlton <[email protected]>
9754
9755 * objfiles.c (allocate_objfile): Always set name. Add comment at
9756 start of function.
9757 * jv-lang.c (get_dynamics_objfile): Add comment.
9758
406fc7fb
DC
97592003-02-04 David Carlton <[email protected]>
9760
9761 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9762 * printcmd.c (build_address_symbolic): Replace uses of
9763 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9764 SYMBOL_NAME, and asm_demangle.
9765 Update copyright.
9766
93d91629
DC
97672003-02-04 David Carlton <[email protected]>
9768
9769 * linespec.c (decode_compound): Extract code into
9770 lookup_prefix_sym.
9771 (lookup_prefix_sym): New function.
9772
1c5cb38e
DC
97732003-02-04 David Carlton <[email protected]>
9774
9775 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9776 FLOAT_COERCION_BADNESS.
9777 * gdbtypes.c (rank_one_type): Replace all uses of
9778 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9779
0cf824c9
JB
97802003-02-04 Jim Blandy <[email protected]>
9781
9782 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9783 section, let dwarf_macinfo_section point to it, not
9784 dwarf_loc_section.
9785
a2d356b0
DJ
97862003-02-04 Daniel Jacobowitz <[email protected]>
9787
9788 Pointed out by Anton Blanchard <[email protected]>.
9789 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9790 (ppc_linux_at_sigtramp_return_path): Use it.
9791
2de7ced7
DJ
97922003-02-04 Daniel Jacobowitz <[email protected]>
9793
9794 * defs.h (streq): Add prototype.
9795 * utils.c (streq): New function.
9796
9797 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9798 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9799 * mdebugread.c (new_symbol): Likewise.
9800 * stabsread.c (define_symbol): Likewise.
9801 * coffread.c (process_coff_symbol): Likewise.
9802 * dwarfread.c (new_symbol): Likewise.
9803
9804 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9805 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9806 here.
9807 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9808 SYMBOL_INIT_DEMANGLED_NAME.
9809 * objfiles.c: Include "hashtab.h".
9810 (allocate_objfile): Call htab_set_functions_ex for the
9811 demangled_names_hash.
9812 (free_objfile): Call htab_delete for the demangled_names_hash.
9813 * objfiles.h (struct htab): Add declaration.
9814 (struct objfile): Add demangled_names_hash.
9815 * symfile.c: Include "hashtab.h".
9816 (reread_symbols): Call htab_delete for the demangled_names_hash.
9817 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9818 SYMBOL_NAME in the bcache.
9819 * symtab.c: Include "hashtab.h". Update comments.
9820 (create_demangled_names_hash, symbol_set_names): New functions.
9821 (symbol_find_demangled_name): New function, broken out from
9822 symbol_init_demangled_names.
9823 (symbol_init_demangled_names): Use it.
9824 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9825 (SYMBOL_SET_NAMES): New macro.
9826 (symbol_set_names): Add prototype.
9827
15831452
JB
98282003-02-03 Jim Blandy <[email protected]>
9829
9830 Use a single, consistent representation for an empty minimal
9831 symbol table in an objfile.
9832 * objfiles.c (terminate_minimal_symbol_table): New function.
9833 (allocate_objfile): Call it.
9834 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9835 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9836 non-NULL.
15831452
JB
9837 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9838 objfile has minimal symbols, compare minimal_symbol_count to zero,
9839 instead of comparing msymbols with NULL.
9840 * objfiles.c (have_minimal_symbols): Same.
9841 * solib-sunos.c (solib_add_common_symbols): Call
9842 terminate_minimal_symbol_table.
9843 * symfile.c (reread_symbols): Same.
8ffd9b1b 9844
ffc65945
KB
98452003-02-03 Kevin Buettner <[email protected]>
9846
9847 * s390-tdep.c (s390_address_class_type_flags)
9848 (s390_address_class_type_flags_to_name)
9849 (s390_address_class_name_to_type_flags): New functions.
9850 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9851 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9852
f211c6d4
MS
98532003-02-03 Michael Snyder <[email protected]>
9854
9855 * arm-tdep.c: Fix spell-o in comment.
9856
659b0389
ML
98572003-02-03 Michal Ludvig <[email protected]>
9858
9859 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9860 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9861 error messages to contain BFD filename.
659b0389 9862
3b31d625
EZ
98632003-02-02 Elena Zannoni <[email protected]>
9864
997b089a 9865 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9866 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9867 (do_mixed_source_and_assembly): Use
9868 make_cleanup_ui_out_tuple_begin_end and
9869 make_cleanup_ui_out_tuple_begin_end.
9870 (do_mixed_source_and_assembly): Ditto.
9871 * thread.c (do_captured_list_thread_ids): Ditto.
9872 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9873 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9874 ui_out_tuple_end): Delete prototypes.
9875 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9876 ui_out_list_end, ui_out_tuple_end): Delete.
9877
9878 From Kevin Buettner <[email protected]>:
9879 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9880 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9881 (do_cleanup_table_end): New functions.
9882 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9883 Use cleanups to invoke_ui_out_tuple_end().
9884 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9885 * cli/cli-setshow.c (cmd_show_list): Use
9886 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9887
5b181d62
AC
98882003-02-02 Andrew Cagney <[email protected]>
9889
9890 * frame.c (frame_unwind_register): New function.
9891 (frame_unwind_unsigned_register): Use.
9892 (frame_unwind_signed_register): Use.
9893 (frame_read_register): New function.
9894 * frame.h (frame_unwind_register): Declare.
9895 (frame_read_register): Declare.
9896
9897 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9898 and frame_unwind_register instead of read_memory, write_register
9899 and deprecated_write_register_bytes.
9900
5f601589
AC
99012003-02-02 Andrew Cagney <[email protected]>
9902
9903 * frame.h: Note that namelen can be negative.
9904 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9905 NAME's length.
9906
9907 * NEWS: Mention that the d10v's `regs' command is deprecated.
9908 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9909 (d10v_print_registers_info): New function.
9910 (show_regs): Call d10v_print_registers_info.
9911 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9912
6a3fe0a4
MK
99132003-02-02 Mark Kettenis <[email protected]>
9914
9915 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9916 lost in the previous patch.
9917
075559bc
AC
99182003-02-01 Andrew Cagney <[email protected]>
9919
9920 From 2002-11-09 Jason Molenda ([email protected])
fbe586ae
RH
9921 * stack.c (print_frame_info_base): Output complete FRAME tuple
9922 for synthesized frames.
075559bc 9923
6789195b
AC
99242003-02-02 Andrew Cagney <[email protected]>
9925
9926 * mips-nat.c (zerobuf): Delete.
9927 (fetch_inferior_registers): Alloc local zerobuf.
9928 (fetch_core_registers): Alloc local zerobuf.
9929 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9930 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9931 * thread-db.c (thread_db_store_registers): Ditto.
9932 * sh-tdep.c (sh_do_register): Ditto.
9933 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9934 * remote-sim.c (gdbsim_store_register): Ditto.
9935 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9936 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9937 * monitor.c (monitor_supply_register): Ditto.
9938 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9939 * mips-nat.c (fetch_inferior_registers): Ditto.
9940 * m68klinux-nat.c (fetch_register): Ditto.
9941 * lynx-nat.c (fetch_inferior_registers): Ditto.
9942 (fetch_inferior_registers): Ditto.
9943 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9944 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9945 (hpux_thread_store_registers): Ditto.
9946 * hppah-nat.c (fetch_register): Ditto.
9947 * hppab-nat.c (fetch_register): Ditto.
9948 * hppa-tdep.c (pa_register_look_aside): Ditto.
9949 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9950 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9951
e669114a
AC
99522003-02-01 Andrew Cagney <[email protected]>
9953
9954 * gdbarch.sh: Explictly specify all method levels. When a
9955 variable with an empty level, provide a non-multi-arch default.
9956 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9957 * gdbarch.h: Re-generate.
9958 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9959 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9960
9a043c1d
AC
99612003-02-01 Andrew Cagney <[email protected]>
9962
9963 * defs.h (host_pointer_to_address): Delete declaration.
9964 (address_to_host_pointer): Delete declaration.
9965 * utils.c (host_pointer_to_address): Delete function.
9966 (address_to_host_pointer): Delete function.
9967 * procfs.c (procfs_address_to_host_pointer): New function.
9968 * procfs.c (proc_set_watchpoint): Use.
9969 (procfs_can_use_hw_breakpoint): Update comments.
9970 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9971 (som_solib_add): Use.
9972 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9973 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 9974
7ca9f392
AC
99752003-02-01 Andrew Cagney <[email protected]>
9976
94bbfd30
AC
9977 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9978 strlen d_name.
9979
7ca9f392
AC
9980 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9981 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9982 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9983 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9984 (define_symbol): Update.
9985 * symfile.c (generic_load): Remove references to nindy.
9986 * symtab.c: Remove references to nindy.
9987
31a85ea2
AC
99882003-02-01 Andrew Cagney <[email protected]>
9989
9990 * infcmd.c (print_float_info): Delete code conditional on
9991 FLOAT_INFO.
9992 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9993 * config/m68k/nm-apollo68b.h: Ditto.
9994 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9995 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9996 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9997
f6e85fc8
MK
99982003-02-01 Mark Kettenis <[email protected]>
9999
6015b6a0
MK
10000 * config/i386/tm-i386os9k.h: Removed.
10001
f7a30bdf
MK
10002 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10003 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10004 they're identical to i[3456]86-*-sysv* now.
10005 * config/i386/i386v32.mh: Removed.
10006 * config/i386/xm-i386v32.h: Removed.
10007 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10008
28d52111
MK
10009 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10010
4d3f6bce
MK
10011 * config/i386/i386dgux.mh: Removed.
10012 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10013
f6e85fc8
MK
10014 * configure.in: Fix typo.
10015 * configure: Regenerated.
10016
53955967
DC
100172003-01-31 David Carlton <[email protected]>
10018
10019 * dwarf2read.c (dwarf2_locate_sections): Set
10020 dwarf_ranges_section.
10021
b1364885
AC
100222003-01-31 Andrew Cagney <[email protected]>
10023
8dbb1c65
AC
10024 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10025 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10026
8731e58e
AC
10027 * utils.c: Re-indent.
10028
b1364885
AC
10029 * config/djgpp/fnchange.lst: Delete nindy files.
10030 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10031 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10032 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10033 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10034 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10035 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10036 * Makefile.in (init.c): Remove nindy references.
10037 (saber_gdb): Delete rule.
10038 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10039 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10040 and a68v-nat.c.
10041 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10042 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10043 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10044 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10045 nindy-share/stop.h.
10046 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10047 * saber.suppress: Delete file.
10048
086df311
DJ
100492003-01-31 Daniel Jacobowitz <[email protected]>
10050
10051 * dbxread.c (stabs_data): New static variable.
10052 (fill_symbuf): Support an in-memory buffer for stabs data.
10053 (stabs_seek): New function.
10054 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10055 (read_ofile_symtab): Use stabs_seek.
10056 (elfstab_build_psymtabs): Take an asection* instead of
10057 an offset and size. Relocate the stabs data if necessary.
10058 Save the section* for dbx_psymtab_to_symtab.
10059 * dwarf2read.c: Add section variables for each debug section.
10060 (dwarf2_locate_sections): Fill them in.
10061 (dwarf2_read_section): Take an asection* argument.
10062 Relocate the section contents if necessary.
10063 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10064 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10065 it to dwarf2_read_section.
10066 (dwarf2_build_frame_info): Update callers.
10067 * elfread.c (elf_symfile_read): Update call to
10068 elfstab_build_psymtabs.
10069 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10070 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10071 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10072 * symfile.c (symfile_dummy_outputs): New function.
10073 (symfile_relocate_debug_section): New function.
10074 * symfile.h (symfile_relocate_debug_section): Add prototype.
10075
87d1b352
RH
100762003-01-31 Richard Henderson <[email protected]>
10077
10078 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10079 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10080 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10081 * alpha-tdep.c (alpha_register_name): Add "unique".
10082 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10083 (ALPHA_UNIQUE_REGNUM): New.
10084 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10085
c48861fb
AC
100862003-01-31 Andrew Cagney <[email protected]>
10087
10088 * README: Remove reference to Ericsson 1800 monitor.
10089 * Makefile.in (remote-es.o): Delete rule.
10090 (ALLDEPFILES): Delete remote-es.c.
10091 * remote-es.c: Delete file.
10092 * config/m68k/es1800.mt: Delete file.
10093 * config/djgpp/fnchange.lst: Update.
10094 * configure.tgt: Delete m68*-ericsson-* target.
10095
d764a824
AF
100962003-01-31 Adam Fedor <[email protected]>
10097
10098 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10099 Remove duplicate/shadowing variable of same name.
10100
fe36c4f4
JB
101012003-01-30 Jim Blandy <[email protected]>
10102
10103 * symfile.c (find_separate_debug_file): Assert that the objfile's
10104 directory name we compute ends with a slash, and then assume that
10105 that's so everywhere we use it.
10106
cb741690
DJ
101072003-01-30 Daniel Jacobowitz <[email protected]>
10108
10109 * valops.c (value_assign): Flush frame cache after stores to memory
10110 also.
10111
96ee5227
AC
101122003-01-30 Andrew Cagney <[email protected]>
10113
10114 * Makefile.in (mon960-rom.o): Delete rule.
10115 * mon960-rom.c: Delete file.
10116
7f6104a9
AC
101172003-01-30 Andrew Cagney <[email protected]>
10118
10119 * d10v-tdep.c: Include "frame-unwind.h".
10120 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10121 list.
10122 (next_addr, uses_frame): Delete.
10123 (struct d10v_unwind_cache): Define.
10124 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10125 Use info instead of next_addr and uses_frame globals.
10126 (d10v_frame_init_saved_regs): Delete function.
10127 (d10v_init_extra_frame_info): Delete function.
10128 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10129 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10130 init_frame_pc or frame_saved_pc.
10131 (d10v_pop_frame): Delete function.
10132 (do_d10v_pop_frame): Delete function.
10133 (d10v_frame_chain): Delete function.
10134 (d10v_frame_chain_valid): Delete function.
10135 (d10v_frame_pc_unwind): New function.
10136 (d10v_frame_id_unwind): New function.
10137 (saved_regs_unwinder): New function.
10138 (d10v_frame_register_unwind): New function.
10139 (d10v_frame_pop): New function.
10140 (d10v_frame_unwind): New variable.
10141 (d10v_frame_p): New function.
10142 (d10v_frame_saved_pc): Delete function.
10143 * Makefile.in (d10v-tdep.o): Update dependencies.
10144
cad2e848
JB
101452003-01-30 J. Brobecker <[email protected]>
10146
10147 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10148 causing some regressions due to a change in the default value
10149 for this macro.
10150
af34e669
DJ
101512003-01-29 Richard Henderson <[email protected]>
10152 Elena Zannoni <[email protected]>
10153 Daniel Jacobowitz <[email protected]>
10154
10155 Fix PR gdb/961.
8ffd9b1b 10156 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10157 variables.
10158 (RANGES_SECTION): New.
10159 (dwarf_ranges_buffer): New variable.
10160 (struct comp_unit_head): Add member "die".
10161 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10162 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10163 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10164 (dwarf2_locate_sections): Likewise.
10165 (dwarf2_build_psymtabs): Read .debug_ranges.
10166 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10167 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10168 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10169 Look for DW_AT_ranges and return the bounding box.
10170
baa93fa6
CF
101712003-01-29 Brian Ford <[email protected]>
10172
10173 * win32-nat.c (cygwin_pid): Removed as unused.
10174 (child_attach): Try fall back to Cygwin pid.
10175
c63f977f
JB
101762003-01-29 Jim Blandy <[email protected]>
10177
10178 * objfiles.h (struct objfile): Doc fix.
10179
d62d1979
AC
101802003-01-29 Andrew Cagney <[email protected]>
10181
10182 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10183 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10184 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10185 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10186 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10187 (FRAME_SAVED_PC): Change to a function with predicate.
10188 * gdbarch.h, gdbarch.c: Re-generate.
10189
1ae18a04
AC
101902003-01-28 Andrew Cagney <[email protected]>
10191
52287340
AC
10192 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10193
1ae18a04
AC
10194 * complaints.c (complain): Delete function.
10195 * complaints.h (struct deprecated_complaint): Delete definition.
10196 (complain): Delete declaration.
10197
f2c16bd6
KB
101982003-01-28 Kevin Buettner <[email protected]>
10199
10200 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10201 dummy frames.
10202
a94dd1fd
AC
102032003-01-27 Andrew Cagney <[email protected]>
10204
10205 * sentinel-frame.h, sentinel-frame.c: New files.
10206 * Makefile.in (frame.o): Update dependencies.
10207 (SFILES): Add sentinel-frame.c.
10208 (sentinel_frame_h): Define.
10209 (COMMON_OBS): Add sentinel-frame.o.
10210 (sentinel-frame.o): Specify dependencies.
10211 * frame.c: Include "sentinel-frame.h".
10212 (frame_register_unwind): Rewrite assuming that there is always a a
10213 ->next frame.
10214 (frame_register, generic_unwind_get_saved_register): Ditto.
10215 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10216 (create_sentinel_frame, unwind_to_current_frame): New functions.
10217 (get_current_frame): Rewrite using create_sentinel_frame and
10218 unwind_to_current_frame. When possible, always create a frame.
10219 (create_new_frame): Set next to the sentinel frame.
10220 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10221 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10222 ID cache when necessary.
10223 (frame_saved_regs_id_unwind): Use frame_relative_level.
10224 (deprecated_generic_get_saved_register): Use frame_relative_level,
10225 get_frame_saved_regs, get_frame_pc, get_frame_base and
10226 get_next_frame.
10227 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10228 frame_register.
10229
5378adc4
DJ
102302003-01-27 Daniel Jacobowitz <[email protected]>
10231
10232 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10233
51ee2ddc
DJ
102342003-01-27 Daniel Jacobowitz <[email protected]>
10235
10236 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10237 (maintenance_set_profile_cmd): Use error () instead of warning ().
10238
d9feb4e7
DJ
102392003-01-27 Daniel Jacobowitz <[email protected]>
10240
10241 * configure.in: Check that -pg works if using --enable-profiling.
10242 Check for monstartup and _mcleanup regardless of --enable-profiling.
10243 * maint.c: Check for monstartup and _mcleanup before using them.
10244 * config.in: Regenerated.
10245 * configure: Regenerated.
10246
2d188dd3
NC
102472003-01-24 Nick Clifton <[email protected]>
10248
10249 * Add sh2e support:
10250
10251 2002-04-02 Elena Zannoni <[email protected]>
10252
10253 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10254 (sh2e_show_regs): New.
10255 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10256 * config/sh/tm-sh.h: Added sh2e to comments.
10257
cb3c37b2
JB
102582003-01-23 Jim Blandy <[email protected]>
10259
10260 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10261 symbols found)" message here; we haven't checked for a separate
10262 debug info file yet, so we don't know yet.
10263 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10264 we've looked everywhere. Also, there's no need to print a special
10265 message when we're loading the separate debug info file: the one
10266 symbol_file_add prints is fine.
10267
5b5d99cf
JB
102682003-01-23 Alexander Larsson <[email protected]>
10269 Jim Blandy <[email protected]>
10270
10271 Add support for executables whose debug info has been separated
10272 out into a separate file, leaving only a link behind.
10273 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10274 and separate_debug_objfile_backlink.
10275 (put_objfile_before): New declaration.
10276 * symfile.c: #include "filenames.h".
10277 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10278 debug info in a separate file, read that, too. Save the addrs
10279 argument, so we can use it again to read the separated debug info;
10280 syms_from_objfile modifies the table we pass it.
10281 (reread_symbols): After re-reading an objfile, call
10282 reread_separate_symbols to refresh its separate debug info
10283 objfile, if it has one.
10284 (reread_separate_symbols, find_separate_debug_file,
10285 get_debug_link_info, separate_debug_file_exists): New functions.
10286 (debug_file_directory): New global var.
10287 (_initialize_symfile): Initialize debug_file_directory, and
10288 provide the new `set debug-file-directory' command to let the user
10289 change it.
10290 * objfiles.c (free_objfile): If this objfile has its debug info in
10291 a separate objfile, free that one too. If this is itself a
10292 separate debug info objfile, clear our parent's backlink.
10293 (put_objfile_before): New function.
10294 * utils.c (gnu_debuglink_crc32): New function.
10295 * defs.h (gnu_debuglink_crc32): New declaration.
10296 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10297 * configure.in: Handle --with-separate-debug-dir config option.
10298 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10299 * acconfig.h (DEBUGDIR): New macro.
10300 * configure, aclocal.m4, config.in: Regenerated.
10301
7e8580c1
JB
103022003-01-22 Jim Blandy <[email protected]>
10303
7904e09f
JB
10304 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10305 like the old symbol_file_add, but taking new arguments: you can
10306 now pass in either a `struct section_addr_info' list to say where
10307 each section is loaded, or a `struct section_offsets' table. Pass
10308 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10309 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10310 with the appropriate quiescent values for the new arguments.
10311
7e8580c1
JB
10312 * symfile.c: #include "gdb_assert.h".
10313 (syms_from_objfile): Add the ability to pass in a section offset
10314 table directly, as an alternative to the section_addr_info table.
10315 Document arguments better.
10316 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10317 * symfile.h (syms_from_objfile): Update declaration.
10318 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10319 syms_from_objfile.
10320 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10321
d28f9cdf
DJ
103222003-01-22 Daniel Jacobowitz <[email protected]>
10323
10324 Original patch by Tom Tromey <[email protected]> and
10325 Jason Molenda <[email protected]>.
10326 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10327 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10328 * NEWS: Mention profiling.
10329 * configure.in (--enable-gdbtk): Fix typo.
10330 (--enable-profiling): New. Set PROFILE_CFLAGS.
10331 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10332 Fill in function.
10333 (profiling_state): New variable.
10334 (mcleanup_wrapper): New function.
10335 (_initialize_maint): Remove NOTYET, fix call to
10336 add_setshow_boolean_cmd for "maint set profile".
10337 * configure: Regenerated.
10338
df21e465
MH
103392003-01-21 Martin M. Hunt <[email protected]>
10340
10341 * Makefile.in (install-gdbtk): Install PNG images too.
10342
73c1f219
AC
103432003-01-21 Andrew Cagney <[email protected]>
10344
10345 * exec.c (text_start): Delete global variable.
10346 (exec_file_attach): Make text_start local to the function.
10347 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10348 * valops.c (hand_function_call): Delete code that handles
10349 BEFORE_TEXT_END and AFTER_TEXT_END.
10350 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10351 of CALL_DUMMY_LOCATION.
10352 * gdbarch.c: Regenerate.
10353 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10354 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10355 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10356 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10357 (text_end): Delete extern declaration.
10358
eb4f72c5
AC
103592003-01-21 Andrew Cagney <[email protected]>
10360
10361 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10362 * blockframe.c (backtrace_below_main): Move to "frame.c".
10363 (frame_chain_valid): Delete check for backtrace_below_main.
10364 (_initialize_blockframe): Delete initialization, move ``set
10365 backtrace-below-main'' command to "frame.c".
10366 (do_flush_frames_sfunc): Delete function.
10367 * frame.c: Include "command.h" and "gdbcmd.h".
10368 (frame_type_from_pc): New function.
10369 (create_new_frame): Use frame_type_from_pc.
10370 (legacy_get_prev_frame): New function.
10371 (get_prev_frame): Rewrite. When an old style frame, call
10372 legacy_get_prev_frame. Otherwize, unwind the PC first.
10373 (_initialize_frame): Add ``set backtrace-below-main'' command.
10374 * Makefile.in (frame.o): Update dependencies.
10375
778ce8cc
AC
103762003-01-19 Andrew Cagney <[email protected]>
10377
10378 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10379 DEPRECATED_REGISTERS_INFO.
10380
01c193c8
AC
103812003-01-19 Andrew Cagney <[email protected]>
10382
10383 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10384 Maintainers'. Update `Various Maintainers'.
10385
dedc2a2b
AC
103862003-01-19 Andrew Cagney <[email protected]>
10387
10388 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10389 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10390 Suppress actual parameters when `-'.
10391 * gdbarch.h, gdbarch.c: Regenerate.
10392
b7261c70
AC
103932003-01-19 Andrew Cagney <[email protected]>
10394
10395 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10396 code handling dummy frames.
10397
dbe9fe58
AC
103982003-01-19 Andrew Cagney <[email protected]>
10399
10400 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10401 (struct frame_unwind): Add field pop.
10402 * frame.h (frame_pop): Declare.
10403 * frame.c (frame_saved_regs_pop): New function.
10404 (trad_frame_unwinder): Add frame_saved_regs_pop.
10405 (frame_pop): New function.
10406 * dummy-frame.c (dummy_frame_pop): New function.
10407 (discard_innermost_dummy): New function.
10408 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10409 (dummy_frame_unwind): Add dummy_frame_pop.
10410 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10411 * valops.c (hand_function_call): Ditto.
10412 * stack.c (return_command): Ditto.
10413
570b8f7c
AC
104142003-01-18 Andrew Cagney <[email protected]>
10415
10416 * cris-tdep.c: Fix function declaration indentation.
10417 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10418 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10419 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10420 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10421 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10422 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10423
104242003-01-18 Michael Chastain <[email protected]>
eaec4d85
MC
10425
10426 * README (Unpacking and Installation -- quick overview):
10427 Warn against ".../gdb-5.3/gdb/configure".
10428
494cca16
AC
104292003-01-18 Andrew Cagney <[email protected]>
10430
10431 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10432 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10433 (struct frame_unwind): Declare opaque.
10434 (dummy_frame_p): Declare function.
10435 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10436 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10437 * dummy-frame.c: Include "frame-unwind.h".
10438 (dummy_frame_p): New function.
10439 (dummy_frame_unwind): New variable.
10440 * frame.c: Include "frame-unwind.h".
10441 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10442 to use the new unwind field.
10443 (set_unwind_by_pc): Delete function.
10444 (create_new_frame, get_prev_frame): Set unwind field using
10445 frame_unwind_find_by_pc.
10446 (trad_frame_unwind, trad_frame_unwinder): New variables.
10447 * frame.h (trad_frame_unwind): Declare variable.
10448 (frame_id_unwind_ftype): Delete declaration.
10449 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10450 (struct frame_unwind): Declare opaque.
10451 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10452 register_unwind with a single unwind pointer.
10453 * frame-unwind.h, frame-unwind.c: New files.
10454 * Makefile.in (SFILES): Add frame-unwind.c.
10455 (frame_unwind_h): Define.
10456 (COMMON_OBS): Add frame-unwind.o.
10457 (frame-unwind.o): Specify dependencies.
10458 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10459
4efb68b1
AC
104602003-01-18 Andrew Cagney <[email protected]>
10461
10462 * ada-valprint.c: Eliminate PTR.
10463 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10464 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10465 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10466 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10467 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10468 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10469 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10470
a84d24ee
AC
104712003-01-17 Andrew Cagney <[email protected]>
10472
762f08a3
AC
10473 * main.c (captured_main): Don't use PTR.
10474 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10475 * gdbtypes.c (lookup_primitive_typename): Ditto.
10476 (lookup_struct_elt_type): Ditto.
10477 * f-valprint.c (info_common_command): Ditto.
10478 (list_all_visible_commons): Ditto.
10479 * jv-typeprint.c (java_type_print_base): Ditto.
10480
a84d24ee
AC
10481 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10482 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10483 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10484 i386-interix-nat.c and i386-interix-tdep.c. Rename
10485 m68klinux-nat.c and m68klinux-tdep.c. Rename
10486 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10487 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10488 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10489 * main.c (captured_main): Use xfree, not free.
10490
c170fb60
AC
104912003-01-16 Andrew Cagney <[email protected]>
10492
10493 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10494 ID back using a parameter.
10495 * frame.c (frame_id_unwind): Update call.
10496 (frame_saved_regs_id_unwind): Update.
10497 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10498 * dummy-frame.h (struct frame_id): Add opaque declaration.
10499 (dummy_frame_id_unwind): Update declaration.
10500
867f3898
AC
105012003-01-15 Andrew Cagney <[email protected]>
10502
10503 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10504
40622be8 105052003-01-15 Stephen P. Smith <[email protected]>
de3a8c23 10506
40622be8 10507 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10508
ae66c1fc
EZ
105092003-01-14 Elena Zannoni <[email protected]>
10510
997b089a 10511 Fix PR gdb/898
ae66c1fc
EZ
10512 * breakpoint.c (until_break_command): Add new argument. Use it to
10513 decide whether to stop only at the current frame or not.
10514 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10515 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10516 call.
10517 (advance_command): New function.
10518 (_initialize_infcmd): Update help string for 'until' command.
10519 Add new 'advance' command.
10520
a04257e6
DC
105212003-01-14 David Carlton <[email protected]>
10522
10523 * linespec.c (decode_line_1): Normalize comments.
10524 (set_flags): Ditto.
10525 (locate_first_half): Ditto.
10526 (decode_compound): Ditto.
10527 (symtab_from_filename): Ditto.
10528 (decode_all_digits): Ditto.
10529 (decode_dollar): Ditto.
10530 (find_methods): Ditto.
10531 (find_toplevel_char): Ditto.
10532
1bac305b
AC
105332003-01-13 Andrew Cagney <[email protected]>
10534
10535 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10536 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10537 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10538 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10539 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10540 * language.c, language.h, m32r-tdep.c: Update copyright.
10541 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10542 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10543 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10544 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10545 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10546 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10547
25caa7a8
EZ
105482003-01-13 Elena Zannoni <[email protected]>
10549
10550 * stabsread.h (process_later, resolve_cfront_continuation):
10551 Obsolete.
10552 Update copyright years.
10553 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10554 Update copyright year.
10555 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10556 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10557 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10558 Update copyright year.
10559 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10560 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10561 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10562 (parse_partial_symbols): Obsolete cfront support.
10563 * stabsread.c
10564 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10565 macros.
10566 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10567 read_cfront_baseclasses, read_cfront_member_functions,
10568 resolve_cfront_continuation,read_cfront_static_fields,
10569 copy_cfront_struct_fields): Obsolete functions.
10570 (define_symbol, read_one_struct_field): Obsolete cfront support.
10571 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10572 Update Copyright year.
10573
7789c6f5
EZ
105742003-01-13 Elena Zannoni <[email protected]>
10575
10576 * stack.c (print_frame_info, print_stack_frame_base_stub,
10577 print_stack_frame_base, show_and_print_stack_frame_stub,
10578 show_and_print_stack_frame, print_only_stack_frame_stub,
10579 print_only_stack_frame): Delete functions.
10580 (print_stack_frame_stub): Call print_frame_info instead of
10581 print_frame_info_base.
10582 (print_frame_info_base): Rename to print_frame_info.
10583 (backtrace_command_1): Call print_frame_info, instead of
10584 print_frame_info_base.
10585 (current_frame_command): Call print_stack_frame, instead of
10586 print_only_stack_frame.
10587 (frame_command): Call print_stack_frame, instead of
10588 show_and_print_stack_frame.
10589 (up_command): Ditto.
10590 (down_command): Ditto.
10591 * frame.h (print_only_stack_frame): Delete prototype.
10592 * infrun.c (normal_stop): Call print_stack_frame, instead of
10593 show_and_print_stack_frame.
10594 * thread.c (info_threads_command): Call print_stack_frame, instead
10595 of print_only_stack_frame.
10596
3f5a3016
AC
105972003-01-13 Andrew Cagney <[email protected]>
10598
d99ba314
AC
10599 * README (Graphical interface to GDB): Update URL. Point at
10600 gdb/links/.
10601
3f5a3016
AC
10602 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10603 version match.
10604
083ae935
DJ
106052003-01-13 Daniel Jacobowitz <[email protected]>
10606
10607 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10608 lines.
10609
5365276c
DJ
106102003-01-13 Daniel Jacobowitz <[email protected]>
10611
10612 * thread-db.c (attach_thread): Prototype.
10613 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10614 thread information (ti), and valid flags (th_valid, ti_valid).
10615 (attach_thread): Move target_pid_to_str call to after the thread
10616 is added to GDB's list. Initialize the cache.
10617 (thread_get_info_callback, thread_db_map_id2thr)
10618 (thread_db_get_info): New functions.
10619 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10620 (thread_db_store_registers, thread_db_thread_alive)
10621 (thread_db_get_thread_local_address): Use them.
10622 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10623 of calling error() for threads in unknown state.
10624
10625 (clear_lwpid_callback): New function.
10626 (thread_db_resume): Use it to clear the cache.
10627
9fc30b6b
DJ
106282003-01-13 Daniel Jacobowitz <[email protected]>
10629
10630 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10631 (resume_callback): Remove dead code.
10632
8f871025
AC
106332003-01-13 Andrew Cagney <[email protected]>
10634
10635 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10636 predicate.
10637 * gdbarch.h, gdbarch.c: Regenerate.
10638 * stack.c (frame_info): Only initialize the saved registers when
10639 FRAME_INIT_SAVED_REGS_P.
10640 * frame.c (frame_saved_regs_register_unwind): Assert
10641 FRAME_INIT_SAVED_REGS_P.
10642 (deprecated_generic_get_saved_register): Ditto.
10643
3f565f1e
DJ
106442003-01-13 Daniel Jacobowitz <[email protected]>
10645
10646 * source.c (openp): Squelch warning about "filename".
10647
072b1022
DJ
106482003-01-13 Daniel Jacobowitz <[email protected]>
10649
10650 * source.c (openp): If the file does not exist don't necessarily
10651 search the path.
10652
973ccf8b
DJ
106532003-01-13 Daniel Jacobowitz <[email protected]>
10654
10655 Fix PR gdb/872.
10656 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10657 (integer_types_same_name_p): New function.
10658 (rank_one_type): Use it.
10659 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10660
030292b7
DJ
106612003-01-13 Daniel Jacobowitz <[email protected]>
10662
10663 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10664 variables.
10665 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10666 * configure.in: Add --with-sysroot.
10667 * configure: Regenerated.
10668 * main.c (gdb_sysroot): New variable.
10669 (captured_main): Initialize gdb_sysroot.
10670 * defs.h (gdb_sysroot): New extern declaration.
10671 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10672
afb5d334
MC
106732003-01-12 Michael Chastain <[email protected]>
10674
10675 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10676
751ceeb4
MC
106772003-01-12 Michael Chastain <[email protected]>
10678
10679 * top.c (print_gdb_version): Bump copyright year to 2003.
10680
94cd26f8
DC
106812003-01-12 David Carlton <[email protected]>
10682
10683 * linespec.c (symtab_from_filename): Rename variable 's' to
10684 'file_symtab'.
10685
1ce79225
AC
106862003-01-12 Andrew Cagney <[email protected]>
10687
10688 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10689 dummy frame.
10690 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10691
fa1fd571
AC
106922003-01-12 Andrew Cagney <[email protected]>
10693
10694 * d10v-tdep.c: Include "gdb_assert.h".
10695 (d10v_store_return_value): Rewrite to match current interface.
10696 (d10v_extract_struct_value_address): Ditto.
10697 (d10v_extract_return_value): Ditto.
10698 (d10v_gdbarch_init): Set store_restore_value,
10699 extract_struct_value_address and extract_return_value.
10700
68b8d23e
JB
107012003-01-12 J. Brobecker <[email protected]>
10702
10703 * hpread.c (set_namestring): New procedure replacing the
10704 SET_NAMESTRING macro.
10705 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10706 by calls to set_namestring.
10707
107082003-01-11 J. Brobecker <[email protected]>
1fb309ea
JB
10709
10710 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10711 a compilation warning.
10712 (hpread_process_one_debug_symbol): Likewise.
10713
88d262ca
DC
107142003-01-10 David Carlton <[email protected]>
10715
10716 * linespec.c (decode_line_1): Rename variable 's' to
10717 'file_symtab'.
10718 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10719 (decode_dollar): Ditto.
10720 (decode_variable): Ditto.
10721 (symbol_found): Ditto.
10722
86669319
MC
107232003-01-09 Michael Chastain <[email protected]>
10724
10725 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10726
616a9dc4
CV
107272003-01-07 Corinna Vinschen <[email protected]>
10728
10729 * win32-nat.c (set_process_privilege): New function.
10730 (child_attach): Call set_process_privilege() to enable the
10731 SE_DEBUG_NAME user privilege if available in process token.
10732
3269bcfa
JB
107332003-01-10 J. Brobecker <[email protected]>
10734
10735 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10736 compilation error in the previous revision.
10737
2b0ee454
DC
107382003-01-09 David Carlton <[email protected]>
10739
10740 * linespec.c: Update copyright.
10741
b3ba1b44
DJ
107422003-01-09 Daniel Jacobowitz <[email protected]>
10743
10744 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10745 than inferior_ptid.
10746 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10747
4ef3f3be
AC
107482003-01-09 Andrew Cagney <[email protected]>
10749
479ab5a0
AC
10750 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10751 Update comments.
10752 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10753 (frame_saved_regs_zalloc): Update.
10754 (frame_saved_regs_register_unwind): Update.
10755 (create_new_frame): Update.
10756 (get_prev_frame): Update.
10757 (frame_extra_info_zalloc): Update.
10758 (deprecated_get_frame_saved_regs): Update.
10759 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10760 * cris-tdep.c: Update comment.
10761
bde58177
AC
10762 * somsolib.h: Fix function indentation.
10763 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10764 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10765 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10766 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10767 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10768
4ef3f3be
AC
10769 * infrun.c (follow_fork): Use ISO C definition.
10770 * expprint.c (print_subexp): Use xfree instead of free.
10771 * charset.c: Include "gdb_string.h" instead of <string.h>.
10772 (register_iconv_charsets): Use ISO C definition.
10773 (host_charset, target_charset): Ditto.
10774 * Makefile.in (charset.o): Update dependencies.
10775 (mi-cmd-env.o): Update dependencies.
10776
1c615f7a
AC
107772003-01-08 Andrew Cagney <[email protected]>
10778
10779 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10780 get_frame_base.
10781
c9a1dc08
AC
107822003-01-08 Andrew Cagney <[email protected]>
10783
10784 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10785 build directories. Save edited gdb output in Mbuild.log. If a
10786 build fails, remove any final GDB executable.
10787
dbad9d94
AC
107882003-01-08 Andrew Cagney <[email protected]>
10789
10790 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10791 replacing hex constants with function names and stripping leading
10792 file name directory prefixes.
10793
8d357cca
AC
107942003-01-08 Andrew Cagney <[email protected]>
10795
10796 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10797 get_frame_base.
10798
bca02a8a
DC
107992003-01-08 David Carlton <[email protected]>
10800
10801 * linespec.c (decode_line_1): Move code into decode_variable.
10802 (decode_variable): New function.
10803
7f8ab3a0
AC
108042003-01-08 Andrew Cagney <[email protected]>
10805
10806 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10807
7b5849cc
AC
108082003-01-08 Andrew Cagney <[email protected]>
10809
10810 * cris-tdep.c (cris_frame_init_saved_regs): Use
10811 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10812 saved_regs buffer.
10813 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10814 (sh64_nofp_frame_init_saved_regs): Ditto.
10815 (sh_fp_frame_init_saved_regs): Ditto.
10816 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10817 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10818 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10819 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10820
72a5efb3
DJ
108212003-01-08 Daniel Jacobowitz <[email protected]>
10822
10823 * minsyms.c (lookup_minimal_symbol): Update comment.
10824 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10825 (lookup_minimal_symbol_solib_trampoline): Likewise.
10826
11c02a10
AC
108272003-01-08 Andrew Cagney <[email protected]>
10828
aab3ea25
AC
10829 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10830 frame_relative_level.
10831
da50a4b7
AC
10832 * alpha-tdep.c: Use get_frame_extra_info.
10833 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10834 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10835 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10836 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10837
11c02a10
AC
10838 * alpha-tdep.c: Use get_next_frame.
10839 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10840 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10841 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10842 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10843 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10844 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10845 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10846
1e2330ba
AC
108472003-01-07 Andrew Cagney <[email protected]>
10848
10849 * alpha-tdep.c: Use get_frame_base.
10850 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10851 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10852 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10853 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10854 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10855 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10856 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10857 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10858
2d75187b
AC
108592003-01-07 Andrew Cagney <[email protected]>
10860
10861 * frame.c (deprecated_get_frame_context): New function.
10862 (deprecated_set_frame_context): New function.
10863 * frame.h (deprecated_get_frame_context): Declare.
10864 (deprecated_set_frame_context): Declare.
10865 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10866 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10867
483d36b2
AC
108682003-01-07 Andrew Cagney <[email protected]>
10869
10870 * frame.c (deprecated_set_frame_next_hack): New function.
10871 (deprecated_set_frame_prev_hack): New function.
10872 * frame.h (deprecated_set_frame_next_hack): Declare.
10873 (deprecated_set_frame_prev_hack): Declare.
10874 * mcore-tdep.c (analyze_dummy_frame): Use
10875 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10876 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10877
14e91ac5
DC
108782003-01-07 David Carlton <[email protected]>
10879
10880 * linespec.c (decode_line_1): Move code into decode_dollar.
10881 (decode_dollar): New function.
10882
b0c6b05c
AC
108832003-01-07 Andrew Cagney <[email protected]>
10884
10885 * arm-tdep.c (arm_init_extra_frame_info): Use
10886 deprecated_update_frame_base_hack.
10887 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10888 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10889 (fix_frame_pointer): Ditto.
10890 (mn10300_analyze_prologue): Ditto.
10891
a00a19e9
AC
108922003-01-07 Andrew Cagney <[email protected]>
10893
10894 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10895 extra_info using frame_extra_info_zalloc.
10896 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10897 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10898 (sh64_init_extra_frame_info): Ditto.
10899 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10900 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10901 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10902 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10903 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10904 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10905 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10906 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10907 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10908 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10909 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10910 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10911
10912 * mn10300-tdep.c (analyze_dummy_frame): Use
10913 deprecated_set_frame_extra_info_hack.
10914 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10915
1fb4c65b
JB
109162003-01-07 J. Brobecker <[email protected]>
10917
10918 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10919 class is not scText. These do not define "real" procedures.
10920 (parse_partial_symbols): Likewise.
10921
9fe7d6bf
MS
109222003-01-06 Michael Snyder <[email protected]>
10923
10924 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10925
f6c609c4
AC
109262003-01-06 Andrew Cagney <[email protected]>
10927
10928 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10929 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10930 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10931 deprecated_frame_xmalloc_with_cleanup.
10932 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10933 deprecated_frame_xmalloc.
10934 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10935 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10936
d995ff4b
AC
109372003-01-06 Andrew Cagney <[email protected]>
10938
84dc46cb
AC
10939 * x86-64-linux-tdep.c: Include "osabi.h".
10940 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10941
d995ff4b
AC
10942 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10943
66140c26
AC
109442003-01-06 Andrew Cagney <[email protected]>
10945
10946 * MAINTAINERS (Target Instruction Set Architectures): Update
10947 arm-elf. Can be built with -Werror, has been multiarched.
10948
10949 * value.h (unpack_long): Make buffer parameter constant.
10950 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10951 * scm-lang.h (scm_parse): Ditto.
10952 * defs.h (extract_typed_address, extract_address): Ditto.
10953 (extract_long_unsigned_integer): Ditto.
10954 * inferior.h (unsigned_pointer_to_address): Ditto.
10955 (signed_pointer_to_address): Ditto.
10956 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10957 * gdbarch.h, gdbarch.c: Regenerate.
10958 * findvar.c (extract_long_unsigned_integer): Update.
10959 (extract_address): Update.
10960 (extract_typed_address): Update.
10961 (unsigned_pointer_to_address): Update.
10962 * values.c (unpack_long): Update.
10963 (unpack_double): Update.
10964 (unpack_pointer): Update.
10965 (unpack_field_as_long): Update.
10966 * d10v-tdep.c (d10v_pointer_to_address): Update.
10967 * avr-tdep.c (avr_pointer_to_address): Update.
10968 * scm-lang.c (scm_unpack): Update.
10969 * findvar.c (signed_pointer_to_address): Update.
10970
b089b3da
ML
109712003-01-06 Michal Ludvig <[email protected]>
10972
8ffd9b1b 10973 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
10974 since it is in i386-tdep.c.
10975
aff87235
JB
109762003-01-06 J. Brobecker <[email protected]>
10977
10978 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10979 failure introduced in the previous change.
10980
34f5e845
MC
109812003-01-05 Michael Chastain <[email protected]>
10982
10983 * README: Remove references to deleted remote-*.c files:
10984 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10985 remote-nrom.c, remote-os9k.c, remote-udi.c.
10986
28bcfd30
MK
109872003-01-05 Mark Kettenis <[email protected]>
10988
10989 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10990 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10991 i386_get_longjmp_target.
10992
15a5b3ee
AC
109932003-01-05 Andrew Cagney <[email protected]>
10994
10995 * arm-tdep.c (prologue_cache): Change to a pointer.
10996 (_initialize_arm_tdep): Allocate prologue_cache.
10997 (check_prologue_cache): Update.
10998 (save_prologue_cache): Update.
10999 (arm_gdbarch_init): Update.
11000
c263362b
DJ
110012003-01-04 Daniel Jacobowitz <[email protected]>
11002
11003 * stabsread.c (update_method_name_from_physname): Call complaint()
11004 instead of error.
11005
51603483
DJ
110062003-01-04 Daniel Jacobowitz <[email protected]>
11007
11008 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11009 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11010 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11011
11012 * blockframe.c: Include "gdbcmd.h" and "command.h".
11013 (backtrace_below_main): New variable.
11014 (file_frame_chain_valid, func_frame_chain_valid)
11015 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11016 (generic_func_frame_chain_valid): Remove functions.
11017 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11018 (_initialize_blockframe): New function.
11019 * Makefile.in (blockframe.o): Update dependencies.
11020 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11021 comment. Call frame_chain_valid ().
11022 * frame.h: Remove old prototypes. Add prototype for
11023 frame_chain_valid and update comments to match.
11024 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11025 Remove old comment.
11026 * gdbarch.h: Regenerated.
11027 * gdbarch.c: Regenerated.
11028
11029 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11030 set_gdbarch_frame_chain_valid.
11031 * avr-tdep.c (avr_gdbarch_init): Likewise.
11032 * cris-tdep.c (cris_gdbarch_init): Likewise.
11033 * frv-tdep.c (frv_gdbarch_init): Likewise.
11034 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11035 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11036 (i386_nw_init_abi): Likewise.
11037 (i386_gdbarch_init): Likewise.
11038 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11039 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11040 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11041 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11042 * mips-tdep.c (mips_gdbarch_init): Likewise.
11043 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11044 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11045 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11046 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11047 * s390-tdep.c (s390_gdbarch_init): Likewise.
11048 * sh-tdep.c (sh_gdbarch_init): Likewise.
11049 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11050 * v850-tdep.c (v850_gdbarch_init): Likewise.
11051 * vax-tdep.c (vax_gdbarch_init): Likewise.
11052 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11053
11054 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11055 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11056 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11057 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11058 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11059 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11060 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11061 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11062
b00a8037
DJ
110632002-01-04 Daniel Jacobowitz <[email protected]>
11064
11065 * Makefile.in (acconfig_h): Remove incorrect macro.
11066 (config_h): Define.
11067 (osabi.o): Update dependencies.
11068 * configure.tgt: Set gdb_osabi based on target triplet.
11069 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11070 * configure: Regenerated.
11071 * config.in: Regenerated.
11072 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11073 (GDB_OSABI_DEFAULT): Define if not already defined.
11074 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11075 (set_osabi_string): New variables.
11076 (gdbarch_register_osabi): Add new OS ABI to
11077 gdb_osabi_available_names.
11078 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11079 (set_osabi, show_osabi): New functions.
11080 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11081
4be87837
DJ
110822003-01-04 Daniel Jacobowitz <[email protected]>
11083
11084 * arch-utils.c (gdbarch_info_init): Set osabi to
11085 GDB_OSABI_UNINITIALIZED.
11086 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11087 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11088 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11089 * gdbarch.c: Regenerated.
11090 * gdbarch.h: Regenerated.
11091 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11092 there's no BFD.
11093 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11094 * osabi.h (enum gdb_osabi): Move to defs.h.
11095 (gdbarch_init_osabi): Update prototype.
11096 * defs.h (enum gdb_osabi): Moved here.
11097 * Makefile.in: Update dependencies.
11098
11099 * alpha-tdep.h: Don't include "osabi.h".
11100 (struct gdbarch_tdep): Remove osabi member.
11101 * alpha-tdep.c: Include "osabi.h".
11102 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11103 iterate over arches. Update call to gdbarch_init_osabi.
11104 (alpha_dump_tdep): Don't dump osabi.
11105 * alpha-linux-tdep.c: Include "osabi.h".
11106 * alpha-osf1-tdep.c: Include "osabi.h".
11107 * alphafbsd-tdep.c: Include "osabi.h".
11108 * alphanbsd-tdep.c: Include "osabi.h".
11109
11110 * arm-tdep.h: Don't include "osabi.h".
11111 (struct gdbarch_tdep): Remove osabi member.
11112 * arm-tdep.c: Include "osabi.h".
11113 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11114 iterate over arches. Update call to gdbarch_init_osabi.
11115 (arm_dump_tdep): Don't dump osabi.
11116 * arm-linux-tdep.c: Include "osabi.h".
11117 * armnbsd-tdep.c: Include "osabi.h".
11118
11119 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11120 Update call to gdbarch_init_osabi.
11121
11122 * i386-tdep.h: Don't include "osabi.h".
11123 (struct gdbarch_tdep): Remove osabi member.
11124 * i386-tdep.c: Include "osabi.h".
11125 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11126 iterate over arches. Update call to gdbarch_init_osabi.
11127 (i386_dump_tdep): Don't dump osabi.
11128 * i386-linux-tdep.c: Include "osabi.h".
11129 * i386-sol2-tdep.c: Include "osabi.h".
11130 * i386bsd-tdep.c: Include "osabi.h".
11131 * i386gnu-tdep.c: Include "osabi.h".
11132 * i386ly-tdep.c: Include "osabi.h".
11133 * i386nbsd-tdep.c: Include "osabi.h".
11134 * i386obsd-tdep.c: Include "osabi.h".
11135
11136 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11137 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11138 check osabi when iterating over arches. Update call to
11139 gdbarch_init_osabi.
11140 (mips_dump_tdep): Don't dump osabi.
11141
11142 * ns32k-tdep.h: Don't include "osabi.h".
11143 (struct gdbarch_tdep): Remove.
11144 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11145 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11146 allocate tdep. Update call to gdbarch_init_osabi.
11147 (ns32k_dump_tdep): Remove.
11148 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11149 * ns32knbsd-tdep.c: Include "osabi.h".
11150
11151 * ppc-tdep.h: Don't include "osabi.h".
11152 (struct gdbarch_tdep): Remove osabi member.
11153 * rs6000-tdep.c: Include "osabi.h".
11154 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11155 osabi when iterating over arches. Update call to
11156 gdbarch_init_osabi.
11157 (rs6000_dump_tdep): Don't dump osabi.
11158 * ppc-linux-tdep.c: Include "osabi.h".
11159 * ppcnbsd-tdep.c: Include "osabi.h".
11160
11161 * sh-tdep.h: Don't include "osabi.h".
11162 (struct gdbarch_tdep): Remove osabi member.
11163 * sh-tdep.c: Include "osabi.h".
11164 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11165 iterate over arches. Update call to gdbarch_init_osabi.
11166 (sh_dump_tdep): Don't dump osabi.
11167 * shnbsd-tdep.c: Include "osabi.h".
11168
11169 * sparc-tdep.c: Include "osabi.h".
11170 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11171 iterate over arches. Update call to gdbarch_init_osabi.
11172 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11173 tdep structure.
11174
11175 * vax-tdep.h: Don't include "osabi.h".
11176 (struct gdbarch_tdep): Remove.
11177 * vax-tdep.c: Include "osabi.h".
11178 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11179 iterate over arches. Don't allocate tdep. Update call
11180 to gdbarch_init_osabi.
11181 (vax_dump_tdep): Remove.
11182 (_initialize_vax_tdep): Update call to gdbarch_register.
11183
a881cf8e
DJ
111842003-01-04 Daniel Jacobowitz <[email protected]>
11185
11186 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11187 entirely.
11188 (breakpoint_re_set_one): Don't fetch the value for a disabled
11189 watchpoint.
11190
1e698235
DJ
111912003-01-04 Daniel Jacobowitz <[email protected]>
11192
11193 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11194 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11195 (COERCE_FLOAT_TO_DOUBLE): Remove.
11196 * gdbarch.c: Regenerate.
11197 * gdbarch.h: Regenerate.
11198 * Makefile.in: Remove value_h from gdbarch_h.
11199 * valops.c (coerce_float_to_double): New variable.
11200 (default_coerce_float_to_double): Remove.
11201 (standard_coerce_float_to_double): Remove.
11202 (value_arg_coerce): Use coerce_float_to_double.
11203 (_initialize_valops): Add "set coerce-float-to-double".
11204 * value.h (default_coerce_float_to_double): Remove prototype.
11205 (standard_coerce_float_to_double): Remove prototype.
11206
11207 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11208 prototyped.
11209 * mdebugread.c (parse_symbol): Likewise.
11210 * stabsread.c (define_symbol): Mark all functions as prototyped.
11211
11212 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11213 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11214 set_gdbarch_coerce_float_to_double.
11215 * arm-tdep.c (arm_gdbarch_init): Likewise.
11216 * frv-tdep.c (frv_gdbarch_init): Likewise.
11217 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11218 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11219 * mips-tdep.c (mips_gdbarch_init): Likewise.
11220 (mips_coerce_float_to_double): Remove.
11221 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11222 (rs6000_coerce_float_to_double): Remove.
11223 * s390-tdep.c (s390_gdbarch_init): Likewise.
11224 * sh-tdep.c (sh_gdbarch_init): Likewise.
11225 (sh_coerce_float_to_double): Remove.
11226 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11227 (sparc_coerce_float_to_double): Remove.
11228 * v850-tdep.c (v850_gdbarch_init): Likewise.
11229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11230 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11231 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11232 (hppa_coerce_float_to_double): Remove prototype.
11233 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11234
f436a26a
DJ
112352003-01-04 Daniel Jacobowitz <[email protected]>
11236
11237 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11238
248f8055
DJ
112392003-01-04 Daniel Jacobowitz <[email protected]>
11240
11241 Suggested by Stewart Brown <[email protected]>:
11242 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11243 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11244 (c_type_print_varspec_suffix): Likewise.
11245
72cfdc76
MK
112462003-01-04 Mark Kettenis <[email protected]>
11247
bfd260bb
MK
11248 * configure.in: Don't set and AC_SUBST SUBDIRS.
11249 * configure: Regenerated.
11250
72cfdc76
MK
11251 * configure.in: Remove code dealing with shared libraries.
11252 * Makefile.in: Remove HLDFLAGS and HLDENV.
11253 * configure: Regenerated.
11254
c8b8a898
AC
112552003-01-04 Andrew Cagney <[email protected]>
11256
11257 * frame.c (deprecated_frame_xmalloc): New function.
11258 (deprecated_set_frame_saved_regs_hack): New function.
11259 (deprecated_set_frame_extra_info_hack): New function.
11260 * frame.h (deprecated_frame_xmalloc): Declare.
11261 (deprecated_set_frame_saved_regs_hack): Declare.
11262 (deprecated_set_frame_extra_info_hack): Declare.
11263
14abd0fb
MK
112642003-01-04 Mark Kettenis <[email protected]>
11265
8ee53726
MK
11266 * configure.in: Move code that provides the --enable-gdbtk option
11267 right after the code that handles the --enable-tui option, and
11268 polish it somewhat.
11269 * configure: Regenerated.
11270
14abd0fb
MK
11271 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11272 AC_CHECK_FUNCS and remove the old check for pread64.
11273 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11274 * acconfig.h (_GNU_SOURCE): Add.
11275 (HAVE_PREAD64): Remove.
11276 * configure, aclocal.m4, config.in: Regenerated.
11277
b2fb4676
AC
112782003-01-03 Andrew Cagney <[email protected]>
11279
11280 * alpha-tdep.c: Use get_frame_saved_regs.
11281 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11282 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11283 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11284 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11285 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11286
8dcde887
MK
112872003-01-03 Mark Kettenis <[email protected]>
11288
11289 * configure.in: Remove all use of the SUBDIRS variable; add
11290 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11291 code providing the --enable-multi-ice option, and move it right in
11292 front of the code that checks whether gdbserver is supported.
11293 Polish that too.
11294 * configure: Regenerated.
11295 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11296 @SUBDIRS@.
11297
8ccd593b
AC
112982003-01-03 Andrew Cagney <[email protected]>
11299
11300 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11301 * avr-tdep.c, cris-tdep.c: Ditto.
11302 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11303 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11304
91151a06
MK
113052003-01-03 Mark Kettenis <[email protected]>
11306
11307 * configure.in: Remove --enable-netrom option.
11308 * configure: Regenerated.
11309
8fe84d01
MK
113102003-01-03 Mark Kettenis <[email protected]>
11311
11312 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11313 declaration for `struct re_pattern_buffer' instead.
11314 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11315
f0394be6
JB
113162003-01-03 J. Brobecker <[email protected]>
11317
11318 * mdebugread.c (parse_symbol): Count until the stEnd matching
11319 the structure name.
11320
27e9bf90
MK
113212003-01-02 Mark Kettenis <[email protected]>
11322
93d331ba
MK
11323 * configure.in: Remove --with-cpu option.
11324 subscripts. Remove evil changequotes here.
11325 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11326 * config.in, configure: Regenerated.
8ffd9b1b 11327
27e9bf90
MK
11328 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11329 * configure.in: Cleanup section that sources GDB and BFD configure
11330 subscripts. Remove evil changequotes here.
11331 * config.in, configure: Regenerated.
11332
50abf9e5
AC
113332003-01-02 Andrew Cagney <[email protected]>
11334
11335 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11336 frame accessor methods.
11337 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11338 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11339 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11340 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11341 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11342 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11343 * z8k-tdep.c: Ditto.
8ffd9b1b 11344
287c1a40
MK
113452003-01-02 Mark Kettenis <[email protected]>
11346
f5dbc56d
MK
11347 * configure.in: Remove UI_OUT configuration code.
11348 * ada-lang.c: Update assuming UI_OUT is always true.
11349 * Makefile.in (UIOUT_CFLAGS): Remove.
11350 * configure: Regenerated.
11351 * TODO: Remove blurb about elimination of -DUI_OUT.
11352
627af7ea
MK
11353 * configure.in: Move code that provides the --enable-gdbcli,
11354 --enable-gdbmi options right before the code that handles the
11355 --enable-tui option. Polish a bit.
11356 * configure: Regenerated.
11357
06825bd1
MK
11358 * configure.in: Rewrite check for GNU regex and the
11359 --without-included regex option, and move it into the "Checks for
11360 library functions" section. This makes us use the system regex
11361 again by default on systems with version 2 of the GNU C library.
11362 This was apparently broken.
11363 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11364 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11365 * config.in, configure: Regenerated.
11366
287c1a40
MK
11367 * configure.in: Move code that provides the --enable-tui option
11368 before the "Checks for libraries" section. Polish the code
11369 somewhat and set need_curses to yes if we build the TUI. Rewrite
11370 code that looks for a library providing termcap functionality to
11371 match more closely what's done in the Readline library, and move
11372 it into to the "Checks for libraries" section.
11373 * configure: Regenerated.
11374 * Makefile.in (TERMCAP): Remove variable.
11375 * config/i386/go32.mh (TERMCAP): Remove variable.
11376
684e56bf
AC
113772003-01-02 Andrew Cagney <[email protected]>
11378
11379 * MAINTAINERS: Mention gdb_mbuild.sh.
11380 * gdb_mbuild.sh: Rewrite.
11381
e1ea1d75
MK
113822003-01-02 Mark Kettenis <[email protected]>
11383
11384 * configure.in: Fix typo in last change.
11385 * config.in, configure: Regenerated.
11386
1b831c93
AC
113872003-01-02 Andrew Cagney <[email protected]>
11388
11389 * valarith.c (value_binop): Delete obsolete code and comments.
11390 * configure.host: Ditto.
11391 * buildsym.h (make_blockvector): Ditto.
11392 * buildsym.c (make_blockvector): Ditto.
11393 * defs.h (enum language): Ditto.
11394 (chill_demangle): Ditto.
11395 * elfread.c (elf_symtab_read): Ditto.
11396 * dwarfread.c (CHILL_PRODUCER): Ditto.
11397 (set_cu_language): Ditto.
11398 (handle_producer): Ditto.
11399 * expprint.c (print_subexp): Ditto.
11400 * gdbtypes.c (chill_varying_type): Ditto.
11401 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11402 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11403 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11404 (chill_varying_type): Ditto.
11405 * language.h (_LANG_chill): Ditto.
11406 * language.c (binop_result_type, integral_type): Ditto.
11407 (character_type, string_type, structured_type): Ditto.
11408 (lang_bool_type, binop_type_check): Ditto.
11409 * stabsread.h (os9k_stabs): Ditto.
11410 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11411 (define_symbol, read_type, read_struct_fields): Ditto.
11412 (read_array_type, read_enum_type, read_huge_number): Ditto.
11413 (read_range_type, start_stabs): Ditto.
11414 * symfile.c (init_filename_language_table): Ditto.
11415 (add_psymbol_with_dem_name_to_list): Ditto.
11416 * symtab.c (symbol_init_language_specific): Ditto.
11417 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11418 * symtab.h (struct general_symbol_info): Ditto.
11419 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11420 * typeprint.c (typedef_print): Ditto.
11421 * utils.c (fprintf_symbol_filtered): Ditto.
11422 * valops.c (value_cast, search_struct_field, value_slice): Delete
11423 obsolete code.
11424 (varying_to_slice): Delete function.
11425 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11426 (varying_to_slice): Delete declaration.
11427 * MAINTAINERS: Update.
11428
8bb2c122
MK
114292003-01-02 Mark Kettenis <[email protected]>
11430
97bf5e38
MK
11431 * configure.in: Reorganize "Checks for library functions section"
11432 a bit. Remove check for `btowc' and `isascii' functions.
11433 * configure: Regenerated.
11434
5ee754fc
MK
11435 * acconfig.h (_MSE_INT_H): Remove.
11436 * configure.in: Create "Checks for header files" section, and move
11437 appropriate tests there. Don't check for objlist.h, wchar.h,
11438 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11439 misdetection fix. Also add "Checks for types", "Checks for
11440 compiler characteristics" and "Checks for library functions"
11441 sections.
11442 * config.in, configure: Regenerated.
11443
8bb2c122
MK
11444 * configure.in: Create "Checks for programs" section, and move
11445 appropriate tests there.
11446
9a156167
MK
114472003-01-01 Mark Kettenis <[email protected]>
11448
11449 * configure.in: Create "Checks for libraries" section, and move
11450 appropriate tests there. Cleanup check for wctype in libw. Use
11451 AC_SEARCH_LIBS to see whether we need libsocket.
11452 * configure: Regenerated.
11453
a80e2bcb 11454For older changes see ChangeLog-2002
c906108c
SS
11455\f
11456Local Variables:
11457mode: change-log
11458left-margin: 8
11459fill-column: 74
11460version-control: never
11461End:
This page took 2.261842 seconds and 4 git commands to generate.