2003-09-08 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
39efb398
AC
12003-09-08 Andrew Cagney <cagney@redhat.com>
2
3 * gnu-nat.c: Remove "inline" function attribute.
4 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
5
f5cb5aca
KB
62003-09-08 Kevin Buettner <kevinb@redhat.com>
7
8 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
9 target.
10
1cb761c7
KB
112003-09-08 Kevin Buettner <kevinb@redhat.com>
12
13 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
14 (frame_extra_info): Rename this struct to frv_unwind_cache.
15 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
16 Add fields ``prev_sp'' and ``base''.
17 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
18 (frv_saved_pc_after_call, frv_init_extra_frame_info)
19 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
20 Delete.
21 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
22 Revise all callers. Fill in the unwind cache argument and make
23 other adjustments to account for new frame mechanisms.
24 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
25 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
26 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
27 (frv_frame_unwind, frv_frame_base): New structs.
28 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
29 additional arguments expected by this method and adjust function
30 body accordingly.
31 (frv_gdbarch_init): Remove calls to the following functions:
32 set_gdbarch_deprecated_init_frame_pc(),
33 set_gdbarch_deprecated_saved_pc_after_call(),
34 set_gdbarch_deprecated_frame_chain(),
35 set_gdbarch_deprecated_frame_saved_pc(),
36 set_gdbarch_deprecated_frame_init_saved_regs(),
37 set_gdbarch_deprecated_push_arguments(),
38 set_gdbarch_deprecated_push_return_address(),
39 set_gdbarch_deprecated_pop_frame(),
40 set_gdbarch_deprecated_call_dummy_words(),
41 set_gdbarch_deprecated_sizeof_call_dummy_words(),
42 set_gdbarch_deprecated_init_extra_frame_info(),
43 set_gdbarch_deprecated_dummy_write_sp(), and
44 set_gdbarch_deprecated_pc_in_call_dummy().
45 Add calls to the following functions:
46 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
47 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
48 frame_base_set_default().
49 * Makefile.in (frv-tdep.o): Update dependencies.
50
68f6cf99
MK
512003-09-09 Mark Kettenis <kettenis@gnu.org>
52
53 * dwarf2-frame.c (read_encoded_value): Add support for
54 DW_EH_PE_aligned encoding.
55
73b65bb0
DJ
562003-09-08 Daniel Jacobowitz <drow@mvista.com>
57
58 * infrun.c (normal_stop): Don't print a message if the inferior
59 has exited.
60
7c8a5605
JB
612003-09-08 Jim Blandy <jimb@redhat.com>
62
63 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
64 * dbxread.c: #include "gdb_assert.h".
65 (read_dbx_symtab): If the objfile has no .data section, use the
66 section index for the .bss section instead.
67
7dd88986
DJ
682003-09-08 Daniel Jacobowitz <drow@mvista.com>
69
70 * frame.c (deprecated_safe_get_selected_frame): New function.
71 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
72 * findvar.c (read_var_value): Call it.
73
55ff77ac
CV
742003-09-08 Corinna Vinschen <vinschen@redhat.com>
75
76 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
77 (sh64-tdep.o): Add dependencies.
78 * configure.tgt: Add FIXME to sh-*-linux*.
79 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
80 (sh_gdbarch_init): Always set correct sh_show_regs function
81 pointer. Call sh64_gdbarch_init() if machine type is sh5.
82 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
83 * sh64-tdep.c: New file, containing all sh64 related code from
84 sh-tdep.c.
85 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
86 * config/sh/linux.mt (TDEPFILES): Ditto.
87 * config/sh/nbsd.mt (TDEPFILES): Ditto.
88 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
89 * config/sh/wince.mt (TDEPFILES): Ditto.
90
bfb39158
DJ
912003-09-07 Daniel Jacobowitz <drow@mvista.com>
92
93 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
94 (stop_wait_callback): Handle !lp->signalled also.
95 (lin_lwp_has_pending, flush_callback): New functions.
96 (lin_lwp_wait): Call flush_callback.
97 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
98 (linux_proc_pending_signals): New function.
99 * linux-nat.h (linux_proc_pending_signals): Add prototype.
100
9407de8e
DJ
1012003-09-07 Daniel Jacobowitz <drow@mvista.com>
102
103 From Nick Kelsey <nickk@ubicom.com>:
104 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
105 when the stop PC is at the beginning of a function also.
106
2ef47cd0
DJ
1072003-09-06 Daniel Jacobowitz <drow@mvista.com>
108
109 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
110 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
111
6f4492c8
MK
1122003-09-06 Mark Kettenis <kettenis@gnu.org>
113
114 * sol-thread.c: Include "gdb_string.h".
115
d3420b2f
MK
1162003-09-03 Mark Kettenis <m.kettenis@osp.nl>
117
118 * gcore.c: Reorder include files in alphabetical order. Include
119 "gdb_assert.h". Various coding style fixes.
120 (derive_stack_segment, derive_heap_segment): Replace check for
121 non-null BOTTOM and TOP with gdb_assert.
122 (derive_heap_segment): Replace check for successful creation of
123 ZERO with gdb_assert.
124 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
125
5220ea4c
AC
1262003-09-04 Andrew Cagney <cagney@redhat.com>
127
128 * thread-db.c (verbose_dlsym): New function.
129 (thread_db_load): Use verbose_dlsym
130 (thread_db_new_objfile): Print that libthread_db was loaded, and
131 that thread debugging was enabled.
132
6e8c2c06
AC
1332003-09-04 Andrew Cagney <cagney@redhat.com>
134
135 * configure.tgt: Add "mips64*-*-*" target. Delete
136 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
137 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
138 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
139 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
140 mips*-sony-*, and mips64*-*-elf* targets.
141 * config/mips/embedl.mt: Delete file.
142 * config/mips/embedl64.mt: Delete file.
143 * config/mips/mips.mt: Delete file.
144 * config/mips/mips64.mt: Delete file.
145 * config/mips/tm-embed.h: Delete file.
146 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
147 * config/mips/embed64.mt: Delete out-of-date comment.
148
3a3bc038
AC
1492003-09-04 Andrew Cagney <cagney@redhat.com>
150
151 * hppa-tdep.c (hppa_gdbarch_init): Set
152 "have_nonsteppable_watchpoint".
153 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
154 * mips-tdep.c (mips_dump_tdep): Do not print
155 HAVE_NONSTEPPABLE_WATCHPOINT.
156 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
157 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
158 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
159 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
160
a957e642
CV
1612003-09-04 Corinna Vinschen <vinschen@redhat.com>
162
163 * breakpoint.c (watchpoint_check): Remove accidentally checked in
164 unused code. Add comment.
165
a6fbcf2f
CV
1662003-09-04 Corinna Vinschen <vinschen@redhat.com>
167
168 * breakpoint.c (watchpoint_check): Check for pc being in an
169 epilogue if watchpoint frame couldn't be found.
170
c14a44d5
AC
1712003-09-04 Andrew Cagney <cagney@redhat.com>
172
173 * Makefile.in: Re-generate all dependencies.
174
f6c40618
AC
1752003-09-03 Andrew Cagney <cagney@redhat.com>
176
177 * arch-utils.h (legacy_print_insn): Delete declaration.
178 * arch-utils.c (legacy_print_insn): Delete function.
179 * disasm.c (deprecated_tm_print_insn_info): Delete.
180 (_initialize_disasm): Delete function, contained code initializing
181 deprecated_tm_print_insn_info.
182 * gdbarch.sh (deprecated_tm_print_insn): Delete.
183 (deprecated_tm_print_insn_info): Delete.
184 (TARGET_PRINT_INSN): Do not provide a default.
185 * gdbarch.h, gdbarch.c: Re-generate.
186
242e8be5
AC
1872003-09-03 Andrew Cagney <cagney@redhat.com>
188
189 * disasm.c (fprintf_disasm): New function.
190 (gdb_disassemble_info): Call "init_disassemble_info", instead of
191 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
192 reverts 2003-08-14 change.
193 (_initialize_disasm): Call "init_disassemble_info", instead of
194 INIT_DISASSEMBLE_INFO_NO_ARCH.
195
3ffc3dda
MS
1962003-09-03 Michael Snyder <msnyder@redhat.com>
197
198 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
199
52d16ba8
AC
2002003-09-03 Andrew Cagney <cagney@redhat.com>
201
202 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
203 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
204 * symfile.c (syms_from_objfile): Update.
205 (reread_symbols): `Update
206 * exec.c (exec_file_attach): Update.
207 (exec_file_attach): Update.
208 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
209 2003-08-29 change.
210 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
211
eb5492fa
DJ
2122003-09-03 Daniel Jacobowitz <drow@mvista.com>
213
214 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
215 trad-frame.h.
216 (arm_get_cache): Delete macro.
217 (struct arm_prologue_cache): Update comments. Make saved_regs into
218 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
219 to prev_sp.
220 (thumb_scan_prologue): Update for cache changes. Don't call
221 DEPRECATED_PC_IN_CALL_DUMMY.
222 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
223 argument and use it in desperation search for our prologue. Do not
224 search past the specified PC.
225 (arm_make_prologue_cache): Simplify.
226
227 (arm_prologue_this_id, arm_prologue_prev_register)
228 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
229 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
230 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
231 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
232 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
233
234 (arm_frame_chain_valid, arm_find_callers_reg)
235 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
236 (arm_pop_frame): Delete obsolete methods.
237 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
238
239 (arm_gdbarch_init): Update for new frame methods. Register prologue
240 and sigtramp unwinders. Set the default frame base method.
241
242 * Makefile.in (arm-tdep.o): Update dependencies.
243 * varobj.c (find_frame_addr_in_frame_chain): Call
244 get_frame_base_address.
245 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
246
24de872b
DJ
2472003-09-03 Daniel Jacobowitz <drow@mvista.com>
248
249 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
250 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
251 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
252 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
253 Take NEXT_FRAME and CACHE arguments. Call
254 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
255 Set unwound_pc in CACHE instead of modifying the frame argument.
256 Don't bother checking the frame type when looking for sigtramp
257 frames.
258 (arm_make_prologue_cache, arm_frame_chain)
259 (arm_init_extra_frame_info): New functions.
260
9b8d791a
DJ
2612003-09-03 Daniel Jacobowitz <drow@mvista.com>
262
263 * arm-tdep.c (arm_get_cache): Define.
264 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
265 unwound_sp, unwound_pc, and saved_regs.
266 (thumb_scan_prologue): Take a cache instead of the frame.
267 (arm_scan_prologue): Likewise.
268 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
269 instead of a temporary frame.
270 (arm_init_extra_frame_info): Allocate and use a cache.
271 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
272
7ee3275f
AC
2732003-09-03 Andrew Cagney <cagney@redhat.com>
274
275 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
276 * config/mips/wince.mt (TM_CLIBS): Ditto.
277 * config/sh/wince.mt (TM_CLIBS): Ditto.
278 * config/pa/hppa64.mt (TM_CLIBS): Delete.
279 * config/sparc/sp64.mt (CC): Delete.
280
57b29be7
AC
2812003-09-03 Andrew Cagney <cagney@redhat.com>
282
283 * defs.h: Do not include "arch-utils.h".
284 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
285 GDB_MULTI_ARCH_PURE.
286 * configure.in (GDB_MULTI_ARCH): Do not define.
287 * configure, config.in: Regenerate.
288 * configure.tgt: Do not set variable "gdb_multi_arch".
289 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
290 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
291 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
292 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
293 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
294 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
295 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
296 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
297 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
298 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
299 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
300 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
301 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
302 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
303 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
304 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
305 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
306 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
307
12e035e2
MC
3082003-08-30 Michael Chastain <mec@shout.net>
309
310 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
311 * config/m68k/nm-hp300hpux.h: Delete.
312 * config/m68k/tm-hp300hpux.h: Delete.
313 * config/m68k/xm-hp300hpux.h: Delete.
314 * config/m68k/xm-hp300bsd.h: Delete.
315 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
316 tm-hp300hpux.h, xm-hp300hpux.h.
317 * somsolib.c: Remove comment about hp300 shared libraries.
318
bda34dc2
MK
3192003-08-31 Mark Kettenis <kettenis@gnu.org>
320
5bca7895
MK
321 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
322 Only define PTRACE_GET_THREAD_AREA is not already defined.
323 Various style fixes in code and comments and some additional
324 spelling fixes in comments. Move after functions dealing with
325 debug registers.
326 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
327 Fix coding-style.
328
bda34dc2
MK
329 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
330 frame_unwind_register_unsigned instead of
331 frame_unwind_unsigned_register.
332
c890192f
MK
3332003-08-30 Mark Kettenis <kettenis@gnu.org>
334
335 * configure.in: Search for gethostbyname in libnsl.
336 * configure: Regenerated.
337
60fac5b8
MK
3382003-08-29 Mark Kettenis <kettenis@gnu.org>
339
e294916c
MK
340 * configure.in: Remove redundant AC_MSG_RESULT in check for
341 uintptr_t in stdint.h.
342 * configure: Regenerated.
343
c40d267a
MK
344 * amd64-nat.h (struct regcache): Add opaque declaration.
345
60fac5b8
MK
346 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
347 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
348 Change "register array" to "register cache" in comments.
349 (x86_64_linux_gregset64_reg_offset): New variable.
350 (GETREGS_SUPPLIES): Remove macro.
351 (supply_gregset): Call amd64_supply_native_gregset instead of
352 x86_64_linux_supply_gregset.
353 (fill_gregset): Rename `regno' to `regnum'. Call
354 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
355 (store_regs): Rename `regno' to `regnum'.
356 (store_fpregs): Rename `regno' to `regnum'.
357 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
358 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
359 Reorganize function a bit.
360 (store_inferior_registers): Rename `regno' to `regnum'. Use
361 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
362 Reorganize function a bit.
363 (_initialize_x86_64_linux_nat): New function.
364 * config/i386/x86-64linux.mh.
365
546143b6
AC
3662003-08-29 Andrew Cagney <cagney@redhat.com>
367
368 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
369 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
370 (target_remove_watchpoint): Delete macro.
371 (target_insert_watchpoint): Delete macro.
372 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
373 (remote_mips_stopped_by_watchpoint): Delete declaration.
374 (remote_mips_remove_watchpoint): Delete declaration.
375 (remote_mips_set_watchpoint): Delete declaration.
376 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
377 * remote-mips.c (_initialize_remote_mips): Set
378 "to_insert_watchpoint", "to_stopped_by_watchpoint",
379 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
380 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
381 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
382 (mips_stopped_by_watchpoint): Rename
383 remote_mips_stopped_by_watchpoint.
384 (mips_can_hardware_watchpoint): Rename
385 remote_mips_can_use_hardware_watchpoint, update function
386 signature.
387
7bace51b
MK
3882003-08-29 Mark Kettenis <kettenis@gnu.org>
389
b0f5c6f2
MK
390 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
391 USER_DS. We haven't given them a register number yet.
392
2a6d284d
MK
393 * amd64-nat.h: New file.
394 * amd64-nat.c: New file.
395 * amd64fbsd-nat.c: Include "amd64-nat.h".
396 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
397 (amd64fbsd32_r_reg_offset): New variable.
398 (supply_gregset): Simply call amd64_supply_native_gregset.
399 (fill_gregset): Rename `regno' to `regnum'. Simply call
400 amd64_collect_native_gregset.
401 (fill_fpregset): Rename `regno' to `regnum'.
402 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
403 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
404 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
405 `fpregset_t'. Call amd64_supply_native_gregset instead of
406 supply_gregset. Call x86_64_supply_fxsave instead of
407 supply_fpregset.
408 (store_inferior_registers): Rename `regno' to `regnum'. Replace
409 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
410 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
411 `fpregset_t'. Call amd64_collect_native_gregset instead of
412 fill_gregset. Call x86_64_collect_fxsave instead of
413 fill_fpregset.
414 (_initialize_am64fbsd_nat): Initialize
415 amd64_native_gregset32_reg_offset and
416 amd64_native_gregset64_reg_offset.
417 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
418
a16d75cc
MK
419 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
420 null pointer. Fix typo in comment.
421
7bace51b
MK
422 * regcache.c (supply_register): Reimplement to call
423 regcache_raw_supply.
424 (regcache_collect): Reimplement by calling regcache_raw_collect.
425
9a661b68
MK
4262003-08-28 Mark Kettenis <kettenis@gnu.org>
427
428 * regcache.c (register_buffer): Consitify first argument.
429 (regcache_raw_supply, regcache_raw_collect): New
430 functions.
431
e94cc8fa
DJ
4322003-08-28 Daniel Jacobowitz <drow@mvista.com>
433
434 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
435 by Nathan J. Williams.
436
c64bd0ce
DJ
4372003-08-28 Daniel Jacobowitz <drow@mvista.com>
438
439 * lin-lwp.c (wait_lwp): New function, copied from
440 stop_wait_callback. Clean up.
441 (stop_wait_callback): Use wait_lwp.
442
e5ab0dce
AC
4432003-08-28 Andrew Cagney <cagney@redhat.com>
444
445 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
446 flavour and disassembler options.
447 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
448 (mips_gdbarch_init): Set "print_insn". Delete initialization of
449 deprecated_tm_print_insn_info.
450
a788de9b
AC
4512003-08-27 Andrew Cagney <cagney@redhat.com>
452
453 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
454 Use target_read_memory.
455 (s390_get_frame_info): Update. Do not reference
456 deprecated_tm_print_insn_info.
457 (s390_check_function_end, s390_is_sigreturn): Ditto.
458
36482093
AC
4592003-08-27 Andrew Cagney <cagney@redhat.com>
460
461 * Makefile.in (cris-tdep.o): Update dependencies.
462 * cris-tdep.c: Include "gdb_assert.h".
463 (cris_gdbarch_init): Set print_insn.
464 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
465 (cris_delayed_get_disassembler): Simplify, directly call the
466 disassembler returned by cris_get_disassembler.
467 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
468 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
469 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
470 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
471 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
472 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
473 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
474 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
475 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
476 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
477 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
478 (gdb_print_insn_sparc): Delete function.
479 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
480 deprecated_tm_print_insn_info.
481 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
482 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
483 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
484 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
485 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
486 * s390-tdep.c (gdb_print_insn_s390): Delete function.
487 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
488 (s390_gdbarch_init): Set print_insn.
489
0285512f
AC
4902003-08-27 Andrew Cagney <cagney@redhat.com>
491
492 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
493 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
494 * infcall.c (call_function_by_hand): Convert the entry point
495 address into a code address.
496
cdcd5552
AC
4972003-08-27 Andrew Cagney <cagney@redhat.com>
498
499 * dsrec.c: Include "gdb_string.h".
500 * Makefile.in (dsrec.o): Update dependencies.
501
e85cddad
MC
5022003-08-27 Michael Chastain <mec@shout.net>
503
504 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
505
8bbfbb23
AC
5062003-08-27 Andrew Cagney <cagney@redhat.com>
507
508 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
509 (alpha_osf1_init_abi): Do not set call_dummy_address.
510
ba058b66
DC
5112003-08-27 David Carlton <carlton@kealia.com>
512
513 From Randolph Chung <tausq@debian.org>:
514 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
515 compiles with -Wformat-nonliteral -Werror.
516
87f84c9d
JB
5172003-08-26 Jim Blandy <jimb@redhat.com>
518
519 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
520 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
521 bfd_lookup_symbol, since we only want symbols in code sections.
522 (look_for_base): Pass zero as the SECT_FLAGS argument to
523 bfd_lookup_symbol, since we're not concerned about which section
524 the symbol is in.
525
102d615a
JJ
5262003-08-26 Jeff Johnston <jjohnstn@redhat.com>
527
528 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
529 we are frameless or the return address register is already known.
530
cc7ad3ea
AC
5312003-08-26 Andrew Cagney <cagney@redhat.com>
532
533 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
534 in size. Add comments.
535
af8b88dd
JJ
5362003-08-26 Jeff Johnston <jjohnstn@redhat.com>
537
538 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
539 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
540
e0a4f5a1
JM
5412003-08-26 Jason Merrill <jason@redhat.com>
542
543 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
544 case out of #ifdef MIPS block.
545
4ae9ee8e
DJ
5462003-08-25 Daniel Jacobowitz <drow@mvista.com>
547
548 PR java/1322
549 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
550 available before calling SECT_OFF_TEXT.
3c164570 551 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 552
004d836a
JJ
5532003-08-25 Jeff Johnston <jjohnstn@redhat.com>
554
555 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
556 bof, and nat0-nat127 as pseudo-registers.
557 (ia64_frame_cache): New struct used to cache frame info.
558 (ia64_register_reggroup_p): New routine used to override default
559 register grouping so registers without names are still saved and
560 restored.
561 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
562 pseudo values.
563 (ia64_pseudo_register_read): New routine to read pseudo-registers.
564 (ia64_pseudo_register_write): New routine to write pseudo-registers.
565 (ia64_alloc_frame_cache): New routine to create a new
566 ia64_frame_cache.
567 (examine_prologue): Change prototype to add next_frame pointer.
568 Assume frameless until otherwise proven. Verify that the cfm for
569 current frame matches the cfm that should occur for the prologues
570 alloc insn and if equal, mark as not frameless. At end of routine,
571 if not frameless, calculate registers for the previous frame and store
572 in the cache, if a cache is provided.
573 (ia64_skip_prologue): Use new prototype when calling examine_prologue
574 and pass 0 for next_frame.
575 (ia64_store_return_value): Change to use convert_typed_floating()
576 instead of calling ia64_convert_to_raw().
577 (ia64_extract_return_value): Change to use convert_typed_floating()
578 instead of calling ia64_convert_to_virtual().
579 (ia64_frame_cache): New routine to support new frame model.
580 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
581 (ia64_frame_sniffer): Ditto.
582 (ia64_sigtramp_frame_init_saved_regs): Ditto.
583 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
584 (ia64_sigtramp_frame_prev_register): Ditto.
585 (ia64_sigtramp_frame_sniffer): Ditto.
586 (ia64_frame_base_address): Ditto.
587 (ia64_extract_struct_value_address): Change to issue error message.
588 (ia64_frame_align): New routine to align sp.
589 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
590 (ia64_push_arguments): Removed. Logic moved to
591 ia64_push_dummy_call().
592 (ia64_push_return_address): Ditto.
593 (ia64_unwind_dummy_id): New function.
594 (ia64_unwind_pc): Ditto.
595 (ia64_convert_register_p): Ditto.
596 (ia64_register_to_value): Ditto.
597 (ia64_value_to_register): Ditto.
598 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
599 (ia64_register_byte, ia64_register_raw_size): Ditto.
600 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
601 (ia64_saved_pc_after_call): Ditto.
602 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
603 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
604 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
605 (ia64_register_convert_to_raw): Ditto.
606 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
607 (ia64_init_extra_frame_info): Ditto.
608 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
609 (ia64_gdbarch_init): Remove registering of deprecated functions that
610 are no longer used. Add registration of new gdbarch functions.
611 Remove registering deprecated_write_sp. Replace
612 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
613 Delete set_gdbarch_deprecated_register_convertible(),
614 set_gdbarch_deprecated_register_convert_to_virtual(), and
615 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
616 set_gdbarch_deprecated_register_size(),
617 set_gdbarch_deprecated_register_bytes(),
618 set_gdbarch_pcregnum(),
619 set_gdbarch_deprecated_register_byte(),
620 set_gdbarch_deprecated_register_raw_size(),
621 set_gdbarch_deprecated_max_register_raw_size(),
622 set_gdbarch_deprecated_register_virtual_size(),
623 and set_gdbarch_deprecated_max_register_virtual_size() calls.
624 Replace set_gdbarch_deprecated_extract_return_value() with
625 set_gdbarch_extract_return_value(). Remove calls to:
626 set_gdbarch_deprecated_saved_pc_after_call();
627 set_gdbarch_deprecated_frame_chain(),
628 set_gdbarch_deprecated_frame_saved_pc(),
629 set_gdbarch_deprecated_frame_init_saved_regs(),
630 set_gdbarch_deprecated_get_saved_register(),
631 set_gdbarch_deprecated_call_dummy_words(),
632 set_gdbarch_deprecated_sizeof_call_dummy_words(),
633 set_gdbarch_deprecated_init_extra_frame_info(),
634 set_gdbarch_deprecated_frame_args_address(),
635 set_gdbarch_deprecated_frame_locals_address(),
636 and set_gdbarch_deprecated_dummy_write_sp().
637 Add set_gdbarch_convert_register_p(),
638 set_gdbarch_register_to_value(),
639 set_gdbarch_value_to_register(),
640 set_gdbarch_push_dummy_call(),
641 set_gdbarch_frame_align(),
642 set_gdbarch_unwind_dummy_id(),
643 set_gdbarch_unwind_pc(),
644 frame_unwind_append_sniffer(),
645 frame_unwind_append_sniffer(),
646 and frame_base_set_default().
647
aede7613
CD
6482003-08-25 Chris Demetriou <cgd@broadcom.com>
649
650 * configure.tgt: Document need for special "mipsisa64" handling.
651 (mipsisa64*-*-linux64): Handle as target linux64.
652 (mipsisa64*-*-*): Handle as target embed64.
653
43c3a82e
MC
6542003-08-18 Michael Chastain <mec@shout.net>
655
656 * PROBLEMS: Document pr gdb/1322, the Java anonymous
657 objfile bug.
658
6564f77d
MK
6592003-08-24 Mark Kettenis <kettenis@gnu.org>
660
2de139ba
MK
661 * i387-tdep.h: Update copyright date.
662 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
663
6564f77d
MK
664 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
665 CFLAGS games to reflect reality.
666
42cf1509
AC
6672003-08-24 Andrew Cagney <cagney@redhat.com>
668
669 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
670 GDB_MULTI_ARCH is always non-zero.
671 * osabi.c (_initialize_gdb_osabi): Ditto.
672 (gdbarch_init_osabi): Ditto.
673 * sparc-tdep.c: Ditto for #if code.
674
0485f6ad
MK
6752003-08-23 Mark Kettenis <kettenis@gnu.org>
676
677 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
678 Update comments.
679 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
680 comments.
681 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
682 x86_64_supply_fxsave.
683 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
684 x86_64_supply_fxsave.
685 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
686 x86_64_supply_fxsave.
687
c7716133
AJ
6882003-08-23 Andreas Jaeger <aj@suse.de>
689
690 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
691 i387_supply_fxsave.
692
ed504bdf
MK
6932003-08-23 Mark Kettenis <kettenis@gnu.org>
694
695 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
696 i387_supply_register.
697 (go32_fetch_registers): Adjust call to i387_supply_fsave.
698 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
699 i387_supply_fsave.
700 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
701 i387_supply_fxsave.
702 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
703 i387_supply_fsave.
704 * i386bsd-nat.c (supply_fpregset): Adjust call to
705 i387_supply_fsave.
706 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
707 call to i387_supply_fxsave. Call i387_supply_fsave instead of
708 supply_fpregset.
709 (store_inferior_registers): Remove extraneous whitespace. Call
710 i387_fill_fsave instead of fill_fpregset.
711 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
712 (supply_fpregset): Likewise.
713 * i386v4-nat.c (supply_fpregset): Adjust call to
714 i387_supply_fsave.
715 * i386-interix-nat.c (supply_fpregset): Adjust call to
716 i387_supply_fsave.
717 * i386-linux-nat.c (supply_fpregset): Adjust call to
718 i387_supply_fsave.
719 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
720 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
721 i387supply_fsave and i387_supply_fxsave.
722 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
723 Incorporate code from `i387_supply_register.
724 (i387_supply_register): Remove.
725 (i387_supply_fxsave): Add `regnum' argument.
726 Update comments.
727 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
728 prototype.
729 (i387_supply_register): remove prototype.
730 Update comments.
731
4be5d520
MC
7322003-08-22 Michael Chastain <mec@shout.net>
733
734 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
735 Add lines for files in gdb/testsuite/gdb.cp/* that are
736 still not 8.3 unique.
737
7ed85d26
DJ
7382003-08-22 Daniel Jacobowitz <drow@mvista.com>
739
740 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
741 TYPE_VPTR_FIELDNO is valid.
742
eb0d3137
MK
7432003-08-19 Mark Kettenis <kettenis@gnu.org>
744
745 * utils.c (set_width_command): Remove prototypes.
746 (set_screen_size): New prototype.
747 (init_page_info): Simplify by fetching the screen size from
748 Readline. Call set_screen_size.
749 (set_screen_size): New function.
750 (set_width): Add missing whitespace in comment.
751 (set_width_command): Call set_screen_size.
752 (set_height_command): New function.
753 (initialize_utils): Fix formatting. Make "set height" command
754 call set_height_command. Remove redundant code that turns off
755 pagination if output isn't a terminal. Remove redundant call to
756 set_width_command.
757
7e6d0ac8
MK
7582003-08-22 Mark Kettenis <kettenis@gnu.org>
759
3567a8ea
MK
760 * sparc64-tdep.h (sparc64_regnum): Fix comment.
761 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
762 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
763 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
764 `case' keyword.
765 (sparc64_register_info): Give the reister with number
766 SPARC64_STATE_REGNUM a name.
767 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
768 %asi and %ccr.
769 (sparc64_push_dummy_call): Take BIAS into account when checking
770 stcak alignment.
771 (sparc_software_single_step): Remove assertions that check whether
772 NPC and NNPC were zero.
773 (sparc_supply_rwindow): Make public. Merge functionality with
774 sparc64_supply_rwindow.
775 (sparc_fill_rwindow): Make public. Merge functionality with
776 sparc64_fill_rwindow.
777 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
778 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
779 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
780 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
781 sparc_supply_rwindow instead of sparc64_supply_rwindow.
782
7e6d0ac8
MK
783 * reggroups.c: Add whitespace after declarations of local
784 variables in functions.
785
72e5f484
MC
7862003-08-21 Michael Chastain <mec@shout.net>
787
788 * gdbtypes.h: Change array bound type from an int to enum.
789
435ac228
AC
7902003-08-21 Andrew Cagney <cagney@redhat.com>
791
792 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
793 * config/sparc/tm-sparc.h: Ditto.
794 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
795 unconditionally.
796 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
797
0d0e1a63
MK
7982003-07-13 Mark Kettenis <kettenis@gnu.org>
799
800 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
801 (register_objfile_data, set_objfile_data, objfile_data): New
802 prototypes.
803 * objfiles.c (objfile_alloc_data, objfile_free_data): New
804 prototypes.
805 (allocate_objfile): Call objfile_alloc_data.
806 (free_objfile): Call objfile_free_data.
807 (struct objfile_data): New.
808 (struct objfile_data_registration): New.
809 (struct objfile_data_registry): New.
810 (objfile_data_registry): New variable.
811 (register_objfile_data): New function.
812 (objfile_alloc_data, objfile_free_data): New functions.
813 (set_objfile_data, objfile_data): New functions.
814 * dwarf2-frame.c (dwarf2_frame_data): New variable.
815 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
816 (_initialize_dwarf2_frame): New function and prototype.
817
d90cf509
AC
8182003-08-21 Andrew Cagney <cagney@redhat.com>
819
820 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
821 a specific architecture.
822 * arch-utils.h (set_architecture_from_arch_mach): Delete
823 declaration.
824 (target_architecture_hook): Delete declaration.
825 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
826 (default_float_format): Assume GDB_MULTI_ARCH.
827 (default_double_format): Assume GDB_MULTI_ARCH.
828 (set_endian_from_file): Delete function.
829 (arch_ok): Delete function.
830 (set_arch): Delete function.
831 (set_architecture_from_arch_mach): Delete function.
832 (set_architecture_from_file): Delete function.
833 (set_architecture): Assume GDB_MULTI_ARCH.
834 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
835
8b39fe56
MK
8362003-08-21 Mark Kettenis <kettenis@gnu.org>
837
838 Rewrite FreeBSD/sparc64 native configuration.
839 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
840 * sparc64fbsd-nat.c: New file.
841 * sparc64fbsd-tdep.c: New file.
842 * sparc64-tdep.c sparc64-tdep.h: New files.
843 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
844 sparc64fbsd-tdep.o): New dependencies.
845 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
846 and sparc64fbsd-tdep.c.
847 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
848 * config/sparc/fbsd.mh: Remove copyright notice.
849 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
850 sparcbsd-nat.o.
851 * config/sparc/fbsd.mt: Remove copyright notice.
852 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
853 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
854 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
855 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
856 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
857 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
858 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
859 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
860 "sparc/tm-sp64.h".
861 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
862 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
863
a7f19c79
MC
8642003-08-21 Michael Chastain <mec@shout.net>
865
866 * symtab.h: Add doco on the space critical structures and
867 some measurements of space usage.
868
da08ea5b
MS
8692003-08-21 Michael Snyder <msnyder@redhat.com>
870
871 * tracepoint.c (trace_dump_command): Trace break address
872 is subject to DECR_PC_AFTER_BREAK.
873 (set_traceframe_context): Make "trace_line" an int.
874 Fixes suggested by Mark Newman <mark.newman@lmco.com>
875
6df2bf50
MS
8762003-08-20 Michael Snyder <msnyder@redhat.com>
877
878 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
879 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
880 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
881 argument passing.
882 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
883 functions, replace sh_push_dummy_call.
884 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
885
0955bbf0
MC
8862003-08-20 Michael Chastain <mec@shout.net>
887
888 * gdbtypes.h (struct main_type): Rearrange to save space.
889
260a4188
MS
8902003-08-20 Michael Snyder <msnyder@redhat.com>
891
892 * trad-frame.c: Comment typo fix.
893
8baa6f92
KB
8942003-08-20 Michael Snyder <msnyder@redhat.com>
895 Kevin Buettner <kevinb@redhat.com>
896
897 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
898 (frv_frame_init_saved_regs): Add declaration.
899 (frame_extra_info): Add new field ``saved_regs''.
900 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
901 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
902 Update frame related code.
903 (frv_extract_struct_value_address): Adjust formatting.
904 * Makefile.in (frv-tdep.o): Update dependencies.
905 * config/frv/tm-frv.h (target_insert_watchpoint)
906 (target_remove_watchpoint, target_insert_hw_breakpoint)
907 (target_remove_hw_breakpoint): Delete these macros.
908 (remote_insert_watchpoint, remote_remove_watchpoint)
909 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
910 these declarations.
911
87193939
MC
9122003-08-20 Michael Chastain <mec@shout.net>
913
914 * defs.h (ENUM_BITFIELD): New macro.
915 * symtab.h (ENUM_BITFIELD): Use it.
916 (BYTE_BITFIELD): Remove old macro, which was already disabled.
917
062103ba
SA
9182003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
919
920 * MAINTAINERS (write after approval): Add myself.
921
8b148df9
AC
9222003-08-18 Andrew Cagney <cagney@redhat.com>
923
924 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
925 * gdbarch.h, gdbarch.c: Re-generate.
926 * infcall.c (call_function_by_hand): Adjust the SP by
927 frame_red_zone_size before allocating any stack space.
928 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
929 * x86-64-tdep.c (x86_64_frame_align): New function.
930 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
931
932 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
933 Remove code adjusting SP so that it skips over the Red Zone.
934
954a4db8
MK
9352003-08-18 Mark Kettenis <kettenis@gnu.org>
936
937 * NEWS (New native configurations): Mention FreeBSD/amd64.
938
1a241548
AC
9392003-08-18 Andrew Cagney <cagney@redhat.com>
940
941 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
942 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
943 "m68k_frame_p".
944 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
945
f82b2acd
MK
9462003-08-18 Mark Kettenis <kettenis@gnu.org>
947
948 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
949
4056d258
ML
9502003-08-18 Michal Ludvig <mludvig@suse.cz>
951
952 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
953 Define.
954 * i386-linux-nat.c: Include "linux-nat.h".
955 (child_post_startup_inferior): New function.
956
99ab4326
MK
9572003-08-18 Mark Kettenis <kettenis@gnu.org>
958
959 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
960 at the start of a frameless function. This probably fixes PR
961 backtrace/1338.
962
c8d5f0d6
MC
9632003-08-17 Michael Chastain <mec@shout.net>
964
965 * symfile.c (find_sym_fns): Remove special case for apollo target.
966
9016a515
DJ
9672003-08-17 Daniel Jacobowitz <drow@mvista.com>
968
969 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
970 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
971 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
972 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
973 (linux_supports_tracevforkdone): New function.
974 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
975 TRACEVFORKDONE.
976 (child_follow_fork): Handle vfork.
977 (linux_handle_extended_wait): Likewise. Also handle exec.
978 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
979 * NEWS: Mention fork tracing.
980
c538c11c
DJ
9812003-08-17 Daniel Jacobowitz <drow@mvista.com>
982
983 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
984
4de4c07c
DJ
9852003-08-17 Daniel Jacobowitz <drow@mvista.com>
986
987 * Makefile.in (i386-linux-nat.o): Update dependencies.
988 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
989 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
990 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
991 * i386-linux-nat.c: Include "linux-nat.h".
992 (child_post_startup_inferior): New function.
993 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
994 * infptrace.c (kill_inferior): Wrap in #ifdef.
995 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
996 attaching to each LWP.
997 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
998 (init_lin_lwp_ops): Fill in some more operations.
999 * linux-nat.h (linux_enable_event_reporting)
1000 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1001 prototypes.
1002 * linux-nat.c (linux_enable_event_reporting): New function.
1003 (child_post_attach, linux_child_post_startup_inferior)
1004 (child_post_startup_inferior, child_follow_fork)
1005 (linux_handle_extended_wait, kill_inferior): New functions.
1006
7996bcec
AC
10072003-08-16 Andrew Cagney <cagney@redhat.com>
1008
1009 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1010 * gdbarch.h, gdbarch.c: Re-generate.
1011
3d48a7a0
MK
10122003-08-16 Mark Kettenis <kettenis@gnu.org>
1013
1014 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1015
7989c619
AC
10162003-08-16 Andrew Cagney <cagney@redhat.com>
1017
1018 * NEWS: Mention that "set prompt-escape-char" was deleted.
1019 * top.c (get_prompt_1): Delete function.
1020 (gdb_prompt_escape):
1021 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1022 prompt-escape-char" command.
1023 (MAX_PROMPT_SIZE): Delete macro.
1024 (get_prompt): Simplify, do not call get_prompt_1.
1025
07978cd8
AC
10262003-08-16 Andrew Cagney <cagney@redhat.com>
1027
1028 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1029 -Werror. -Wformat-nonliteral problems.
1030
3ff7cf9e
JB
10312003-08-15 J. Brobecker <brobecker@gnat.com>
1032
1033 Further multiarching work mostly for hppa64-*-hpux11:
1034 * hppa-tdep.h: New file.
1035 * hppa-tdep.c: #include hppa-tdep.c.
1036 (hppa32_num_regs): Renamed from hppa_num_regs.
1037 (hppa64_num_regs): New constant.
1038 (hppa64_call_dummy_breakpoint_offset): New constant.
1039 (hppa32_call_dummy_length): New constant.
1040 (hppa64_call_dummy_length): New constant.
1041 (hppa32_stack_align): Make name 32bit explicit.
1042 (hppa32_register_virtual_type): Likewise.
1043 (hppa32_extract_return_value): Likewise.
1044 (hppa32_use_struct_convention): Likewise.
1045 (hppa32_store_return_value): Likewise.
1046 (hppa64_register_virtual_type): New function.
1047 (hppa64_extract_return_value): New function.
1048 (hppa64_use_struct_convention): New function.
1049 (hppa64_store_return_value): New function.
1050 (hppa_frame_locals_address): Remove declaration, function does
1051 not exist anymore.
1052 (hppa_register_byte): Add support for PA64 ABI.
1053 (hppa_gdbarch_init): Add support for PA64 ABI.
1054 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1055 Make name 32bit explicit.
1056 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1057 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1058 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1059 (hppa64_hpux_frame_base_before_sigtramp): New function.
1060 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1061 * config/pa/tm-hppa64.h: Remove macros that are no longer
1062 necessary now that the gdbarch vector is properly setup.
1063 Transform some macros into function calls. Some minor cleanup.
1064 * config/pa/tm-hppah.h: Update function calls in macros
1065 following the function renaming in hppa-hpux-tdep.c.
1066 * Makefile.in (hppa_tdep_h): New variable.
1067 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1068
5d05ca6d
MS
10692003-08-14 Michael Snyder <msnyder@redhat.com>
1070
1071 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1072
37ba2569
JB
10732003-08-13 J. Brobecker <brobecker@gnat.com>
1074
1075 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1076 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1077 routine.
1078
aed7f26a
MS
10792003-08-13 Michael Snyder <msnyder@redhat.com>
1080
1081 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1082 (frv_saved_pc_after_call): Use deprecated ftype.
1083 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1084 (frv_remote_translate_xfer_address): Remove.
1085 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1086
752d4ac1
JB
10872003-08-13 J. Brobecker <brobecker@gnat.com>
1088
1089 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1090 initialization after the common gdbarch initialization, not before.
1091
1426ac1d
JB
10922003-08-13 J. Brobecker <brobecker@gnat.com>
1093
1094 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1095 (ADDR_BITS_REMOVE): Remove, redundant.
1096
b6fbdd1d
JB
10972003-08-13 J. Brobecker <brobecker@gnat.com>
1098
1099 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1100 gdbarch method to clear the 2 low bits of text addresses.
1101
44160db3
AC
11022003-08-12 Andrew Cagney <cagney@redhat.com>
1103
1104 * Makefile.in (dsrec.o): Update dependencies.
1105 * dsrec.c: Include "gdb_assert.h".
1106 (make_srec): Use snprintf instead of sprintf, use a literal format
1107 string.
1108
bcf7d3ca
AC
11092003-08-12 Andrew Cagney <cagney@redhat.com>
1110
1111 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1112 FRAME_OBSTACK_ZALLOC.
1113
49ed40de
KB
11142003-08-12 Kevin Buettner <kevinb@redhat.com>
1115
1116 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1117 SSE registers.
1118
b246147c
MK
11192003-08-10 Mark Kettenis <kettenis@gnu.org>
1120
1121 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1122 amd64fbsd_sc_reg_offset): Add extern declarations.
1123 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1124 declarations.
1125
d95fdc0d
BE
11262003-08-11 Ben Elliston <bje@wasabisystems.com>
1127
1128 * MAINTAINERS (write after approval): Update my mail address.
1129
cf6a0e73
AC
11302003-08-10 Andrew Cagney <cagney@redhat.com>
1131
1132 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1133
f837910f
MK
11342003-08-10 Mark Kettenis <kettenis@gnu.org>
1135
e2dbbd2d
MK
1136 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1137 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1138 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1139 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1140 i386bsd_sc_reg_offset): Add extern declarations.
1141 * i386obsd-nat.c: Include "i386-tdep.h"
1142 (_initialize_i386obsd_nat): Remove extern declarations.
1143 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1144 declarations.
1145 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1146 declarations.
1147
f837910f
MK
1148 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1149 instead of frame_read_register.
1150 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1151 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1152 SP_REGNUM.
1153 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1154 instead of frame_unwind_unsigned_register. Use
1155 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1156 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1157 instead of read_register. Use builtin_type_void_data_ptr instead
1158 of builtin_type_void_func_ptr when extracting the address of the
1159 jmp_buf.
1160 (i386_extract_return_value, i386_store_return_value,
1161 i386_pseudo_register_read, i386_pseudo_register_write): Use
1162 register_size instead REGISTER_RAW_SIZE.
1163
edcf254d
AC
11642003-08-10 Andrew Cagney <cagney@redhat.com>
1165
1166 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1167 sprintf. Make "name" constant.
1168
26604a34
MK
11692003-08-10 Mark Kettenis <kettenis@gnu.org>
1170
192285c6
MK
1171 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1172 instead of frame_read_register.
f837910f
MK
1173 (i387_print_float_info): Use get_frame_register and
1174 get_frame_register_unsigned instead of frame_register_read.
192285c6 1175
f0925262
MK
1176 * i386fbsd-nat.c: Include "i386-tdep.h".
1177 (child_resume): Make `eflags' an ULONGEST. Use
1178 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1179 instead of register_read and register_write.
1180
a144416f
MK
1181 * i386bsd-nat.c (fetch_inferior_registers,
1182 store_inferior_registers): Don't use && at the end of a line.
1183 (_initialize_i386bsd_nat): Fix typo.
1184
fec74868
MK
1185 * frame.c (_initialize_frame): Add missing backslash.
1186
87232496
MK
1187 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1188 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1189 and supply_register instead of manipulating the register buffer
1190 directly.
1191
c9b9de0b
MK
1192 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1193 * config/i386/nm-i386sol2.h
1194 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1195
26604a34
MK
1196 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1197 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1198 instructions that GCC likes to mingle into the prologue. Fixes
1199 gdb/1253 and gdb/1255.
1200
25d29d70
AC
12012003-08-09 Andrew Cagney <cagney@redhat.com>
1202
1203 Fix GDB PR cli/926.
1204 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1205 * command.h (add_setshow_uinteger_cmd): Declare.
1206 * frame.c (set_backtrace_cmd): New function.
1207 (show_backtrace_cmd): New function.
1208 * frame.c (_initialize_frame): Replace "set/show
1209 backtrace-below-main" with "set/show backtrace past-main". Add
1210 command "set/show backtrace limit".
1211 (backtrace_past_main): Rename "backtrace_below_main".
1212 (backtrace_limit): New variable.
1213 (get_prev_frame): Update. Check the backtrace_limit.
1214
9ebf4acf
AC
12152003-08-09 Andrew Cagney <cagney@redhat.com>
1216
1217 * defs.h (xstrprintf): Declare.
1218 * utils.c (xstrprintf): New function.
1219 * breakpoint.c (insert_breakpoints): Replace sprintf and
1220 non-literal format strings, with xstrprintf and cleanups.
1221 (delete_breakpoint,breakpoint_re_set): Ditto.
1222 (commands_command, insert_breakpoints): Ditto.
1223 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1224 (break_at_finish_command_1): Ditto.
1225
3771659b
AC
12262003-08-09 Andrew Cagney <cagney@redhat.com>
1227
1228 * MAINTAINERS (language support): List Adam Fedor as Objective C
1229 maintainer.
1230
b4263afa
JB
12312003-08-08 J. Brobecker <brobecker@gnat.com>
1232
1233 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1234 are now multiarched.
1235
d84defb1
JB
12362003-08-08 J. Brobecker <brobecker@gnat.com>
1237
1238 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1239 longer necessary now that hppa64 is partially multiarch'ed.
1240
f786f615
AC
12412003-08-08 Andrew Cagney <cagney@redhat.com>
1242
1243 * interps.c (interp_set): Check for a NULL "old_interp".
1244
c938e9b0
L
12452003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1246
1247 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1248 (install-only): Support DESTDIR.
1249 (uninstall): Likewise.
1250 (install-gdbtk): Likewise.
1251
9a146a11
EZ
12522003-08-08 Elena Zannoni <ezannoni@redhat.com>
1253
1254 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1255 contains something meaningful at all times.
1256
1257Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1258
62599e99 1259 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1260
56296155
BC
1261Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1262
62599e99 1263 * MAINTAINERS (write after approval): Added self.
56296155 1264
9710e734
AC
12652003-08-07 Andrew Cagney <cagney@redhat.com>
1266
1267 * inferior.h (AT_SYMBOL): Define.
1268 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1269 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1270 * mips-tdep.c (mips_call_dummy_address): Delete function.
1271 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1272 set call_dummy_address.
1273
98b3ab73
AC
12742003-08-07 Andrew Cagney <cagney@redhat.com>
1275
1276 * language.c (op_error): Delete function.
1277 (binop_type_check): Delete function.
1278 * language.h (type_op_error, range_op_error): Delete macros.
1279 (op_error): Delete declaration.
1280
2fcf52f0
AC
12812003-08-07 Andrew Cagney <cagney@redhat.com>
1282
1283 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1284
abd4220e 12852003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1286
abd4220e 1287 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1288 (x86_64_push_arguments): Skip the red zone.
abd4220e 1289
9dd5f34f
AC
12902003-08-05 Andrew Cagney <cagney@redhat.com>
1291
1292 * reggroups.c (reggroup_next): Check for the final entry.
1293
e5e78edc
AC
12942003-08-04 Andrew Cagney <cagney@redhat.com>
1295
ab4e3d93
AC
1296 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1297 * cli/cli-script.c (define_command): Call query directly, instead
1298 of passing it a buffer.
1299 * ocd.c (ocd_error): Pass error a constant format string.
1300 * remote-mips.c (mips_error): Use fputs_filtered.
1301
1062ca82
AC
1302 * solib-svr4.c (_initialize_svr4_solib): Update
1303 register_gdbarch_data call.
1304 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1305
fcc1c85c
AC
1306 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1307 (register_gdbarch_data): Delete "free" parameter. Update
1308 comments.
1309 * gdbarch.h, gdbarch.c: Re-generate.
1310 * reggroups.c (_initialize_reggroup): Update.
1311 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1312 * frame-base.c (_initialize_frame_base): Update.
1313 * frame-unwind.c (_initialize_frame_unwind): Update.
1314 * user-regs.c (_initialize_user_regs): Update.
1315 * remote.c (_initialize_remote): Update.
1316 * regcache.c (_initialize_regcache): Update.
1317
116f06ea
AC
1318 * regcache.c (xfree_regcache_descr): Delete function.
1319 (_initialize_regcache): Update call to register_gdbarch_data.
1320 (init_regcache_descr, init_legacy_regcache_descr): Use
1321 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1322
e5e78edc
AC
1323 * remote.c (free_remote_state): Delete function.
1324 (_initialize_remote): Update register_gdbarch_data.
1325 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1326 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1327
6c7d17ba
AC
13282003-08-04 Andrew Cagney <cagney@redhat.com>
1329
1330 * reggroups.c (struct reggroup_el): Define.
1331 (struct reggroups): Delete field "nr_group". Replace array
1332 "group" with a "first" to "last" linked list.
1333 (reggroups_init): Update. Allocate using gdbarch's obstack.
1334 (reggroups_free): Delete function.
1335 (add_group): Update. Add "el" parameter.
1336 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1337 (default_groups): Update.
1338 (reggroup_next): Replace reggroups.
1339 (reggroups_dump): Update.
1340 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1341 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1342 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1343
89b7795b
DJ
13442003-08-04 Daniel Jacobowitz <drow@mvista.com>
1345
1346 * Makefile.in (tui-interp.o): Update dependencies.
1347
306d9ac5
DC
13482003-08-04 David Carlton <carlton@kealia.com>
1349
1350 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1351 to internal_error call.
1352 * source.c (forward_search_command): Add "%s" format argument.
1353 (reverse_search_command): Ditto.
1354 * top.c (quit_confirm): Ditto.
1355 * cli/cli-setshow.c (do_setshow_command): Ditto.
1356 * cp-valprint.c (cp_print_class_method): Replace
1357 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1358 (cp_print_class_member): Ditto.
1359 * event-top.c (command_line_handler): Ditto.
1360 * linux-proc.c (linux_info_proc_cmd): Ditto.
1361 * p-typeprint.c (pascal_type_print_base): Ditto.
1362 * p-valprint.c (pascal_object_print_class_method): Ditto.
1363 (pascal_object_print_class_member): Ditto.
1364 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1365 * remote.c (remote_cisco_section_offsets): Ditto.
1366 * top.c (command_line_input): Ditto.
1367 * utils.c (vwarning,error_stream,quit): Ditto.
1368 * valprint.c (print_floating,print_binary_chars)
1369 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1370
57bfe177
AC
13712003-08-04 Andrew Cagney <cagney@redhat.com>
1372
1373 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1374
e546b999
AC
13752003-08-02 Andrew Cagney <cagney@redhat.com>
1376
1377 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1378 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1379 amd64fbsd-nat.c.
1380
91092ee5
AC
13812003-08-02 Andrew Cagney <cagney@redhat.com>
1382
1383 * Makefile.in: Update all dependencies and definitions.
1384
889f28e2
AF
13852003-08-02 Adam Fedor <fedor@gnu.org>
1386
1387 * linespec.c (is_objc_method_format): New function
1388 (decode_line_1, locate_first_half): Use it.
1389 Fixes PR objc/1298
1390
880bc914
AC
13912003-08-01 Andrew Cagney <cagney@redhat.com>
1392
1393 * NEWS: Mention that m32r is multi-arch.
1394 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1395 * configure.tgt: Recognize m32r-*-*.
1396 * config/m32r/tm-m32r.h: Delete file.
1397 * config/m32r/m32r.mt: New file.
1398 * m32r-rom.c (m32r_upload_command): Use hostent only when
1399 gethostname succeeds, in order to avoid a compilation
1400 warning.
1401 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1402 compiler warning.
1403
19f59343
MS
14042003-08-01 Michael Snyder <msnyder@redhat.com>
1405
1406 * sh-tdep.c (sh_frame_align): New gdbarch method.
1407 (sh_gdbarch_init): Set up frame_align method.
1408
4e7d7511
MS
14092003-07-31 Michael Snyder <msnyder@redhat.com>
1410
1411 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1412 which is already covered by the new frames infrastructure.
1413
63022984
AC
14142003-07-31 Andrew Cagney <cagney@redhat.com>
1415
1416 * user-regs.c (struct user_reg): Add "next" link.
1417 (struct user_regs): Replace "user" with "first" and "last" links.
1418 (append_user_reg): Add pre-allocated "reg" parameter.
1419 (builtin_user_regs): Provide initial value for "last".
1420 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1421 (user_regs_init): Allocate memory from the gdbarch obstack.
1422 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1423 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1424 linked list.
1425 (usernum_to_user_reg): New function.
1426 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1427 (value_of_user_reg): Use usernum_to_user_reg.
1428 (user_regs_free): Delete function.
1429 (_initialize_user_regs): Update register_gdbarch_data call.
1430
7cf6e574
DJ
14312003-07-31 Daniel Jacobowitz <drow@mvista.com>
1432
1433 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1434
c48a845b
MS
14352003-07-30 Michael Snyder <msnyder@redhat.com>
1436
4e7d7511 1437 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1438 * infcall.c (call_function_by_hand): Pass struct_addr to
1439 value_being_returned.
1440 * infcmd.c (print_return_value): Pass zero as struct_addr.
1441 * values.c (value_being_returned): If struct_addr is passed,
1442 use it instead of trying to recover it from the inferior.
1443
f0d8db19
KB
14442003-07-30 Kevin Buettner <kevinb@redhat.com>
1445
1446 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1447 the prologue analyzer won't need to attempt to extract the pc
1448 value from the woefully incomplete dummy frame.
1449 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1450 possible. Disable code which modifies the frame.
1451
e5c113a1
AC
14522003-07-28 Andrew Cagney <cagney@redhat.com>
1453
1454 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1455 to level 2.
1456 (annotate_breakpoints_table, annotate_record): Ditto.
1457 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1458 (annotate_field_name_end, annotate_field_value): Ditto.
1459 (annotate_field_end, annotate_frame_source_begin): Ditto.
1460 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1461 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1462 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1463 (annotate_frame_address_end, annotate_frame_address): Ditto.
1464 (annotate_frame_args, annotate_frame_end): Ditto.
1465 (annotate_frame_where, annotate_arg_begin): Ditto.
1466 (annotate_arg_name_end, annotate_arg_value): Ditto.
1467 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1468 (annotate_function_call, annotate_signal_name): Ditto.
1469 (annotate_signal_string, annotate_signal_name_end): Ditto.
1470 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1471 (annotate_value_begin, annotate_value_history_value): Ditto.
1472 (annotate_value_history_end, annotate_value_end): Ditto.
1473 (annotate_display_begin, annotate_display_number_end): Ditto.
1474 (annotate_display_format, annotate_display_expression): Ditto.
1475 (annotate_display_expression_end, annotate_display_value): Ditto.
1476 (annotate_display_end, annotate_array_section_begin): Ditto.
1477 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1478 (annotate_elt, annotate_array_section_end): Ditto.
1479
bb1db049
AC
14802003-07-28 Andrew Cagney <cagney@redhat.com>
1481
1482 * regcache.c (struct regcache_descr): Update comments on
1483 nr_raw_registers.
1484 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1485 sizeof_raw_register_valid_p.
1486 (init_regcache_descr): Set nr_raw_registers and
1487 sizeof_raw_register_valid_p before calling
1488 init_legacy_regcache_descr.
1489
20e6603c
AC
14902003-07-28 Andrew Cagney <cagney@redhat.com>
1491
1492 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1493 MOD NUM_REGS.
1494
db742940
DJ
14952003-07-28 Daniel Jacobowitz <drow@mvista.com>
1496
1497 * thread.c (info_threads_command): Use get_selected_frame ().
1498 Check that there is at least one non-sentinel frame.
1499
ce7f4371
SC
15002003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1501
1502 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1503 (m68hc11_pop_frame): Remove.
1504 (m68hc11_frame_saved_pc): Remove.
1505 (m68hc11_frame_chain): Remove.
1506 (m68hc11_frame_init_saved_regs): Remove.
1507 (m68hc11_init_extra_frame_info): Remove.
1508 (m68hc11_store_struct_return): Remove.
1509 (m68hc11_saved_pc_after_call): Remove.
1510
1ea653ae
SC
15112003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1512
1513 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1514 frame unwind information.
1515 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1516 and adapted for frame unwinding.
1517 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1518 (m68hc11_unwind_pc): New function.
1519 (m68hc11_frame_unwind_cache): New function to analyze frames.
1520 (m68hc11_frame_this_id): New function to create new frame struct.
1521 (m68hc11_frame_prev_register): New function to unwind a register from
1522 the frame.
1523 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1524 (m68hc11_frame_p): New function for the above.
1525 (m68hc11_frame_base_address): New function to return fp of frame.
1526 (m68hc11_frame_args_address): Update for frame.
1527 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1528 (m68hc11_unwind_sp): New function.
1529 (m68hc11_unwind_dummy_id): New function.
1530 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1531 calls.
1532
c8a7f6ac
SC
15332003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1534
1535 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1536 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1537 when we are beyond the current pc.
1538
3dc990bf
SC
15392003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1540
1541 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1542 from m68hc11_push_arguments.
1543 (m68hc11_push_arguments): Remove.
1544 (m68hc11_push_return_address): Remove.
1545 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1546 handlers; remove deprecated_extra_stack_alignment_needed.
1547
222e5d1d
AC
15482003-07-27 Andrew Cagney <cagney@redhat.com>
1549
1550 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1551 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1552 REAL_PC and not the pointer.
1553 * hppa-hpux-tdep.c: Include frame.h
1554
a7e9a47e
AC
15552003-07-27 Andrew Cagney <cagney@redhat.com>
1556
1557 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1558 GDB_MULTI_ACH_PARTIAL.
1559
7e3dd49e
AC
15602003-07-27 Andrew Cagney <cagney@redhat.com>
1561
1562 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1563 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1564 operator at start and not end of line.
1565 (decode_prologue): Ditto.
1566 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1567 frame_unwind_register_unsigned instead of
1568 frame_unwind_unsigned_register.
1569 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1570 read_register.
1571 (m32r_push_dummy_call): Use register_size instead of
1572 REGISTER_RAW_SIZE.
1573 (m32r_frame_sniffer): Replace m32r_frame_p.
1574 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1575 * m32r-rom.c (report_transfer_performance): Delete extern
1576 declaration.
1577 (m32r_load, m32r_upload_command): Use print_transfer_performance
1578 instead of report_transfer_performance.
1579 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1580 / add_show_from_set.
1581
0880807f
AC
15822003-07-26 Andrew Cagney <cagney@redhat.com>
1583
1584 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1585 store_return_value and extract_struct_value_address.
1586
64ae9269
DJ
15872003-07-26 Daniel Jacobowitz <drow@mvista.com>
1588
1589 PR c++/1267
1590 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1591 NULL, default to the section containing PC.
1592
e286caf2
SC
15932003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1594
1595 * NEWS: Mention "regs" deprecated for m68hc11 too.
1596
1597 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1598 (m68hc11_print_register): New function to print out one register.
1599 (m68hc11_print_registers_info): New function to print registers.
1600 (show_regs): Deprecate and use the above.
1601 (m68hc11_gdbarch_init): Install the print_registers_info.
1602
705b278b
JJ
16032003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1604
1605 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1606 that we have a SIGTRAP before returning non-zero.
1607
63cd4198
EZ
16082003-07-23 Michal Ludvig <mludvig@suse.cz>
1609 Elena Zannoni <ezannoni@redhat.com>
1610
1611 * linespec.c (decode_line_2): Avoid crash if
1612 find_function_start_sal() returns empty record.
1613
6926787d
AS
16142003-07-23 Andreas Schwab <schwab@suse.de>
1615
1616 * ia64-tdep.c (ia64_print_insn): New function.
1617 (ia64_gdbarch_init): Set print_insn to it.
1618 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1619 deprecated_tm_print_insn_info.
1620
708cc1b6
MS
16212003-07-22 Michael Snyder <msnyder@redhat.com>
1622
1623 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1624 handle 8-bit returns (long long).
1625 (h8300h_extract_return_value): Ditto.
1626 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1627
aebd7893
AC
16282003-07-22 Andrew Cagney <cagney@redhat.com>
1629
1630 * gdbarch.c Include "gdb_obstack.h".
1631 (struct gdbarch): Add an "obstack".
1632 (alloc_gdbarch_data): Allocate the gdbarch data using
1633 GDBARCH_OBSTACK_CALLOC.
1634 (free_gdbarch_data): Delete function.
1635 (gdbarch_obstack_zalloc): New function.
1636 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1637 Assert that the architecture is not initialized.
1638 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1639 vector from the obstack.
1640 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1641 architecture obstack.
1642 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1643 (set_gdbarch_data): Assert that the data is not initialized.
1644 (struct gdbarch_data): Delete member "free".
1645 (register_gdbarch_data): Do not initialize "free".
1646 * gdbarch.h, gdbarch.c: Re-generate.
1647
153721e6
AC
16482003-07-22 Andrew Cagney <cagney@redhat.com>
1649
1650 * configure.in (build_warnings): Add -Wformat-nonliteral.
1651 * configure: Re-generate.
1652
c193f044 16532003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1654
1655 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1656
c3228f12
EZ
16572003-07-22 Elena Zannoni <ezannoni@redhat.com>
1658
1659 * findvar.c (read_var_value): Remove case for thread local storage
1660 variables. It is now entirely handled by the dwarf2 location
1661 expression code.
1662 * printcmd.c (address_info): Ditto.
1663 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1664 enumeration value.
1665 (struct symbol): Remove objfile field, which was used by
1666 LOC_THREAD_LOCAL_STATIC only.
1667 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1668 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1669 usage of objfile pointer.
1670 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1671 thread local variables.
1672 Add include of objfiles.h.
1673 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1674 storage variables.
1675 * Makefile.in (dwarf2loc.o): Update dependencies.
1676
aef9bcd2
AC
16772003-07-22 Andrew Cagney <cagney@redhat.com>
1678
1679 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1680 get_frame_base.
1681 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1682 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1683 (struct value): Add opaque declaration.
1684 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1685
d95a8903
AC
16862003-07-21 Andrew Cagney <cagney@redhat.com>
1687
1688 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1689 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1690
4db73d49
SC
16912003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1692
1693 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1694 regcache_cooked_read_unsigned instead of read_register.
1695 (m68hc11_saved_pc_after_call): Likewise.
1696 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1697 instead of write_register.
1698 (m68hc11_register_type): New function.
1699 (m68hc11_register_virtual_type): Remove.
1700 (m68hc11_store_return_value): Convert to use the regcache.
1701 (m68hc11_extract_struct_value_address): Likewise.
1702 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1703 m68hc11_register_type; undeprecate store_return_value and
1704 extract_struct_value_address.
1705
ef2b8fcd
SC
17062003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1707
1708 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1709 and translate to use regcache.
1710 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1711
625b0b97
AC
17122003-07-18 Andrew Cagney <cagney@redhat.com>
1713
1714 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1715 * gdbarch.h, gdbarch.c: Re-generate.
1716 * i386-tdep.c (i386_gdbarch_init): Do not set
1717 DWARF2_BUILD_FRAME_INFO.
1718 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1719 unconditionally.
1720 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1721 DWARF2_BUILD_FRAME_INFO.
1722
22b0d388
AC
17232003-07-18 Andrew Cagney <cagney@redhat.com>
1724
1725 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1726 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1727
1ce5d6dd
AC
17282003-07-18 Andrew Cagney <cagney@redhat.com>
1729
1730 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1731 frame_unwind_address_in_block, instead of frame_pc_unwind.
1732 (dwarf2_frame_cache): Ditto.
1733
e6e5e94c
AC
17342003-07-18 Andrew Cagney <cagney@redhat.com>
1735
1736 * user-regs.h (struct gdbarch): Declare opaque.
1737 * ui-out.h (struct ui_file): Declare opaque.
1738 * dwarf2-frame.h (struct frame_info): Declare opaque.
1739
5483d879
KW
17402003-07-18 Kris Warkentin <kewarken@qnx.com>
1741
1742 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1743 #include "...".
1744 (procfs_meminfo): Change strerror to safe_strerror.
1745 (procfs_can_run): Remove K&R badness.
1746
278a7cf7
MS
17472003-07-17 Michael Snyder <msnyder@redhat.com>
1748
1749 * remote-sim.c: Comment typo fix.
1750
606e3b82
AC
17512003-07-17 Andrew Cagney <cagney@redhat.com>
1752
1753 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1754 configure.
1755 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1756 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1757 GDB_MULTI_ARCH_PARTIAL.
1758
c43af07c
EZ
17592003-07-17 Elena Zannoni <ezannoni@redhat.com>
1760
1761 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1762 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1763 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1764
3b85b0f1
TR
17652003-07-16 Theodore A. Roth <troth@openavr.org>
1766
1767 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1768 found.
1769 (avr_frame_unwind_cache): Don't unwind FP for main.
1770 Update a comment.
1771 Save the computed prev_sp.
1772 (avr_saved_regs_unwinder): Remove function.
1773 (avr_frame_prev_register): Use PC unwind logic from
1774 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1775
336d1bba
AC
17762003-07-16 Andrew Cagney <cagney@redhat.com>
1777
1778 * frame-base.h (frame_base_p_ftype): Delete definition.
1779 (frame_base_append_predicate): Delete declaration.
1780 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1781 (frame_unwind_append_predicate): Delete declaration.
1782 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1783 (append_predicate): Delete parameter "p".
1784 (frame_unwind_append_predicate): Delete function.
1785 (frame_unwind_append_sniffer): Update call to append_predicate.
1786 (frame_unwind_free): Delete function.
1787 (_initialize_frame_unwind): Pass NULL as "free" to
1788 register_gdbarch_data.
1789 (frame_unwind_init): Append the dummy_frame_sniffer.
1790 (frame_unwind_find_by_frame): Simplify.
1791 * frame-base.c (struct frame_base_table): Delete field "p".
1792 (append_predicate): Delete parameter "p".
1793 (frame_base_append_predicate): Delete function.
1794 (frame_base_append_sniffer): Update call to append_predicate.
1795 (frame_base_free): Delete function.
1796 (frame_base_find_by_frame): Simplify.
1797 (_initialize_frame_base): Pass NULL as "free" to
1798 register_gdbarch_data.
1799 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1800 (x86_64_sigtramp_frame_sniffer): Replace
1801 "x86_64_sigtramp_frame_p".
1802 (x86_64_init_abi): Set the frame unwind sniffers.
1803 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1804 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1805 (m68k_gdbarch_init): Set the frame unwind sniffers.
1806 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1807 "i386_sigtramp_frame_p".
1808 (i386_frame_sniffer): Replace "i386_frame_p".
1809 (i386_gdbarch_init): Set the frame unwind sniffers.
1810 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1811 (avr_gdbarch_init): Set the frame unwind sniffers.
1812 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1813 "alpha_sigtramp_frame_p"
1814 (alpha_heuristic_frame_sniffer): Replace
1815 "alpha_heuristic_frame_p".
1816 (alpha_gdbarch_init): Set the frame unwind sniffers.
1817 (alpha_dwarf2_init_abi): Ditto.
1818 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1819 "alpha_debug_frame_p".
1820 (alpha_mdebug_frame_base_sniffer): Replace
1821 "alpha_mdebug_frame_base_p".
1822 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1823 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1824 (d10v_gdbarch_init): Set the frame unwind sniffer.
1825 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1826 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1827 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1828 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1829 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1830 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1831
48db5a3c
CV
18322003-07-16 Michael Snyder <msnyder@redhat.com>
1833
1834 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1835 should go thru sh_dsp_register_sim_regno, else the dsp regs
1836 will not get the right values.
1837
18382003-07-16 Corinna Vinschen <vinschen@redhat.com>
1839
1840 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1841 deprecated_store_floating by call to store_typed_floating.
1842 (sh_sh4_register_convert_to_raw): Substitute call to
1843 deprecated_extract_floating by call to extract_typed_floating.
1844
18452003-07-16 Corinna Vinschen <vinschen@redhat.com>
1846
1847 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1848
18492003-07-16 Corinna Vinschen <vinschen@redhat.com>
1850
1851 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1852 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1853 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1854 as possible.
1855 (do_pseudo_register): Remove.
1856 (sh_push_dummy_code): New function.
1857 (sh64_store_struct_return): Rename from sh_store_struct_return.
1858 Only called for sh64 now.
1859 (sh_extract_struct_value_address): Regcache'ify.
1860 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1861 and accomodate new tasks.
1862 (sh64_push_return_address): Rename from sh_push_return_address.
1863 Only called for sh64 now.
1864 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1865 Regcache'ify.
1866 (sh3e_sh4_extract_return_value): Regcache'ify.
1867 (sh_default_store_return_value): Ditto.
1868 (sh3e_sh4_store_return_value): Ditto.
1869 (sh_default_register_byte): Remove.
1870 (sh_sh4_register_byte): Remove.
1871 (sh_default_register_raw_size): Remove.
1872 (sh_sh4_register_raw_size): Remove.
1873 (sh_register_virtual_size): Remove.
1874 (sh_sh3e_register_virtual_type): Remove.
1875 (sh_sh3e_register_type): New function.
1876 (sh_sh4_register_virtual_type): Remove.
1877 (sh_sh4_register_type): New function.
1878 (sh_default_register_virtual_type): Remove.
1879 (sh_default_register_type): New function.
1880 (do_fv_register_info): Add parameters to accomodate call from
1881 sh_print_registers_info.
1882 (do_dr_register_info): Ditto.
1883 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1884 Add parameters to accomodate call from sh_print_registers_info.
1885 (sh_do_fp_register): Ditto.
1886 (sh64_do_pseudo_register): Call do_dr_register_info,
1887 do_fv_register_info and sh_do_fp_register with default parameters.
1888 (sh_do_register): Add parameters to accomodate call from
1889 sh_print_registers_info.
1890 (sh_print_register): Ditto.
1891 (sh_print_registers_info): Rename from sh_do_registers_info.
1892 Add parameters to be used as gdbarch_print_registers_info
1893 implementation. Accomodate removed do_pseudo_register function
1894 pointer.
1895 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1896 function pointer. Call sh_print_register with default parameters.
1897 (sh64_do_registers_info): Call sh_print_registers_info instead of
1898 sh_do_registers_info.
1899 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1900 detection of deprecated vs. non-deprecated functionality.
1901 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1902 function pointer assignments by direct function calls.
1903
e8a89fe2
AC
19042003-07-15 Andrew Cagney <cagney@redhat.com>
1905
1906 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1907 (frame_register_unwind, create_new_frame): Ditto.
1908 (legacy_get_prev_frame, get_frame_type): Ditto.
1909 (get_frame_base_address): Use frame_base_find_by_frame.
1910 (get_frame_locals_address): Use frame_base_find_by_frame.
1911 (get_frame_args_address): Use frame_base_find_by_frame.
1912 * frame-base.h (frame_base_sniffer_ftype): Declare.
1913 (frame_base_append_sniffer): Declare.
1914 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1915 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1916 (frame_base_append_sniffer): New function.
1917 (frame_base_append_predicate): Add a NULL sniffer.
1918 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1919 (struct frame_base_table): Add "sniffer".
1920 (frame_base_free): Free the "sniffer" table.
1921 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1922 (frame_unwind_append_sniffer): Declare.
1923 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1924 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1925 (struct frame_unwind_table): Add "sniffer", delete "middle".
1926 (append_predicate): Add "sniffer" parameter, append the sniffer.
1927 (frame_unwind_init): Update append_predicate call.
1928 (frame_unwind_append_sniffer): New function.
1929 (frame_unwind_append_predicate): Update append_predicate call.
1930 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1931
0714963c
AC
19322003-07-15 Andrew Cagney <cagney@redhat.com>
1933
1934 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1935 before code inhibiting repeated unwind attempts. Add to
1936 commentary on that test's problems.
1937 * blockframe.c (inside_main_func): Look for "main" in the minimal
1938 symbol table.
1939 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1940 identical.
1941
d9170e22
AC
19422003-07-15 Andrew Cagney <cagney@redhat.com>
1943
1944 * complaints.c (struct explanation): Define.
1945 (struct complaints): Change type of "explanation" to "struct
1946 explanation".
1947 (symfile_explanations): Convert to a "struct explanation" table.
1948 (vcomplaint): Update.
1949
eba29c8c
ML
19502003-07-15 Michal Ludvig <mludvig@suse.cz>
1951
1952 * x86-64-linux-nat.c (regmap): Removed.
1953 (supply_gregset, fill_gregset): Call
1954 x86_64_linux_(fill,supply)_gregset functions.
1955 * x86-64-linux-tdep.c (USER_*): New defines.
1956 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1957 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1958 New functions.
1959 (fetch_core_registers): Ditto.
1960 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1961 * x86-64-linux-tdep.h: New file.
1962 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1963 and core-regset.o.
1964 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1965
68cc0bfb
MK
19662003-07-13 Mark Kettenis <kettenis@gnu.org>
1967
88a115f7
MK
1968 * x86-64-tdep.c (x86_64_store_return_value): Use
1969 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1970
68cc0bfb
MK
1971 * configure.host: Add x86_64-*-freebsd*.
1972 * configure.tgt: Add x86_64-*-freebsd*.
1973 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1974 * amd64fbsd-nat.c: New file.
1975 * amd64fbsd-tdep.c: New file.
1976 * config/i386/nm-fbsd64.h: New file.
1977 * config/i386/fbsd64.mh: New file.
1978 * config/i386/fbsd64.mt: New file.
1979
138e7be5
MK
19802003-07-11 Mark Kettenis <kettenis@gnu.org>
1981
1982 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1983 `sc_regs_offset' and `sc_fpregs_offset'.
1984 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1985 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1986 (alpha_sigtramp_register_address): Rewrite to use new members of
1987 `struct gdbarch_tdep'.
1988 (alpha_gdbarch_init): Initialize new members of struct
1989 gdbarch_tdep'.
1990 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1991 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1992 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1993 (alphafbsd_pc_in_sigtramp): Implement.
1994 (alphafbsd_sigtramp_offset): New function.
1995 (alphafbsd_sigcontext_addr): New function.
1996 (alphafbsd_init_abi): Initialize signal trampoline related members
1997 of `struct gdbarch_tdep'.
1998 (_initialize_alphafbsd_tdep): Add prototype.
1999
95303a68
TR
20002003-07-11 Theodore A. Roth <troth@openavr.org>
2001
ba292e4c
TR
2002 * Makefile.in (install-only): Quote sed expression when generating
2003 transformed_name.
95303a68 2004
6896c0c7
RH
20052003-07-11 Richard Henderson <rth@redhat.com>
2006
2007 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2008 * dwarf2-frame.c: Include complaints.h.
2009 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2010 variable initialization; return NULL on error.
2011 (decode_frame_entry): New.
2012
8edd5d01
AC
20132003-07-11 Andrew Cagney <cagney@redhat.com>
2014
c4a09524
AC
2015 * frame.h (frame_address_in_block): Delete declaration.
2016 * blockframe.c (frame_address_in_block): Delete function.
2017 (get_frame_block): Use get_frame_address_in_block.
2018 (block_innermost_frame): Ditto.
2019 * stack.c (print_frame, backtrace_command_1): Ditto.
2020
8edd5d01
AC
2021 * frame.h (get_frame_address_in_block): Declare.
2022 (frame_unwind_address_in_block): Declare.
2023 * frame.c (frame_unwind_address_in_block): New function.
2024 (get_frame_address_in_block): New function.
2025
f7968451
AC
20262003-07-10 Andrew Cagney <cagney@redhat.com>
2027
2028 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2029 pre-default. Note: re-generate has no effect.
2030
ae99b398
AC
20312003-07-10 Andrew Cagney <cagney@redhat.com>
2032
2033 * gdbarch.sh: When a variable, but not a function, compare against
2034 0. Fix problem in previous patch.
2035 * gdbarch.c: Re-generate.
2036
956ac328
AC
20372003-07-10 Andrew Cagney <cagney@redhat.com>
2038
2039 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2040 functions against NULL, not 0.
2041 * gdbarch.c: Re-generate.
2042
287c3240
FF
20432003-07-10 Fred Fish <fnf@ninemoons.com>
2044
2045 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2046 null string instead of a null pointer.
2047 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2048
32f63c4b
MS
20492003-07-09 Michael Snyder <msnyder@redhat.com>
2050
2051 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2052
402ecd56
MK
20532003-07-09 Mark Kettenis <kettenis@gnu.org>
2054
2055 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2056 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2057 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2058 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2059 * x86-64-tdep.c: ... from here.
2060
c481dac7
AS
20612003-07-09 Andreas Schwab <schwab@suse.de>
2062
2063 * m68k-tdep.h (enum struct_return): Define.
2064 (struct gdbarch_tdep): Add struct_return.
2065 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2066 bytes are padded to the right, not to the left. Pass struct value
2067 address in register %a1, not on stack.
2068 (m68k_use_struct_convention): New function.
2069 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2070 struct_return in tdep to pcc_struct_return.
2071 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2072 reg_struct_return.
2073
64176fa3
JB
20742003-07-09 Joel Brobecker <brobecker@gnat.com>
2075
2076 * somread.c (som_symfile_offsets): Fix compilation error.
2077
96a4ee76
AC
20782003-07-09 Andrew Cagney <cagney@redhat.com>
2079
2080 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2081 Add comments about the checks.
2082
1517c6d1
AC
20832003-07-08 Andrew Cagney <cagney@redhat.com>
2084
2085 * Makefile.in: Make dependency section headers consistent.
2086 (config_h): Move to $BUILD headers section.
2087 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2088 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2089 (ada-exp.tab.c): Move to YACC/LEX section.
2090 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2091 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2092
dc5dd1eb
KW
20932003-07-08 Kris Warkentin <kewarken@qnx.com>
2094
2095 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2096 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2097 of strerror with safe_strerror, use ISO C function definitions,
2098 and replace instances of sprintf with snprintf.
dc5dd1eb 2099
612dde91
AC
21002003-07-07 Andrew Cagney <cagney@redhat.com>
2101
2102 * frame.c (get_prev_frame): Enable check for identical frames.
2103 Update comments. Update error messages.
2104
492c11d3
JB
21052003-07-07 Joel Brobecker <brobecker@gnat.com>
2106
2107 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2108
376a5a49
JB
21092003-07-07 Joel Brobecker <brobecker@gnat.com>
2110
2111 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2112 sort_symtab_syms, no longer necessary.
2113
22b4a9ad
JB
21142003-07-07 Joel Brobecker <brobecker@gnat.com>
2115
2116 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2117
5bbcb741
JB
21182003-07-07 Joel Brobecker <brobecker@gnat.com>
2119
2120 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2121 (mips_register_byte): Likewise.
2122
c139e7d9
DJ
21232003-07-07 Daniel Jacobowitz <drow@mvista.com>
2124
2125 * Makefile.in (sparc_tdep_h): New.
2126 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2127 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2128 * sparc-linux-nat.c: Include "sparc-tdep.h".
2129 * sparc-nat.c: Likewise.
2130 * sparc-tdep.c: Likewise.
2131 * sparc64nbsd-nat.c: Likewise.
2132 * sparcnbsd-nat.c: Likewise.
2133 * sparcnbsd-tdep.c: Likewise.
2134 * sparc-tdep.h: New file.
2135 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2136 and sparc_npc_regnum.
2137
fd8f87c5
DJ
21382003-07-07 Daniel Jacobowitz <drow@mvista.com>
2139
2140 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2141 (mips_linux_cannot_store_register): List supported instead of
2142 unsupported registers.
2143
13adf674
DJ
21442003-07-07 Daniel Jacobowitz <drow@mvista.com>
2145
2146 * disasm.c (dump_insns): Separate instructions from addresses.
2147
8de307e0
AS
21482003-07-07 Andreas Schwab <schwab@suse.de>
2149
2150 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2151 dependencies.
2152 * m68k-tdep.c (NUM_FREGS): Delete.
2153 (SIG_PC_FP_OFFSET): Delete.
2154 (TARGET_M68K): Delete.
2155 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2156 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2157 P_MOVEL_SP, P_MOVEML_SP): Define.
2158 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2159 P_TRAP): Delete.
2160 (m68k_register_raw_size): Delete.
2161 (m68k_register_virtual_size): Delete.
2162 (m68k_register_type): Renamed from m68k_register_virtual_type and
2163 add gdbarch argument.
2164 (m68k_store_struct_return): Delete.
2165 (m68k_deprecated_extract_return_value): Delete.
2166 (m68k_deprecated_extract_struct_value_address): Delete.
2167 (m68k_frame_chain): Delete.
2168 (m68k_frame_saved_pc): Delete.
2169 (m68k_fix_call_dummy): Delete.
2170 (m68k_push_dummy_frame): Delete.
2171 (m68k_pop_frame): Delete.
2172 (m68k_extract_return_value): New function.
2173 (m68k_store_return_value): Rewrite using regcache.
2174 (m68k_extract_struct_value_address): Rewrite using regcache.
2175 (m68k_push_dummy_call): New function.
2176 (struct m68k_frame_cache): Define.
2177 (m68k_alloc_frame_cache): New function.
2178 (m68k_analyze_frame_setup): New function.
2179 (m68k_analyze_register_saves): New function.
2180 (m68k_analyze_prologue): New function.
2181 (m68k_skip_prologue): Rewrite using above functions.
2182 (m68k_unwind_pc): New function.
2183 (m68k_frame_cache): New function.
2184 (m68k_frame_this_id): New function.
2185 (m68k_frame_prev_register): New function.
2186 (m68k_frame_unwind): New variable.
2187 (m68k_frame_p): New function.
2188 (m68k_sigtramp_frame_cache): New function.
2189 (m68k_sigtramp_frame_this_id): New function.
2190 (m68k_sigtramp_frame_prev_register): New function.
2191 (m68k_sigtramp_frame_unwind): New variable.
2192 (m68k_sigtramp_frame_p): New function.
2193 (m68k_frame_base_address): New function.
2194 (m68k_frame_base): New function.
2195 (m68k_unwind_dummy_id): New function.
2196 (fill_gregset): Use regcache_collect.
2197 (fill_fpregset): Likewise.
2198 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2199 defined.
2200 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2201 deprecated_init_frame_pc, deprecated_store_struct_return,
2202 deprecated_extract_return_value, deprecated_store_return_value,
2203 deprecated_frame_chain, deprecated_frame_saved_pc,
2204 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2205 deprecated_register_virtual_size,
2206 deprecated_max_register_raw_size,
2207 deprecated_max_register_virtual_size,
2208 deprecated_register_virtual_type, deprecated_register_size,
2209 deprecated_register_byte, deprecated_register_bytes,
2210 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2211 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2212 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2213 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2214 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2215 deprecated_push_dummy_frame, deprecated_pop_frame,
2216 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2217 only if SYSCALL_TRAP is defined. Set extract_return_value,
2218 store_return_value, extract_struct_value_address, register_type,
2219 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2220 predicates.
2221 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2222 M68K_MAX_REGISTER_SIZE): Define.
2223 (struct m68k_sigtramp_info): Define.
2224 (struct gdbarch_tdep): Add get_sigtramp_info.
2225 * m68klinux-nat.c (fetch_register): Use register_size instead of
2226 REGISTER_RAW_SIZE. Don't put assignment in if.
2227 (store_register): Likewise.
2228 (fetch_inferior_registers): Likewise.
2229 (store_inferior_registers): Likewise.
2230 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2231 (m68k_linux_frame_saved_pc): Delete.
2232 (m68k_linux_sigcontext_reg_offset,
2233 m68k_linux_ucontext_reg_offset): Define.
2234 (m68k_linux_get_sigtramp_info): New function.
2235 (m68k_linux_extract_return_value): Rewrite using regcache.
2236 (m68k_linux_store_return_value): Likewise.
2237 (m68k_linux_extract_struct_value_address): Likewise.
2238 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2239 Don't set deprecated_frame_saved_pc,
2240 deprecated_extract_return_value, deprecated_store_return_value,
2241 deprecated_extract_struct_value_address. Set
2242 extract_return_value, store_return_value,
2243 extract_struct_value_address.
2244
eb8bc282
AC
22452003-07-07 Andrew Cagney <cagney@redhat.com>
2246
2247 * expprint.c: Include "user-regs.h" instead of "frame.h".
2248 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2249 frame_map_regnum_to_name.
2250 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2251 (frame_map_name_to_regnum): Simplify, call
2252 user_reg_map_name_to_regnum.
2253 (frame_map_regnum_to_name): Simplify, call
2254 user_reg_map_regnum_to_name.
2255 (frame_register_unwind): Update.
2256 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2257 (_initialize_frame_reg): Call user_reg_add_builtin.
2258 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2259 (value_of_register): Use value_of_user_reg.
2260 * eval.c (evaluate_subexp_standard): Update.
2261 * parse.c (write_dollar_variable): Update.
2262 * d10v-tdep.c (d10v_print_registers_info): Update.
2263 * infcmd.c (registers_info): Update.
2264 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2265 (builtin_regs_h): Delete macro.
2266 (user_regs_h): Define.
2267 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2268 (builtin-regs.o): Delete target.
2269 (user-regs.o): Specify dependencies.
2270 (expprint.o): Update dependencies.
2271 (findvar.o): Update dependencies.
2272 (frame.o): Update dependencies.
2273 (std-regs.o): Update dependencies.
2274
9f476a01
CF
22752003-07-06 Christopher Faylor <cgf@redhat.com>
2276
2277 * win32-nat.c (solib_symbols_add): Use one variable for all section
2278 address stuff. Pass variable rather than address of variable to
2279 safe_symbol_file_add.
2280
a731b831
AS
22812003-07-06 Andreas Schwab <schwab@suse.de>
2282
2283 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2284
9f83329d
JB
22852003-07-04 Joel Brobecker <brobecker@gnat.com>
2286
2287 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2288
27e28cc5
KW
22892003-07-04 Kris Warkentin <kewarken@qnx.com>
2290
2291 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2292
22932003-07-04 Kris Warkentin <kewarken@qnx.com>
2294
2295 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2296 * config/i386/nto.mh: New file.
2297 * config/i386/nm-nto.h: New file.
2298 * configure.host: Add i[3456]86-*-nto*.
2299
100f2e98
JB
23002003-07-03 Joel Brobecker <brobecker@gnat.com>
2301
2302 * remote-vx.c (vx_add_symbols): Fix compilation error.
2303
e23457df
AC
23042003-07-03 Andrew Cagney <cagney@redhat.com>
2305
2306 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2307 * gdbarch.h, gdbarch.c: Re-generate.
2308 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2309 (legacy_register_name): Declare.
2310 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2311 (REGISTER_NAME): Define.
2312 * sparc-tdep.c (legacy_register_name): New function.
2313 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2314 (REGISTER_NAME): Define.
2315 (hppa64_register_name): Declare.
2316 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2317 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2318 (hppa64_register_name): New function.
2319 (hppa_register_name): New function.
2320 * arch-utils.c (legacy_register_name): Delete.
2321 * arch-utils.h (legacy_register_name): Delete.
2322
38caaeec
DJ
23232003-07-03 Daniel Jacobowitz <drow@mvista.com>
2324
2325 * cli/cli-interp.c (cli_interpreter_resume): Update the
2326 cli_uiout's stream to gdb_stdout.
2327
dadd712e
AC
23282003-07-03 Andrew Cagney <cagney@redhat.com>
2329
2330 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2331 predicate.
2332 * gdbarch.h, gdbarch.c: Re-generate.
2333 * regcache.c (init_regcache_descr): Use legacy code when either
2334 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2335
c7f1390e
DJ
23362003-07-02 Daniel Jacobowitz <drow@mvista.com>
2337
2338 * NEWS: Move "set logging" entry into GDB 6.0 section.
2339
4bc8c588
JB
23402003-07-02 Jim Blandy <jimb@redhat.com>
2341
a9dd42f1
JB
2342 * s390-tdep.c (struct frame_extra_info): new member:
2343 'stack_bought_valid'.
2344 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2345 initialize fextra_info->stack_bought.
2346 (s390_frameless_function_invocation): Don't trust the value of
2347 fextra_info_ptr->stack_bought unless
2348 fextra_info->stack_bought_valid is set.
2349
4bc8c588
JB
2350 New S390 prologue analyzer.
2351 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2352 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2353 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2354 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2355 compute_x_addr, s390_on_stack, s390_store,
2356 s390_get_signal_frame_info): New functions.
2357 (S390_NUM_SPILL_SLOTS): New macro.
2358 (s390_get_frame_info): Rewritten.
2359 (is_arg_reg): Deleted.
2360
2361 Break out the decoding of S/390 instructions into separate
2362 functions, to make it more legible, and easier to check
2363 against the spec.
2364 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2365 is_rx, is_rxe): New functions.
2366 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2367 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2368 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2369 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2370 enums for opcode values. (Is this an improvement?)
2371
fd13a04a
AC
23722003-07-02 Andrew Cagney <cagney@redhat.com>
2373
2374 * i386-tdep.c: Revert change committed as part of trad-frame code
2375 below.
2376
3f8091c1
DJ
23772003-07-02 Daniel Jacobowitz <drow@mvista.com>
2378
2379 * breakpoint.c (insert_catchpoint): Make static.
2380
8dd5115e
AS
23812003-07-02 Andreas Schwab <schwab@suse.de>
2382
2383 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2384 former ia64_push_arguments and ia64_push_return_address, and use
2385 regcache functions instead of read/write_register.
2386 (ia64_gdbarch_init): Set push_dummy_call instead of
2387 deprecated_push_arguments and deprecated_push_return_address.
2388
a2229c23
AJ
23892003-07-01 Andreas Jaeger <aj@suse.de>
2390
2391 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2392 before the call.
2393 Set %rax only to number of SSE registers used.
2394
3b3850e8
AC
23952003-07-01 Andrew Cagney <cagney@redhat.com>
2396
2397 * trad-frame.h: Update comments, a -1 .addr is reserved.
2398 (trad_frame_value_p, trad_frame_addr_p): Declare.
2399 (trad_frame_reg_p): Declare.
2400 (trad_frame_set_value): Rename trad_frame_register_value.
2401 (trad_frame_set_unknown): Declare.
2402 * trad-frame.c (trad_frame_realreg_p): New function.
2403 (trad_frame_addr_p, trad_frame_value_p): New function.
2404 (trad_frame_set_unknown): New function.
2405 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2406 (trad_frame_prev_register): Use trad_frame_realreg_p,
2407 trad_frame_addr_p and trad_frame_value_p.
2408 (trad_frame_set_value): Rename trad_frame_register_value.
2409 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2410 and trad_frame_set_value.
a2229c23 2411
4d819d0e
JB
24122003-06-30 Jim Blandy <jimb@redhat.com>
2413
2414 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2415 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2416 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2417 for 16 registers, and then 32 more bytes.
2418 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2419 New macros.
2420 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2421 Move up in the file, since it's now used by is_simple_arg.
2422 (is_simple_arg): Don't assume registers are four bytes long.
2423 Exclude all double arguments. Extended floats are not simple
2424 args.
2425 (is_power_of_two): New function.
2426 (pass_by_copy_ref): Call is_power_of_two, and check that the
2427 length fits in a register, rather than listing all the acceptable
2428 sizes. Extended floats are not passed by reference.
2429 (s390_push_arguments): Don't assume registers are four bytes long.
2430 Reserve an argument register to point to the buffer for structures
2431 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2432 S390_STACK_FRAME_OVERHEAD.
2433
1ad828f1
AS
24342003-06-30 Andreas Schwab <schwab@suse.de>
2435
2436 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2437 format error message.
2438
39b00981
JB
24392003-06-30 Joel Brobecker <brobecker@gnat.com>
2440
2441 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2442
b2a7f303
DC
24432003-06-30 David Carlton <carlton@kealia.com>
2444
2445 Band-aid for PR c++/1245.
2446 * Makefile.in (cp-support.o): Depend on complaints_h.
2447 * cp-support.c: Include complaints.h. Add declaration for
2448 find_last_component.
2449 (cp_find_first_component): Separate code into
2450 cp_find_first_component_aux.
2451 (cp_find_first_component_aux): Call demangled_name_complaint.
2452 (demangled_name_complaint): New.
2453
a257b5bb
AC
24542003-06-30 Andrew Cagney <cagney@redhat.com>
2455
2456 * remote.c (remote_write_bytes): Explicitly compute and then use
2457 the payload size. Update comments to reflect. Fixes problem of
2458 GDB not sending small packets as found by Fred Fish.
2459
0a2cfde4
AC
24602003-06-30 Andrew Cagney <cagney@redhat.com>
2461
2462 * remote.c (remote_async_wait): Fix -Wformat problem.
2463
3fcb8548
AC
24642003-06-29 Andrew Cagney <cagney@redhat.com>
2465
2466 * remote.c (remote_wait): Call error, and not warning, when the
2467 packet is corrupt.
2468 (remote_async_wait): Ditto.
2469
9f9970a3
DJ
24702003-06-29 Daniel Jacobowitz <drow@mvista.com>
2471
2472 * sparc-tdep.c (sparc_y_regnum): Make external again.
2473
83a8ccca
DJ
24742003-06-29 Daniel Jacobowitz <drow@mvista.com>
2475
2476 * cli/cli-logging.c (pop_output_files): Add void to function
2477 definition.
2478
d2cf594a
AC
24792003-06-29 Andrew Cagney <cagney@redhat.com>
2480
2481 * frame.c (frame_register_unwind): Use unsigned char when dumping
2482 the buffer contents.
2483
0fac0b41
DJ
24842003-06-28 Daniel Jacobowitz <drow@mvista.com>
2485
2486 * cli/cli-logging.c: New file.
2487 * cli-out.c (struct ui_out_data): Add original_stream.
2488 (cli_redirect): New function.
2489 (cli_ui_out_impl): Add cli_redirect.
2490 (cli_out_new): Initialize original_stream.
2491 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2492 (uo_redirect, ui_out_redirect): New.
2493 * ui-out.h (struct ui_out_impl): Add redirect member.
2494 (redirect_ftype): New.
2495 (ui_out_redirect): Add prototype.
2496 * Makefile.in: Add rules for cli-logging.c.
2497 * NEWS: Mention "set logging".
2498
88a07d7c
EZ
24992003-06-27 Elena Zannoni <ezannoni@redhat.com>
2500
2501 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2502
4eb58876
AC
25032003-06-27 Andrew Cagney <cagney@redhat.com>
2504
2505 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2506 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2507 * avr-tdep.c (avr_call_dummy_address): Delete function.
2508 (avr_gdbarch_init): Do not set call_dummy_address.
2509
1549f619
EZ
25102003-06-27 Elena Zannoni <ezannoni@redhat.com>
2511
2512 * symfile.c (syms_from_objfile): Move variables to inner block.
2513 Move the checks for the non-mainline case a bit earlier to avoid
2514 doing some useless computations.
2515
3cb3398d
EZ
25162003-06-27 Elena Zannoni <ezannoni@redhat.com>
2517
2518 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2519
3799ccc6
EZ
25202003-06-26 Elena Zannoni <ezannoni@redhat.com>
2521
2522 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2523 sections.
2524
ce1f6491
MC
25252003-06-26 Michael Chastain <mec@shout.net>
2526
2527 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2528 gdb/testsuite/gdb.c++/pr-1210.exp.
2529
d958dfd0
AC
25302003-06-26 Andrew Cagney <cagney@redhat.com>
2531
2532 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2533 altivec_expression.h and altivec_registers.h.
2534
d31431ed
AC
25352003-06-26 Andrew Cagney <cagney@redhat.com>
2536
2537 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2538 info->mach when MIPS16. Patch suggested by Fred Fish.
2539
714b1282
AC
25402003-06-26 Andrew Cagney <cagney@redhat.com>
2541
2542 * utils.c (internal_vproblem): Print the problem to a reason
2543 buffer and then pass to query. Make the msg variable more local.
2544
42efa47a
AC
25452003-06-26 Andrew Cagney <cagney@redhat.com>
2546
2547 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2548 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2549 * gdbarch.h, gdbarch.c: Re-generate.
2550 * frame-base.c (default_frame_args_address): Update. Use
2551 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2552 not available.
2553 (default_frame_locals_address): Ditto for
2554 DEPRECATED_FRAME_LOCALS_ADDRESS.
2555 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2556 (vax_frame_num_args): Update.
2557 (vax_gdbarch_init): Update.
2558 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2559 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2560 * mcore-tdep.c (mcore_gdbarch_init): Update.
2561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2562 * ia64-tdep.c (ia64_gdbarch_init): Update.
2563 * symtab.h (address_class): Update comments.
2564 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2565 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2566 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2567 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2568 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2569 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2570 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2571 * alpha-mdebug-tdep.c: Update.
2572 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2573
8ffd9b1b
AJ
25742003-06-26 Andreas Jaeger <aj@suse.de>
2575
2576 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2577 of SSE registers so that varargs functions work. Rework handling
2578 of passing arguments on the stack.
2579 (x86_64_store_return_value): Return double and float values in SSE
2580 register.
2581
e8ac10a6
MC
25822003-06-24 Michael Chastain <mec@shout.net>
2583
2584 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2585 the "constructor breakpoints ignored" bug.
2586
986af8e6
DC
25872003-06-25 David Carlton <carlton@kealia.com>
2588
2589 * MAINTAINERS: Update e-mail address.
2590
d64558a5
JB
25912003-06-24 Jim Blandy <jimb@redhat.com>
2592
e538d2d7
JB
2593 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2594
02631ec0
JB
2595 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2596 function.
2597 (ppc_linux_init_abi): Register it as the
2598 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2599
e716d87a
JB
2600 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2601 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2602 method.
2603
d64558a5
JB
2604 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2605 (ppc64_standard_linkage_target): Use it.
2606
449a5da4
AC
26072003-06-23 Andrew Cagney <cagney@redhat.com>
2608
2609 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2610 for 0 "int0" and 4 "int32" sized registers.
2611 * gdbtypes.c (builtin_type_int0): Define.
2612 (build_gdbtypes): Initialize builtin_type_int0.
2613 * gdbtypes.h (builtin_type_int0): Declare.
2614
b2a02dda
SC
26152003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2616
2617 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2618 as characters are unsigned.
2619
fba3138e
DJ
26202003-06-22 Daniel Jacobowitz <drow@mvista.com>
2621
2622 PR gdb/1179
2623 * dwarfread.c (struct_type): Skip static fields without crashing.
2624
f6c8180b
AC
26252003-06-22 Andrew Cagney <cagney@redhat.com>
2626
2627 GDB 6.0 branch created.
f2c06f52
AC
2628 * README: Update.
2629 * PROBLEMS: Update. Empty.
2630 * NEWS: Update.
f6c8180b 2631
ae822768
DJ
26322003-06-22 Daniel Jacobowitz <drow@mvista.com>
2633
2634 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2635 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2636
261de166
AC
26372003-06-22 Andrew Cagney <cagney@redhat.com>
2638
2639 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2640 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2641 Velikov.
2642
30e94205
DJ
26432003-06-22 Daniel Jacobowitz <drow@mvista.com>
2644
2645 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2646 compilers.
2647
9e14d721
DJ
26482003-06-21 Daniel Jacobowitz <drow@mvista.com>
2649
2650 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2651 argument of val_print.
2652 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2653 to the address argument of baseclass_offset or target_read_memory.
2654 Do add it to the argument of cp_print_value_fields.
2655
a4b8ebc8
AC
26562003-06-21 Andrew Cagney <cagney@redhat.com>
2657
2658 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2659 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2660 instead of 0..NUM_REGS.
2661 (mips_register_reggroup_p): New function.
2662 (mips_pseudo_register_write): New function.
2663 (mips_pseudo_register_read): New function.
2664 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2665 based on the register's type.
2666 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2667 cooked.
2668 (mips_get_saved_register): Simplify. Assert that REGNO is a
2669 pseudo / cooked.
2670 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2671 (mips_register_type): Replace mips_register_virtual_type. Map
2672 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2673 when available.
2674 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2675 that the register is cooked / virtual.
2676 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2677 Only get the extra info when needed.
2678 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2679 (mips32_heuristic_proc_desc): Fetch the cooked register.
2680 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2681 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2682 (mips_print_register): Use gdbarch_register_type, instead of
2683 REGISTER_VIRTUAL_TYPE.
2684 (print_gp_register_row): Use gdbarch_register_type, instead of
2685 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2686 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2687 Print the pseudo / cooked registers.
2688 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2689 Print the pseudo / cooked registers.
2690 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2691 REG_NUM is pseudo / cooked.
2692 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2693 (mips_n32n64_xfer_return_value): Ditto.
2694 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2695 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2696 (mips_register_sim_regno): New function.
2697 (mips_gdbarch_init): Set deprecated_register_byte,
2698 register_group_p, pseudo_register_write, pseudo_register_read,
2699 register_sim_regno, and num_pseudo_regs. Set register_type,
2700 instead of register_virtual_type.
2701 * Makefile.in (mips-tdep.o): Update dependencies.
2702 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2703 REGISTER_VIRTUAL_TYPE.
2704 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2705 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2706 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2707 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2708 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2709
325ed089
DJ
27102003-06-21 Daniel Jacobowitz <drow@mvista.com>
2711
2712 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2713 * cli/cli-cmds.c: Include "gdb_vfork.h".
2714 (shell_escape): Use vfork.
2715
f0e7d0e8
AC
27162003-06-21 Andrew Cagney <cagney@redhat.com>
2717
c57bb9fa
AC
2718 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2719 32 bit floating-point register saves.
2720
6e51443a
AC
2721 * frame.h (deprecated_unwind_get_saved_register): Delete.
2722 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2723 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2724 and deprecated_get_next_frame_hack instead of
2725 deprecated_unwind_get_saved_register.
2726
ed183c7c
AC
2727 * mips-tdep.c (mips_dump_tdep): Do not print
2728 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2729
f0e7d0e8
AC
2730 * frame.c (get_frame_register): New function.
2731 (frame_unwind_register_signed): New function.
2732 (get_frame_register_signed): New function.
2733 (frame_unwind_register_unsigned): New function.
2734 (get_frame_register_unsigned): New function.
2735 * frame.h: Add comments on naming schema.
2736 (get_frame_register, frame_unwind_register_signed): Declare.
2737 (get_frame_register_signed, get_frame_register_signed): Declare.
2738 (frame_unwind_register_unsigned): Declare.
2739 (get_frame_register_unsigned): Declare.
2740
2224d941
TR
27412003-06-20 Theodore A. Roth <troth@openavr.org>
2742
2743 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2744
8619218d
TR
27452003-06-20 Theodore A. Roth <troth@openavr.org>
2746
2747 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2748 (avr_read_sp): Ditto.
2749
0b1b50c0
DJ
27502003-06-20 Daniel Jacobowitz <drow@mvista.com>
2751
2752 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2753 * config/arm/nm-linux.h: Likewise.
2754 * config/arm/tm-linux.h: Likewise.
2755 * config/ia64/nm-linux.h: Likewise.
2756 * config/ia64/tm-ia64.h: Likewise.
2757 * config/s390/tm-linux.h: Likewise.
2758 * config/s390/tm-s390.h: Likewise.
2759 * s390-nat.c: Likewise.
2760 * s390-tdep.c: Likewise.
2761
2762 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2763 * config/ia64/linux.mt: Likewise.
2764 * config/m68k/linux.mh: Likewise.
2765 * config/mips/linux.mt: Likewise.
2766 * config/powerpc/linux.mh: Likewise.
2767 * config/sh/linux.mt: Likewise.
2768
c8c18e65
KW
27692003-06-19 Kris Warkentin <kewarken@qnx.com>
2770
2771 * solib.c (solib_open): Change tests for whether to search
2772 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2773 comments.
2774
dcccef2e
TR
27752003-06-19 Theodore A. Roth <troth@openavr.org>
2776
2777 * avr-tdep.c (avr_frame_address): Delete function.
2778 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2779 set_gdbarch_frame_args_address.
2780
5861a190
AC
27812003-06-19 Andrew Cagney <cagney@redhat.com>
2782
2783 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2784 (REGISTER_CONVERT_FROM_TYPE): Delete.
2785 (mips_register_convert_to_type): Delete declaration.
2786 (mips_register_convert_from_type): Delete declaration.
2787 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2788 kernel/.
2789
0274a8ce
MS
27902003-06-19 Michael Snyder <msnyder@redhat.com>
2791
2792 * linux-nat.h: New file.
2793 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2794 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2795 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2796 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2797 (linux_make_note_section): Iterate over lwps instead of threads.
2798 (linux_do_thread_registers): Use lwp instead of merged pid.
2799 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2800 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2801 Add dependency on linux_nat_h.
2802
adf5f719
TR
28032003-06-19 Theodore A. Roth <troth@openavr.org>
2804
2805 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2806
6766a268
DJ
28072003-06-19 Daniel Jacobowitz <drow@mvista.com>
2808
2809 * varobj.c (get_type, get_target_type): Use check_typedef.
2810
1171114a
DJ
28112003-06-19 Daniel Jacobowitz <drow@mvista.com>
2812
2813 * breakpoint.c (insert_catchpoint): Call internal_error.
2814
adcf68a2
TR
28152003-06-19 Theodore A. Roth <troth@openavr.org>
2816
2817 * avr-tdep.c (avr_push_dummy_code): Delete function.
2818 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2819
ea67f13b
DJ
28202003-06-19 Daniel Jacobowitz <drow@mvista.com>
2821
2822 * arch-utils.c (default_prepare_to_proceed): Remove.
2823 (generic_prepare_to_proceed): Remove.
2824 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2825 (generic_prepare_to_proceed): Remove prototype.
2826 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2827 * gdbarch.c: Regenerate.
2828 * gdbarch.h: Regenerate.
2829 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2830 * hppah-nat.c (hppa_switched_threads): Remove.
2831 * infrun.c (prepare_to_proceed): New static function, copied from
2832 generic_prepare_to_proceed. Remove select_it argument.
2833 (proceed): Call prepare_to_proceed.
2834 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2835 variables.
2836 (ptrace_wait): Don't set the removed variables.
2837 (hppa_switched_threads): Remove.
2838 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2839 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2840 (lin_lwp_prepare_to_proceed): Remove prototype.
2841 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2842 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2843
4add8633
TR
28442003-06-18 Theodore A. Roth <troth@openavr.org>
2845
2846 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2847 trad-frame.h.
2848 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2849 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2850 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2851 (AVR_PROLOGUE_*): Enumerate prologue types.
2852 (struct frame_extra_info): Remove.
2853 (struct avr_unwind_cache): Define.
2854 (avr_write_sp): Delete function.
2855 (avr_read_fp): Ditto.
2856 (avr_init_extra_frame_info): Ditto.
2857 (avr_pop_frame): Ditto.
2858 (avr_frame_saved_pc): Ditto.
2859 (avr_saved_pc_after_call): Ditto.
2860 (avr_push_return_address): Ditto.
2861 (avr_frame_chain): Ditto.
2862 (avr_store_struct_return): Ditto.
2863 (avr_push_arguments): Ditto.
2864 (avr_scan_prologue): Update comments. Changed to set up the info for
2865 cache unwinding. Now returns end of prologue PC.
2866 (avr_skip_prologue): Better handling of functions lacking a prologue
2867 by using avr_scan_prologue.
2868 (avr_scan_arg_moves): New function.
2869 (avr_saved_regs_unwinder): Ditto.
2870 (avr_frame_unwind_cache): Ditto.
2871 (avr_unwind_pc): Ditto.
2872 (avr_frame_this_id): Ditto.
2873 (avr_frame_prev_register): Ditto.
2874 (avr_frame_p): Ditto.
2875 (avr_frame_base_address ): Ditto.
2876 (avr_unwind_dummy_id): Ditto.
2877 (avr_push_dummy_code): Ditto.
2878 (push_stack_item): Ditto.
2879 (pop_stack_item): Ditto.
2880 (avr_push_dummy_call): Ditto.
2881 (struct stack_item): Define.
2882 (avr_frame_unwind): Declare structure.
2883 (avr_frame_base): Ditto.
2884 (avr_gdbarch_init): Remove calls to
2885 set_gdbarch_deprecated_init_frame_pc,
2886 set_gdbarch_deprecated_target_read_fp,
2887 set_gdbarch_deprecated_dummy_write_sp,
2888 set_gdbarch_deprecated_fp_regnum,
2889 set_gdbarch_deprecated_push_arguments,
2890 set_gdbarch_deprecated_push_return_address,
2891 set_gdbarch_deprecated_pop_frame,
2892 set_gdbarch_deprecated_store_struct_return,
2893 set_gdbarch_deprecated_frame_init_saved_regs,
2894 set_gdbarch_deprecated_init_extra_frame_info,
2895 set_gdbarch_deprecated_frame_chain,
2896 set_gdbarch_deprecated_frame_saved_pc,
2897 set_gdbarch_deprecated_saved_pc_after_call.
2898 Add calls to set_gdbarch_push_dummy_call,
2899 set_gdbarch_push_dummy_code,
2900 frame_unwind_append_predicate,
2901 frame_base_set_default,
2902 set_gdbarch_unwind_dummy_id,
2903 set_gdbarch_unwind_pc.
2904 Wrap a long line.
2905
7be04a68
MS
29062003-06-18 Corinna Vinschen <vinschen@redhat.com>
2907
2908 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2909 registers for H8/300S.
2910 (h8300_print_registers_info): Ditto.
8ffd9b1b 2911 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2912
ae087d01
DJ
29132003-06-18 Daniel Jacobowitz <drow@mvista.com>
2914
2915 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2916 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2917 (lin_lwp_wait): Likewise. Update comments.
2918 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2919 (pull_pid_from_list, linux_record_stopped_pid): New.
2920
07d8f827
SC
29212003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2922
2923 * ada-lang.c (scan_discrim_bound): Name first argument.
2924 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2925 declared by ALL_BLOCK_SYMBOLS.
2926
7cb47b14
SC
29272003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2928
2929 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2930 ("regcache.h"): Include it.
2931 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2932
6ad8ae5c
DJ
29332003-06-17 Daniel Jacobowitz <drow@mvista.com>
2934
2935 * NEWS: Mention gdbserver detach change and "disconnect" command.
2936 * infcmd.c (disconnect_command): New function.
2937 (_initialize_infcmd): Add ``disconnect'' command.
2938 * remote.c (remote_async_detach): Delete.
2939 (remote_detach): Merge remote_async_detach.
2940 (remote_disconnect): New.
2941 (init_remote_ops): Set to_disconnect.
2942 (init_remote_cisco_ops): Likewise.
2943 (init_remote_async_ops): Likewise. Use remote_detach.
2944 * target.c (cleanup_target): Default to_disconnect.
2945 (update_current_target): Inherit to_disconnect.
2946 (target_disconnect, debug_to_disconnect): New functions.
2947 (setup_target_debug): Set to_disconnect.
2948 * target.h (struct target_ops): Add to_disconnect.
2949 (target_disconnect): Add prototype.
2950
687595f9
DJ
29512003-06-17 Daniel Jacobowitz <drow@mvista.com>
2952
2953 * breakpoint.c (insert_catchpoint): New function.
2954 (insert_breakpoints): Use catch_exceptions to call
2955 insert_catchpoint. Disable catchpoints if they fail to insert.
2956
29239a8f
DJ
29572003-06-17 Daniel Jacobowitz <drow@mvista.com>
2958
2959 * symfile.c (reread_symbols): Clear sym_private.
2960
2cdf3c63
AC
29612003-06-17 Andrew Cagney <cagney@redhat.com>
2962
2963 * trad-frame.h (struct frame_info): Add opaque declaration.
2964 * remote-fileio.h (struct cmd_list_element): Add opaque
2965 declaration.
2966 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2967 comments.
2968
cf0e1e0d
DJ
29692003-06-17 Daniel Jacobowitz <drow@mvista.com>
2970
2971 * remote.c (remote_prepare_to_store): Replace call to
2972 deprecated_read_register_bytes with multiple regcache_raw_read
2973 calls.
2974
192cdb19
KW
29752003-06-17 Kris Warkentin <kewarken@qnx.com>
2976
2977 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2978 (nto_find_and_open_solib): Likewise.
2979 (nto_init_solib_absolute_prefix): Likewise.
2980 (_initialize_nto_tdep): Fix indentation.
2981
89929b45
KW
29822003-06-17 Kris Warkentin <kewarken@qnx.com>
2983
2984 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2985
46019f27
KW
29862003-06-17 Kris Warkentin <kewarken@qnx.com>
2987
2988 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2989
1a38736e
JB
29902003-06-17 Jim Blandy <jimb@redhat.com>
2991
2992 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2993
3605c34a
TR
29942003-06-16 Theodore A. Roth <troth@openavr.org>
2995
2996 * avr-tdep.c (avr_extract_return_value): New function.
2997 (avr_gdbarch_init): Set extract_return_value method.
2998
870b3035
AC
29992003-06-16 Andrew Cagney <cagney@redhat.com>
3000
3001 * frame.h (deprecated_get_next_frame_hack): Declare.
3002 * frame.c (legacy_saved_regs_prev_register): Only require
3003 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3004 there are always saved regs.
3005 (deprecated_generic_get_saved_register): Do not require
3006 DEPRECATED_FRAME_INIT_SAVED_REGS.
3007 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3008 use frame ID unwind instead.
3009 (deprecated_get_next_frame_hack): New function.
3010
63d47a7d
CV
30112003-06-16 Corinna Vinschen <vinschen@redhat.com>
3012
3013 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3014 (h8300_push_dummy_call): ...this function. Some minor optimization.
3015 (h8300_push_return_address): Remove.
3016 (h8300_gdbarch_init): Remove calls to
3017 set_gdbarch_deprecated_dummy_write_sp,
3018 set_gdbarch_deprecated_push_arguments and
3019 set_gdbarch_deprecated_push_return_address.
3020 Add call to set_gdbarch_push_dummy_call.
3021
4bb1dc5e
CV
30222003-06-16 Corinna Vinschen <vinschen@redhat.com>
3023
3024 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3025 (E_PSEUDO_EXR_REGNUM): Ditto.
3026 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3027 registers into safe registers.
4bb1dc5e
CV
3028 (h8300_skip_prologue): Check for stm instruction to push registers
3029 used for register variables onto stack.
3030 (gdb_print_insn_h8300): Remove.
3031 (h8300_examine_prologue): Add a comment.
3032 (h8300_register_name): Take pseudo registers into account.
3033 (h8300s_register_name): Ditto.
3034 (h8300sx_register_name): Ditto.
3035 (h8300_print_register): Ditto.
3036 (h8300_print_registers_info): Define "nice" printing order.
3037 (h8300_saved_pc_after_call): Take pseudo registers into account.
3038 (h8300_register_type): Ditto. Return type used for remote connection
3039 when requesting real CCR or EXR register, return actual type when
3040 requesting pseudo CCR or EXR.
3041 (h8300_pseudo_register_read): New function.
3042 (h8300_pseudo_register_write): Ditto.
3043 (h8300_dbg_reg_to_regnum): Ditto.
3044 (h8300s_dbg_reg_to_regnum): Ditto.
3045 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3046 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3047 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3048 set_gdbarch_print_insn architecture dependent.
3049 Call set_gdbarch_pseudo_register_read and
3050 set_gdbarch_pseudo_register_write.
3051 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3052
a59fe496
AC
30532003-06-16 Andrew Cagney <cagney@redhat.com>
3054
3055 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3056 * gdbarch.h, gdbarch.c: Re-generate.
3057 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3058 * s390-tdep.c (s390_gdbarch_init): Update.
3059 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3060 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3061 * mips-tdep.c (mips_gdbarch_init): Update.
3062 * mcore-tdep.c (mcore_gdbarch_init): Update.
3063 * cris-tdep.c (cris_gdbarch_init): Update.
3064 * infcall.c (call_function_by_hand): Update.
3065 * ia64-tdep.c (ia64_push_arguments): Update comment.
3066 * frame.c (legacy_get_prev_frame): Do not assume
3067 SAVE_DUMMY_FRAME_TOS_P.
3068 * dummy-frame.c (find_dummy_frame): Update comment.
3069
6f4e5a41
AC
30702003-06-16 Andrew Cagney <cagney@redhat.com>
3071
3072 * regcache.c (do_cooked_read): Do not use register_valid_p.
3073
72fab697
TR
30742003-06-15 Theodore A. Roth <troth@openavr.org>
3075
3076 * avr-tdep.c (avr_register_type): Remove a blank line.
3077 (avr_scan_prologue): Correct some comments.
3078
e3d8b004
TR
30792003-06-15 Theodore A. Roth <troth@openavr.org>
3080
3081 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3082 prologue types.
8ffd9b1b 3083 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3084 option.
3085 Add code to scan -mcall-prologues for mega devices.
3086
866b76ea
TR
30872003-06-15 Theodore A. Roth <troth@openavr.org>
3088
3089 * avr-tdep.c (avr_register_byte): Delete function.
3090 (avr_register_raw_size): Delete function.
3091 (avr_register_virtual_size): Delete function.
3092 (avr_register_virtual_type): Delete function.
3093 (avr_register_type): New function.
3094 (avr_address_to_pointer): Remove unused code.
3095 (avr_read_fp): Need to read FP as two separate bytes due to change to
3096 avr_register_type() usage.
3097 (avr_gdbarch_init): Don't set deprecated_register_size.
3098 Don't set deprecated_register_bytes.
3099 Don't set deprecated_register_byte.
3100 Don't set deprecated_register_raw_size.
3101 Don't set deprecated_max_register_raw_size.
3102 Don't set deprecated_register_virtual_size.
3103 Don't set deprecated_max_register_virtual_size.
3104 Don't set deprecated_register_virtual_type.
3105 Set register_type method.
3106
3993f6b1
DJ
31072003-06-15 Daniel Jacobowitz <drow@mvista.com>
3108
3109 * Makefile.in (linux-nat.o): Add rule.
3110 * linux-nat.c: New file.
3111 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3112 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3113 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3114 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3115 * config/arm/linux.mh (NATDEPFILES): Likewise.
3116 * config/i386/linux.mh (NATDEPFILES): Likewise.
3117 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3118 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3119 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3120 * config/mips/linux.mh (NATDEPFILES): Likewise.
3121 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3122 * config/s390/s390.mh (NATDEPFILES): Likewise.
3123 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3124
786a90bb
MK
31252003-06-15 Mark Kettenis <kettenis@gnu.org>
3126
3127 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3128 replace out-of-date comment.
3129
3bd3f01e
AC
31302003-06-15 Andrew Cagney <cagney@redhat.com>
3131
3132 * rdi-share/host.h (Fail): Change to a varargs function.
3133 * remote-rdi.c (Fail): Update.
8ffd9b1b 3134
de5b9bb9
MK
31352003-06-15 Mark Kettenis <kettenis@gnu.org>
3136
3137 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3138 (i386_convert_register_p, i386_register_to_value,
3139 i386_register_from_value): Handle types longer than 8 bytes.
3140
d532c08f
MK
31412003-06-15 Mark Kettenis <kettenis@gnu.org>
3142
3143 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3144 Move floating-point code to new function in i387-tdep.c.
3145 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3146 New functions containing code moved here from i386-tdep.c.
3147 * i387-tdep.h: Add opaque declaration for `struct type'.
3148 (i387_register_to_value, i387_value_to_register): New prototypes.
3149 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3150 (x86_64_init_abi): Set convert_register_p, register_to_value and
3151 value_to_register here.
8ffd9b1b 3152
42c466d7
AC
31532003-06-14 Andrew Cagney <cagney@redhat.com>
3154
3155 * mips-tdep.c (mips_register_to_value): Make static.
3156 (mips_value_to_register): Make static.
3157 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3158 * ia64-tdep.c (ia64_register_raw_size): Make static.
3159 (ia64_register_virtual_size): Make static.
3160 (ia64_register_byte): Make static.
3161 * i387-tdep.c: Include "i387-tdep.h".
3162 (print_387_control_word): Delete function.
3163 (print_387_status_word): Delete function.
3164 (print_387_status_bits): Delete function.
3165 (print_387_control_bits): Delete function.
3166 * Makefile.in (i387-tdep.o): Update dependencies.
3167 * rdi-share/host.h (Fail): Declare.
3168 * remote-rdi.c (Fail): Update to match declaration.
3169
2a9cda49
AC
31702003-06-14 Andrew Cagney <cagney@redhat.com>
3171
3172 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3173 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3174 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3175 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3176 * README: Delete reference to remote-array.
3177 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3178 (remote-array.o): Delete target.
3179 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3180 * remote-array.c: Delete file.
3181
ff2e87ac
AC
31822003-06-14 Andrew Cagney <cagney@redhat.com>
3183 Mark Kettenis <kettenis@gnu.org>
3184
3185 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3186 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3187 parameter with "frame".
3188 * gdbarch.h, gdbarch.c: Re-generate.
3189 * frame.h (put_frame_register): Declare.
3190 * frame.c (put_frame_register): New function.
3191 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3192 (legacy_register_to_value): Rewrite, use "frame" to get the
3193 register value.
3194 (legacy_value_to_register): Rewrite, use "frame" to find the
3195 register's location before storing.
3196 * arch-utils.h (legacy_convert_register_p): Update.
3197 (legacy_register_to_value, legacy_value_to_register): Update.
3198 * findvar.c (value_from_register): Rewrite, eliminate use of
3199 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3200 "frame" to REGISTER_TO_VALUE.
3201 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3202 lval_reg_frame_relative + lval_register branch of the switch. Do
3203 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3204 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3205 I386_EDI_REGNUM): New defines.
3206 (i386_next_regnum, i386_convert_register_p,
3207 i386_register_to_value, i386_value_to_register): New functions.
3208 (i386_register_convertible, i386_register_convert_to_virtual,
3209 i386_convert_to_raw): Remove functions.
3210 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3211 value_to_register instead of register_convertible,
3212 register_convert_to_virtual and register_convert_to_raw.
3213 * mips-tdep.c (mips_convert_register_p): New function.
3214 (mips_value_to_register): Replace mips_register_convert_from_type.
3215 (mips_register_to_value): Replace mips_register_convert_to_type.
3216 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3217 register_to_value.
3218 * alpha-tdep.c (alpha_convert_register_p): Update.
3219 (alpha_value_to_register): Update, store the register.
3220 (alpha_register_to_value): Update, fetch the register.
3221
98be1e77
TR
32222003-06-14 Theodore A. Roth <troth@openavr.org>
3223
3224 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3225 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3226 Don't set deprecated_call_dummy_words.
3227 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3228 Don't set remote_translate_xfer_address.
3229 (avr_io_reg_read_command): Remove commented out debug printf.
3230 Wrap a long line.
3231
57bc6122
TR
32322003-06-14 Theodore A. Roth <troth@openavr.org>
3233
3234 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3235 causes gdb to seg fault.
3236
eb01fc62
DJ
32372003-06-14 Daniel Jacobowitz <drow@mvista.com>
3238
3239 * sparc-nat.c (fetch_inferior_registers): Correct
3240 a reference to "registers".
3241
3b3e6bee
DJ
32422003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3243
3244 * Makefile.in (exc_request_U_h): Define
3245 (exc_request_S_h): Likewise.
3246 (msg_reply_S_h): Likewise.
3247 (msg_U_h): Likewise.
3248 (notify_S_h): Likewise.
3249 (process_reply_S_h): Likewise.
3250 (gnu-nat.o): Depend on gdb_obstack_h
3251 * gnu-nat.c: Include "gdb_obstack.h".
3252
b8de8283
AC
32532003-06-13 Andrew Cagney <cagney@redhat.com>
3254
3255 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3256 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3257
f3be58bc
AC
32582003-06-13 Andrew Cagney <cagney@redhat.com>
3259
3260 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3261 when deprecated REGISTER macros can be deleted.
3262 * gdbarch.h, gdbarch.c: Re-generate.
3263
4c0122c8
JB
32642003-06-13 Jim Blandy <jimb@redhat.com>
3265
3266 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3267 Linux entry point symbols for _dl_debug_state, too.
3268
3e210248
AC
32692003-06-13 Andrew Cagney <cagney@redhat.com>
3270
3271 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3272 available, do not use the FP register, and always save the TOS.
3273 * dummy-frame.c (dummy_frame_this_id): Do not assert
3274 SAVE_DUMMY_FRAME_TOS.
3275 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3276 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3277 (i386_push_dummy_call): Add 8 to the returned SP.
3278 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3279 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3280 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3281 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3282 (x86_64_push_dummy_call): Return "sp + 16".
3283 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3284 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3285 save_dummy_frame_tos.
3286
0b65af49
JB
32872003-06-13 Jim Blandy <jimb@redhat.com>
3288
3289 * frv-tdep.c (frv_use_struct_convention): Delete static
3290 declaration for function deleted in my change of 2003-06-12.
3291
4ea2465e
TR
32922003-06-13 Theodore A. Roth <troth@openavr.org>
3293
3294 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3295 (avr_pointer_to_address): Shift code addrs left 1 bit.
3296 (avr_convert_from_func_ptr_addr): Delete function since operation is
3297 better handled by avr_address_to_pointer and avr_pointer_to_address.
3298 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3299
1581182a
MK
33002003-06-13 Mark Kettenis <kettenis@gnu.org>
3301
3302 From Kelley Cook <kelleycook@wideopenwest.com>:
3303 * configure.host: Accept i[34567]86 variants.
3304 * configure.tgt: Likewise.
3305 * nlm/configure.in: Likewise.
3306 * nlm/configure: Regenerated.
3307
7aa1783e
RE
33082003-06-13 Richard Earnshaw <rearnsha@arm.com>
3309
3310 * arm-tdep.c (solib-svr4.h): Dont' include it.
3311 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3312 * arm-linux-tdep.c: ... here. Make static.
3313 (arm_linux_init_abi): Register it.
3314 (solib-svr4.h): Include it.
3315 * Makefile.in: Update dependencies.
3316 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3317 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3318
0261a0d0
CV
33192003-06-13 Corinna Vinschen <vinschen@redhat.com>
3320
3321 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3322 indicate registers used for return values.
3323 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3324 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3325 members.
3326 (h8300_init_extra_frame_info): Ditto.
3327 (h8300_frame_locals_address): Removed.
3328 (h8300_frame_args_address): Removed.
3329 (h8300_extract_return_value): Use new regcache structure. Only care
3330 for 16 bit CPUs.
3331 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3332 (h8300_store_return_value): Use new regcache structure. Only care
3333 for 16 bit CPUs.
3334 (h8300h_store_return_value): Same function for 32 bit CPUs.
3335 (h8300_store_struct_return): Removed.
3336 (h8300_extract_struct_value_address): Use new regcache structure.
3337 (h8300h_extract_struct_value_address): Removed.
3338 (h8300_push_dummy_code): New function.
3339 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3340 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3341 set_gdbarch_store_return_value architecture dependent.
3342 Call set_gdbarch_push_dummy_code and
3343 set_gdbarch_extract_struct_value_address.
3344 Remove calls to set_gdbarch_frame_args_address,
3345 set_gdbarch_frame_locals_address,
3346 set_gdbarch_deprecated_store_struct_return,
3347 set_gdbarch_deprecated_extract_return_value,
3348 set_gdbarch_deprecated_extract_struct_value_address,
3349 set_gdbarch_deprecated_call_dummy_words and
3350 set_gdbarch_deprecated_sizeof_call_dummy_words.
3351
055c394a
CV
33522003-06-13 Corinna Vinschen <vinschen@redhat.com>
3353
3354 * h8300-tdep.c (h8300_register_byte): Remove.
3355 (h8300h_register_byte): Remove.
3356 (h8300_register_virtual_type): Remove. Substitute by...
3357 (h8300_register_type): New function.
3358 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3359 (h8300h_extract_struct_value_address): Ditto.
3360 (h8300_gdbarch_init): Drop calls to
3361 set_gdbarch_deprecated_register_byte and
3362 set_gdbarch_deprecated_register_virtual_type.
3363 Add call to set_gdbarch_register_type.
3364
9c04cab7
AC
33652003-06-13 Andrew Cagney <cagney@redhat.com>
3366
3367 * gdbarch.sh: Update comments on registers.
3368 (deprecated_register_byte): Rename register_byte.
3369 (deprecated_register_raw_size): Rename register_raw_size.
3370 (deprecated_register_virtual_size): Rename register_virtual_size.
3371 (deprecated_register_virtual_type): Rename register_virtual_type.
3372 * gdbarch.h, gdbarch.c: Re-generate.
3373 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3374 * vax-tdep.c (vax_gdbarch_init): Update.
3375 * v850-tdep.c (v850_gdbarch_init): Update.
3376 * sparc-tdep.c (sparc_gdbarch_init): Update.
3377 * sh-tdep.c (sh_gdbarch_init): Update.
3378 * s390-tdep.c (s390_gdbarch_init): Update.
3379 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3380 * ns32k-tdep.c: Update.
3381 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3382 * mips-tdep.c (mips_gdbarch_init): Update.
3383 * mcore-tdep.c (mcore_gdbarch_init): Update.
3384 * m68k-tdep.c (m68k_gdbarch_init): Update.
3385 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3386 * ia64-tdep.c (ia64_gdbarch_init): Update.
3387 * hppa-tdep.c (hppa_gdbarch_init): Update.
3388 * h8300-tdep.c (h8300_gdbarch_init): Update.
3389 * frv-tdep.c (frv_gdbarch_init): Update.
3390 * cris-tdep.c (cris_gdbarch_init): Update.
3391 * avr-tdep.c (avr_gdbarch_init): Update.
3392 * alpha-tdep.c (alpha_gdbarch_init): Update.
3393 * arm-tdep.c (arm_gdbarch_init): Update.
3394
b060cbea
AC
33952003-06-13 Andrew Cagney <cagney@redhat.com>
3396
3397 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3398 mips_o32_use_struct_convention with always_use_struct_convention.
3399
0fc9922a
DC
34002003-06-12 David Carlton <carlton@kealia.com>
3401
3402 * cp-namespace.c (cp_set_block_scope): Comment out
3403 processing_has_namespace_info branch.
3404
1fd35568
JB
34052003-06-12 Jim Blandy <jimb@redhat.com>
3406
f470a70a
JB
3407 Recognize and skip 64-bit PowerPC Linux linkage functions.
3408 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3409 insn_pattern, insns_match_pattern, d_field, ds_field): New
3410 functions, macros, and types for working with PPC instructions.
3411 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3412 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3413 ppc64_skip_trampoline_code): New functions, variables, and macros
3414 for recognizing and skipping linkage functions.
3415 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3416 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3417
49ff75ad
JB
3418 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3419 register offsets for both the 32- and 64-bit interfaces.
3420
bd918c83
JB
3421 Actually finish the job started by my change of 2003-05-29.
3422 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3423 other #definition of this.
3424 (ppc_linux_skip_trampoline_code): Remove declaration.
3425 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3426 static.
3427 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3428 method for GDBARCH.
3429
3430 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3431 'long' on ppc64-*-linux*.
3432
f8c59253
JB
3433 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3434 isn't #defined, assume the register doesn't exist: act as if
3435 tdep->ppc_mq_regnum were -1.
3436
8fbb30b1
JB
3437 * configure.host, configure.tgt: Add entries for
3438 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3439 powerpc/linux.mt.
3440 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3441 New files.
3442
1fd35568
JB
3443 * arch-utils.c (always_use_struct_convention): New function.
3444 * arch-utils.h (always_use_struct_convention): New prototype.
3445 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3446 (alpha_gdbarch_init): Register always_use_struct_convention,
3447 instead of alpha_use_struct_convention.
3448 * cris-tdep.c (cris_use_struct_convention): Delete.
3449 (cris_gdbarch_init): Register always_use_struct_convention,
3450 instead of cris_use_struct_convention.
3451 * frv-tdep.c (frv_use_struct_convention): Delete.
3452 (frv_gdbarch_init): Register always_use_struct_convention,
3453 instead of frv_use_struct_convention.
3454 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3455 (h8300_gdbarch_init): Register always_use_struct_convention,
3456 instead of h8300_use_struct_convention.
e3305dd9 3457 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3458 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3459 instead of mips_o32_use_struct_convention.
3460
e14e6e9c
AC
34612003-06-12 Andrew Cagney <cagney@redhat.com>
3462
3463 * wince.c: Include "mips-tdep.h".
3464 * mips-tdep.h (mips_next_pc): Declare.
3465 * mcore-tdep.c: Make more local functions static.
3466 * Makefile.in (wince.o): Update dependencies.
3467
2335f48e
DC
34682003-06-12 David Carlton <carlton@kealia.com>
3469
3470 * symtab.c (lookup_symbol_aux_minsyms): Replace
3471 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3472 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3473 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3474 SYMBOL_NATURAL_NAME.
3475
f70a7d61
AS
34762003-06-12 Andreas Schwab <schwab@suse.de>
3477
3478 * Makefile.in (tuiDisassem.o): Update dependencies.
3479
b6429628
DC
34802003-06-12 David Carlton <carlton@bactrian.org>
3481
3482 * symtab.h: Delete declaration of make_symbol_overload_list.
3483 Add declaration of lookup_partial_symbol.
3484 * symtab.c (remove_params): Move to cp-support.c.
3485 (overload_list_add_symbol, make_symbol_overload_list)
3486 (sym_return_val_size, sym_return_val_index): Ditto.
3487 (lookup_partial_symbol): Make extern.
3488 * cp-support.h: Add declaration of make_symbol_overload_list.
3489 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3490 symtab.h, and block.h.
3491 (remove_params): Move here from symtab.c.
3492 (overload_list_add_symbol, make_symbol_overload_list)
3493 (sym_return_val_size, sym_return_val_index): Ditto.
3494 * valops.c: Include cp-support.h.
3495 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3496 frame_h, and block_h.
3497 (valops.o): Depend on cp_support_h.
3498
084edea5
CV
34992003-06-12 Corinna Vinschen <vinschen@redhat.com>
3500
3501 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3502 substitute by NUM_REGS throughout.
3503 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3504 (h8300s_register_name): New function for H8S registers.
3505 (h8300sx_register_name): Ditto for H8SX registers.
3506 (h8300_print_register): Revise register printing, avoid depending
3507 on 32 bit long.
0261a0d0 3508 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3509 (h8300h_register_byte): New function for any other architecture.
3510 (h8300_register_raw_size): Remove.
3511 (h8300_register_virtual_type): Revise to return actually useful
3512 type.
3513 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3514 (h8300h_extract_struct_value_address): New function for any other
3515 architecture.
3516 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3517 set_gdbarch_register_name, set_gdbarch_register_byte,
3518 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3519 Remove calls to set_gdbarch_deprecated_register_size,
3520 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3521 set_gdbarch_deprecated_max_register_raw_size,
3522 set_gdbarch_register_virtual_size and
3523 set_gdbarch_deprecated_max_register_virtual_size entirely.
3524 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3525 set_gdbarch_long_double_bit.
3526
06194148
JJ
35272003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3528
8ffd9b1b
AJ
3529 * doublest.c (convert_doublest_to_floatformat): When dealing
3530 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3531 processing a full 32 bits of mantissa.
3532
de4f826b
DC
35332003-06-11 David Carlton <carlton@bactrian.org>
3534
3535 * dictionary.h: New.
3536 * dictionary.c: New.
3537 * block.h: Add opaque declaration for struct dictionary.
3538 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3539 'sym' members.
3540 (BLOCK_DICT): New macro.
3541 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3542 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3543 BLOCK_SHOULD_SORT.
3544 (ALL_BLOCK_SYMBOLS): Update definition.
3545 * Makefile.in (SFILES): Add dictionary.c.
3546 (dictionary_h): New.
3547 (COMMON_OBS): Add dictionary.o.
3548 (dictionary.o): New.
3549 (ada-lang.o): Depend on dictionary_h.
3550 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3551 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3552 (mi-cmd-stack.o): Ditto.
3553 (gdbtk-cmds.o): Update dependencies.
3554 (gdbtk-stack.o): Ditto.
3555 * ada-lang.c: Include dictionary.h.
3556 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3557 (fill_in_ada_prototype, debug_print_block): Ditto.
3558 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3559 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3560 'is_sorted'.
3561 * mdebugread.c: Include dictionary.h.
3562 (struct parse_stack): Delete 'maxsyms' member.
3563 (parse_symbol): Update calls to new_block. Delete calls to
3564 shrink_block. Use dictionary methods.
3565 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3566 Update calls to new_symtab. Don't maintain maxsyms data.
3567 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3568 (add_symbol): Just call dict_add_symbol.
3569 (new_symtab): Delete 'maxsyms' argument.
3570 (new_symtab): Update calls to new_block.
3571 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3572 (shrink_block): Delete function.
3573 (fixup_sigtramp): Update call to new_block. Add symbol via
3574 dict_add_symbol.
3575 * jv-lang.c: Include dictionary.h.
3576 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3577 appropriately. Set class_symtab->free_func. Make sure the
3578 blockvector is big enough to hold two blocks.
3579 (add_class_symtab_symbol): Use dictionary methods.
3580 (free_class_block): New function.
3581 (type_from_class): Replace explicit iteration by
3582 ALL_BLOCK_SYMBOLS.
3583 * symtab.h (struct symtab): Replace 'free_ptr' method by
3584 'free_func'.
3585 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3586 sort_symtab_syms.
3587 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3588 sort_symtab_syms.
3589 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3590 Include dictionary.h.
3591 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3592 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3593 sort_symtab_syms.
3594 * objfiles.c: Include dictionary.h.
3595 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3596 * buildsym.c: Include dictionary.h.
3597 (finish_block): Use dictionary methods.
3598 (end_symtab): Set free_func to NULL, not free_ptr.
3599 * tracepoint.c: Include dictionary.h.
3600 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3601 (scope_info): Ditto.
3602 * stack.c: Include dictionary.h.
3603 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3604 (print_block_frame_labels, print_frame_arg_vars)
3605 (print_frame_args): Ditto.
3606 * symmisc.c (free_symtab_block): Use dictionary methods.
3607 (dump_symtab): Ditto.
3608 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3609 Include dictionary.h.
3610 * symfile.h: Delete declarations of sort_block_syms,
3611 sort_symtab_syms.
3612 * symfile.c (sort_block_syms): Delete.
3613 (sort_symtab_syms): Delete.
3614 * symtab.c: Include dictionary.h.
3615 (lookup_block_symbol): Use dictionary iterators.
3616 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3617 (search_symbols, make_symbol_completion_list): Ditto.
3618 (make_symbol_overload_list): Ditto.
3619 * valops.c (value_of_local): Use dict_empty.
3620 Include dictionary.h.
3621
a31f978c
JB
36222003-06-11 J. Brobecker <brobecker@gnat.com>
3623
3624 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3625
526e70c0
DC
36262003-06-11 David Carlton <carlton@bactrian.org>
3627
3628 * block.h (BLOCK_SHOULD_SORT): Delete.
3629 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3630 blocks.
3631 * ada-lang.c (ada_add_block_symbols): Ditto.
3632 * symfile.c (sort_block_syms): Delete.
3633 (sort_symtab_syms): Ditto.
3634 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3635 declarations.
3636 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3637 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3638 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3639 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3640 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3641 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3642 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3643
33c08150
JJ
36442003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3645
8ffd9b1b 3646 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3647 bits to 128.
3648
781a750d
AC
36492003-06-11 Andrew Cagney <cagney@redhat.com>
3650
3651 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3652 REGISTER_CONVERTIBLE.
3653 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3654 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3655 * gdbarch.h, gdbarch.c: Re-generate.
3656 * arch-utils.h (deprecated_register_convertible_not): Rename
3657 generic_register_convertible_not.
3658 * arch-utils.c (deprecated_register_convertible_not): Rename
3659 generic_register_convertible.
3660 (legacy_convert_register_p, legacy_register_to_value): Update.
3661 * sh-tdep.c (sh64_push_arguments): Update.
3662 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3663 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3664 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3665 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3666 * arch-utils.c (legacy_value_to_register): Update.
3667 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3668 (rs6000_register_convert_to_raw): Make parameter "from" const.
3669 * mips-tdep.c (mips_gdbarch_init): Update.
3670 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3671 * infcmd.c (default_print_registers_info): Update.
3672 * ia64-tdep.c (ia64_gdbarch_init): Update.
3673 (ia64_register_convert_to_raw): Make parameter "from" const.
3674 * i386-tdep.c (i386_gdbarch_init): Update.
3675 (i386_register_convert_to_raw): Update.
3676
cd90e54f
AC
36772003-06-11 Andrew Cagney <cagney@redhat.com>
3678
3679 * remote-fileio.c: Include "remote-fileio.h".
3680 * Makefile.in (remote-fileio.o): Update dependencies.
3681 (remote_fileio_h): Fix typo.
3682
a78f21af
AC
36832003-06-11 Andrew Cagney <cagney@redhat.com>
3684
3685 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3686 (xstormy16_save_dummy_frame_tos): Make static.
3687 (_initialize_xstormy16_tdep): Add declaration.
3688 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3689 * v850-tdep.c: Make local functions static.
3690 (_initialize_v850_tdep): Add declaration.
3691 * sparc-tdep.c: Make local functions static.
3692 (_initialize_sparc_tdep): Add declaration.
3693 * sh-tdep.c: Make local functions static.
3694 (_initialize_sh_tdep): Add declaration.
3695 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3696 * s390-tdep.c: Make local functions static.
3697 (_initialize_s390_tdep): Add declaration.
3698 * dbxread.c (find_stab_function_addr): Make static.
3699 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3700 * ocd.c (_initialize_remote_ocd): Add declaration.
3701 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3702 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3703 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3704 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3705 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3706 * remote-array.c (_initialize_array): Add declaration.
3707 (_initialize_remote_monitors): Add declaration.
3708 * remote-mips.c: Make local functions static.
3709 (_initialize_remote_mips): Add declaration.
3710 * mcore-tdep.c: Make all local functions static.
3711 (_initialize_mcore_tdep): Add declaration.
3712 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3713 * abug-rom.c (_initialize_abug_rom): Add declaration.
3714 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3715 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3716 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3717 * remote-est.c (_initialize_est): Add declaration.
3718 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3719 (m68hc11_call_dummy_address): Make static.
3720 * ia64-tdep.c: Make local functions static.
3721 (_initialize_ia64_tdep): Add declaration.
3722 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3723 * monitor.c (monitor_wait_filter): Make static.
3724 (_initialize_remote_monitors): Add declaration.
3725 * remote-hms.c (_initialize_remote_hms): Add declaration.
3726 * remote-e7000.c (fetch_regs_from_dump): Make static.
3727 (expect_n): Make static.
3728 (_initialize_remote_e7000): Add declaration.
3729 * ser-e7kpc.c: Always include "defs.h".
3730 (_initialize_ser_e7000pc): Add declaration.
3731 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3732 * cris-tdep.c: Make all but one function static.
3733 (_initialize_cris_tdep): Add declaration.
3734 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3735 * solib.c (update_solib_list): Make static.
3736 (_initialize_solib): Add declaration.
3737 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3738 (_initialize_avr_tdep): Add declaration.
3739 * remote-rdi.c (voiddummy): Make static.
3740 (_initialize_remote_rdi): Add declaration.
3741 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3742 * remote-rdp.c (send_rdp): Make static.
3743 (_initialize_remote_rdp): Add declaration.
3744 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3745
cbcdb1f5
CV
37462003-06-11 Corinna Vinschen <vinschen@redhat.com>
3747
3748 * remote-fileio.c: Make ari happy.
3749
a191ea8d
JB
37502003-06-10 J. Brobecker <brobecker@gnat.com>
3751
3752 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3753 fetching the trailing bytes of the buffer we are about to write.
3754
0ef75e11
AC
37552003-06-10 Andrew Cagney <cagney@redhat.com>
3756
3757 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3758 * Makefile.in (remote-fileio.o): Update dependencies.
3759 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3760 include <setjmp.h>, or <sys/types.h> conditional on USG.
3761 (remote_fio_jmp_buf): Delete global variable.
3762
449092f6 37632003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3764 Martin M. Hunt <hunt@redhat.com>
449092f6 3765
559fa028
AC
3766 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3767 (SFILES): Add remote-fileio.c.
3768 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3769 dependencies for building remote.o.
449092f6
CV
3770 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3771 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3772 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3773 static storage class.
3774 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3775 'F' packet.
3776 (_initialize_remote): Call initialize_remote_fileio().
3777 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3778 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3779 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3780 (captured_main): Initialize new ui_files.
3781 * ui-file.c: Add read and fgets input functions.
3782 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3783 (null_file_read): New function.
3784 (ui_file_read): New function.
3785 (set_ui_file_read): New function.
3786 (stdio_file_read): New function.
3787 * ui-file.h: New type ui_file_read_ftype.
3788 (set_ui_file_read): Declare.
3789 (ui_file_read): Declare.
3790
248de703
AC
37912003-06-09 Andrew Cagney <cagney@redhat.com>
3792
3793 * frame.h (deprecated_unwind_get_saved_register): Rename
3794 generic_unwind_get_saved_register, update comments.
3795 * mips-tdep.c (mips_get_saved_register): Update.
3796 * frame.c (deprecated_unwind_get_saved_register): Update.
3797
0ed8aa57
AC
37982003-06-09 Andrew Cagney <cagney@redhat.com>
3799
3800 * vax-tdep.c (vax_frame_locals_address): Delete function.
3801 (vax_gdbarch_init): Do not set frame_locals_address.
3802 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3803 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3804 * s390-tdep.c (s390_frame_args_address): Delete function.
3805 (s390_gdbarch_init): Do not set frame_args_address or
3806 frame_locals_address.
3807 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3808 (ns32k_gdbarch_init): Do not set frame_locals_address.
3809 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3810 (hppa_frame_locals_address): Delete function.
3811 (hppa_gdbarch_init): Do not set frame_args_address, or
3812 frame_locals_address.
3813 * arm-tdep.c (arm_frame_args_address): Delete.
3814 (arm_frame_locals_address): Delete.
3815 (arm_gdbarch_init): Do not set frame_args_address, or
3816 frame_locals_address.
3817
983a287a
AC
38182003-06-09 Andrew Cagney <cagney@redhat.com>
3819
3820 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3821 * gdbarch.h, gdbarch.c: Re-generate.
3822 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3823 * arch-utils.c (frame_num_args_unknown): Delete function.
3824 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3825 (frame_info): Use FRAME_NUM_ARGS_P.
3826 * arm-tdep.c (arm_frame_num_args): Delete function.
3827 (arm_gdbarch_init): Do not set frame_num_args.
3828 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3829 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3830 (hppa_gdbarch_init): Do not set frame_num_args.
3831 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3833 frame_num_args to default frame_num_args_unknown.
3834 * v850-tdep.c (v850_gdbarch_init): Ditto.
3835 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3836 * sh-tdep.c (sh_gdbarch_init): Ditto.
3837 * s390-tdep.c (s390_gdbarch_init): Ditto.
3838 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3839 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3840 * mips-tdep.c (mips_gdbarch_init): Ditto.
3841 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3842 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3844 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3845 * i386-tdep.c (i386_gdbarch_init): Ditto.
3846 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3847 * frv-tdep.c (frv_gdbarch_init): Ditto.
3848 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3849 * cris-tdep.c (cris_gdbarch_init): Ditto.
3850 * avr-tdep.c (avr_gdbarch_init): Ditto.
3851 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3852
8d3b0994
AC
38532003-06-09 Andrew Cagney <cagney@redhat.com>
3854
3855 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3856 (print_frame_args): Moved to "stack.c".
3857 * stack.c: Include "gdb_assert.h".
3858 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3859 (print_frame_args): Moved from "printcmd.c".
3860 * frame.h (print_frame_args): Delete declaration.
3861 * Makefile.in (stack.o): Update dependencies.
3862
25e3a86b
AC
38632003-06-08 Andrew Cagney <cagney@redhat.com>
3864
3865 * frame.c (get_prev_frame): Remove reference to
3866 frame_args_address_correct in comments.
3867 * frame-base.c (default_frame_args_address): Delete code
3868 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3869 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3870 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3871 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3872 (vax_frame_args_address_correct): Delete declaration.
3873
a9e5fdc2
AC
38742003-06-08 Andrew Cagney <cagney@redhat.com>
3875
3876 * gdbarch.sh (UNWIND_SP): Add.
3877 * gdbarch.h, gdbarch.c: Re-generate.
3878 * frame.c (frame_sp_unwind): New function.
3879 (get_frame_sp): New function.
3880 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3881 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3882 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3883 value.
3884 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3885 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3886
8983bd83
AC
38872003-06-08 Andrew Cagney <cagney@redhat.com>
3888
7fec2c59
AC
3889 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3890 REMOTE_BREAKPOINT.
3891 * remote.c: Update.
3892 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3893 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3894 * config/m68k/tm-sun3.h: Update.
3895 * config/m68k/tm-m68klynx.h: Update.
3896 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3897
8983bd83
AC
3898 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3899 trad_frame". Update comments.
3900 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3901 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3902 (trad_frame_register_value, trad_frame_prev_register): Update.
3903
b9362cc7
AC
39042003-06-08 Andrew Cagney <cagney@redhat.com>
3905
3906 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3907 from GCC's acinclude.m4.
3908 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3909 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3910 * main.c (error_init): Delete declaration.
3911 * defs.h (error_init): Declare.
3912 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3913 (rs6000_convert_from_func_ptr_addr): Make static.
3914 (_initialize_rs6000_tdep): Add declaration.
3915 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3916 (show_commands, set_verbose, show_history): Delete declaration.
3917 * top.h (set_verbose): Add declaration.
3918 (show_history, set_history, show_commands): Add declaration.
3919 (do_restore_instream_cleanup): Add declaration.
3920 * objc-lang.c (specialcmp): Make static.
3921 (print_object_command): Make static.
3922 (find_objc_msgsend): Make static.
3923 (find_objc_msgcall_submethod_helper): Make static.
3924 (find_objc_msgcall_submethod): Make static.
3925 (_initialize_objc_language): Add declaration.
3926 (find_implementation_from_class): Make static.
3927 (find_implementation): Make static.
3928 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3929 * objc-lang.h (lookup_struct_typedef): Add declaration.
3930 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3931 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3932 (do_restore_user_call_depth): Make static.
3933 (do_restore_instream_cleanup): Delete declaration.
3934 (dont_repeat): Delete declaration.
3935 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3936 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3937 * reggroups.c (_initialize_reggroup): Add declaration.
3938 * cp-support.c (_initialize_cp_support): Add declaration.
3939 * cp-abi.c (_initialize_cp_abi): Add declaration.
3940 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3941 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3942 (_initialize_gnu_v3_abi): Add declaration.
3943 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3944 (_initialize_gnu_v2_abi): Add declaration.
3945 * frame-base.c (_initialize_frame_base): Add declaration.
3946 * doublest.c (floatformat_from_length): Make static.
3947 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3948 * frame.c (create_sentinel_frame): Make static.
3949 (_initialize_frame): Add declaration.
3950 * top.c (do_catch_errors): Make static.
3951 (gdb_rl_operate_and_get_next_completion): Make static.
3952 * typeprint.c: Include "typeprint.h".
3953 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3954 (sentinel_frame_this_id): Make static.
3955 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3956 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3957 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3958 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3959 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3960 * maint.c (maintenance_print_architecture): Make static.
3961 * signals/signals.c (_initialize_signals): Add declaration.
3962 * std-regs.c (_initialize_frame_reg): Add declaration.
3963 * jv-exp.y (push_variable): ISO C definition.
3964 (push_qualified_expression_name): Ditto.
3965 * memattr.c (_initialize_mem): Add declaration.
3966 * remote.c (remote_check_watch_resources): Make static.
3967 (remote_stopped_by_watchpoint): Make static.
3968 (remote_stopped_data_address): Make static.
3969 * d10v-tdep.c (nr_dmap_regs): Make static.
3970 (a0_regnum): Make static.
3971 (d10v_frame_unwind_cache): Make static.
3972 (d10v_frame_p): Make static.
3973 * osabi.c (show_osabi): Make static.
3974 (_initialize_gdb_osabi): Add extern declaration.
3975 * gdbtypes.c (make_qualified_type): Make static.
3976 (safe_parse_type): Make static.
3977 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3978 * macrotab.c (macro_bcache_free): Make static.
3979 * interps.c (interp_set_quiet): Make static.
3980 (interpreter_exec_cmd): Make static.
3981 * stack.h (select_frame_command): New file.
3982 * stack.c: Include "stack.h".
3983 (select_frame_command_wrapper): Delete function.
3984 (select_frame_command): Make global.
3985 * infcall.c: Include "infcall.h".
3986 * linespec.c: Include "linespec.h".
3987 * symfile.c (sections_overlap): Make static.
3988 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3989 * charset.c (_initialize_charset): Add missing prototype.
3990 * regcache.c (init_legacy_regcache_descr): Make static.
3991 (do_regcache_xfree): Make static.
3992 (regcache_xfer_part): Make static.
3993 (_initialize_regcache): Add missing prototype.
3994 * breakpoint.c (parse_breakpoint_sals): Make static.
3995 (breakpoint_sals_to_pc): Make static.
3996 * interps.h (clear_interpreter_hooks): ISO C declaration.
3997 * Makefile.in (stack_h): Define.
3998 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3999 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4000
a0f267c7
AC
40012003-06-08 Andrew Cagney <cagney@redhat.com>
4002
4003 * Makefile.in (d10v-tdep.o): Update dependencies.
4004 (SFILES): Add trad-frame.c.
4005 (trad_frame_h): Define.
4006 (COMMON_OBS): Add trad-frame.o.
4007 (trad-frame.o): Specify dependencies.
4008 * d10v-tdep.c: Include "trad-frame.h".
4009 (saved_regs_unwinder): Delete function.
4010 (d10v_frame_prev_register): Use trad_frame_prev_register.
4011 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4012 trad_frame", delete "regs" and "prev_sp".
4013 (prologue_find_regs): Use trad-frame.
4014 * trad-frame.h, trad-frame.c: New files.
4015
4538b4f4
MK
40162003-06-08 Mark Kettenis <kettenis@gnu.org>
4017
4018 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4019
a0273b2f
AF
40202003-06-07 Adam Fedor <fedor@gnu.org>
4021
4022 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4023 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4024 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4025 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4026 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4027 Use it.
4028
3a6c3343
AC
40292003-06-07 Andrew Cagney <cagney@redhat.com>
4030
4031 * symfile.h: Re-indent, clean up comments.
4032
b46e02f6
AC
40332003-06-07 Andrew Cagney <cagney@redhat.com>
4034
4035 * inferior.h (deprecated_write_sp): Replace
4036 generic_target_write_sp.
4037 * regcache.c (deprecated_write_sp): Replace
4038 generic_target_write_sp.
4039 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4040 * vax-tdep.c (vax_gdbarch_init): Update.
4041 * v850-tdep.c (v850_gdbarch_init): Update.
4042 * sparc-tdep.c (sparc_gdbarch_init): Update.
4043 * sh-tdep.c (sh_gdbarch_init): Update.
4044 * s390-tdep.c (s390_gdbarch_init): Update.
4045 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4046 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4047 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4048 * mcore-tdep.c (mcore_gdbarch_init): Update.
4049 * m68k-tdep.c (m68k_gdbarch_init): Update.
4050 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4051 * ia64-tdep.c (ia64_gdbarch_init): Update.
4052 * h8300-tdep.c (h8300_gdbarch_init): Update.
4053 * frv-tdep.c (frv_gdbarch_init): Update.
4054 * cris-tdep.c (cris_gdbarch_init): Update.
4055 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4056
a42e117c
AC
40572003-06-07 Andrew Cagney <cagney@redhat.com>
4058
4059 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4060 Assert that PC_REGNUM is valid.
4061 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4062
bd1ce8ba
AC
40632003-06-07 Andrew Cagney <cagney@redhat.com>
4064
4065 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4066 * gdbarch.h, gdbarch.c: Regenerate.
4067 * mn10300-tdep.c: Include "gdb_assert.h".
4068 (mn10300_read_fp): New function.
4069 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4070 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4071 * ia64-tdep.c: Include "gdb_assert.h".
4072 (ia64_read_fp): New function.
4073 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4074 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4075 * regcache.c (generic_target_read_sp): Delete function.
4076 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4077 * inferior.h (generic_target_read_sp): Delete declaration.
4078 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4079 generic_target_read_sp.
4080 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4081 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4082 * sh-tdep.c (sh_gdbarch_init): Ditto.
4083 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4084 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4085
ec5cbaec
AC
40862003-06-07 Andrew Cagney <cagney@redhat.com>
4087
4088 * gdbarch.sh: Comment each field of startup_gdbarch.
4089 * gdbarch.h, gdbarch.c: Re-generate.
4090
cde9ea48
AC
40912003-06-07 Andrew Cagney <cagney@redhat.com>
4092
4093 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4094 * gdbarch.h, gdbarch.c: Re-generate.
4095 * regcache.c: Update comments on read_pc et.al.
4096 (generic_target_read_pc): Delete function.
4097 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4098 * inferior.h (generic_target_read_pc): Delete declaration.
4099 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4100 generic_target_read_pc.
4101 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4102 * sh-tdep.c (sh_gdbarch_init): Ditto.
4103 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4105
9a90a780
AC
41062003-06-07 Andrew Cagney <cagney@redhat.com>
4107
4108 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4109 "index" with "special_local_sect". Use strcmp instead of STREQ.
4110 Append period to coments.
4111
a39a16c4
MM
41122003-06-06 Mark Mitchell <mark@codesourcery.com>
4113
4114 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4115 (elfstab_offset_sections): Likewise.
4116 * gdb-stabs.h (stab_section_info): Likewise.
4117 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4118 * objfiles.c (objfile_relocate): Likewise.
4119 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4120 * remote.c (get_offsets): Likewise.
4121 (remote_cisco_objfile_relocate): Likewise.
4122 * somread.c (som_symfile_offsets): Likewise.
4123 * symfile.c (alloc_section_addr_info): New function.
4124 (build_section_addr_info_from_section_tab): Use it.
4125 (free_section_addr_info): Adjust.
4126 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4127 (syms_from_objfile): Allocate local_addr dynamically.
4128 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4129 dynamically.
4130 (add_symbol_file_command): Allocate sect_opts dynamically.
4131 (reread_symbols): Avoid use of SECT_OFF_MAX.
4132 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4133 (alloc_section_addr_info): Declare it.
4134 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4135 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4136 dynamically.
4137 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4138
20c6c2f8
AC
41392003-06-06 Andrew Cagney <cagney@redhat.com>
4140
4141 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4142 (d10v_frame_unwind_cache): Do not set "return_pc".
4143
884a26c8
MS
41442003-06-06 Michael Snyder <msnyder@redhat.com>
4145
4146 * h8300-tdep.c: Make tidy (long lines).
4147
088ce440
ML
41482003-06-06 Michal Ludvig <mludvig@suse.cz>
4149
8ffd9b1b 4150 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4151 to regcache_collect().
4152
7d773d96
JB
41532003-06-05 J. Brobecker <brobecker@gnat.com>
4154
4155 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4156 pc_in_sigtramp multiarch method.
4157 (hppa_hpux_som_init_abi): Use it.
4158 (hppa_hpux_elf_init_abi): Likewise.
4159 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4160 macro has been multiarched.
4161 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4162 macro here, as hppa64 isn't multiarched yet.
4163
1df6926e
AC
41642003-06-05 Andrew Cagney <cagney@redhat.com>
4165
4166 * Makefile.in (value_h): Add $(frame_h).
4167 * value.h: Include "frame.h".
4168 (struct value): Replace "frame_addr" with "frame_id".
4169 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4170 * values.c (allocate_value): Use VALUE_FRAME_ID.
4171 (value_copy): Use VALUE_FRAME_ID.
4172 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4173 * valops.c (value_assign): Update. Use frame_find_by_id.
4174
6b53acc6
ML
41752003-06-05 Michal Ludvig <mludvig@suse.cz>
4176
4177 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4178 in each pass.
4179
4d9850d3
JJ
41802003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4181
4182 * thread-db.c (check_event): For create/death event breakpoints,
4183 loop through all messages to ensure that we read the message
4184 corresponding to the breakpoint we are at.
4185
8efca6ba
MS
41862003-06-04 Michael Snyder <msnyder@redhat.com>
4187
4188 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4189
0912c7f2
MK
41902003-06-04 Mark Kettenis <kettenis@gnu.org>
4191
4192 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4193 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4194 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4195 when handling .eh_frame sections.
4196
4e370325
JB
41972003-06-04 J. Brobecker <brobecker@gnat.com>
4198
4199 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4200 prepare_to_proceed procedure instead of the hppa-specific one.
4201 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4202
b757528f 42032003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4204
b757528f
JJ
4205 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4206 * config.in: Regenerated.
4207 * configure.in: Add test for syscall function and check for
4208 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4209 * configure: Regenerated.
4210 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4211 <sys/syscall.h>.
4212 (kill_lwp): New function that uses tkill syscall or
4213 uses kill, depending on whether threading model is nptl or not.
4214 All callers of kill() changed to use kill_lwp().
4215 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4216 see if all threads have already exited in the nptl model.
4217 (stop_and_resume_callback): New callback function used by the
4218 lin_lwp_wait thread exit handling code.
4219 (stop_wait_callback): Check for threads already having exited and
4220 delete such threads fromt the lwp list when discovered.
4221 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4222
b757528f
JJ
4223 Roland McGrath <roland@redhat.com>
4224 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4225 nptl libthread_db.
4226
087779b1
RH
42272003-06-03 Richard Henderson <rth@redhat.com>
4228
b21fd293
RH
4229 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4230 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4231 (alpha_sigtramp_frame_prev_register): Likewise.
4232 (alpha_heuristic_frame_prev_register): Likewise.
4233 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4234
8ffd9b1b 4235 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4236 alpha-specific register id names.
4237 (alpha_mdebug_frame_unwind_cache): Likewise.
4238 (alpha_mdebug_frame_prev_register): Likewise.
4239
baa490c4
RH
42402003-06-03 Richard Henderson <rth@redhat.com>
4241
4242 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4243 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4244 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4245 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4246 unwind routines.
4247 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4248 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4249 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4250
4251 * alpha-linux-tdep.c: Remove unnecessary includes.
4252 * Makefile.in (alpha-linux-tdep.o): Update.
4253
42542003-06-03 Richard Henderson <rth@redhat.com>
4255
4256 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4257 (alphabsd_fill_fpreg): Likewise.
4258
f534e522
JB
42592003-06-03 J. Brobecker <brobecker@gnat.com>
4260
4261 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4262 references to struct frame_info fields by calls to the equivalent
4263 accessors. Necessary now that frame_info is opaque.
4264
4035536b
JB
42652003-06-03 J. Brobecker <brobecker@gnat.com>
4266
4267 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4268 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4269 structure, field no longer exists.
4270
0bd79c5c
JB
42712003-06-03 J. Brobecker <brobecker@gnat.com>
4272
4273 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4274 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4275
37bb6d9f
JB
42762003-06-03 J. Brobecker <brobecker@gnat.com>
4277
4278 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4279 references to struct frame_info fields by calls to the equivalent
4280 accessors. Necessary now that frame_info is opaque.
4281
852ee05c
JB
42822003-06-03 J. Brobecker <brobecker@gnat.com>
4283
4284 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4285 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4286 structure, field no longer exists.
4287
7d58c67d
TR
42882003-06-03 Theodore A. Roth <troth@openavr.org>
4289
8ffd9b1b 4290 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4291 accumulation of the size of all registers instead of blindly using
4292 DEPRECATED_REGISTER_BYTES.
4293
0a48e7e8
MS
42942003-06-03 Michael Snyder <msnyder@redhat.com>
4295
4296 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4297 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4298 for h8300sx.
4299
9798ab0d
JB
43002003-06-03 J. Brobecker <brobecker@gnat.com>
4301
4302 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4303 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4304
00b037e2
AC
43052003-06-03 Andrew Cagney <cagney@redhat.com>
4306
4307 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4308 (sparc_convert_to_raw): Delete function.
4309 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4310 register_convert_to_virtual.
4311
043b2f77
JJ
43122003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4313
4314 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4315 layer if not dealing with a statically-linked threaded program.
4316
f43caff8
KW
43172003-06-03 Kris Warkentin <kewarken@qnx.com>
4318
4319 * solib.c (solib_open): Update comment to reflect actual search order.
4320
ae1e7417
AC
43212003-06-03 Andrew Cagney <cagney@redhat.com>
4322
4323 * frame.c (get_frame_memory_signed): New function.
4324 (get_frame_memory, get_frame_memory_unsigned): New function.
4325 (get_frame_arch): New function.
4326 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4327 (get_frame_memory, get_frame_unsigned_memory): Declare.
4328 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4329 get_frame_memory_unsigned and get_frame_arch.
4330 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4331
cb123844
RG
43322003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4333
4334 * MAINTAINERS (write after approval): Add myself.
4335
1bb792e9
JB
43362003-06-03 Jim Blandy <jimb@redhat.com>
4337
4338 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4339 elements of gregset_t are 64 bits each, but access registers
4340 are still 32 bits, so they're packed two per gregset_t
4341 element. Unpack/pack them properly.
4342
aee8d8ba
DC
43432003-06-02 David Carlton <carlton@bactrian.org>
4344
4345 * linespec.c (find_methods): Break out code into
4346 add_matching_methods and add_constructors.
4347 (add_matching_methods): New.
4348 (add_constructors): Ditto.
4349
bf7488d2
AC
43502003-06-02 Andrew Cagney <cagney@redhat.com>
4351
bf7488d2
AC
4352 * sparc-tdep.c (sparc_print_registers): Delete call to
4353 REGISTER_CONVERTIBLE.
4354 (sparc_gdbarch_init): Do not set register_convertible.
4355 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4356 * frv-tdep.c (frv_gdbarch_init): Ditto.
4357 * cris-tdep.c (cris_gdbarch_init): Ditto.
4358
adedef68
EZ
43592003-06-02 Elena Zannoni <ezannoni@redhat.com>
4360
8ffd9b1b 4361 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4362 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4363 (syms_from_objfile): Ditto.
4364
650fcc91
AS
43652003-06-03 Andreas Schwab <schwab@suse.de>
4366
4367 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4368 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4369
df4a182b
RH
43702003-06-02 Richard Henderson <rth@redhat.com>
4371
4372 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4373 a member of all_reggroup.
4374
c483c494
RH
43752003-06-02 Richard Henderson <rth@redhat.com>
4376
4377 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4378 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4379 (alpha_lds, alpha_sts): New.
4380 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4381 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4382 restructure and fail for type sizes other than 4 or 8.
4383 (alpha_value_to_register): Similarly.
4384 (alpha_extract_return_value): Use alpha_sts.
4385 (alpha_store_return_value): Use alpha_lds.
4386 (alpha_gdbarch_init): Update hooks.
4387
b38b6be2
RH
43882003-06-02 Richard Henderson <rth@redhat.com>
4389
4390 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4391 regnum identifiers.
4392 (alpha_sigtramp_register_address): Likewise.
4393
98a8e1e5
RH
43942003-06-02 Richard Henderson <rth@redhat.com>
4395
4396 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4397 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4398 * alpha-tdep.h: Declare them.
4399
4400 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4401 Remove zerobuf. Don't error on UNIQUE.
4402 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4403 (ALPHA_REGSET_UNIQUE): Provide default.
4404 (supply_gregset): Use alpha_supply_int_regs.
4405 (fill_gregset): Use alpha_fill_int_regs.
4406 (supply_fpregset): Use alpha_supply_fp_regs.
4407 (fill_fpregset): Use alpha_fill_fp_regs.
4408 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4409 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4410 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4411 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4412 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4413 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4414
67dfac52
RH
44152003-06-02 Richard Henderson <rth@redhat.com>
4416
f75d70cc
RH
4417 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4418
67dfac52
RH
4419 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4420 (alpha_store_return_value): Likewise.
4421
0cf566ec
DC
44222003-06-02 David Carlton <carlton@math.stanford.edu>
4423
4424 * block.c (contained_in): Add 'const' to arguments.
4425 (block_function): Ditto.
4426 * block.h: Update declarations for block_function and
4427 contained_in.
4428
cdef89d0
DC
44292003-06-02 David Carlton <carlton@math.stanford.edu>
4430
4431 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4432 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4433 * p-valprint.c (pascal_val_print): Ditto.
4434 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4435
72667056
RH
44362003-06-02 Richard Henderson <rth@redhat.com>
4437
98a8e1e5
RH
4438 * alpha-tdep.c (alpha_push_dummy_call): Use
4439 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4440
8ffd9b1b 4441 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4442 sign-extension of 32-bit values.
4443 (alpha_store_return_value): Similarly.
0ede8eca 4444
98a8e1e5
RH
4445 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4446 (alpha_extract_return_value): Likewise.
4447 (alpha_store_return_value): Likewise.
7b5e1cb3 4448
98a8e1e5
RH
4449 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4450 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4451
98a8e1e5
RH
4452 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4453 (alpha_extract_struct_value_address): Likewise.
4454 (alpha_store_return_value): Likewise.
4455 (alpha_store_struct_return): Remove.
4456 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4457
98a8e1e5
RH
4458 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4459 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4460 macros where appropriate.
4461 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4462 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4463
98a8e1e5
RH
4464 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4465 for SP, GP; void_func_ptr for PC; non-language-specific types
4466 for all others.
4467 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4468
6dd77b81
RH
44692003-06-02 Richard Henderson <rth@redhat.com>
4470
4471 * top.h (lim_at_start): Declare.
4472 * main.c (captured_main): Set it.
4473 * top.c (lim_at_start): Define.
4474 (command_loop): Use it instead of &environ.
4475 * event-top.c (command_handler): Likewise.
4476
f4dbdb54
JT
44772003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4478
4479 * mipsnbsd-tdep.c: Update copyright years.
4480 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4481
8f285956
RH
44822003-06-01 Richard Henderson <rth@redhat.com>
4483
98a8e1e5
RH
4484 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4485 (alpha-linux-tdep.o): Update dependencies.
4486 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4487 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4488
615967cb
RH
44892003-06-01 Richard Henderson <rth@redhat.com>
4490
98a8e1e5
RH
4491 * alpha-tdep.c (alpha_register_reggroup_p): New.
4492 (alpha_gdbarch_init): Register it.
615967cb 4493
b59661bd
AC
44942003-06-02 Andrew Cagney <cagney@redhat.com>
4495
4496 * dwarfread.c: Eliminate "register"
4497 (decode_die_type): Eliminate assignment within "if".
4498 (struct_type, decode_array_element_type): Ditto.
4499 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4500 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4501 (decode_modified_type, completedieinfo): Ditto.
4502 * block.c: Eliminate "register".
4503 (blockvector_for_pc_sect): Eliminate assignment within "if".
4504 * cp-support.h (struct symbol): Opaque declaration.
4505 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4506
5ef165c2
RH
45072003-06-01 Richard Henderson <rth@redhat.com>
4508
98a8e1e5
RH
4509 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4510 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4511
143985b7
AF
45122003-06-01 Adam Fedor <fedor@gnu.org>
4513
4514 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4515 * gdbarch.[ch]: Regenerate.
4516 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4517 (hppa_gdbarch_init): Set it in the gdbarch vector.
4518 * i386-tdep.c (i386_fetch_pointer_argument): New
4519 (i386_gdbarch_init): Set it into gdbarch.
4520 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4521 (rs6000_gdbarch_init): Set it in gdbarch.
4522 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4523 (sparc_gdbarch_init): Set it in gdbarch.
4524
ae0167b9
AC
45252003-06-01 Andrew Cagney <cagney@redhat.com>
4526
7c0b4a20
AC
4527 * defs.h (extract_address): Delete declaration.
4528 * findvar.c (extract_address): Delete function.
4529 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4530 extract_address with the inline equivalent,
4531 extract_unsigned_integer.
4532 (xstormy16_extract_struct_value_address): Ditto.
4533 (xstormy16_pointer_to_address): Ditto.
4534 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4535 * v850-tdep.c (v850_push_arguments): Ditto.
4536 (v850_extract_return_value): Ditto.
4537 (v850_extract_struct_value_address): Ditto.
4538 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4539 (sparcnbsd_get_longjmp_target_64): Ditto.
4540 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4541 (get_longjmp_target): Ditto.
4542 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4543 (sh64_extract_struct_value_address): Ditto.
4544 (sh_push_arguments): Ditto.
4545 (sh64_push_arguments): Ditto.
4546 * remote-vxsparc.c (vx_read_register): Ditto.
4547 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4548 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4549 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4550 * mipsv4-nat.c (get_longjmp_target): Ditto.
4551 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4552 * mips-nat.c (get_longjmp_target): Ditto.
4553 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4554 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4555 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4556 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4557 * irix5-nat.c (get_longjmp_target): Ditto.
4558 * irix4-nat.c (get_longjmp_target): Ditto.
4559 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4560 (ia64_push_arguments): Ditto.
4561 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4562 * h8300-tdep.c (h8300_push_arguments): Ditto.
4563 (h8300_store_return_value): Ditto.
4564 (h8300_extract_struct_value_address): Ditto.
4565 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4566 (frv_push_arguments): Ditto.
4567 * avr-tdep.c (avr_pointer_to_address): Ditto.
4568 (avr_push_arguments): Ditto.
4569 * arm-tdep.c (arm_push_dummy_call): Ditto.
4570 (arm_get_longjmp_target): Ditto.
4571 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4572 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4573 (alpha_get_longjmp_target): Ditto.
4574
ae0167b9
AC
4575 * solib-irix.c (extract_mips_address): Inline extract_address,
4576 replacing it with extract_signed_integer.
4577 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4578 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4579 (first_link_map_member, open_symbol_file_object): Ditto.
4580 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4581 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4582 (LM_NEXT, LM_NAME): Ditto.
4583
44d88583
RH
45842003-06-01 Richard Henderson <rth@redhat.com>
4585
98a8e1e5
RH
4586 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4587 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4588 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4589 (alpha_cannot_store_register): Likewise.
4590 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4591 * alpha-nat.c (supply_gregset): Likewise.
4592 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4593
310e9b6a
AC
45942003-06-01 Andrew Cagney <cagney@redhat.com>
4595
4596 * infcall.c (call_function_by_hand): Update comment on
4597 DEPRECATED_DUMMY_WRITE_SP.
4598
4599 * mips-tdep.c (mips_gdbarch_init): Do not set
4600 deprecated_dummy_write_sp.
4601 (mips_eabi_push_dummy_call): Set the SP register.
4602 (mips_o64_push_dummy_call): Set the SP register.
4603 (mips_o32_push_dummy_call): Set the SP register.
4604 (mips_n32n64_push_dummy_call): Set the SP register.
4605
5ab84872
RH
46062003-06-01 Richard Henderson <rth@redhat.com>
4607
98a8e1e5
RH
4608 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4609 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4610 (supply_gregset): Likewise.
4611 * alpha-tdep.c (alpha_store_return_value): Likewise.
4612 (alpha_get_longjmp_target): Likewise.
4613 (alpha_register_name): Constify array.
4614 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4615 deprecated_register_size, deprecated_register_bytes,
4616 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4617 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4618 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4619
09cc52fd
RH
46202003-06-01 Richard Henderson <rth@redhat.com>
4621
4622 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4623 from arg_reg_buffer to regcache to avoid double conversion.
4624
c7f16359
MK
46252003-06-01 Mark Kettenis <kettenis@gnu.org>
4626
4627 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4628 SP_REGNUM.
4629 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4630 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4631
7131cb6e
RH
46322003-06-01 Richard Henderson <rth@redhat.com>
4633
98a8e1e5
RH
4634 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4635 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4636
f3e0f90b
RH
46372003-06-01 Richard Henderson <rth@redhat.com>
4638
98a8e1e5
RH
4639 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4640 not overlapping PC_REGNUM.
f3e0f90b 4641
c88e30c0
RH
46422003-06-01 Richard Henderson <rth@redhat.com>
4643
98a8e1e5
RH
4644 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4645 alpha_push_arguments. Don't dump argument register data to
4646 the target stack. Fix float and 128-bit long double semantics.
4647 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4648 (alpha_fix_call_dummy): Remove.
4649 (alpha_call_dummy_words): Remove.
4650 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4651
f1a559ae
RH
46522003-06-01 Richard Henderson <rth@redhat.com>
4653
4654 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4655
5e045346
AC
46562003-06-01 Andrew Cagney <cagney@redhat.com>
4657
95404a3e
AC
4658 * mips-tdep.c (is_mips16_addr): New function.
4659 (make_mips16_addr, unmake_mips16_addr): New functions.
4660 (pc_is_mips16, mips_fetch_instruction): Use.
4661 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4662 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4663 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4664 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4665 TARGET_MIPS.
4666 * config/mips/tm-mips.h: Update copyright.
4667 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4668 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4669 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4670 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4671 (TM_PRINT_INSN_MACH): Delete.
4672 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4673
5e045346
AC
4674 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4675 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4676 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4677 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4678 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4679 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4680 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4681 mips*-*-riscos* and mips*-*-sysv* onto mips.
4682 * config/mips/mips64.mt: New file.
4683 * config/mips/mips.mt: New file.
4684 * config/mips/littlemips.mt: Delete file.
4685 * config/mips/decstation.mt: Delete file.
4686 * config/mips/vr4300el.mt: Delete file.
4687 * config/mips/vr5000el.mt: Delete file.
4688 * config/mips/vr5000.mt: Delete file.
4689 * config/mips/vr4100.mt: Delete file.
4690 * config/mips/vr4xxxel.mt: Delete file.
4691 * config/mips/vr4300.mt: Delete file.
4692 * config/mips/vr4xxx.mt: Delete file.
4693 * config/mips/bigmips.mt: Delete file.
4694 * config/mips/bigmips64.mt: Delete file.
4695 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4696 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4697 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4698 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4699 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4700 "tm-bigmips.h".
4701 * config/mips/tm-irix3.h: Ditto.
4702 * config/mips/tm-mipsv4.h: Ditto.
4703 * config/mips/tm-embed.h: Ditto.
4704 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4705 "tm-bigmips64.h".
4706 * config/mips/tm-vr5000el.h: Delete file.
4707 * config/mips/tm-tx39l.h: Delete file.
4708 * config/mips/tm-vr4300el.h: Delete file.
4709 * config/mips/tm-vr4xxxel.h: Delete file.
4710 * config/mips/tm-vr4300.h: Delete file.
4711 * config/mips/tm-vr4100.h: Delete file.
4712 * config/mips/tm-vr4xxx.h: Delete file.
4713 * config/mips/tm-vr5000.h: Delete file.
4714 * config/mips/tm-embedl64.h: Delete file.
4715 * config/mips/tm-embedl.h: Delete file.
4716 * config/mips/tm-embed64.h: Delete file.
4717 * config/mips/tm-bigmips64.h: Delete file.
4718 * config/mips/tm-bigmips.h: Delete file.
4719
2473a4a9
MK
47202003-06-01 Mark Kettenis <kettenis@gnu.org>
4721
97a5b208
MK
4722 Fix gdb/1216.
4723 * shnbsd-nat.c: Include "sh-tdep.h".
4724
2473a4a9
MK
4725 From Richard Henderson <rth@redhat.com>:
4726 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4727
e0f7ec59
AC
47282003-05-31 Andrew Cagney <cagney@redhat.com>
4729
4730 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4731 forward declaration.
4732 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4733 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4734 (mips_find_saved_regs): Use set_reg_offset.
4735 (mips_frame_init_saved_regs): Delete function.
4736 (mips_pop_frame): Call mips_find_saved_regs instead of
4737 DEPRECATED_FRAME_INIT_SAVED_REGS.
4738
68dcc709
AC
47392003-05-31 Andrew Cagney <cagney@redhat.com>
4740
4741 * mips-tdep.c (mips_gdbarch_init): Do not set
4742 deprecated_max_register_raw_size, register_virtual_size, and
4743 deprecated_max_register_virtual_size.
4744
cfc14b3a
MK
47452003-05-31 Mark Kettenis <kettenis@gnu.org>
4746
6405b0a6
MK
4747 * i386-tdep.c: Include "dwarf2-frame.h".
4748 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4749 * Makefile.in (i386-tdep.o): Update dependencies.
4750
cfc14b3a
MK
4751 * dwarf2-frame.c, dwarf2-frame.h: New files.
4752 * Makefile.in (SFILES): Add dwarf2-frame.c.
4753 (dwarf2_frame_h): Define.
4754 (COMMON_OBS): Add dwarf2-frame.o.
4755 (dwarf2-frame.o): Add dependencies.
4756
6a2751d2
AJ
47572003-05-31 Andreas Jaeger <aj@suse.de>
4758
4759 * x86-64-linux-nat.c: Fix comment.
4760
1c3545ae
MK
47612003-05-31 Mark Kettenis <kettenis@gnu.org>
4762
10f93086
MK
4763 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4764 function signature.
4765
1c3545ae
MK
4766 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4767 have a sigcontext_addr handler.
4768 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4769 sigcontext_addr handler.
4770
e11c53d2
AC
47712003-05-31 Andrew Cagney <cagney@redhat.com>
4772
4773 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4774 (print_fp_register_row): Replace do_fp_register_row.
4775 (mips_print_fp_register): Add "file" and "frame" parameters.
4776 (mips_print_register): Add "file" and "frame" parameters.
4777 (mips_print_registers_info): Replace mips_do_registers_info.
4778 (mips_gdbarch_init): Set print_registers_info instead of
4779 deprecated_do_registers_info.
4780 (mips_read_fp_register_single): Add "frame" parameter.
4781 (mips_read_fp_register_double): Add "frame" parameter.
4782
a3386186
MK
47832003-05-31 Mark Kettenis <kettenis@gnu.org>
4784
70913449
MK
4785 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4786 Fixes a bug where GDB would print the wrong register names for
4787 targets without SSE.
4788
2b5e0749
MK
4789 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4790 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4791 registers.
4792
4793 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4794 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4795 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4796 TDEP->sc_sp_offset.
4797
a3386186
MK
4798 From Michal Ludvig <mludvig@suse.cz>:
4799 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4800 and `sc_num_regs'.
4801 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4802 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4803 I386_ST0_REGNUM): Move here from...
4804 * i386-tdep.c: ... here.
4805 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4806 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4807 registers if possible.
4808 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4809 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4810 Remove variables.
4811 (i386bsd_sc_reg_offset): New variable.
4812 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4813 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4814 TDEP->sc_sp_offset.
4815 (i386fbsd_sc_reg_offset): New variable.
4816 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4817 TDEP->sc_num_regs.
4818 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4819 variables.
4820 (i386fbsd4_sc_reg_offset): New variable.
4821 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4822 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4823 TDEP->sc_sp_offset.
4824 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4825 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4826 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4827 Remove variables.
4828 (i386nbsd_sc_reg_offset): New variable.
4829 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4830 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4831 TDEP->sc_sp_offset.
4832 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4833 Remove variables.
4834 (i386obsd_sc_reg_offset): New variable.
4835 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4836 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4837 TDEP->sc_sp_offset.
4838 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4839 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4840 for frame pointer offset in `struct sigcontext'.
4841
25ab4790
AC
48422003-05-31 Andrew Cagney <cagney@redhat.com>
4843
4844 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4845 architecture methods call_dummy_words, sizeof_call_dummy_words,
4846 push_return_address, store_struct_return, and fix_call_dummy. Set
4847 push_dummy_call instead of deprecated_push_arguments.
4848 (mips_store_struct_return): Delete function.
4849 (mips_fix_call_dummy): Delete function.
4850 (mips_push_return_address): Delete function.
4851 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4852 RA_REGNUM and T9_REGNUM.
4853 (mips_n32n64_push_dummy_call): Ditto for
4854 mips_n32n64_push_arguments.
4855 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4856 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4857
6a65450a
AC
48582003-05-31 Andrew Cagney <cagney@redhat.com>
4859
4860 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4861 "dummy_addr" to "bp_addr".
4862 * infcall.c (call_function_by_hand): Pass "funaddr" to
4863 gdbarch_push_dummy_call.
4864 * gdbarch.h, gdbarch.c: Re-generate.
4865 * i386-tdep.c (i386_push_dummy_call): Update.
4866 * arm-tdep.c (arm_push_dummy_call): Update.
4867 * d10v-tdep.c (d10v_push_dummy_call): Update.
4868
c4f35dd8
MK
48692003-05-31 Mark Kettenis <kettenis@gnu.org>
4870
4871 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4872 variable declarations.
4873 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4874 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4875 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4876 x86_64_init_frame_pc, x86_64_init_frame_pc,
4877 x86_64_function_has_prologue): Remove prototypes.
4878 (X86_64_NUM_GREGS): New define.
4879 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4880 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4881 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4882 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4883 XMM1_REGNUM): Remove defines.
4884 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4885 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4886 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4887 X86_64_XMM1_REGNUM): New defines.
4888 (struct x86_64_register_info): Renamed from `struct
4889 register_info'. Remove `size' member.
4890 (x86_64_register_info_table): Remove variable.
4891 (x86_64_register_info): New variable.
4892 (X86_64_NUM_REGS): New define.
4893 (X86_64_NUM_GREGS): Remove define.
4894 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4895 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4896 Remove variables.
4897 (x86_54_dwarf2_reg_to_regnum): Remove function.
4898 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4899 (x86_64_dwarf_reg_to_regnum): New function.
4900 (x86_64_register_name): Rewrite.
4901 (x86_64_register_raw_size): Remove function.
4902 (x86_64_register_byte_table): Remove variable.
4903 (x86_64_register_byte): Remove function.
4904 (x86_64_register_virtual_type): Remove function.
4905 (x86_64_register_type): New function.
4906 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4907 x86_64_register_convert_to_raw): Remove functions.
4908 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4909 (x86_64_use_struct_convention): Make static. Adjust for renamed
4910 defines.
4911 (x86_64_frame_init_saved_regs): Remove function.
4912 (x86_64_push_arguments): Make static. Change to accept a regcache
4913 as argument.
4914 (x86_64_store_return_value, x86_64_extract_return_value): Make
4915 static. Rewrite based on i386 counterparts.
4916 (x86_64_push_dummy_call): New function.
4917 (X86_64_NUM_SAVED_REGS): New define.
4918 (x86_64_register_number): Remove function.
4919 (x86_64_store_struct_return): Remove function.
4920 (x86_64_frameless_function_invocation,
4921 x86_64_function_has_prologue): Remove functions.
4922 (PROLOG_BUFSIZE): Remove define.
4923 (struct x86_64_frame_cache): New structure.
4924 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4925 x86_64_frame_cache, x86_64_frame_this_id,
4926 x86_64_frame_prev_register, x86_64_frame_p,
4927 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4928 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4929 functions.
4930 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4931 variables.
4932 (x86_64_skip_prologue): Rewrite in terms of
4933 x86_64_analyze_prologue.
4934 (x86_64_frame_base_address): New function.
4935 (x86_64_frame_base): New variable.
4936 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4937 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4938 set deprecated_fp_regnum, deprecated_register_size,
4939 deprecated_register_bytes, register_raw_size, register_byte,
4940 register_virtual_type, register_convertiable,
4941 register_convert_to_virtual, convert_to_raw,
4942 deprecated_get_saved_register, deprecated_target_read_fp,
4943 deprecated_push_arguments, deprecated_push_return_address,
4944 deprecated_pop_frame, deprecated_store_struct_return,
4945 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4946 frameless_function_invocation, deprecated_frame_saved_pc,
4947 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4948 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4949 deprecated_init_frame_pc and virtual_frame_pointer. Call
4950 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4951 and x86_64_frame_p. Call frame_base_set_default to register
4952 x86_64_frame_base.
4953 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4954 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4955 (_initialize_x86_64_tdep): Remove function.
4956 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4957 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4958 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4959 define.
4960 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4961 (x86_64_linux_sigcontext_addr): Rewrite.
4962 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4963 x86_64_linux_frame_saved_pc): Remove functions.
4964 (x86_64_linux_pc_in_sigtramp): Renamed from
4965 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4966 trampoline.
4967 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4968 Remove_functions.
4969 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4970 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4971 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4972 (x86_64_regmap): Rename to regmap.
4973 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4974 x86_64_num_gregs.
4975 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4976 x86_64_regmap.
4977 (x86_64_fxsave_offset): Remove function.
4978 (supply_fpregset): Simply call x86_64_supply_fxsave.
4979 (fill_fpregset): Simply call x86_64_fill_fxsave.
4980 (fetch_inferior_registers, store_inferior_registers): Avoid
4981 asignment in if-statement.
4982 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4983 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4984 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4985 (fetch_core_registers): Remove function.
4986 (linux_elf_core_fns): Remove.
4987 (offsetoff): Don't define.
4988 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4989 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4990 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4991 add core-regset.o.
4992 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4993 protection against multiple includes instead of NM_X86_64_h. Add
4994 various comments. Include "config/nm-linux.h". Don't include
4995 <signal.h>.
4996 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4997 GET_THREAD_SIGNALS): Remove defines.
4998 (x86_64_register_u_addr, kernel_u_size,
4999 lin_thread_get_thread_signals): Remove prototypes.
5000 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5001 [HAVE_LINK_H]: Don't include "solib.h".
5002 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5003 * config/i386/tm-x86-64linux.h: Fix comments.
5004 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5005 x86-64-tdep.o): Update dependencies.
5006
c25083af
AC
50072003-05-30 Andrew Cagney <cagney@redhat.com>
5008
c8f55a7b
AC
5009 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5010 Change parameter type to a "struct regcache *".
5011
c25083af
AC
5012 * gdbarch.sh: Regardless of the multi-arch level, always define
5013 the macro when not already defined.
5014 * gdbarch.h, gdbarch.c: Re-generate.
5015
fbe586ae
RH
50162003-05-30 Richard Henderson <rth@redhat.com>
5017
5018 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5019 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5020 (alpha_mdebug_frame_this_id): Likewise.
5021 (alpha_mdebug_frame_prev_register): Likewise.
5022 (alpha_mdebug_frame_base_address): Likewise.
5023 (alpha_mdebug_frame_locals_address): Likewise.
5024 (alpha_mdebug_frame_args_address): Likewise.
5025 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5026 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5027 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5028 loop increment.
5029 (alpha_heuristic_frame_this_id): Make static.
5030 (alpha_heuristic_frame_prev_register): Likewise.
5031 (alpha_heuristic_frame_base_address): Likewise.
5032 * alpha-tdep.h: Update.
5033
acd5c798
MK
50342003-05-30 Mark Kettenis <kettenis@gnu.org>
5035
5036 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5037 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5038 defenitions.
5039 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5040 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5041 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5042 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5043 I386_ST0_REGNUM): New defines.
5044 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5045 codestream_get): Remove define.
5046 (codestream_next_addr, condestream_addr, condestream_buf,
5047 codestream_off, codestream_cnt): Remove variables.
5048 (codestream_fill, codestream_seek, codestream_read): Remove
5049 functions.
5050 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5051 functionality.
5052 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5053 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5054 i386_frame_saved_pc, i386_saved_pc_after_call,
5055 i386_frame_num_args, i386_frame_init_saved_regs,
5056 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5057 i386_push_arguments): Remove functions.
5058 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5059 functionality. Use i386_analyze_prologue instead of
5060 i386_get_frame_setup.
5061 (I386_NUM_SAVED_REGS): New define.
5062 (struct i386_frame_cache): New structure.
5063 (i386_alloc_frame_cache, i386_analyze_struct_return,
5064 i386_skip_probe, i386_analyze_frame_setup,
5065 i386_analyze_register_saves, i386_analyze_prologue,
5066 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5067 i386_frame_prev_register, i386_sigtramp_frame_cache,
5068 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5069 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5070 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5071 New functions.
5072 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5073 New variables.
5074 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5075 I386_EAX_REGNUM and I386_EDX_REGNUM.
5076 (i386_extract_return_value, i386_store_return_value): Use
5077 I386_ST0_REGNUM where appropriate.
5078 (i386_extract_struct_value_address): Rewrite to use extract_address.
5079 (i386_svr4_pc_in_sigtramp): Add comment.
5080 (i386_svr4_sigcontext_addr): Rewrite.
5081 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5082 TDEP->sc_sp_offset.
5083 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5084 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5085 of new defines. Set push_dummy_call, don't set
5086 deprecated_push_arguments, deprecated_push_return_address,
5087 deprecated_pop_frame. Don't set parm_boundary. Don't set
5088 deprecated_frame_chain, deprecated_frame_saved_pc,
5089 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5090 save_dummy_frame_tos, unwind_pc. Call
5091 frame_unwind_append_predicate and frame_base_set_default. Don't
5092 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5093 Don't set frameless_function_invocation. Don't set
5094 deprecated_register_bytes, deprecated_register_size,
5095 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5096 * i386-linux-tdep.c: Fix formatting in some comments.
5097 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5098 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5099 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5100 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5101 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5102 redundant parentheses.
5103 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5104 (i386_linux_sigcontext_addr): Use it. Rewrite.
5105 (find_minsym_and_objfile): Change name of second argument.
5106 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5107 changed. Use frame_pc_unwind instead of
5108 DEPRECATED_SAVED_PC_AFTER_CALL.
5109 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5110 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5111 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5112 unwinder.
5113 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5114 "dummy-frame.h".
5115 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5116 (_initialize_i386_cygwin_tdep): New prototype.
5117 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5118 deprecated_frame_chain_valid.
5119 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5120 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5121 Rely on the SVR4 defaults.
5122 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5123 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5124
c89b70f1
AC
51252003-05-30 Andrew Cagney <cagney@redhat.com>
5126
5127 * infcall.c (call_function_by_hand): Always call
5128 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5129
85b32d22
RH
51302003-05-30 Richard Henderson <rth@redhat.com>
5131
c89b70f1
AC
5132 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5133 increment.
85b32d22 5134
bfe51b1e
JB
51352003-05-29 Jim Blandy <jimb@redhat.com>
5136
5137 Use gdbarch methods for solib stuff on PowerPC Linux.
5138 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5139 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5140 show through.
5141 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5142 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5143 giving the same effect as the #definitions above.
5144
1abf022c
AF
51452003-05-29 Adam Fedor <fedor@gnu.org>
5146
5147 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5148 (find_implementation_from_class): Replace it with the standard
5149 case i.e. do nothing.
5150
d2427a71
RH
51512003-05-29 Richard Henderson <rth@redhat.com>
5152
5153 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5154 (alpha_linux_sigtramp_offset): Use it. Make static.
5155 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5156 update for new frame model.
5157 * alpha-mdebug-tdep.c: New file.
5158 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5159 (alpha_osf1_init_abi): Install it.
5160 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5161 (linked_proc_desc_table): Remove.
5162 (alpha_frame_past_sigtramp_frame): Remove.
5163 (alpha_dynamic_sigtramp_offset): Remove.
5164 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5165 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5166 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5167 (push_sigtramp_desc): Remove.
5168 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5169 (alpha_cannot_store_register): Likewise.
5170 (alpha_sigcontext_addr): Remove.
5171 (alpha_find_saved_regs): Remove.
5172 (alpha_frame_init_saved_regs): Remove.
5173 (alpha_init_frame_pc_first): Remove.
5174 (read_next_frame_reg): Remove.
5175 (alpha_frame_saved_pc): Remove.
5176 (alpha_saved_pc_after_call): Remove.
5177 (temp_proc_desc, temp_saved_regs): Remove.
5178 (alpha_about_to_return): Remove.
5179 (cached_proc_desc): Remove.
5180 (alpha_frame_chain): Remove.
5181 (alpha_print_extra_frame_info): Remove.
5182 (alpha_init_extra_frame_info): Remove.
5183 (alpha_frame_locals_address): Remove.
5184 (alpha_frame_args_address): Remove.
5185 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5186 (alpha_push_dummy_frame): Remove.
5187 (alpha_pop_frame): Remove.
5188 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5189 (alpha_read_insn): New.
5190 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5191 for different insn encodings.
5192 (alpha_in_lenient_prologue): Remove.
5193 (struct alpha_sigtramp_unwind_cache): New.
5194 (alpha_sigtramp_frame_unwind_cache): New.
5195 (alpha_sigtramp_register_address): New.
5196 (alpha_sigtramp_frame_this_id): New.
5197 (alpha_sigtramp_frame_prev_register): New.
5198 (alpha_sigtramp_frame_unwind): New.
5199 (alpha_sigtramp_frame_p): New.
5200 (struct alpha_heuristic_unwind_cache): New.
5201 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5202 don't count nop insns that occur between functions.
5203 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5204 heuristic_proc_desc, but without the mdebug wrapping.
5205 (alpha_heuristic_frame_this_id): New.
5206 (alpha_heuristic_frame_prev_register): New.
5207 (alpha_heuristic_frame_unwind): New.
5208 (alpha_heuristic_frame_p): New.
5209 (alpha_heuristic_frame_base_address): New.
5210 (alpha_heuristic_frame_base): New.
5211 (alpha_unwind_dummy_id): New.
5212 (alpha_unwind_pc): New.
5213 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5214 frame related deprecated initializations; install replacements.
5215 (alpha_dump_tdep): Remove.
5216 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5217 (alpha_read_insn, alpha_after_prologue,
5218 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5219 alpha_heuristic_frame_prev_register,
5220 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5221 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5222 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5223 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5224
93ec1121
AC
52252003-05-29 Andrew Cagney <cagney@redhat.com>
5226
5227 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5228 dependant on the availability of ASSERT_FUNCTION.
5229 (ASSERT_FUNCTION): Do not define when there is no function name.
5230
98f08d3d
KB
52312003-05-29 Kevin Buettner <kevinb@redhat.com>
5232
5233 From Jimi X <jimix@watson.ibm.com>:
5234 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5235
0897f59b
JB
52362003-05-28 Jim Blandy <jimb@redhat.com>
5237
5238 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5239 argument to ptrace to int; the system headers should give it the
5240 right type, and pointers don't fit in ints on powerpc64-*-*.
5241
14898363
L
52422003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5243
5244 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5245 DW_TAG_catch_block.
5246
a7a48797
EZ
52472003-05-26 Elena Zannoni <ezannoni@redhat.com>
5248
5249 * stabsread.c (dbx_lookup_type): Make static.
5250 (read_type): Ditto.
5251 (add_undefined_type): Ditto.
5252 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5253 not export.
5254
f5479e9c
EZ
52552003-05-26 Elena Zannoni <ezannoni@redhat.com>
5256
5257 * hpread.c (hpread_has_name): Make static.
5258 (hpread_psymtab_to_symtab): Ditto.
5259 (file_exists): Ditto.
5260 (hpread_call_pxdb): Ditto.
5261 (hpread_pxdb_needed): Ditto.
5262 (hpread_quick_traverse): Ditto.
5263 (hpread_get_header): Ditto.
5264 (hpread_get_lntt): Ditto.
5265 (hpread_get_slt): Ditto.
5266 (class_of): Ditto.
5267
eb2e12d7
AS
52682003-05-25 Andreas Schwab <schwab@suse.de>
5269
78bf922a
AS
5270 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5271 stack_align and deprecated_extra_stack_alignment_needed.
5272 (m68k_stack_align): Delete.
5273
eb2e12d7
AS
5274 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5275 (m68k_register_virtual_size): Likewise.
5276 (altos_skip_prologue): Remove obsolete function.
5277 (isi_frame_num_args): Likewise.
5278 (news_frame_num_args): Likewise.
5279 (m68k_fix_call_dummy): Make static.
5280 (m68k_push_dummy_frame): Likewise.
5281 (m68k_pop_frame): Likewise.
5282 (m68k_skip_prologue): Likewise.
5283 (m68k_frame_init_saved_regs): Likewise.
5284 (m68k_saved_pc_after_call): Likewise.
5285 (m68k_get_longjmp_target): Make multi-arch.
5286 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5287 structure. Register m68k_get_longjmp_target if enabled.
5288 * m68k-tdep.h (struct gdbarch_tdep): Define.
5289 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5290
5291 * Makefile.in (config.status): Also depend on configure.tgt
5292 and configure.host.
5293 (m68klinux-tdep.o): Update dependencies.
5294 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5295 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5296 (M68K_LINUX_JB_PC): Define.
5297 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5298 and take additional parameter.
5299 (m68k_linux_sigtramp_saved_pc): Update.
5300 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5301 m68k_linux_pc_in_sigtramp, in_plt_section,
5302 find_solib_trampoline_target.
5303 * config/m68k/tm-linux.h: Don't include any tm headers.
5304 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5305 (JB_ELEMENT_SIZE): Likewise.
5306 (JB_PC): Likewise.
5307 (GET_LONGJMP_TARGET): Likewise.
5308 (IN_SIGTRAMP): Likewise.
5309 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5310
eb2c22dc
MK
53112003-05-25 Mark Kettenis <kettenis@gnu.org>
5312
5313 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5314 (sparc32_push_arguments): Re-implement by calling
5315 sparc32_do_push_arguments.
5316
44b7b84e
MK
53172003-05-25 Mark Kettenis <kettenis@gnu.org>
5318
5319 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5320 SPARC_O1_REGNUM): New defines.
5321 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5322 (sparc32_store_return_value): New function.
5323 (sparc_extract_struct_value_address): Rewrite to operate on a
5324 regcache.
5325 (sparc_gdbarch_init): Don't set
5326 deprecated_extract_struct_value_address. Set
5327 extract_struct_value_address instead. Don't set
5328 deprecated_extract_return_value and deprecated_store_return_value
5329 for 32-bit targets. Set extract_return_value and
5330 store_return_value instead.
5331 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5332 DEPRECTAED_EXTRACT_RETURN_VALUE,
5333 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5334 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5335 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5336 (sparc_store_return_value): Remove prototype.
5337 (sparc32_store_return_value): New prototype.
5338 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5339 Adjust prototypes.
5340
f6ad61e3
MK
53412003-05-24 Mark Kettenis <kettenis@gnu.org>
5342
5343 * sparcnbsd-tdep.c: Include "gdb_string.h".
5344
b276f1bb
AC
53452003-05-23 Andrew Cagney <cagney@redhat.com>
5346
5347 * p-valprint.c (pascal_val_print): Replace extract_address with
5348 the inline equivalent extract_unsigned_integer.
5349 * jv-valprint.c (java_value_print): Ditto.
5350 * ada-valprint.c (ada_val_print_1): Ditto.
5351 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5352
e76c5fcc
TR
53532003-05-23 Theodore A. Roth <troth@openavr.org>
5354
5355 * blockframe.c (frameless_look_for_prologue): Remove unused
5356 after_prologue variable.
5357
2cdd89cb
MK
53582003-05-23 Mark Kettenis <kettenis@gnu.org>
5359
5360 * blockframe.c (get_pc_function_start): Rewrite to avoid
5361 asignments in if-statements.
5362
182d43bc
EZ
53632003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5364
5365 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5366 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5367 files, don't relocate absolute symbols (and do use mst_abs).
5368
e8f3fcdd
AC
53692003-05-23 Andrew Cagney <cagney@redhat.com>
5370
5371 * objc-lang.c: Include "gdb_assert.h".
5372 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5373 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5374 (gdb_check, gdb_check_fatal): Delete functions.
5375 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5376 gdb_assert.
5377 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5378 * Makefile.in (objc-lang.o): Update dependencies.
5379
3c23e6fb
ILT
53802003-05-22 Ian Lance Taylor <ian@airs.com>
5381
5382 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5383 with fprintf_filtered, not fprintf_unfiltered.
5384
af1342ab
AC
53852003-05-22 Andrew Cagney <cagney@redhat.com>
5386
5387 * stack.c (frame_info): Inline extract_address, replacing it with
5388 extract_unsigned_integer.
5389 * findvar.c (unsigned_pointer_to_address): Ditto.
5390 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5391 * dwarf2expr.c (dwarf2_read_address): Ditto.
5392 * frame.c (frame_pc_unwind): Update comment.
5393 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5394
47e242ec
JJ
53952003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5396
5397 * infptrace.c (detach): Call print_sys_errmsg rather than
5398 perror_with_name to issue warning message when errno is non-zero
5399 after calling ptrace detach.
5400
e2ac8128
JB
54012003-05-21 J. Brobecker <brobecker@gnat.com>
5402
5403 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5404 macro definitions from here...
5405 * hppa-tdep.c: ...to there.
5406
92b3541e
KB
54072003-05-20 Kevin Buettner <kevinb@redhat.com>
5408
5409 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5410 register_ptrace_addr(). Fix all callers.
5411
55809acb
AS
54122003-05-21 Andreas Schwab <schwab@suse.de>
5413
5414 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5415 dependencies.
5416 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5417 end.
5418 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5419 (_initialize_m68k_linux_tdep): New function.
5420 (m68k_linux_frame_saved_pc): Make static.
5421 (m68k_linux_extract_return_value): Likewise.
5422 (m68k_linux_store_return_value): Likewise.
5423 (m68k_linux_extract_struct_value_address): Likewise.
5424 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5425 Remove.
5426 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5427 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5428 (DEPRECATED_FRAME_SAVED_PC): Remove.
5429
0fbc10f7
KW
54302003-05-20 Kris Warkentin <kewarken@qnx.com>
5431
5432 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5433 regset numbering rather than our own.
5434
58da2eb2
DC
54352003-05-19 David Carlton <carlton@bactrian.org>
5436
5437 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5438
1fcb5155
DC
54392003-05-19 David Carlton <carlton@bactrian.org>
5440
5441 Partial fix for PR c++/827.
5442 * cp-support.h: Include symtab.h.
5443 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5444 * cp-namespace.c: Update contributors.
5445 (cp_lookup_symbol_nonlocal): New.
5446 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5447 (lookup_symbol_file): Ditto.
5448 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5449 * block.h: Declare block_scope, block_using, block_global_block.
5450 * block.c (block_scope): New.
5451 (block_using, block_global_block): Ditto.
5452 * Makefile.in (cp_support_h): Depend on symtab_h.
5453 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5454
5f9a71c3
DC
54552003-05-19 David Carlton <carlton@bactrian.org>
5456
5457 * language.h (struct language_defn): Add 'la_value_of_this'
5458 and 'la_lookup_symbol_nonlocal' members.
5459 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5460 lookup_symbol_static, lookup_symbol_global,
5461 lookup_symbol_aux_block.
5462 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5463 if we should search fields of this and how to do static/global
5464 lookup.
5465 (lookup_symbol_aux_block): Make extern.
5466 (basic_lookup_symbol_nonlocal): New.
5467 (lookup_symbol_static, lookup_symbol_global): Ditto.
5468 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5469 'la_lookup_symbol_nonlocal' members.
5470 * c-lang.c (c_language_defn, cplus_language_defn)
5471 (asm_language_defn, minimal_language_defn): Ditto.
5472 * jv-lang.c (java_language_defn): Ditto.
5473 * language.c (unknown_language_defn, auto_language_defn)
5474 (local_language_defn): Ditto.
5475 * m2-lang.c (m2_language_defn): Ditto.
5476 * objc-lang.c (objc_language_defn): Ditto.
5477 * scm-lang.c (scm_language_defn): Ditto.
5478 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5479 * p-lang.c (pascal_language_defn): Ditto for both.
5480 * Makefile.in (f-lang.o): Depend on value_h.
5481 (p-lang.o): Ditto.
5482
89a9d1b1
DC
54832003-05-19 David Carlton <carlton@bactrian.org>
5484
5485 * block.h: Declare block_static_block.
5486 * block.c (block_static_block): New.
5487 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5488 lookup_symbol_aux_local, calling block_static_block instead.
5489 (lookup_symbol_aux_local): Delete 'static_block' argument.
5490
eed3f8ab
DC
54912003-05-19 David Carlton <carlton@bactrian.org>
5492
5493 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5494
a09d8bda
ML
54952003-05-19 Michal Ludvig <mludvig@suse.cz>
5496
5497 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5498 register numbers mapping.
5499
69636828
AF
55002003-05-18 Adam Fedor <fedor@gnu.org>
5501
5502 * symtab.c (completion_list_objc_symbol): New function.
5503 (make_symbol_completion_list): Use it to add ObjC symbols
5504 when looking though the list.
5505 (language_search_unquoted_string): New function.
5506 (make_file_symbol_completion_list): Use it.
5507
55baeb84
AS
55082003-05-18 Andreas Schwab <schwab@suse.de>
5509
d0b45d99
AS
5510 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5511 dependencies.
5512 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5513 as m68k_linux_extract_return_value.
5514 (DEPRECATED_STORE_RETURN_VALUE): Define as
5515 m68k_linux_store_return_value.
5516 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5517 m68k_linux_extract_struct_value_address.
5518 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5519 get_next_frame, get_frame_base, get_frame_pc.
5520 (m68k_linux_frame_saved_pc): Use get_frame_base.
5521 (m68k_linux_extract_return_value): New function.
5522 (m68k_linux_store_return_value): New function.
5523 (m68k_linux_extract_struct_value_address): New function.
5524 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5525
55baeb84
AS
5526 * c-exp.y (typebase): Remove duplicate occurence of
5527 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5528 of lookup_signed_typename.
55baeb84 5529
b6b08ebf
MK
55302003-05-18 Mark Kettenis <kettenis@gnu.org>
5531
5532 * dwarf2loc.c (find_location_expression): Change type of second
5533 argument to `size_t *'.
5534 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5535 for size variable.
5536
5ad1c190
DC
55372003-05-18 David Carlton <carlton@bactrian.org>
5538
5539 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5540 'linkage_name'. Add comment.
5541 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5542 'linkage_name'.
5543 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5544 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5545 (lookup_block_symbol): Ditto.
5546
b8b527c5
AC
55472003-05-16 Andrew Cagney <cagney@redhat.com>
5548
5549 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5550 * gdbarch.h, gdbarch.c: Re-generate.
5551 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5552 * TODO (REGISTER_BYTES): Delete reference.
5553 * alpha-tdep.c (alpha_gdbarch_init): Update.
5554 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5555 * x86-64-tdep.c (x86_64_init_abi): Update.
5556 * vax-tdep.c (vax_gdbarch_init): Update.
5557 * v850-tdep.c (v850_gdbarch_init): Update.
5558 * sparc-tdep.c (sparc_gdbarch_init): Update.
5559 * sh-tdep.c (sh_gdbarch_init): Update.
5560 * s390-tdep.c (s390_gdbarch_init): Update.
5561 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5562 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5563 (ns32k_gdbarch_init_32382): Update.
5564 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5565 * mcore-tdep.c (mcore_gdbarch_init): Update.
5566 * m68k-tdep.c (m68k_gdbarch_init): Update.
5567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5568 * ia64-tdep.c (ia64_gdbarch_init): Update.
5569 * i386-tdep.c (i386_gdbarch_init): Update.
5570 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5571 * hppa-tdep.c (hppa_gdbarch_init): Update.
5572 * h8300-tdep.c (h8300_gdbarch_init): Update.
5573 * frv-tdep.c (frv_gdbarch_init): Update.
5574 * cris-tdep.c (cris_gdbarch_init): Update.
5575 * avr-tdep.c (avr_gdbarch_init): Update.
5576 * arm-tdep.c (arm_gdbarch_init): Update.
5577 * sparc-tdep.c (sparc_pop_frame): Update.
5578 * rs6000-tdep.c (rs6000_pop_frame): Update.
5579 * remote.c (init_remote_state): Update.
5580 (remote_prepare_to_store): Update.
5581 * remote-vx.c (vx_prepare_to_store): Update.
5582 * remote-sds.c (sds_fetch_registers): Update.
5583 (sds_prepare_to_store): Update.
5584 * remote-array.c: Update.
5585 * regcache.c (init_legacy_regcache_descr): Update.
5586 (init_regcache_descr): Update.
5587 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5588 (mips_o64_extract_return_value): Update.
5589 * irix5-nat.c (fetch_core_registers): Update.
5590 * irix4-nat.c (fetch_core_registers): Update.
5591 * i386-tdep.h: Update.
5592 * hppa-tdep.c (pa_do_registers_info): Update.
5593 (pa_do_strcat_registers_info): Update.
5594 * cris-tdep.c (cris_register_bytes_ok): Update.
5595 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5596 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5597 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5598 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5599 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5600 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5601 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5602 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5603 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5604 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5605 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5606 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5607 (REGISTER_BYTES_OK): Update.
5608 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5609 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5610
ee2842e2
ILT
56112003-05-16 Ian Lance Taylor <ian@airs.com>
5612
5613 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5614 (vax_print_insn, print_insn_arg): Remove static functions.
5615 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5616 print_insn_vax from opcodes library.
5617 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5618
973177d3
AC
56192003-05-15 Andrew Cagney <cagney@redhat.com>
5620
aaab4dba
AC
5621 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5622 * target.h (memory_breakpoint_from_pc): Delete declaration.
5623 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5624 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5625 * monitor.c (monitor_insert_breakpoint): Use
5626 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5627 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5628 * gdbarch.h, gdbarch.c: Re-generate.
5629 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5630 (sparc_gdbarch_init): Set breakpoint_from_pc to
5631 sparc_breakpoint_from_pc.
5632 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5633 (BREAKPOINT_FROM_PC): Define.
5634 (sparc_breakpoint_from_pc): Declare.
5635 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5636 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5637 (BREAKPOINT_FROM_PC): Define.
5638 (BREAKPOINT): Delete macro.
5639 * target.h: Update comment.
5640 * s390-tdep.c (s390_gdbarch_init): Update comments.
5641 * remote.c: Update comments.
5642 * remote-mips.c: Update comments.
5643 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5644 * mem-break.c: Update comment.
5645 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5646 (ia64_memory_insert_breakpoint): Update.
5647 * config/sparc/tm-sparc.h: Update comment.
5648 * config/pa/tm-hppa64.h: Update comment.
5649 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5650 (rs6000_breakpoint_from_pc): Update.
5651 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5652 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5653 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5654 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5655 (mips_breakpoint_from_pc): Update.
5656 (mips_dump_tdep): Update.
5657
e06963ff
AC
5658 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5659 * minsyms.c (lookup_minimal_symbol): Inline
5660 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5661
973177d3
AC
5662 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5663 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5664 * p-lang.c (pascal_printstr): Ditto.
5665 * objc-lang.c (objc_printstr): Ditto.
5666 * m2-lang.c (m2_printstr): Ditto.
5667 * jv-valprint.c (java_print_value_fields): Ditto.
5668 * f-lang.c (f_printstr): Ditto.
5669 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5670 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5671 for repeat_count_threshold.
5672 * Makefile.in (cp-valprint.o): Update dependencies.
5673
5ea2bd7f 56742003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5675
5ea2bd7f
JJ
5676 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5677 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5678 they start with mov r2,r12. Support skipping over indirect stores
5679 of the input registers. Upon hitting a non-nop branch instruction
5680 or predicated instruction, bail out by setting lim_pc to the current
5681 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5682 beyond our calculated value and we have trust_limit set,
5683 use the lim_pc value.
5684
cc8c88f3
AC
56852003-05-15 Andrew Cagney <cagney@redhat.com>
5686
5687 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5688 generic_find_dummy_frame.
5689 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5690 (deprecated_generic_find_dummy_frame): Update.
5691 (deprecated_read_register_dummy): Update.
5692 * frame.c (deprecated_generic_get_saved_register): Update.
5693
909cd28e
TR
56942003-05-15 Theodore A. Roth <troth@openavr.org>
5695
5696 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5697 (avr_gdbarch_init): Set breakpoint_from_pc method.
5698
b923b08d
AC
56992003-05-15 Andrew Cagney <cagney@redhat.com>
5700
5701 * regcache.c (build_regcache): Set deprecated_register_valid
5702 directly.
5703 (deprecated_grub_regcache_for_register_valid): Delete function.
5704 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5705 declaration.
5706
ae2f03ac 57072003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5708
5709 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5710 * symtab.c (lookup_symbol_aux): Delete calls to
5711 lookup_symbol_aux_minsyms.
5712 (lookup_symbol_aux_minsyms): Comment out function and
5713 prototype. Delete lookup by mangled name.
ae2f03ac 5714
18ec9831
KB
57152003-05-14 Kevin Buettner <kevinb@redhat.com>
5716
5717 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5718 correctly indicate an empty stack and ``stack_allocated'' to the
5719 indicate the number of elements initially allocated.
5720 (dwarf_expr_grow_stack): Simplify method for computing new
5721 stack size. Don't loop infinitely if ``stack_len'' is zero.
5722 (execute_stack_op): Move ``ctx->in_reg'' initialization
5723 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5724 be used in conjuction with DW_OP_piece. Revise error message
5725 accordingly.
5726
de18ac1f
TR
57272003-05-14 Theodore A. Roth <troth@openavr.org>
5728
5729 * MAINTAINERS: Update my email address.
5730 * avr-tdep.c: Ditto.
5731
176620f1
EZ
57322003-05-14 Elena Zannoni <ezannoni@redhat.com>
5733
5734 * symtab.h (enum domain_enum): Rename from namespace_enum.
5735 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5736 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5737 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5738 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5739 TYPES_NAMESPACE, METHODS_NAMESPACE.
5740 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5741 (struct symbol, struct partial_symbol): Rename field
5742 'namespace_enum namespace' to 'domain_enum domain'.
5743 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5744 Delete old define kludge for namespace.
5745
5746 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5747 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5748 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5749 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5750 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5751 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5752 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5753 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5754 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5755 occurrences of the above.
5756
b7f31508
ILT
57572003-05-14 Ian Lance Taylor <ian@airs.com>
5758
5759 * Makefile.in (install-only): Use $(SHELL) when running
5760 mkinstalldirs.
5761
2fdbdd39
ILT
57622003-05-13 Ian Lance Taylor <ian@airs.com>
5763
a208d82c
ILT
5764 * MAINTAINERS (write after approval): Add myself.
5765
2fdbdd39
ILT
5766 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5767 second and third arguments.
5768 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5769 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5770
fbd9dcd3
AC
57712003-05-13 Andrew Cagney <cagney@redhat.com>
5772
5773 * defs.h (store_address): Delete declaration.
5774 findvar.c (store_address): Delete function.
5775 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5776 store_unsigned_integer.
5777 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5778 * v850-tdep.c (v850_push_arguments): Ditto.
5779 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5780 * sh-tdep.c (sh64_get_saved_register): Ditto.
5781 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5782 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5783 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5784 (mips_get_saved_register): Ditto.
5785 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5786 (find_func_descr, ia64_push_arguments): Ditto.
5787 * i386-tdep.c (i386_push_arguments): Ditto.
5788 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5789 * frv-tdep.c (frv_push_arguments): Ditto.
5790 * frame.c (legacy_saved_regs_prev_register): Ditto.
5791 (deprecated_generic_get_saved_register): Ditto.
5792 * findvar.c (unsigned_address_to_pointer): Ditto.
5793 * dwarf2read.c (dwarf2_const_value): Ditto.
5794 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5795 * alpha-tdep.c (alpha_push_arguments): Ditto.
5796
6760f9e6
JB
57972003-05-12 J. Brobecker <brobecker@gnat.com>
5798
5799 * NEWS: Mention that the hppa-hpux port has been partially
5800 multiarched (32bit ABIT only, so far).
5801
30e221b4
AC
58022003-05-11 Andrew Cagney <cagney@redhat.com>
5803
5804 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5805 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5806 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5807 sim/testsuite/sim/arm/misaligned2.ms, and
5808 sim/testsuite/sim/arm/misaligned3.ms.
5809 * disasm.h (struct ui_file): Add opaque struct declaration.
5810 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5811 * frame.h (struct ui_file): Ditto.
5812
dea7f9ba
MK
58132003-05-11 Mark Kettenis <kettenis@gnu.org>
5814
5815 * value.h: Pretty print.
5816
01986c48
MK
58172003-05-10 Mark Kettenis <kettenis@gnu.org>
5818
5819 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5820
123a958e
AC
58212003-05-08 Andrew Cagney <cagney@redhat.com>
5822
5823 * regcache.h (max_register_size): Delete declaration.
5824 * regcache.c (max_register_size): Delete function.
5825 (struct regcache_descr): Delete field "max_register_size".
5826 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5827 registers fit in MAX_REGISTER_SIZE.
5828 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5829 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5830 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5831 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5832 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5833 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5834 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5835 * dve3900-rom.c, hppa-tdep.c: Ditto.
5836
eb294659
DC
58372003-05-08 David Carlton <carlton@math.stanford.edu>
5838
5839 * valops.c (push_word): Fix typo.
5840
d9d9c31f
AC
58412003-05-08 Andrew Cagney <cagney@redhat.com>
5842
5843 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5844 * gdbarch.h: Re-generate.
5845 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5846 (legacy_max_register_raw_size): Delete declaration.
5847 * regcache.c (legacy_max_register_raw_size): Delete function.
5848 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5849 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5850 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5851 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5852 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5853 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5854 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5855 * findvar.c, dwarf2cfi.c: Ditto.
5856
22540ece
AC
58572003-05-08 Andrew Cagney <cagney@redhat.com>
5858
5859 * mips-tdep.c (read_signed_register): New function, moved to here
5860 from "regcache.c".
5861 (read_signed_register_pid): Ditto.
5862 * regcache.c (read_signed_register_pid): Delete function, moved to
5863 "mips-tdep.c".
5864 (read_signed_register): Ditto.
5865 * regcache.h (read_signed_register): Delete declaration.
5866 (read_signed_register_pid): Delete declaration.
5867
0c92afe8
AC
58682003-05-08 Andrew Cagney <cagney@redhat.com>
5869
5870 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5871 * gdbarch.h: Re-generate.
5872 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5873 (legacy_max_register_virtual_size): Delete declaration.
5874 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5875 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5876 * tracepoint.c (memrange_sortmerge): Ditto.
5877 * sparc-tdep.c (sparc_print_registers): Ditto.
5878 * regcache.c (legacy_max_register_virtual_size): Delete function.
5879
6037b830
JB
58802002-05-08 J. Brobecker <brobecker@gnat.com>
5881
5882 * fork-child.c (escape_bang_in_quoted_argument): New function.
5883 (fork_inferior): Escape '!' characters in quoted arguments
5884 only when needed.
5885
5d62c8b1
JB
58862003-05-08 J. Brobecker <brobecker@gnat.com>
5887
5888 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5889 the language of the CU is not currently supported by GDB.
5890
20a0e81d
JB
58912003-05-08 J. Brobecker <brobecker@gnat.com>
5892
5893 * defs.h (language): Add language_minimal enum value.
5894 * c-lang.c (minimal_language_defn): New language definition.
5895 (_initialize_c_language): Add the new minimal language to the list
5896 of languages known to GDB.
5897
710ee10a
KB
58982003-05-08 Kevin Buettner <kevinb@redhat.com>
5899
5900 * frame.c (get_frame_type): Don't attempt to lazily initialize
5901 frame's unwinder for legacy frames.
5902
1750fa04
AC
59032003-05-07 Andrew Cagney <cagney@redhat.com>
5904
5905 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5906 and "regcache" parameters.
5907 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5908
ddf9f258 59092003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5910
5911 * dwarf2read.c (dwarf_decode_lines): Only use output of
5912 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5913 the current address.
5914
87767c29
AC
59152003-05-07 Andrew Cagney <cagney@redhat.com>
5916
5917 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5918 code.
5919
5e7b2f39
JB
59202003-05-07 Jim Blandy <jimb@redhat.com>
5921
5922 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5923 'maint info symtabs' and 'maint info psymtabs'.
5924 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5925 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5926 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5927 Declarations updated.
5928 * maint.c (maintenance_list_command): Delete.
5929 (_initialize_maint_cmds): Update calls to add_cmd.
5930 * gdbcmd.h (maintenancelistlist): Delete declaration.
5931 * cli/cli-cmds.c (maintenancelistlist): Delete.
5932 (init_cmd_lists): Don't initialize it.
5933 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5934
f6684c31
AC
59352003-05-07 Andrew Cagney <cagney@redhat.com>
5936
5937 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5938 "regcache".
5939 (d10v_print_registers_info): Update.
5940 (d10v_dmap_register, d10v_imap_register): Delete functions.
5941 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5942 and "imap_register".
5943 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5944 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5945 * arch-utils.c (generic_remote_translate_xfer_address): Add
5946 "regcache" and "gdbarch" parameters.
5947 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5948 parameter. Change class to multi-arch.
5949 * gdbarch.h, gdbarch.c: Re-generate.
5950 * remote.c (remote_xfer_memory): Use
5951 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5952
e4846b08
JJ
59532003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5954
5955 * infrun.c (prev_pc): Move declaration ahead of proceed().
5956 (proceed): Refresh prev_pc value before resuming.
5957 (stop_stepping): Remove code to refresh prev_pc.
5958
6b71b8ac
KW
59592003-05-06 Kris Warkentin <kewarken@qnx.com>
5960
5961 * nto-tdep.c: Removed stray comment.
5962
47979a4b
KW
59632003-05-06 Kris Warkentin <kewarken@qnx.com>
5964
5965 * i386-nto-tdep.c: Fix old K&R function definitions.
5966 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5967 Also change add_show_from_set() call to add_setshow_cmd().
5968 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5969
00905d52
AC
59702003-05-05 Andrew Cagney <cagney@redhat.com>
5971
5972 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5973 (fprint_dummy_frames): New function.
5974 (maintenance_print_dummy_frames): New function.
5975 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5976 * frame.c (fprint_frame_id): Make global.
5977 * frame.h (fprint_frame_id): Declare.
5978 * Makefile.in (dummy-frame.o): Update dependencies.
5979
b1e29e33
AC
59802003-05-05 Andrew Cagney <cagney@redhat.com>
5981
5982 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5983 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5984 SIZEOF_CALL_DUMMY_WORDS.
5985 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5986 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5987 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5988 CALL_DUMMY_BREAKPOINT_OFFSET.
5989 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5990 CALL_DUMMY_START_OFFSET.
5991 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5992 * gdbarch.h, gdbarch.c: Re-generate.
5993 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5994 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5995 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5996 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5997 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5998 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5999 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6000 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6001 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6002 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6003 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6004 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6005 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6006 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6007 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6008
60092003-05-05 Kris Warkentin <kewarken@qnx.com>
6010
6011 * configure.tgt: Add i[3456]86-*-nto*.
6012 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6013 * nto-tdep.c: New file. Neutrino target support routines.
6014 * nto-tdep.h: New file. Neutrino target header.
6015 * config/tm-qnxnto.h: New file.
6016 * config/i386/i386nto.mt: New file.
6017 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6018
0ce3d317
AC
60192003-05-04 Andrew Cagney <cagney@redhat.com>
6020
6021 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6022 (load_infrun_state): Ditto.
6023 (struct thread_info): Drop "prev_func_name" field.
6024 * thread.c (load_infrun_state): Update.
6025 (save_infrun_state): Update.
6026 * infrun.c (prev_func_name): Delete variable.
6027 (init_wait_for_inferior): Do not clear prev_func_name.
6028 (stop_stepping, keep_going, context_switch): Do not swap
6029 prev_func_name.
6030 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6031 instead of PC_IN_SIGTRAMP.
6032
46654a5b
AC
60332003-05-04 Andrew Cagney <cagney@redhat.com>
6034
6035 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6036 REGISTER_BYTE with register_offset_hack.
6037 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6038 that REGISTER_BYTE is consistent with the regcache.
6039 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6040 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6041
14b08c1b
MK
60422003-05-04 Mark Kettenis <kettenis@gnu.org>
6043
04c8243f
MK
6044 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6045 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6046
14b08c1b
MK
6047 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6048
c7a11e01
JB
60492003-05-03 J. Brobecker <brobecker@gnat.com>
6050
6051 From Thierry Schneider <tpschneider1@yahoo.com>
6052 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6053 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6054 (mi-cmd-symbol.o): Add rule.
6055
7043d8dc
AC
60562003-05-03 Andrew Cagney <cagney@redhat.com>
6057
6058 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6059 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6060 * gdbarch.h, gdbarch.c: Re-generate.
6061 * d10v-tdep.c (d10v_push_dummy_code): New function.
6062 (d10v_gdbarch_init): Set push_dummy_code.
6063 * infcall.c (legacy_push_dummy_code): New function.
6064 (generic_push_dummy_code): New function.
6065 (push_dummy_code): New function.
6066 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6067 instead of dummy_addr, to push_dummy_call. Move call to
6068 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6069 switch.
6070 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6071
92bf2b80
AC
60722003-05-03 Andrew Cagney <cagney@redhat.com>
6073
6074 * disasm.h (print_insn): Declare.
6075 * disasm.c (init_gdb_disassemble_info): New function.
6076 (gdb_disassembly): Call init_gdb_disassemble_info.
6077 (gdb_print_insn): New function.
6078 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6079 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6080 * mcore-tdep.c: Include "disasm.h"
6081 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6082 * d10v-tdep.c: Include "disasm.h".
6083 (display_trace): Call gdb_print_insn, instead of print_insn.
6084 (print_insn): Delete function.
6085 * printcmd.c: Include "disasm.h".
6086 (print_insn): Delete function.
6087 (print_formatted): Call gdb_print_insn, instead of print_insn.
6088 * Makefile.in (printcmd.o): Update dependencies.
6089 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6090
27d94c49
AC
60912003-05-02 Andrew Cagney <cagney@redhat.com>
6092
82de1e5b
AC
6093 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6094 PC_REGNUM, re-indent.
6095 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6096 PC_REGNUM isn't set.
6097
27d94c49
AC
6098 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6099 * gdbarch.h, gdbarch.c: Re-generate.
6100 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6101 register_virtual_size, pc_regnum, or register_bytes.
6102 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6103 (d10v_register_type): Use D10V_PC_REGNUM.
6104 (d10v_print_registers_info, d10v_read_pc): Ditto.
6105 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6106 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6107
a9c0dc7f
DC
61082003-05-02 David Carlton <carlton@bactrian.org>
6109
6110 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6111 the name with mstrsave.
6112
e33d66ec
EZ
61132003-05-02 Elena Zannoni <ezannoni@redhat.com>
6114
6115 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6116 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6117 (host_charset_name, target_charset_name): New vars for use by
6118 set/show commands.
6119 (host_charset_enum, target_charset_enum): New enums for set/show
6120 commands.
6121 (set_charset_sfunc, set_host_charset_sfunc,
6122 set_target_charset_sfunc): New functions.
6123 (set_host_charset, set_target_charset): Make static.
6124 (list_charsets, set_host_charset_command,
6125 set_target_charset_command): Delete functions.
6126 (show_charset_command): Rewrite as....
6127 (show_charset): Hook this up with the set/show command mechanism.
6128 (_initialize_charset): Change names of charsets to match the
6129 set/show enums. Use host_charset_name and target_charset_name.
6130 Use set/show mechanism for charset, host-charset, target-charset
6131 commands. Do not make 'show host-charset' and 'show
6132 target-charset' be aliases of 'show charset'.
6133
6134 * charset.h (set_host_charset, set_target_charset): Don't export,
6135 they are not used outside the file.
6136
2b6fd0d8
AC
61372003-05-01 Andrew Cagney <cagney@redhat.com>
6138
6139 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6140 (gdb_disassembly): Make "di" non static, always initialize and
6141 cleanup. Always use dis_asm_read_memory.
6142 (gdb_dis_asm_read_memory): Delete function.
6143
6ae2f580
AC
61442003-05-01 Andrew Cagney <cagney@redhat.com>
6145
6146 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6147 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6148
810ecf9f
AC
61492003-04-30 Andrew Cagney <cagney@redhat.com>
6150
6151 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6152 "tm_print_insn_info".
6153 (TARGET_PRINT_INSN_INFO): Delete macro.
6154 (dis_asm_read_memory): Delete function declaration.
6155 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6156 (tm_print_insn_info): Delete variable definition.
6157 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6158 * gdbarch.h, gdbarch.c: Re-generate.
6159 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6160 "deprecated_tm_print_insn_info".
6161 * mcore-tdep.c (mcore_dump_insn): Ditto.
6162 * mips-tdep.c (mips_gdbarch_init): Ditto.
6163 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6164 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6165 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6166 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6167 instead of TARGET_PRINT_INSN_INFO, add comment.
6168 * s390-tdep.c (s390_get_frame_info): Instead of
6169 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6170 (s390_check_function_end, s390_is_sigreturn): Ditto.
6171 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6172 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6173 * disasm.c: Include "gdbcore.h".
6174 (_initialize_disasm): New function, initialize
6175 "deprecated_tm_print_insn_info".
6176 (deprecated_tm_print_insn_info): New variable.
6177 (dis_asm_read_memory): Moved from "corefile.c", made static.
6178 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6179 * Makefile.in (disasm.o): Update dependencies.
6180
07020390
AC
61812003-04-30 Andrew Cagney <cagney@redhat.com>
6182
6183 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6184
a9fa03de
AF
61852003-04-29 Adam Fedor <fedor@gnu.org>
6186
6187 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6188 * infcall.c (find_function_addr): Make non-static.
6189 * infcall.h (find_function_addr): Declare.
6190 * Makefile.in (eval.o): Update dependencies.
6191
1bae87b9
AF
61922003-04-28 Adam Fedor <fedor@gnu.org>
6193
6194 * symtab.c (symbol_find_demangled_name): Check for and demangle
6195 ObjC symbols.
6196 (symbol_init_demangled_name): Init for language_objc as well.
6197
0ba6dca9
AC
61982003-04-28 Andrew Cagney <cagney@redhat.com>
6199
6200 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6201 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6202 * gdbarch.h, gdbarch.c: Re-generate.
6203 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6204 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6205 * inferior.h (deprecated_read_fp): Rename read_fp.
6206 (generic_target_read_fp): Delete declaration.
6207 * regcache.c (generic_target_read_fp): Delete function.
6208 (deprecated_read_fp): Replace read_fp, use
6209 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6210 * d10v-tdep.c (d10v_read_fp): Delete function.
6211 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6212
6213 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6214 deprecated_target_read_fp to generic_target_read_fp.
6215 * sh-tdep.c (sh_gdbarch_init): Ditto.
6216 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6218 * frv-tdep.c (frv_gdbarch_init): Ditto.
6219
6220 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6221 deprecated_fp_regnum.
6222 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6223 * vax-tdep.c (vax_gdbarch_init): Ditto.
6224 * v850-tdep.c (v850_gdbarch_init): Ditto.
6225 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6226 * sh-tdep.c (sh_gdbarch_init): Ditto.
6227 * s390-tdep.c (s390_gdbarch_init): Ditto.
6228 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6229 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6230 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6231 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6232 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6233 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6234 * i386-tdep.c (i386_gdbarch_init): Ditto.
6235 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6236 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6237 * frv-tdep.c (frv_gdbarch_init): Ditto.
6238 * cris-tdep.c (cris_gdbarch_init): Ditto.
6239 * avr-tdep.c (avr_gdbarch_init): Ditto.
6240 * arm-tdep.c (arm_gdbarch_init): Ditto.
6241 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6242
6243 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6244 * v850-tdep.c (v850_gdbarch_init): Ditto.
6245 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6246 * sh-tdep.c (sh_gdbarch_init): Ditto.
6247 * s390-tdep.c (s390_gdbarch_init): Ditto.
6248 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6249 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6250 * mips-tdep.c (mips_gdbarch_init): Ditto.
6251 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6252 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6253 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6254 * frv-tdep.c (frv_gdbarch_init): Ditto.
6255 * avr-tdep.c (avr_gdbarch_init): Ditto.
6256 * arm-tdep.c (arm_gdbarch_init): Ditto.
6257
6258 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6259 DEPRECATED_FP_REGNUM.
6260 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6261 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6262 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6263 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6264 (sparc32_register_virtual_type): Ditto.
6265 * sh-tdep.c (sh64_frame_chain): Ditto.
6266 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6267 (sh_nofp_frame_init_saved_regs): Ditto.
6268 (sh64_nofp_frame_init_saved_regs): Ditto.
6269 (sh_fp_frame_init_saved_regs): Ditto.
6270 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6271 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6272 * procfs.c (procfs_fetch_registers): Ditto.
6273 (procfs_store_registers): Ditto.
6274 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6275 (store_inferior_registers, fetch_core_registers): Ditto.
6276 (fetch_kcore_registers, clear_regs): Ditto.
6277 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6278 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6279 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6280 * nlm/i386.c (do_status): Ditto.
6281 * mipsv4-nat.c (supply_gregset): Ditto.
6282 * mips-tdep.c: Ditto for comments.
6283 * mips-nat.c (fetch_inferior_registers): Ditto.
6284 (store_inferior_registers, fetch_core_registers): Ditto.
6285 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6286 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6287 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6288 (i386_do_pop_frame, i386_register_type): Ditto.
6289 * hppa-tdep.c (hppa_frame_chain): Ditto.
6290 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6291 (hppa_pop_frame, hppa_read_fp): Ditto.
6292 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6293 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6294 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6295 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6296 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6297 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6298 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6299 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6300 * blockframe.c: Ditto for comments.
6301 * arch-utils.h: Ditto for comments.
6302 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6303 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6304 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6305 * alpha-tdep.h: Ditto for comments.
6306 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6307 (alpha_cannot_store_register): Ditto.
6308 (alpha_push_dummy_frame): Ditto.
6309 * alpha-nat.c (supply_gregset): Ditto.
6310
6311 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6312 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6313 * config/sparc/tm-sparc.h: Update comment.
6314
6315 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6316 deprecated_read_fp instead of TARGET_READ_FP.
6317 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6318 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6319 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6320 deprecated_read_fp instead of read_fp.
6321 * s390-tdep.c (s390_push_arguments): Ditto.
6322 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6323 * frame.h: Ditto in comments.
6324 * frame.c (legacy_get_prev_frame): Ditto.
6325 * dummy-frame.c (dummy_frame_this_id): Ditto.
6326 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6327
d7a27068
AC
63282003-04-28 Andrew Cagney <cagney@redhat.com>
6329
6330 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6331 * gdbarch.h, gdbarch.c: Re-generate.
6332 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6333 * vax-tdep.c (_initialize_vax_tdep): Update.
6334 * v850-tdep.c (_initialize_v850_tdep): Update.
6335 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6336 * s390-tdep.c (_initialize_s390_tdep): Update.
6337 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6338 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6339 * mips-tdep.c (_initialize_mips_tdep): Update.
6340 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6341 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6342 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6343 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6344 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6345 * frv-tdep.c (_initialize_frv_tdep): Update.
6346 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6347 (_initialize_cris_tdep): Update.
6348 * arch-utils.c (legacy_print_insn): Update.
6349 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6350
d2630e69
AF
63512003-04-26 Adam Fedor <fedor@gnu.org>
6352
6353 * linespec.c (decode_objc): New function to decode ObjC calls
6354 (decode_line_1): Check for ObjC calls (using decode_objc)
6355 * Makefile (linespec.o): Update dependencies.
6356
3086aeae
DJ
63572003-04-26 Daniel Jacobowitz <drow@mvista.com>
6358
6359 * breakpoint.h (struct breakpoint_ops): New.
6360 (struct breakpoint): Add ops member.
6361
6362 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6363 (mention): Use new breakpoint ops member.
6364 (set_raw_breakpoint): Initialize ops field to NULL.
6365 (print_exception_catchpoint, print_one_exception_catchpoint)
6366 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6367 (gnu_v3_exception_catchpoint_ops): New.
6368 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6369
1fbec6c3
AF
63702003-04-25 Adam Fedor <fedor@gnu.org>
6371
6372 * Makefile.in (COMMON_OBS): Add objc-lang.o
6373
0ef21242
AC
63742003-04-25 Andrew Cagney <cagney@redhat.com>
6375
6376 * d10v-tdep.c (print_insn): Delete function.
6377 (display_trace): Use TARGET_PRINT_INSN.
6378 (_initialize_d10v_tdep): Do not set tm_print_insn.
6379 (d10v_gdbarch_init): Set print_insn.
6380
f75493ed
AC
63812003-04-25 Andrew Cagney <cagney@redhat.com>
6382
6383 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6384 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6385 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6386 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6387 (nr_dmap_regs, a0_regnum): ... new functions.
6388 (d10v_print_registers_info): Use a0_regnum, use register_size.
6389 (d10v_register_byte): Delete function.
6390 (d10v_register_raw_size): Delete function.
6391 (d10v_register_type): Use a0_regnum.
6392 (d10v_print_registers_info): Use a0_regnum.
6393 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6394 (d10v_gdbarch_init): Do not set register_byte or
6395 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6396 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6397 extract_address.
6398 (trace_command): Use XCALLOC.
6399 (print_insn): Delete reference to tm_print_insn.
6400 (saved_regs_unwinder): Use store_unsigned_integer instead of
6401 store_address.
6402 * frame.h (FRAME_OBSTACK_CALLOC): Define
6403
2202b100
DC
64042003-04-25 David Carlton <carlton@bactrian.org>
6405
6406 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6407
4e45ca2e
AF
64082003-04-24 Adam Fedor <fedor@gnu.org>
6409
6410 * objc-lang.c: Include "valprint.h"
6411 * Makefile.in (objc-lang.o): Update dependencies.
6412
93de3e7f
AF
64132003-04-24 Adam Fedor <fedor@gnu.org>
6414
8ffd9b1b 6415 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6416 architecture dependant compilation and mark as unimplemented
6417 (until they get put in the gdbarch vector).
6418
0f20eeea
DC
64192003-04-23 David Carlton <carlton@bactrian.org>
6420
6421 * cp-support.c (cp_find_first_component): Accept 'operator' in
6422 more locations.
6423
74cfe982
AC
64242003-04-23 Andrew Cagney <cagney@redhat.com>
6425
6426 * infcall.c (call_function_by_hand): Eliminate redundant
6427 indentation. Move "saved_async" and "old_cleanups" to where they
6428 are needed.
8ffd9b1b 6429
52557533
AC
64302003-04-23 Andrew Cagney <cagney@redhat.com>
6431
6432 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6433 and "buffer". Move the "name" code to where it is needed.
6434
158775de
AC
64352003-04-23 Andrew Cagney <cagney@redhat.com>
6436
6437 * infcall.c (call_function_by_hand): Move variables "start_sp",
6438 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6439 code to ON_STACK switch branch.
8ffd9b1b 6440
ebc7896c
AC
64412003-04-23 Andrew Cagney <cagney@redhat.com>
6442
6443 * infcall.c (call_function_by_hand): Make declaration of "i",
6444 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6445 lint.
6446
d727590f
AC
64472003-04-23 Andrew Cagney <cagney@redhat.com>
6448
6449 * infcall.c (call_function_by_hand): Delete variable
6450 "n_method_args". Localize "param_type"'s declaration to the loop
6451 that it is used. Reinstate code assigning to said variable -
6452 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6453 Rationalize code using "param_type".
6454
d585e13a
AC
64552003-04-22 Andrew Cagney <cagney@redhat.com>
6456
6457 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6458 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6459 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6460 to DEPRECATED_PUSH_RETURN_ADDRESS.
6461
051caad9
KB
64622003-04-22 Kevin Buettner <kevinb@redhat.com>
6463
6464 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6465 on the DWARF2 register number prior to fetching a register.
6466
77296879
JB
64672003-04-22 J. Brobecker <brobecker@gnat.com>
6468
6469 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6470 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6471 this macro was always set to 0.
77296879
JB
6472 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6473 considering the fact that this macro was always set to 0.
6474 * hppa-tdep.h (hppa_store_return_value): Likewise.
6475 (hppa_extract_return_value): Likewise.
6476
4252f1df
JB
64772003-04-22 J. Brobecker <brobecker@gnat.com>
6478
6479 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6480 the hppa-pro target only.
6481
14604c6b
JB
64822003-04-21 J. Brobecker <brobecker@gnat.com>
6483
6484 Ongoing multi-arch conversion effort for HP/UX:
6485 * config/pa/tm-hppa.h: Move all macro that are no longer
6486 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6487 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6488
77eb01d1
JB
64892003-04-21 J. Brobecker <brobecker@gnat.com>
6490
6491 * config/pa/tm-hppa.h: Obsolete a section that was only used
6492 for hppa-pro.
6493
61995b3b
JB
64942003-04-21 J. Brobecker <brobecker@gnat.com>
6495
6496 Ongoing multi-arch conversion for HP/UX.
6497 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6498 if already defined (allows hppa64 to stay non-multiarched for now).
6499 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6500
4aa79dcc
AC
65012003-04-21 Andrew Cagney <cagney@redhat.com>
6502
6503 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6504
0f751ff2
AC
65052003-04-21 Andrew Cagney <cagney@redhat.com>
6506
6507 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6508 "i386_num_mmx_regs".
6509
04714b91
AC
65102003-04-21 Andrew Cagney <cagney@redhat.com>
6511
6512 * infcall.c: New file.
6513 * infcall.h: New file.
6514 * valarith.c: Include "infcall.h".
6515 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6516 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6517 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6518 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6519 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6520 (SFILES): Add "infcall.c"
6521 (COMMON_OBS): Add "infcall.o".
6522 (infcall.o): Specify dependencies.
6523 * value.h (call_function_by_hand): Delete declaration.
6524 * inferior.h (run_stack_dummy): Delete declaration.
6525 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6526 (run_stack_dummy): Move to "infcall.c", merged into
6527 call_function_by_hand.
6528 * valops.c (call_function_by_hand): Moved to "infcall.c".
6529 (find_function_addr, value_arg_coerce): Ditto.
6530 (unwindonsignal_p, coerce_float_to_double): Ditto.
6531 (_initialize_valops): Move "set/show coerce-float-to-double", and
6532 "set/show unwindonsignal" commands to "infcall.c".
6533 * v850-tdep.c, target.h: Update comments.
6534 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6535 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6536 (sh64_init_extra_frame_info): Update comments.
6537 * mn10300-tdep.c: Update comments.
6538 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6539 * config/sparc/tm-sparc.h: Update comments.
6540 * breakpoint.h: Update comments.
6541 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6542 * arm-tdep.c: Update comment.
6543
f9d3c2a8
MK
65442003-04-19 Mark Kettenis <kettenis@gnu.org>
6545
c40e1eab
MK
6546 * i386-tdep.c (i386_num_register_names): New variable.
6547 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6548 (MM0_REGNUM): Remove redundant parentheses in define.
6549 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6550 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6551 i386_mxcsr_regnum_p): Remove redundant parentheses.
6552 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6553
94ea66b3
MK
6554 * i386-tdep.c (i386_extract_return_value,
6555 i386_store_return_value): Correct check for availability of
6556 floating-point registers.
6557
54299a1d
MK
6558 * i386-tdep.c (i386_frame_num_args): Remove function.
6559 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6560
c86c27af
MK
6561 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6562 mmx_regnum_to_fp_regnum. Adjust all callers.
6563
f9d3c2a8
MK
6564 * i386-tdep.c (i386_get_longjmp_target): Use
6565 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6566 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6567 extract_address.
6568
94ba74a9
MK
65692003-04-19 Mark Kettenis <kettenis@gnu.org>
6570
6571 * core-regset.c: Update comments to reflect reality. Re-order
6572 includes.
6573 (fetch_core_registers): Use switch instead of if. Remove
6574 redundant prototype.
6575
4074e13c
JB
65762003-04-18 Jim Blandy <jimb@redhat.com>
6577
6578 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6579 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6580
e3ab4aba
RH
65812003-04-17 Richard Henderson <rth@redhat.com>
6582
6583 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6584
627bf7c1
EZ
65852003-04-17 Michael Snyder <msnyder@redhat.com>
6586 Karen Bennet <bennet@redhat.com>
6587
6588 Committed by Elena Zannoni <ezannoni@redhat.com>
6589 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6590
514621a9
EZ
65912003-04-17 Elena Zannoni <ezannoni@redhat.com>
6592
6593 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6594 value if the return type is void.
514621a9 6595
b4acd559
JJ
65962003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6597
6598 * thread-db.c: Reindented.
8ffd9b1b 6599
530b167e 66002003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6601
6602 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6603 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6604 as types.
6605
0a48e7e8
MS
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
8ffd9b1b 6629
ab9fe00e
KB
66302003-04-16 Kevin Buettner <kevinb@redhat.com>
6631
610a3745 6632 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6633 the size of ``long double'' to 16, instead of 8.
6634
e64a344c
MK
66352003-04-16 Mark Kettenis <kettenis@gnu.org>
6636
6637 * i386-linux-nat.c: Add some whitespace to make things more
6638 readable.
6639 (fetch_register, store_register, fetch_inferior_registers,
6640 store_inferior_registers): Get rid of assignment in if-statement.
6641 (store_register): Fix typo in error message.
6642
25d41031
AC
66432003-04-16 Andrew Cagney <cagney@redhat.com>
6644
6645 * utils.c (xmmalloc): Always allocate something, matches
6646 libiberty/xmalloc's semantics.
6647 (xmrealloc, xmcalloc): Ditto.
6648
c50901fd
AC
66492003-04-16 Andrew Cagney <cagney@redhat.com>
6650
6651 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6652 update comments.
6653 (get_frame_type): Initialize unwind and type when needed.
6654 (get_frame_id, frame_register_unwind): Ditto.
6655
f81824a9
AC
66562003-04-16 Andrew Cagney <cagney@redhat.com>
6657
6658 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6659 obsolete.
6660 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6661 * sparcl-stub.c: Obsolete file.
6662 * config/sparc/tm-sparclet.h: Obsolete file.
6663 * sparclet-stub.c: Obsolete file.
6664 * sparclet-rom.c: Obsolete file.
6665 * sparcl-tdep.c: Obsolete file.
6666 * config/sparc/tm-sparclite.h: Obsolete file.
6667 * config/sparc/sparclite.mt: Obsolete file.
6668 * config/sparc/sparclet.mt: Obsolete file.
6669 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6670 sparc86x-*-* obsolete.
6671
9219021c
DC
66722003-04-15 David Carlton <carlton@math.stanford.edu>
6673
6674 * Makefile.in (SFILES): Add cp-namespace.c.
6675 (COMMON_OBS): Add cp-namespace.o.
6676 (block.o): Depend on gdb_obstack_h and cp_support_h.
6677 (buildsym.o): Depend on cp_support_h.
6678 (cp-namespace.o): New.
6679 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6680 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6681 (dwarf2read.o): Depend on cp_support_h.
6682 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6683 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6684 processing_current_namespace.
6685 (read_namespace): Update processing_current_namespace; check for
6686 anonymous namespaces.
6687 (dwarf2_name): New function.
6688 (dwarf2_extension): Ditto.
6689 * cp-support.h: Update copyright, contributors.
6690 Add inclusion guards.
6691 Add opaque declaration for structs obstack, block, symbol.
6692 (struct using_direct): New struct.
6693 Add declarations for cp_find_first_component,
6694 cp_entire_prefix_len, processing_has_namespace_info,
6695 processing_current_namespace, cp_is_anonymous,
6696 cp_add_using_directive, cp_initialize_namespace,
6697 cp_finalize_namespace, cp_set_block_scope,
6698 cp_scan_for_anonymous_namespaces.
6699 * cp-namespace.c: New file.
6700 * cp-support.c: Update copyright.
6701 Include ctype.h, gdb_assert.h, gdbcmd.h.
6702 New variable maint_cplus_cmd_list.
6703 (cp_find_first_component): New function.
6704 (cp_entire_prefix_len, maint_cplus_command)
6705 (first_component_command, _initialize_cp_support): Ditto.
6706 * buildsym.c: Include cp-support.h.
6707 New variable using_list.
6708 (add_symbol_to_list): Check for anonymous namespaces.
6709 (finish_block): Set block's scope.
6710 (start_symtab): Initialize C++ namespace support.
6711 (end_symtab): Finalize C++ namespace support.
6712 * block.h: Add opaque declarations for structs
6713 block_namespace_info, using_direct, and obstack.
6714 Add declarations for block_set_scope and block_set_using.
6715 (struct block): Add 'language_specific' member.
6716 (BLOCK_NAMESPACE): New macro.
6717 * block.c: Include gdb_obstack.h and cp-support.h.
6718 (struct block_namespace_info): New struct.
6719 (block_set_scope): New function.
6720 (block_set_using, block_initialize_namespace): Ditto.
6721
d5a921c9
KB
67222003-04-14 Kevin Buettner <kevinb@redhat.com>
6723
6724 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6725 (locate_base): Return early if there aren't any link map offsets.
6726 (svr4_solib_create_inferior_hook): Warn if shared library support
6727 is unavailable.
6728
d2a52b27
DC
67292003-04-14 David Carlton <carlton@math.stanford.edu>
6730
6731 * symtab.c (symbol_set_names): Add prefix when storing Java names
6732 in hash table. Fix for PR java/1039.
6733
980cae7a
DC
67342003-04-14 David Carlton <carlton@math.stanford.edu>
6735
6736 * symtab.c (symbol_set_names): Rename 'name' arg to
6737 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6738 * symtab.h: Change 'name' argument in declaration of
6739 symbol_set_names to 'linkage_name'.
6740 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6741
e227b13c
AC
67422003-04-14 Andrew Cagney <cagney@redhat.com>
6743
6744 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6745 return the fully sign-extended register value.
6746 (get_frame_pointer): Ditto.
6747 (mips_pop_frame): Initialize "proc_desc" after checking for a
6748 dummy frame.
6749
36712a20
AC
67502003-04-14 Andrew Cagney <cagney@redhat.com>
6751
6752 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6753 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6754 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6755 (mips_push_register): Delete function.
6756 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6757 PUSH_FP_REGNUM.
6758
44ea7b70
JB
67592003-04-14 Jim Blandy <jimb@redhat.com>
6760
6761 * symmisc.c: #include "gdb_regex.h".
6762 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6763 functions.
6764 * maint.c (maintenance_list_command): New function.
6765 (_initialize_maint_cmds): Register the above as commands.
6766 * symtab.h (maintenance_list_symtabs,
6767 maintenance_list_psymtabs): New declarations.
6768 * cli/cli-cmds.c (maintenancelistlist): New variable.
6769 (init_cmd_lists): Initialize it.
6770 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6771 * gdbcmd.h (maintenancelistlist): New declaration.
6772 * Makefile.in (symmisc.o): Update dependencies.
6773
2d0c7962
EZ
67742003-04-14 Elena Zannoni <ezannoni@redhat.com>
6775
6776 * s390-nat.c: Include asm/types.h for addr_t.
6777
1947a811
CV
67782003-04-14 Corinna Vinschen <vinschen@redhat.com>
6779
6780 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6781 actually incoming type.
6782
adb616d7
AC
67832003-04-13 Andrew Cagney <cagney@redhat.com>
6784
6785 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6786 get_next_frame and get_frame_saved_regs.
6787
9b5e151c
AC
67882003-04-13 Andrew Cagney <cagney@redhat.com>
6789
6790 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6791 of gdbarch_num_regs.
6792
ef6e7e13
AC
67932003-04-13 Andrew Cagney <cagney@redhat.com>
6794
6795 * frame.h: Mention what replaced what in "struct frame_info".
6796 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6797 deprecated_update_frame_base_hack and
6798 deprecated_update_frame_pc_hack.
6799 * hppa-tdep.c: Ditto.
6800
61fbb938
DJ
68012003-04-13 Daniel Jacobowitz <drow@mvista.com>
6802
6803 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6804 to read_reg and update its comment. Remove regnum member.
6805 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6806 Don't call read_reg when setting in_reg. Call read_reg to get
6807 the frame base if it's in a register. Return the register number
6808 on the stack instead of in the context. Remove extra arguments
6809 to read_reg.
6810 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6811 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6812 the register number on the expression stack.
6813 (needs_frame_read_reg): Remove extra arguments.
6814
0d53c4c4
DJ
68152003-04-13 Daniel Jacobowitz <drow@mvista.com>
6816
6817 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6818 made non-static.
6819 (execute_stack_op): All callers updated.
6820 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6821 * dwarf2loc.c (find_location_expression): New function.
6822 (dwarf_expr_frame_base): Call it.
6823 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6824 (dwarf2_tracepoint_var_ref): New function, broken out from
6825 locexpr_tracepoint_var_ref.
6826 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6827 Make static.
6828 (loclist_read_variable, loclist_read_needs_frame): New functions.
6829 (loclist_describe_location, loclist_tracepoint_var_ref): New
6830 functions.
6831 (dwarf2_loclist_funcs): New struct location_funcs.
6832 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6833 (struct dwarf2_locexpr_baton): Add comments.
6834 (dwarf2_loclist_funcs): New extern.
6835 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6836 base_address and base_known.
6837 (dwarf_loc_buffer): New variable.
6838 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6839 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6840 (dwarf2_has_info): Initialize dwarf_loc_offset.
6841 (dwarf2_build_psymtabs): Read in .debug_loc.
6842 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6843 DWARF_LOC_SIZE.
6844 (psymtab_to_symtab_1): Likewise. Move base address calculation
6845 here, from...
6846 (dwarf2_get_pc_bounds): ... here. Use the base address from
6847 cu_header.
6848 (dwarf2_symbol_mark_computed): Handle location lists.
6849
6aca59a3
DJ
68502003-04-13 Daniel Jacobowitz <drow@mvista.com>
6851
6852 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6853 if the linkage name demangled successfully.
6854
aca1fcd0
MK
68552003-04-13 Mark Kettenis <kettenis@gnu.org>
6856
97095916
MK
6857 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6858 disassmbly_flavour): Removed.
6859
aca1fcd0
MK
6860 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6861
562a961f
MK
68622003-04-13 Mark Kettenis <kettenis@gnu.org>
6863
6864 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6865
bd013d54
AC
68662003-04-12 Andrew Cagney <cagney@redhat.com>
6867
6868 * frame.h (struct frame_info): Move definition from here ...
6869 * frame.c (struct frame_info): ... to here.
6870
167ef8b1
AC
68712003-04-12 Andrew Cagney <cagney@redhat.com>
6872
6873 * gdbthread.h (save_infrun_state): Delete parameter
6874 "prev_func_start".
6875 (struct thread_info): Delete field "prev_func_start".
6876 (load_infrun_state): Ditto.
6877 * thread.c (load_infrun_state, save_infrun_state): Update.
6878 * infrun.c (prev_func_start): Delete variable.
6879 (context_switch, init_wait_for_inferior): Update.
6880 (stop_stepping, keep_going): Update.
6881
da3331ec
AC
68822003-04-12 Andrew Cagney <cagney@redhat.com>
6883
6884 * gdbarch.sh: Add missing opaque declarations.
6885 * gdbarch.h: Regnerate.
6886 * symtab.h: Add missing opaque declarations.
6887 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6888 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6889 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6890 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6891 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6892 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6893 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6894 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6895 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6896 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6897 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6898 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6899 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6900
18adea3f
AC
69012003-04-11 Andrew Cagney <cagney@redhat.com>
6902
6903 * frame.c (get_frame_id): Return this frame's "id".
6904 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6905 function start.
6906 (legacy_saved_regs_this_id): Replace function body with
6907 internal-error.
6908 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6909 FRAME_OBSTACK_ZALLOC.
6910 (create_new_frame): Mark the frame ID as valid.
6911
2252e863
AO
69122003-04-11 Alexandre Oliva <aoliva@redhat.com>
6913
6914 * Makefile.in (libbfd_h): Added missing setting.
6915 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6916 according to the selected ABI.
6917
a8245ab8
JJ
69182003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6919
6920 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6921
6913c89a
AC
69222003-04-11 Andrew Cagney <cagney@redhat.com>
6923
6924 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6925 SAVED_PC_AFTER_CALL.
6926 * gdbarch.h, gdbarch.c: Regenerate.
6927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6928 * x86-64-tdep.c (x86_64_init_abi): Update.
6929 * vax-tdep.c (vax_gdbarch_init): Update.
6930 * v850-tdep.c (v850_gdbarch_init): Update.
6931 * sparc-tdep.c (sparc_gdbarch_init): Update.
6932 * sh-tdep.c (sh_gdbarch_init): Update.
6933 * s390-tdep.c (s390_gdbarch_init): Update.
6934 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6935 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6936 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6937 * mips-tdep.c (mips_gdbarch_init): Update.
6938 * mcore-tdep.c (mcore_gdbarch_init): Update.
6939 * m68k-tdep.c (m68k_gdbarch_init): Update.
6940 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6941 * ia64-tdep.c (ia64_gdbarch_init): Update.
6942 (ia64_saved_pc_after_call): Update declaration.
6943 * i386ly-tdep.c (i386lynx_init_abi): Update.
6944 * i386-tdep.c (i386_gdbarch_init): Update.
6945 * hppa-tdep.c (hppa_gdbarch_init): Update.
6946 * h8300-tdep.c (h8300_gdbarch_init): Update.
6947 * frv-tdep.c (frv_gdbarch_init): Update.
6948 * cris-tdep.c (cris_gdbarch_init): Update.
6949 * avr-tdep.c (avr_gdbarch_init): Update.
6950 * arm-tdep.c (arm_gdbarch_init): Update.
6951 * alpha-tdep.c (alpha_gdbarch_init): Update.
6952 * ns32knbsd-nat.c (frame_num_args): Update.
6953 * ns32k-tdep.c (umax_frame_num_args): Update.
6954 * mips-tdep.c (mips_init_frame_pc_first): Update.
6955 * infrun.c (step_over_function): Update.
6956 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6957 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6958 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6959 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6960 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6961 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6962 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6963 * arch-utils.c (init_frame_pc_default): Update.
6964 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6965 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6966 declaration.
8ffd9b1b 6967
38edeab8
AC
69682003-04-11 Andrew Cagney <cagney@redhat.com>
6969
6970 * i387-tdep.c: Update copyright.
6971 (i387_to_double): Delete function.
6972 (double_to_i387): Delete function.
6973
81f8a206
AC
69742003-04-10 Andrew Cagney <cagney@redhat.com>
6975
6976 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6977 frame's function's address. Simplify.
6978 (d10v_frame_unwind_cache): Check that the frame's function is
6979 non-zero.
6980
6e691f7a
JB
69812003-04-10 Jim Blandy <jimb@redhat.com>
6982
6983 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6984 call to set_gdbarch_deprecated_push_arguments.
6985
7f78e237
AC
69862003-04-10 Andrew Cagney <cagney@redhat.com>
6987
6988 * frame.c (fprint_frame_id): New function.
6989 (fprint_frame_type, fprint_frame): New function.
6990 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6991 (create_sentinel_frame, get_frame_id): Ditto.
6992 (frame_id_p, frame_id_eq): Ditto.
6993 (frame_id_inner, create_new_frame): Ditto.
6994 (legacy_get_prev_frame, get_prev_frame): Ditto.
6995 (deprecated_update_frame_pc_hack): Ditto.
6996 (frame_register_unwind): Ditto.
6997 (deprecated_update_frame_base_hack): Ditto.
6998
f870b49b
CV
69992003-04-10 Corinna Vinschen <vinschen@redhat.com>
7000
7001 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7002 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7003 frame_chain function.
7004 * Makefile.in: Add dependencies due to above change.
7005
7c86889b
CV
70062003-04-10 Corinna Vinschen <vinschen@redhat.com>
7007
7008 * blockframe.c (legacy_frame_chain_valid): Move call to
7009 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7010 inside_entry_file.
7011
d0a55772
AC
70122003-04-09 Andrew Cagney <cagney@redhat.com>
7013
7014 * frame.h (struct frame_id): Replace "pc" and "base" with
7015 "stack_addr" and "code_addr". Update comments.
7016 (frame_id_build): Update parameter names and comment.
7017 (struct frame_info): Replace "id_p" and "id" with "this_id".
7018 * dummy-frame.c (dummy_frame_this_id): Update.
7019 * breakpoint.c (print_one_breakpoint): Update.
7020 * frame.c (get_frame_id): Update.
7021 (get_frame_base, frame_id_build): Update.
7022 (create_sentinel_frame, legacy_get_prev_frame): Update.
7023 (deprecated_update_frame_base_hack): Update.
7024 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7025 (frame_id_inner): Ditto.
7026
ac16bf07
AC
70272003-04-09 Andrew Cagney <cagney@redhat.com>
7028
7029 * defs.h (gdb_print_host_address): Make "addr" parameter a
7030 pointer constant.
7031 * utils.c (gdb_print_host_address): Update.
7032
366cfc9e
KB
70332003-04-09 Kevin Buettner <kevinb@redhat.com>
7034
7035 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7036 register number for R0 is 0.
7037
cd983b5c
JB
70382003-04-09 J. Brobecker <brobecker@gnat.com>
7039
7040 * frame.h (struct gdbarch): Add opaque structure definition
7041 to avoid a compilation warning on LynxOS 4.0.
7042
d1340264
AC
70432003-04-09 Andrew Cagney <cagney@redhat.com>
7044
7045 * frame.h (struct frame_info): Delete field "pc". Replace
7046 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7047 structure.
7048 * frame.c (frame_pc_unwind): Update.
7049 (create_sentinel_frame): Do not set "pc".
7050 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7051 (get_frame_pc): Call frame_pc_unwind.
7052 (deprecated_update_frame_pc_hack): Update.
7053 (create_new_frame): Use "pc" not "->pc".
7054
90a6fffb
AC
70552003-04-09 Andrew Cagney <cagney@redhat.com>
7056
7057 * frame.c (get_frame_id): Eliminate code updating "frame".
7058 (legacy_get_prev_frame): Ditto.
7059 (get_frame_base): Return id.base directly.
7060 (deprecated_update_frame_base_hack): Update "id.base".
7061 * frame.h (struct frame_info): Delete field "frame".
7062
2fbce691
AC
70632003-04-09 Andrew Cagney <cagney@redhat.com>
7064
7065 * NEWS: Mention that the "Sequent family" is obsolete.
7066 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7067 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7068 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7069 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7070 * config/i386/tm-ptx4.h: Obsolete file.
7071 * config/i386/tm-ptx.h: Obsolete file.
7072 * symm-tdep.c: Obsolete file.
7073 * config/i386/symmetry.mt: Obsolete file.
7074 * config/i386/tm-symmetry.h: Obsolete file.
7075 * symm-nat.c: Obsolete file.
7076 * config/i386/nm-symmetry.h: Obsolete file.
7077 * config/i386/xm-symmetry.h: Obsolete file.
7078 * config/i386/symmetry.mh: Obsolete file.
7079 * config/i386/nm-ptx4.h: Obsolete file.
7080 * config/i386/ptx4.mh: Obsolete file.
7081 * config/i386/ptx.mt: Obsolete file.
7082 * config/i386/ptx.mh: Obsolete file.
7083 * config/i386/xm-ptx4.h: Obsolete file.
7084 * config/i386/xm-ptx.h: Obsolete file.
7085
78c43945
AC
70862003-04-09 Andrew Cagney <cagney@redhat.com>
7087
7088 Obsolete mips*-*-mach3*.
7089 * NEWS: Mention that mips*-*-mach3* is obsolete.
7090 * m3-nat.c: Obsolete file.
7091 * config/nm-m3.h: Obsolete file.
7092 * config/mips/tm-mipsm3.h: Obsolete file.
7093 * config/mips/mipsm3.mt: Obsolete file.
7094 * config/mips/mipsm3.mh: Obsolete file.
7095 * config/mips/xm-mipsm3.h: Obsolete file.
7096 * mipsm3-nat.c: Obsolete file.
7097 * configure.host: Obsolete mips-dec-mach3*.
7098 * configure.tgt: Obsolete mips*-*-mach3*.
7099
f1908289
AC
71002003-04-09 Andrew Cagney <cagney@redhat.com>
7101
7102 * doublest.h: Update copyright.
7103 (deprecated_store_floating, deprecated_extract_floating): Rename
7104 store_floating and extract_floating. Update comments.
7105 * doublest.c: Update copyright.
7106 (extract_floating_by_length): Replace extract_floating.
7107 (store_floating_by_length): Replace store_floating.
7108 (deprecated_extract_floating): New function.
7109 (deprecated_store_floating): New function.
7110 (extract_typed_floating): Call extract_floating_by_length.
7111 (store_typed_floating): Call store_floating_by_length.
7112 * x86-64-tdep.c (x86_64_store_return_value): Update.
7113 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7114 (sh64_extract_return_value): Update.
7115 (sh_sh4_register_convert_to_virtual): Update.
7116 (sh_sh64_register_convert_to_virtual): Update.
7117 (sh_sh4_register_convert_to_raw): Update.
7118 (sh_sh64_register_convert_to_raw): Update.
7119 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7120 (rs6000_register_convert_to_raw): Update.
7121 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7122 (ia64_register_convert_to_raw): Update.
7123 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7124 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7125 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7126 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7127 (alpha_register_convert_to_raw): Update.
7128
4443bd83
AC
71292003-04-08 Andrew Cagney <cagney@redhat.com>
7130
7131 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7132 * gdbarch.h, gdbarch.c: Re-generate.
7133 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7134 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7135 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7136 conditionally, use frame_pc_unwind as an alternative. Add
7137 comments.
7138 * arch-utils.c (init_frame_pc_default): Only call
7139 SAVED_PC_AFTER_CALL when available.
7140
c0236d92
EZ
71412003-04-08 Elena Zannoni <ezannoni@redhat.com>
7142
fbe586ae 7143 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7144 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7145 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7146 (start_remote): Ditto.
7147 (handle_inferior_event): Ditto.
7148 (save_inferior_status): Ditto.
7149 (restore_inferior_status): Ditto.
7150 * infcmd.c (attach_command): Ditto.
7151 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7152 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7153 * alpha-tdep.c (heuristic_proc_start): Ditto.
7154 * mips-tdep.c (heuristic_proc_start): Ditto.
7155 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7156 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7157 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7158 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7159 * remote-vx.c (vx_create_inferior): Ditto.
7160
71612003-04-08 Elena Zannoni <ezannoni@redhat.com>
7162
7163 * infrun.c (stop_soon_quietly): Make it an enum, to better
7164 override the default behavior of handle_inferior_event.
7165 (clear_proceed_status): Update uses of stop_soon_quietly to
7166 reflect that it is now an enum.
7167 (start_remote): Ditto.
7168 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7169 is set to handle the new GNU/Linux kernel behavior for
7170 attach/sigstop. Update uses of stop_soon_quietly.
7171 * inferior.h (enum stop_kind): New enum.
7172 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7173 Reset normal handle_inferior_event behavior, afterwards.
7174 * fork-child.c (startup_inferior): Update.
7175 * alpha-tdep.c (heuristic_proc_start): Update.
7176 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7177 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7178 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7179 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7180 * remote-vx.c (vx_create_inferior): Update.
7181 * mips-tdep.c (heuristic_proc_start): Update.
7182
1211bce3
EZ
71832003-04-07 Elena Zannoni <ezannoni@redhat.com>
7184
7185 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7186 be freed more than once, causing wild memory corruptions.
1211bce3 7187 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7188 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7189 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7190 with the "core" target.
1211bce3 7191
f0ef6b29
KB
71922003-04-07 Kevin Buettner <kevinb@redhat.com>
7193
7194 * mips-tdep.c (mips_print_fp_register): New function, created from
7195 do_fp_register_row(). Registers are now (also) printed as hex.
7196 Only one register is printed per row.
7197 (mips_print_register, do_fp_register_row): Print floating point
7198 registers with mips_print_fp_register().
7199
8cf71652
AC
72002003-04-06 Andrew Cagney <cagney@redhat.com>
7201
5e488a7b
AC
7202 * valprint.h (inspect_it): Add extern declaration.
7203 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7204 (selectors_info, classes_info): Ditto.
7205 (find_objc_msgcall): Fix indentation.
7206 (objc_printstr): Delete extern declarations.
7207
8cf71652
AC
7208 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7209
e6ba3bc9
AC
72102003-04-06 Andrew Cagney <cagney@redhat.com>
7211
7212 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7213 Update comment.
7214 * frame.c (legacy_saved_regs_this_id): Update.
7215 (legacy_get_prev_frame): Update.
7216 * xstormy16-tdep.c: Update comment.
7217 * sparc-tdep.c (sparc_frame_chain): Update comment.
7218 * blockframe.c (legacy_frame_chain_valid): Update.
7219
55e1d7e7
AC
72202003-04-06 Andrew Cagney <cagney@redhat.com>
7221
996179ee
AC
7222 * valprint.c (val_print_type_code_int): Delete #ifdef
7223 PRINT_TYPELESS_INTEGER code.
7224
55e1d7e7
AC
7225 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7226 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7227 multi-arch definition.
7228 * gdbarch.h: Re-generate.
7229
43bd9a9e
AC
72302003-04-05 Andrew Cagney <cagney@redhat.com>
7231
7232 Eliminate FRAME_FIND_SAVED_REGS.
7233 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7234 Change FSR parameter to a pointer.
7235 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7236 Assume FSR parameter is a pointer.
7237 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7238 Make fsr a pointer.
7239 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7240 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7241 saved_regs a pointer.
7242 (hppa_frame_saved_pc): Ditto.
7243 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7244 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7245 pointer.
7246 (restore_pc_queue): Make fsr a pointer.
7247 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7248 (hppa_frame_chain): Make saved_regs a pointer, call
7249 hppa_frame_init_saved_regs.
7250 * sparc-tdep.c: Include "gdb_assert.h".
7251 (sparc_frame_find_saved_regs): Replace internal_error with
7252 gdb_assert.
7253 * remote-vxsparc.c (vx_read_register): Delete reference to
7254 FRAME_FIND_SAVED_REGS.
7255 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7256 * gdbarch.h: Regenerate.
7257 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7258 (deprecated_get_frame_saved_regs): Delete declaration.
7259 (struct frame_saved_regs): Delete definition.
7260 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7261 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7262 (hppa_frame_find_saved_regs): Delete declaration.
7263 (FRAME_FIND_SAVED_REGS): Delete macro.
7264 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7265 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7266 FRAME_FIND_SAVED_REGS in comment.
7267
be41e9f4
AC
72682003-04-05 Andrew Cagney <cagney@redhat.com>
7269
7270 * frame.c (frame_func_unwind, get_frame_func): New functions.
7271 * frame.h (get_frame_func, frame_func_unwind): Declare.
7272 (struct frame_info): Add field "prev_func" for caching the
7273 previous frame's function address.
7274 * arm-tdep.c (arm_frameless_function_invocation): Combine
7275 get_pc_function_start and get_frame_pc into get_frame_func.
7276 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7277 (sh64_nofp_frame_init_saved_regs): Ditto.
7278 * s390-tdep.c (s390_function_start): Ditto.
7279 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7280 (rs6000_frameless_function_invocation): Ditto.
7281 (rs6000_frame_saved_pc): Ditto.
7282 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7283 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7284 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7285 (i386_frame_init_saved_regs): Ditto.
7286 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7287 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7288 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7289 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7290 * blockframe.c (frameless_look_for_prologue): Ditto.
7291
a01dd7cc
AC
72922003-04-05 Andrew Cagney <cagney@redhat.com>
7293
7294 * frame.c (legacy_get_prev_frame): Link prev to next at the
7295 function start. Update comments.
7296
5e5592e6
AC
72972003-04-05 Andrew Cagney <cagney@redhat.com>
7298
7299 * frame.c (get_frame_id): Update comment.
7300 (legacy_get_prev_frame): Update comment.
7301 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7302 * gdbarch.h: Regenerate.
7303 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7304 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7305
6fba5002
AC
73062003-04-05 Andrew Cagney <cagney@redhat.com>
7307
7308 * stack.c (print_frame_info): Use get_frame_pc.
7309
7df05f2b
AC
73102003-04-04 Andrew Cagney <cagney@redhat.com>
7311
7312 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7313 the frame's type from the unwinder.
7314 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7315 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7316 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7317 (get_frame_base_address): Use get_frame_type.
7318 (get_frame_locals_address, get_frame_args_address): Ditto.
7319 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7320 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7321 (struct frame_info): Add comment explaining why the frame contains
7322 a "type" field.
7323 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7324 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7325 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7326 NORMAL_FRAME.
7327 * frame-unwind.h: Include "frame.h".
7328 (struct frame_unwind): Add "type" field.
7329 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7330
11889732
AC
73312003-04-04 Andrew Cagney <cagney@redhat.com>
7332
7333 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7334 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7335 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7336 get_frame_base.
7337 (d10v_unwind_dummy_id): Use frame_id_build.
7338 * frame.c (find_frame_sal): Use get_frame_pc.
7339 (create_new_frame): Use deprecated_update_frame_pc_hack and
7340 deprecated_update_frame_base_hack.
7341 (create_sentinel_frame): Add comment about ->pc going away.
7342 (get_prev_frame): Add comment about ->pc going away.
7343 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7344 frame_id_build, deprecated_update_frame_pc_hack and
7345 deprecated_update_frame_base_hack.
7346 (select_frame): Use get_frame_pc.
7347 (legacy_saved_regs_this_id): Use frame_id_build.
7348
50c46a0d
EZ
73492003-04-04 Elena Zannoni <ezannoni@redhat.com>
7350
fbe586ae
RH
7351 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7352 signed integer case.
7353 (classify_argument): Handle enumerations and references.
50c46a0d 7354
50bbdbd9
AC
73552003-04-04 Andrew Cagney <cagney@redhat.com>
7356
7357 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7358 ID to NULL.
7359
36018d2e
AF
73602003-04-01 Adam Fedor <fedor@gnu.org>
7361
7362 * gdb/objc-lang.c (selectors_info): Replace calls to
7363 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7364 SYMBOL_NATURAL_NAME.
7365 (classes_info, find_methods): Likewise.
7366
35cec841
KB
73672003-04-03 Kevin Buettner <kevinb@redhat.com>
7368
7369 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7370 ``mach'' to the value determined by bfd_default_set_arch_mach().
7371
43136899
BR
73722003-04-02 Bob Rossi <bob_rossi@cox.net>
7373
7374 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7375 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7376 (mi-cmd-file.o): Update dependencies.
7377
040b99fd
KB
73782003-04-01 Kevin Buettner <kevinb@redhat.com>
7379
7380 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7381 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7382
9a3d7dfd
AF
73832003-04-01 Adam Fedor <fedor@gnu.org>
7384
7385 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7386 * language.h (struct language_defn): Add la_demangle.
7387 (language_demangle): Declare.
7388 * language.c (language_demangle): New function.
7389 (unk_lang_demangle): Likewise.
7390 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7391 Add ukn_lang_demangle.
9a3d7dfd 7392 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7393 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7394 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7395 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7396 * jv-lang.c (java_demangle): New function
7397 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7398 * objc-lang.c (objc_demangle): Add options argument
7399 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7400 * maint.c (maintenance_demangle): Replace switch with
7401 call to language_demangle.
7402 * utils.c (fprintf_symbol_filtered): Likewise.
7403
5e074003
AC
74042003-04-01 Andrew Cagney <cagney@redhat.com>
7405
7406 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7407 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7408 PRINT_TYPELESS_INTEGER.
7409 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7410 PUSH_RETURN_ADDRESS.
7411
270cb5d6
AC
74122003-04-01 Andrew Cagney <cagney@redhat.com>
7413
7414 * Makefile.in (d10v-tdep.o): Update dependencies.
7415 * d10v-tdep.c: Include "frame-base.h".
7416 (d10v_frame_unwind): Make constant.
7417 (d10v_frame_base_address): New function.
7418 (d10v_frame_base): New variable.
7419 (d10v_gdbarch_init): Set frame_base default.
7420 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7421 comment for base.
7422 (d10v_frame_unwind_cache): Set and use "prev_sp".
7423 (d10v_frame_this_id): Use the previous frame's inner most stack
7424 address and this frame's func address for the frame ID. Use
7425 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7426
6bfb3e36
AC
74272003-04-01 Andrew Cagney <cagney@redhat.com>
7428
7429 * frame.h (get_frame_locals_address, get_frame_args_address):
7430 Refer to the base address, instead of the address of the first
7431 local or parameter.
8ffd9b1b 7432
da62e633
AC
74332003-04-01 Andrew Cagney <cagney@redhat.com>
7434
7435 Add frame debug info addresses:
7436 * frame-base.c: New file.
7437 * frame-base.h: New file.
7438 * frame.h (struct frame_base): Add opaque declaration.
7439 (get_frame_base): Update comment.
7440 (get_frame_base_address): Declare.
7441 (get_frame_locals_address): Declare.
7442 (get_frame_args_address): Declare.
7443 (struct frame_info): Add "base" and "base_cache". Update
7444 comments on the unwinder.
7445 * frame.c: Include "frame-base.h".
7446 (get_frame_locals_address): New function.
7447 (get_frame_base_address): New function.
7448 (get_frame_args_address): New function.
7449 * findvar.c (read_var_value): Use get_frame_locals_address and
7450 get_frame_args_address.
7451 * stack.c (frame_info): Use get_frame_locals_address and
7452 get_frame_args_address.
7453 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7454 moved to "frame-base.c".
7455 * printcmd.c (print_frame_nameless_args): Ditto.
7456 * symtab.h (address_class): Update comments.
7457 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7458 get_frame_base_address.
7459 * dwarf2expr.c (execute_stack_op): Ditto.
7460 * Makefile.in (frame_base_h): Define.
7461 (frame.o): Update dependencies.
7462 (frame-base.o): Add dependencies.
7463 (SFILES): Add frame-base.c.
7464 (COMMON_OBS): Add frame-base.o.
7465
3d30e9c2
AC
74662003-04-01 Andrew Cagney <cagney@redhat.com>
7467
7468 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7469 CALL_DUMMY_LENGTH): Ditto.
7470 * gdbarch.c: Re-generate.
7471 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7472 (CALL_DUMMY_LENGTH): Delete macro.
7473 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7474 * arm-tdep.c (arm_gdbarch_init): Ditto.
7475 * avr-tdep.c (avr_gdbarch_init): Ditto.
7476 * cris-tdep.c (cris_gdbarch_init): Ditto.
7477 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7478 * frv-tdep.c (frv_gdbarch_init): Ditto.
7479 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7480 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7481 * i386-tdep.c (i386_gdbarch_init): Ditto.
7482 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7483 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7484 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7485 * mips-tdep.c (mips_gdbarch_init): Ditto.
7486 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7487 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7488 * s390-tdep.c (s390_gdbarch_init): Ditto.
7489 * sh-tdep.c (sh_gdbarch_init): Ditto.
7490 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7491 * v850-tdep.c (v850_gdbarch_init): Ditto.
7492 * vax-tdep.c (vax_gdbarch_init): Ditto.
7493 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7494
ce0c7262
CV
74952003-04-01 Corinna Vinschen <vinschen@redhat.com>
7496
7497 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7498
73dd234f
AC
74992003-04-01 Andrew Cagney <cagney@redhat.com>
7500
7501 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7502 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7503 * gdbarch.h, gdbarch.c: Re-generate.
7504 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7505 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7506 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7507 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7508 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7509 * infcmd.c (run_stack_dummy): Simplify assuming
7510 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7511 * infrun.c (handle_inferior_event): Ditto.
7512 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7513 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7514 * arm-tdep.c (arm_gdbarch_init): Ditto.
7515 * avr-tdep.c (avr_gdbarch_init): Ditto.
7516 * cris-tdep.c (cris_gdbarch_init): Ditto.
7517 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7518 * frv-tdep.c (frv_gdbarch_init): Ditto.
7519 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7520 * i386-tdep.c (i386_gdbarch_init): Ditto.
7521 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7523 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7524 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7525 * mips-tdep.c (mips_gdbarch_init): Ditto.
7526 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7527 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7528 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7529 * s390-tdep.c (s390_gdbarch_init): Ditto.
7530 * sh-tdep.c (sh_gdbarch_init): Ditto.
7531 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7532 * v850-tdep.c (v850_gdbarch_init): Ditto.
7533 * vax-tdep.c (vax_gdbarch_init): Ditto.
7534 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7535
97606a13
DJ
75362003-04-01 Daniel Jacobowitz <drow@mvista.com>
7537
7538 * symfile.c (symfile_relocate_debug_section): Update call to
7539 bfd_simple_get_relocated_section_contents.
7540
e8ab51f7
AC
75412003-03-31 Andrew Cagney <cagney@redhat.com>
7542
7543 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7544 * gdbarch.h, gdbarch.c: Regenerate.
7545 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7546 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7547 available.
7548 * frame.h (generic_fix_call_dummy): Delete declaration.
7549 * dummy-frame.h: Update comment.
7550 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7552 fix_call_dummy.
7553 * sh-tdep.c (sh_gdbarch_init): Ditto.
7554 * s390-tdep.c (s390_gdbarch_init): Ditto.
7555 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7556 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7557 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7558 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7559 * i386-tdep.c (i386_gdbarch_init): Ditto.
7560 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7561 * frv-tdep.c (frv_gdbarch_init): Ditto.
7562 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7563 * cris-tdep.c (cris_gdbarch_init): Ditto.
7564 * avr-tdep.c (avr_gdbarch_init): Ditto.
7565 * arm-tdep.c (arm_gdbarch_init): Ditto.
7566
018d1b48
JB
75672003-03-31 J. Brobecker <brobecker@gnat.com>
7568
7569 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7570 (INIT_FRAME_AP): Likewise.
7571 (EXTRA_FRAME_INFO): Likewise.
7572
e9a2674e
AC
75732003-03-31 Andrew Cagney <cagney@redhat.com>
7574
7575 * gdbarch.sh: Include "symfile.h".
7576 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7577 * gdbarch.h, gdbarch.c: Re-generate.
7578 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7579 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7580 call_dummy_address, the default is at entry_point_address.
7581 * v850-tdep.c (v850_gdbarch_init): Ditto.
7582 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7583 * sh-tdep.c (sh_gdbarch_init): Ditto.
7584 * s390-tdep.c (s390_gdbarch_init): Ditto.
7585 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7586 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7587 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7588 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7589 * i386-tdep.c (i386_gdbarch_init): Ditto.
7590 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7591 * frv-tdep.c (frv_gdbarch_init): Ditto.
7592 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7593 * cris-tdep.c (cris_gdbarch_init): Ditto.
7594 * arm-tdep.c (arm_gdbarch_init): Ditto.
7595
e8a8712a
AC
75962003-03-31 Andrew Cagney <cagney@redhat.com>
7597
7598 * gdbarch.sh (CALL_DUMMY_P): Delete.
7599 * gdbarch.h, gdbarch.c: Re-generate.
7600 * inferior.h (CALL_DUMMY_P): Delete macro.
7601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7602 * vax-tdep.c (vax_gdbarch_init): Update.
7603 * v850-tdep.c (v850_gdbarch_init): Update.
7604 * sparc-tdep.c (sparc_gdbarch_init): Update.
7605 * sh-tdep.c (sh_gdbarch_init): Update.
7606 * s390-tdep.c (s390_gdbarch_init): Update.
7607 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7608 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7609 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7610 * mips-tdep.c (mips_gdbarch_init): Update.
7611 * mcore-tdep.c (mcore_gdbarch_init): Update.
7612 * m68k-tdep.c (m68k_gdbarch_init): Update.
7613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7614 * ia64-tdep.c (ia64_gdbarch_init): Update.
7615 * i386-tdep.c (i386_gdbarch_init): Update.
7616 * h8300-tdep.c (h8300_gdbarch_init): Update.
7617 * frv-tdep.c (frv_gdbarch_init): Update.
7618 * d10v-tdep.c (d10v_gdbarch_init): Update.
7619 * cris-tdep.c (cris_gdbarch_init): Update.
7620 * breakpoint.c (deprecated_frame_in_dummy): Update.
7621 * avr-tdep.c (avr_gdbarch_init): Update.
7622 * alpha-tdep.c (alpha_gdbarch_init): Update.
7623 * arm-tdep.c (arm_gdbarch_init): Update.
7624 * dummy-frame.c (dummy_frame_this_id): Update comments.
7625 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7626 * frame.c (legacy_get_prev_frame): Ditto.
7627 * valops.c (call_function_by_hand): Delete function.
7628 (hand_function_call): Rename to call_function_by_hand
7629
ed234cf8
AC
76302003-03-30 Andrew Cagney <cagney@redhat.com>
7631
7632 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7633 * value.h (struct value): Update comment.
ed234cf8 7634
06c77151
AC
76352003-03-30 Andrew Cagney <cagney@redhat.com>
7636
6c2b5168
AC
7637 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7638 D10V_FP_REGNUM.
7639 (d10v_gdbarch_init): Do not set fp_regnum.
7640
06c77151
AC
7641 * frame.c (get_frame_base): Force ID initialization.
7642 (get_prev_frame): Move computation of the frame ID from here ...
7643 (get_frame_id): ... to here.
7644 (legacy_get_prev_frame): Mark the frame ID as valid.
7645 * frame.h (struct frame_info): Add field "id_p".
7646
97a1a11c
MK
76472003-03-30 Mark Kettenis <kettenis@gnu.org>
7648
7649 * i386-tdep.c (i386_store_struct_return): Removed.
7650 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7651
6c0e89ed
AC
76522003-03-30 Andrew Cagney <cagney@redhat.com>
7653
7654 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7655 * gdbarch.h, gdbarch.c: Regenerate.
7656 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7657 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7658 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7659 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7660 * i386-tdep.c (i386_gdbarch_init): Ditto.
7661 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7662 * cris-tdep.c (cris_gdbarch_init): Ditto.
7663 * vax-tdep.c (vax_gdbarch_init): Ditto.
7664 * s390-tdep.c (s390_gdbarch_init): Ditto.
7665 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7666 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7667 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7668 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7669 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7670 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7671 * sparc-tdep.c (sparc_gdbarch_init): Update.
7672 * sh-tdep.c (sh_gdbarch_init): Update.
7673 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7674 * mips-tdep.c (mips_gdbarch_init): Update.
7675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7676 * ia64-tdep.c (ia64_gdbarch_init): Update.
7677 * frv-tdep.c (frv_gdbarch_init): Update.
7678 * avr-tdep.c (avr_gdbarch_init): Update.
7679 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7680 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7681 instead of when push_dummy_call is not available.
8ffd9b1b 7682
f7dd6af2
AC
76832003-03-30 Andrew Cagney <cagney@redhat.com>
7684
7685 * infttrace.c: Include "gdbthread.h".
7686 (parent_attach_all): Fix function signature.
7687 (call_ptrace): Update call.
7688 * Makefile.in (infttrace.o): Update dependencies.
7689
28f617b3
AC
76902003-03-30 Andrew Cagney <cagney@redhat.com>
7691
7692 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7693 PUSH_RETURN_ADDRESS.
7694 * gdbarch.h, gdbarch.c: Regenerate.
7695 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7696 * x86-64-tdep.c (x86_64_init_abi): Update.
7697 * v850-tdep.c (v850_gdbarch_init): Update.
7698 * sparc-tdep.c (sparc_gdbarch_init): Update.
7699 * sh-tdep.c (sh_gdbarch_init): Update.
7700 * s390-tdep.c (s390_gdbarch_init): Update.
7701 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7702 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7703 * mips-tdep.c (mips_gdbarch_init): Update.
7704 * mcore-tdep.c (mcore_gdbarch_init): Update.
7705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7706 * ia64-tdep.c (ia64_gdbarch_init): Update.
7707 * i386-tdep.c (i386_gdbarch_init): Update.
7708 * h8300-tdep.c (h8300_gdbarch_init): Update.
7709 * frv-tdep.c (frv_gdbarch_init): Update.
7710 * cris-tdep.c (cris_gdbarch_init): Update.
7711 * avr-tdep.c (avr_gdbarch_init): Update.
7712 * arm-tdep.c (arm_gdbarch_init): Update.
7713 * valops.c (hand_function_call): Update.
7714
4d628cd7
AC
77152003-03-29 Andrew Cagney <cagney@redhat.com>
7716
7717 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7718 sizeof_call_dummy_words.
7719 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7720 define.
7721 * gdbarch.h: Regenerate.
8ffd9b1b 7722
65e82032
AC
77232003-03-29 Andrew Cagney <cagney@redhat.com>
7724
7725 * infttrace.h: New file.
7726 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7727 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7728 (hpread_read_doc_function_type): Detect an initialized type1.
7729 (hpread_quick_traverse): Initialize mod_name_string.
7730 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7731 (som_solib_get_solib_by_pc): Declare.
7732 (so_lib_thread_start_addr): Declare.
7733 (no_shared_libraries): Declare.
7734 * somread.c (init_import_symbols): Make static. Add forward
7735 declaration.
7736 * config/pa/nm-hppah.h: Include "infttrace.h" for
7737 parent_attach_all.
7738 (hppa_insert_hw_watchpoint): Declare.
7739 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7740 * hppah-nat.c: Include "gdb_string.h".
7741 (parent_attach_all): Delete extern declaration, moved to
7742 "infttrace.h".
7743 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7744 int.
7745 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7746 * Makefile.in (infttrace_h): Define.
7747 (hpread.o): Update dependencies.
7748 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7749 * hppa-hpux-tdep.c: Include "gdb_string.h".
7750 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7751 * infrun.c (handle_inferior_event): Always initialize
7752 stepped_after_stopped_by_watchpoint. Add default and remove
7753 fallthrough in switch statement.
7754 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7755 parameter to int.
7756 (hppa_remove_hw_watchpoint): Ditto.
7757
2c3bbe77
AC
77582003-03-29 Andrew Cagney <cagney@redhat.com>
7759
7760 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7761 offset.
7762
2dd604e7
RE
77632003-03-29 Richard Earnshaw <rearnsha@arm.com>
7764
7765 * arm-tdep.c (arm_push_arguments): Delete.
7766 (struct stack_item): New type.
7767 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7768 (arm_store_struct_return): Delte.
7769 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7770 arm_push_arguments or arm_store_struct_return.
7771
e8933a55
AC
77722003-03-28 Andrew Cagney <cagney@redhat.com>
7773
7774 * Makefile.in (d10v-tdep.o): Update dependencies.
7775 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7776 * d10v-tdep.c: Include "remote.h".
7777 (target_resume_hook): Delete extern declaration.
7778 (target_wait_loop_hook): Ditto.
7779 (tdisassemble_command): Eliminate assignment in "if" conditional.
7780 (d10v_ts2_register_sim_regno): Eliminate call to
7781 legacy_register_sim_regno.
7782 (d10v_ts3_register_sim_regno): Ditto.
7783
6949171e
JJ
77842003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7785
7786 * thread.c: Reindented.
7787 * lin-lwp.c: Ditto.
7788 * linux-proc.c: Ditto.
7789
98c7071f
BR
77902003-03-28 Bob Rossi <bob_rossi@cox.net>
7791
fbe586ae 7792 * MAINTAINERS (write after approval): Add myself.
98c7071f 7793
5edc9ca6
TR
77942003-03-27 Theodore A. Roth <troth@openavr.org>
7795
7796 * objc-exp.y: Add missing semi-colons.
7797
378bfd1b
AC
77982003-03-27 Andrew Cagney <cagney@redhat.com>
7799
7800 * regcache.c (write_sp): Delete function and references.
7801 * inferior.h (write_sp): Delete declaration.
7802 * valops.c (hand_function_call): Replace write_sp with
7803 TARGET_WRITE_SP.
7804 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7805 (sparc_pop_frame): Ditto.
8ffd9b1b 7806
56056df7
AC
78072003-03-27 Andrew Cagney <cagney@redhat.com>
7808
7809 * NEWS: Mention removal of support for hppa*-*-bsd* and
7810 hppa*-*-osf* natives, and hppa*-*-pro* target.
7811 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7812 * config/pa/xm-pa.h: Obsolete file.
7813 * config/pa/xm-hppab.h: Obsolete file.
7814 * config/pa/nm-hppab.h: Obsolete file.
7815 * config/pa/tm-hppab.h: Obsolete file.
7816 * config/pa/tm-hppao.h: Obsolete file.
7817 * config/pa/nm-hppao.h: Obsolete file.
7818 * config/pa/tm-pro.h: Obsolete file.
7819 * config/pa/hppaosf.mt: Obsolete file.
7820 * config/pa/hppaosf.mh: Obsolete file.
7821 * config/pa/hppapro.mt: Obsolete file.
7822 * config/pa/hppabsd.mt: Obsolete file.
7823 * config/pa/hppabsd.mh: Obsolete file.
7824 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7825 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7826 hppa*-*-osf*.
7827
5873a88d
AC
78282003-03-27 Andrew Cagney <cagney@redhat.com>
7829
7830 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7831 push_arguments. Don't set push_return_address or write_sp.
7832 (d10v_push_dummy_call): Replace d10v_push_arguments.
7833 (d10v_push_return_address, d10v_write_sp): Delete function,
7834 handled by push_dummy_call.
7835
b81774d8
AC
78362003-03-26 Andrew Cagney <cagney@redhat.com>
7837
7838 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7839 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7840 regcache and dummy_addr parameters.
7841 * gdbarch.h, gdbarch.c: Re-generate.
7842 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7843 available; assume it will handle stack alignment and return
7844 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7845 legacy_push_arguments.
7846 (legacy_push_arguments): Rename default_push_arguments.
7847 * value.h (legacy_push_arguments): Rename default_push_arguments.
7848 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7849 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7850 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7851 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7852 * config/i386/tm-symmetry.h: Update.
7853 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7854 * x86-64-tdep.c (x86_64_init_abi): Update.
7855 * v850-tdep.c (v850_gdbarch_init): Update.
7856 * sparc-tdep.c (sparc_gdbarch_init): Update.
7857 * sh-tdep.c (sh_gdbarch_init): Update.
7858 * s390-tdep.c (s390_gdbarch_init): Update.
7859 * rs6000-tdep.c (rs6000_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 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7864 * ia64-tdep.c (ia64_gdbarch_init): Update.
7865 * i386-tdep.c (i386_gdbarch_init): Update.
7866 * hppa-tdep.c (hppa_gdbarch_init): Update.
7867 * h8300-tdep.c (h8300_gdbarch_init): Update.
7868 * frv-tdep.c (frv_gdbarch_init): Update.
7869 * d10v-tdep.c (d10v_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 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7874 * alpha-tdep.c (alpha_gdbarch_init): Update.
7875
f541410f
DJ
78762003-03-26 Daniel Jacobowitz <drow@mvista.com>
7877
7878 * signals/signals.c (do_target_signal_to_host): Correct realtime
7879 signal range test.
7880
69f567ae
DJ
78812003-03-26 Daniel Jacobowitz <drow@mvista.com>
7882
7883 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7884 (struct sal_chain, map_catch_names): Remove.
7885 (catch_exception_command_1): Don't call
7886 handle_gnu_4_16_catch_command.
7887
d5d14a5a
DJ
78882003-03-26 Daniel Jacobowitz <drow@mvista.com>
7889
7890 From Mark Dettinger <dettinge@de.ibm.com>:
7891 * dwarf2cfi.c (read_2u): Increment pointer by two.
7892
bdd73e22
DJ
78932003-03-26 Daniel Jacobowitz <drow@mvista.com>
7894
7895 * signals/signals.c: Fix typos in last change.
7896
960cb555
DJ
78972003-03-26 Daniel Jacobowitz <drow@mvista.com>
7898
7899 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7900 not already defined. Use __SIGRTMIN if available.
7901 (target_signal_from_host): Remove SIGRTMIN block.
7902 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7903 the signal is within the realtime range.
7904
f636b87d
AF
79052003-03-25 Adam Fedor <fedor@gnu.org>
7906
7907 * Makefile.in (infrun.o): Add $(language_h)
7908 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7909 for language specific trampolines.
7910 * language.h (struct language_defn): Add skip_trampoline.
7911 (skip_language_trampoline): Declare.
7912 * language.c (unk_lang_trampoline, skip_language_trampoline):
7913 New functions.
7914 (unknown_language_defn, auto_language_defn, local_language_defn):
7915 Add ukn_lang_trampoline.
7916 * ada-lang.c (ada_language_defn): Add NULL for language
7917 specific skip_trampoline.
7918 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7919 scm-lang.c: Likewise.
7920 * objc-lang.c (objc_skip_trampoline): New function.
7921 (objc_language_defn): Add objc_skip_trampoline.
7922
28f617b3 79232003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7924
7925 * frame.c (get_prev_frame): Delay validating a frame's ID -
7926 non-NULL, didn't go backwards - until an attempt to unwind it to
7927 the previous frame.
7928
f933a9c5
AC
79292003-03-25 Andrew Cagney <cagney@redhat.com>
7930
7931 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7932 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7933 * gdbarch.h, gdbarch.c: Re-generate.
7934 * config/sparc/tm-sparc.h
7935 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7936 * sparc-tdep.c (sparc_gdbarch_init): Set
7937 deprecated_extra_stack_alignment_needed.
7938 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7939 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7940 extra_stack_alignment_needed.
7941 * v850-tdep.c (v850_gdbarch_init): Ditto.
7942 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7943 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7944 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7945 * cris-tdep.c (cris_gdbarch_init): Ditto.
7946 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7948
4183d812
AC
79492003-03-25 Andrew Cagney <cagney@redhat.com>
7950
7951 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7952 STORE_STRUCT_RETURN.
7953 * gdbarch.h, gdbarch.c: Regenerate.
7954 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7955 (d10v_push_arguments): Set the struct return register.
7956 (d10v_gdbarch_init): Update.
7957 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7958 * x86-64-tdep.c (x86_64_init_abi): Update.
7959 * vax-tdep.c (vax_gdbarch_init): Update.
7960 * v850-tdep.c (v850_gdbarch_init): Update.
7961 * sparc-tdep.c (sparc_gdbarch_init): Update.
7962 * sh-tdep.c (sh_gdbarch_init): Update.
7963 * s390-tdep.c (s390_gdbarch_init): Update.
7964 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7965 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7966 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7967 * mips-tdep.c (mips_gdbarch_init): Update.
7968 * mcore-tdep.c (mcore_gdbarch_init): Update.
7969 * m68k-tdep.c (m68k_gdbarch_init): Update.
7970 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7971 * ia64-tdep.c (ia64_gdbarch_init): Update.
7972 * i386-tdep.c (i386_gdbarch_init): Update.
7973 * hppa-tdep.c (hppa_gdbarch_init): Update.
7974 * h8300-tdep.c (h8300_gdbarch_init): Update.
7975 * frv-tdep.c (frv_gdbarch_init): Update.
7976 * cris-tdep.c (cris_gdbarch_init): Update.
7977 * avr-tdep.c (avr_gdbarch_init): Update.
7978 * arm-tdep.c (arm_gdbarch_init): Update.
7979 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7980
1bf6d5cc
AC
79812003-03-25 Andrew Cagney <cagney@redhat.com>
7982
7983 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7984 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7985 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7986 * gdbarch.h, gdbarch.c: Regenerate.
7987 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7988 call_dummy_stack_adjust_p.
7989 * vax-tdep.c (vax_gdbarch_init): Ditto.
7990 * v850-tdep.c (v850_gdbarch_init): Ditto.
7991 * sh-tdep.c (sh_gdbarch_init): Ditto.
7992 * s390-tdep.c (s390_gdbarch_init): Ditto.
7993 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7994 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7995 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7996 * mips-tdep.c (mips_gdbarch_init): Ditto.
7997 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7998 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7999 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8000 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8001 * i386-tdep.c (i386_gdbarch_init): Ditto.
8002 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8003 * frv-tdep.c (frv_gdbarch_init): Ditto.
8004 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8005 * cris-tdep.c (cris_gdbarch_init): Ditto.
8006 * avr-tdep.c (avr_gdbarch_init): Ditto.
8007 * arm-tdep.c (arm_gdbarch_init): Ditto.
8008 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8009 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8010 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8011 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8012 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8013 call_dummy_stack_adjust_p.
8014 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8015 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8016 * sparc-tdep.c (sparc32_push_arguments): Update.
8017 * valops.c (hand_function_call): Update.
8018
71c08af0
CV
80192003-03-25 Corinna Vinschen <vinschen@redhat.com>
8020
8021 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8022 set_gdbarch_char_signed.
8023
30757f90
RE
80242003-03-25 Richard Earnshaw <rearnsha@arm.com>
8025
8026 PR cli/548
8027 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8028
03d48a7d
RE
80292003-03-25 Richard Earnshaw <rearnsha@arm.com>
8030
8031 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8032 (_initialize_arm_tdep): Don't set tm_print_insn.
8033
2cf6873c
AF
80342003-03-24 Adam Fedor <fedor@gnu.org>
8035
8036 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8037 * objc-lang.h: Add multiple inclusion protection.
8038 (start_msglist, add_msglist, end_msglist): Additional declarations.
8039
17c0759e
RE
80402003-03-24 Richard Earnshaw <rearnsha@arm.com>
8041
8042 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8043 value was renamed to ARM_FLOAT_SOFT_FPA.
8044
618ce49f
AC
80452003-03-23 Andrew Cagney <cagney@redhat.com>
8046
8047 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8048 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8049 * gdbarch.h, gdbarch.c: Regenerate.
8050 * valops.c (hand_function_call): Update.
8051 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8052 * frame.c (legacy_saved_regs_this_id): Update.
8053 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8054 * dummy-frame.h: Update.
8055 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8056 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8057 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8058 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8059 * config/m68k/tm-sun3.h: Update.
8060 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8061 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8062 * x86-64-tdep.c (x86_64_init_abi): Update.
8063 * vax-tdep.c (vax_gdbarch_init): Update.
8064 * v850-tdep.c (v850_gdbarch_init): Update.
8065 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8066 * sh-tdep.c (sh_gdbarch_init): Update.
8067 * s390-tdep.c (s390_gdbarch_init): Update.
8068 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8069 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8070 (frame_get_saved_regs): Update.
8071 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8072 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8073 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8074 * mips-tdep.c (mips_gdbarch_init): Update.
8075 * mcore-tdep.c (mcore_gdbarch_init): Update.
8076 * m68k-tdep.c (m68k_gdbarch_init): Update.
8077 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8078 * ia64-tdep.c (ia64_gdbarch_init): Update.
8079 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8080 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8081 (i386_interix_back_one_frame): Update.
8082 * hppa-tdep.c (hppa_gdbarch_init): Update.
8083 (hppa_init_extra_frame_info): Update.
8084 * h8300-tdep.c (h8300_gdbarch_init): Update.
8085 * frv-tdep.c (frv_gdbarch_init): Update.
8086 * cris-tdep.c (cris_gdbarch_init): Update.
8087 * avr-tdep.c (avr_gdbarch_init): Update.
8088 * arm-tdep.c (arm_gdbarch_init): Update.
8089 * alpha-tdep.c (alpha_gdbarch_init): Update.
8090
fd50bc42
RE
80912003-03-22 Richard Earnshaw <rearnsha@arm.com>
8092
8093 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8094 (arm_get_fp_model): Declare.
8095 * arm-tdep.c (fp_model_strings): New string array.
8096 (arm_fp_model, current_fp_model): New variables.
8097 (arm_get_fp_model): New function.
8098 (arm_set_fp): New function.
8099 (set_fp_model_sfunc): New function.
8100 (show_fp_model): New function.
8101 (_initialize_arm_tdep): Add new command to set/show the FPU.
8102 (arm_extract_return_value): Use arm_get_fp_model.
8103 (arm_store_return_value): Likewise.
8104 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8105 to initialize the floating-point data types.
8106 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8107 model is FPA.
8108
26304000
RE
81092003-03-22 Richard Earnshaw <rearnsha@arm.com>
8110
8111 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8112 the current setting of each value.
8113 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8114 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8115 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8116 commands and add new version as subcommands of "set/show arm".
8117
afd7eef0
RE
81182003-03-22 Richard Earnshaw <rearnsha@arm.com>
8119
8120 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8121 (set_arm_command, show_arm_command): New functions.
8122 (_initialize_arm_tdep): Add them.
8123 (num_disassembly_options): Renamed from num_flavor_options.
8124 (valid_disassembly_styles): Renamed from valid_flavors.
8125 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8126 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8127 set_disassembly_flavor_sfunc.
8128 (set_disassembly_style): Renamed from set_disassembly_flavor.
8129 (arm_othernames): Updated.
8130 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8131 command. Add "set/show arm disassembly" commands. Deprecate
8132 "othernames" command.
8133
299a7944
RE
81342003-03-22 Richard Earnshaw <rearnsha@arm.com>
8135
8136 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8137 (arm-tdep.o): Depend on elf_arm_h.
8138
c1dac9e6
RE
81392003-03-22 Richard Earnshaw <rearnsha@arm.com>
8140
8141 * Makefile.in (coff_internal_h): Define.
8142 (arm-tdep.o): Update dependencies.
8143
2702d96c
RE
81442003-03-22 Richard Earnshaw <rearnsha@arm.com>
8145
8146 * arm-tdep.c (prologue_cache): Delete.
8147 (check_prologue_cache, save_prologue_cache): Delete.
8148 (arm_scan_prologue): Don't check or update the prologue_cache.
8149 (arm_gdb_arch_init): Don't initialize it.
8150 (_initialize_arm_tdep): Likewise.
8151
27d5d74b
SC
81522003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8153
8154 * MAINTAINERS (tui): Maintainer of tui code.
8155
1762d96d
CV
81562003-03-21 Corinna Vinschen <vinschen@redhat.com>
8157
8158 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8159 (i386-cygwin-tdep.o): Add dependencies.
8160 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8161 * i386-cygwin-tdep.c: New file.
8162 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8163 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8164
4c2e2391
AC
81652003-03-20 Andrew Cagney <cagney@redhat.com>
8166
f20d38b7
AC
8167 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8168 (handle_inferior_event): Remove code calling
8169 DYNAMIC_TRAMPOLINE_NEXTPC.
8170
0022b738
AC
8171 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8172 already has a full path.
8173
864dbc90
AC
8174 * main.c (gdb_main): Return 1.
8175 (captured_main): Call error to report an invalid interpreter.
8176
4c2e2391
AC
8177 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8178 * alpha-osf1-tdep.c: Include "gdb_string.h".
8179
5ef7553b
JB
81802003-03-19 J. Brobecker <brobecker@gnat.com>
8181
8182 Continuing work to convert the hppa targets to multiarch partial.
8183
8184 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8185 method, now that hppa_push_dummy_frame has a conformant prototype.
8186 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8187 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8188 for the switch to multiarch partial.
8189
7bde8967
KB
81902003-03-19 Kevin Buettner <kevinb@redhat.com>
8191
8192 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8193 when iss is issNull.
8194
b006a9e9
KB
81952003-03-18 Kevin Buettner <kevinb@redhat.com>
8196
8197 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8198 NUM_REGS bounds check.
8199
5e2e9765
KB
82002003-03-18 Kevin Buettner <kevinb@redhat.com>
8201
8202 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8203 * mips-tdep.c (gdb_assert.h): Include.
8204 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8205 (mips_register_name): Handle integer registers explicitly. Add
8206 bounds checking.
8207 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8208 (mips_lsi33k_reg_names): Don't list integer registers; they're
8209 handled by mips_register_name() now.
8210 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8211 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8212 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8213 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8214 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8215
a2867626
AC
82162003-03-18 Andrew Cagney <cagney@redhat.com>
8217
8218 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8219 a void pointer.
8220 * gdbtypes.h (print_scalar_formatted): Update declaration.
8221 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8222
06600e06
JB
82232003-03-18 J. Brobecker <brobecker@gnat.com>
8224
8225 * infrun.c (observer.h): Add #include.
8226 (normal_stop): Add call to observer_notify_normal_stop.
8227 * Makefile.in (infrun.o): Add dependency on observer.h.
8228
7daf4f5b
JB
82292003-03-18 J. Brobecker <brobecker@gnat.com>
8230
8231 Continuing work to convert the hppa targets to multiarch partial.
8232 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8233 parameter. Reformat comment.
8234 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8235 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8236 to match new profile.
8237
3371ccc0
JB
82382003-03-18 J. Brobecker <brobecker@gnat.com>
8239
8240 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8241 appear to be working in any case.
8242
4fbe891e
JB
82432003-03-18 J. Brobecker <brobecker@gnat.com>
8244
8245 * observer.c (observer_test_first_observer): New static variable.
8246 (observer_test_second_observer): Likewise.
8247 (observer_test_third_observer): Likewise.
8248 (observer_test_first_notification_function): New static function.
8249 (observer_test_second_notification_function): Likewise.
8250 (observer_test_third_notification_function): Likewise.
8251
a7ff40e7
JB
82522003-03-17 J. Brobecker <brobecker@gnat.com>
8253
8254 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8255 * somsolib.c (gdb_assert.h): Likewise.
8256 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8257 (somsolib.o): Likewise.
8258
26ca4152
AC
82592003-03-17 Andrew Cagney <cagney@redhat.com>
8260
8261 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8262 BFD. Simplify setting of di.endian.
8263
0a613259
AC
82642003-03-17 Andrew Cagney <cagney@redhat.com>
8265
8266 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8267 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8268
8269 From Elena Zannoni <ezannoni@redhat.com>
8270 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8271 vector and floating-point parameters.
8272 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8273 convention.
8274 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8275
1132738f
FN
82762003-03-17 Fernando Nasser <fnasser@redhat.com>
8277
8278 * MAINTAINERS: Remove my name from several maintainership roles.
8279
6dc42492
AC
82802003-03-17 Andrew Cagney <cagney@redhat.com>
8281
8282 Fix frame off-by-one bug.
8283 * frame-unwind.h (frame_this_id_ftype): Replace
8284 frame_unwind_id_ftype.
8285 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8286 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8287 with "prev_register".
8288 * frame-unwind.c (frame_unwind_find_by_pc): Return
8289 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8290 comment.
8291 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8292 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8293 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8294 (dummy_frame_unwind): Update.
8295 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8296 sentinel_frame_register_unwind.
8297 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8298 (sentinel_frame_unwinder): Update.
8299 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8300 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8301 * frame.c (create_sentinel_frame): Update. Initialize
8302 "prologue_cache" instead of "unwind_cache".
8303 (frame_register_unwind): Call this frame's prev_register with the
8304 next frame and this frame's prologue cache.
8305 (get_prev_frame): Simplify. Always call prev frame's this_id with
8306 this frame and prev frame's prologue cache. Document that this
8307 call is shifted one to the left when compared to the
8308 frame_register_unwind call.
8309 (legacy_saved_regs_prev_register): Replace
8310 frame_saved_regs_register_unwind.
8311 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8312 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8313 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8314 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8315 (d10v_frame_unwind): Update.
8316 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8317 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8318 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8319 "saved_regs" with "this_saved_regs".
8320
efd710d6
AC
83212003-03-16 Andrew Cagney <cagney@redhat.com>
8322
8323 * frame.c (frame_pop): Don't call target_store_registers. Fix
8324 problem reported by Mark Kettenis.
8325
4e259f09
MK
83262003-03-16 Mark Kettenis <kettenis@gnu.org>
8327
8328 * i386-tdep.c (i386_register_type): Renamed from
8329 i386_register_virtual_type. Adjust function signature.
8330 (i386_gdbarch_init): Set register_type instead of
8331 deprecated_max_register_raw_size,
8332 deprecated_max_register_virtual_size and register_virtual_type.
8333
055bb976
AC
83342003-03-14 Andrew Cagney <cagney@redhat.com>
8335
8336 * frame.c (get_prev_frame): When a legacy frame, always call
8337 legacy_get_prev_frame. Simplify unwind code using assumption that
8338 the unwinder is new.
8339 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8340 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8341 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8342
ac2adee5
AC
83432003-03-14 Andrew Cagney <cagney@redhat.com>
8344
8345 * frame.c (get_saved_register): Delete function.
8346 * frame.h (get_saved_register): Delete declaration.
8347 * xstormy16-tdep.c: Update comment.
8348 * regcache.h: Update comments.
8349 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8350 get_saved_register and extract_address, use
8351 frame_read_unsigned_register.
8352 (sparc_frame_saved_pc): Ditto.
8353 (sparc_get_saved_register): Instead of get_saved_register, use
8354 frame_register.
8355 (sparc_pop_frame): Ditto.
8356 * findvar.c: Update comments.
8357 (value_of_register): Call frame_register instead of
8358 get_saved_register.
8359 (value_from_register): Ditto.
8360 * config/sparc/tm-sparc.h: Update comment.
8361 * breakpoint.c: Update comment.
8362
129c1cd6
AC
83632003-03-14 Andrew Cagney <cagney@redhat.com>
8364
8365 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8366 GET_SAVED_REGISTER.
8367 * gdbarch.h, gdbarch.c: Re-generate.
8368 * frame.h: Update comments.
8369 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8370 * x86-64-tdep.c (x86_64_init_abi): Update.
8371 * sparc-tdep.c (sparc_gdbarch_init): Update.
8372 * sh-tdep.c (sh_gdbarch_init): Update.
8373 * mips-tdep.c (mips_gdbarch_init): Update.
8374 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8375 * cris-tdep.c (cris_gdbarch_init): Update.
8376 * ia64-tdep.c (ia64_gdbarch_init): Update.
8377 * frame.c (frame_register): Update.
8378 (get_saved_register): Update.
8379 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8380
749b82f6
AC
83812003-03-13 Andrew Cagney <cagney@redhat.com>
8382
8383 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8384 * gdbarch.h, gdbarch.c: Regenerate.
8385 * valops.c (hand_function_call): Update comment.
8386 * stack.c (return_command): Update comment.
8387 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8388 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8389 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8390 * x86-64-tdep.c (x86_64_init_abi): Update.
8391 * vax-tdep.c (vax_gdbarch_init): Update.
8392 * v850-tdep.c (v850_gdbarch_init): Update.
8393 * sparc-tdep.c (sparc_gdbarch_init): Update.
8394 * sh-tdep.c (sh_gdbarch_init): Update.
8395 * s390-tdep.c (s390_gdbarch_init): Update.
8396 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8397 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8398 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8399 * mips-tdep.c (mips_gdbarch_init): Update.
8400 * mcore-tdep.c (mcore_gdbarch_init): Update.
8401 * m68k-tdep.c (m68k_gdbarch_init): Update.
8402 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8403 * ia64-tdep.c (ia64_gdbarch_init): Update.
8404 * i386-tdep.c (i386_gdbarch_init): Update.
8405 * hppa-tdep.c (hppa_gdbarch_init): Update.
8406 * h8300-tdep.c (h8300_gdbarch_init): Update.
8407 * frv-tdep.c (frv_gdbarch_init): Update.
8408 * cris-tdep.c (cris_gdbarch_init): Update.
8409 * avr-tdep.c (avr_gdbarch_init): Update.
8410 * arm-tdep.c (arm_gdbarch_init): Update.
8411 * alpha-tdep.c (alpha_gdbarch_init): Update.
8412
1594fa56
AC
84132003-03-13 Andrew Cagney <cagney@redhat.com>
8414
8415 * frame.c (legacy_frame_p): New function.
8416 (get_prev_frame): Use legacy_frame_p.
8417 * frame.h (legacy_frame_p): Declare.
8418
7717fda3
V
84192003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8420
fbe586ae 8421 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8422 listing corrected.
8423
0c67cbe9
V
84242003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8425
fbe586ae 8426 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8427
03febf99
AC
84282003-03-12 Andrew Cagney <cagney@redhat.com>
8429
8430 * frame.c (get_prev_frame): Rename the frame parameter to
8431 "this_frame".
8432 (get_next_frame, legacy_get_prev_frame): Ditto.
8433
0a1e1ca1
AC
84342003-03-12 Andrew Cagney <cagney@redhat.com>
8435
8436 * frame.c (get_current_frame): Check target_has_registers before
8437 checking target_has_stack.
8438 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8439 instead of deprecated_selected_frame.
8440 * findvar.c (value_of_register): Pass "frame", not
8441 deprecated_selected_frame, to value_of_builtin_reg.
8442
a66a9c23
AC
84432003-03-12 Andrew Cagney <cagney@redhat.com>
8444
8445 * regcache.c (regcache_cooked_write_signed): New function.
8446 (regcache_cooked_write_unsigned): New function.
8447 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8448 (regcache_cooked_read_signed): Fix regnum in range assertion.
8449 * regcache.h (regcache_cooked_write_signed): Declare.
8450 (regcache_cooked_write_unsigned): Declare.
8451
8bedc050
AC
84522003-03-12 Andrew Cagney <cagney@redhat.com>
8453
8454 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8455 * gdbarch.h, gdbarch.c: Re-generate.
8456 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8457 * x86-64-tdep.h: Update.
8458 * x86-64-tdep.c (x86_64_init_abi): Update.
8459 * v850-tdep.c (v850_gdbarch_init): Update.
8460 * sparc-tdep.c (sparc_gdbarch_init): Update.
8461 * sh-tdep.c (sh_gdbarch_init): Update.
8462 * s390-tdep.c (s390_gdbarch_init): Update.
8463 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8464 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8465 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8466 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8467 * mips-tdep.c (mips_gdbarch_init): Update.
8468 * mcore-tdep.c (mcore_gdbarch_init): Update.
8469 * m68k-tdep.c (m68k_gdbarch_init): Update.
8470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8471 * ia64-tdep.c (ia64_gdbarch_init): Update.
8472 * i386-tdep.c (i386_gdbarch_init): Update.
8473 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8474 * hppa-tdep.c (hppa_gdbarch_init): Update.
8475 * h8300-tdep.c (h8300_gdbarch_init): Update.
8476 * frv-tdep.c (frv_gdbarch_init): Update.
8477 * cris-tdep.c (cris_gdbarch_init): Update.
8478 * avr-tdep.c (avr_gdbarch_init): Update.
8479 * arm-tdep.c (arm_gdbarch_init): Update.
8480 * alpha-tdep.c (alpha_gdbarch_init): Update.
8481 * sh-tdep.c (sh_init_extra_frame_info): Update.
8482 (sh64_init_extra_frame_info): Update.
8483 * ns32knbsd-nat.c (frame_num_args): Update.
8484 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8485 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8486 (xstormy16_frame_chain_valid): Update.
8487 * vax-tdep.c (vax_saved_pc_after_call): Update.
8488 * v850-tdep.c (v850_frame_chain): Update.
8489 (v850_pop_frame): Update.
8490 (v850_init_extra_frame_info): Update.
8491 * sparc-tdep.c (setup_arbitrary_frame): Update.
8492 * ns32k-tdep.c (umax_frame_num_args): Update.
8493 * s390-tdep.c (s390_pop_frame_regular): Update.
8494 * mn10300-tdep.c (mn10300_frame_chain): Update.
8495 (mn10300_pop_frame_regular): Update.
8496 (mn10300_init_extra_frame_info): Update.
8497 * mips-tdep.c (mips_init_frame_pc_first): Update.
8498 (mips_frame_chain): Update.
8499 (mips_pop_frame): Update.
8500 * mcore-tdep.c (mcore_frame_chain): Update.
8501 (mcore_pop_frame): Update.
8502 (mcore_init_extra_frame_info): Update.
8503 * arch-utils.c (init_frame_pc_default): Update.
8504 * m68k-tdep.c (isi_frame_num_args): Update.
8505 (delta68_frame_num_args): Update.
8506 (news_frame_num_args): Update.
8507 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8508 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8509 (alpha_frame_chain): Update.
8510 (alpha_pop_frame): Update.
8511 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8512 (hppa_init_extra_frame_info): Update.
8513 (hppa_frame_chain): Update.
8514 (hppa_frame_chain_valid): Update.
8515 * cris-tdep.c (cris_init_extra_frame_info): Update.
8516 * avr-tdep.c (avr_init_extra_frame_info): Update.
8517 * arm-tdep.c (arm_frame_chain_valid): Update.
8518 (arm_init_extra_frame_info): Update.
8519 (arm_pop_frame): Update.
8520 * frame.c (frame_pc_unwind): Update.
8521 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8522 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8523 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8524 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8525 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8526 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8527
7a25a7c1
AC
85282003-03-12 Andrew Cagney <cagney@redhat.com>
8529
8530 Eliminate the need for POP_FRAME.
8531 * frame.c (do_frame_unwind_register): New function.
8532 (frame_pop): When no POP_FRAME, pop the frame using register
8533 unwind and a scratch regcache.
8534 (frame_saved_regs_pop): Delete function.
8535 (trad_frame_unwinder): Update.
8536 * d10v-tdep.c (d10v_frame_pop): Delete function.
8537 (d10v_frame_unwind): Update.
8538 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8539 (sentinel_frame_unwinder): Update.
8540 * dummy-frame.c (dummy_frame_pop): Delete function.
8541 (dummy_frame_unwind): Update.
8542 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8543 (struct frame_unwind): Update.
8544
2f38ef89
KB
85452003-03-11 Kevin Buettner <kevinb@redhat.com>
8546
8547 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8548 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8549 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8550 Do range checks on register number obtained from debugging info.
8551 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8552 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8553 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8554 mapping function.
8555 (do_fp_register_row): Fix typo which caused double type to be
8556 used when attempting to unpack a float.
8557
552f4abf
JB
85582003-03-11 J. Brobecker <brobecker@gnat.com>
8559
8560 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8561
e0d2ae16
AC
85622003-03-11 Andrew Cagney <cagney@redhat.com>
8563
8564 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8565 frame. Problem found by Corinna Vinschen.
8566
ddbfdd06
PM
85672003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8568
8569 * doublest.c (floatformat_from_length): Accept also
8570 the real size of 'long double' type.
8571
088b2ddc 85722003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8573
088b2ddc 8574 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8575 * breakpoint.c (bpstat_copy): Copy the command lines as well
8576 as the old value, to match what is freed in bpstat_clear.
8577
f56f77c1
DC
85782003-03-10 David Carlton <carlton@math.stanford.edu>
8579
8580 * minsyms.c (add_minsym_to_hash_table): Replace
8581 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8582 (compare_minimal_symbols, compact_minimal_symbols)
8583 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8584 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8585 of DEPRECATED_SYMBOL_MATCHES_NAME.
8586 (lookup_minimal_symbol_solib_trampoline): Ditto.
8587
5602984a
AC
85882003-03-10 Andrew Cagney <cagney@redhat.com>
8589
8590 * regcache.h (regcache_cooked_read_ftype): Define.
8591 (regcache_save, regcache_restore): Add a cooked_read parameter.
8592 * regcache.c (regcache_save, regcache_restore): Update.
8593 (do_cooked_read): New function.
8594 (regcache_cpy): Pass do_cooked_read to regcache_save and
8595 regcache_restore.
8596
8bedc050
AC
85972003-03-10 Andrew Cagney <cagney@redhat.com>
8598
8599 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8600 * gdbarch.h, gdbarch.c: Re-generate.
8601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8602 * x86-64-tdep.h: Update.
8603 * x86-64-tdep.c (x86_64_init_abi): Update.
8604 * v850-tdep.c (v850_gdbarch_init): Update.
8605 * sparc-tdep.c (sparc_gdbarch_init): Update.
8606 * sh-tdep.c (sh_gdbarch_init): Update.
8607 * s390-tdep.c (s390_gdbarch_init): Update.
8608 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8609 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8610 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8611 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8612 * mips-tdep.c (mips_gdbarch_init): Update.
8613 * mcore-tdep.c (mcore_gdbarch_init): Update.
8614 * m68k-tdep.c (m68k_gdbarch_init): Update.
8615 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8616 * ia64-tdep.c (ia64_gdbarch_init): Update.
8617 * i386-tdep.c (i386_gdbarch_init): Update.
8618 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8619 * hppa-tdep.c (hppa_gdbarch_init): Update.
8620 * h8300-tdep.c (h8300_gdbarch_init): Update.
8621 * frv-tdep.c (frv_gdbarch_init): Update.
8622 * cris-tdep.c (cris_gdbarch_init): Update.
8623 * avr-tdep.c (avr_gdbarch_init): Update.
8624 * arm-tdep.c (arm_gdbarch_init): Update.
8625 * alpha-tdep.c (alpha_gdbarch_init): Update.
8626 * sh-tdep.c (sh_init_extra_frame_info): Update.
8627 (sh64_init_extra_frame_info): Update.
8628 * ns32knbsd-nat.c (frame_num_args): Update.
8629 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8630 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8631 (xstormy16_frame_chain_valid): Update.
8632 * vax-tdep.c (vax_saved_pc_after_call): Update.
8633 * v850-tdep.c (v850_frame_chain): Update.
8634 (v850_pop_frame): Update.
8635 (v850_init_extra_frame_info): Update.
8636 * sparc-tdep.c (setup_arbitrary_frame): Update.
8637 * ns32k-tdep.c (umax_frame_num_args): Update.
8638 * s390-tdep.c (s390_pop_frame_regular): Update.
8639 * mn10300-tdep.c (mn10300_frame_chain): Update.
8640 (mn10300_pop_frame_regular): Update.
8641 (mn10300_init_extra_frame_info): Update.
8642 * mips-tdep.c (mips_init_frame_pc_first): Update.
8643 (mips_frame_chain): Update.
8644 (mips_pop_frame): Update.
8645 * mcore-tdep.c (mcore_frame_chain): Update.
8646 (mcore_pop_frame): Update.
8647 (mcore_init_extra_frame_info): Update.
8648 * arch-utils.c (init_frame_pc_default): Update.
8649 * m68k-tdep.c (isi_frame_num_args): Update.
8650 (delta68_frame_num_args): Update.
8651 (news_frame_num_args): Update.
8652 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8653 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8654 (alpha_frame_chain): Update.
8655 (alpha_pop_frame): Update.
8656 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8657 (hppa_init_extra_frame_info): Update.
8658 (hppa_frame_chain): Update.
8659 (hppa_frame_chain_valid): Update.
8660 * cris-tdep.c (cris_init_extra_frame_info): Update.
8661 * avr-tdep.c (avr_init_extra_frame_info): Update.
8662 * arm-tdep.c (arm_frame_chain_valid): Update.
8663 (arm_init_extra_frame_info): Update.
8664 (arm_pop_frame): Update.
8665 * frame.c (frame_pc_unwind): Update.
8666 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8667 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8668 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8669 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8670 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8671 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8672
12cc2063
AC
86732003-03-10 Andrew Cagney <cagney@redhat.com>
8674
8675 * gdbarch.sh (gdbarch_unwind_pc): New method.
8676 * gdbarch.h, gdbarch.c: Regenerate.
8677 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8678 but use read_pc and FRAME_SAVED_PC as fall backs.
8679 (frame_saved_regs_pc_unwind): Delete function.
8680 (trad_frame_unwinder): Update.
8681 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8682 (struct frame_unwind): Update.
8683 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8684 (dummy_frame_unwind): Update.
8685 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8686 (sentinel_frame_unwinder): Update.
8687 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8688 (d10v_frame_unwind): Update.
8689 (d10v_unwind_pc): New function.
8690 (d10v_gdbarch_init): Set unwind_pc.
8691
ef840a37
AC
86922003-03-10 Andrew Cagney <cagney@redhat.com>
8693
a2ce2e56
AC
8694 * gdbarch.h: Re-generate.
8695
ef840a37
AC
8696 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8697 PC.
8698 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8699 the PC register.
8700
08f3424b
MK
87012003-03-08 Mark Kettenis <kettenis@gnu.org>
8702
8703 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8704
1248ede2
AC
87052003-03-08 Andrew Cagney <cagney@redhat.com>
8706
8707 * cli-out.c: Update copyright.
8708 (cli_out_data): Define typedef. Use instead of ui_out_data.
8709
f49bacc8
AC
87102003-03-08 Andrew Cagney <cagney@redhat.com>
8711
8712 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8713 the result.
8714
9b05f993
AC
87152003-03-07 Andrew Cagney <cagney@redhat.com>
8716
8717 * gdbarch.sh: Don't generate two macro definitions when an
8718 undefined macro taking no arguments.
8719 * gdbarch.h: Regenerate.
8ffd9b1b 8720
166f4c7b
ML
87212002-03-07 Michal Ludvig <mludvig@suse.cz>
8722
8723 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8724 (x86_64_unwind_dummy_id): New functions.
8725 (x86_64_init_abi): Register these two new functions.
8726
6d686a84
ML
87272003-03-07 Michal Ludvig <mludvig@suse.cz>
8728
8729 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8730 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8731 separate function.
8732 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8733
6314f104
AC
87342003-03-05 Andrew Cagney <cagney@redhat.com>
8735
8736 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8737 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8738 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8739 to use unwind_dummy_id when a dummy frame.
8740 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8741 predicate.
8742 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8743
ceea5145
AC
87442003-03-05 Andrew Cagney <cagney@redhat.com>
8745
8746 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8747 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8748 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8749 values.
8750
0d843116
AC
87512003-03-05 Andrew Cagney <cagney@redhat.com>
8752
8753 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8754 (struct d10v_unwind_cache): Delete field "frameless". Replace
8755 "next_addr" with "sp_offset". Add "r11_offset".
8756 (d10v_frame_unwind_cache): Update.
8757 (prologue_find_regs): Update. When "mv r11, sp", save the
8758 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8759 RN was saved in r11_offset.
8760
b2579786
AC
87612003-03-05 Andrew Cagney <cagney@redhat.com>
8762
8763 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8764 cached PC value in the next frame.
8765
218e5956
AC
87662003-03-05 Andrew Cagney <cagney@redhat.com>
8767
8768 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8769 "id_unwind_cache" with "id".
8770 (frame_id_unwind): Delete declaration.
8771 * frame.c (frame_id_unwind): Delete function.
8772 (get_prev_frame): Call the frame id unwind method directly. Store
8773 the returned next frame's ID value in NEXT_FRAME. Note that there
8774 is a problem with the wrong unwind ID being called with the wrong
8775 unwind cache.
8776
ed363b1b
DJ
87772003-03-05 Daniel Jacobowitz <drow@mvista.com>
8778
8779 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8780
fe1f4a5e
DJ
87812003-03-05 James Ingham <jingham@apple.com>
8782 Daniel Jacobowitz <drow@mvista.com>
8783
8784 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8785 (auto_cp_abi): New variable.
8786 (current_cp_abi, num_cp_abis): Make static.
8787 (CP_ABI_MAX): Define.
8788 (cp_abis): Turn into an array.
8789 (value_virtual_fn_field): Fix formatting.
8790 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8791 takes a pointer.
8792 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8793 (list_cp_abis, _initialize_cp_abi): New functions.
8794 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8795 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8796 switch_to_cp_abi. Update prototype for register_cp_abi.
8797 * Makefile.in (cp-abi.o): Update dependencies.
8798 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8799 instead of switch_to_cp_abi.
8800 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8801 register_cp_abi.
8802 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8803 register_cp_abi.
8804 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8805
e4adbba9
DJ
88062003-03-05 Daniel Jacobowitz <drow@mvista.com>
8807
8808 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8809 * dwarf2loc.c: Include "regcache.h".
8810 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8811 register_size.
8812 * Makefile.in (dwarf2loc.o): Update dependencies.
8813
91ccbfc1
TR
88142003-03-04 Theodore A. Roth <troth@openavr.org>
8815
8816 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8817 number of io registers reported by remote target is not a multiple of
8818 step.
8819
3d4e8fd2
DC
88202003-03-04 David Carlton <carlton@math.stanford.edu>
8821
8822 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8823 (lookup_symbol_aux_psymtabs): Update call to
8824 lookup_partial_symbol.
8825 (lookup_transparent_type, find_main_psymtab)
8826 (make_symbol_overload_list): Ditto.
8827
ed42d87b
KH
88282003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8829
8830 * MAINTAINERS (Write after approval): Update my email address.
8831
a0ed5532
AC
88322003-03-03 Andrew Cagney <cagney@redhat.com>
8833
8834 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8835 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8836 predicate. Replace MAX_REGISTER_RAW_SIZE.
8837 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8838 MAX_REGISTER_VIRTUAL_SIZE.
8839 * regcache.c (legacy_max_register_raw_size): New function.
8840 (legacy_max_register_virtual_size): New function.
8841 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8842 (MAX_REGISTER_RAW_SIZE): Define.
8843 (legacy_max_register_raw_size): Declare.
8844 (legacy_max_register_virtual_size): Declare.
8845 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8846 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8847 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8848 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8849 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8850 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8851 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8852 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8853 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8854 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8855 * vax-tdep.c (vax_gdbarch_init): Update.
8856 * v850-tdep.c (v850_gdbarch_init): Update.
8857 * sparc-tdep.c (sparc_gdbarch_init): Update.
8858 * sh-tdep.c (sh_gdbarch_init): Update.
8859 * s390-tdep.c (s390_gdbarch_init): Update.
8860 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8861 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8862 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8863 * mips-tdep.c (mips_gdbarch_init): Update.
8864 * mcore-tdep.c (mcore_gdbarch_init): Update.
8865 * m68k-tdep.c (m68k_gdbarch_init): Update.
8866 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8867 * ia64-tdep.c (ia64_gdbarch_init): Update.
8868 * i386-tdep.c (i386_gdbarch_init): Update.
8869 * hppa-tdep.c (hppa_gdbarch_init): Update.
8870 * h8300-tdep.c (h8300_gdbarch_init): Update.
8871 * frv-tdep.c (frv_gdbarch_init): Update.
8872 * cris-tdep.c (cris_gdbarch_init): Update.
8873 * avr-tdep.c (avr_gdbarch_init): Update.
8874 * arm-tdep.c (arm_gdbarch_init): Update.
8875 * alpha-tdep.c (alpha_gdbarch_init): Update.
8876 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8877 max_register_raw_size or max_register_virtual_size.
8878
8e437497
DC
88792003-03-03 David Carlton <carlton@math.stanford.edu>
8880
8881 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8882 SYMBOL_MATCHES_NAME, add comment.
8883 (SYMBOL_MATCHES_NATURAL_NAME): New.
8884 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8885 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8886 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8887 * symtab.c (lookup_partial_symbol): Use
8888 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8889 unhelpful comment.
8890 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8891 SYMBOL_MATCHES_NAME.
8892 Fix for PR c++/33.
8893
25120b0d
DC
88942003-03-03 David Carlton <carlton@math.stanford.edu>
8895
8896 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8897 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8898 by regexp matching against SYMBOL_NATURAL_NAME.
8899
78a11fb4
DC
89002003-03-03 David Carlton <carlton@math.stanford.edu>
8901
8902 * linespec.c (find_method): Extract code into collect_methods.
8903 (collect_methods): New.
8904
645dd519
MK
89052003-03-02 Mark Kettenis <kettenis@gnu.org>
8906
b4700d91
MK
8907 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8908 get_frame_base.
8909
645dd519
MK
8910 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8911 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8912
0aa7e1aa
SC
89132003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8914
8ffd9b1b 8915 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8916 and not regnum when summing the size of all registers up to regnum.
8917
f30ee0bc
AC
89182003-03-01 Andrew Cagney <cagney@redhat.com>
8919
8920 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8921 FRAME_INIT_SAVED_REGS.
8922 * gdbarch.h, gdbarch.c: Regenerate.
8923 * stack.c (frame_info): Update.
8924 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8925 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8926 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8927 * ns32k-tdep.c (ns32k_pop_frame): Update.
8928 * mips-tdep.c (mips_pop_frame): Update.
8929 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8930 * ia64-tdep.c (ia64_frame_chain): Update.
8931 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8932 (ia64_frameless_function_invocation): Update.
8933 (ia64_init_extra_frame_info): Update.
8934 (ia64_pop_frame_regular): Update.
8935 * frame.h (struct frame_info): Update comment.
8936 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8937 * frame.c (frame_saved_regs_register_unwind): Update.
8938 (frame_saved_regs_register_unwind): Update.
8939 (deprecated_generic_get_saved_register): Update.
8940 * cris-tdep.c: Update comment.
8941 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8942 Rename macro.
8943 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8944 * x86-64-tdep.c (x86_64_init_abi): Update.
8945 * vax-tdep.c (vax_gdbarch_init): Update.
8946 * v850-tdep.c (v850_gdbarch_init): Update.
8947 * sparc-tdep.c (sparc_gdbarch_init): Update.
8948 * sh-tdep.c (sh_gdbarch_init): Update.
8949 * s390-tdep.c (s390_gdbarch_init): Update.
8950 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8951 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8952 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8953 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8954 * mips-tdep.c (mips_gdbarch_init): Update.
8955 * mcore-tdep.c (mcore_gdbarch_init): Update.
8956 * m68k-tdep.c (m68k_gdbarch_init): Update.
8957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8958 * ia64-tdep.c (ia64_gdbarch_init): Update.
8959 * i386-tdep.c (i386_gdbarch_init): Update.
8960 * frv-tdep.c (frv_gdbarch_init): Update.
8961 * avr-tdep.c (avr_gdbarch_init): Update.
8962 * arm-tdep.c (arm_gdbarch_init): Update.
8963 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8964
42fa7c0f
AC
89652003-03-01 Andrew Cagney <cagney@redhat.com>
8966
8967 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8968 option enum and switch. When no windows, set the interpreter to
8969 INTERP_CONSOLE.
8ffd9b1b 8970
49c7e338
AC
89712003-03-01 Andrew Cagney <cagney@redhat.com>
8972
8973 * main.c (captured_main): Replace magic option characters with an
8974 enum.
8975
e9582e71
AC
89762003-03-01 Andrew Cagney <cagney@redhat.com>
8977
8978 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8979 INIT_EXTRA_FRAME_INFO.
8980 * gdbarch.h, gdbarch.c: Regenerate.
8981 * arm-tdep.c: Update comments.
8982 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8983 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8984 * frame.h, avr-tdep.c: Ditto.
8985 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8986 (create_new_frame, legacy_get_prev_frame): Ditto.
8987 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8988 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8989 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8990 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8991 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8992 * v850-tdep.c (v850_gdbarch_init): Ditto.
8993 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8994 * sh-tdep.c (sh_gdbarch_init): Ditto.
8995 * s390-tdep.c (s390_gdbarch_init): Ditto.
8996 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8997 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8998 * mips-tdep.c (mips_gdbarch_init): Ditto.
8999 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9000 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9001 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9002 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9003 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9004 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9005 * frv-tdep.c (frv_gdbarch_init): Ditto.
9006 * cris-tdep.c (cris_gdbarch_init): Ditto.
9007 * avr-tdep.c (avr_gdbarch_init): Ditto.
9008 * arm-tdep.c (arm_gdbarch_init): Ditto.
9009 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9010 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9011
35cac7cf
AC
90122003-03-01 Andrew Cagney <cagney@redhat.com>
9013
9014 * gdbarch.sh (register_type): New function with predicate.
9015 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9016 * gdbarch.h, gdbarch.c: Re-generate.
9017 * arch-utils.c (generic_register_byte): Use generic_register_size.
9018 (generic_register_size): When available, use
9019 gdbarch_register_type.
9020 * regcache.c (init_regcache_descr): When available, initialize the
9021 register type array using gdbarch_register_type. If the
9022 architecture supplies gdbarch_register_type, do not use the legacy
9023 regcache layout.
9024 * d10v-tdep.c (d10v_register_type): Replace
9025 d10v_register_virtual_type.
9026 (d10v_gdbarch_init): Set register_type instead of
9027 register_virtual_type.
9028
7b83296f
AC
90292003-03-01 Andrew Cagney <cagney@redhat.com>
9030
9031 * Makefile.in (ax-gdb.o): Update dependencies.
9032 * ax-gdb.c: Include "regcache.h".
9033 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9034 * findvar.c (value_of_register): Ditto.
9035 * infcmd.c (default_print_registers_info): Ditto.
9036
eadc1c87
MK
90372003-03-01 Mark Kettenis <kettenis@gnu.org>
9038
9039 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9040 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9041
14143612
MK
90422003-03-01 Mark Kettenis <kettenis@gnu.org>
9043
9044 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9045 of STREQ.
9046
a55cc764
DJ
90472003-02-28 Daniel Jacobowitz <drow@mvista.com>
9048
9049 * Makefile.in (dwarf2loc.o): Update dependencies.
9050 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9051 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9052 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9053 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9054 (locexpr_tracepoint_var_ref): New function.
9055 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9056
08a617da
AC
90572003-02-28 Andrew Cagney <cagney@redhat.com>
9058
9059 * regcache.c (register_size): New function.
9060 * regcache.h (register_size): Declare
9061 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9062 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9063
4224873a
DC
90642003-02-28 David Carlton <carlton@math.stanford.edu>
9065
9066 * linespec.c (decode_compound): Extract code into find_method.
9067 (find_method): New.
9068
ccdc5d7f
JB
90692003-02-28 J. Brobecker <brobecker@gnat.com>
9070
9071 * Makefile.in: Add rules to build and link in observer.o.
9072
974e8ced
JB
90732003-02-27 J. Brobecker <brobecker@gnat.com>
9074
9075 * observer.c: Minor comments edits.
9076
7a28f973
JB
90772003-02-27 J. Brobecker <brobecker@gnat.com>
9078
9079 * observer.h, observer.c: New file.
9080
27cddce2
AC
90812003-02-27 Andrew Cagney <cagney@redhat.com>
9082
9083 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9084
b94a41a1
SC
90852003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9086
9087 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9088 (M6812_OP_STS_EXT): Likewise.
9089 (m6811_prologue): Use the above to recognize prologue.
9090 (m6812_prologue): Likewise.
9091
c8be8951
DC
90922003-02-27 David Carlton <carlton@math.stanford.edu>
9093
9094 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9095 SYMBOL_PRINT_NAME.
9096 (compare_psymbols): Ditto.
9097 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9098
d05bb1fc
MS
90992003-02-27 Michael Snyder <msnyder@redhat.com>
9100
4e845cd3
MS
9101 * f-lang.c (build_fortran_types): New function.
9102 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9103 * doublest.c (extract_floating): Fix warning text.
9104
f3824013
AC
91052003-02-27 Andrew Cagney <cagney@redhat.com>
9106
9107 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9108 predicate. Replaces PUSH_DUMMY_FRAME.
9109 * gdbarch.h, gdbarch.c: Regnerate.
9110 * valops.c (hand_function_call): Update. Call
9111 generic_push_dummy_frame directly.
9112 * vax-tdep.c (vax_gdbarch_init): Update.
9113 * sparc-tdep.c (sparc_gdbarch_init): Update.
9114 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9115 * m68k-tdep.c (m68k_gdbarch_init): Update.
9116 * hppa-tdep.c (hppa_gdbarch_init): Update.
9117 * alpha-tdep.c (alpha_gdbarch_init): Update.
9118 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9119 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9120 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9121 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9122 push_dummy_frame to generic_push_dummy_frame.
9123 * v850-tdep.c (v850_gdbarch_init): Ditto.
9124 * sh-tdep.c (sh_gdbarch_init): Ditto.
9125 * s390-tdep.c (s390_gdbarch_init): Ditto.
9126 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9127 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9128 * mips-tdep.c (mips_gdbarch_init): Ditto.
9129 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9131 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9132 * i386-tdep.c (i386_gdbarch_init): Ditto.
9133 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9134 * frv-tdep.c (frv_gdbarch_init): Ditto.
9135 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9136 * cris-tdep.c (cris_gdbarch_init): Ditto.
9137 * avr-tdep.c (avr_gdbarch_init): Ditto.
9138 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9139
ad188201
KB
91402003-02-26 Kevin Buettner <kevinb@redhat.com>
9141
9142 * mips-tdep.c (show_mips_abi): New function.
9143 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9144 command ``show mips abi''.
9145
6b37567a 91462003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9147
6b37567a 9148 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9149 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9150 more sline entries have been seen for the function.
9151
d3e0a5bf
MC
91522003-02-26 Michael Chastain <mec@shout.net>
9153
9154 * configure: Regenerate with autoconf 000227.
9155
18972eea
MC
91562003-02-26 Michael Chastain <mec@shout.net>
9157
9158 Close PR build/660.
9159 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9160 for old libc5/glibc.
9161 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9162
0bbde931
KW
91632003-02-26 Kris Warkentin <kewarken@qnx.com>
9164
9165 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9166 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9167
27ca5dad
MC
91682003-02-26 Michael Chastain <mec@shout.net>
9169
9170 * configure.in: New variable HAVE_UINTPTR_T.
9171 * configure, config.in: Regenerated.
9172
6f88d630
DJ
91732003-02-26 Daniel Jacobowitz <drow@mvista.com>
9174
9175 Fix PR build/1097.
9176 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9177
b14185ce
AC
91782003-02-25 Andrew Cagney <cagney@redhat.com>
9179
9180 * frame.c (get_prev_frame): Add comment on check for
9181 inside_entry_func. Only check for inside_entry_file when not a
9182 dummy and not a sentinel. Check that the new frame is not inner
9183 to the old frame.
9184
ac2bd0a9
AC
91852003-02-25 Andrew Cagney <cagney@redhat.com>
9186
9187 * frame.c (frame_debug): New variable.
9188 (_initialize_frame): Add "set/show debug frame" command.
9189 (get_prev_frame): When frame_debug, print reason why unwind
9190 failed.
9191
b18a0fd2
MC
91922003-02-25 Michael Chastain <mec@shout.net>
9193
9194 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9195 to avoid uintptr_t definition problems.
9196
22abf04a
DC
91972003-02-25 David Carlton <carlton@math.stanford.edu>
9198
9199 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9200 (SYMBOL_LINKAGE_NAME): Ditto.
9201 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9202 SYMBOL_LINKAGE_NAME.
9203 (struct general_symbol_info): Expand comment.
9204 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9205 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9206 (SYMBOL_MATCHES_REGEXP): Ditto.
9207 * symtab.c (symbol_natural_name): New function.
9208 * objfiles.h: Replace all uses of SYMBOL_NAME by
9209 DEPRECATED_SYMBOL_NAME.
9210 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9211 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9212 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9213 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9214 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9215 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9216 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9217 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9218 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9219 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9220 * ada-exp.y: Ditto.
9221 * ada-exp.y: Update copyright.
9222 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9223 * cp-valprint.c: Ditto.
9224
1a5848f6
JJ
92252003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9226
9227 * infptrace.c (detach): Do not flag error if ptrace detach fails
9228 and errno is set to ESRCH.
9229
7343d46a
AC
92302003-02-24 Andrew Cagney <cagney@redhat.com>
9231
9232 * infptrace.c (udot_info): Change type of udot_off to long. Use
9233 paddr when printing udot_off's value.
9234
49fa1dc2
DC
92352003-02-24 David Carlton <carlton@math.stanford.edu>
9236
9237 * symtab.c (make_symbol_overload_list): Only read in partial
9238 symtabs containing a matching partial symbol.
9239
0fe19209
DC
92402003-02-24 David Carlton <carlton@math.stanford.edu>
9241
9242 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9243 do the comparison, not strcmp.
9244 * symfile.c (compare_psymbols): Ditto.
9245 * defs.h: Declare strcmp_iw_ordered.
9246 * utils.c (strcmp_iw_ordered): New function.
9247
8e3ee7b5
JB
92482003-02-24 Jim Blandy <jimb@redhat.com>
9249
9250 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9251 support, shared libs): Remove my name from here, to better reflect
9252 reality.
9253
7df1a324
KW
92542003-02-24 Kris Warkentin <kewarken@qnx.com>
9255
9256 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9257 (target_ops): Add to_have_continuable_watchpoint.
9258 * target.c (update_current_target): Add INHERIT line for
9259 to_have_continuable_watchpoint.
9260 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9261 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9262 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9263 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9264
d1c76907
EZ
92652003-02-24 Elena Zannoni <ezannoni@redhat.com>
9266
9267 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9268 maintainership.
9269
2610b0bf
KW
92702003-02-24 Kris Warkentin <kewarken@qnx.com>
9271
f46169db
KW
9272 * solib.c (solib_open): Call target defined search function after
9273 failing with solib-search-path.
9274 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9275 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9276
9a3c34fe
KW
92772003-02-24 Kris Warkentin <kewarken@qnx.com>
9278
f46169db 9279 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9280
2417dd25
SC
92812003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9282
9283 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9284
b631436b
SC
92852003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9286
9287 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9288 (m68hc11_add_reggroups): New function.
9289 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9290 (m68hc11_gdbarch_init): Install the reggroups.
9291 (_initialize_m68hc11_tdep): Initialize them.
9292
0aa8c1e4
JW
92932003-02-21 James E Wilson <wilson@tuliptree.org>
9294
9295 * MAINTAINERS: Update my email address.
9296
50ceaba5
DC
92972003-02-21 David Carlton <carlton@math.stanford.edu>
9298
9299 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9300
4c2df51b
DJ
93012003-02-21 Daniel Jacobowitz <drow@mvista.com>
9302
9303 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9304 * symtab.h: Add opaque declarations of struct axs_value and
9305 struct agent_expr.
9306 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9307 (struct location_funcs): New type.
9308 (struct symbol): Add "loc" to aux_value.
9309 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9310 * dwarf2read.c: Include "dwarf2expr.h".
9311 (dwarf2_symbol_mark_computed): New function.
9312 (read_func_scope): Use it.
9313 (var_decode_location): New function.
9314 (new_symbol): Use it.
9315 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9316
9317 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9318 (dwarf2expr_h, dwarf2loc_h): New variables.
9319 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9320 (dwarf2expr.o, dwarf2loc.o): New rules.
9321 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9322 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9323 LOC_COMPUTED_ARG.
9324 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9325 * m2-exp.y (yylex): Likewise.
9326 * printcmd.c (address_info, print_frame_args): Likewise.
9327 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9328 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9329 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9330 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9331 * symtab.c (lookup_block_symbol): Likewise.
9332
5784d15e
AF
93332003-02-20 Adam Fedor <fedor@gnu.org>
9334
9335 * symtab.h: Remove objc_specific struct
9336 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9337 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9338 Have language_objc use cplus_specific struct.
9339
d4cad8db
TT
93402003-02-20 Tom Tromey <tromey@redhat.com>
9341
9342 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9343 TYPE_NAME, when printing a String value. PR java/1075.
9344
2f9a90b4
AF
93452003-02-20 Adam Fedor <fedor@gnu.org>
9346
d38074a8 9347 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9348 * objc-lang.c (find_methods): Make static.
2f9a90b4 9349
6f17862b
CF
93502003-02-20 Christopher Faylor <cgf@redhat.com>
9351
9352 * win32-nat.c (get_image_name): Check return value from
9353 ReadProcessMemory.
9354 (child_xfer_memory): Ditto.
9355
715d1656
AO
93562003-02-20 Alexandre Oliva <aoliva@redhat.com>
9357
9358 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9359 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9360 '${exec_prefix}' (in addition to the expansion thereof) as
9361 relocatable.
9362 * configure: Rebuilt.
9363
b1262a02
DC
93642003-02-20 David Carlton <carlton@math.stanford.edu>
9365
9366 * symtab.c (search_symbols): Revert the search_symbols part of my
9367 2002-12-23 patch. Add comment.
9368
7134143f
DJ
93692002-02-20 Daniel Jacobowitz <drow@mvista.com>
9370
9371 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9372 * dbxread.c (elfstab_build_psymtabs): Don't call
9373 install_minimal_symbols.
9374 (stabsect_build_psymtabs): Likewise.
9375 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9376 earlier.
9377 * somread.c (som_symfile_read): Call install_minimal_symbols
9378 and do_cleanups earlier.
9379 * nlmread.c (nlm_symfile_read): Likewise.
9380 * mdebugread.c (elfmdebug_build_psymtabs): Call
9381 install_minimal_symbols and make appropriate cleanups.
9382
cf466558
KB
93832003-02-20 Kevin Buettner <kevinb@redhat.com>
9384
9385 * solib.c (reload_shared_libraries): New function.
9386 (_initialize_solib): Add callbacks for ``set solib-search-path''
9387 and ``set solib-absolute-prefix''.
9388
de5ad195
DC
93892003-02-20 David Carlton <carlton@math.stanford.edu>
9390
9391 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9392 expand comment.
9393 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9394 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9395 * ada-typeprint.c (ada_typedef_print): Ditto.
9396 * ax-gdb.c (gen_var_ref): Ditto.
9397 * breakpoint.c (print_one_breakpoint): Ditto.
9398 * buildsym.c (finish_block): Ditto.
9399 * c-valprint.c (c_val_print): Ditto.
9400 * expprint.c (print_subexp): Ditto.
9401 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9402 * infcmd.c (jump_command): Ditto.
9403 * linespec.c (decode_line_2, decode_compound): Ditto.
9404 * maint.c (maintenance_translate_address): Ditto.
9405 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9406 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9407 Ditto.
8ffd9b1b
AJ
9408 * p-valprint.c (pascal_val_print): Ditto.
9409 * stabsread.c (define_symbol): Ditto.
de5ad195 9410 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9411 (print_frame_arg_vars, return_command): Ditto.
9412 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9413 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9414 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9415 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9416 (rbreak_command): Ditto.
9417 * tracepoint.c (tracepoints_info): Ditto.
9418 * typeprint.c (typedef_print): Ditto.
9419 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9420 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9421 * ada-typeprint.c: Update Copyright.
9422 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9423 * tracepoint.c, cli/cli-cmds.c: Ditto.
9424
f796e4be
KB
94252003-02-20 Kevin Buettner <kevinb@redhat.com>
9426
9427 * frame.c (generic_unwind_get_saved_register): Make non-static.
9428 * frame.h (generic_unwind_get_saved_register): Declare.
9429 * mips-tdep.c (read_next_frame_reg): Fetch register from
9430 current regcache when frame is NULL.
9431 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9432 that must be NULL.
9433 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9434 instead of frame_register_unwind().
9435
836cc9f4
AC
94362003-02-20 Andrew Cagney <ac131313@redhat.com>
9437
9438 * remote-sim.c (gdbsim_insert_breakpoint)
9439 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9440 code.
9441
501eef12
AC
94422003-02-20 Andrew Cagney <ac131313@redhat.com>
9443
9444 * remote.c (_initialize_remote): Add commands "set/show remote
9445 hardware-watchpoint-limit" and "set/show remote
9446 hardware-breakpoint-limit".
9447 (remote_hw_watchpoint_limit): Initialize to -1.
9448 (remote_hw_breakpoint_limit): Ditto.
9449 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9450
1b6bc7e0
CF
94512003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9452
9453 * coff-pe-read.c: New file - support reading of minimal symbols from a
9454 portable executable using the export table.
9455 * coff-pe-read.h: New file.
9456 * coffread.c: Include coff-pe-read.h.
9457 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9458 debugging symbols found.
9459 * Makefile.in (SFILES): Add coff-pe-read.o.
9460 (coff_pe_read_h): Define.
9461 (COMMON_OBS): Add coff-pe-read.o.
9462 (coffread.o): Add coff_pe_read_h dependency.
9463 (coff-pe-read.o): New target.
9464
fe898f56
DC
94652003-02-19 David Carlton <carlton@math.stanford.edu>
9466
9467 * Makefile.in (SFILES): Add block.c.
9468 (block_h): New.
9469 (COMMON_OBS): Add block.o.
9470 (block.o): New.
9471 (x86-64-tdep.o): Add $(block_h).
9472 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9473 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9474 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9475 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9476 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9477 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9478 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9479 * value.h: Add opaque declaration for struct block.
9480 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9481 * ada-lang.h: Ditto.
9482 * x86-64-tdep.c: #include "block.h"
9483 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9484 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9485 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9486 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9487 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9488 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9489 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9490 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9491 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9492 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9493 * symtab.c (block_function): Ditto.
9494 (contained_in): Ditto.
9495 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9496 block.h. Add opaque declaration for struct block.
9497 * symtab.h: Move block_function and contained_in declarations to
9498 block.h. Add opaque declarations for struct block, struct
9499 blockvector.
9500 (struct block): Move to block.h.
9501 (struct blockvector): Ditto.
9502 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9503 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9504 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9505 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9506 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9507 Ditto.
9508 * block.c: New file.
9509 * block.h: New file.
9510
173345b5
TR
95112003-02-19 Theodore A. Roth <troth@openavr.org>
9512
9513 * avr-tdep.c (avr_extract_return_value): Remove function.
9514 (avr_store_return_value): Remove function.
9515 (avr_extract_struct_value_address): Remove function.
9516 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9517
338ef23d
AC
95182003-02-19 Andrew Cagney <ac131313@redhat.com>
9519
9520 * rs6000-tdep.c: Include "gdb_assert.h".
9521 (registers_e500): Add "acc" and "spefscr".
9522 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9523 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9524 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9525 really is "r0".
9526 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9527
5412f5f3
KS
95282003-02-18 Keith Seitz <keiths@redhat.com>
9529
9530 * Makefile.in: Add gdbtk-interps.c.
9531
881324eb
KB
95322003-02-18 Kevin Buettner <kevinb@redhat.com>
9533
9534 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9535 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9536
6a2f5abf
AC
95372003-02-18 Andrew Cagney <cagney@redhat.com>
9538
9539 * symtab.h (struct objfile): Add opaque declaration.
9540
54c7009d
EZ
95412003-02-18 Elena Zannoni <ezannoni@redhat.com>
9542
9543 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9544 * dbxread.c (process_one_symbol): Use last_function_start rather
9545 than function_start_offset to find the real beginning of the
9546 current function. The latter is just the text section offset on
9547 some systems, the former is always the real function start.
54c7009d 9548
7ee6d7eb
AC
95492003-02-17 Andrew Cagney <cagney@redhat.com>
9550
9551 * configure.in: Revert ${target} != ${host}.
9552
2846da9b
AC
95532003-02-17 Andrew Cagney <ac131313@redhat.com>
9554
9555 * configure.in (Makefile): Use the test ${target} != ${host},
9556 instead of the absence of the "nm.h" file, to determine of the
9557 configuration non-native.
9558 * configure: Regenerate.
8ffd9b1b 9559
3b27aeea
EZ
95602003-02-14 Elena Zannoni <ezannoni@redhat.com>
9561
fbe586ae 9562 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9563
9564 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9565 conditionalize tui_active test.
9566 (lookup_cmd_1): Ditto.
9567
b0b1c2c0
MK
95682003-02-14 Mark Kettenis <kettenis@gnu.org>
9569
9570 * configure.in: Add check for _etext.
9571 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9572 available.
9573 * config.in, configure: regenerated.
9574
8f05cde5
DJ
95752003-02-14 Daniel Jacobowitz <drow@mvista.com>
9576
9577 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9578
021e7609
AC
95792003-02-14 Andrew Cagney <ac131313@redhat.com>
9580
9581 * main.c (tui_version): Delete variable.
9582 (captured_main): When --tui, set interpreter_p to "tui" instead of
9583 enabling tui_version.
9584 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9585 tui_version.
9586 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9587 * cli/cli-cmds.c (disassemble_command): Ditto.
9588 * defs.h (tui_version): Delete declaration.
9589 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9590 (tui-interp.o): Add rules.
9591 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9592
e325dcec
CF
95932003-02-14 Christopher Faylor <cgf@redhat.com>
9594
36ffb041 9595 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9596 just-loaded dll.
9597
c4f90d87
JM
95982003-02-12 Jason Molenda (jmolenda@apple.com)
9599
fbe586ae
RH
9600 * symmisc.c (print_objfile_statistics): Include information about
9601 the number of psymtabs and symtabs in each object file.
c4f90d87 9602
e46e5ccd
KS
96032003-02-13 Keith R Seitz <keiths@redhat.com>
9604
9605 * main.h (struct captured_main_args): Add interpreter_p.
9606 * main.c (captured_main): Initialize interpreter_p from context.
9607 * gdb.c (main): Set interpreter_p argument.
9608 * Makefile.in (gdb.o): Add dependency for interps.h.
9609
fe97fe9c
AC
96102003-02-12 Andrew Cagney <ac131313@redhat.com>
9611
9612 * event-top.c (cli_command_loop): Delete declaration.
9613 (_initialize_event_loop): Delete function setting event_loop_hook.
9614 * event-top.h (cli_command_loop): Declare. Update copyright.
9615 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9616 * interps.c (current_interp_command_loop): When event_loop_p, call
9617 cli_command_loop.
9618
1cdac4ef
AC
96192003-02-12 Andrew Cagney <ac131313@redhat.com>
9620
9621 * interps.h (interp_command_loop_ftype): Change return type to
9622 void.
9623
48037ead
ML
96242003-02-12 Michal Ludvig <mludvig@suse.cz>
9625
9626 * x86-64-tdep.c (x86_64_extract_return_value)
9627 (x86_64_store_return_value): Use regcache instead of regbuf.
9628 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9629 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9630
033afc63
AC
96312003-02-11 Andrew Cagney <ac131313@redhat.com>
9632
9633 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9634 * aclocal.m4: Regenerate.
9635 * configure: Regenerate.
9636
9637 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9638 TCL_LD_SEARCH_FLAGS.
9639
40d02bca
ML
96402003-02-10 Michal Ludvig <mludvig@suse.cz>
9641
9642 * dwarf2cfi.c: Reindented.
9643
11308a41
AC
96442003-02-09 Andrew Cagney <ac131313@redhat.com>
9645
9646 * interps.c (clear_interpreter_hooks): Convert function definition
9647 to ISO C.
9648
e1c1c0f6
DC
96492003-02-07 David Carlton <carlton@math.stanford.edu>
9650
9651 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9652
ab5d3da6
KB
96532003-02-07 Kevin Buettner <kevinb@redhat.com>
9654
9655 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9656 (struct type): ...to here.
9657 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9658 field.
9659 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9660 (replace_type): Set length on all type variants for a given type.
9661
b8a92b82
AC
96622003-02-07 Andrew Cagney <ac131313@redhat.com>
9663
9664 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9665 <sys/stat.h>.
9666 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9667
5cb316ef
AC
96682003-02-06 Andrew Cagney <ac131313@redhat.com>
9669
2555fe1a
AC
9670 * Makefile.in (symm-nat.o): Update dependencies.
9671 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9672 (lynx-nat.o, ia64-linux-nat.): Ditto.
9673 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9674 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9675 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9676
44270758
AC
9677 * Makefile.in (inflow_h): Define.
9678 (procfs.o, inflow.o, procfs.o): Update dependencies.
9679 * inftarg.c (child_stop): Delete extern declaration of
9680 inferior_process_group. Include "inflow.h".
9681 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9682 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9683 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9684 (our_process_group, inferior_process_group): Extern declarations.
9685
df8f7274
AC
9686 * procfs.c: Include "gdb_assert.h".
9687
5cb316ef
AC
9688 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9689 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9690 * jv-typeprint.c (java_type_print_base): Ditto.
9691 * typeprint.c (typedef_print): Eliminate STREQ.
9692 * cli/cli-script.c (define_command, define_command): Ditto.
9693 * main.c (captured_main): Ditto.
9694 * values.c (lookup_internalvar): Ditto.
9695 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9696 within `if' conditional.
9697 * linespec.c (decode_line_2): Ditto.
9698 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9699 (bfd_openw_with_cleanup): Ditto.
9700
2a28ccea
MK
97012003-02-07 Mark Kettenis <kettenis@gnu.org>
9702
9703 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9704 legacy_extract_return_value and store_return_value to
9705 legacy_return_value.
9706
786b8124
CF
97072003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9708
9709 * win32-nat.c (get_relocated_section_addrs): New function. Find
9710 section load addresses for symbol handling in relocated DLLs.
9711 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9712
b871e4ec
FF
97132003-02-05 Fred Fish <fnf@intrinsity.com>
9714
9715 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9716 '=' and '!='.
9717 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9718 with '&' and '=='.
9719 (angel_RDI_info): Ditto.
9720 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9721 with '&' and '!='.
9722 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9723
4389a95a 97242003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9725 Keith Seitz <keiths@redhat.com>
9726 Elena Zannoni <ezannoni@redhat.com>
9727 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9728
9729 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9730 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9731 (SUBDIR_MI_OBS): Add "mi-interp.o".
9732 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9733 (SFILES): Add "interps.c".
9734 (COMMON_OBS): Add "interps.o".
9735 (interps_h, mi_main_h): Define.
9736 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9737 (mi-main.o, main.o, event-top.o): Update dependencies.
9738 * cli/cli-interp.c: New file.
9739 * interps.h, interps.c: New files.
9740 * top.c: (gdb_init): Don't install the default interpreter, handed
9741 by captured_main.
9742 * main.c: Include "interps.h".
9743 (interpreter_p): Note that it should malloc'ed.
9744 (captured_command_loop): Call current_interp_command_loop.
9745 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9746 xfree and xstrdup when updating interpreter_p. Install the
9747 default interpreter. Add hack to stop mi1's copyright notice
9748 being encoded.
9749 * event-top.h (gdb_setup_readline): Declare.
9750 (gdb_disable_readline): Declare.
9751 * event-top.c: Include "interps.h".
9752 (display_gdb_prompt): Call current_interp_display_prompt_p.
9753 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9754 gdb_stdlog, and gdb_stdtarg.
9755 (_initialize_event_loop): Don't call gdb_setup_readline.
9756 * cli-out.c (cli_out_set_stream): New function.
9757 * cli-out.h (cli_out_set_stream): Declare.
9758
ff3b5810
MK
97592003-02-06 Mark Kettenis <kettenis@gnu.org>
9760
9761 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9762 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9763 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9764 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9765 config/i386/i386v42mp.mt: Removed.
9766
5b729aa5
MK
97672003-02-05 Mark Kettenis <kettenis@gnu.org>
9768
9769 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9770 GDB_OSABI_SOLARIS.
9771
8cc15142
MC
97722003-02-05 Michael Chastain <mec@shout.net>
9773
9774 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9775 2.12.1 and earlier versions.
9776
5aa5d4b9
AC
97772003-02-05 Andrew Cagney <ac131313@redhat.com>
9778
9779 Remove orphaned hosts, targets and files.
9780 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9781 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9782 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9783 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9784 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9785 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9786 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9787 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9788 * config/sparc/tm-sp64sim.h: Delete.
9789 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9790 hosts.
9791 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9792 mips*-dec-mach3* targets.
9793
b68767c1
MC
97942003-02-04 Michael Chastain <mec@shout.net>
9795
9796 * NEWS: Fix typo: sepcifying -> specifying.
9797
5ae7ca1d
MC
97982003-02-04 Michael Chastain <mec@shout.net>
9799
9800 * dwarfread.c: Add documentation on the state of dwarf-1,
9801 looking towards obsoletion.
9802
d08a4280
MC
98032003-02-03 Michael Chastain <mec@shout.net>
9804
9805 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9806 gdb/testsuite/gdb.c++/pr-1023.exp.
9807
e9be73e4
AC
98082003-02-04 Andrew Cagney <ac131313@redhat.com>
9809
9810 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9811 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9812
9813 * utils.c (init_page_info): Delete reference to MPW in comments.
9814 * main.c (captured_main): Delete #ifdef MPW.
9815
05d57f6f
AC
98162003-02-04 Andrew Cagney <ac131313@redhat.com>
9817
8ffd9b1b 9818 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9819 * monitor.c (monitor_expect): Obsolete reference to m32r.
9820 * configure.tgt: Mark m32r-*-elf* as obsolete.
9821 * MAINTAINERS: Mark m32k as obsolete.
9822 * m32r-rom.c: Obsolete file.
9823 * config/m32r/m32r.mt: Obsolete file.
9824 * config/m32r/tm-m32r.h: Obsolete file.
9825 * m32r-stub.c: Obsolete file.
9826 * m32r-tdep.c: Obsolete file.
9827
8b0e5691
AC
98282003-02-04 Andrew Cagney <ac131313@redhat.com>
9829
9830 * NEWS: Mention that the z8k-zilog-none is obsolete.
9831 * MAINTAINERS: Mark z8k as obsolete.
9832 * configure.tgt: Obsolete the z8k-*-coff* target.
9833 * config/z8k/z8k.mt: Obsolete file.
9834 * config/z8k/tm-z8k.h: Obsolete file.
9835 * z8k-tdep.c: Obsolete file.
9836
67f16606
AC
98372003-02-04 Andrew Cagney <ac131313@redhat.com>
9838
9839 * NEWS: Mention that the mn10200-elf is obsolete.
9840 * configure.tgt: Obsolete mn10200-*-* target.
9841 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9842 mention that the mn10200 is obsolete.
9843 * breakpoint.h: Ditto.
9844 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9845 * config/mn10200/mn10200.mt: Obsolete file.
9846 * config/mn10200/tm-mn10200.h: Obsolete file.
9847 * mn10200-tdep.c: Obsolete file.
9848
fd2299bd
AC
98492003-02-04 Andrew Cagney <ac131313@redhat.com>
9850
9851 * MAINTAINERS: Mark h8500 as obsolete.
9852 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9853 * findvar.c (value_from_register): Ditto.
9854 * h8500-tdep.c: Mark file as obsolete.
9855 * config/h8500/h8500.mt: Ditto.
9856 * config/h8500/tm-h8500.h: Ditto.
9857 * NEWS: Mention that h8500 is obsolete.
9858
eb9a305d
DC
98592003-02-04 David Carlton <carlton@math.stanford.edu>
9860
9861 * objfiles.c (allocate_objfile): Always set name. Add comment at
9862 start of function.
9863 * jv-lang.c (get_dynamics_objfile): Add comment.
9864
406fc7fb
DC
98652003-02-04 David Carlton <carlton@math.stanford.edu>
9866
9867 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9868 * printcmd.c (build_address_symbolic): Replace uses of
9869 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9870 SYMBOL_NAME, and asm_demangle.
9871 Update copyright.
9872
93d91629
DC
98732003-02-04 David Carlton <carlton@math.stanford.edu>
9874
9875 * linespec.c (decode_compound): Extract code into
9876 lookup_prefix_sym.
9877 (lookup_prefix_sym): New function.
9878
1c5cb38e
DC
98792003-02-04 David Carlton <carlton@math.stanford.edu>
9880
9881 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9882 FLOAT_COERCION_BADNESS.
9883 * gdbtypes.c (rank_one_type): Replace all uses of
9884 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9885
0cf824c9
JB
98862003-02-04 Jim Blandy <jimb@redhat.com>
9887
9888 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9889 section, let dwarf_macinfo_section point to it, not
9890 dwarf_loc_section.
9891
a2d356b0
DJ
98922003-02-04 Daniel Jacobowitz <drow@mvista.com>
9893
9894 Pointed out by Anton Blanchard <anton@samba.org>.
9895 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9896 (ppc_linux_at_sigtramp_return_path): Use it.
9897
2de7ced7
DJ
98982003-02-04 Daniel Jacobowitz <drow@mvista.com>
9899
9900 * defs.h (streq): Add prototype.
9901 * utils.c (streq): New function.
9902
9903 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9904 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9905 * mdebugread.c (new_symbol): Likewise.
9906 * stabsread.c (define_symbol): Likewise.
9907 * coffread.c (process_coff_symbol): Likewise.
9908 * dwarfread.c (new_symbol): Likewise.
9909
9910 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9911 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9912 here.
9913 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9914 SYMBOL_INIT_DEMANGLED_NAME.
9915 * objfiles.c: Include "hashtab.h".
9916 (allocate_objfile): Call htab_set_functions_ex for the
9917 demangled_names_hash.
9918 (free_objfile): Call htab_delete for the demangled_names_hash.
9919 * objfiles.h (struct htab): Add declaration.
9920 (struct objfile): Add demangled_names_hash.
9921 * symfile.c: Include "hashtab.h".
9922 (reread_symbols): Call htab_delete for the demangled_names_hash.
9923 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9924 SYMBOL_NAME in the bcache.
9925 * symtab.c: Include "hashtab.h". Update comments.
9926 (create_demangled_names_hash, symbol_set_names): New functions.
9927 (symbol_find_demangled_name): New function, broken out from
9928 symbol_init_demangled_names.
9929 (symbol_init_demangled_names): Use it.
9930 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9931 (SYMBOL_SET_NAMES): New macro.
9932 (symbol_set_names): Add prototype.
9933
15831452
JB
99342003-02-03 Jim Blandy <jimb@redhat.com>
9935
9936 Use a single, consistent representation for an empty minimal
9937 symbol table in an objfile.
9938 * objfiles.c (terminate_minimal_symbol_table): New function.
9939 (allocate_objfile): Call it.
9940 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9941 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9942 non-NULL.
15831452
JB
9943 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9944 objfile has minimal symbols, compare minimal_symbol_count to zero,
9945 instead of comparing msymbols with NULL.
9946 * objfiles.c (have_minimal_symbols): Same.
9947 * solib-sunos.c (solib_add_common_symbols): Call
9948 terminate_minimal_symbol_table.
9949 * symfile.c (reread_symbols): Same.
8ffd9b1b 9950
ffc65945
KB
99512003-02-03 Kevin Buettner <kevinb@redhat.com>
9952
9953 * s390-tdep.c (s390_address_class_type_flags)
9954 (s390_address_class_type_flags_to_name)
9955 (s390_address_class_name_to_type_flags): New functions.
9956 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9957 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9958
f211c6d4
MS
99592003-02-03 Michael Snyder <msnyder@redhat.com>
9960
9961 * arm-tdep.c: Fix spell-o in comment.
9962
659b0389
ML
99632003-02-03 Michal Ludvig <mludvig@suse.cz>
9964
9965 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9966 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9967 error messages to contain BFD filename.
659b0389 9968
3b31d625
EZ
99692003-02-02 Elena Zannoni <ezannoni@redhat.com>
9970
997b089a 9971 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9972 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9973 (do_mixed_source_and_assembly): Use
9974 make_cleanup_ui_out_tuple_begin_end and
9975 make_cleanup_ui_out_tuple_begin_end.
9976 (do_mixed_source_and_assembly): Ditto.
9977 * thread.c (do_captured_list_thread_ids): Ditto.
9978 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9979 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9980 ui_out_tuple_end): Delete prototypes.
9981 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9982 ui_out_list_end, ui_out_tuple_end): Delete.
9983
9984 From Kevin Buettner <kevinb@redhat.com>:
9985 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9986 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9987 (do_cleanup_table_end): New functions.
9988 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9989 Use cleanups to invoke_ui_out_tuple_end().
9990 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9991 * cli/cli-setshow.c (cmd_show_list): Use
9992 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9993
5b181d62
AC
99942003-02-02 Andrew Cagney <ac131313@redhat.com>
9995
9996 * frame.c (frame_unwind_register): New function.
9997 (frame_unwind_unsigned_register): Use.
9998 (frame_unwind_signed_register): Use.
9999 (frame_read_register): New function.
10000 * frame.h (frame_unwind_register): Declare.
10001 (frame_read_register): Declare.
10002
10003 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10004 and frame_unwind_register instead of read_memory, write_register
10005 and deprecated_write_register_bytes.
10006
5f601589
AC
100072003-02-02 Andrew Cagney <ac131313@redhat.com>
10008
10009 * frame.h: Note that namelen can be negative.
10010 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10011 NAME's length.
10012
10013 * NEWS: Mention that the d10v's `regs' command is deprecated.
10014 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10015 (d10v_print_registers_info): New function.
10016 (show_regs): Call d10v_print_registers_info.
10017 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10018
6a3fe0a4
MK
100192003-02-02 Mark Kettenis <kettenis@gnu.org>
10020
10021 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10022 lost in the previous patch.
10023
075559bc
AC
100242003-02-01 Andrew Cagney <ac131313@redhat.com>
10025
10026 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10027 * stack.c (print_frame_info_base): Output complete FRAME tuple
10028 for synthesized frames.
075559bc 10029
6789195b
AC
100302003-02-02 Andrew Cagney <ac131313@redhat.com>
10031
10032 * mips-nat.c (zerobuf): Delete.
10033 (fetch_inferior_registers): Alloc local zerobuf.
10034 (fetch_core_registers): Alloc local zerobuf.
10035 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10036 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10037 * thread-db.c (thread_db_store_registers): Ditto.
10038 * sh-tdep.c (sh_do_register): Ditto.
10039 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10040 * remote-sim.c (gdbsim_store_register): Ditto.
10041 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10042 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10043 * monitor.c (monitor_supply_register): Ditto.
10044 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10045 * mips-nat.c (fetch_inferior_registers): Ditto.
10046 * m68klinux-nat.c (fetch_register): Ditto.
10047 * lynx-nat.c (fetch_inferior_registers): Ditto.
10048 (fetch_inferior_registers): Ditto.
10049 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10050 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10051 (hpux_thread_store_registers): Ditto.
10052 * hppah-nat.c (fetch_register): Ditto.
10053 * hppab-nat.c (fetch_register): Ditto.
10054 * hppa-tdep.c (pa_register_look_aside): Ditto.
10055 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10056 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10057
e669114a
AC
100582003-02-01 Andrew Cagney <ac131313@redhat.com>
10059
10060 * gdbarch.sh: Explictly specify all method levels. When a
10061 variable with an empty level, provide a non-multi-arch default.
10062 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10063 * gdbarch.h: Re-generate.
10064 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10065 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10066
9a043c1d
AC
100672003-02-01 Andrew Cagney <ac131313@redhat.com>
10068
10069 * defs.h (host_pointer_to_address): Delete declaration.
10070 (address_to_host_pointer): Delete declaration.
10071 * utils.c (host_pointer_to_address): Delete function.
10072 (address_to_host_pointer): Delete function.
10073 * procfs.c (procfs_address_to_host_pointer): New function.
10074 * procfs.c (proc_set_watchpoint): Use.
10075 (procfs_can_use_hw_breakpoint): Update comments.
10076 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10077 (som_solib_add): Use.
10078 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10079 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10080
7ca9f392
AC
100812003-02-01 Andrew Cagney <ac131313@redhat.com>
10082
94bbfd30
AC
10083 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10084 strlen d_name.
10085
7ca9f392
AC
10086 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10087 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10088 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10089 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10090 (define_symbol): Update.
10091 * symfile.c (generic_load): Remove references to nindy.
10092 * symtab.c: Remove references to nindy.
10093
31a85ea2
AC
100942003-02-01 Andrew Cagney <ac131313@redhat.com>
10095
10096 * infcmd.c (print_float_info): Delete code conditional on
10097 FLOAT_INFO.
10098 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10099 * config/m68k/nm-apollo68b.h: Ditto.
10100 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10101 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10102 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10103
f6e85fc8
MK
101042003-02-01 Mark Kettenis <kettenis@gnu.org>
10105
6015b6a0
MK
10106 * config/i386/tm-i386os9k.h: Removed.
10107
f7a30bdf
MK
10108 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10109 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10110 they're identical to i[3456]86-*-sysv* now.
10111 * config/i386/i386v32.mh: Removed.
10112 * config/i386/xm-i386v32.h: Removed.
10113 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10114
28d52111
MK
10115 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10116
4d3f6bce
MK
10117 * config/i386/i386dgux.mh: Removed.
10118 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10119
f6e85fc8
MK
10120 * configure.in: Fix typo.
10121 * configure: Regenerated.
10122
53955967
DC
101232003-01-31 David Carlton <carlton@math.stanford.edu>
10124
10125 * dwarf2read.c (dwarf2_locate_sections): Set
10126 dwarf_ranges_section.
10127
b1364885
AC
101282003-01-31 Andrew Cagney <ac131313@redhat.com>
10129
8dbb1c65
AC
10130 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10131 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10132
8731e58e
AC
10133 * utils.c: Re-indent.
10134
b1364885
AC
10135 * config/djgpp/fnchange.lst: Delete nindy files.
10136 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10137 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10138 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10139 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10140 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10141 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10142 * Makefile.in (init.c): Remove nindy references.
10143 (saber_gdb): Delete rule.
10144 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10145 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10146 and a68v-nat.c.
10147 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10148 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10149 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10150 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10151 nindy-share/stop.h.
10152 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10153 * saber.suppress: Delete file.
10154
086df311
DJ
101552003-01-31 Daniel Jacobowitz <drow@mvista.com>
10156
10157 * dbxread.c (stabs_data): New static variable.
10158 (fill_symbuf): Support an in-memory buffer for stabs data.
10159 (stabs_seek): New function.
10160 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10161 (read_ofile_symtab): Use stabs_seek.
10162 (elfstab_build_psymtabs): Take an asection* instead of
10163 an offset and size. Relocate the stabs data if necessary.
10164 Save the section* for dbx_psymtab_to_symtab.
10165 * dwarf2read.c: Add section variables for each debug section.
10166 (dwarf2_locate_sections): Fill them in.
10167 (dwarf2_read_section): Take an asection* argument.
10168 Relocate the section contents if necessary.
10169 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10170 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10171 it to dwarf2_read_section.
10172 (dwarf2_build_frame_info): Update callers.
10173 * elfread.c (elf_symfile_read): Update call to
10174 elfstab_build_psymtabs.
10175 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10176 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10177 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10178 * symfile.c (symfile_dummy_outputs): New function.
10179 (symfile_relocate_debug_section): New function.
10180 * symfile.h (symfile_relocate_debug_section): Add prototype.
10181
87d1b352
RH
101822003-01-31 Richard Henderson <rth@redhat.com>
10183
10184 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10185 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10186 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10187 * alpha-tdep.c (alpha_register_name): Add "unique".
10188 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10189 (ALPHA_UNIQUE_REGNUM): New.
10190 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10191
c48861fb
AC
101922003-01-31 Andrew Cagney <ac131313@redhat.com>
10193
10194 * README: Remove reference to Ericsson 1800 monitor.
10195 * Makefile.in (remote-es.o): Delete rule.
10196 (ALLDEPFILES): Delete remote-es.c.
10197 * remote-es.c: Delete file.
10198 * config/m68k/es1800.mt: Delete file.
10199 * config/djgpp/fnchange.lst: Update.
10200 * configure.tgt: Delete m68*-ericsson-* target.
10201
d764a824
AF
102022003-01-31 Adam Fedor <fedor@gnu.org>
10203
10204 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10205 Remove duplicate/shadowing variable of same name.
10206
fe36c4f4
JB
102072003-01-30 Jim Blandy <jimb@redhat.com>
10208
10209 * symfile.c (find_separate_debug_file): Assert that the objfile's
10210 directory name we compute ends with a slash, and then assume that
10211 that's so everywhere we use it.
10212
cb741690
DJ
102132003-01-30 Daniel Jacobowitz <drow@mvista.com>
10214
10215 * valops.c (value_assign): Flush frame cache after stores to memory
10216 also.
10217
96ee5227
AC
102182003-01-30 Andrew Cagney <ac131313@redhat.com>
10219
10220 * Makefile.in (mon960-rom.o): Delete rule.
10221 * mon960-rom.c: Delete file.
10222
7f6104a9
AC
102232003-01-30 Andrew Cagney <ac131313@redhat.com>
10224
10225 * d10v-tdep.c: Include "frame-unwind.h".
10226 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10227 list.
10228 (next_addr, uses_frame): Delete.
10229 (struct d10v_unwind_cache): Define.
10230 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10231 Use info instead of next_addr and uses_frame globals.
10232 (d10v_frame_init_saved_regs): Delete function.
10233 (d10v_init_extra_frame_info): Delete function.
10234 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10235 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10236 init_frame_pc or frame_saved_pc.
10237 (d10v_pop_frame): Delete function.
10238 (do_d10v_pop_frame): Delete function.
10239 (d10v_frame_chain): Delete function.
10240 (d10v_frame_chain_valid): Delete function.
10241 (d10v_frame_pc_unwind): New function.
10242 (d10v_frame_id_unwind): New function.
10243 (saved_regs_unwinder): New function.
10244 (d10v_frame_register_unwind): New function.
10245 (d10v_frame_pop): New function.
10246 (d10v_frame_unwind): New variable.
10247 (d10v_frame_p): New function.
10248 (d10v_frame_saved_pc): Delete function.
10249 * Makefile.in (d10v-tdep.o): Update dependencies.
10250
cad2e848
JB
102512003-01-30 J. Brobecker <brobecker@gnat.com>
10252
10253 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10254 causing some regressions due to a change in the default value
10255 for this macro.
10256
af34e669
DJ
102572003-01-29 Richard Henderson <rth@redhat.com>
10258 Elena Zannoni <ezannoni@redhat.com>
10259 Daniel Jacobowitz <drow@mvista.com>
10260
10261 Fix PR gdb/961.
8ffd9b1b 10262 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10263 variables.
10264 (RANGES_SECTION): New.
10265 (dwarf_ranges_buffer): New variable.
10266 (struct comp_unit_head): Add member "die".
10267 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10268 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10269 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10270 (dwarf2_locate_sections): Likewise.
10271 (dwarf2_build_psymtabs): Read .debug_ranges.
10272 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10273 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10274 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10275 Look for DW_AT_ranges and return the bounding box.
10276
baa93fa6
CF
102772003-01-29 Brian Ford <ford@vss.fsi.com>
10278
10279 * win32-nat.c (cygwin_pid): Removed as unused.
10280 (child_attach): Try fall back to Cygwin pid.
10281
c63f977f
JB
102822003-01-29 Jim Blandy <jimb@redhat.com>
10283
10284 * objfiles.h (struct objfile): Doc fix.
10285
d62d1979
AC
102862003-01-29 Andrew Cagney <ac131313@redhat.com>
10287
10288 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10289 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10290 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10291 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10292 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10293 (FRAME_SAVED_PC): Change to a function with predicate.
10294 * gdbarch.h, gdbarch.c: Re-generate.
10295
1ae18a04
AC
102962003-01-28 Andrew Cagney <ac131313@redhat.com>
10297
52287340
AC
10298 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10299
1ae18a04
AC
10300 * complaints.c (complain): Delete function.
10301 * complaints.h (struct deprecated_complaint): Delete definition.
10302 (complain): Delete declaration.
10303
f2c16bd6
KB
103042003-01-28 Kevin Buettner <kevinb@redhat.com>
10305
10306 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10307 dummy frames.
10308
a94dd1fd
AC
103092003-01-27 Andrew Cagney <ac131313@redhat.com>
10310
10311 * sentinel-frame.h, sentinel-frame.c: New files.
10312 * Makefile.in (frame.o): Update dependencies.
10313 (SFILES): Add sentinel-frame.c.
10314 (sentinel_frame_h): Define.
10315 (COMMON_OBS): Add sentinel-frame.o.
10316 (sentinel-frame.o): Specify dependencies.
10317 * frame.c: Include "sentinel-frame.h".
10318 (frame_register_unwind): Rewrite assuming that there is always a a
10319 ->next frame.
10320 (frame_register, generic_unwind_get_saved_register): Ditto.
10321 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10322 (create_sentinel_frame, unwind_to_current_frame): New functions.
10323 (get_current_frame): Rewrite using create_sentinel_frame and
10324 unwind_to_current_frame. When possible, always create a frame.
10325 (create_new_frame): Set next to the sentinel frame.
10326 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10327 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10328 ID cache when necessary.
10329 (frame_saved_regs_id_unwind): Use frame_relative_level.
10330 (deprecated_generic_get_saved_register): Use frame_relative_level,
10331 get_frame_saved_regs, get_frame_pc, get_frame_base and
10332 get_next_frame.
10333 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10334 frame_register.
10335
5378adc4
DJ
103362003-01-27 Daniel Jacobowitz <drow@mvista.com>
10337
10338 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10339
51ee2ddc
DJ
103402003-01-27 Daniel Jacobowitz <drow@mvista.com>
10341
10342 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10343 (maintenance_set_profile_cmd): Use error () instead of warning ().
10344
d9feb4e7
DJ
103452003-01-27 Daniel Jacobowitz <drow@mvista.com>
10346
10347 * configure.in: Check that -pg works if using --enable-profiling.
10348 Check for monstartup and _mcleanup regardless of --enable-profiling.
10349 * maint.c: Check for monstartup and _mcleanup before using them.
10350 * config.in: Regenerated.
10351 * configure: Regenerated.
10352
2d188dd3
NC
103532003-01-24 Nick Clifton <nickc@redhat.com>
10354
10355 * Add sh2e support:
10356
10357 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10358
10359 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10360 (sh2e_show_regs): New.
10361 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10362 * config/sh/tm-sh.h: Added sh2e to comments.
10363
cb3c37b2
JB
103642003-01-23 Jim Blandy <jimb@redhat.com>
10365
10366 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10367 symbols found)" message here; we haven't checked for a separate
10368 debug info file yet, so we don't know yet.
10369 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10370 we've looked everywhere. Also, there's no need to print a special
10371 message when we're loading the separate debug info file: the one
10372 symbol_file_add prints is fine.
10373
5b5d99cf
JB
103742003-01-23 Alexander Larsson <alexl@redhat.com>
10375 Jim Blandy <jimb@redhat.com>
10376
10377 Add support for executables whose debug info has been separated
10378 out into a separate file, leaving only a link behind.
10379 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10380 and separate_debug_objfile_backlink.
10381 (put_objfile_before): New declaration.
10382 * symfile.c: #include "filenames.h".
10383 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10384 debug info in a separate file, read that, too. Save the addrs
10385 argument, so we can use it again to read the separated debug info;
10386 syms_from_objfile modifies the table we pass it.
10387 (reread_symbols): After re-reading an objfile, call
10388 reread_separate_symbols to refresh its separate debug info
10389 objfile, if it has one.
10390 (reread_separate_symbols, find_separate_debug_file,
10391 get_debug_link_info, separate_debug_file_exists): New functions.
10392 (debug_file_directory): New global var.
10393 (_initialize_symfile): Initialize debug_file_directory, and
10394 provide the new `set debug-file-directory' command to let the user
10395 change it.
10396 * objfiles.c (free_objfile): If this objfile has its debug info in
10397 a separate objfile, free that one too. If this is itself a
10398 separate debug info objfile, clear our parent's backlink.
10399 (put_objfile_before): New function.
10400 * utils.c (gnu_debuglink_crc32): New function.
10401 * defs.h (gnu_debuglink_crc32): New declaration.
10402 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10403 * configure.in: Handle --with-separate-debug-dir config option.
10404 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10405 * acconfig.h (DEBUGDIR): New macro.
10406 * configure, aclocal.m4, config.in: Regenerated.
10407
7e8580c1
JB
104082003-01-22 Jim Blandy <jimb@redhat.com>
10409
7904e09f
JB
10410 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10411 like the old symbol_file_add, but taking new arguments: you can
10412 now pass in either a `struct section_addr_info' list to say where
10413 each section is loaded, or a `struct section_offsets' table. Pass
10414 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10415 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10416 with the appropriate quiescent values for the new arguments.
10417
7e8580c1
JB
10418 * symfile.c: #include "gdb_assert.h".
10419 (syms_from_objfile): Add the ability to pass in a section offset
10420 table directly, as an alternative to the section_addr_info table.
10421 Document arguments better.
10422 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10423 * symfile.h (syms_from_objfile): Update declaration.
10424 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10425 syms_from_objfile.
10426 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10427
d28f9cdf
DJ
104282003-01-22 Daniel Jacobowitz <drow@mvista.com>
10429
10430 Original patch by Tom Tromey <tromey@cygnus.com> and
10431 Jason Molenda <jmolenda@apple.com>.
10432 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10433 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10434 * NEWS: Mention profiling.
10435 * configure.in (--enable-gdbtk): Fix typo.
10436 (--enable-profiling): New. Set PROFILE_CFLAGS.
10437 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10438 Fill in function.
10439 (profiling_state): New variable.
10440 (mcleanup_wrapper): New function.
10441 (_initialize_maint): Remove NOTYET, fix call to
10442 add_setshow_boolean_cmd for "maint set profile".
10443 * configure: Regenerated.
10444
df21e465
MH
104452003-01-21 Martin M. Hunt <hunt@redhat.com>
10446
10447 * Makefile.in (install-gdbtk): Install PNG images too.
10448
73c1f219
AC
104492003-01-21 Andrew Cagney <ac131313@redhat.com>
10450
10451 * exec.c (text_start): Delete global variable.
10452 (exec_file_attach): Make text_start local to the function.
10453 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10454 * valops.c (hand_function_call): Delete code that handles
10455 BEFORE_TEXT_END and AFTER_TEXT_END.
10456 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10457 of CALL_DUMMY_LOCATION.
10458 * gdbarch.c: Regenerate.
10459 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10460 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10461 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10462 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10463 (text_end): Delete extern declaration.
10464
eb4f72c5
AC
104652003-01-21 Andrew Cagney <ac131313@redhat.com>
10466
10467 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10468 * blockframe.c (backtrace_below_main): Move to "frame.c".
10469 (frame_chain_valid): Delete check for backtrace_below_main.
10470 (_initialize_blockframe): Delete initialization, move ``set
10471 backtrace-below-main'' command to "frame.c".
10472 (do_flush_frames_sfunc): Delete function.
10473 * frame.c: Include "command.h" and "gdbcmd.h".
10474 (frame_type_from_pc): New function.
10475 (create_new_frame): Use frame_type_from_pc.
10476 (legacy_get_prev_frame): New function.
10477 (get_prev_frame): Rewrite. When an old style frame, call
10478 legacy_get_prev_frame. Otherwize, unwind the PC first.
10479 (_initialize_frame): Add ``set backtrace-below-main'' command.
10480 * Makefile.in (frame.o): Update dependencies.
10481
778ce8cc
AC
104822003-01-19 Andrew Cagney <ac131313@redhat.com>
10483
10484 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10485 DEPRECATED_REGISTERS_INFO.
10486
01c193c8
AC
104872003-01-19 Andrew Cagney <ac131313@redhat.com>
10488
10489 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10490 Maintainers'. Update `Various Maintainers'.
10491
dedc2a2b
AC
104922003-01-19 Andrew Cagney <ac131313@redhat.com>
10493
10494 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10495 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10496 Suppress actual parameters when `-'.
10497 * gdbarch.h, gdbarch.c: Regenerate.
10498
b7261c70
AC
104992003-01-19 Andrew Cagney <ac131313@redhat.com>
10500
10501 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10502 code handling dummy frames.
10503
dbe9fe58
AC
105042003-01-19 Andrew Cagney <ac131313@redhat.com>
10505
10506 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10507 (struct frame_unwind): Add field pop.
10508 * frame.h (frame_pop): Declare.
10509 * frame.c (frame_saved_regs_pop): New function.
10510 (trad_frame_unwinder): Add frame_saved_regs_pop.
10511 (frame_pop): New function.
10512 * dummy-frame.c (dummy_frame_pop): New function.
10513 (discard_innermost_dummy): New function.
10514 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10515 (dummy_frame_unwind): Add dummy_frame_pop.
10516 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10517 * valops.c (hand_function_call): Ditto.
10518 * stack.c (return_command): Ditto.
10519
570b8f7c
AC
105202003-01-18 Andrew Cagney <ac131313@redhat.com>
10521
10522 * cris-tdep.c: Fix function declaration indentation.
10523 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10524 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10525 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10526 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10527 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10528 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10529
105302003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10531
10532 * README (Unpacking and Installation -- quick overview):
10533 Warn against ".../gdb-5.3/gdb/configure".
10534
494cca16
AC
105352003-01-18 Andrew Cagney <ac131313@redhat.com>
10536
10537 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10538 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10539 (struct frame_unwind): Declare opaque.
10540 (dummy_frame_p): Declare function.
10541 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10542 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10543 * dummy-frame.c: Include "frame-unwind.h".
10544 (dummy_frame_p): New function.
10545 (dummy_frame_unwind): New variable.
10546 * frame.c: Include "frame-unwind.h".
10547 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10548 to use the new unwind field.
10549 (set_unwind_by_pc): Delete function.
10550 (create_new_frame, get_prev_frame): Set unwind field using
10551 frame_unwind_find_by_pc.
10552 (trad_frame_unwind, trad_frame_unwinder): New variables.
10553 * frame.h (trad_frame_unwind): Declare variable.
10554 (frame_id_unwind_ftype): Delete declaration.
10555 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10556 (struct frame_unwind): Declare opaque.
10557 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10558 register_unwind with a single unwind pointer.
10559 * frame-unwind.h, frame-unwind.c: New files.
10560 * Makefile.in (SFILES): Add frame-unwind.c.
10561 (frame_unwind_h): Define.
10562 (COMMON_OBS): Add frame-unwind.o.
10563 (frame-unwind.o): Specify dependencies.
10564 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10565
4efb68b1
AC
105662003-01-18 Andrew Cagney <ac131313@redhat.com>
10567
10568 * ada-valprint.c: Eliminate PTR.
10569 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10570 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10571 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10572 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10573 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10574 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10575 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10576
a84d24ee
AC
105772003-01-17 Andrew Cagney <ac131313@redhat.com>
10578
762f08a3
AC
10579 * main.c (captured_main): Don't use PTR.
10580 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10581 * gdbtypes.c (lookup_primitive_typename): Ditto.
10582 (lookup_struct_elt_type): Ditto.
10583 * f-valprint.c (info_common_command): Ditto.
10584 (list_all_visible_commons): Ditto.
10585 * jv-typeprint.c (java_type_print_base): Ditto.
10586
a84d24ee
AC
10587 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10588 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10589 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10590 i386-interix-nat.c and i386-interix-tdep.c. Rename
10591 m68klinux-nat.c and m68klinux-tdep.c. Rename
10592 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10593 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10594 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10595 * main.c (captured_main): Use xfree, not free.
10596
c170fb60
AC
105972003-01-16 Andrew Cagney <ac131313@redhat.com>
10598
10599 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10600 ID back using a parameter.
10601 * frame.c (frame_id_unwind): Update call.
10602 (frame_saved_regs_id_unwind): Update.
10603 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10604 * dummy-frame.h (struct frame_id): Add opaque declaration.
10605 (dummy_frame_id_unwind): Update declaration.
10606
867f3898
AC
106072003-01-15 Andrew Cagney <ac131313@redhat.com>
10608
10609 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10610
40622be8 106112003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10612
40622be8 10613 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10614
ae66c1fc
EZ
106152003-01-14 Elena Zannoni <ezannoni@redhat.com>
10616
997b089a 10617 Fix PR gdb/898
ae66c1fc
EZ
10618 * breakpoint.c (until_break_command): Add new argument. Use it to
10619 decide whether to stop only at the current frame or not.
10620 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10621 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10622 call.
10623 (advance_command): New function.
10624 (_initialize_infcmd): Update help string for 'until' command.
10625 Add new 'advance' command.
10626
a04257e6
DC
106272003-01-14 David Carlton <carlton@math.stanford.edu>
10628
10629 * linespec.c (decode_line_1): Normalize comments.
10630 (set_flags): Ditto.
10631 (locate_first_half): Ditto.
10632 (decode_compound): Ditto.
10633 (symtab_from_filename): Ditto.
10634 (decode_all_digits): Ditto.
10635 (decode_dollar): Ditto.
10636 (find_methods): Ditto.
10637 (find_toplevel_char): Ditto.
10638
1bac305b
AC
106392003-01-13 Andrew Cagney <ac131313@redhat.com>
10640
10641 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10642 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10643 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10644 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10645 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10646 * language.c, language.h, m32r-tdep.c: Update copyright.
10647 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10648 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10649 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10650 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10651 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10652 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10653
25caa7a8
EZ
106542003-01-13 Elena Zannoni <ezannoni@redhat.com>
10655
10656 * stabsread.h (process_later, resolve_cfront_continuation):
10657 Obsolete.
10658 Update copyright years.
10659 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10660 Update copyright year.
10661 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10662 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10663 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10664 Update copyright year.
10665 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10666 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10667 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10668 (parse_partial_symbols): Obsolete cfront support.
10669 * stabsread.c
10670 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10671 macros.
10672 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10673 read_cfront_baseclasses, read_cfront_member_functions,
10674 resolve_cfront_continuation,read_cfront_static_fields,
10675 copy_cfront_struct_fields): Obsolete functions.
10676 (define_symbol, read_one_struct_field): Obsolete cfront support.
10677 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10678 Update Copyright year.
10679
7789c6f5
EZ
106802003-01-13 Elena Zannoni <ezannoni@redhat.com>
10681
10682 * stack.c (print_frame_info, print_stack_frame_base_stub,
10683 print_stack_frame_base, show_and_print_stack_frame_stub,
10684 show_and_print_stack_frame, print_only_stack_frame_stub,
10685 print_only_stack_frame): Delete functions.
10686 (print_stack_frame_stub): Call print_frame_info instead of
10687 print_frame_info_base.
10688 (print_frame_info_base): Rename to print_frame_info.
10689 (backtrace_command_1): Call print_frame_info, instead of
10690 print_frame_info_base.
10691 (current_frame_command): Call print_stack_frame, instead of
10692 print_only_stack_frame.
10693 (frame_command): Call print_stack_frame, instead of
10694 show_and_print_stack_frame.
10695 (up_command): Ditto.
10696 (down_command): Ditto.
10697 * frame.h (print_only_stack_frame): Delete prototype.
10698 * infrun.c (normal_stop): Call print_stack_frame, instead of
10699 show_and_print_stack_frame.
10700 * thread.c (info_threads_command): Call print_stack_frame, instead
10701 of print_only_stack_frame.
10702
3f5a3016
AC
107032003-01-13 Andrew Cagney <ac131313@redhat.com>
10704
d99ba314
AC
10705 * README (Graphical interface to GDB): Update URL. Point at
10706 gdb/links/.
10707
3f5a3016
AC
10708 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10709 version match.
10710
083ae935
DJ
107112003-01-13 Daniel Jacobowitz <drow@mvista.com>
10712
10713 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10714 lines.
10715
5365276c
DJ
107162003-01-13 Daniel Jacobowitz <drow@mvista.com>
10717
10718 * thread-db.c (attach_thread): Prototype.
10719 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10720 thread information (ti), and valid flags (th_valid, ti_valid).
10721 (attach_thread): Move target_pid_to_str call to after the thread
10722 is added to GDB's list. Initialize the cache.
10723 (thread_get_info_callback, thread_db_map_id2thr)
10724 (thread_db_get_info): New functions.
10725 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10726 (thread_db_store_registers, thread_db_thread_alive)
10727 (thread_db_get_thread_local_address): Use them.
10728 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10729 of calling error() for threads in unknown state.
10730
10731 (clear_lwpid_callback): New function.
10732 (thread_db_resume): Use it to clear the cache.
10733
9fc30b6b
DJ
107342003-01-13 Daniel Jacobowitz <drow@mvista.com>
10735
10736 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10737 (resume_callback): Remove dead code.
10738
8f871025
AC
107392003-01-13 Andrew Cagney <ac131313@redhat.com>
10740
10741 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10742 predicate.
10743 * gdbarch.h, gdbarch.c: Regenerate.
10744 * stack.c (frame_info): Only initialize the saved registers when
10745 FRAME_INIT_SAVED_REGS_P.
10746 * frame.c (frame_saved_regs_register_unwind): Assert
10747 FRAME_INIT_SAVED_REGS_P.
10748 (deprecated_generic_get_saved_register): Ditto.
10749
3f565f1e
DJ
107502003-01-13 Daniel Jacobowitz <drow@mvista.com>
10751
10752 * source.c (openp): Squelch warning about "filename".
10753
072b1022
DJ
107542003-01-13 Daniel Jacobowitz <drow@mvista.com>
10755
10756 * source.c (openp): If the file does not exist don't necessarily
10757 search the path.
10758
973ccf8b
DJ
107592003-01-13 Daniel Jacobowitz <drow@mvista.com>
10760
10761 Fix PR gdb/872.
10762 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10763 (integer_types_same_name_p): New function.
10764 (rank_one_type): Use it.
10765 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10766
030292b7
DJ
107672003-01-13 Daniel Jacobowitz <drow@mvista.com>
10768
10769 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10770 variables.
10771 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10772 * configure.in: Add --with-sysroot.
10773 * configure: Regenerated.
10774 * main.c (gdb_sysroot): New variable.
10775 (captured_main): Initialize gdb_sysroot.
10776 * defs.h (gdb_sysroot): New extern declaration.
10777 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10778
afb5d334
MC
107792003-01-12 Michael Chastain <mec@shout.net>
10780
10781 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10782
751ceeb4
MC
107832003-01-12 Michael Chastain <mec@shout.net>
10784
10785 * top.c (print_gdb_version): Bump copyright year to 2003.
10786
94cd26f8
DC
107872003-01-12 David Carlton <carlton@bactrian.org>
10788
10789 * linespec.c (symtab_from_filename): Rename variable 's' to
10790 'file_symtab'.
10791
1ce79225
AC
107922003-01-12 Andrew Cagney <ac131313@redhat.com>
10793
10794 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10795 dummy frame.
10796 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10797
fa1fd571
AC
107982003-01-12 Andrew Cagney <ac131313@redhat.com>
10799
10800 * d10v-tdep.c: Include "gdb_assert.h".
10801 (d10v_store_return_value): Rewrite to match current interface.
10802 (d10v_extract_struct_value_address): Ditto.
10803 (d10v_extract_return_value): Ditto.
10804 (d10v_gdbarch_init): Set store_restore_value,
10805 extract_struct_value_address and extract_return_value.
10806
68b8d23e
JB
108072003-01-12 J. Brobecker <brobecker@gnat.com>
10808
10809 * hpread.c (set_namestring): New procedure replacing the
10810 SET_NAMESTRING macro.
10811 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10812 by calls to set_namestring.
10813
108142003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10815
10816 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10817 a compilation warning.
10818 (hpread_process_one_debug_symbol): Likewise.
10819
88d262ca
DC
108202003-01-10 David Carlton <carlton@math.stanford.edu>
10821
10822 * linespec.c (decode_line_1): Rename variable 's' to
10823 'file_symtab'.
10824 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10825 (decode_dollar): Ditto.
10826 (decode_variable): Ditto.
10827 (symbol_found): Ditto.
10828
86669319
MC
108292003-01-09 Michael Chastain <mec@shout.net>
10830
10831 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10832
616a9dc4
CV
108332003-01-07 Corinna Vinschen <vinschen@redhat.com>
10834
10835 * win32-nat.c (set_process_privilege): New function.
10836 (child_attach): Call set_process_privilege() to enable the
10837 SE_DEBUG_NAME user privilege if available in process token.
10838
3269bcfa
JB
108392003-01-10 J. Brobecker <brobecker@gnat.com>
10840
10841 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10842 compilation error in the previous revision.
10843
2b0ee454
DC
108442003-01-09 David Carlton <carlton@math.stanford.edu>
10845
10846 * linespec.c: Update copyright.
10847
b3ba1b44
DJ
108482003-01-09 Daniel Jacobowitz <drow@mvista.com>
10849
10850 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10851 than inferior_ptid.
10852 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10853
4ef3f3be
AC
108542003-01-09 Andrew Cagney <ac131313@redhat.com>
10855
479ab5a0
AC
10856 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10857 Update comments.
10858 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10859 (frame_saved_regs_zalloc): Update.
10860 (frame_saved_regs_register_unwind): Update.
10861 (create_new_frame): Update.
10862 (get_prev_frame): Update.
10863 (frame_extra_info_zalloc): Update.
10864 (deprecated_get_frame_saved_regs): Update.
10865 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10866 * cris-tdep.c: Update comment.
10867
bde58177
AC
10868 * somsolib.h: Fix function indentation.
10869 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10870 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10871 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10872 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10873 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10874
4ef3f3be
AC
10875 * infrun.c (follow_fork): Use ISO C definition.
10876 * expprint.c (print_subexp): Use xfree instead of free.
10877 * charset.c: Include "gdb_string.h" instead of <string.h>.
10878 (register_iconv_charsets): Use ISO C definition.
10879 (host_charset, target_charset): Ditto.
10880 * Makefile.in (charset.o): Update dependencies.
10881 (mi-cmd-env.o): Update dependencies.
10882
1c615f7a
AC
108832003-01-08 Andrew Cagney <cagney@redhat.com>
10884
10885 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10886 get_frame_base.
10887
c9a1dc08
AC
108882003-01-08 Andrew Cagney <ac131313@redhat.com>
10889
10890 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10891 build directories. Save edited gdb output in Mbuild.log. If a
10892 build fails, remove any final GDB executable.
10893
dbad9d94
AC
108942003-01-08 Andrew Cagney <ac131313@redhat.com>
10895
10896 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10897 replacing hex constants with function names and stripping leading
10898 file name directory prefixes.
10899
8d357cca
AC
109002003-01-08 Andrew Cagney <cagney@redhat.com>
10901
10902 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10903 get_frame_base.
10904
bca02a8a
DC
109052003-01-08 David Carlton <carlton@math.stanford.edu>
10906
10907 * linespec.c (decode_line_1): Move code into decode_variable.
10908 (decode_variable): New function.
10909
7f8ab3a0
AC
109102003-01-08 Andrew Cagney <ac131313@redhat.com>
10911
10912 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10913
7b5849cc
AC
109142003-01-08 Andrew Cagney <cagney@redhat.com>
10915
10916 * cris-tdep.c (cris_frame_init_saved_regs): Use
10917 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10918 saved_regs buffer.
10919 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10920 (sh64_nofp_frame_init_saved_regs): Ditto.
10921 (sh_fp_frame_init_saved_regs): Ditto.
10922 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10923 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10924 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10925 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10926
72a5efb3
DJ
109272003-01-08 Daniel Jacobowitz <drow@mvista.com>
10928
10929 * minsyms.c (lookup_minimal_symbol): Update comment.
10930 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10931 (lookup_minimal_symbol_solib_trampoline): Likewise.
10932
11c02a10
AC
109332003-01-08 Andrew Cagney <cagney@redhat.com>
10934
aab3ea25
AC
10935 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10936 frame_relative_level.
10937
da50a4b7
AC
10938 * alpha-tdep.c: Use get_frame_extra_info.
10939 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10940 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10941 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10942 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10943
11c02a10
AC
10944 * alpha-tdep.c: Use get_next_frame.
10945 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10946 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10947 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10948 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10949 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10950 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10951 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10952
1e2330ba
AC
109532003-01-07 Andrew Cagney <cagney@redhat.com>
10954
10955 * alpha-tdep.c: Use get_frame_base.
10956 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10957 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10958 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10959 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10960 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10961 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10962 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10963 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10964
2d75187b
AC
109652003-01-07 Andrew Cagney <cagney@redhat.com>
10966
10967 * frame.c (deprecated_get_frame_context): New function.
10968 (deprecated_set_frame_context): New function.
10969 * frame.h (deprecated_get_frame_context): Declare.
10970 (deprecated_set_frame_context): Declare.
10971 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10972 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10973
483d36b2
AC
109742003-01-07 Andrew Cagney <cagney@redhat.com>
10975
10976 * frame.c (deprecated_set_frame_next_hack): New function.
10977 (deprecated_set_frame_prev_hack): New function.
10978 * frame.h (deprecated_set_frame_next_hack): Declare.
10979 (deprecated_set_frame_prev_hack): Declare.
10980 * mcore-tdep.c (analyze_dummy_frame): Use
10981 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10982 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10983
14e91ac5
DC
109842003-01-07 David Carlton <carlton@math.stanford.edu>
10985
10986 * linespec.c (decode_line_1): Move code into decode_dollar.
10987 (decode_dollar): New function.
10988
b0c6b05c
AC
109892003-01-07 Andrew Cagney <cagney@redhat.com>
10990
10991 * arm-tdep.c (arm_init_extra_frame_info): Use
10992 deprecated_update_frame_base_hack.
10993 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10994 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10995 (fix_frame_pointer): Ditto.
10996 (mn10300_analyze_prologue): Ditto.
10997
a00a19e9
AC
109982003-01-07 Andrew Cagney <cagney@redhat.com>
10999
11000 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11001 extra_info using frame_extra_info_zalloc.
11002 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11003 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11004 (sh64_init_extra_frame_info): Ditto.
11005 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11006 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11007 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11008 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11009 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11010 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11011 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11012 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11013 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11014 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11015 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11016 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11017
11018 * mn10300-tdep.c (analyze_dummy_frame): Use
11019 deprecated_set_frame_extra_info_hack.
11020 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11021
1fb4c65b
JB
110222003-01-07 J. Brobecker <brobecker@gnat.com>
11023
11024 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11025 class is not scText. These do not define "real" procedures.
11026 (parse_partial_symbols): Likewise.
11027
9fe7d6bf
MS
110282003-01-06 Michael Snyder <msnyder@redhat.com>
11029
11030 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11031
f6c609c4
AC
110322003-01-06 Andrew Cagney <ac131313@redhat.com>
11033
11034 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11035 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11036 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11037 deprecated_frame_xmalloc_with_cleanup.
11038 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11039 deprecated_frame_xmalloc.
11040 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11041 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11042
d995ff4b
AC
110432003-01-06 Andrew Cagney <cagney@redhat.com>
11044
84dc46cb
AC
11045 * x86-64-linux-tdep.c: Include "osabi.h".
11046 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11047
d995ff4b
AC
11048 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11049
66140c26
AC
110502003-01-06 Andrew Cagney <cagney@redhat.com>
11051
11052 * MAINTAINERS (Target Instruction Set Architectures): Update
11053 arm-elf. Can be built with -Werror, has been multiarched.
11054
11055 * value.h (unpack_long): Make buffer parameter constant.
11056 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11057 * scm-lang.h (scm_parse): Ditto.
11058 * defs.h (extract_typed_address, extract_address): Ditto.
11059 (extract_long_unsigned_integer): Ditto.
11060 * inferior.h (unsigned_pointer_to_address): Ditto.
11061 (signed_pointer_to_address): Ditto.
11062 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11063 * gdbarch.h, gdbarch.c: Regenerate.
11064 * findvar.c (extract_long_unsigned_integer): Update.
11065 (extract_address): Update.
11066 (extract_typed_address): Update.
11067 (unsigned_pointer_to_address): Update.
11068 * values.c (unpack_long): Update.
11069 (unpack_double): Update.
11070 (unpack_pointer): Update.
11071 (unpack_field_as_long): Update.
11072 * d10v-tdep.c (d10v_pointer_to_address): Update.
11073 * avr-tdep.c (avr_pointer_to_address): Update.
11074 * scm-lang.c (scm_unpack): Update.
11075 * findvar.c (signed_pointer_to_address): Update.
11076
b089b3da
ML
110772003-01-06 Michal Ludvig <mludvig@suse.cz>
11078
8ffd9b1b 11079 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11080 since it is in i386-tdep.c.
11081
aff87235
JB
110822003-01-06 J. Brobecker <brobecker@gnat.com>
11083
11084 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11085 failure introduced in the previous change.
11086
34f5e845
MC
110872003-01-05 Michael Chastain <mec@shout.net>
11088
11089 * README: Remove references to deleted remote-*.c files:
11090 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11091 remote-nrom.c, remote-os9k.c, remote-udi.c.
11092
28bcfd30
MK
110932003-01-05 Mark Kettenis <kettenis@gnu.org>
11094
11095 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11096 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11097 i386_get_longjmp_target.
11098
15a5b3ee
AC
110992003-01-05 Andrew Cagney <ac131313@redhat.com>
11100
11101 * arm-tdep.c (prologue_cache): Change to a pointer.
11102 (_initialize_arm_tdep): Allocate prologue_cache.
11103 (check_prologue_cache): Update.
11104 (save_prologue_cache): Update.
11105 (arm_gdbarch_init): Update.
11106
c263362b
DJ
111072003-01-04 Daniel Jacobowitz <drow@mvista.com>
11108
11109 * stabsread.c (update_method_name_from_physname): Call complaint()
11110 instead of error.
11111
51603483
DJ
111122003-01-04 Daniel Jacobowitz <drow@mvista.com>
11113
11114 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11115 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11116 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11117
11118 * blockframe.c: Include "gdbcmd.h" and "command.h".
11119 (backtrace_below_main): New variable.
11120 (file_frame_chain_valid, func_frame_chain_valid)
11121 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11122 (generic_func_frame_chain_valid): Remove functions.
11123 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11124 (_initialize_blockframe): New function.
11125 * Makefile.in (blockframe.o): Update dependencies.
11126 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11127 comment. Call frame_chain_valid ().
11128 * frame.h: Remove old prototypes. Add prototype for
11129 frame_chain_valid and update comments to match.
11130 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11131 Remove old comment.
11132 * gdbarch.h: Regenerated.
11133 * gdbarch.c: Regenerated.
11134
11135 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11136 set_gdbarch_frame_chain_valid.
11137 * avr-tdep.c (avr_gdbarch_init): Likewise.
11138 * cris-tdep.c (cris_gdbarch_init): Likewise.
11139 * frv-tdep.c (frv_gdbarch_init): Likewise.
11140 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11141 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11142 (i386_nw_init_abi): Likewise.
11143 (i386_gdbarch_init): Likewise.
11144 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11146 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11147 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11148 * mips-tdep.c (mips_gdbarch_init): Likewise.
11149 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11150 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11151 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11152 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11153 * s390-tdep.c (s390_gdbarch_init): Likewise.
11154 * sh-tdep.c (sh_gdbarch_init): Likewise.
11155 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11156 * v850-tdep.c (v850_gdbarch_init): Likewise.
11157 * vax-tdep.c (vax_gdbarch_init): Likewise.
11158 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11159
11160 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11161 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11162 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11163 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11164 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11165 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11166 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11167 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11168
b00a8037
DJ
111692002-01-04 Daniel Jacobowitz <drow@mvista.com>
11170
11171 * Makefile.in (acconfig_h): Remove incorrect macro.
11172 (config_h): Define.
11173 (osabi.o): Update dependencies.
11174 * configure.tgt: Set gdb_osabi based on target triplet.
11175 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11176 * configure: Regenerated.
11177 * config.in: Regenerated.
11178 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11179 (GDB_OSABI_DEFAULT): Define if not already defined.
11180 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11181 (set_osabi_string): New variables.
11182 (gdbarch_register_osabi): Add new OS ABI to
11183 gdb_osabi_available_names.
11184 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11185 (set_osabi, show_osabi): New functions.
11186 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11187
4be87837
DJ
111882003-01-04 Daniel Jacobowitz <drow@mvista.com>
11189
11190 * arch-utils.c (gdbarch_info_init): Set osabi to
11191 GDB_OSABI_UNINITIALIZED.
11192 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11193 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11194 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11195 * gdbarch.c: Regenerated.
11196 * gdbarch.h: Regenerated.
11197 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11198 there's no BFD.
11199 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11200 * osabi.h (enum gdb_osabi): Move to defs.h.
11201 (gdbarch_init_osabi): Update prototype.
11202 * defs.h (enum gdb_osabi): Moved here.
11203 * Makefile.in: Update dependencies.
11204
11205 * alpha-tdep.h: Don't include "osabi.h".
11206 (struct gdbarch_tdep): Remove osabi member.
11207 * alpha-tdep.c: Include "osabi.h".
11208 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11209 iterate over arches. Update call to gdbarch_init_osabi.
11210 (alpha_dump_tdep): Don't dump osabi.
11211 * alpha-linux-tdep.c: Include "osabi.h".
11212 * alpha-osf1-tdep.c: Include "osabi.h".
11213 * alphafbsd-tdep.c: Include "osabi.h".
11214 * alphanbsd-tdep.c: Include "osabi.h".
11215
11216 * arm-tdep.h: Don't include "osabi.h".
11217 (struct gdbarch_tdep): Remove osabi member.
11218 * arm-tdep.c: Include "osabi.h".
11219 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11220 iterate over arches. Update call to gdbarch_init_osabi.
11221 (arm_dump_tdep): Don't dump osabi.
11222 * arm-linux-tdep.c: Include "osabi.h".
11223 * armnbsd-tdep.c: Include "osabi.h".
11224
11225 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11226 Update call to gdbarch_init_osabi.
11227
11228 * i386-tdep.h: Don't include "osabi.h".
11229 (struct gdbarch_tdep): Remove osabi member.
11230 * i386-tdep.c: Include "osabi.h".
11231 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11232 iterate over arches. Update call to gdbarch_init_osabi.
11233 (i386_dump_tdep): Don't dump osabi.
11234 * i386-linux-tdep.c: Include "osabi.h".
11235 * i386-sol2-tdep.c: Include "osabi.h".
11236 * i386bsd-tdep.c: Include "osabi.h".
11237 * i386gnu-tdep.c: Include "osabi.h".
11238 * i386ly-tdep.c: Include "osabi.h".
11239 * i386nbsd-tdep.c: Include "osabi.h".
11240 * i386obsd-tdep.c: Include "osabi.h".
11241
11242 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11243 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11244 check osabi when iterating over arches. Update call to
11245 gdbarch_init_osabi.
11246 (mips_dump_tdep): Don't dump osabi.
11247
11248 * ns32k-tdep.h: Don't include "osabi.h".
11249 (struct gdbarch_tdep): Remove.
11250 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11251 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11252 allocate tdep. Update call to gdbarch_init_osabi.
11253 (ns32k_dump_tdep): Remove.
11254 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11255 * ns32knbsd-tdep.c: Include "osabi.h".
11256
11257 * ppc-tdep.h: Don't include "osabi.h".
11258 (struct gdbarch_tdep): Remove osabi member.
11259 * rs6000-tdep.c: Include "osabi.h".
11260 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11261 osabi when iterating over arches. Update call to
11262 gdbarch_init_osabi.
11263 (rs6000_dump_tdep): Don't dump osabi.
11264 * ppc-linux-tdep.c: Include "osabi.h".
11265 * ppcnbsd-tdep.c: Include "osabi.h".
11266
11267 * sh-tdep.h: Don't include "osabi.h".
11268 (struct gdbarch_tdep): Remove osabi member.
11269 * sh-tdep.c: Include "osabi.h".
11270 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11271 iterate over arches. Update call to gdbarch_init_osabi.
11272 (sh_dump_tdep): Don't dump osabi.
11273 * shnbsd-tdep.c: Include "osabi.h".
11274
11275 * sparc-tdep.c: Include "osabi.h".
11276 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11277 iterate over arches. Update call to gdbarch_init_osabi.
11278 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11279 tdep structure.
11280
11281 * vax-tdep.h: Don't include "osabi.h".
11282 (struct gdbarch_tdep): Remove.
11283 * vax-tdep.c: Include "osabi.h".
11284 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11285 iterate over arches. Don't allocate tdep. Update call
11286 to gdbarch_init_osabi.
11287 (vax_dump_tdep): Remove.
11288 (_initialize_vax_tdep): Update call to gdbarch_register.
11289
a881cf8e
DJ
112902003-01-04 Daniel Jacobowitz <drow@mvista.com>
11291
11292 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11293 entirely.
11294 (breakpoint_re_set_one): Don't fetch the value for a disabled
11295 watchpoint.
11296
1e698235
DJ
112972003-01-04 Daniel Jacobowitz <drow@mvista.com>
11298
11299 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11300 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11301 (COERCE_FLOAT_TO_DOUBLE): Remove.
11302 * gdbarch.c: Regenerate.
11303 * gdbarch.h: Regenerate.
11304 * Makefile.in: Remove value_h from gdbarch_h.
11305 * valops.c (coerce_float_to_double): New variable.
11306 (default_coerce_float_to_double): Remove.
11307 (standard_coerce_float_to_double): Remove.
11308 (value_arg_coerce): Use coerce_float_to_double.
11309 (_initialize_valops): Add "set coerce-float-to-double".
11310 * value.h (default_coerce_float_to_double): Remove prototype.
11311 (standard_coerce_float_to_double): Remove prototype.
11312
11313 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11314 prototyped.
11315 * mdebugread.c (parse_symbol): Likewise.
11316 * stabsread.c (define_symbol): Mark all functions as prototyped.
11317
11318 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11319 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11320 set_gdbarch_coerce_float_to_double.
11321 * arm-tdep.c (arm_gdbarch_init): Likewise.
11322 * frv-tdep.c (frv_gdbarch_init): Likewise.
11323 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11324 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11325 * mips-tdep.c (mips_gdbarch_init): Likewise.
11326 (mips_coerce_float_to_double): Remove.
11327 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11328 (rs6000_coerce_float_to_double): Remove.
11329 * s390-tdep.c (s390_gdbarch_init): Likewise.
11330 * sh-tdep.c (sh_gdbarch_init): Likewise.
11331 (sh_coerce_float_to_double): Remove.
11332 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11333 (sparc_coerce_float_to_double): Remove.
11334 * v850-tdep.c (v850_gdbarch_init): Likewise.
11335 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11336 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11337 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11338 (hppa_coerce_float_to_double): Remove prototype.
11339 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11340
f436a26a
DJ
113412003-01-04 Daniel Jacobowitz <drow@mvista.com>
11342
11343 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11344
248f8055
DJ
113452003-01-04 Daniel Jacobowitz <drow@mvista.com>
11346
11347 Suggested by Stewart Brown <sb24@avaya.com>:
11348 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11349 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11350 (c_type_print_varspec_suffix): Likewise.
11351
72cfdc76
MK
113522003-01-04 Mark Kettenis <kettenis@gnu.org>
11353
bfd260bb
MK
11354 * configure.in: Don't set and AC_SUBST SUBDIRS.
11355 * configure: Regenerated.
11356
72cfdc76
MK
11357 * configure.in: Remove code dealing with shared libraries.
11358 * Makefile.in: Remove HLDFLAGS and HLDENV.
11359 * configure: Regenerated.
11360
c8b8a898
AC
113612003-01-04 Andrew Cagney <ac131313@redhat.com>
11362
11363 * frame.c (deprecated_frame_xmalloc): New function.
11364 (deprecated_set_frame_saved_regs_hack): New function.
11365 (deprecated_set_frame_extra_info_hack): New function.
11366 * frame.h (deprecated_frame_xmalloc): Declare.
11367 (deprecated_set_frame_saved_regs_hack): Declare.
11368 (deprecated_set_frame_extra_info_hack): Declare.
11369
14abd0fb
MK
113702003-01-04 Mark Kettenis <kettenis@gnu.org>
11371
8ee53726
MK
11372 * configure.in: Move code that provides the --enable-gdbtk option
11373 right after the code that handles the --enable-tui option, and
11374 polish it somewhat.
11375 * configure: Regenerated.
11376
14abd0fb
MK
11377 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11378 AC_CHECK_FUNCS and remove the old check for pread64.
11379 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11380 * acconfig.h (_GNU_SOURCE): Add.
11381 (HAVE_PREAD64): Remove.
11382 * configure, aclocal.m4, config.in: Regenerated.
11383
b2fb4676
AC
113842003-01-03 Andrew Cagney <ac131313@redhat.com>
11385
11386 * alpha-tdep.c: Use get_frame_saved_regs.
11387 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11388 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11389 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11390 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11391 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11392
8dcde887
MK
113932003-01-03 Mark Kettenis <kettenis@gnu.org>
11394
11395 * configure.in: Remove all use of the SUBDIRS variable; add
11396 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11397 code providing the --enable-multi-ice option, and move it right in
11398 front of the code that checks whether gdbserver is supported.
11399 Polish that too.
11400 * configure: Regenerated.
11401 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11402 @SUBDIRS@.
11403
8ccd593b
AC
114042003-01-03 Andrew Cagney <cagney@redhat.com>
11405
11406 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11407 * avr-tdep.c, cris-tdep.c: Ditto.
11408 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11409 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11410
91151a06
MK
114112003-01-03 Mark Kettenis <kettenis@gnu.org>
11412
11413 * configure.in: Remove --enable-netrom option.
11414 * configure: Regenerated.
11415
8fe84d01
MK
114162003-01-03 Mark Kettenis <kettenis@gnu.org>
11417
11418 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11419 declaration for `struct re_pattern_buffer' instead.
11420 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11421
f0394be6
JB
114222003-01-03 J. Brobecker <brobecker@gnat.com>
11423
11424 * mdebugread.c (parse_symbol): Count until the stEnd matching
11425 the structure name.
11426
27e9bf90
MK
114272003-01-02 Mark Kettenis <kettenis@gnu.org>
11428
93d331ba
MK
11429 * configure.in: Remove --with-cpu option.
11430 subscripts. Remove evil changequotes here.
11431 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11432 * config.in, configure: Regenerated.
8ffd9b1b 11433
27e9bf90
MK
11434 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11435 * configure.in: Cleanup section that sources GDB and BFD configure
11436 subscripts. Remove evil changequotes here.
11437 * config.in, configure: Regenerated.
11438
50abf9e5
AC
114392003-01-02 Andrew Cagney <ac131313@redhat.com>
11440
11441 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11442 frame accessor methods.
11443 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11444 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11445 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11446 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11447 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11448 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11449 * z8k-tdep.c: Ditto.
8ffd9b1b 11450
287c1a40
MK
114512003-01-02 Mark Kettenis <kettenis@gnu.org>
11452
f5dbc56d
MK
11453 * configure.in: Remove UI_OUT configuration code.
11454 * ada-lang.c: Update assuming UI_OUT is always true.
11455 * Makefile.in (UIOUT_CFLAGS): Remove.
11456 * configure: Regenerated.
11457 * TODO: Remove blurb about elimination of -DUI_OUT.
11458
627af7ea
MK
11459 * configure.in: Move code that provides the --enable-gdbcli,
11460 --enable-gdbmi options right before the code that handles the
11461 --enable-tui option. Polish a bit.
11462 * configure: Regenerated.
11463
06825bd1
MK
11464 * configure.in: Rewrite check for GNU regex and the
11465 --without-included regex option, and move it into the "Checks for
11466 library functions" section. This makes us use the system regex
11467 again by default on systems with version 2 of the GNU C library.
11468 This was apparently broken.
11469 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11470 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11471 * config.in, configure: Regenerated.
11472
287c1a40
MK
11473 * configure.in: Move code that provides the --enable-tui option
11474 before the "Checks for libraries" section. Polish the code
11475 somewhat and set need_curses to yes if we build the TUI. Rewrite
11476 code that looks for a library providing termcap functionality to
11477 match more closely what's done in the Readline library, and move
11478 it into to the "Checks for libraries" section.
11479 * configure: Regenerated.
11480 * Makefile.in (TERMCAP): Remove variable.
11481 * config/i386/go32.mh (TERMCAP): Remove variable.
11482
684e56bf
AC
114832003-01-02 Andrew Cagney <ac131313@redhat.com>
11484
11485 * MAINTAINERS: Mention gdb_mbuild.sh.
11486 * gdb_mbuild.sh: Rewrite.
11487
e1ea1d75
MK
114882003-01-02 Mark Kettenis <kettenis@gnu.org>
11489
11490 * configure.in: Fix typo in last change.
11491 * config.in, configure: Regenerated.
11492
1b831c93
AC
114932003-01-02 Andrew Cagney <ac131313@redhat.com>
11494
11495 * valarith.c (value_binop): Delete obsolete code and comments.
11496 * configure.host: Ditto.
11497 * buildsym.h (make_blockvector): Ditto.
11498 * buildsym.c (make_blockvector): Ditto.
11499 * defs.h (enum language): Ditto.
11500 (chill_demangle): Ditto.
11501 * elfread.c (elf_symtab_read): Ditto.
11502 * dwarfread.c (CHILL_PRODUCER): Ditto.
11503 (set_cu_language): Ditto.
11504 (handle_producer): Ditto.
11505 * expprint.c (print_subexp): Ditto.
11506 * gdbtypes.c (chill_varying_type): Ditto.
11507 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11508 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11509 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11510 (chill_varying_type): Ditto.
11511 * language.h (_LANG_chill): Ditto.
11512 * language.c (binop_result_type, integral_type): Ditto.
11513 (character_type, string_type, structured_type): Ditto.
11514 (lang_bool_type, binop_type_check): Ditto.
11515 * stabsread.h (os9k_stabs): Ditto.
11516 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11517 (define_symbol, read_type, read_struct_fields): Ditto.
11518 (read_array_type, read_enum_type, read_huge_number): Ditto.
11519 (read_range_type, start_stabs): Ditto.
11520 * symfile.c (init_filename_language_table): Ditto.
11521 (add_psymbol_with_dem_name_to_list): Ditto.
11522 * symtab.c (symbol_init_language_specific): Ditto.
11523 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11524 * symtab.h (struct general_symbol_info): Ditto.
11525 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11526 * typeprint.c (typedef_print): Ditto.
11527 * utils.c (fprintf_symbol_filtered): Ditto.
11528 * valops.c (value_cast, search_struct_field, value_slice): Delete
11529 obsolete code.
11530 (varying_to_slice): Delete function.
11531 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11532 (varying_to_slice): Delete declaration.
11533 * MAINTAINERS: Update.
11534
8bb2c122
MK
115352003-01-02 Mark Kettenis <kettenis@gnu.org>
11536
97bf5e38
MK
11537 * configure.in: Reorganize "Checks for library functions section"
11538 a bit. Remove check for `btowc' and `isascii' functions.
11539 * configure: Regenerated.
11540
5ee754fc
MK
11541 * acconfig.h (_MSE_INT_H): Remove.
11542 * configure.in: Create "Checks for header files" section, and move
11543 appropriate tests there. Don't check for objlist.h, wchar.h,
11544 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11545 misdetection fix. Also add "Checks for types", "Checks for
11546 compiler characteristics" and "Checks for library functions"
11547 sections.
11548 * config.in, configure: Regenerated.
11549
8bb2c122
MK
11550 * configure.in: Create "Checks for programs" section, and move
11551 appropriate tests there.
11552
9a156167
MK
115532003-01-01 Mark Kettenis <kettenis@gnu.org>
11554
11555 * configure.in: Create "Checks for libraries" section, and move
11556 appropriate tests there. Cleanup check for wctype in libw. Use
11557 AC_SEARCH_LIBS to see whether we need libsocket.
11558 * configure: Regenerated.
11559
a80e2bcb 11560For older changes see ChangeLog-2002
c906108c
SS
11561\f
11562Local Variables:
11563mode: change-log
11564left-margin: 8
11565fill-column: 74
11566version-control: never
11567End:
This page took 1.000944 seconds and 4 git commands to generate.