* amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d9f8c85b
MK
12004-04-10 Mark Kettenis <kettenis@gnu.org>
2
fa34704a
MK
3 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
4 (amd64nbsd_mcontext_addr): New function.
5 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8
403e1656
MK
9 * corelow.c (core_xfer_partial): Fix coding standards violation.
10 Add support for TARGET_OBJECT_WCOOKIE.
11
a57e5a95
MK
12 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
13 deprecated_pc_in_sigtramp.
14 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
15 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
16 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
17 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
18 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
19 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
20 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
21
377d9ebd
MK
22 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
23 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
24 Fix typo.
25
f0ef85a5
MK
26 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
27 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
28 (amd64_collect_fxsave): Likewise.
29
d9f8c85b
MK
30 * i386-sol2-tdep.c: Include "gdb_string.h".
31 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
32 name.
33 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
34
75f501b5
MK
352004-04-10 Mark Kettenis <kettenis@gnu.org>
36
37 * i386-sol2-tdep.c: Include "solib-svr4.h".
38 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
39 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
40 * config/i386/tm-i386sol2.h: Include :solib.h".
41 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
42 solib-svr4.o and solib-legacy.o.
43 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
44 solib-svr4.o.
45
b31bc724
MK
462004-04-09 Mark Kettenis <kettenis@gnu.org>
47
18bbbd9e
MK
48 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
49 whether a register is supplied by PTRACE_GETFPREGS.
50 (store_inferior_registers): Likewise.
51 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
52 whether a register is supplied by PT_GETFPREGS.
53 (store_inferior_registers): Likewise.
54
3c30bf1b
MK
55 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
56 * config/i386/linux64.mt (TDEPFILES): Likewise.
57
a4194092
MK
58 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
59
911bc6ee
MK
60 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
61 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
62 the program counter is in the range specified by `struct
63 gdbarch_tdep'.
64 * amd64-linux-tdep.c: Include "symtab.h".
65 (amd64_linux_pc_in_sigtramp): Remove function.
66 (amd64_linux_sigtramp_p): New function.
67 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
68 deprecated_pc_in_sigtramp.
69 * amd64nbsd-tdep.c: Include "symtab.h".
70 (amd64nbsd_sigtramp_p): New function.
71 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
72 deprecated_pc_in_sigtramp.
73 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
74 few comments.
75 (amd64obsd_pc_in_sigtramp): Remove function.
76 (amd64obsd_sigtramp_p): New function.
77 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
78 deprecated_pc_in_sigtramp.
79 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
80 (i386bsd_pc_ins_sigtramp): Remove prototype.
81 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
82 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
83 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
84 the program counter is in the range specified by `struct
85 gdbarch_tdep'.
86 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
87 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
88 (i386_go32_pc_in_sigtramp): Remove function.
89 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
90 Initialize TDEP->sigtramp_p.
91 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
92 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
93 deprecated_pc_in_sigtramp.
94 * i386-linux-tdep.c: Adjust comments.
95 (i386_linux_pc_in_sigtramp): Remove function.
96 (i386_linux_sigtramp_p): New function.
97 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
98 deprecated_pc_in_sigtramp.
99 * i386-nto-tdep.c: Update copyright year.
100 (i386nto_pc_in_sigtramp): Remove function.
101 (i386nto_sigtramp_p): New function.
102 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
103 SP_REGNUM.
104 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
105 deprecated_pc_in_sigtramp.
106 * i386-sol2-tdep.c: Update copyright year.
107 (i386_sol2_pc_in_sigtramp): Remove function.
108 (i386_sol2_sigtramp_p): New function.
109 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
110 deprecated_pc_in_sigtramp.
111 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
112 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
113 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
114 deprecated_sigtramp_start and deprecated_sigtramp_end.
115 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
116 (i386nbsd_pc_in_sigtramp): Remove function.
117 (i386nbsd_sigtramp_p): New function.
118 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
119 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
120 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
121 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
122 (i386obsd_pc_in_sigtramp): Remove function.
123 (i386obsd_sigtramp_p): New function.
124 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
125 functions.
126 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
127 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
128 TDEP->sigtramp_p.
129 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
130 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
131 dependencies.
132
e083e6ec
MK
133 * config/i386/i386aout.mt: Remove file.
134
bd153b94
MK
135 * configure.tgt: Remove i[34567]86-*-go32*,
136 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
137 and i[34567]86-*-isc*. Set gdb_target to i386 for
138 i[34567]86-*-netware* and i[34567]86-*-*.
139 * config/i386/i386.mt: New file.
140 * config/i386/embed.mt: Remove file.
141 * config/i386/go32.mt: Remove file.
142 * config/i386/i386nw.mt: Remove file.
143 * config/i386/i386v.mt: Remove file.
144 * config/i386/tm-go32.h: Remove file.
145
4a1bcc8c
MK
146 * tui/tui-hooks.c: Include "readline/readline.h" after
147 "gdb_curses.h" instead of before.
148 * tui/tui-io.c: Likewise.
149
f9a79064
MK
150 * tui/tui.c: Fix typo in comment.
151
b31bc724
MK
152 * sparc64-tdep.c (sparc_address_from_register): Remove function.
153
f83f82bc
AC
1542004-04-08 Andrew Cagney <cagney@redhat.com>
155
156 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
157 (deprecated_exception_support_initialized): Declare.
158 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
159 (initialize_hp_cxx_exception_support)
160 (child_enable_exception_callback): Update.
161 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
162 (deprecated_exception_support_initialized): Rename
163 deprecated_exception_catchpoints_are_fragile and
164 deprecated_exception_support_initialized.
165 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
166
167 * symtab.c (deprecated_hp_som_som_object_present): Rename
168 hp_som_som_object_present.
169 * symtab.h (deprecated_hp_som_som_object_present): Declare.
170 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
171 Update. Delete extern declaration.
172 * valops.c (hp_som_som_object_present): Ditto.
173 * parse.c (deprecated_hp_som_som_object_present)
174 (parse_nested_classes_for_hpacc): Ditto.
175 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
176 * hppa-hpux-tdep.c (hp_som_som_object_present)
177 (initialize_hp_cxx_exception_support): Ditto.
178 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
179 * cp-valprint.c (hp_som_som_object_present)
180 (cp_print_class_method): Ditto.
181 * c-typeprint.c (hp_som_som_object_present):
182 (c_type_print_base): Ditto.
183 * c-exp.y (hp_som_som_object_present): Ditto.
184
fb2be677
AC
1852004-04-08 Andrew Cagney <cagney@redhat.com>
186
187 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
188 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
189 (frame_unwind_find_by_frame): Re-implement the unwind code so
190 that it can both prepend and append sniffers. Replace
191 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
192 * tramp-frame.c (tramp_frame_append): Use
193 frame_unwind_prepend_unwinder.
194 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
195 frame_unwind_register_unwinder.
196 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
197 tramp_frame_append.
198 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
199 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
200 (mips_linux_init_abi): Update.
201
67faf007
KB
2022004-04-08 Kevin Buettner <kevinb@redhat.com>
203
204 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
205 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
206 file support.
207
8973ff21
KB
2082004-04-07 Kevin Buettner <kevinb@redhat.com>
209
210 * ia64-tdep.c (elf.h): Don't include.
211 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
212
4a0e2f88
JM
2132004-04-07 Jason Molenda (jmolenda@apple.com)
214
215 * frame.h: Typeo corrections in comments.
216
9872ad24
JB
2172004-04-07 Jim Blandy <jimb@redhat.com>
218
219 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
220 %esp and %ebp
221
70b216c8
MK
2222004-04-07 Mark Kettenis <kettenis@gnu.org>
223
11d5789c
MK
224 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
225 * config/sparc/linux64.mt (TDEPFILES): Likewise.
226 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
227 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
228 and solib-legacy.o.
229 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
230 solib-svr4.o.
231 * config/sparc/tm-sol2.h: Update copyright year. Include
232 "solib.h".
233
70b216c8
MK
234 * sparc-sol2-tdep.c: Update copyright year. Include
235 "solib-svr4.h".
236 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
237 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
238 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 239 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
240 dependencies.
241
6339dc9e
AC
2422004-04-06 Andrew Cagney <cagney@redhat.com>
243
244 * infttrace.c: Include "infttrace.h".
245 * infttrace.h: Include "target.h".
246 * Makefile.in (infttrace_h): Update.
247 (infttrace.o): Update.
248
93449403
AC
2492004-04-06 Andrew Cagney <cagney@redhat.com>
250
6d518969
AC
251 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
252 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
253 move extern declarations from here ...
254 * infttrace.h: ... to here.
255 * Makefile.in (hppah-nat.o): Update dependencies.
256
85f4f2d8
AC
257 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
258 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
259 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
260 (hppa_breakpoint_from_pc): Delete.
261
93449403
AC
262 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
263
71456ec6
AC
2642004-04-05 Andrew Cagney <cagney@redhat.com>
265
266 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
267 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
268 <sys/file.h>.
269
4c02c60c
AC
2702004-04-06 Randolph Chung <tausq@debian.org>
271
272 Committed by Andrew Cagney (mechanical change).
273 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
274 exception_catchpoints_are_fragile, find_stub_with_shl_get,
275 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
276 child_enable_exception_callback, current_ex_event,
277 null_symtab_and_line, child_get_current_exception_event,
278 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
279 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
280 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
281 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
282 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
283 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
284 Move hpux-specific definitions ...
285 * hppa-hpux-tdep.c: ... to here.
286
3a515653
AC
2872004-04-05 Andrew Cagney <cagney@redhat.com>
288
289 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
290 skip_prologue_using_sal.
291
c1730d02
AC
2922004-04-05 Andrew Cagney <cagney@redhat.com>
293
294 * config/i386/tm-i386.h: Delete file.
295 * config/i386/tm-vxworks.h: Update copyright, do not include
296 "tm-i386.h".
297 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
298 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
299 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
300 * config/i386/ncr3000.mt (TM_FILE): Delete.
301 * config/i386/interix.mt (TM_FILE): Delete.
302 * config/i386/i386v.mt (TM_FILE): Delete.
303 * config/i386/i386nw.mt (TM_FILE): Delete.
304 * config/i386/i386gnu.mt (TM_FILE): Delete.
305 * config/i386/i386aout.mt (TM_FILE): Delete.
306 * config/i386/embed.mt (TM_FILE): Delete.
307
8b67aa36
KB
3082004-04-05 Kevin Buettner <kevinb@redhat.com>
309
310 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
311 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
312 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
313 (accg7_regnum): New constants.
314 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
315 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
316 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
317 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
318 for accg registers.
319 (frv_register_sim_regno): Update spr_map[].
320
3c7012f5
AC
3212004-04-04 Andrew Cagney <cagney@redhat.com>
322
323 * config/mips/xm-riscos.h: Delete.
324 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
325 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
326 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
327 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
328 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
329 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
330 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
331 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
332 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
333 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
334 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
335 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
336 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
337 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
338 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
339 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
340 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
341 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
342 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
343 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
344 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
345 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
346 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
347 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
348 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
349 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
350
351 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
352 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
353 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
354 * configure.host: Remove m680[01]0-sun-sunos3*,
355 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
356 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
357 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
358 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
359 mips-*-riscos*.
360 * NEWS: Mention removed systems.
361
99d16a21
AC
3622004-04-04 Andrew Cagney <cagney@redhat.com>
363
364 GDB 6.1 release created from 6.1 branch.
365
6cdf9d98
AC
3662004-04-04 Andrew Cagney <cagney@redhat.com>
367
98d346c3
AC
368 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
369 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
370 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
371
6cdf9d98
AC
372 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
373 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
374 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
375
859a326d
JB
3762004-04-03 Jim Blandy <jimb@redhat.com>
377
378 * MAINTAINERS: Chris Faylor has changed employers; add him to
379 "paper trail" section, and update his E-mail address.
380
b87178c3
AC
3812004-04-03 Andrew Cagney <cagney@redhat.com>
382
4ea2acf0
AC
383 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
384 generic dummy frames.
385 * dummy-frame.c: Update copyright.
386 (dummy_frame_sniffer): Delete check for generic dummy frames.
387
d0bd2d18
AC
388 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
389 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
390 (REG_PARM_STACK_SPACE): Delete.
391 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
392 Inline reference to REG_PARM_STACK_SPACE.
393
b87178c3
AC
394 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
395 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
396 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
397 (FRAME_BASE_BEFORE_SIGTRAMP)
398 (hppa32_hpux_frame_base_before_sigtramp)
399 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
400 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
401 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
402 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
403 (FRAME_BASE_BEFORE_SIGTRAMP)
404 (hppa64_hpux_frame_base_before_sigtramp)
405 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
406
43e2e1a0
AC
4072004-04-03 Andrew Cagney <cagney@redhat.com>
408
409 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
410
ddc135a4
AC
4112004-04-02 Andrew Cagney <cagney@redhat.com>
412
413 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
414 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
415 * dummy-frame.h: Delete out-of-date comments.
416 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
417 * gdbarch.h, gdbarch.c: Re-generate.
418
d15bfd3a
AC
4192004-04-02 Joel Brobecker <brobecker@gnat.com>
420
421 Committed by Andrew Cagney <cagney@redhat.com>.
422 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
423 into account an instruction saving a register if we have already
424 seen an earlier instruction saving that same register.
425
f04ceafa
AC
4262004-04-02 Andrew Cagney <cagney@redhat.com>
427
08be3abd
AC
428 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
429 * gdbarch.h, gdbarch.c: Re-generate.
430 * frame.c (legacy_get_prev_frame): Delete references to
431 DEPRECATED_INIT_FRAME_PC_FIRST.
432
f04ceafa
AC
433 * infrun.c (pc_in_sigtramp): Delete function.
434 (check_sigtramp2): Inline call to pc_in_sigtramp, use
435 get_frame_type.
436
08e69816
AC
4372004-04-02 Andrew Cagney <cagney@redhat.com>
438
439 * infrun.c (handle_step_into_function): Delete code conditional on
440 legacy_frame_p.
441 (handle_inferior_event, step_over_function): Ditto.
442
adb54772
AC
4432004-04-02 Andrew Cagney <cagney@redhat.com>
444
445 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
446 "previous frame inner to this frame" test.
447
304396fb
AC
4482004-04-02 Andrew Cagney <cagney@redhat.com>
449
450 * frame.c (safe_frame_unwind_memory): New function.
451 * frame.h (safe_frame_unwind_memory): Declare. Update description
452 of /safe_/ methods.
453 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
454 "next_frame". Use safe_frame_unwind_memory.
455 (tramp_frame_sniffer): Update call to tramp_frame_start.
456
6502dd73
DJ
4572004-04-01 Daniel Jacobowitz <drow@mvista.com>
458
459 * dwarf2read.c (dwarf2_objfile_data_key): New.
460 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
461 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
462 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
463 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
464 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
465 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
466 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
467 Remove variables.
468 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
469 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
470 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
471 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
472 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
473 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
474 Remove macros.
475 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
476 data.
477 (dwarf2_locate_sections, dwarf2_build_psymtabs)
478 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
479 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
480 (read_partial_die, read_full_die, read_indirect_string)
481 (dwarf_decode_line_header, dwarf_decode_macros)
482 (dwarf2_symbol_mark_computed): Remove use of removed macros.
483 Update uses of removed variables.
484 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
485 of removed macros.
486 (_initialize_dwarf2_read): New function.
487 * symfile.h (dwarf2_has_info): Update prototype.
488 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
489 * elfread.c (elf_symfile_read): Likewise.
490
408752b0
JB
4912004-04-01 Jim Blandy <jimb@redhat.com>
492
9f744501
JB
493 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
494 function for register numbers on all the rs6000-derived targets.
495 (rs6000_gdbarch_init): Don't register a separate
496 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
497 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
498 variants.
499
408752b0
JB
500 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
501 numbering.
502
2de41bce
PH
5032004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
504
505 * valarith.c: Update copyright notice.
506 (value_add): Handle range types.
507 (value_sub): Ditto.
508 (value_equal): Ditto.
509 (value_less): Ditto.
510 (value_neg): Ditto.
511 (value_complement): Ditto.
512 (value_binop): Simplify slightly by using is_integral_type and
513 eliminiating unnecessary COERCE_ENUMs.
514
5613d8d3
AC
5152004-03-31 Andrew Cagney <cagney@redhat.com>
516
517 * frame.h (frame_unwind_id): Declare.
518 * frame.c (frame_unwind_id): New function.
519 (get_prev_frame_1): New function.
520 (frame_debug_got_null_frame): New function.
521 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
522 code proper to prev_frame, update description.
523 * infrun.c (step_over_function): Use frame_unwind_id.
524
c4557624
JB
5252004-04-31 J. Brobecker <brobecker@gnat.com>
526
527 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
528 (hppa64_push_dummy_call): Likewise.
529
3e6bb910
JB
5302004-03-30 Jim Blandy <jimb@redhat.com>
531
532 From Ulrich Weigand:
533 * utils.c (query): Do not use a va_list variable multiple times.
534
a2f23071
DJ
5352004-03-29 Daniel Jacobowitz <drow@mvista.com>
536
537 * Makefile.in (linux_nat_h): Update dependencies.
538 * configure.in: Check for <gnu/libc-version.h>.
539 * configure: Regenerate.
540 * config.in: Regenerate.
541 * linux-nat.h: Include "target.h". Add waitstatus field to
542 struct lwp_info.
543 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
544 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
545 to.
546 (lin_lwp_handle_extended): New function. Handle clone events.
547 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
548 thread exit events.
549 (child_wait): Handle clone events.
550 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
551 * linux-nat.c (linux_enable_event_reporting): Turn on
552 PTRACE_O_TRACECLONE.
553 (linux_handle_extended_wait): Handle clone events.
554 * thread-db.c: Include <gnu/libc-version.h>.
555 (struct private_thread_info): Add dying flag.
556 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
557 higher.
558 (attach_thread): Update comments. Handle dying threads.
559 (detach_thread): Set the dying flag.
560 (check_event): Always call attach_thread.
561
8d5f9dcb
DJ
5622004-03-29 Daniel Jacobowitz <drow@mvista.com>
563
564 * mips-tdep.c (mips_pdr_data): New.
565 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
566 (_initialize_mips_tdep): Initialize mips_pdr_data.
567
66337bb1
CV
5682004-03-29 Corinna Vinschen <vinschen@redhat.com>
569
570 * minsyms.c (install_minimal_symbols): Move dropping leading
571 char from linkage name from here...
572 (prim_record_minimal_symbol_and_info): ...to here. Simplify
573 test for "__gnu_compiled*" symbols.
574
e802b915
JB
5752004-03-28 Jim Blandy <jimb@redhat.com>
576
577 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
578 registers to temp register r0 and byte stores as prologue
579 instructions.
580
72b56458
AC
5812004-03-28 Andrew Cagney <cagney@redhat.com>
582
583 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
584 arm*-*-*.
585
0bfbda3b
SC
5862004-03-28 Stephane Carrez <stcarrez@nerim.fr>
587
588 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
589 and switch the layout to force a display of register window.
590
5a7225ed
JB
5912004-02-26 J. Brobecker <brobecker@gnat.com>
592
593 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
594 of the INTEGER class.
595
81a07a45
JB
5962004-03-26 Jim Blandy <jimb@redhat.com>
597
598 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
599 bytes long on PPC GNU/Linux.
600
8c691c7a
DC
6012004-03-26 David Carlton <carlton@kealia.com>
602
603 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
604
103a0089
AC
6052004-03-25 Andrew Cagney <cagney@redhat.com>
606
607 * PROBLEMS: Add general section titles, remove references to
608 specific releases.
609
7a5ea0d4
DJ
6102004-03-25 Daniel Jacobowitz <drow@mvista.com>
611
612 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
613 INT_REGISTER_SIZE.
614 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
615 FP_REGISTER_VIRTUAL_SIZE.
616 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
617 of DEPRECATED_REGISTER_RAW_SIZE.
618 (arm_register_type): Add gdbarch argument.
619 (arm_register_raw_size, arm_register_virtual_size): Delete.
620 (arm_register_byte, arm_extract_return_value)
621 (arm_store_return_value, arm_get_longjmp_target): Update references
622 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
623 (arm_gdbarch_init): Likewise. Don't set
624 deprecated_register_raw_size, deprecated_register_virtual_size,
625 deprecated_max_register_raw_size,
626 deprecated_max_register_virtual_size, or
627 deprecated_max_register_virtual_type. Do set register_type.
628 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
629 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
630 (FP_REGISTER_VIRTUAL_SIZE): Delete.
631 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
632 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
633 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
634 INT_REGISTER_SIZE.
635 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
636 (remote_rdp_store_register): Likewise.
637
5792a79b
DJ
6382004-03-24 Daniel Jacobowitz <drow@mvista.com>
639
640 * Makefile.in (mips-linux-tdep.o): Update dependencies.
641 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
642 to after osabi initialization.
643 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
644 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
645 functions.
646 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
647 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
648 variables.
649 (mips_linux_init_abi): Append signal trampoline unwinders.
650
1196bfda
AC
6512004-03-24 Andrew Cagney <cagney@redhat.com>
652
653 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
654 * tramp-frame.c: Include "gdb_assert.h".
655 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
656 correct sizeof.
657 (tramp_frame_append): Validate the tramp frame's instructions.
658 * Makefile.in (tramp-frame.o): Update dependencies.
659
4be282b4
AC
6602004-03-23 Andrew Cagney <cagney@redhat.com>
661
662 * trad-frame.h (trad_frame_set_reg_addr): Declare.
663
69aec09b
AC
6642004-03-23 Andrew Cagney <cagney@redhat.com>
665
666 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
667 Nasser as past testsuite/lib/ (and other) maintainers.
668
63ed89b4
DJ
6692004-03-23 Daniel Jacobowitz <drow@mvista.com>
670
671 * infcmd.c (attach_command): Reread symbols if we already have
672 an exec file.
673
f3b36427
AC
6742004-03-23 Andrew Cagney <cagney@redhat.com>
675
676 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
677
aa2a3f87
AC
6782004-03-23 Andrew Cagney <cagney@redhat.com>
679
680 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
681 * gdbarch.h, gdbarch.c: Re-generate.
682 * i386obsd-tdep.c (i386obsd_init_abi): Update.
683 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
684 * i386bsd-tdep.c (i386bsd_init_abi): Update.
685 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
686 (DEPRECATED_SIGTRAMP_START): Update.
687 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
688 (DEPRECATED_SIGTRAMP_START): Update.
689 * blockframe.c (find_pc_sect_partial_function): Update.
690 * arch-utils.c (legacy_pc_in_sigtramp): Update.
691
00cac895
DJ
6922004-03-23 Daniel Jacobowitz <drow@mvista.com>
693
694 * remote.c (remote_open_1): Reopen the exec file and reread symbols
695 if necessary.
696
f561f026
AC
6972004-03-23 Andrew Cagney <cagney@redhat.com>
698
699 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
700 predicate, deprecate.
701 * gdbarch.h, gdbarch.c: Re-generate.
702 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
703 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
704 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
705 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
706 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
707 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
708 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
709 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
710 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
711 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
712 * blockframe.c (find_pc_partial_function): Update.
713 * breakpoint.c (bpstat_what): Update.
714 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
715 * frv-linux-tdep.c (frv_linux_init_abi): Update.
716 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
717 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
718 * i386-interix-tdep.c (i386_interix_init_abi): Update.
719 * i386-linux-tdep.c (i386_linux_init_abi): Update.
720 * i386-nto-tdep.c (i386nto_init_abi): Update.
721 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
722 * i386-tdep.c (i386_sigtramp_frame_sniffer)
723 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
724 * i386bsd-tdep.c (i386bsd_init_abi): Update.
725 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
726 * i386obsd-tdep.c (i386obsd_init_abi): Update.
727 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
728 * infrun.c (pc_in_sigtramp): Update.
729 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
730 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
731 * mips-tdep.c (mips_gdbarch_init): Update.
732 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
733 * ppc-linux-tdep.c: Update comment.
734 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
735 * shnbsd-tdep.c (shnbsd_init_abi): Update.
736 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
737 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
738 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
739 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
740 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
741 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
742 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
743 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
744
8050c72f
AC
7452004-03-23 Andrew Cagney <cagney@redhat.com>
746
d2259dd3
AC
747 * tramp-frame.h, tramp-frame.h: New files.
748 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
749 Update rules to include "tramp-frame.h" and "tramp-frame.c".
750
8050c72f
AC
751 * Makefile.in: Update all dependencies.
752
0db9b4b7
AC
7532004-03-23 Andrew Cagney <cagney@redhat.com>
754
755 * Makefile.in (trad_frame_h): Add $(frame_h).
756 * trad-frame.h: Update copyright. Include "frame.h".
757 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
758 (trad_frame_set_id, trad_frame_get_id): Declare.
759 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
760 * trad-frame.c: Update copyright.
761 (struct trad_frame_cache): Define.
762 (trad_frame_cache_zalloc): New function.
763 (trad_frame_set_id, trad_frame_get_id): New functions.
764 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
765
8e645ae7
AC
7662004-03-22 Andrew Cagney <cagney@redhat.com>
767
768 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
769 s390_pltstub_unwind_cache.
770 (s390_stub_frame_unwind_cache): Rename
771 s390_pltstub_frame_unwind_cache.
772 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
773 (s390_stub_frame_prev_register): Rename
774 s390_pltstub_frame_prev_register.
775 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
776 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
777
778 From Ulrich Weigand:
779 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
780 pointer calls like PLT calls.
781
34fcf120
DJ
7822004-03-22 Daniel Jacobowitz <drow@mvista.com>
783
784 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
785 PC rather than the partial function start address. Use the start
786 address to sanity check the found PDR.
787
5b917078
DJ
7882004-03-22 Daniel Jacobowitz <drow@mvista.com>
789
790 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
791 linux_handle_extended_wait.
792
8adf9e78
AC
7932004-03-22 Andrew Cagney <cagney@redhat.com>
794
c3122434
AC
795 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
796 function.
797
8adf9e78
AC
798 * frame.h (generic_pop_current_frame): Delete declaration.
799 (deprecate_pop_dummy_frame): Deprecate
800 generic_pop_dummy_frame.
801 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
802 (generic_pop_current_frame): Delete function.
803 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
804 generic_pop_current_frame.
805 * v850-tdep.c (v850_pop_frame): Update.
806 * mcore-tdep.c (mcore_pop_frame): Update.
807 * sh64-tdep.c (sh64_pop_frame): Update.
808 * h8300-tdep.c (h8300_pop_frame): Update.
809
90ba813f
AC
8102004-03-22 Andrew Cagney <cagney@redhat.com>
811
812 * frame.h (deprecated_pc_in_call_dummy): Rename
813 generic_pc_in_call_dummy.
814 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
815 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
816 generic_pc_in_call_dummy.
817 (pc_in_dummy_frame): Make static.
818 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
819 * gdbarch.h, gdbarch.c: Re-generate.
820 * dummy-frame.c (dummy_frame_sniffer): Simplify.
821 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
822 (legacy_get_prev_frame): Ditto.
823 * inferior.h: Delete reference to generic_pc_in_call_dummy in
824 comment.
825
ca4bb888
AC
8262004-03-21 Andrew Cagney <cagney@redhat.com>
827
244675f9
AC
828 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
829 declaration and out-of-date comment.
830 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
831 Delete function.
832 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
833 deprecated_pc_in_call_dummy.
834
ca4bb888
AC
835 * infrun.c (handle_inferior_event): For non legacy frames, use the
836 frame ID and frame type to identify a signal trampoline. Update
837 comments.
838
1777c7b4
NW
8392004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
840
841 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
842 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
843
82417da5
AC
8442004-03-21 Andrew Cagney <cagney@redhat.com>
845
846 * frame-unwind.h: Update copyright.
847 (struct frame_data): Add opaque declaration.
848 (frame_sniffer_ftype): Declare.
849 (struct frame_unwind): Add "unwind_data" and "sniffer".
850 (frame_unwind_register_unwinder): Declare.
851 (frame_unwind_find_by_frame): Add parameter "this_cache".
852 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
853 (legacy_get_prev_frame, legacy_get_prev_frame)
854 (get_frame_type): Pass the prologue_cache to
855 frame_unwind_find_by_frame.
856 * frame-unwind.c (struct frame_unwind_table_entry): Add field
857 "unwinder".
858 (frame_unwind_register_unwinder): New function.
859 (frame_unwind_find_by_frame): Handle an unwind sniffer.
860
b2ba182e
PH
8612004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
862
863 * bcache.c (print_percentage): Use floating point to avoid
864 incorrect results when portion*100 overflows.
865
81332287
KB
8662004-03-19 Kevin Buettner <kevinb@redhat.com>
867
868 * ppc_tdep.h (ppc_linux_frame_saved_pc)
869 (ppc_linux_init_extra_frame_info)
870 (ppc_linux_frameless_function_invocation)
871 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
872 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
873 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
874 (rs6000_frame_chain): Delete declarations.
875 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
876 (ppc_linux_init_extra_frame_info)
877 (ppc_linux_frameless_function_invocation)
878 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
879 (ppc_linux_init_abi): Remove registration of above deleted functions.
880 * rs6000-tdep.c (rs6000_init_extra_frame_info)
881 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
882 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
883 (rs6000_pop_frame, rs6000_frameless_function_invocation)
884 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
885 (rs6000_gdbarch_init): Remove registration of above deleted functions.
886 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
887 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
888 frame management for all OSABIs.
889
61a65099
KB
8902004-03-19 Andrew Cagney <cagney@redhat.com>
891
892 Committed by Kevin Buettner <kevinb@redhat.com>.
893
894 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
895 Update copyright.
896 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
897 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
898 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
899 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
900 unwinders. #ifdef legacy frame code.
901 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
902 "frame-base.h".
903 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
904 (struct rs6000_frame_cache, rs6000_frame_cache)
905 (rs6000_frame_this_id, rs6000_frame_prev_register)
906 (rs6000_frame_sniffer, rs6000_frame_unwind)
907 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
908 (rs6000_frame_base): Implement a traditional frame unwinder.
909 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
910 frame unwinder.
911
88f7da05
KB
9122004-03-19 Kevin Buettner <kevinb@redhat.com>
913
914 * breakpoint.c (adjust_breakpoint_address): Don't adjust
915 breakpoint address for watchpoints or the catch eventpoints.
916 Add new paramter ``bptype''. Adjust all callers.
917
f826dce1
AC
9182004-03-19 Andrew Cagney <cagney@redhat.com>
919
33cb8b0f
AC
920 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
921
f826dce1
AC
922 * PROBLEMS: Delete note that ARM does not use frame code, problem
923 fixed.
924
43b1ab88
AC
9252004-03-18 Andrew Cagney <cagney@redhat.com>
926
292ab034
AC
927 * stack.c (return_command): Delete code wrapped in #ifdef
928 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
929
43b1ab88
AC
930 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
931
dbfe4626
AC
9322004-03-18 Andrew Cagney <cagney@redhat.com>
933
934 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
935 DEPRECATED_IN_SIGTRAMP.
936 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
937 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
938 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
939 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
940 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
941 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
942 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
943 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
944 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
945 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
946
0cad6aec
AC
9472004-03-18 Andrew Cagney <cagney@redhat.com>
948
949 * frame-base.c: Update copyright. Include "gdb_obstack.h".
950 (struct frame_base_table_entry): Define.
951 (struct frame_base_table): Re-implement as a linked list.
952 (frame_base_init): Re-implement.
953 (frame_base_table): Delete function.
954 (append_predicate): Delete function.
955 (frame_base_append_sniffer): Update.
956 (frame_base_set_default): Update.
957 (frame_base_find_by_frame): Update.
958 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
959 * Makefile.in (frame-base.o): Update dependencies.
960
9982c2e7
AC
9612004-03-17 Andrew Cagney <cagney@redhat.com>
962
963 * frame.c (legacy_get_prev_frame): Pass correct frame to
964 frame_unwind_find_by_frame.
965
8dfe8985
DC
9662004-03-17 David Carlton <carlton@kealia.com>
967
968 * NEWS: Mention C++ nested types and namespaces
969
ed47347a
MC
9702004-03-16 Michael Chastain <mec.gnu@mindspring.com>
971
972 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
973 and "Regressions since gdb 5.3.". Add known regressions since
974 gdb 6.0.
975
90aeadfc
DC
9762004-03-16 David Carlton <carlton@kealia.com>
977
978 * dwarf2read.c (process_structure_scope): Process children even
979 when we're a declaration.
980
73912b9b
AC
9812004-03-16 Andrew Cagney <cagney@redhat.com>
982
983 * symtab.h (find_pc_sect_partial_function): Delete declaration.
984 * blockframe.c (find_pc_partial_function)
985 (find_pc_sect_partial_function): Merge into a single
986 find_pc_partial_function.
987
283accbc
MK
9882004-03-16 Mark Kettenis <kettenis@gnu.org>
989
990 * i386bsd-nat.c: s/regno/regnum/g.
991 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
992 FP0_REGNUM.
993 (store_inferior_registers): Likewise.
994
f5b1afdf
MK
9952004-03-16 Mark Kettenis <kettenis@gnu.org>
996
997 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
998 of i387_fill_fsave.
999 (store_inferior_registers): Call i387_collect_fsave and
1000 i387_collect_fxsave instead of i387_fill_fsave and
1001 i387_fill_fxsave.
1002
41fe5eb3
AC
10032004-03-15 Andrew Cagney <cagney@redhat.com>
1004
1005 * Makefile.in (frame-unwind.o): Update dependencies.
1006 * frame-unwind.c: Include "gdb_obstack.h".
1007 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
1008 parameter.
1009 (append_predicate): Delete function.
1010 (struct frame_unwind_table_entry): New structure.
1011 (struct frame_unwind_table): Replace "sniffer" with "head" and
1012 "tail".
1013 (frame_unwind_append_sniffer): Update.
1014 (frame_unwind_find_by_frame): Update.
1015 (_initialize_frame_unwind): Registe frame_unwind_init using
1016 gdbarch_data_register_pre_init.
1017
3f63813d
MK
10182004-03-15 Mark Kettenis <kettenis@gnu.org>
1019
1020 * i386bsd-nat.c: Update copyright year.
1021 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
1022 define unconditionally.
1023
3248c325 10242004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
1025
1026 * i387-tdep.h (i387_collect_fsave): New prototype.
1027 * i387-tdep.c (i387_collect_fsave): New function containing most
1028 of the code from i387_fill_fsave.
3248c325 1029 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 1030
871fbe6a
MK
10312004-03-15 Mark Kettenis <kettenis@gnu.org>
1032
1033 * i386-linux-tdep.c: Update copyright year.
1034 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
1035 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
1036 svr4_ilp32_link_map_offsets instead of
1037 i386_linux_svr4_fetch_link_map_offsets.
1038
8176b9b8
DC
10392004-03-15 David Carlton <carlton@kealia.com>
1040
1041 Fix for PR c++/1553:
1042 * dwarf2read.c (read_structure_type): Determine type name by
1043 calling determine_class_name.
1044 (determine_class_name): New.
1045 (determine_prefix): Look at TYPE_TAG_NAME and call
1046 determine_class_name when appropriate.
1047 (determine_prefix_aux, class_name): Delete.
9d58e29d 1048 (read_namespace): Set die->type.
8176b9b8 1049
fe8bf7d7
KB
10502004-03-15 Kevin Buettner <kevinb@redhat.com>
1051
1052 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
1053 unused macro definition. The definition in target.h (or perhaps
1054 elsewhere) takes precedence.
1055
ed6edd9b
AC
10562004-03-15 Andrew Cagney <cagney@redhat.com>
1057
f9be684a
AC
1058 * ppc-tdep.h: Update copyright.
1059 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
1060 function signatures to match "regsets.h".
1061 * ppc-linux-tdep.c: Include "regset.h".
1062 (ELF_GREGSET_SIZE): Delete.
1063 (right_supply_register): New function.
1064 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
1065 using right_supply_register.
1066 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
1067 functions.
1068 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
1069 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
1070 (_initialize_ppc_linux_tdep): Do not register
1071 ppc_linux_regset_core_fns.
1072 (ppc_linux_regset_from_core_section): Replace
1073 fetch_core_registers.
1074 (ppc_linux_regset_core_fns): Delete.
1075 * ppc-linux-nat.c: (right_fill_reg): New function.
1076 (supply_gregset): Update call to ppc_linux_supply_gregset.
1077 (fill_gregset): Clear the register set, use right_fill_reg.
1078 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
1079 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
1080
ed6edd9b
AC
1081 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
1082 unsigned.
1083
030f20e1
AC
10842004-03-15 Andrew Cagney <cagney@redhat.com>
1085
1086 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
1087 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
1088 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
1089 and register_gdbarch_data.
1090 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
1091 (struct gdbarch_data): Replace "init" by "pre_init" and
1092 "post_init".
1093 * gdbarch.h, gdbarch.c: Re-generate.
1094 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
1095 with"obstack", use OBSTACK_ZALLOC.
1096 (dwarf2_frame_ops): Delete.
1097 (dwarf2_frame_set_init_reg): Use gdbarch_data.
1098 (dwarf2_frame_init_reg): Use gdbarch_data.
1099 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
1100 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
1101 (_initialize_svr4_solib): Update.
1102 * user-regs.c (_initialize_user_regs): Update.
1103 * reggroups.c (_initialize_reggroup): Update.
1104 * regcache.c (_initialize_regcache): Update.
1105 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
1106 * libunwind-frame.c (_initialize_libunwind_frame): Update.
1107 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1108 * frame-unwind.c (_initialize_frame_unwind): Update.
1109 * frame-base.c (_initialize_frame_base): Update.
1110 * user-regs.c (user_reg_add): Update.
1111 * reggroups.c (reggroup_add): Update.
1112 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
1113 * libunwind-frame.c (libunwind_frame_set_descr): Update.
1114 * frame-unwind.c (frame_unwind_append_sniffer): Update.
1115 * frame-base.c (frame_base_table): Update.
1116 * remote.c (_initialize_remote): Update.
1117 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
1118
3111a3fc
AC
11192004-03-15 Andrew Cagney <cagney@redhat.com>
1120
1121 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
1122
5ecb7103
KB
11232004-03-15 Kevin Buettner <kevinb@redhat.com>
1124
1125 * Makefile.in (frv-linux-tdep.o): Add dependencies.
1126 * frv-linux-tdep.c: New file.
1127 * frv-tdep.c (struct gdbarch_tdep): Add new field
1128 ``sigcontext_reg_addr''.
1129 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
1130 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
1131 (frv_sigramp_frame_sniffer): New functions.
1132 (frv_sigtramp_frame_unwind): New static global.
1133 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
1134 sniffers.
1135 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
1136 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
1137
1ccda5e9
KB
11382004-03-15 Kevin Buettner <kevinb@redhat.com>
1139
1140 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
1141 but not via a call to error(), when unable to read memory.
1142
b375a0a5
KB
11432004-03-15 Kevin Buettner <kevinb@redhat.com>
1144
1145 * frv-tdep.c (frv_call_dummy_words): Delete.
1146 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
1147
4fdf6121
AC
11482004-03-15 Andrew Cagney <cagney@redhat.com>
1149
1150 * infrun.c (handle_step_into_function, step_over_function): Only
1151 update and use STEP_FRAME_ID when the system is using legacy
1152 frames. Update comments.
1153
34021503
MK
11542004-03-14 Mark Kettenis <kettenis@gnu.org>
1155
187e21d1
MK
1156 * amd64-linux-tdep.h: Remove file.
1157 * amd64-linux-tdep.c: Don't include "inferior.h" and
1158 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
1159 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
1160 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
1161 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
1162 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
1163 macros.
1164 (user_to_gdb_regmap): Remove variable.
1165 (amd64_linux_gregset_reg_offset): New variable.
1166 (amd64_core_fns): Remove variable.
1167 (fetch_core_registers): Remove function.
1168 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
1169 functions.
1170 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
1171 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
1172 * Makefile.in (amd64_linux_tdep_h): Remove.
1173 (amd64-linux-nat.o): Update dependencies.
1174 (amd64-linux-tdep.o): Update dependencies.
1175
99679982
MK
1176 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1177 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
1178 functions.
1179 (fetch_inferior_registers, store_inferior_registers): Rewrite.
1180
34021503
MK
1181 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
1182 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
1183
134d01f1
DJ
11842004-03-14 Daniel Jacobowitz <drow@mvista.com>
1185
1186 * dwarf2read.c (read_structure_type): Rename from
1187 read_structure_scope. Don't create a symbol or call process_die.
1188 Return immediately if die->type is set. Call read_type_die before
1189 dwarf2_add_member_fn.
1190 (process_structure_scope): New function.
1191 (read_enumeration_type, process_enumeration_scope): New functions,
1192 broken out from read_enumeration. Don't create the enumeration
1193 type if it has already been created.
1194 (read_enumeration): Removed.
1195 (process_die): Call read_structure_type, process_structure_scope,
1196 read_enumeration_type, and process_enumeration_scope. Just call
1197 new_symbol for base and subrange types. Add a comment about other
1198 type dies.
1199 (read_type_die): Call read_enumeration_type.
1200 (add_partial_structure, new_symbol): Update comments.
1201
65760afb
SC
12022004-03-13 Stephane Carrez <stcarrez@nerim.fr>
1203
1204 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
1205
10f59415
SC
12062004-03-13 Stephane Carrez <stcarrez@nerim.fr>
1207
1208 * tui/tui-win.h (tui_get_cmd_list): Declare.
1209 * tui/tui-win.c (tui_command): New function.
1210 (tui_get_cmd_list): New function.
1211 (_initialize_tui_win): Moved initialization of tui command in
1212 tui_get_cmd_list.
1213
1214 * tui/tui-data.c (init_content_element): Setup new data members.
1215 (init_win_info): Likewise.
1216 (free_content_elements): Free it.
1217 * tui/tui-data.h (struct tui_data_element): Store the register
1218 content to print.
1219 (struct tui_data_info): Keep the current register group.
1220
1221 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
1222
1223 * tui/tui-regs.h (tui_show_registers): Update prototype.
1224 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
1225 (tui_resize_all): No need to calculate anything for register window.
1226 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
1227 (tui_set_register_element, tui_set_general_regs_content): Remove.
1228 (tui_set_special_regs_content): Remove.
1229 (tui_set_general_and_special_regs_content): Remove.
1230 (tui_set_float_regs_content): Remove.
1231 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
1232 (tui_set_regs_content): Remove.
1233 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
1234 (tui_v_show_registers_command_support): Remove.
1235 (tui_show_registers): Use a reggroup to specify the registers to show.
1236 (tui_show_register_group): New function.
1237 (tui_display_registers_from): Compute the layout of register window
1238 and refresh with new API; be sure to delete old register windows.
1239 (tui_check_register_values): Update to use tui_get_register and
1240 tui_display_data.
1241 (tui_display_register): Just refresh the register window part.
1242 (tui_register_format): Format registers and save in tui_data_element.
1243 (tui_get_register): New to combine tui_reg_value_has_changed and
1244 tui_get_register_raw_value; fix to use the new gdb API.
1245 (tui_show_float_command): Renamed tui_reg_float_command.
1246 (tui_show_general_command): Renamed tui_reg_general_command.
1247 (tui_show_special_command): Renamed tui_reg_system_command.
1248 (_initialize_tui_regs): Remove unused commands.
1249
c3364ea4
MK
12502004-03-13 Mark Kettenis <kettenis@gnu.org>
1251
27d1e716
MK
1252 * NEWS (New native configurations): Mention OpenBSD/amd64.
1253
c3364ea4
MK
1254 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
1255 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
1256 Remove defines.
1257 * config/i386/nm-fbsd64.h: Likewise.
1258 * config/i386/nm-obsd.h: Likewise.
1259 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
1260 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
1261
b2d6d697
KB
12622004-03-12 Kevin Buettner <kevinb@redhat.com>
1263
1264 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
1265 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
1266 New constants.
1267
76e43199
KB
1268 From Richard Sandiford <rsandifo@redhat.com>:
1269 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
1270
34ce532e
KB
12712004-03-12 Kevin Buettner <kevinb@redhat.com>
1272
1273 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
1274 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
1275 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
1276 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
1277 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
1278 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
1279 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
1280 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
1281 definitions from frv-tdep.c to frv-tdep.h.
1282
c4d10515
KB
12832004-03-12 Kevin Buettner <kevinb@redhat.com>
1284
1285 Add shared library support for FR-V FDPIC ABI:
1286 * Makefile.in (solib-frv.o): Add dependencies.
1287 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
1288 New functions.
1289 (frv_push_dummy_call): Add support for FDPIC ABI.
1290 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
1291 for FDPIC ABI.
1292 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
1293 (frv_fdpic_find_canonical_descriptor): Declare.
1294 * solib-frv.c: New file.
1295 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
1296 * config/frv/tm-frv.h (solib.h): Include.
1297
ed1bd989
KB
12982004-03-12 Kevin Buettner <kevinb@redhat.com>
1299
1300 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
1301 (frv-tdep.o): Update dependencies.
1302 * frv-tdep.h: New file.
1303 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
1304 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
1305 constants.
1306 (struct gdbarch_tdep): Add new member ``frv_abi''.
1307 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
1308 functions.
1309 (new_variant): Set ``frv_abi'' field.
1310 (gdb_arch_init): Detect FDPIC executables.
1311
82b38f72
MK
13122004-03-12 Mark Kettenis <kettenis@gnu.org>
1313
1314 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
1315 wrapper.
1316
db1ea9ba
AC
13172004-03-11 Andrew Cagney <cagney@redhat.com>
1318
1319 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
1320
f8766ec1
KB
13212004-03-11 Kevin Buettner <kevinb@redhat.com>
1322
1323 * solist.h (master_so_list): New function.
1324 * solib.c (master_so_list): Likewise.
1325 * solib-svr4.c (enable_break): Iterate over so_list entries
1326 obtained from master list instead of entries obtained directly
1327 via svr4_current_sos().
1328
523f6a27
BE
13292004-03-10 Ben Elliston <bje@gnu.org>
1330
1331 * MAINTAINERS: Update my mail address.
1332
37814c18
KI
13332004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1334
1335 * remote-m32r-sdi.c: Support hardware watchpoint.
1336
8b9740d8
DJ
13372004-03-09 Daniel Jacobowitz <drow@mvista.com>
1338
1339 * user-regs.c: Update copyright years.
1340 (struct user_regs): Rename to gdb_user_regs.
1341 (append_user_reg, builtin_user_regs, user_regs_init)
1342 (user_reg_add, user_reg_map_name_to_regnum)
1343 (usernum_to_user_reg): Update.
1344
4bb7a0a7
DJ
13452004-03-09 Daniel Jacobowitz <drow@mvista.com>
1346
1347 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
1348 (skip_children): New functions.
1349 (locate_pdi_sibling): Call skip_children.
1350
44e1a9eb
DJ
13512004-03-09 Daniel Jacobowitz <drow@mvista.com>
1352
1353 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
1354 * gdbtypes.c (check_typedef): Update comments.
1355
f3dd6933
DJ
13562004-03-09 Daniel Jacobowitz <drow@mvista.com>
1357
1358 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
1359 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
1360 pointer. Update comment about comp_unit_head.
1361 (struct abbrev_info): Shorten two int flags.
1362 (dwarf_alloc_abbrev): Take a CU argument.
1363 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
1364 each time through the loop. Update cleanup argument.
1365 (psymtab_to_symtab_1): Update cleanup call.
1366 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
1367 abbrev_obstack.
1368 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
1369 Just call obstack_free and clear the pointer.
1370
b40c7d58
DJ
13712004-03-09 Daniel Jacobowitz <drow@mvista.com>
1372
1373 * infrun.c (handle_inferior_event): Remove short-circuit code for
1374 events in a different thread.
1375
333dabeb
DJ
13762004-03-09 Daniel Jacobowitz <drow@mvista.com>
1377
1378 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
1379 print the whole transfer.
1380 (initialize_targets): Update description of "set debug target".
1381
aa17d93e
DJ
13822004-03-09 Daniel Jacobowitz <drow@mvista.com>
1383
1384 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
1385
0b71f08f
NW
13862004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
1387
1388 * MAINTAINERS (write after approval): Add myself.
1389
3930f270
CV
13902004-03-08 Corinna Vinschen <vinschen@redhat.com>
1391
1392 * sh-tdep.c (sh_print_registers_info): Use for loop.
1393 Don't skip multiple registers when a float register is encountered.
1394
a2b4a96c
CV
13952004-03-08 Corinna Vinschen <vinschen@redhat.com>
1396
1397 Fix PR tdep/1291.
1398 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
1399 to official SH documentation.
1400
f15a4bc0
AC
14012004-03-07 Andrew Cagney <cagney@redhat.com>
1402
1403 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
1404 unused function.
1405
9498281f
DJ
14062004-03-07 Daniel Jacobowitz <drow@mvista.com>
1407
1408 * arm-tdep.c (thumb_get_next_pc): Handle BX.
1409 (arm_get_next_pc): Handle BX and BLX.
1410
449e1137
AC
14112004-03-07 Andrew Cagney <cagney@redhat.com>
1412
eded0a31
AC
1413 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
1414 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
1415 HPPA_SP_REGNUM.
1416 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
1417 (hppa_target_read_fp): Delete.
1418 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
1419 register_virtual_size, max_register_raw_size,
1420 max_register_virtual_size, register_byte, register_size,
1421 target_read_fp, fp_regnum, and register_bytes. Set register_type
1422 instead of register_virtual_type.
1423 (hppa32_register_type, hppa64_register_type): Replace
1424 hppa32_register_virtual_type and hppa64_register_virtual_type.
1425 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
1426 (HPPA_FP_REGNUM): Define.
1427
f5f907e2
AC
1428 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
1429
69b4bbe4
AC
1430 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
1431 (pa_do_registers_info): Delete.
1432 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
1433 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
1434 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 1435
78161e48
AC
1436 * infcall.c (legacy_push_dummy_code): Delete #ifdef
1437 GDB_TARGET_IS_HPPA code.
1438 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
1439 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
1440 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
1441 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
1442 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
1443 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
1444 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
1445 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
1446 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
1447 (hppa_frameless_function_invocation, hppa64_store_return_value)
1448 (hppa_store_struct_return, hppa64_extract_return_value)
1449 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
1450 (hppa32_call_dummy_length, hppa64_call_dummy_length)
1451 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
1452 (find_proc_framesize, deposit_21, restore_pc_queue)
1453 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 1454 (rp_saved, pc_in_linker_stub): Delete.
78161e48 1455
782eae8b
AC
1456 Unconditionally enable 64-bit frame and ABI code.
1457 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
1458 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
1459 push_dummy_frame, fix_call_dummy, push_arguments,
1460 call_dummy_location, extract_return_value, use_struct_convention,
1461 store_return_value, store_struct_return, saved_pc_after_call,
1462 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
1463 frame_chain, frame_chain_valid, frameless_function_invocation,
1464 frame_saved_pc, and pop_frame.
78161e48 1465
449e1137
AC
1466 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
1467 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
1468 (hppa_gdbarch_init): Do not set PC_REGNUM.
1469
12507572
MK
14702004-03-06 Mark Kettenis <kettenis@gnu.org>
1471
1472 * config/alpha/tm-fbsd.h: Remove file.
1473 * config/alpha/fbsd.mt: Tweak comment.
1474 (TM_FILE): Set to tm-alpha.h.
1475
c107cc1b
AC
14762004-03-05 Andrew Cagney <cagney@redhat.com>
1477
1478 * infrun.c (step_over_function): When non-legacy code, and no
1479 step_frame_id, use the unwinder to get the caller's frame ID.
1480
f2e7c15d
MK
14812004-03-05 Mark Kettenis <kettenis@gnu.org>
1482
8b0c3633
MK
1483 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
1484 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
1485 bfd_arch_unknown. Adjust comment.
1486
f2e7c15d
MK
1487 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
1488 * i386obsd-tdep.c: Correct spelling in comment.
1489 * i386nbsd-tdep.c: Correct spelling in comment.
1490 * sparc-tdep.c: Correct spelling in comments.
1491
1198ecbe
DC
14922004-03-05 David Carlton <carlton@kealia.com>
1493
1494 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
1495 bug.
1496
9eb42ed1
MK
14972004-03-05 Mark Kettenis <kettenis@gnu.org>
1498
1499 * sparc-tdep.c: Fix typo in comment.
1500
52b5e991
JB
15012004-03-04 J. Brobecker <brobecker@gnat.com>
1502
1503 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
1504
d8151005
DJ
15052004-03-04 Daniel Jacobowitz <drow@mvista.com>
1506
1507 * dwarf2read.c: Add comment describing memory lifetimes.
1508 (struct dwarf2_pinfo): Update comment.
1509 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
1510 (read_enumeration, new_symbol): Don't use obsavestring.
1511
cbeae229
MK
15122004-03-04 Mark Kettenis <kettenis@gnu.org>
1513
722d18c2
MK
1514 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
1515 instead of amd64_fill_fxsave.
1516 * amd64bsd-nat.c (store_inferior_registers): Likewise.
1517 * amd64fbsd-nat.c (fill_fpregset): Likewise.
1518
cbeae229
MK
1519 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
1520 Reorganize code a bit.
1521
b4206d25
OF
15222004-03-04 Orjan Friberg <orjanf@axis.com>
1523
1524 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
1525 when the frame pointer is pushed. Don't set the frame pointer's
1526 address on the stack unless it's actually located there.
1527 Set the SRP's address on the stack correctly when the PC is still in
1528 the prologue.
1529 (cris_return_value): New function.
1530 (cris_gdbarch_init): Clear deprecated store_return_value,
1531 extract_return_value.
1532
49b0b195
JB
15332004-03-02 Jim Blandy <jimb@redhat.com>
1534
1535 * stabsread.c (reg_value_complaint): The maximum register number
1536 is one less than the number of registers.
1537
e9ff708b
AC
15382004-03-02 Andrew Cagney <cagney@redhat.com>
1539
1540 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
1541 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
1542 trailing comma and redundant assignment of I386_ST0_REGNUM.
1543 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
1544 32-bit segment registers.
1545
d4715e41
AC
15462004-03-01 Andrew Cagney <cagney@redhat.com>
1547
1548 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
1549 use frame_relative_level and get_next_frame.
1550
3ce2bf18
AC
15512004-02-29 Andrew Cagney <cagney@redhat.com>
1552
1553 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
1554 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
1555 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
1556 Delete macro.
1557
2da6aac3
DJ
15582004-02-29 Daniel Jacobowitz <drow@mvista.com>
1559
1560 * inflow.c (terminal_inferior): Don't give up the terminal if we
1561 previously couldn't get the inferior's terminal state.
1562
6ba34a8d
DJ
15632004-02-29 Daniel Jacobowitz <drow@mvista.com>
1564
1565 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
1566 PC_REGNUM.
1567
faae5abe
AC
15682004-02-28 Andrew Cagney <cagney@redhat.com>
1569
1570 * NEWS: Refer to GDB 6.1.
1571 * README: Refer to GDB 6.1.
1572 * PROBLEMS: Refer to GDB 6.1.
1573
2227a3c5
DJ
15742004-02-28 Daniel Jacobowitz <drow@mvista.com>
1575
1576 * thread-db.c (disable_thread_signals): Remove unused function.
1577
80571bff
MK
15782004-02-28 Mark Kettenis <kettenis@gnu.org>
1579
041bd74b
MK
1580 * amd64-nat.c: Include "gdb_string.h".
1581 (amd64_collect_native_gregset): Zero-extend the 32-bit
1582 general-purpose registers and %eip.
1583
3c017e40
MK
1584 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
1585 * amd64-tdep.c (amd64_collect_fxsave): New function.
1586 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
1587
80571bff
MK
1588 * i387-tdep.h: Update copyright year.
1589 (i387_collect_fxsave): New prototype.
1590 * i387-tdep.c: Update copyright year.
1591 (i387_collect_fxsave): New function containing most of the code
1592 from i387_fill_fxsave.
1593 (i387_fill_fxsave): Call i387_collect_fxsave.
1594
50d71875
AC
15952004-02-28 Andrew Cagney <cagney@redhat.com>
1596
1597 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
1598 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
1599
4a28816e
MK
16002004-02-28 Mark Kettenis <kettenis@gnu.org>
1601
1602 * amd64-tdep.c (amd64_frame_cache): Fix comment.
1603
dbda9972
AC
16042004-02-28 Andrew Cagney <cagney@redhat.com>
1605
1606 * utils.c: Use "", instead of <>, to include readline.
1607 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
1608 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
1609 * source.c, solib.c, exec.c, event-top.c: Ditto.
1610 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
1611 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
1612 * Makefile.in: Update all dependencies.
1613 (readline_tilde_h, readline_history_h): Define.
1614 (readline_headers): Delete.
1615
83277a99
MK
16162004-02-28 Mark Kettenis <kettenis@gnu.org>
1617
91ae4303
MK
1618 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
1619 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
1620 "config/i386/tm-lx64.h".
1621
83277a99
MK
1622 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
1623 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
1624 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
1625
6e1d7d6c
AC
16262004-02-28 Andrew Cagney <cagney@redhat.com>
1627
ecc9ac84
AC
1628 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
1629
6e1d7d6c
AC
1630 * breakpoint.c (_initialize_breakpoint): Use
1631 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
1632 Add help to show command.
1633
9671aeef
MK
16342004-02-28 Mark Kettenis <kettenis@gnu.org>
1635
7fa2737c
MK
1636 * i386-nat.c: Reformat to be closer to coding standards.
1637 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
1638 `retval'. Make variables `align' and `size' local to while-loop.
1639 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
1640 (_initialize_i386_nat): New prototype.
1641
9671aeef
MK
1642 * tui/tui.c: Include <readline/readline.h> instead of
1643 "readline/readline.h". Include it after <term.h> and
1644 "gdb_curses.h".
1645
fca7aa43
AC
16462004-02-27 Andrew Cagney <cagney@redhat.com>
1647
412275d5
AC
1648 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
1649 the new frame unwind code.
1650 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
1651 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
1652 PCOQ_HEAD_REGNUM.
1653
fca7aa43
AC
1654 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
1655 "return_value" and "push_dummy_call".
1656 (hppa32_use_struct_convention): Delete unused function.
1657 (hppa32_store_return_value): Delete unused function.
1658 (hppa32_extract_return_value): Delete unused function.
1659 (hppa32_stack_align): Delete function.
1660
e6a8a7d2
EZ
16612004-02-27 Eli Zaretskii <eliz@elta.co.il>
1662
1663 * coffread.c (enter_linenos): Don't let rawptr reference memory
1664 outside linetab[]'s limits.
1665
1797a8f6
AC
16662004-02-27 Andrew Cagney <cagney@redhat.com>
1667
1668 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
1669 inferior stack space - the stack needs to grow upwards.
1670 (hppa32_frame_align): New function.
1671 (hppa64_frame_align): Replace hppa_frame_align.
1672 (hppa_gdbarch_init): Update.
1673
2e4b5889
OF
16742004-02-26 Orjan Friberg <orjanf@axis.com>
1675
1676 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
1677 (dwarf2-frame.h): Include.
1678 (enum cris_regnums): New enum CRIS_FP_REGNUM.
1679 Remove static variables related to ABI setting.
1680 (struct gdbarch_tdep): Remove cris_abi member.
1681 (struct frame_extra_info): Remove.
1682 (cris_unwind_cache, stack_item): New structs.
1683 (cris_frame_unwind, cris_frame_base): New variables.
1684 (push_stack_item, pop_stack_item)
1685 (cris_frame_unwind_cache, cris_frame_this_id)
1686 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
1687 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
1688 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
1689 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
1690 (cris_reg_struct_has_addr): New functions.
1691 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
1692 (cris_frame_saved_pc, cris_saved_pc_after_call,
1693 (cris_store_struct_return, cris_frameless_function_invocation)
1694 (cris_pop_frame, cris_skip_prologue_main)
1695 (cris_abi_original_store_return_value)
1696 (cris_abi_v2_store_return_value)
1697 (cris_abi_original_extract_return_value)
1698 (cris_abi_v2_extract_return_value)
1699 (cris_abi_original_reg_struct_has_addr)
1700 (cris_abi_v2_reg_struct_has_addr)
1701 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
1702 (cris_push_return_address, cris_abi_update): Remove.
1703 (_initialize_cris_tdep): Remove ABI command.
1704 (cris_dump_tdep): Ditto.
1705 (cris_gdbarch_init): Remove ABI command.
1706 Set store_return_value, extract_return_value, push_dummy_code,
1707 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
1708 frame_unwind_append_sniffer, frame_base_set_default.
1709 Clear deprecated init_frame_pc, push_arguments, store_return_value,
1710 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
1711 sizeof_call_dummy_words, get_saved_register, push_return_address,
1712 pop_frame, store_struct_return, frame_init_saved_regs,
1713 init_extra_frame_info, frameless_function_invocation, frame_chain,
1714 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
1715 dummy_write_sp.
1716
6b9acc27
JJ
17172004-02-26 Jeff Johnston <jjohnstn@redhat.com>
1718
1719 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
1720 * valprint.c (print_hex_chars): Change from static to external.
1721 (print_char_chars): New function.
1722 * printcmd.c (print_scalar_formatted): For integer and enum types
1723 that are longer than LONGEST, perform processing via appropriate
1724 print_*_chars routines.
1725
a431654a
AC
17262004-02-26 Andrew Cagney <cagney@redhat.com>
1727
1728 * Makefile.in: Update dependencies.
1729 Changes from Ulrich Weigand,
1730 * s390-tdep.c: Include "dwarf2-frame.h".
1731 (s390_dwarf2_frame_init_reg): New function.
1732 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
1733 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
1734
fa8d40ab
JJ
17352004-02-26 Jeff Johnston <jjohnstn@redhat.com>
1736
1737 * breakpoint.c (pending_break_support): New setting variable.
1738 (break_command_1): Account for pending_break_support setting
1739 when creating pending breakpoints.
1740 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
1741 (_initialize_breakpoint): Add "set breakpoint pending" and
1742 "show breakpoint pending" commands.
1743
0dcd613f
AC
17442004-02-26 Andrew Cagney <cagney@redhat.com>
1745
1746 Fix PR i18n/1570.
1747 * charset.c (backslashable, backslashed, represented): Remove 'e'
1748 from list of escaped characters, not part of ISO-C.
1749
479272a3
JB
17502004-02-25 J. Brobecker <brobecker@gnat.com>
1751
1752 From Peter Schauer <schauer@pdf.de>:
1753 * tui/tui.c: Move system header includes after local includes.
1754 Fixes a build failure on solaris systems.
1755
7613d933
JB
17562004-02-25 J. Brobecker <brobecker@gnat.com>
1757
1758 * configure.in: Refine the previous change.
1759 * configure: Regenerate.
1760
9c1488cb
MK
17612004-02-25 Mark Kettenis <kettenis@gnu.org>
1762
1763 * amd64-tdep.h: Renamed from x86-64-tdep.h.
1764 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
1765 "amd64-tdep.h" instead of "x86-64-tdep.h".
1766 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
1767 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
1768 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
1769 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
1770 and "x86-64-tdep.c".
1771 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
1772 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
1773 and "x86-64-tdep.c".
1774 * amd64bsd-nat.c: Update copyright year.
1775 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
1776 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
1777 "x86-64-tdep.h".
1778 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
1779 "x86-64-tdep.h".
1780 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
1781 "x86-64-tdep.h".
1782 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
1783 "x86-64-tdep.h".
1784 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
1785 "x86-64-tdep.h".
1786 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
1787 "x86-64-tdep.h".
1788 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
1789 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
1790 * Makefile.in (amd64_linux_tdep_h): Renamed from
1791 x86_64_linux_tdep_h.
1792 (amd64_tdep_h): Renamed from x86_64_tdep_h.
1793 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
1794 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
1795 (amd64obsd-tdep.o): Update dependencies.
1796 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
1797 dependencies.
1798 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
1799 dependencies.
1800 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
1801 amd64-linux-nat.c amd64-linux-tdep.c.
1802 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
1803 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
1804 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
1805 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
1806 amd64-tdep.o and amd64-linux-tdep.o.
1807 (TM_FILE): Set to tm-linux64.h.
1808 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
1809 (NAT_FILE): Set to nm-linux64.h.
1810 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
1811 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
1812 amd64-tdep.o.
1813 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
1814 amd64-tdep.o.
1815 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
1816 amd64-tdep.o.
1817
4b8dad4a
RM
18182004-02-25 Roland McGrath <roland@redhat.com>
1819
1820 * remote.c (remote_protocol_qPart_auxv): New variable.
1821 (init_all_packet_configs): Initialize it.
1822 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
1823 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
1824 (show_remote_cmd): Call it.
1825 (_initialize_remote): Initialize commands.
1826 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
1827 service TARGET_OBJECT_AUXV requests.
1828
66745969
JB
18292004-02-25 J. Brobecker <brobecker@gnat.com>
1830
1831 * configure.in: Make sure that the wborder function is available.
1832 Otherwise, search for it in the cur_colr library.
1833 * configure: Regenerate.
1834
79508e1e
AC
18352004-02-25 Andrew Cagney <cagney@redhat.com>
1836
1837 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
1838
571ee600
MK
18392004-02-25 Mark Kettenis <kettenis@gnu.org>
1840
1841 * config/i386/tm-x86-64linux.h: Tweak comments.
1842
2b1b322f 18432004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
1844
1845 * MAINTAINERS: Add self to write-after-approval list.
1846
4d2acc65
AC
18472004-02-25 Andrew Cagney <cagney@redhat.com>
1848
4b8dad4a 1849 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
1850 * cli/cli-script.c (execute_control_command): Unconditionally
1851 install a cleanup. Default "ret" to "invalid_control". Use
1852 "break" instead of "return" to escape from the switch.
1853
4cfcaf21
JB
18542004-02-24 J. Brobecker <brobecker@gnat.com>
1855
1856 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
1857 with the lines macro defined in term.h on AiX.
1858 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
1859 a collision with the label_width macro defined in term.h on AiX.
1860
54a5c8d8
KB
18612004-02-23 David Mosberger <davidm@hpl.hp.com>
1862
1863 Committed by Kevin Buettner <kevinb@redhat.com>.
1864
1865 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
1866 * ia64-tdep.c (ia64_write_pc): Make it a global function.
1867 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
1868 instead of ia64_write_pc().
1869 * ia64-linux-tdep.c (regcache.h): Include.
1870 (ia64_linux_write_pc): New function.
4b8dad4a 1871
8a1dac83
RM
18722004-02-23 Roland McGrath <roland@redhat.com>
1873
1874 * auxv.c (info_auxv_command): Fix typos in error messages.
1875
90f90721
MK
18762004-02-23 Mark Kettenis <kettenis@gnu.org>
1877
8a1dac83 1878 * x86-64-tdep.h: Tweak comment.
90f90721
MK
1879 (enum amd64_regnum): New.
1880 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
1881 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
1882 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
1883 (X86_64_XMM1_REGNUM): Removed.
1884 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
1885 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
1886 prototypes for renamed functions.
1887 * x86-64-tdep.c: Fix typo.
1888 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
1889 register numbers.
1890 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
1891 Use constants from `enum amd64_regnum' for register numbers.
1892 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
1893 (amd64_analyze_prologue, amd64_frame_cache,
1894 amd64_sigtramp_frame_cache): Use constants from `enum
1895 amd64_regnum' for register numbers.
1896 (amd64_supply_fpregset): Adjust for renamed functions.
1897 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
1898 `enum amd64_regnum' for register numbers.
1899 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
1900 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
1901 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
1902 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
1903 (amd64_linux_fill_gregset): Adjust for renamed macros.
1904 (fetch_core_registers): Adjust for renamed functions.
1905 (amd64_linux_init_abi): Adjust for renamed functions.
1906 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
1907 renamed functions.
1908 * amd64-nat.c: Adjust for renamed macros.
1909 * amd64bsd-nat.c (fetch_inferior_registers)
1910 (store_inferior_registers): Use constants from `enum amd64_regnum'
1911 for register numbers. Adjust for renamed variables.
1912 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
1913 renamed variables.
1914 (_initialize_amd64fbsd_nat): Use constants from `enum
1915 amd64_regnum' for register numbers.
1916 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
1917 `enum amd64_regnum' for register numbers.
1918 (amd64fbsd_init_abi): Adjust for renamed functions.
1919 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
1920 `enum amd64_regnum' for register numbers.
1921 (amd64nbsd_init_abi): Adjust for renamed functions.
1922 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
1923 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
1924 `enum amd64_regnum' for register numbers.
1925 (amd64obsd_init_abi): Adjust for renamed functions.
1926 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
1927
d5479188
JJ
19282004-02-23 Jeff Johnston <jjohnstn@redhat.com>
1929
1930 * breakpoint.c (print_one_breakpoint): Do not output spaces
1931 after printing <PENDING> for a pending breakpoint.
1932
81cb7cc9
JJ
19332004-02-23 Jeff Johnston <jjohnstn@redhat.com>
1934
1935 * printcmd.c (print_scalar_formatted): Initialize val_long
1936 to remove compiler warning message.
1937
cbdeadca
JJ
19382004-02-23 Jeff Johnston <jjohnstn@redhat.com>
1939
1940 * defs.h (nquery, yquery): New prototypes.
1941 * breakpoint.c (break_command_1): Use new nquery interface.
1942 * utils.c (defaulted_query, nquery, yquery): New functions.
1943
da6bab63
AC
19442004-02-23 Andrew Cagney <cagney@redhat.com>
1945
2f690297
AC
1946 * hppa-tdep.c (hppa_frame_align): New function.
1947 (hppa32_push_dummy_call): New function.
1948 (hppa64_push_dummy_call): New function.
1949 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
1950 disabled.
8a1dac83 1951
da6bab63
AC
1952 * infcall.c (legacy_push_dummy_code): Don't call deprecated
1953 FIX_CALL_DUMMY when push_dummy_call is available.
1954 (call_function_by_hand, push_dummy_code): Ditto.
1955
abf9b42d
AC
19562004-02-22 Andrew Cagney <cagney@redhat.com>
1957
1958 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
1959 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
1960 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
1961 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
1962 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
1963 call_dummy_location to ON_STACK.
1964
10fc94a4
MK
19652004-02-22 Mark Kettenis <kettenis@gnu.org>
1966
51433e4b
MK
1967 * x86-64-linux-tdep.c: Tweak comment.
1968 (amd64_linux_supply_gregset): Renamed from
1969 x86_64_linux_supply_gresget.
1970 (amd64_linux_fill_gregset): Renamed from
1971 x86_64_linux_fill_gregset.
1972 (fetch_core_registers): Adjust for renamed functions.
1973 (amd64_core_fns): Renamed from x86_64_core_fns.
1974 (amd64_linux_sigtramp_start): Renamed from
1975 x86_64_linux_sigtramp_start.
1976 (amd64_linux_pc_in_sigtramp): Renamed from
1977 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
1978 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
1979 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
1980 (amd64_linux_sigcontext_addr): Renamed from
1981 x86_64_linux_sigcontext_addr.
1982 (amd64_linux_sc_reg_offset): Renamed from
1983 x86_64_linux_sc_reg_offset.
1984 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
1985 Adjust for renamed functions and variables.
1986 (_initialize_amd64_linux_tdep): Renamed from
1987 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
1988 variables.
1989 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
1990 Adjust for renamed functions.
1991
430eaf2e
MK
1992 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
1993 from x86_64_linux_gregset64_reg_offset.
1994 (amd64_linux_gregset32_reg_offset): Rename from
1995 x86_64_linux_gregset64_reg_offset.
1996 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
1997 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
1998 (amd64_linux_dr_set_control): Renamed from
1999 x86_64_linux_dr_set_control. Adjust for renamed functions.
2000 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
2001 Adjust for renamed functions.
2002 (amd64_linux_dr_reset_addr): Renamed from
2003 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
2004 (amd64_linux_dr_get_status): Renamed from
2005 x86_64_linux_dr_get_status. Adjust for renamed functions.
2006 (_initialize_amd64_linux_nat): Renamed from
2007 _initialize_x86_64_linux_nat. Adjust for renamed variables and
2008 functions.
2009 * config/i386/nm-x86-64linux.h: Update copyright year.
2010 Adjust for renamed functions.
2011
10fc94a4
MK
2012 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
2013 amd64fbsd_sigtramp_start.
2014 (amd64fbsd_sigtramp_end_addr): Renamed from
2015 amd64fbsd_sigtramp_end.
2016 (amd64fbsd_init_abi): Adjust for renamed variables.
2017 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
2018 variables.
2019 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
2020 amd64fbsd_sigtramp_start.
2021 (amd64fbsd_sigtramp_end_addr): Renamed from
2022 amd64fbsd_sigtramp_end.
2023
343af405
AC
20242004-02-22 Andrew Cagney <cagney@redhat.com>
2025
537987fc
AC
2026 * hppa-tdep.c (hppa32_return_value): New function.
2027 (hppa64_return_value): New function.
2028 (hppa_gdbarch_init): Set return_value; keep disabled.
2029
fad850b2
AC
2030 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
2031 struct-return and inferior function call methods.
2032
26d08f08
AC
2033 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
2034 "frame-base.h".
2035 (struct hppa_frame_cache): Define.
2036 (hppa_frame_cache, hppa_frame_this_id): New functions.
2037 (hppa_frame_prev_register): New function.
2038 (hppa_frame_unwind, hppa_frame_base): New variables.
2039 (hppa_frame_unwind_sniffer): New function.
2040 (hppa_frame_base_address, hppa_unwind_pc): New function.
2041 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
2042 sniffer, and frame base sniffer; keep disabled.
2043 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
2044 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
2045
e7d7bd65
AC
2046 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
2047 to predicates for "seriously old code".
2048
e963316f
AC
2049 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
2050 runtime if(0).
2051
56132691
AC
2052 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
2053 unsigned.
2054 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 2055
343af405
AC
2056 * config/pa/tm-hppa.h: Update copyright.
2057 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2058 (deprecated_init_frame_pc_default): Delete declaration.
2059 (hppa_frame_init_saved_regs): Delete declaration.
2060 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
2061 * hppa-tdep.c: Include "arch-utils.h".
2062 (hppa_gdbarch_init): Set deprecated init_frame_pc
2063 and deprecated frame_init_saved_regs.
2064 (hppa_frame_init_saved_regs): Make static.
2065
f5859b4d
MK
20662004-02-22 Mark Kettenis <kettenis@gnu.org>
2067
86f6f8e7 2068 Remove old 386BSD support.
cf7c5c23 2069 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
2070 * configure.host: Remove i[34567]86-*-bsd*.
2071 * configure.tgt: Remove i[34567]86-*-bsd*.
2072 * i386b-nat.c: Removed.
2073 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
2074 (i386b-nat.o): Remove dependencies.
2075
86f6f8e7
MK
2076 * config/i386/i386bsd.mh: Removed.
2077 * config/i386/i386bsd.mt: Removed.
2078 * config/i386/nm-i386bsd.h: Removed.
2079 * config/i386/tm-i386bsd.h: Removed.
2080 * config/i386/xm-i386bsd.h: Removed.
2081
971218cd
MK
2082 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
2083
7e654c37
MK
2084 * amd64fbsd-tdep.c: Include "solib-svr4.h".
2085 (amd64fbsd_init_abi): Set link map offsets.
2086 * amd64nbsd-tdep.c: Include "slib-svr4.h".
2087 (amd64nbsd_init_abi): Set link map offsets.
2088 * amd64obsd-tdep.c: Include "solib-svr4.h".
2089 (amd64obsd_init_abi): Set link map offsets.
2090 * i386fbsd-tdep.c: Include "solib-svr4.h".
2091 (i386fbsd_init_abi): Set link map offsets.
2092 * i386nbsd-tdep.c: Include "solib-svr4.h".
2093 (i386nbsdelf_init_abi): Set link map offsets.
2094 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
2095 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
2096 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
2097 solib-legacy.o and core-aout.o. Reformat.
2098 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
2099 solib-svr4.o, solib-legacy.o. Reformat.
2100 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
2101 * config/i386/nbsdelf.mh: Reformat.
2102 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
2103 solib-svr4.o, solib-legacy.o and corelow.o.
2104 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
2105 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
2106 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
2107 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
2108 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
2109 (TM_FILE): Set to tm-fbsd.h.
2110 * config/i386/nbsd.mt (TDEPFILES): Reformat.
2111 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
2112 solib-svr4.o.
2113 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
2114 solib-svr4.o.
2115 (TM_FILE): Set to nm-nbsd.h.
2116 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
2117 Simplify shared library support. Don't include "elf/common.h".
2118 (SVR4_SHARED_LIBS): Don't define.
2119 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
2120 "solib.h".
2121 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
2122 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
2123 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
2124 Don't include "i386/tm-i386.h". Include "solib.h".
2125 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
2126 Don't include "i386/tm-i386.h".
2127 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
2128 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
2129 Include "i386/xm-i386.h".
2130 (HOST_LONG_DOUBLE_FORMAT): Remove.
2131
5d93ae8c
MK
2132 Fix OpenBSD/i386 sigtramp recognition.
2133 * i386-tdep.h: Update copyright year.
2134 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
2135 (i386bsd_sigtramp_end): New prototypes.
2136 (i386fbsd_sigtramp_start_addr): Renamed from
2137 i386fbsd_sigtramp_start.
2138 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
2139 (i386obsd_sigtramp_start_addr): Renamed from
2140 i386obsd_sigtramp_start.
2141 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
2142 * i386bsd-tdep.c: Update copyright year.
2143 (i386bsd_pc_in_sigtramp): Make public.
2144 * i386fbsd-nat.c: Update copyright year.
2145 (_initialize_i386fbsd_nat): Adjust for renamed variables.
2146 * i386fbsd-tdep.c: Update copyright year.
2147 (i386fbsd_sigtramp_start_addr): Renamed from
2148 i386fbsd_sigtramp_start.
2149 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
2150 (i386fbsdaout_init_abi): Adjust for renamed variables.
2151 * i386obsd-nat.c: Update copyright year.
2152 (_initialize_i386obsd_nat): Adjust for renamed variables.
2153 * i386obsd-tdep.c: Include "target.h".
2154 (i386obsd_page_size): New variable.
2155 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
2156 (i386obsd_sigtramp_end): New functions.
2157 (i386obsd_sigtramp_start_addr): Renamed from
2158 i386obsd_sigtramp_start.
2159 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
2160 (i386obsd_init_abi): Adjust for renamed variables. Set
2161 pc_in_sigtramp, sigtramp_start and sigtramp_end.
2162 * Makefile.in (i386obsd-tdep.o): Update dependencies.
2163
84d04465
MK
2164 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
2165 trampoline change in OpenBSD kernel.
2166
b053aceb
MK
2167 * amd64-nat.c: Update copyright year.
2168 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
2169 architecture from REGCACHE.
2170
f5859b4d
MK
2171 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
2172 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
2173
e4bbbda8
MK
21742004-02-21 Mark Kettenis <kettenis@gnu.org>
2175
ba361932
MK
2176 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
2177 i[34567]86-*-openbsd3.[0-3].
2178 * config/i386/obsdaout.mh: New file.
2179
d3e48264
MK
2180 * config/i386/obsd.mh (MH_FLAGS): Remove.
2181
60a6eeb6
MK
2182 Fix PR build/1549.
2183 * i386obsd-tdep.c: Update copyright years. Include
2184 "solib-svr4.h".
2185 (i386obsd_init_abi): Don't set regset_from_core_section here.
2186 (i386obsd_aout_init_abi): New function. Set
2187 regset_from_core_section here.
2188 (i386obsd_elf_init_abi): New function.
2189 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
2190 * Makefile.in (i386obsd-tdep.o): Update dependecies.
2191 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2192 (TM_FILE): Set to tm-nbsd.h.
2193
2194 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
2195 solib-sunos.o.
2196
e4bbbda8
MK
2197 * solib-svr4.h: Update copyright year.
2198 (svr4_ilp32_fetch_link_map_offsets)
2199 (svr4_lp64_fetch_link_map_offsets): New prototype.
2200 * solib-svr4.c: Update copyright year.
2201 (svr4_ilp32_fetch_link_map_offsets)
2202 (svr4_lp64_fetch_link_map_offsets): New function.
2203
f6fe98ef
DJ
22042004-02-20 Daniel Jacobowitz <drow@mvista.com>
2205
2206 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
2207 to the partial symbol table.
2208
589ca796
JB
22092004-02-20 J. brobecker <brobecker@gnat.com>
2210
2211 * PROBLEMS: Add description of problem documented under gdb/1560.
2212
2031c21a
MK
22132004-02-20 Mark Kettenis <kettenis@gnu.org>
2214
30b344b1
MK
2215 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
2216 comments.
2217 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
2218 functions.
2219 (amd64obsd_init_abi): Reorder initializations. Use
2220 amd64obsd_r_reg_offset to initialize the general-purpose register
2221 set details. Set regset_from_core_section.
2222 (_initialize_amd64obsd_tdep): Rename from
2223 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
2224 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
2225 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
2226
2031c21a
MK
2227 * NEWS (New native configurations): Mention OpenBSD/alpha.
2228 * configure.tgt: Add alpha*-*-openbsd*.
2229 * configure.host: Add alpha*-*-openbsd*.
2230 * alphanbsd-tdep.c: Update copyright year.
2231 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
2232
42471775
AC
22332004-02-20 Andrew Cagney <cagney@redhat.com>
2234
2235 Fix PR tdep/1372.
2236 * configure.tgt: Delete target "none-*-*".
2237 * configure.host: Delete host "none-*-*".
2238 * config/none/none.mh: Delete file.
2239 * config/none/none.mt: Delete file.
2240 * config/none/xm-none.h: Delete file.
2241 * config/none/tm-none.h: Delete file.
2242 * config/none/nm-none.h: Delete file.
2243
960ccd7d
FF
22442004-02-19 Fred Fish <fnf@redhat.com>
2245
2246 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
2247 cache->uses_fp prior to setting it.
2248
5f883edd
FF
22492004-02-19 Fred Fish <fnf@redhat.com>
2250
2251 Fix for PR breakpoint/1558.
2252 * sh-tdep.c (IS_JSR): New macro.
2253 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
2254
f98c22d5
JB
22552004-02-19 Jim Blandy <jimb@redhat.com>
2256
2257 * findvar.c (value_from_register): Doc fix.
2258
95051d27
JJ
22592004-02-19 Jeff Johnston <jjohnstn@redhat.com>
2260
2261 * printcmd.c (print_scalar_formatted): Do not check for sizeof
2262 type being greater than sizeof of host's LONGEST. Always use
2263 unpack_long() unless format 'f' chosen.
2264
ccefbec3
EZ
22652004-02-19 Joel Brobecker <brobecker@gnat.com>
2266
2267 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 2268
ccefbec3
EZ
2269 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
2270 contains a symbol wich is the best, non-exact match for the given
2271 pc. Update comments.
2272
22732004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 2274
2ede629f
EZ
2275 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
2276 macro, which was part of the now removed Mach 3 port.
2277 * utils.c (request_quit): Ditto.
2278
567ee972
MK
22792004-02-18 Mark Kettenis <kettenis@gnu.org>
2280
2281 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
2282 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
2283
50cca7bb
MK
22842004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2285
2286 Committed by Mark Kettenis <kettenis@gnu.org>.
2287
2288 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
2289 Define.
2290
226361c4
AC
22912004-02-18 Andrew Cagney <cagney@redhat.com>
2292
2293 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
2294 CONFIG_INSTALL and CONFIG_UNINSTALL.
2295 * configure: Re-generate.
2296 * interps.h (INTERP_TUI): Define.
2297 * Makefile.in: Update dependencies.
2298 (TUI): New macro.
2299 (tui-main.o): Specify dependencies.
2300 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
2301 * tui/tui-main.c: New file.
2302
49cfa46f
MK
23032004-02-18 Mark Kettenis <kettenis@gnu.org>
2304
e2879ccb
MK
2305 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
2306 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
2307 dependencies.
2308 * configure.host: Add x86_64-*-openbsd*.
2309 * configure.tgt: Add x86_64-*-openbsd*.
2310 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
2311
c43f4bec
MK
2312 * tui/tui.c: Don't include <malloc.h>.
2313
09ae75b6
MK
2314 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
2315 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
2316 amd64nbsd-tdep.c.
2317
49cfa46f 2318 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 2319 static. Remove extraneous whitespace.
49cfa46f
MK
2320 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
2321 static.
2322
05957fdb
JB
23232004-02-17 Jim Blandy <jimb@redhat.com>
2324
2325 * findvar.c (value_from_register): Doc fix.
2326
d0f54f9d
JB
23272004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2328
2329 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 2330
8a1dac83 2331 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
2332 CORE_ADDR as type for selectors. Correct types for GNU run time
2333 message lookup function to use double indirection.
2334 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
2335 * objc-lang.h (lookup_child_selector): Adapt prototype.
2336
9cbd5950
JB
2337 * s390-nat.c (SUBOFF): New macro.
2338 (supply_gregset, fill_gregset): Use it to handle debugging
2339 of 32-bit exectuables running under a 64-bit kernel.
2340 * s390-tdep.c: Include "solib-svr4.h".
2341 (s390_svr4_fetch_link_map_offset): New function.
2342 (s390x_svr_fetch_link_map_offset): Likewise.
2343 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
2344 * Makefile.in (s390-tdep.o): Update dependencies.
2345
a8c99f38
JB
2346 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
2347 "frame-unwind.h".
2348 (s390_readinstruction): Reformat. Use read_memory_nobpt.
2349 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
2350 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
2351 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
2352 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
2353 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 2354 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
2355 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
2356 (struct frame_extra_info): Remove.
2357 (s390_memset_extra_info): Remove.
f73b1eff
JB
2358 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
2359 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
2360 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
2361 (is_rse): Renamed to ...
2362 (is_rsy): ... this. Support long displacements.
2363 (is_rxe): Renamed to ...
2364 (is_rxy): ... this. Support long displacements.
2365 (compute_x_addr): Support long displacements.
2366 (struct s390_prologue_data): New data type.
2367 (s390_on_stack): Change API to use struct s390_prologue_data.
2368 (s390_store): Reimplement.
2369 (s390_load): New function.
2370 (s390_get_signal_frame_info): Remove.
2371 (s390_get_frame_info): Remove, replace by ...
2372 (s390_analyze_prolog): ... this new function.
2373 (s390_check_function_end): Remove.
2374 (s390_function_start): Remove.
2375 (s390_frameless_function_invokation): Remove.
2376 (s390_is_sigreturn): Remove.
2377 (s390_init_frame_pc_first): Remove.
2378 (s390_init_frame_extra_info): Remove.
2379 (s390_frame_init_saved_regs): Remove.
2380 (s390_frame_saved_pc_nofix): Remove.
2381 (s390_frame_saved_pc): Remove.
2382 (s390_frame_chain): Remove.
2383 (s390_fp_regnum, s390_read_fp): Remove.
2384 (s390_pop_frame_regular, s390_pop_frame): Remove.
2385 (s390_saved_pc_after_call): Remove.
2386 (s390_skip_prologue): Reimplement.
2387 (s390_in_function_epilogue_p): Support long displacements.
2388 (struct s390_unwind_cache): New data structure.
2389 (s390_frame_unwind_cache): New function.
2390 (s390_prologue_frame_unwind_cache): Likewise.
2391 (s390_backchain_frame_unwind_cache): Likewise.
2392 (s390_frame_this_id, s390_frame_prev_register): Likewise.
2393 (s390_frame_unwind): Define.
2394 (s390_frame_sniffer): New function.
2395 (struct s390_pltstub_unwind_cache): New data structure.
2396 (s390_pltstub_frame_unwind_cache): New function.
2397 (s390_pltstub_frame_this_id): Likewise.
2398 (s390_pltstub_frame_prev_register): Likewise.
2399 (s390_pltstub_frame_unwind): Define.
2400 (s390_pltstub_frame_sniffer): New function.
2401 (struct s390_sigtramp_unwind_cache): New data structure.
2402 (s390_sigtramp_frame_unwind_cache): New function.
2403 (s390_sigtramp_frame_this_id): Likewise.
2404 (s390_sigtramp_frame_prev_register): Likewise.
2405 (s390_sigtramp_frame_unwind): Define.
2406 (s390_sigtramp_frame_sniffer): New function.
2407 (s390_frame_base_address, s390_local_base_address): New functions.
2408 (s390_frame_base): Define.
2409 (s390_unwind_pc, s390_unwind_sp): New function.
2410 (s390_push_dummy_call): Use new frame base location.
2411 (s390_unwind_dummy_id): Likewise.
2412 (s390_gdbarch_init): Remove calls to:
2413 set_gdbarch_frameless_function_invocation,
2414 set_gdbarch_deprecated_init_frame_pc,
2415 set_gdbarch_deprecated_frame_chain,
2416 set_gdbarch_deprecated_frame_init_saved_regs,
2417 set_gdbarch_deprecated_pop_frame,
2418 set_gdbarch_deprecated_init_extra_frame_info,
2419 set_gdbarch_deprecated_init_frame_pc_first,
2420 set_gdbarch_deprecated_target_read_fp,
2421 set_gdbarch_deprecated_frame_saved_pc,
2422 set_gdbarch_deprecated_saved_pc_after_call,
2423 set_gdbarch_deprecated_fp_regnum.
2424 Add calls to:
2425 set_gdbarch_in_solib_call_trampoline,
2426 frame_unwind_append_sniffer,
2427 frame_base_set_default,
2428 set_gdbarch_unwind_pc,
2429 set_gdbarch_unwind_sp.
2430 * Makefile.in (s390-tdep.o): Update dependencies.
2431
b0cf273e
JB
2432 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
2433 (S390_STACK_FRAME_OVERHEAD): Remove.
2434 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
2435 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
2436 (s390_promote_integer_argument): Remove.
2437 (s390_cannot_extract_struct_value_address): Remove.
2438 (s390_use_struct_convention, s390_store_struct_return): Remove.
2439 (s390_extract_return_value, s390_store_return_value): Remove.
2440 (s390_return_value_convention, s390_return_value): New functions.
2441 (is_float_singleton): Handle typedefs.
8a1dac83 2442 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
2443 Remove, replace by ...
2444 (s390_function_arg_pass_by_reference, s390_function_arg_float,
2445 s390_function_arg_integer): ... these new functions.
2446 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
2447 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
2448 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
2449 Fill in tdep->abi.
2450 Remove calls to:
2451 set_gdbarch_deprecated_store_struct_return,
2452 set_gdbarch_deprecated_extract_return_value,
2453 set_gdbarch_deprecated_store_return_value,
2454 set_gdbarch_use_struct_convention,
2455 set_gdbarch_extract_struct_value_address,
2456 set_gdbarch_deprecated_pc_in_call_dummy,
2457 set_gdbarch_deprecated_push_arguments,
2458 set_gdbarch_deprecated_save_dummy_frame_tos,
2459 set_gdbarch_deprecated_push_return_address,
2460 set_gdbarch_deprecated_sizeof_call_dummy_words,
2461 set_gdbarch_deprecated_call_dummy_words,
2462 set_gdbarch_deprecated_dummy_write_sp.
2463 Add calls to:
2464 set_gdbarch_push_dummy_call,
2465 set_gdbarch_unwind_dummy_id,
2466 set_gdbarch_return_value.
8a1dac83 2467
e1457d83
JB
2468 * config/s390/nm-linux.h: Update comments.
2469 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
2470 (STOPPED_BY_WATCHPOINT): Redefine.
2471 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
2472 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
2473 (s390_stopped_by_watchpoint): Likewise.
2474 (watch_area_cnt): Remove.
2475 * s390-nat.c: Update comments.
2476 (watch_area): Remove typedef.
2477 Global replace watch_area by struct watch_area.
2478 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 2479 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
2480 use s390_inferior_tid. Add short-cut for the no watchpoint case.
2481 (s390_fix_watch_points): Remove pid argument,
2482 use s390_inferior_tid. Recompute area spanned by watchpoints.
2483 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
2484 argument. Reimplement.
2485
d0f54f9d
JB
2486 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
2487 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
2488 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 2489 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
2490 core-regset.o.
2491 * config/s390/s390x.mt: Remove.
2492 * config/s390/tm-s390.h: Remove.
2493 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
2494 (TARGET_ELF64): Remove.
2495 (SKIP_TRAMPOLINE_CODE): Do not undefine.
2496 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
2497 s390*-*-* case; always set gdb_target to s390.
2498 * regformats/reg-s390.dat: Remove control registers.
2499 * regformats/reg-s390x.dat: Likewise.
2500 * s390-tdep.h: New file.
8a1dac83 2501 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
2502 Include "inferior.h" and "s390-tdep.h".
2503 Remove private definition of offsetof.
2504 (s390_register_u_addr): Remove.
2505 (regmap_gregset, regmap_fpregset): Define.
2506 (supply_gregset, fill_gregset): Reimplement.
2507 (supply_fpregset, fill_fpregset): Likewise.
2508 (s390_inferior_tid): New function.
2509 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
2510 (fetch_inferior_registers, store_inferior_registers): Likewise.
2511 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
2512 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
2513 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
2514 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
2515 (struct gdbarch_tdep): Define.
2516 (struct s390_register_info): Define.
2517 (s390_register_info): New variable.
2518 (s390_register_name): Reimplement.
2519 (s390_register_type): New function.
2520 (s390_register_raw_size, s390x_register_raw_size): Remove.
2521 (s390_cannot_fetch_register): Remove.
2522 (s390_register_byte): Remove.
2523 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
2524 (s390_dwarf_regmap): New variable.
2525 (s390_dwarf_reg_to_regnum): New function.
2526 (s390_stab_reg_to_regnum): Remove.
2527 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
2528 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
2529 (s390_convert_register_p): Likewise.
2530 (s390_register_to_value, s390_value_to_register): Likewise.
2531 (s390_register_reggroup_p): Likewise.
2532 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
2533 s390_gregset, s390x_gregset, s390_fpregset): New variables.
2534 (s390_supply_regset, s390_regset_from_core_section): New functions.
2535 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
2536 (S390_FPR_SIZE): Likewise.
2537 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
2538 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
2539 (S390_NUM_GPRS): Move here from tm-s390.h.
2540 (S390_NUM_FPRS): Likewise.
2541 (s390_in_function_epilogue_p): New function.
2542 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
2543 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
2544 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
2545 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
2546 Replace S390_FP_REGNUM by S390_SP_REGNUM.
2547 Remove calls to:
2548 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
2549 set_gdbarch_deprecated_max_register_virtual_size,
2550 set_gdbarch_deprecated_register_byte,
d0f54f9d 2551 set_gdbarch_cannot_fetch_register,
8a1dac83 2552 set_gdbarch_cannot_store_register,
d0f54f9d
JB
2553 set_gdbarch_deprecated_register_size,
2554 set_gdbarch_deprecated_register_raw_size,
2555 set_gdbarch_deprecated_register_virtual_size,
2556 set_gdbarch_deprecated_register_virtual_type,
2557 set_gdbarch_deprecated_register_bytes.
2558 Add calls to:
2559 set_gdbarch_num_pseudo_regs,
2560 set_gdbarch_register_type,
2561 set_gdbarch_convert_register_p,
2562 set_gdbarch_register_to_value,
2563 set_gdbarch_value_to_register,
2564 set_gdbarch_register_reggroup_p,
2565 set_gdbarch_regset_from_core_section,
2566 set_gdbarch_pseudo_register_read,
2567 set_gdbarch_pseudo_register_write,
2568 set_gdbarch_in_function_epilogue_p.
2569 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
2570 (s390_tdep_h): New variable.
2571
8cfe231d
JB
25722004-02-17 Jim Blandy <jimb@redhat.com>
2573
4589a601
JB
2574 * findvar.c (value_from_register): If the type has no length, just
2575 return an acceptable value --- don't report an internal error.
2576
8cfe231d
JB
2577 * stabsread.c (read_type): If we find any type numbers that are
2578 forward references, complain if the references aren't resolved by
2579 the time we're finished reading.
2580 (cleanup_undefined_types): Make error message more appropriate for
2581 a complaint.
2582
5bf0017e
EZ
25832004-02-17 Elena Zannoni <ezannoni@redhat.com>
2584
9d62932d
EZ
2585 * Makefile.in (defs_h): Remove dependency on progress_h.
2586 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
2587 progress.h.
2588 * main.c (captured_main): Delete use of START_PROGRESS and
2589 END_PROGRESS.
2590
25912004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 2592
5bf0017e
EZ
2593 * objfiles.c (terminate_minimal_symbol_table): Add back
2594 initialization of MSYMBOL_TYPE.
2595
9fc9f5e2
AC
25962004-02-17 David Mosberger <davidm@hpl.hp.com>
2597
2598 Committed by Andrew Cagney.
2599 * Makefile.in (ia64_tdep_h): New macro.
2600 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
2601 (ia64-tdep.o): Likewise.
2602 * ia64-tdep.h: New file.
2603 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
2604 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
2605 (ia64_aix_sigcontext_register_address): Likewise.
2606 (ia64_linux_getunwind_table): Delete declaration.
2607 * ia64-linux-tdep.c: Likewise.
2608
76cd2bd9
CV
26092004-02-17 Corinna Vinschen <vinschen@redhat.com>
2610
2611 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
2612 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
2613 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
2614
634aa483
AC
26152004-02-17 Andrew Cagney <cagney@redhat.com>
2616
2617 * symtab.c (skip_prologue_using_sal): New function.
2618 * symtab.h (skip_prologue_using_sal): Declare.
2619 * frv-tdep.c: Include "symtab.h".
2620 (skip_prologue_using_sal): Delete function.
2621 * mips-tdep.c (skip_prologue_using_sal): Delete function.
2622 * rs6000-tdep.c (refine_prologue_limit): Mention
2623 skip_prologue_using_sal.
2624 * ia64-tdep.c (refine_prologue_limit): Ditto.
2625 * Makefile.in: Update dependencies.
2626
26272004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 2628
39ce7b3f
AC
2629 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
2630 START_INFERIOR_TRAPS_EXPECTED.
2631 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
2632 START_INFERIOR_TRAPS_EXPECTED.
2633 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
2634 Delete macro.
2635 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
2636 macro, moved to "nm-osf.h". Update copyright.
2637 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
2638 update copyright.
2639
19772a2c
AC
2640 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
2641 and function replacing FRAMELESS_FUNCTION_INVOCATION.
2642 * blockframe.c (legacy_frameless_look_for_prologue): Rename
2643 frameless_look_for_prologue.
2644 * frame.h (legacy_frameless_look_for_prologue): Rename
2645 frameless_look_for_prologue.
2646 * gdbarch.h, gdbarch.c: Re-generate.
2647 * sh64-tdep.c (sh64_gdbarch_init): Update.
2648 * sh-tdep.c (sh_gdbarch_init): Update.
2649 * s390-tdep.c (s390_gdbarch_init): Update.
2650 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2651 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2652 * m68k-tdep.c (m68k_gdbarch_init): Update.
2653 (delta68_frame_args_address): Update.
2654 * m32r-tdep.c (m32r_gdbarch_init): Update.
2655 * hppa-tdep.c (hppa_gdbarch_init): Update.
2656 * h8300-tdep.c (h8300_gdbarch_init): Update.
2657 * frv-tdep.c (frv_gdbarch_init): Update.
2658 (frv_frameless_function_invocation): Update.
2659 * cris-tdep.c (cris_gdbarch_init): Update.
2660 (cris_frameless_function_invocation): Update.
2661 * avr-tdep.c (avr_gdbarch_init): Update.
2662 * arm-tdep.c (arm_gdbarch_init): Update.
2663 * stack.c (frame_info): Update, call predicate.
2664 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
2665 * frame.c (legacy_get_prev_frame): Update, call predicate..
2666 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
2667 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
2668 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
2669 invocation.
2670 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2671 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2672 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
2673
2674 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
2675 function.
2676
7dcaac91
DJ
26772004-02-16 Daniel Jacobowitz <drow@mvista.com>
2678
2679 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
2680 initializations.
2681
88289b6e
AC
26822004-02-16 Andrew Cagney <cagney@redhat.com>
2683
2684 * tui/tui-windata.c: Include "gdb_string.h".
2685 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
2686 * tui/tui-layout.c, tui/tui-command.c: Ditto.
2687 * Makefile.in: Update dependencies.
2688
9f976b41
DJ
26892004-02-16 Daniel Jacobowitz <drow@mvista.com>
2690
2691 * Makefile.in (infrun.o): Add $(gdb_assert_h).
2692 * infrun.c: Include "gdb_assert.h".
2693 (singlestep_ptid, saved_singlestep_ptid)
2694 (stepping_past_singlestep_breakpoint): New variables.
2695 (resume): Set singlestep_ptid. Check for singlestep thread
2696 hop.
2697 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
2698 (handle_inferior_event): Handle singlestep thread hop.
2699
c324d747
AC
27002004-02-16 Andrew Cagney <cagney@redhat.com>
2701
f090b9b1
AC
2702 * dwarf2-frame.c (dwarf2_frame_ops): New function.
2703 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
2704 (dwarf2_frame_init_reg): Ditto.
2705
fd33e6cb
AC
2706 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
2707 suggested by Joshua Neuheisel
2708
c324d747
AC
2709 * configure.in: Always check for curses, including pdcurses.
2710 Warn, instead of error, when no curses are found. Enable TUI when
2711 curses is available.
2712 * configure: Re-generate.
2713
b66ba949
CV
27142004-02-16 Corinna Vinschen <vinschen@redhat.com>
2715
2716 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
2717 sh_sh4_register_convert_to_virtual.
2718 (sh_register_convert_to_raw): Rename from
2719 sh_sh4_register_convert_to_raw.
2720 (sh_pseudo_register_read): Accomodate above name change.
2721 (sh_pseudo_register_write): Ditto.
2722
b58cbbf2
CV
27232004-02-16 Corinna Vinschen <vinschen@redhat.com>
2724
2725 * sh-tdep.c (sh_generic_register_name): Remove.
2726 (sh_gdbarch_init): Use sh_sh_register_name in default case.
2727
5929a910
AC
27282004-02-15 Andrew Cagney <cagney@redhat.com>
2729
4566dfcf
AC
2730 * configure.in (build_warnings): Add -Wunused-function.
2731 * configure: Re-generate.
2732
db11ed55
AC
2733 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
2734 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
2735
46ac7a5d
AC
2736 * procfs.c (procfs_init_inferior): Assume that
2737 START_INFERIOR_TRAPS_EXPECTED is defined.
2738 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
2739 * config/ns32k/tm-nbsd.h: Delete file,
2740 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
2741
ba801595
AC
2742 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
2743 * config/vax/tm-vax.h: Delete file.
2744
5929a910
AC
2745 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
2746 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
2747 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
2748 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
2749 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
2750 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
2751 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
2752
8f22cb90
MK
27532004-02-15 Mark Kettenis <kettenis@gnu.org>
2754
2755 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
2756 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2757 (struct dwarf2_frame_ops): New.
2758 (dwarf2_frame_default_init_reg): New function, based on
2759 dwarf2_frame_init_reg.
2760 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
2761 (dwarf2_frame_init_reg): Call architecture-specific function.
2762 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
2763 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
2764 instead of dwarf2_frame_data.
2765 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
2766 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
2767
8132723e
AC
27682004-02-15 Andrew Cagney <cagney@redhat.com>
2769
046a4708
AC
2770 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
2771 register_gdbarch_swap.
2772 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
2773 * f-lang.c (_initialize_f_language): Update, use
2774 DEPRECATED_REGISTER_GDBARCH_SWAP.
2775 * remote.c (_initialize_remote): Ditto.
2776 * regcache.c (_initialize_regcache): Ditto.
2777 * parse.c (_initialize_parse): Ditto.
2778 * infrun.c (_initialize_infrun): Ditto.
2779 * mi/mi-main.c (_initialize_mi_main): Ditto.
2780 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 2781
549c1eea
AC
2782 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
2783 poking .cacheable directly.
2784 * symfile.c (symfile_bfd_open): Ditto.
2785
0c0b39de
AC
2786 * Makefile.in: Update all dependencies.
2787
8132723e
AC
2788 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
2789 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
2790 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
2791 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
2792 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 2793
b9d26eb9
AC
27942004-02-14 Andrew Cagney <cagney@redhat.com>
2795
8e1f669a
AC
2796 * arch-utils.c (legacy_convert_register_p): Check
2797 DEPRECATED_REGISTER_CONVERTIBLE_P.
2798 * findvar.c (value_of_register): Ditto.
2799
cd0bfa36
AC
2800 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
2801 * gdbarch.h, gdbarch.c: Re-generate.
2802 * arch-utils.c (deprecated_register_convertible_not): Delete.
2803 * arch-utils.h (deprecated_register_convertible_not): Delete.
2804 * mi/mi-main.c (get_register): Update. Update copyright.
2805 * infcmd.c (default_print_registers_info): Update.
2806
b9d26eb9
AC
2807 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
2808 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
2809 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 2810 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
2811 * frame.c (deprecated_get_next_frame_hack): Delete function.
2812 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
2813 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2814 Update.
2815 * infcall.c (call_function_by_hand): Update.
2816
9ab9195f
EZ
28172004-02-14 Elena Zannoni <ezannoni@redhat.com>
2818
2819 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 2820 from here...
9ab9195f
EZ
2821 * objfiles.c (init_entry_point_info, entry_point_address):..to
2822 here.
2823 * symfile.h (init_entry_point_info, entry_point_address): Remove
2824 prototypes.
2825 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 2826 prototypes.
9ab9195f
EZ
2827 * cris-tdep.c: Remove include of symfile.h. Add include of
2828 objfiles.h.
2829 * infcall.c: Ditto.
2830 * mcore-tdep.c: Ditto.
2831 * mn10300-tdep.c: Ditto.
2832 * sh64-tdep.c: Ditto.
2833 * v850-tdep.c: Ditto.
2834 * arm-tdep.c: Remove include of symfile.h.
2835 * blockframe.c: Ditto.
2836 * coffread.c: Ditto.
2837 * dbxread.c: Ditto.
2838 * dwarf2read.c: Ditto.
2839 * dwarfread.c: Ditto.
8a1dac83 2840 * frv-tdep.c: Ditto.
9ab9195f
EZ
2841 * ia64-tdep.c: Ditto.
2842 * mdebugread.c: Ditto.
2843 * mipsread.c: Ditto.
8a1dac83 2844 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
2845 * s390-tdep.c: Ditto.
2846 * sh-tdep.c: Ditto.
8a1dac83 2847 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
2848 * gdbarch.sh: Remove include of symfile.h.
2849 * gdbarch.c: Regenerate.
2850 * solib-irix.c (enable_break): Use entry_point_address().
2851 Add comment about include file.
2852 * xcoffread.c: Add comment about include file.
8a1dac83
RM
2853 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
2854 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
2855 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
2856 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
2857 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
2858
c4c5b7ba
AC
28592004-02-13 Andrew Cagney <cagney@redhat.com>
2860
2861 * corelow.c (core_xfer_partial): Use "struct bfd_section".
2862 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
2863 copyright.
2864 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
2865
3e7879de
FF
28662004-02-12 Fred Fish <fnf@redhat.com>
2867
2868 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
2869 set_gdbarch_store_return_value.
2870
6a7760b6
AC
28712004-02-12 Andrew Cagney <cagney@redhat.com>
2872
2873 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
2874 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
2875 (interrupt_query): Ditto.
2876 (ofunc): Delete unused variable.
2877 * cris-tdep.c (cris_abi): Delete unused function.
2878 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
2879 (cris_get_wide_opcode, cris_get_short_size): Ditto.
2880 (cris_get_asr_quick_shift_steps): Ditto.
2881 (cris_skip_prologue_frameless_p): Ditto.
2882 * arm-tdep.c (arm_push_return_address): Delete unused function.
2883 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
2884 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
2885 * s390-tdep.c (s390_function_start): Delete unused function.
2886
31687c3c
AC
28872004-02-12 Andrew Cagney <cagney@redhat.com>
2888
2889 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
2890 gdbarch.h, gdbarch.c: Re-generate.
2891 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
2892 to generic_prologue_frameless_p.
2893 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
2894 * arch-utils.c (generic_prologue_frameless_p): Delete function.
2895
6de918a6
DJ
28962004-02-11 Daniel Jacobowitz <drow@mvista.com>
2897
2898 * mips-linux-tdep.c: Include "frame.h".
2899 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
2900 (mips_linux_skip_resolver): New functions.
2901 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
2902 and set_gdbarch_in_solib_call_trampoline.
2903 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
2904 to after set_gdbarch_in_solib_return_trampoline. Only set the
2905 solib hooks to mips16 functions if the OS ABI is unknown.
2906 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
2907 including "config/tm-linux.h".
2908 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
2909 * Makefile.in (mips-linux-tdep.o): Update.
2910
87b3ede8
DC
29112004-02-11 David Carlton <carlton@kealia.com>
2912
2913 * linespec.c (decode_compound): Only look for a class symbol when
2914 considering all but the rightmost component.
2915
5979bc46
AC
29162004-02-11 Andrew Cagney <cagney@redhat.com>
2917
2918 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
2919 abi code are are separatly grouped.
2920
5867a2fb
AC
29212004-02-11 Andrew Cagney <cagney@redhat.com>
2922
2923 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
2924 * gdbarch.h, gdbarch.c: Re-generate.
2925 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2926 * v850-tdep.c (v850_gdbarch_init): Update.
2927 * sh64-tdep.c (sh64_gdbarch_init): Update.
2928 * sh-tdep.c (sh_gdbarch_init): Update.
2929 * s390-tdep.c (s390_gdbarch_init): Update.
2930 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2931 * mips-tdep.c (mips_gdbarch_init): Update.
2932 * mcore-tdep.c (mcore_gdbarch_init): Update.
2933 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2934 * m32r-tdep.c (m32r_gdbarch_init): Update.
2935 * ia64-tdep.c (ia64_gdbarch_init): Update.
2936 * hppa-tdep.c (hppa_gdbarch_init): Update.
2937 * h8300-tdep.c (h8300_gdbarch_init): Update.
2938 * frv-tdep.c (frv_gdbarch_init): Update.
2939 * d10v-tdep.c (d10v_gdbarch_init): Update.
2940 * cris-tdep.c (cris_gdbarch_init): Update.
2941 * avr-tdep.c (avr_gdbarch_init): Update.
2942 * arm-tdep.c (arm_gdbarch_init): Update.
2943 * alpha-tdep.c (alpha_gdbarch_init): Update.
2944
026a72f8
CV
29452004-02-11 Corinna Vinschen <vinschen@redhat.com>
2946
2947 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
2948 comma.
2949 (sh_sh4al_dsp_register_name): Ditto.
2950
3903d437
AC
29512004-02-10 Andrew Cagney <cagney@redhat.com>
2952
2953 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
2954 (mips_init_frame_pc_first): Delete function.
2955 (mips_frame_saved_pc): Delete function.
2956 (mips_frame_chain): Delete function.
2957 (mips_init_extra_frame_info): Delete function.
2958 (mips_xfer_register): Delete unused variable "reg".
2959 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
2960 (mips_n32n64_return_value): Delete unused variable "reg".
2961 (mips_n32n64_return_value): Delete unused variable "pos".
2962 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
2963 (mips_o32_return_value): Delete unused variable "pos".
2964 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
2965 (mips_print_fp_register): Delete unused variable "namelen"
2966 (mips_print_fp_register): Delete unused variable "flt2"
2967 (get_frame_pointer): Delete function.
2968 (cached_proc_desc): Delete static variable.
2969 (mips_pop_frame): Delete function.
2970 (mips_find_saved_regs): Delete function.
2971 (mips_get_saved_register): Delete function.
2972 (mips_saved_pc_after_call): Delete function.
2973 (SIGFRAME_BASE): Delete macro.
2974 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
2975 (SIGFRAME_PC_OFF): Delete macro.
2976 (SIGFRAME_REGSAVE_OFF): Delete macro.
2977 (mips_dump_tdep): Do not print deleted macro definitions.
2978
b9fb98bd
AC
29792004-02-10 Andrew Cagney <cagney@redhat.com>
2980
2981 * Makefile.in (SFILES): Remove explictly listed tui files.
2982 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
2983
78ced177 29842004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 2985
78ced177
JJ
2986 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
2987 to use paddr functions to format ia64 addresses and long values.
2988 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
2989 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
2990 (get_kernel_table, ia64_find_proc_info_x): Ditto.
2991 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
2992 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
2993
6a83354a
AC
29942004-02-10 Andrew Cagney <cagney@redhat.com>
2995
2996 * defs.h: Do not include "tui.h".
2997 * gdb_curses.h: New file.
2998 * tui/tui-hooks.h: New file.
2999 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
3000 (tui_install_hooks, tui_remove_hooks): Delete declarations.
3001 (tui_initialize_io): Delete declaration.
3002 (tui_initialize_readline: Delete redundant declaration.
3003 (struct tui_point): Delete definition.
3004 * tui/tui-data.h (struct tui_point): Define.
3005 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
3006 * utils.c: Include "tui/tui.h".
3007 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
3008 * printcmd.c [TUI]: Include "tui/tui.h".
3009 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
3010 * tui/tui-command.c: Include "gdb_curses.h".
3011 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
3012 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
3013 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
3014 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
3015 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
3016 * Makefile.in: Update all dependencies.
3017 (tui_hooks_h, gdb_curses_h): Define.
3018 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
3019
997470ef
EZ
30202004-02-10 Elena Zannoni <ezannoni@redhat.com>
3021
3022 * objfiles.h (struct objfile): Remove unused fields auxf1 and
3023 auxf2. Add comments about some other rarely used fields.
3024
4ff2cc4d
AC
30252004-02-10 Andrew Cagney <cagney@redhat.com>
3026
3027 * Makefile.in (init.c): Fix script removing duplicates. Problem
3028 reported by Peter Schauer.
3029
1ab21617
EZ
30302004-02-09 Elena Zannoni <ezannoni@redhat.com>
3031
3032 * bcache.c (bcache_xmalloc): Use obstack_init instead of
3033 obstack_specify_allocation.
3034 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 3035 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
3036 (allocate_rt_common_objfile): Ditto.
3037 * symfile.c (reread_symbols): Ditto.
3038 * gdb_obstack.h: Add comment.
3039
17763fd9
EZ
30402004-02-09 Elena Zannoni <ezannoni@redhat.com>
3041
3042 * linespec.c (decode_line_1, locate_first_half)
3043 (decode_compound, lookup_prefix_sym): Update comments. Delete old
3044 commented out code.
3045
ec5cdd75
DJ
30462004-02-09 Daniel Jacobowitz <drow@mvista.com>
3047
3048 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
3049 obstack_free.
3050
43b54b88
AC
30512004-02-09 Andrew Cagney <cagney@redhat.com>
3052
3053 * blockframe.c (find_pc_partial_function): If find_pc_overlay
3054 fails, try find_pc_section. Fix PR c++/1267.
3055 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
3056 instead of find_pc_mapped_section.
3057 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
3058 not default to the section containing PC. Fix PR symtab/1519.
3059
edfae063
AC
30602004-02-09 Andrew Cagney <cagney@redhat.com>
3061
3062 * Makefile.in (mips-tdep.o): Update dependencies.
3063 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
3064 "trad-frame.h".
3065 (mips_unwind_pc): Return the pseudo PC register.
3066 (mips_unwind_dummy_id): New function.
3067 (mips16_fetch_instruction): New function.
3068 (mips32_fetch_instruction): New function.
3069 (struct mips_frame_cache): Define.
3070 (mips_mdebug_frame_cache): New function.
3071 (mips_mdebug_frame_this_id): New function.
3072 (mips_mdebug_frame_prev_register): New function.
3073 (mips_mdebug_frame_unwind): Define.
3074 (mips_mdebug_frame_sniffer): New function.
3075 (mips_mdebug_frame_base_address): New function.
3076 (mips_mdebug_frame_base): Define.
3077 (mips_mdebug_frame_base_sniffer): New function.
3078 (mips_gdbarch_init): Append unwind and base sniffers. Set
3079 unwind_dummy_id.
3080
defc864c
AC
30812004-02-08 Andrew Cagney <cagney@redhat.com>
3082
6764ddad
AC
3083 * frame.c: Print both the register number and name.
3084
defc864c
AC
3085 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
3086 and a sed into a single sed. Make .c and .o patterns more robust.
3087 (OBS): Delete.
3088 (INIT_FILES): Replace OBS with COMMON_OBS.
3089 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
3090
645d6d10
MK
30912004-02-08 Mark Kettenis <kettenis@gnu.org>
3092
3093 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
3094 the PT_WCOOKIE request.
3095
23e3c3fc
AC
30962004-02-08 Andrew Cagney <cagney@redhat.com>
3097
58dfe9ff
AC
3098 * mips-tdep.c (mips_unwind_pc): New function.
3099 (mips_gdbarch_init): Set mips_unwind_pc.
3100
1152e35e
AC
3101 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
3102 (get_frame_id): Allow the UNKNOWN_FRAME.
3103 (frame_register_unwind, get_frame_type): Ditto.
3104
31b75dbf
AC
3105 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
3106 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
3107 unwind_dummy_id indicates a legacy frame.
3108
3483b318
AC
3109 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
3110 * configure: Re-generate.
3111
23e3c3fc
AC
3112 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
3113 methods.
3114
33f8ca73
AC
31152004-02-08 Andrew Cagney <cagney@redhat.com>
3116
3117 * configure.in (CONFIG_ALL): Set to Makefile target, and not
3118 makefile macro.
3119 * configure: Re-generate.
3120 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
3121 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
3122 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
3123 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
3124 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
3125 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
3126 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
3127 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
3128 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
3129 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
3130
6ba8e26f 31312004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 3132
20d286a5
AC
3133 * Makefile.in: Update all dependencies.
3134
d836ee13
AC
3135 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
3136 * configure: Re-generate.
3137 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
3138 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
3139 (COMMON_OBS): Add "main.o" and "annotate.o".
3140 (ANNOTATE_OBS): Delete.
3141 (OBS): Remove ANNOTATE_OBS.
3142 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
3143 CONFIG_INITS.
3144 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
3145 against CONFIG_OBS and "main.o".
3146 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
3147 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
3148
d02c80cd
AC
3149 * tui/tui-command.c: Include "gdb_string.h", delete register
3150 attribute, use ISO-C function signatures.
3151 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
3152 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
3153 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
3154 * tui/tui.c: Ditto.
6ba8e26f
AC
3155
3156 * tui/tui-command.c: Change variable and function names to lower
3157 case.
3158 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
3159 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
3160 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
3161 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
3162 * tui/tui-winsource.c, tui/tui.c: Ditto.
3163
4a146b47
EZ
31642004-02-07 Elena Zannoni <ezannoni@redhat.com>
3165
3166 * buildsym.c (free_pending_blocks, finish_block)
3167 (record_pending_block, make_blockvector, end_symtab): Replace
3168 symbol_obstack with objfile_obstack.
8a1dac83 3169 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 3170 (coff_read_enum_type): Ditto.
8a1dac83 3171 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 3172 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 3173 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
3174 (dwarf2_symbol_mark_computed): Ditto.
3175 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
3176 * elfread.c (elf_symtab_read): Ditto.
3177 * hpread.c (hpread_symfile_init, hpread_symfile_init)
3178 (hpread_read_enum_type, hpread_read_function_type)
3179 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
3180 Ditto.
8a1dac83 3181 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 3182 (java_link_class_type): Ditto.
8a1dac83 3183 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
3184 (new_symbol): Ditto.
3185 * minsyms.c (install_minimal_symbols): Ditto.
3186 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
3187 (terminate_minimal_symbol_table): Replace symbol_obstack with
3188 objfile_obstack.
3189 (free_objfile): Remove freeing of symbol_obstack.
3190 * objfiles.h: Remove symbol_obstack field.
3191 * pa64solib.c (add_to_solist): Replace symbol_obstack with
3192 objfile_obstack.
3193 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
3194 symbol_obstack.
3195 (solib_add_common_symbols): Replace symbol_obstack with
3196 objfile_obstack.
3197 * somsolib.c (som_solib_add): Ditto.
3198 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3199 (common_block_start, common_block_end): Ditto.
3200 * symfile.c (reread_symbols): Remove freeing and init of
3201 symbol_obstack.
3202 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
3203 * symfile.h: Update comment.
3204 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
3205 stats printing.
3206 * symtab.c (symbol_set_names): Replace symbol_obstack with
3207 objfile_obstack.
3208 * symtab.h (struct general_symbol_info, struct minimal_symbol):
3209 Update comments.
3210 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
3211 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
3212 objfile_obstack.
3213
6d012f14
AC
32142004-02-07 Andrew Cagney <cagney@redhat.com>
3215
3216 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
3217 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
3218 fields and variables.
3219 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
3220 (m_beInvisible): Delete macro.
3221 * tui/tui-data.h: Fix case case fields and variables.
3222 (m_genWinPtrIsNull): Delete macro.
3223 (tui_win_list): Rename winList.
3224 (TUI_SRC_WIN): Rename srcWin.
3225 (TUI_DISASM_WIN): Rename disassemWin.
3226 (TUI_DATA_WIN): Rename dataWin.
3227 (TUI_CMD_WIN): Rename cmdWin.
3228 (m_genWinPtrNotNull): Delete macro.
3229 (m_winPtrIsNull): Delete macro.
3230 (m_winPtrNotNull): Delete macro.
3231 (tui_win_is_source_type): Replace m_winIsSourceType
3232 (tui_win_is_auxillary): Replace m_winIsAuzillary.
3233 (tui_win_has_locator): Replace m_hasLocator.
3234 (tui_set_win_highlight): Replace m_setWinHighlightOn and
3235 m_setWinHighlightOff.
3236 * tui/tui-data.c: Update references.
3237 (tui_win_is_source_type, tui_set_win_highlight): New functions.
3238 (tui_win_has_locator, tui_win_is_auxillary): New functions.
3239 * tui/tui-command.c, tui/tui-disasm.c: Update references.
3240 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
3241 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
3242 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
3243 * tui/tui-winsource.c, tui/tui.c: Ditto.
3244
7d34766b
MK
32452004-02-07 Mark Kettenis <kettenis@gnu.org>
3246
1c800673
MK
3247 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
3248 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
3249 StackGhost.
3250
7d34766b
MK
3251 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
3252 variable `i6' to `i7'.
3253 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
3254
22940a24
AC
32552004-02-07 Andrew Cagney <cagney@redhat.com>
3256
3257 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
3258 (TuiPoint, TuiPointPtr): Ditto.
3259 (TuiStatus, TuiStatusPtr): Ditto.
3260 (TuiWinType, TuiWinTypePtr): Ditto.
3261 (struct tui_point): Rename _TuiPoint.
3262 (tui_get_low_disassembly_address): Rename
3263 tuiGetLowDisassemblyAddress.
3264 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
3265 (tuiFree): Delete declaration.
3266 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
3267 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
3268 * tui/tui.c (tuiFree): Delete function.
3269 * cli/cli-cmds.c (disassemble_command): Update references.
3270 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
3271 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
3272 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
3273 * tui/tui-winsource.c: Ditto.
3274
8b92e4d5
EZ
32752004-02-07 Elena Zannoni <ezannoni@redhat.com>
3276
3277 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
3278 coffstab_build_psymtabs, elfstab_build_psymtabs)
3279 (stabsect_build_psymtabs): Replace psymbol_obstack with
3280 objfile_obstack.
3281 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
3282 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
3283 Ditto.
3284 * dwarfread.c (scan_compilation_units): Ditto.
3285 * elfread.c (elfstab_offset_sections): Ditto.
3286 * hppa-tdep.c (read_unwind_info): Ditto.
3287 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
3288 (hpread_end_psymtab): Ditto.
3289 * mdebugread.c (mdebug_build_psymtabs, add_pending)
3290 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
3291 Ditto.
3292 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 3293 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
3294 (build_objfile_section_table): Ditto.
3295 (allocate_objfile): Remove init of psymbol_obstack.
3296 (free_objfile): Remove freeing of psymbol_obstack.
3297 * objfiles.h (struct objfile): Remove field
3298 psymbol_obstack. Update comments.
3299 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
3300 psymbol_obstack with objfile_obstack.
3301 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
3302 psymbol_obstack.
3303 * somread.c (som_symfile_offsets, init_import_symbols)
3304 (init_export_symbols): Replace psymbol_obstack with
3305 objfile_obstack.
3306 * somsolib.c (som_solib_add_solib_objfile): Ditto.
3307 * symfile.c (default_symfile_offsets, syms_from_objfile)
3308 (reread_symbols): Remove freeing and init of psymbol_obstack.
3309 (cashier_psymtab): Update comment.
3310 * symmisc.c (print_objfile_statistics): Don't report stats for
3311 psymbol obstack.
3312 * symtab.h (struct general_symbol_info, struct partial_symtab):
3313 Update comments.
3314 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
3315 (xcoff_symfile_offsets): Replace psymbol_obstack with
3316 objfile_obstack.
3317
b99607ea
EZ
33182004-02-07 Elena Zannoni <ezannoni@redhat.com>
3319
3320 * objfiles.h (struct objfile): Add objfile_obstack field.
3321 Remove type_obstack field.
3322
3323 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
3324 read_structure_scope read_enumeration, new_symbol): Replace
3325 type_obstack with objfile_obstack.
3326 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 3327 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
3328 (lookup_fundamental_type): Ditto.
3329 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
3330 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
3331 (hpread_read_doc_function_type, hpread_read_struct_type)
3332 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 3333 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 3334 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
3335 (java_link_class_type): Ditto.
3336 * mdebugread.c (parse_type): Ditto.
3337 * objfiles.c (allocate_objfile, free_objfile): Ditto.
3338 * solib-sunos.c (solib_add_common_symbols): Ditto.
3339 * stabsread.c (define_symbol, read_type, read_member_functions,
3340 read_cpp_abbrev, read_one_struct_field): Ditto.
3341 * symfile.c (reread_symbols): Ditto.
3342 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 3343
2a8854a7
AC
33442004-02-07 Andrew Cagney <cagney@redhat.com>
3345
3346 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
3347 (tui_exec_info_content): Rename TuiExecInfoContent.
3348 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
3349 (TuiWinInfo, TuiWinInfoPtr): Ditto.
3350 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
3351 (TuiList, TuiListPtr): Ditto.
3352 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
3353 (TuiDataType, TuiDataTypePtr): Ditto.
3354 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
3355 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
3356 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
3357 (TuiSourceElement, TuiSourceElementPtr): Ditto.
3358 (TuiDataElement, TuiDataElementPtr): Ditto.
3359 (TuiWinElement, TuiWinElementPtr): Ditto.
3360 (TuiDataInfo, TuiDataInfoPtr): Ditto.
3361 (TuiCommandElement, TuiCommandElementPtr): Ditto.
3362 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
3363 (TuiWhichElement, TuiWhichElementPtr): Ditto.
3364 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
3365 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
3366 * tui/tui-command.c, tui/tui-data.c: Update references.
3367 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
3368 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
3369 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
3370 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 3371
05cbe71a
MK
33722004-02-07 Mark Kettenis <kettenis@gnu.org>
3373
3374 * dwarf2-frame.h: Update copyright.
3375 (enum dwarf2_frame_reg_rule): New.
3376 (struct dwarf2_frame_state_reg): New.
3377 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
3378 * dwarf2-frame.c: Update copyright.
3379 (enum dwarf2_reg_rule): Remove.
3380 (struct dwarf2_frame_state): Remove defenition of `struct
3381 dwarf2_frame_state_reg'.
3382 (read_reg): Call get_frame_arch to get the architecture instead of
3383 using CURRENT_GDBARCH.
3384 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
3385 DWARF2_FRAME_.
3386 (dwarf2_frame_init_reg): New function.
3387 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
3388 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
3389 initialize the register state. Prefix old `enum dwarf2_reg_rule'
3390 tags with DWARF2_FRAME_.
3391 (dwarf2_frame_prev_register): Call get_frame_arch to get the
3392 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
3393 dwarf2_reg_rule' tags with DWARF2_FRAME_.
3394
ec7d9e56
AC
33952004-02-06 Andrew Cagney <cagney@redhat.com>
3396
dd1abb8c
AC
3397 * tui/tui-data.h (struct tui_list): Rename _TuiList.
3398 (enum tui_data_type): Rename _TuiDataType.
3399 (struct tui_layout_def): Rename _TuiLayoutDef.
3400 (struct tui_source_element): Rename _TuiSourceElement.
3401 (struct tui_data_element): Rename _TuiDataElement.
3402 (struct tui_command_element): Rename _TuiCommandElement.
3403 (struct tui_locator_element): Rename _TuiLocatorElement.
3404 (union tui_which_element): Define.
3405 (struct tui_win_element): Rename _TuiWinElement.
3406 (struct tui_data_info): Rename _TuiDataInfo.
3407 (struct tui_source_info): Rename _TuiSourceInfo.
3408 (struct tui_command_info): Rename _TuiCommandInfo.
3409 (tui_initialize_static_data): Rename initializeStaticData.
3410 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
3411 (tui_alloc_win_info): Rename allocWinInfo.
3412 (tui_init_generic_part): Rename initGenericPart.
3413 (tui_init_win_info): Rename initWinInfo.
3414 (tui_alloc_content): Rename allocContent.
3415 (tui_add_content_elements): Rename addContentElements.
3416 (tui_init_content_element): Rename initContentElement.
3417 (tui_free_window): Rename freeWindow.
3418 (tui_free_win_content): Rename freeWinContent.
3419 (tui_free_data_content): Rename freeDataContent.
3420 (tui_free_all_source_wins_content): Rename
3421 freeAllSourceWinsContent.
3422 (tui_del_window): Rename tuiDelWindow.
3423 (tui_del_data_windows): Rename tuiDelDataWindows.
3424 (tui_partial_win_by_name): Rename partialWinByName.
3425 (tui_win_name): Rename winName.
3426 (tui_current_layout): Rename currentLayout.
3427 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
3428 (tui_term_height): Rename termHeight.
3429 (tui_set_term_height_to): Rename setTermHeightTo.
3430 (tui_term_width): Rename termWidth.
3431 (tui_set_term_width_to): Rename setTermWidthTo.
3432 (tui_set_gen_win_origin): Rename setGenWinOrigin.
3433 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
3434 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
3435 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
3436 (tui_source_windows): Rename sourceWindows.
3437 (tui_clear_source_windows): Rename clearSourceWindows.
3438 (tui_clear_source_windows_detail): Rename
3439 clearSourceWindowsDetail.
3440 (tui_clear_win_detail): Rename clearWinDetail.
3441 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
3442 (tui_default_tab_len): Rename tuiDefaultTabLen.
3443 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
3444 (tui_win_with_focus): Rename tuiWinWithFocus.
3445 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
3446 (tui_layout_def): Rename tuiLayoutDef.
3447 (tui_win_resized): Rename tuiWinResized.
3448 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
3449 (tui_next_win): Rename tuiNextWin.
3450 (tui_prev_win): Rename tuiPrevWin.
3451 (tui_add_to_source_windows): Rename addToSourceWindows.
3452 * tui/tui-winsource.c, tui/tui-win.c: Update references.
3453 * tui/tui-layout.c, tui/tui-source.c: Ditto.
3454 * tui/tui-stack.c, tui/tui-io.c: Ditto.
3455 * tui/tui.c, tui/tui-data.c: Ditto.
3456 * tui/tui-interp.c, tui/tui-data.c: Ditto.
3457 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
3458
a358af15
AC
3459 * tui/tui-source.h: Update copyright. Include "tui-data.h".
3460 (struct symtab): Declare.
3461 (tui_set_source_content): Rename tuiSetSourceContent.
3462 (tui_show_symtab_source): Rename tuiShowSource.
3463 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
3464 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
3465 * tui/tui-source.c: Update copyright. Update references.
3466 * tui/tui-win.c, tui/tui-winsource.c: Update references.
3467 * tui/tui-stack.c: Update references.
3468
a21fcd8f
AC
3469 * tui/tui-win.h: Update copyright. Include "tui-data.h".
3470 (struct tui_win_info): Declare.
3471 (tui_scroll_forward): Rename tuiScrollForward.
3472 (tui_scroll_backward): Rename tuiScrollBackward.
3473 (tui_scroll_left): Rename tuiScrollLeft.
3474 (tui_scroll_right): Rename tuiScrollRight.
3475 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
3476 (tui_resize_all): Rename tuiResizeAll.
3477 (tui_refresh_all_win): Rename tuiRefreshAll.
3478 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
3479 * tui/tui-layout.c, * tui/tui-io.c: Update references.
3480 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
3481 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
3482
edae1ccf
AC
3483 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
3484 (tui_erase_data_content): Rename tuiEraseDataContent.
3485 (tui_display_all_data): Rename tuiDisplayAllData.
3486 (tui_check_data_values): Rename tuiCheckDataValues.
3487 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
3488 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
3489 (tui_first_data_element_no_in_line): Rename
3490 tuiFirstDataElementNoInLine.
3491 (tui_delete_data_content_windows): Rename
3492 tuiDeleteDataContentWindows.
3493 (tui_refresh_data_win): Rename tuiRefreshDataWin.
3494 (tui_display_data_from): Rename tuiDisplayDataFrom.
3495 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
3496 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
3497 * tui/tui-win.c, tui/tui-regs.c: Update references.
3498 * tui/tui-layout.c, tui/tui.c: Update references.
3499
ec7d9e56
AC
3500 * tui/tui-wingeneral.h: Update copyright.
3501 (m_allBeVisible): Delete macro.
8a1dac83 3502 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
3503 (struct tui_gen_win_info): Declare.
3504 (struct tui_win_info): Declare.
3505 (tui_unhighlight_win): Rename unhighlightWin.
3506 (tui_make_visible, tui_make_invisible): Replace makeVisible.
3507 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
3508 (tui_make_window): Rename makeWindow.
3509 (tui_copy_win): Rename copyWin.
3510 (tui_box_win): Rename boxWin.
3511 (tui_highlight_win): Rename highlightWin.
3512 (tui_check_and_display_highlight_if_needed): Rename
3513 checkAndDisplayHighlightIfNeeded.
3514 (tui_refresh_all): Rename refreshAll.
3515 (tui_delete_win): Rename tuiDelwin.
3516 (tui_refresh_win): Rename tuiRefreshWin.
3517 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
3518 (tui_make_visible, tui_make_invisible): New functions.
3519 (tui_make_all_visible, tui_make_all_invisible): New functions.
3520 (make_all_visible): Rename makeAllVisible.
3521 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
3522 * tui/tui-data.c, tui/tui-winsource.c: Update references.
3523 * tui/tui-windata.c, tui/tui-win.c: Update references.
3524 * tui/tui-regs.c, tui/tui-layout.c: Update references.
3525 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
3526
1e52e2eb
MK
35272004-02-06 Mark Kettenis <kettenis@gnu.org>
3528
3529 * proc-api.c (write_with_trace): Initialize local variable to
3530 silence compiler warning.
3531
f80bda8e
AC
35322004-02-06 Andrew Cagney <cagney@redhat.com>
3533
3534 * tui/tui-source.h: Do not include "defs.h".
3535 (struct tui_win_info): Declare.
3536 (tui_set_source_content_nil): Declare.
3537 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
3538 (union tui_line_or_address): Rename _TuiLineOrAddress.
3539 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
3540 (tui_update_source_window): Rename tuiUpdateSourceWindow.
3541 (tui_update_source_window_as_is): Rename
3542 tuiUpdateSourceWindowAsIs.
3543 (tui_update_source_windows_with_addr): Rename
3544 tuiUpdateSourceWindowsWithAddr.
3545 (tui_update_source_windows_with_line): Rename
3546 tuiUpdateSourceWindowsWithLine.
3547 (tui_clear_source_content): Rename tuiClearSourceContent.
3548 (tui_erase_source_content): Rename tuiEraseSourceContent.
3549 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
3550 (tui_show_source_content): Rename tuiShowSourceContent.
3551 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
3552 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
3553 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
3554 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
3555 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
3556 (tui_update_exec_info): Rename tuiUpdateExecInfo.
3557 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
3558 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
3559 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
3560 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
3561 (struct tui_win_info): Declare.
3562 * tui/tui-stack.c: Update references.
3563 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
3564 * tui/tui-win.c, tui/tui-source.c: Ditto.
3565 * tui/tui.c, tui/tui-disasm.c: Ditto.
3566
9fbfb822
MK
35672004-02-06 Mark Kettenis <kettenis@gnu.org>
3568
3569 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
3570 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
3571
03cebad2
MK
35722004-02-05 Mark Kettenis <kettenis@gnu.org>
3573
3574 * infrun.c (handle_inferior_event): Allow for breakpoint
3575 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
3576 and SIGEMT. Update comments.
3577 * NEWS (Revised SPARC target): Mention support for non-executable
3578 stack.
3579
290281b1
MK
35802004-02-04 Mark Kettenis <kettenis@gnu.org>
3581
3582 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
3583 * inftarg.c: Update copyright year.
3584 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
3585 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
3586 (sparc_xfer_wcookie): New function.
3587 * sparc-tdep.c (sparc_fetch_wcookie): New function.
3588 * Makefile.in (sparc-nat.o): Update dependencies.
3589 * config/sparc/nm-nbsd.h: Include "target.h".
3590 (NATIVE_XFER_WCOOKIE): New define.
3591 (sparc_xfer_wcookie): New prototype.
3592
212161df
AC
35932004-02-04 Andrew Cagney <cagney@redhat.com>
3594
3595 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
3596 SYSCALL_TRAP function.
3597 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
3598
6e4c6c91
DJ
35992004-02-04 Andrew Cagney <cagney@redhat.com>
3600 Daniel Jacobowitz <drow@mvista.com>
3601
3602 * objfiles.h: Delete comments refering to inside_entry_func and
3603 DEPRECATED_FRAME_CHAIN_VALID.
3604 * defs.h (inside_entry_func): Update prototype..
3605 * blockframe.c (inside_entry_func): Rename to
3606 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
3607 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
3608
cae688ec
JJ
36092004-02-03 Jeff Johnston <jjohnstn@redhat.com>
3610
3611 * breakpoint.c (struct captured_parse_breakpoint_args): Move
3612 outside of #ifdef SOLIB_ADD region.
3613 (do_restore_lang_radix_cleanup): Ditto.
3614 (resolve_pending_breakpoint): Ditto.
3615
19217676
AC
36162004-02-03 Andrew Cagney <cagney@redhat.com>
3617
3618 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
3619 (process_note_abi_tag_sections): Delete unused function.
3620 (ia64_read_fp): Delete unused function.
3621 (gdbarch_extract_struct_value_address): Delete declaration.
3622
876753be
AC
36232004-02-02 Andrew Cagney <cagney@redhat.com>
3624
3625 * vax-tdep.c (vax_frame_chain): Delete call to
3626 deprecated_inside_entry_file.
3627 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
3628
d4f10bf2
MK
36292004-02-02 Mark Kettenis <kettenis@gnu.org>
3630
3631 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
3632 column that's "empty" or "same value" when eliminating REG_RA
3633 rules.
3634
cae688ec
JJ
36352004-02-02 Jeff Johnston <jjohnstn@redhat.com>
3636
3637 * NEWS: Add information about new pending breakpoint support.
3638
0101ce28
JJ
36392004-02-02 Jeff Johnston <jjohnstn@redhat.com>
3640
3641 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
3642 and pending fields for pending breakpoint support.
3643 * breakpoint.c (breakpoint_enabled): Add check for not pending.
3644 (condition_command): Only parse condition if not a pending
3645 breakpoint.
3646 (print_one_breakpoint): Add support for pending breakpoints.
3647 (describe_other_breakpoints): Add checks to verify we are not
3648 dealing with pending breakpoints.
3649 (check_duplicates): Don't check pending breakpoints.
3650 (set_raw_breakpoint): Initialize pending flag.
3651 (do_restore_lang_radix_cleanup): New cleanup routine.
3652 (resolve_pending_breakpoint): New function.
3653 (re_enable_breakpoints_in_shlibs): Try and resolve any
3654 pending breakpoints via resolve_pending_breakpoint.
3655 (mention): Add pending breakpoint support.
3656 (parse_breakpoint_sals): Add new parameter to pass to
3657 decode_line_1 to indicate silent errors when files or functions
3658 are not found. Change all callers.
3659 (do_captured_parse_breakpoint): New function.
3660 (break_command_1): Change prototype to return an rc value and to
3661 take an optional pending breakpoint pointer. Support creating
3662 a pending breakpoint if a "not found" form of error occurs when
3663 parsing the breakpoint. Also support resolving an existing pending
3664 breakpoint and be silent if the resolution fails.
3665 (create_breakpoints): Change prototype to take pending breakpoint
3666 pointer. When resolving a pending breakpoint, use the new pointer
3667 to provide a conditional or commands added by the end-user.
3668 (delete_breakpoint): Add appropriate check for pending.
3669 (breakpoint_re_set_one): Ditto.
3670 (do_enable_breakpoint): Ditto.
3671
8d577d32
DC
36722004-02-02 David Carlton <carlton@kealia.com>
3673
3674 * valops.c (enum oload_classification): New.
3675 (find_overload_match): Break implementation into separate
3676 functions; delete #if 0'd code; look for symbols within
3677 namespaces.
3678 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
3679 (find_oload_champ,oload_method_static,classify_oload_match): New.
3680 * cp-support.h: Add declaration for cp_func_name; update
3681 declaration for make_symbol_overload_list.
3682 * cp-support.c (cp_func_name): New.
3683 (overload_list_add_symbol): Fix comment, use
3684 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
3685 (make_symbol_overload_list): Take a function name and a namespace
3686 instead of a symbol; change implementation.
3687 (make_symbol_overload_list_using): New.
3688 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
3689
22e8e3c7
FF
36902004-02-02 Fred Fish <fnf@redhat.com>
3691
3692 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 3693 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
3694 * remote-sim.c (gdb_os_write_stderr): Write output to
3695 gdb_stdtargerr stream instead of gdb_stdtarg stream.
3696 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 3697 gdb_stderr stream and update copyright years.
22e8e3c7 3698
6b753f60
DJ
36992004-02-01 Daniel Jacobowitz <drow@mvista.com>
3700
3701 * Makefile.in (mips-linux-nat.o): Update dependencies.
3702 * mips-linux-nat.c: Include mips-tdep.h.
3703
37042004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
3705
3706 * sol-thread.c (sol_thread_xfer_partial): New function.
3707 (init_sol_thread_ops): Use that for to_xfer_partial hook.
3708 (init_sol_core_ops): Likewise.
3709
3710 * procfs.c (procfs_xfer_partial): New function.
3711 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
3712 * Makefile.in (procfs.o): Add $(auxv_h) dep.
3713
3714 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
3715 procfs_xfer_auxv function.
3716
3717 * procfs.c (procfs_make_note_section): If we can read
3718 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
3719 * linux-proc.c (linux_make_note_section): Likewise.
3720
3721 * auxv.h: New file.
3722 * auxv.c: New file.
3723 * Makefile.in (auxv_h): New variable.
3724 (COMMON_OBS): Add auxv.o here.
3725 (auxv.o): New target.
3726
3727 * corelow.c (core_xfer_partial): New function.
3728 (init_core_ops): Use it for core_ops.to_xfer_partial.
3729
3730 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
3731 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
3732 macro if that is defined.
3733
fa5281d0
DJ
37342004-02-01 Daniel Jacobowitz <drow@mvista.com>
3735
3736 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
3737 and check the specified thread for each breakpoint.
3738 * breakpoint.h (bpstat_stop_status): Update prototype.
3739 * infrun.c (handle_inferior_event): Update calls to
3740 bpstat_stop_status.
3741
26ee262d
DJ
37422004-02-01 Daniel Jacobowitz <drow@mvista.com>
3743
3744 * Makefile.in (cli-cmds.o): Add $(readline_h).
3745
d9b52655
DJ
37462004-02-01 Daniel Jacobowitz <drow@mvista.com>
3747
3748 * cli/cli-cmds.c: Include readline.h.
3749 (complete_command): Pass the start of the last word to
3750 complete_line.
3751
9709f61c
DJ
37522004-01-31 Daniel Jacobowitz <drow@mvista.com>
3753
3754 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
3755 argument, and change first argument to a CORE_ADDR.
3756 * breakpoint.h (bpstat_stop_status): Update prototype.
3757 * infrun.c (adjust_pc_after_break): Add a new comment.
3758 (handle_inferior_event): Update calls to bpstat_stop_status.
3759
4f1280bb
DJ
37602004-01-31 Daniel Jacobowitz <drow@mvista.com>
3761
3762 * breakpoint.h: Update copyright years.
3763
4fa8626c
DJ
37642004-01-31 Daniel Jacobowitz <drow@mvista.com>
3765
3766 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
3767 (bpstat_stop_status): Don't decrement PC.
3768 * breakpoint.h (software_breakpoint_inserted_here_p): Add
3769 prototype.
3770 * infrun.c (adjust_pc_after_break): New function.
3771 (handle_inferior_event): Call it, early. Remove later references
3772 to DECR_PC_AFTER_BREAK.
3773 (normal_stop): Add commentary.
3774
fad0733a
DJ
37752004-01-31 Daniel Jacobowitz <drow@mvista.com>
3776
3777 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
3778 2004-01-27 double-free fix.
3779
42cdca6c
MK
37802004-01-31 Mark Kettenis <kettenis@gnu.org>
3781
3782 * sparc-tdep.c (sparc_fetch_wcookie): New function.
3783 (sparc32_frame_prev_register): Handle StackGhost.
3784 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
3785
932d5416
RM
37862004-01-29 Roland McGrath <roland@redhat.com>
3787
3788 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
3789 * configure: Regenerated.
3790
3791 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
3792 * Makefile.in (procfs.o): Add dep.
3793
47d3492a
AC
37942004-01-28 Andrew Cagney <cagney@redhat.com>
3795
3796 * tui/tui-stack.h: Update copyright.
3797 (struct frame_info): Add opaque declaration.
3798 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
3799 (tui_show_locator_content): Rename tuiShowLocatorContent.
3800 (tui_show_frame_info): Rename tuiShowFrameInfo.
3801 * tui/tui-stack.c: Update copyright. Update references.
3802 * tui/tui-winsource.c: Update references.
3803 * tui/tui-win.c: Update references.
3804 * tui/tui-layout.c: Update references.
3805 * tui/tui-hooks.c: Update copyright, update references.
3806 * tui/tui.c: Update copyright, update references.
3807 * tui/tui-disasm.c: Update references.
3808
5d51ca54
DC
38092004-01-28 David Carlton <carlton@kealia.com>
3810
3811 * dwarf2read.c (add_partial_structure): Use demangled name if
3812 namespace equals "".
3813
086ed43d
JB
38142004-01-27 Jim Blandy <jimb@redhat.com>
3815
3816 Clean up misapplied patch:
3817 * dwarf2read.c (determine_prefix): Change one of the two forward
3818 declarations for 'determine_prefix_aux' to a declaration for this.
3819 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
3820 argument to 'die_specification'.
3821
2a35147e
JB
3822 * dwarf2read.c (read_func_scope): Re-indent comment.
3823
a355c7de 38242004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 3825
a355c7de
AC
3826 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
3827 b->exp to NULL after freeing so that error during re-parsing or
3828 evaluation of expressions associated with breakpoint don't
3829 eventually lead to re-freeing of storage.
3830 Committed by Andrew Cagney.
3831
63ff5125
AC
38322004-01-27 Andrew Cagney <cagney@redhat.com>
3833
3834 * source.c (ambiguous_line_spec): Delete undefined declaration.
3835 * m32r-rom.c (m32r_set_board_address): Delete unused function.
3836 (m32r_set_server_address, m32r_set_download_path): Ditto.
3837 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
3838
e142c38c
DJ
38392004-01-27 Daniel Jacobowitz <drow@mvista.com>
3840
3841 * dwarf2read.c: Update calls to changed and renamed functions, and
3842 references to moved variables.
3843
3844 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
3845 language, language_defn, list_in_scope, and ftypes members.
3846 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
3847 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
3848 (baseaddr): Remove globals.
3849
3850 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
3851 (set_cu_language, die_is_declaration, die_specification)
3852 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
3853 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
3854 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
3855 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
3856
3857 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
3858 cu.list_in_scope. Don't initialize cu_header_offset.
3859 (add_partial_symbol): Add local baseaddr.
3860 (psymtab_to_symtab_1): Add local baseaddr. Use
3861 objfile->section_offsets for consistency. Don't initialize
3862 cu_header_offset; do initialize cu.header.offset and
3863 cu.list_in_scope.
3864 (read_file_scope, read_func_scope, read_lexical_block_scope)
3865 (dwarf_decode_lines, new_symbol): Add local baseaddr.
3866
c6e06ede
MC
38672004-01-27 Michael Chastain <mec.gnu@mindspring.com>
3868
fb328ecc 3869 * PROBLEMS: Add gdb/1516.
c6e06ede 3870
48184fd4
AC
38712003-12-29 Robert Millan <robertmh@gnu.org>
3872
3873 Patch committed by Andrw Cagney.
3874 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
3875 * configure.tgt: Match knetbsd*-gnu.
3876
c1321b30
AC
38772004-01-26 Andrew Cagney <cagney@redhat.com>
3878
f3699be3
AC
3879 * breakpoint.c (catch_command_1): Delete #ifdef code.
3880 (catch_fork_command_1): Delete #ifdef wrapper.
3881 (catch_exec_command_1): Ditto.
3882 (catch_load_command_1): Ditto.
3883 (catch_unload_command_1): Ditto.
3884
c1321b30
AC
3885 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
3886 (catch_breakpoint): Delete #if0ed function.
3887 (disable_catch_breakpoint): Ditto.
3888 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
3889 (disable_catch, enable_catch, delete_catch): Ditto.
3890
b4501125
AC
38912004-01-26 Andrew Cagney <cagney@redhat.com>
3892
3893 * remote.c (echo_check, quit_flag): Delete variables.
3894 (cisco_kernel_mode): Delete variable.
3895 (minitelnet_return, tty_input, escape_count): Delete variables.
3896 (remote_cisco_mode): Delete variable.
3897 (remote_cisco_open, remote_cisco_close): Delete function.
3898 (remote_cisco_mourn, remote_cisco_wait): Delete function.
3899 (init_remote_cisco_ops): Delete function.
3900 (_initialize_remote): Do not install "remote cisco" code.
3901 (read_frame): Delete cisco specific code.
3902 (remote_info_process): Delete function.
3903 (remote_wait): Delete cisco specific code.
3904 (remote_cisco_section_offsets): Delete function.
3905 (remote_cisco_objfile_relocate): Delete function.
3906 (remote_async_wait): Delete cisco specific code.
3907 (minitelnet, readtty, readsocket): Delete function.
3908
74055713
AC
39092004-01-26 Andrew Cagney <cagney@redhat.com>
3910
3911 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
3912 comments mentioning extract_returned_value_address.
3913 * infcmd.c (print_return_value): Update. Add comments on
3914 extract_returned_value_address.
3915 * stack.c (return_command): Add comments on
3916 extract_returned_value_address.
3917 * values.c: Update comment.
3918 * m32r-tdep.c: Update comment.
3919 * sparc-tdep.c: Update comment.
3920 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
3921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3922 * sh64-tdep.c (sh64_gdbarch_init): Update.
3923 * sh-tdep.c (sh_gdbarch_init): Update.
3924 * s390-tdep.c (s390_gdbarch_init): Update.
3925 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3926 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
3927 * m68k-tdep.c (m68k_gdbarch_init): Update.
3928 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3929 * m32r-tdep.c (m32r_gdbarch_init): Update.
3930 * ia64-tdep.c (ia64_gdbarch_init): Update.
3931 * h8300-tdep.c (h8300_gdbarch_init): Update.
3932 * frv-tdep.c (frv_gdbarch_init): Update.
3933 * arm-tdep.c (arm_gdbarch_init): Update.
3934 * alpha-tdep.c (alpha_gdbarch_init): Update.
3935
a67af2b9
AC
39362004-01-26 Andrew Cagney <cagney@redhat.com>
3937
3938 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
3939 SYMBOL_LOCATION_FUNCS
3940 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
3941 "struct symbol_ops".
3942 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
3943 type to "struct symbol_ops".
3944 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
3945 (struct symbol): Replace ".aux_value.loc.funcs" and
3946 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
3947 (SYMBOL_OBJFILE): Delete macro.
3948 (SYMBOL_LOCATION_FUNCS): Delete macro.
3949 (SYMBOL_LOCATION_BATON): Update.
3950 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
3951 intead of SYMBOL_LOCATION_FUNCS.
3952 * ax-gdb.c (gen_var_ref): Ditto.
3953 * printcmd.c (address_info): Ditto.
3954 * findvar.c (read_var_value): Ditto.
3955 (symbol_read_needs_frame): Ditto.
3956
c034e007
AC
39572004-01-26 Andrew Cagney <cagney@redhat.com>
3958
3959 * dwarf2read.c (read_func_scope): Document frame-base hack.
3960
bb472c1e
MK
39612004-01-25 Mark Kettenis <kettenis@gnu.org>
3962
3963 * infcmd.c (print_return_value): Plug memory leak; delete
3964 ui_stream object. Rename argument `structure_return' to
3965 `struct_return'.
3966
c8e737d5
MK
39672004-01-25 Mark Kettenis <kettenis@gnu.org>
3968
f941662f
MK
3969 * infcmd.c (print_return_value): Wrap long lines.
3970 (finish_command_continuation, finish_command): Remove unused
3971 variable `funcaddr'. Fix some coding-standards problems.
3972
c558d81a
MK
3973 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
3974 SECT_SIZE is large enough, not wheter it's exactly the right size.
3975 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
3976 TDEP->fpregset to zero.
3977
bf1e5861 3978 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
3979 floating-point registers for traditional NetBSD core files.
3980 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
3981 TDEP->sizeof_fpregset here.
3982
4c72d57a
MK
39832004-01-25 Mark Kettenis <kettenis@gnu.org>
3984
566626fa
MK
3985 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
3986 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
3987 function with code split out from
3988 sparc32nbsd_sigcontext_frame_cache.
3989 (sparc32nbsd_sigcontext_frame_cache): Use
3990 sparc32nbsd_sigcontext_saved_regs.
3991 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
3992 OpenBSD.
3993 * sparcobsd-tdep.c: New file.
3994 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
3995 (sparcobsd-tdep.o): New dependency.
3996 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
3997 * config/sparc/obsd.mt: New file.
3998
4c72d57a
MK
3999 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
4000 TDEP->fpregset to be initialized to enable core file register
4001 sets.
4002
7e5e9f88
MK
40032004-01-24 Mark Kettenis <kettenis@gnu.org>
4004
f0f207fd 4005 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
4006 Add opaque declarations.
4007 (sparc64nbsd_sigcontext_saved_regs): New prototype.
4008 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
4009 function with code split out from
4010 sparc64nbsd_sigcontext_frame_cache.
4011 (sparc64nbsd_sigcontext_frame_cache): Use
4012 sparc64nbsd_sigcontext_saved_regs.
4013 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
4014 OpenBSD.
4015 * sparc64obsd-tdep.c: New file.
4016 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
4017 (sparc64obsd-tdep.o): New dependency.
4018 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
4019 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
4020 * config/sparc/obsd64.mt: New file.
4021
690668cc
MK
4022 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
4023 read the instruction at PC.
4024
7e5e9f88
MK
4025 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
4026 value of GDB_OSABI_DEFAULT.
4027 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
4028 instead of GDB_OSABI_NETBSD_AOUT.
4029
68b6dce9
NR
40302004-01-24 Nick Roberts <nick@nick.uklinux.net>
4031
4032 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
4033 copyright.
4034
080ce8c0
AC
40352004-01-23 Andrew Cagney <cagney@redhat.com>
4036
4037 * printcmd.c (display_command): Replace tui_set_display call with
4038 tui_set_layout_for_display_command.
4039 * tui/tui.h (enum tui_win_type): Define.
4040 (tui_set_layout): Delete declaration.
4041 (tui_set_layout_for_display_command): Rename set_tui_layout.
4042 * tui/tui-data.h (enum tui_layout_type): Define.
4043 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
4044 "tui.h".
4045 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
4046 (tui_default_win_height): Rename tuiDefaultWinHeight.
4047 (tui_default_win_viewport_height): Rename
4048 tuiDefaultWinViewportHeight.
4049 (tui_set_layout): RenametuiSetLayout.
4050 * tui/tui-layout.c: Update references.
4051 * tui/tui.c: Update references.
4052 * tui/tui-disasm.c: Update references.
4053
b368761e
DC
40542004-01-23 David Carlton <carlton@kealia.com>
4055
4056 Partial workaround for PR c++/1511:
4057 * cp-namespace.c: Include frame.h.
4058 (cp_lookup_transparent_type): New
4059 (cp_lookup_transparent_type_loop): New.
4060 * cp-support.h: Declare cp_lookup_transparent_type.
4061 * symtab.c (basic_lookup_transparent_type): Renamed from
4062 lookup_transparent_type.
4063 (lookup_transparent_type): Replace old body by a call to
4064 current_language->la_lookup_transparent_type.
4065 * symtab.h: Update copyright. Declare
4066 basic_lookup_transparent_type.
4067 * language.h: Update copyright.
4068 (struct language_defn): Add la_lookup_transparent_type.
4069 * language.c: Update copyright.
4070 (unknown_language_defn): Add basic_lookup_transparent_type.
4071 (auto_language_defn): Add basic_lookup_transparent_type.
4072 (local_language_defn): Add basic_lookup_transparent_type.
4073 * ada-lang.c: Update copyright.
4074 (ada_language_defn): Add basic_lookup_transparent_type.
4075 * c-lang.c: Update copyright.
4076 (c_language_defn): Add basic_lookup_transparent_type.
4077 (cplus_language_defn): Add basic_lookup_transparent_type.
4078 (asm_language_defn): Add basic_lookup_transparent_type.
4079 (minimal_language_defn): Add basic_lookup_transparent_type.
4080 * f-lang.c: Update copyright.
4081 (f_language_defn): Add basic_lookup_transparent_type.
4082 * jv-lang.c: Update copyright.
4083 (java_language_defn): Add basic_lookup_transparent_type.
4084 * m2-lang.c: Update copyright.
4085 (m2_language_defn): Add basic_lookup_transparent_type.
4086 * objc-lang.c: Update copyright.
4087 (objc_language_defn): Add basic_lookup_transparent_type.
4088 * p-lang.c: Update copyright.
4089 (p_language_defn): Add basic_lookup_transparent_type.
4090 * scm-lang.c: Update copyright.
4091 (scm_language_defn): Add basic_lookup_transparent_type.
4092 * Makefile.in (cp-namespace.o): Depend on frame.h.
4093
fdde2d81
DC
40942004-01-23 David Carlton <carlton@kealia.com>
4095
4096 Patch for PR c++/1520:
4097 * dwarf2read.c (read_func_scope): Set processing_current_prefix
4098 properly if we have a specification die.
4099 (determine_prefix_aux): Rename from determine_prefix.
4100 (determine_prefix): Like the old determine_prefix, but never
4101 returns NULL.
4102
5b828b6b
TR
41032004-01-23 Theodore A. Roth <troth@openavr.org>
4104
4105 * avr-tdep.c: Update copyright.
4106 (avr_iaddr_p): Delete unused function.
4107 (avr_saddr_p): Delete unused function.
4108
a1b8c067
DC
41092004-01-23 David Carlton <carlton@kealia.com>
4110
4111 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
4112 Fix for PR symtab/1534.
4113
f2cab569
MK
41142004-01-23 Mark Kettenis <kettenis@gnu.org>
4115
4116 * NEWS (New native configurations): Mention OpenBSD/sparc and
4117 OpenBSD/sparc64.
4118 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
4119 * configure.host: Likewise.
4120 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
4121 handler for OpenBSD.
4122 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
4123
642d8300
MK
41242004-01-22 Mark Kettenis <kettenis@gnu.org>
4125
89aac506
MK
4126 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
4127 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
4128
36662fde
MK
4129 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
4130 * cli/cli-cmds.c (shell_escape): Likewise.
4131
642d8300
MK
4132 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
4133 OpenBSD .note.openbsd.ident sections.
4134
fae299cd
DC
41352004-01-22 David Carlton <carlton@kealia.com>
4136
4137 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
4138 get_scope_pc_bounds.
4139 (read_file_scope): Ditto.
4140 (get_scope_pc_bounds): New function, produced by extracting code
4141 from the above two functions, consolidating it, and adding support
4142 for DW_TAG_namespace.
4143
a49d618c
MK
41442004-01-22 Mark Kettenis <kettenis@gnu.org>
4145
4146 * osabi.c (MAX_NOTESZ): New define.
4147 (check_note): New function.
4148 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
4149 check_note.
4150
fe61caab
RM
41512004-01-21 Roland McGrath <roland@redhat.com>
4152
4153 * MAINTAINERS (write after approval): Add myself.
4154
ec145965
EZ
41552004-01-21 Eli Zaretskii <eliz@gnu.org>
4156
4157 * utils.c (init_page_info): Move declarations of `rows' and
4158 `cols' before the __GO32__-specific code. Move the closing brace
4159 outside the #ifdef __GO32__..#endif block.
4160 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
4161
877522db
PB
41622004-01-21 Paul Brook <paul@codesourcery.com>
4163
4164 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
4165 BPSTAT_WHAT_CHECK_SHLIBS.
4166
dbf5be1c
PB
41672004-01-21 Paul Brook <paul@codesourcery.com>
4168
4169 * MAINTAINERS: Add myself to write-after-approval.
4170
81f08b92
AC
41712004-01-20 Andrew Cagney <cagney@redhat.com>
4172
5a1efed7
AC
4173 * ax-gdb.c (print_axs_value): Delete unused function.
4174 * jv-lang.c (java_lookup_type): Delete unused function.
4175 * cli/cli-dump.c (dump_filetype): Delete unused function.
4176 * remote-mips.c (remote_mips_insert_hw_breakpoint)
4177 (remote_mips_remove_hw_breakpoint): Delete unused functions.
4178 (mips_getstring): Delete unused function.
4179 (pmon_insert_breakpoint): Delete #if0ed function.
4180 (PMON_MAX_BP): Delete #if0ed MACRO.
4181 (mips_pmon_bp_info): Delete #if0ed variable.
4182 (pmon_remove_breakpoint): Delete #if0ed function.
4183 * monitor.c (monitor_write_even_block): Delete unused function.
4184 (monitor_write_memory_block): Delete #if0ed code.
4185 * dink32-rom.c (dink32_load): Delete unused function.
4186 (_initialize_dink32_rom): Delete #if0ed code.
4187 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
4188
b0a30fce
AC
4189 * tui/tui-command.c: Update references.
4190 * tui/tui-io.c: Update references.
4191 * tui/tui-command.h: Update copyright.
4192 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
4193
81f08b92
AC
4194 * source.c (ambiguous_line_spec): Delete never-defined function.
4195 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
4196 * gdbtypes.c (add_name, add_mangled_type): Ditto.
4197 * cli/cli-cmds.c (validate_comname): Ditto.
4198
65f05602
AC
4199 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
4200 "tui-data.h".
4201 (tui_set_disassem_content): Rename tuiSetDisassemContent.
4202 (tui_show_disassem): Rename tuiShowDisassem.
4203 (tui_show_disassem_and_update_source): Rename
4204 tuiVerticalDisassemScroll.
4205 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
4206 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
4207 * tui/tui.h: Update copyright.
4208 (enum tui_status): Define.
4209 * tui/tui-data.h (enum tui_scroll_direction): Define.
4210 * tui/tui-disasm.c: Update copyright. Update references.
4211 * tui/tui-winsource.c: Update copyright. Update references.
4212 * tui/tui-win.c: Update references.
4213 * tui/tui-layout.c: Update references.
4214
6bb0384f
AC
42152004-01-20 Andrew Cagney <cagney@redhat.com>
4216
4217 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
4218 sym2 to start of block.
4219
9175c9a3
MC
42202004-01-19 Michael Chastain <mec.gnu@mindspring.com>
4221
4222 * MAINTAINERS: Delete mmalloc.
4223 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
4224 * NEWS: Mention removal of --with-malloc.
4225 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
4226 * config.in: Regenerate.
4227 * configure: Regenerate.
6bb0384f
AC
4228 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
4229 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
4230 * gdbinit.in: Remove mmalloc.
4231 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
4232 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
4233 * config/i386/go32.mh: Likewise.
4234 * config/i386/interix.mh: Likewise.
4235 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
4236
4fcef00a
JJ
42372004-01-19 Jeff Johnston <jjohnstn@redhat.com>
4238
4239 * linespec.c (decode_variable, symtab_from_filename): Call
4240 error_silent with error message instead of throwing an exception
4241 directly.
4242 * defs.h (error_silent, error_output_message): Add prototypes.
4243 (catch_exceptions_with_msg): Ditto.
4244 * utils.c (error_silent, error_output_message): New functions.
4245 * top.c (catch_exceptions_with_msg): New function.
4246
8e94b928
NR
42472004-01-20 Nick Roberts <nick@nick.uklinux.net>
4248
4249 * mi/mi-cmds.h (enum print_values): Add definition.
4250
4251 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
4252 type and value for simple data types and just the name and type
4253 for complex ones, if required.
4254
4255 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
4256 children, if required.
4257
a02d6af8
KB
42582004-01-19 Kevin Buettner <kevinb@redhat.com>
4259
4260 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
4261 unused declarations.
4262
78a4a9b9
AC
42632004-01-19 Andrew Cagney <cagney@redhat.com>
4264
4265 * top.h (mapped_symbol_files): Delete declaration.
4266 * main.c (captured_main): Delete option "m" and "mapped".
4267 * objfiles.c (mapped_symbol_files): Delete variable.
4268 * symfile.c (symbol_file_command): Delete mmap code.
4269 (symbol_file_add_with_addrs_or_offsets): Ditto.
4270 (add_symbol_file_command, reread_separate_symbols): Ditto.
4271 * objfiles.h (OBJF_MAPPED): Delete.
4272 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
4273 (free_objfile) [USE_MMALLOC]: Ditto.
4274 (open_existing_mapped_file): Delete function.
4275 (open_mapped_file): Delete function.
4276 (map_to_file): Delete function.
4277
2dbd5e30
KB
42782004-01-19 Kevin Buettner <kevinb@redhat.com>
4279
4280 * infrun.c (step_into_function): Account for possible breakpoint
4281 adjustment when computing ``stop_func_start''.
4282
437b434f
KB
42832004-01-19 Kevin Buettner <kevinb@redhat.com>
4284
4285 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
4286 the region size against the size of a pointer, not the size of
4287 a register as given by DEPRECATED_REGISTER_SIZE.
4288
55fb0713
AC
42892004-01-19 Andrew Cagney <cagney@redhat.com>
4290
4291 * tui/tui-regs.h: Include "tui-data.h".
4292 (tuiFirstRegElementNoInLine): Delete declaration.
4293 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
4294 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
4295 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
4296 (tui_calculate_regs_column_count): Rename
4297 tuiCalculateRegsColumnCount.
4298 (tui_check_register_values): Rename tuiCheckRegisterValues.
4299 (tui_show_registers): Rename tuiShowRegisters.
4300 (tui_display_registers_from_line): Rename
4301 tuiDisplayRegistersFromLine.
4302 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
4303 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
4304 (tui_first_reg_element_no_inline): Rename
4305 tuiFirstRegElementNoInLine.
4306 * tui/tui-data.h: Update copyright.
4307 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
4308 * tui/tui-windata.c: Update copyright, update references.
4309 * tui/tui-regs.c: Update copyright, update references.
4310 * tui/tui-win.c: Update copyright, update references.
4311 * tui/tui-layout.c: Update copyright, update references.
fe61caab 4312
cebe9500
AC
43132004-01-18 Andrew Cagney <cagney@redhat.com>
4314
bcdf1568
AC
4315 * tui/tui-io.c: Update copyright.
4316 (key_is_end_sequence, key_is_backspace): New functions.
4317 (key_is_command_char, key_is_start_sequence): New function.
4318 (tui_getc): Update references.
4319 * tui/tui-io.h: Update copyright.
4320 (m_tuiStartNewLine): Delete macro.
4321 (m_isBackspace, m_isDeleteChar): Delete macros.
4322 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
4323 (m_isNextPage, m_isPrevPage): Delete macros.
4324 (m_isLeftArrow, m_isRightArrow): Delete macros.
4325 (m_isXdbStyleCommandChar): Delete macro.
4326 (key_is_start_sequence): Declare, replace m_isStartSequence.
4327 (key_is_end_sequence): Declare, replace m_isEndSequence.
4328 (key_is_backspace): Declare ,replace m_isBackspace.
4329 (key_is_command_char): Declare, replace m_isCommandChar.
4330 * tui/tui-command.c: Update copyright.
4331 (tuiDispatchCtrlChar): Update references.
4332
130d87e6
AC
4333 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
4334 tuiSourceWin.h.
4335
d7b2e967
AC
4336 * tui/tui-command.c: Rename tui/tuiCommand.c.
4337 * tui/tui-command.h: Rename tui/tuiCommand.h.
4338 * tui/tui-data.c: Rename tui/tuiData.c.
4339 * tui/tui-data.h: Rename tui/tuiData.h.
4340 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
4341 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
4342 * tui/tui-io.c: Rename tui/tuiIO.c.
4343 * tui/tui-io.h: Rename tui/tuiIO.h.
4344 * tui/tui-layout.c: Rename tui/tuiLayout.c.
4345 * tui/tui-layout.h: Rename tui/tuiLayout.h.
4346 * tui/tui-regs.c: Rename tui/tuiRegs.c.
4347 * tui/tui-regs.h: Rename tui/tuiRegs.h.
4348 * tui/tui-source.c: Rename tui/tuiSource.c.
4349 * tui/tui-source.h: Rename tui/tuiSource.h.
4350 * tui/tui-stack.c: Rename tui/tuiStack.c.
4351 * tui/tui-stack.h: Rename tui/tuiStack.h.
4352 * tui/tui-win.c: Rename tui/tuiWin.c.
4353 * tui/tui-win.h: Rename tui/tuiWin.h.
4354 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
4355 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
4356 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
4357 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
4358 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
4359 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
4360 * tui/tui-file.c: Update includes.
4361 * tui/tui-hooks.c: Update includes.
4362 * tui/tui-interp.c: Update includes.
4363 * tui/tui.c: Update includes.
4364 * Makefile.in: Update all tui/ dependencies.
4365 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
4366
b2100910
AC
4367 * Makefile.in: Update copyright. Update dependencies.
4368
cebe9500
AC
4369 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
4370 problem.
4371
c6f0559b
AC
43722004-01-18 Andrew Cagney <cagney@redhat.com>
4373
43e9390b
AC
4374 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
4375 instead of register_gdbarch_init.
4376
c6f0559b
AC
4377 * remote-sds.c (tohex): Delete unused function. Update copyright.
4378 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
4379 * v850-tdep.c (v850_register_virtual_size): Ditto.
4380 * target.c (normal_target_post_startup_inferior): Ditto.
4381 * source.c (ambiguous_line_spec): Ditto.
4382 * remote.c (adapt_remote_get_threadinfo): Ditto.
4383 * mi/mi-out.c (out_field_fmt): Ditto.
4384 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
4385 (output_control_change_notification): Ditto.
4386 * m68k-tdep.c (m68k_register_byte): Ditto.
4387 (m68k_remote_breakpoint_from_pc): Ditto.
4388 * ui-out.c (init_ui_out_state): Delete unused declaration.
4389 * stabsread.c (search_value): Ditto.
4390 * mi/mi-cmd-env.c (env_cli_command): Ditto.
4391 * maint.c (print_section_table): Ditto.
4392 * infrun.c (set_follow_fork_mode_command): Ditto.
4393
a8504492
MK
43942004-01-18 Mark Kettenis <kettenis@gnu.org>
4395
4396 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
4397 DW_CFA_def_cfa_exporession. Add support for
4398 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
4399 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
4400
0bd8997e
AC
44012004-01-18 Andrew Cagney <cagney@redhat.com>
4402
4403 * ocd.c: Update copyright.
4404 (bdm_read_register_command): Delete unused function.
4405 (_initialize_remote_ocd): Delete commented out reference.
4406 (get_quoted_char, reset_packet): Delete #if0ed function.
4407 (output_packet, put_quoted_char): Delete #if0ed function.
4408 (stu_put_packet, stu_get_packet): Delete #if0ed function.
4409 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
4410 (BDM_BREAKPOINT): Delete #if0ed macro.
4411 (remote_timeout): Delete #if0ed variable.
4412
31bb40e4
MK
44132004-01-18 Mark Kettenis <kettenis@gnu.org>
4414
4415 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
4416 (core-sol2.o): Remove dependency.
4417 * core-sol2.c: Remove file.
4418
887432a5
AC
44192004-01-17 Andrew Cagney <cagney@redhat.com>
4420
4421 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
4422 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
4423 enums.
4424
29182b13
DJ
44252004-01-17 Daniel Jacobowitz <drow@mvista.com>
4426
4427 * remote.c: Update copyright years.
4428
2963ee1d
DJ
44292004-01-17 Daniel Jacobowitz <drow@mvista.com>
4430
4431 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
4432
79d45cd4
AC
44332004-01-17 Andrew Cagney <cagney@redhat.com>
4434
ee300cd4
AC
4435 * mdebugread.c: Update copyright.
4436 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
4437 (parse_type, parse_procedure): Ditto.
4438 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
4439
fcacc9c2
AC
4440 * cris-tdep.c (cris_store_struct_return): Put back accidently
4441 deleted function.
4442
79d45cd4
AC
4443 * gdbarch.sh: Update copyright year.
4444 * gdbarch.h, gdbarch.c: Re-generate.
4445
b263358a
DJ
44462004-01-17 Daniel Jacobowitz <drow@mvista.com>
4447
4448 Suggested by George Anzinger.
4449 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
4450 correct stack offset. Include unknown opcode numbers in the error
4451 message.
4452
931aecf5
AC
44532004-01-17 Andrew Cagney <cagney@redhat.com>
4454
4455 * x86-64-tdep.c (x86_64_init_abi): No need to clear
4456 extract_struct_value_address, i386 does not set it.
4457 * sparc64-tdep.c (sparc64_init_abi): Do not set
4458 extract_struct_value_address, never called.
4459 (sparc64_extract_struct_value_address): Delete function.
4460 * m68hc11-tdep.c: Update copyright.
4461 (m68hc11_gdbarch_init): Delete redundant assignment of
4462 extract_struct_value_address.
4463 * i386-tdep.c: Update copyright.
4464 (i386_gdbarch_init): Do not set extract_struct_value_address,
4465 never called.
4466 (i386_extract_struct_value_address): Delete function.
4467 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
4468 extract_struct_value_address, never called.
4469 (sparc32_extract_struct_value_address): #if 0 function. Add
4470 comments explaining its future.
4471
756fe439
DJ
44722004-01-17 Daniel Jacobowitz <drow@mvista.com>
4473
4474 * arm-tdep.c (arm_write_pc): New function.
4475 (arm_gdbarch_init): Call set_gdbarch_write_pc.
4476
e74f0f02
DJ
44772004-01-17 Daniel Jacobowitz <drow@mvista.com>
4478
4479 * breakpoint.c (must_shift_inst_regs): Delete.
4480 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
4481 and SHIFT_INST_REGS.
4482 * infcmd.c (step_1, step_1_continuation): Delete references to
4483 SHIFT_INST_REGS.
4484 * infrun.c (keep_going): Likewise.
4485 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
4486 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
4487
b6cb9035
AC
44882004-01-17 Andrew Cagney <cagney@redhat.com>
4489
444a1e2e
AC
4490 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4491 * gdbarch.h, gdbarch.c: Re-generate.
4492 * infcmd.c (print_return_value): Delete reference to
4493 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4494
def7e6ed
AC
4495 * cris-tdep.c (cris_gdbarch_init): Do not set
4496 deprecated_extract_struct_value_address.
4497
07be497a
AC
4498 * xstormy16-tdep.c: Update copyright.
4499 (xstormy16_extract_struct_value_address): Update to current
4500 extract struct value address interface.
4501 (xstormy16_gdbarch_init): Set extract_struct_value_address.
4502 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
4503 current extract struct value address interface.
4504 (sh64_gdbarch_init): Set extract_struct_value_address.
4505
6b4d5c91
AC
4506 * cris-tdep.c: Update copyright.
4507 (cris_extract_struct_value_address): Delete function.
4508 (struct_return_address): Delete variable.
4509 (cris_store_struct_return): Do not set struct_return_address.
4510
464e0365
AC
4511 * mcore-tdep.c: Update copyright.
4512 (mcore_extract_struct_value_address): Delete function. Update
4513 comments.
4514 (mcore_gdbarch_init): Update.
4515 * mn10300-tdep.c: Update copyright.
4516 (mn10300_extract_struct_value_address): Delete function.
4517 (mn10300_gdbarch_init): Update.
4518 * v850-tdep.c: Update copyright.
4519 (v850_extract_struct_value_address): Delete.
4520 (v850_gdbarch_init): Update.
4521 * ns32k-tdep.c: Update copyright.
4522 (ns32k_extract_struct_value_address): Delete.
4523 (ns32k_gdbarch_init): Update.
4524 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
4525 (hppa_gdbarch_init): Update.
4526 * vax-tdep.c: Update copyright.
4527 (vax_extract_struct_value_address): Delete.
4528 (vax_gdbarch_init): Update.
4529
afb18d0f
AC
4530 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
4531 * gdbarch.h, gdbarch.c: Re-generate.
4532 * procfs.c (procfs_fetch_registers): Delete reference to
4533 DEPRECATED_NPC_REGNUM.
4534 (procfs_store_registers): Ditto.
4535 * regcache.c (generic_target_write_pc): Simplify.
4536 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
4537
a698f53e
AC
4538 * core-sol2.c (fetch_core_registers): Replace
4539 DEPRECATED_NPC_REGNUM with equivalent tdep value.
4540
adc11376
AC
4541 * hppa-tdep.c: Update copyright year.
4542 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
4543 NPC_REGNUM.
4544 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
4545
b6cb9035
AC
4546 * mips-tdep.c (mips_write_pc): New function.
4547 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
4548 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
4549 (mips_find_saved_regs, mips_software_single_step: Ditto.
4550 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
4551 mips_init_extra_frame_info, mips_pop_frame): Ditto.
4552
6d82d43b
AC
45532004-01-17 Andrew Cagney <cagney@redhat.com>
4554
4555 * mips-tdep.c: Re-indent. Group functions by ABI.
4556
71bd6bd4
AC
45572004-01-17 Andrew Cagney <cagney@redhat.com>
4558
4559 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
4560 * gdbarch.c: Re-generate.
4561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4562 DECR_PC_AFTER_BREAK to zero.
4563 * vax-tdep.c (vax_gdbarch_init): Ditto.
4564 * v850-tdep.c (v850_gdbarch_init): Ditto.
4565 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
4566 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4567 * sh-tdep.c (sh_gdbarch_init): Ditto.
4568 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4569 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4570 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4571 * mips-tdep.c (mips_gdbarch_init): Ditto.
4572 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4573 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4574 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4575 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4576 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
4577 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4578 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4579 * frv-tdep.c (frv_gdbarch_init): Ditto.
4580 * cris-tdep.c (cris_gdbarch_init): Ditto.
4581 * avr-tdep.c (avr_gdbarch_init): Ditto.
4582 * arm-tdep.c (arm_gdbarch_init): Ditto.
4583 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
4584
a02abb62
JB
45852004-01-17 J. Brobecker <brobecker@gnat.com>
4586
4587 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
4588 Delete, no longer used.
4589 (read_subrange_type): New function, mostly extracted from
4590 read_array_type().
4591 (read_array_type): Replace extracted code by call to
4592 read_subrange_type().
4593 (dwarf2_get_attr_constant_value): New function.
4594 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
4595 (add_partial_symbol): Likewise.
4596 (process_die): Likewise.
4597 (new_symbol): Likewise.
4598 (read_type_die): Likewise.
4599
cf5b2f1b
AC
46002004-01-16 Andrew Cagney <cagney@redhat.com>
4601
4602 * symfile.c: Update copyright year.
4603 (compare_symbols): Delete unused function.
4604 * stabsread.c: Update copyright year.
4605 (lrs_general_complaint): Delete unused function.
4606 (ref_search_value): Ditto.
4607 (get_substring): Delete declaration.
4608 * sh64-tdep.c: Update copyright year.
4609 (sh64_get_gdb_regnum): Delete unused function.
4610 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
4611 Delete unused function.
4612
d33b9831
MK
46132004-01-17 Mark Kettenis <kettenis@gnu.org>
4614
4615 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
4616 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
4617
7aea86e6
AC
46182004-01-16 Andrew Cagney <cagney@redhat.com>
4619
4620 Changes from Peter Schauer.
4621 * rs6000-tdep.c: Update copyright year.
4622 (rs6000_push_dummy_call): Update the stack pointer before
4623 accessing the corresponding stack region.
4624 * rs6000-nat.c: Update copyright year.
4625 (set_host_arch): Set "info.abfd" to "exec_bfd".
4626
26b0da32
MK
46272004-01-15 Mark Kettenis <kettenis@gnu.org>
4628
4629 * blockframe.c: Update copyright year.
4630 (inside_entry_func): Don't treat a zero PC specially.
4631
86fbe6cc
EZ
46322004-01-14 Elena Zannoni <ezannoni@redhat.com>
4633
4634 * gcore.c (gcore_copy_callback): Use paddr_d to print size
4635 variable.
4636 (gcore_create_callback): Ditto. Skip any memory segment that has
4637 no permissions set.
4638
63d06c5c
DC
46392004-01-14 David Carlton <carlton@kealia.com>
4640
4641 Change symbols for C++ nested types to contain the fully qualified
4642 name, if possible. (At least in the DWARF-2 case.) Partial fix
4643 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
4644 c++/895.
4645 * c-exp.y (qualified_type): Handle types nested within classes.
4646 * cp-namespace.c: Update comments.
4647 (cp_set_block_scope): Delete #if 0.
4648 (cp_lookup_nested_type): Handle types nested within classes.
4649 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
4650 when appropriate.
4651 (add_partial_symbol): Add the name of the enclosing namespace to
4652 types.
4653 (pdi_needs_namespace): New.
4654 (add_partial_namespace): Tweak comment.
4655 (add_partial_structure): New.
4656 (psymtab_to_symtab_1): Initialize processing_current_prefix
4657 here...
4658 (process_die): instead of here.
4659 (read_structure_scope): Try to figure out the name of the class or
4660 namespace that the structure might be defined within.
4661 (read_enumeration): Generate fully-qualified names, if possible.
4662 (read_namespace): Don't set name to NULL.
4663 (die_specification): New.
4664 (new_symbol): Generate fully-qualified names for types.
4665 (read_type_die): Determine appropriate prefix.
4666 (determine_prefix): New.
4667 (typename_concat): New.
4668 (class_name): New.
4669 * valops.c (value_aggregate_elt): Pass NOSIDE to
4670 value_struct_elt_for_reference.
4671 (value_struct_elt_for_reference): Make static, add NOSIDE
4672 parameter, call value_maybe_namespace_elt as a last resort.
4673 (value_namespace_elt): Break out code into
4674 value_maybe_namespace_elt.
4675 (value_maybe_namespace_elt): New.
4676
87783b8b
AC
46772004-01-12 Andrew Cagney <cagney@redhat.com>
4678
4679 * mips-tdep.c (mips_convert_register_p): Handle both raw and
4680 cooked floating-point registers.
4681 (mips_gdbarch_init): Set convert_register_p, register_to_value,
4682 and value_to_register.
4683
6503b91e
AC
46842004-01-13 Andrew Cagney <cagney@redhat.com>
4685
4686 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
4687 * gdbarch.c: Re-generate.
4688 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4689 FUNCTION_START_OFFSET.
4690 * v850-tdep.c (v850_gdbarch_init): Ditto.
4691 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
4692 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4693 * sh-tdep.c (sh_gdbarch_init): Ditto.
4694 * s390-tdep.c (s390_gdbarch_init): Ditto.
4695 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4696 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4697 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4698 * mips-tdep.c (mips_gdbarch_init): Ditto.
4699 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4700 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4701 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4702 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4703 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4704 * i386-tdep.c (i386_gdbarch_init): Ditto.
4705 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4706 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4707 * frv-tdep.c (frv_gdbarch_init): Ditto.
4708 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4709 * cris-tdep.c (cris_gdbarch_init): Ditto.
4710 * avr-tdep.c (avr_gdbarch_init): Ditto.
4711 * arm-tdep.c (arm_gdbarch_init): Ditto.
4712 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4713
ea1dd7bc
DJ
47142004-01-13 Daniel Jacobowitz <drow@mvista.com>
4715
4716 * infrun.c (follow_fork_mode_ask): Remove.
4717 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
4718 (follow_fork): Simplify and remove internal error for
4719 follow_fork_mode_ask.
4720 (_initialize_infrun): Update "set follow-fork-mode" help text.
4721
0f0cffd2
AC
47222004-01-13 Andrew Cagney <cagney@redhat.com>
4723
4724 * configure.in: Update copyright year.
4725 (build_warnings): Add -Wunused-label.
4726 * configure: Re-generate.
4727
de38af99
AC
47282004-01-12 Andrew Cagney <cagney@redhat.com>
4729
954a7fba
AC
4730 * exec.h (exec_ops): Make "extern".
4731
de38af99
AC
4732 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
4733 the function is void.
4734 (mips_pseudo_register_write): Ditto.
4735
1a111ce3
AC
47362004-01-12 Andrew Cagney <cagney@redhat.com>
4737
4738 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
4739 call. Never defined.
4740 * sparc-tdep.h (struct frame_info): Add opaque declaration.
4741 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
4742 (struct sparc_gregset, struct regcache): Ditto.
4743 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
4744
48efe704
AC
47452004-01-12 Andrew Cagney <cagney@redhat.com>
4746
4747 * mi/ChangeLog: Delete file. Renamed to ...
4748 * mi/ChangeLog-1999-2003: New file.
4749 * tui/ChangeLog: Delete file. Renamed to ...
4750 * tui/ChangeLog-1998-2003: New file.
fe61caab 4751
a54124c5
MK
47522004-01-11 Mark Kettenis <kettenis@gnu.org>
4753
2ca62865
MK
4754 * sparc64nbsd-tdep.c: Include "regset.h".
4755 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
4756 Remove variables.
4757 (fetch_core_registers): Remove function.
4758 (sparc64nbsd_core_fns): Remove variable.
4759 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
4760 functions.
4761 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
4762 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
4763 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
4764
ca9d58e9
MK
4765 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
4766 sparc_extract_struct_value_address.
4767 (sparc32_gdbarch_init): Set extract_struct_value_address.
4768 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
4769 function.
4770 (sparc64_init_abi): Set extract_struct_value_address. Don't set
4771 return_value_on_stack.
4772
3cc87ec0
MK
4773 * NEWS: Mention that %cs and %ss have been added to the AMD64
4774 configurations
4775
5bf00f29
MK
4776 * frame.c: Update copyright year.
4777 (get_prev_frame): Improve comment.
4778
4f7ec84e
MK
4779 * sparc64fbsd-tdep.c: Include "regset.h".
4780 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
4781 Remove variables.
4782 (fetch_core_registers): Remove function.
4783 (sparc64fbsd_core_fns): Remove variable.
4784 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
4785 functions.
4786 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
4787 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 4788 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 4789
4e7b0cd3
MK
4790 * sparcnbsd-tdep.c: Include "regset.h".
4791 (fetch_core_registers): Remove function.
4792 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
4793 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
4794 functions.
4795 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
4796 TDEP->fpregset.
46b58ce9 4797 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 4798
a54124c5
MK
4799 * sparc-tdep.h (struct regset): Provide opaque declaration.
4800 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
4801 fpregset and sizeof_fpregset members.
4802 * sparc-tdep.c (struct regset): Provide opaque declaration.
4803 (sparc_regset_from_core_section): New function.
4804 (sparc32_gdbarch_init): Initialize TDEP->gregset,
4805 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
4806 Set regset_from_core_section when appropriate.
4807
29ff87c5
MK
48082004-01-10 Mark Kettenis <kettenis@gnu.org>
4809
79b1ab3d
MK
4810 * x86-64-tdep.c (amd64_non_pod_p): New function.
4811 (amd64_classify_aggregate): Return class memory for non-POD
4812 C++ structure types.
4813
6470d250
MK
4814 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
4815 argument. Use it to reserve a register if necessary.
4816 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
4817 amd64_push_arguments.
4818
562c50c2
MK
4819 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
4820
af233647
MK
4821 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
4822 register numbers in comments.
4823 * x86-64-tdep.h: Update copyright year.
4824 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
4825 Adjust for addition of %cs and %ss.
4826 * amd64fbsd-nat.c: Update copyright year.
4827 (reg_offset): Add register offsets for %cs and %ss.
4828 * amd64fbsd-tdep.c: Update copyright year.
4829 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
4830 (amd64fbsd_sc_reg_offset): Likewise.
4831 * x86-64-linux-nat.c: Update copyright year.
4832 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
4833 and %ss.
4834 * amd64nbsd-nat.c: Update copyright year.
4835 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
4836 * amd64nbsd-tdep.c: Update copyright year.
4837 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
4838 * x86-64-linux-tdep.c: Update copyright year.
4839 (user_to_gdb_regmap): Add mapping for %cs and %ss.
4840 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
4841 * regformats/reg-x86-64.dat: Add %cs and %ss.
4842
29ff87c5
MK
4843 * blockframe.c (inside_entry_func): Reformat. Introduce new local
4844 variables to prevent long lines. Update comments to reflect
4845 reality.
4846
38d518c9
EZ
48472004-01-09 David Carlton <carlton@kealia.com>
4848
4849 Checked in by Elena Zannoni <ezannoni@redhat.com>.
4850 * dwarf2read.c (read_namespace): Pull out name-generating code
4851 into namespace_name. Rename previous_namespace to previous_prefix
4852 and processing_current_namespace to processing_current_prefix..
4853 (namespace_name): New function.
4854 (add_partial_symbol): Substitute uses of pdi->name with
4855 actual_name.
4856 * cp-support.h: Rename processing_current_namespace to
4857 processing_current_prefix.
4858 Update copyright year.
4859 * cp-namespace.c: Rename processing_current_namespace to
4860 processing_current_prefix.
4861 Update copyright year.
fe61caab 4862
1e4728e7
AC
48632004-01-09 Andrew Cagney <cagney@redhat.com>
4864
4865 * jv-valprint.c, ser-unix.c: Add missing copyright years.
4866
c77c642a
MK
48672004-01-09 Mark Kettenis <kettenis@gnu.org>
4868
4869 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
4870 complaining.
4871 (process_one_symbol): Deal with N_PATCH stabs.
4872
b44e9041
EZ
48732004-01-09 Elena Zannoni <ezannoni@redhat.com>
4874
4875 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
4876 ifdeffed code.
4877 Update copyright year.
38d518c9 4878
eccfb640
MC
48792004-01-08 Michael Chastain <mec.gnu@mindspring.com>
4880
4881 * config/pa/tm-hppa.h: Update extern declarations for
4882 hppa32_hpux_frame_saved_pc_in_sigtramp,
4883 hppa32_hpux_frame_base_before_sigtramp, and
4884 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
4885
848c5feb
MC
48862004-01-08 Michael Chastain <mec.gnu@mindspring.com>
4887
4888 * config/pa/tm-hppah.h: Update copyright years.
4889
3cc5d663
AC
48902004-01-08 Andrew Cagney <cagney@redhat.com>
4891
4892 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
4893 (mips_o32_reg_struct_has_addr): Delete function.
4894 (mips_gdbarch_init): Update.
4895 (mips_extract_struct_value_address): Delete function.
4896
bfec0b41
JJ
48972004-01-08 David Mosberger <davidm@hpl.hp.com>
4898
4899 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
4900 reality.
4901
16e109ca
AC
49022004-01-07 Andrew Cagney <cagney@redhat.com>
4903
6214a8a1
AC
4904 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
4905 architecture's elf flags (when available).
4906
8d5838b5
AC
4907 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
4908 FPU to the start, check the MIPS FPU when looking for an old
4909 architecture.
4910 (set_mipsfpu_single_command): Update the architecture.
4911 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
4912
480d3dd2
AC
4913 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
4914 (mips_mask_address_p): Add "tdep" parameter.
4915 (show_mask_address, mips_addr_bits_remove): Update.
4916 (mips_dump_tdep): Update.
4917 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
4918 (MIPS_STACK_ARGSIZE): Delete macro.
4919 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
4920 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
4921 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
4922 (mips_dump_tdep): Update.
4923 (MIPS_SAVED_REGSIZE): Delete macro.
4924 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
4925 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
4926 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
4927 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
4928 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
4929 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
4930 (mips_pop_frame, return_value_location): Update.
4931 (mips_n32n64_return_value, mips_dump_tdep): Update.
4932
ec03c1ac
AC
4933 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
4934 MIPS ABI.
4935
16e109ca
AC
4936 * mips-tdep.c: Update copyright.
4937 (mips_gdbarch_init): Merge two code blocks handling the register
4938 name and number layout.
4939
15255275
MS
49402004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
4941
4942 * tracepoint.c (validate_actionline): Fix segv at EOF
4943
9f9057da
MC
49442004-01-07 Michael Chastain <mec.gnu@mindspring.com>
4945
4946 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
4947 properly for static fields.
4948
0127c0d3 49492004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 4950 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
4951
4952 * disasm.c: Update copyright to include 2004.
4953 (do_mixed_source_and_assembly): For uiout asm list
4954 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 4955 NULL and do so prior to loop. Only reset when we close off
0127c0d3 4956 the tuple/list. Move check for whether to close off the
fe61caab 4957 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
4958 on each loop iteration.
4959
5269965e
AC
49602004-01-05 Andrew Cagney <cagney@redhat.com>
4961
54f1137d
AC
4962 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
4963 should be a switch case and not a label.
4964 * mips-tdep.c (mips32_next_pc): Delete unused labels
4965 "greater_equal_branch" and "less_zero_branch".
4966 * jv-valprint.c (java_print_value_fields): Delete unused label
4967 "flush_it".
4968
5269965e
AC
4969 * target.c (unpush_target): Only close a target that is in the
4970 target stack.
4971
dbc22fa1
MK
49722004-01-05 Mark Kettenis <kettenis@gnu.org>
4973
9515395e
MK
4974 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
4975 address from [sp + 64] instead of %o2.
4976
dbc22fa1
MK
4977 * frame.c (get_prev_frame): Don't try to unwind the PC. This
4978 fixes PR backtrace/1476.
4979
5439edaa
AC
49802004-01-05 Andrew Cagney <cagney@redhat.com>
4981
4982 * libunwind-frame.h (struct frame_id): Add opaque declaration,
4983 move to start of file.
4984 * i386-tdep.h (struct regcache): Add opaque declaration.
4985 * config/ia64/nm-linux.h (struct target_ops): Add opaque
4986 declaration.
4987 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
4988 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
4989 * win32-nat.c (fake_create_process): Use ISO C style definition.
4990 * stabsread.c (define_symbol): Delete #ifndef
4991 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
4992 stabs_argument_has_addr call, macro never defined.
4993
19061abe
MC
49942004-01-04 Michael Chastain <mec.gnu@mindspring.com>
4995
4996 * op50-rom.c: Delete.
4997 * w89k-rom.c: Delete.
4998 * Makefile.in: Remove references.
4999
e53bef9f
MK
50002004-01-04 Mark Kettenis <kettenis@gnu.org>
5001
5002 * x86-64-tdep.c: Update copyright year.
5003 (struct amd64_register_info): Rename from x86_64_register_info.
5004 (amd64_register_info): Rename from x86_64_register_info.
5005 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
5006 (amd64_register_name): Rename from x86_64_register_name.
5007 (amd64_register_type): Rename from x86_64_register_type.
5008 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
5009 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
5010 (amd64_dwarf_reg_to_regnum): Rename from
5011 x86_64_dwarf_reg_to_regnum.
5012 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
5013 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
5014 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
5015 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
5016 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
5017 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
5018 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
5019 (amd64_frame_cache): Rename from x86_64_frame_cache.
5020 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
5021 (amd64_frame_prev_register): Rename from
5022 x86_64_frame_prev_register.
5023 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
5024 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
5025 (amd64_sigtramp_frame_cache): Rename from
5026 x86_64_sigtramp_frame_cache.
5027 (amd64_sigtramp_frame_prev_register): Rename from
5028 x86_64_sigtramp_frame_prev_register.
5029 (amd64_sigtramp_frame_unwind): Rename from
5030 x86_64_sigtramp_frame_unwind.
5031 (amd64_sigtramp_frame_sniffer): Rename from
5032 x86_64_sigtramp_frame_sniffer.
5033 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
5034 (amd64_frame_base): Rename from x86_64_frame_base.
5035 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
5036 (amd64_frame_align): Rename from x86_64_frame_align.
5037 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
5038 (amd64_regset_from_core_section): Rename from
5039 x86_64_regset_from_core_section.
5040 (x86_64_init_abi): Update comments.
5041
fca6aa58
NR
50422004-01-04 Nick Roberts <nick@nick.uklinux.net>
5043
5044 * MAINTAINERS (write after approval): Add myself.
5045
8ada74e3
MK
50462004-01-04 Mark Kettenis <kettenis@gnu.org>
5047
5048 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5049 `float' arguments.
5050
5154b0cd
MK
50512004-01-04 Mark Kettenis <kettenis@gnu.org>
5052
5053 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
5054 such that it mentions a specific version of GCC that exhibits this
5055 bug.
5056
fb316966
MK
50572004-01-03 Mark Kettenis <kettenis@gnu.org>
5058
200cc553
MK
5059 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
5060 structure that has a single `float' member, store it in %f1 in
5061 addition to %f0.
5062
e226a4a0
MK
5063 * sparc-sol2-nat.c: Add missing '\'.
5064
b9d4c5ed
MK
5065 * sparc-tdep.c (sparc32_return_value): New function.
5066 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
5067 Remove functions.
5068 (sparc32_gdbarch_init): Set return_value, don't set
5069 extract_return_value, store_return_value, use_struct_convention
5070 and return_value_on_stack.
5071
fb316966
MK
5072 * sparc-sol2-nat.c: Add missing ')'.
5073
1af510a8
JB
50742004-01-03 J. Brobecker <brobecker@gnat.com>
5075
5076 * infrun.c (handle_step_into_function): New function.
5077 (handle_inferior_event): Extract out some code into the new
5078 function above.
5079
5cf4d23a
JB
50802004-01-03 J. Brobecker <brobecker@gnat.com>
5081
5082 * infrun.c (handle_inferior_event): Move the declaration of
5083 real_stop_pc inside the if blocks where it is used.
5084
60af1db2
MK
50852004-01-03 Mark Kettenis <kettenis@gnu.org>
5086
5087 * sparc64-tdep.c (sparc64_16_byte_align_p)
5088 (sparc64_store_floating_fields, sparc64_store_floating_fields):
5089 Use check_typedef to get subtypes of structures and unions.
5090 (sparc64_store_return_value): Fix calculation of the appropriate
5091 offset into VALBUF when storing a structure or union.
5092 (sparc64_return_value): New function.
5093 (sparc64_use_struct_convention): Remove function.
5094 (sparc64_init_abi): Set return_value, don't set
5095 extract_return_value, store_return_value and
5096 use_struct_convention.
5097
1a901d3f
EZ
50982004-01-03 Eli Zaretskii <eliz@elta.co.il>
5099
5100 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
5101 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
5102 gdb/config/alpha/xm-alphaosf.h,
5103 gdb/config/powerpc/tm-ppcle-eabi.h,
5104 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
5105 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
5106 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
5107 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
5108 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
5109 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
5110 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
5111 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
5112 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
5113 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
5114 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
5115 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
5116 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
5117 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
5118 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
5119 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
5120 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
5121 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
5122 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
5123 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
5124 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
5125 Remove lines for .cvsignore files.
5126
ef52e463
JB
51272004-01-03 J. Brobecker <brobecker@gnat.com>
5128
5129 * infrun.c: Back out the previous change.
5130
cb1bf9dc
MK
51312004-01-03 Mark Kettenis <kettenis@gnu.org>
5132
f0424ef6
MK
5133 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
5134 sparc-*-sunos4* to the list of REMOVED configurations.
5135
cb1bf9dc
MK
5136 * configure.tgt: Add back sparc-*-vxworks*.
5137 * remote-vxsparc.c: Remove all includes except for "defs.h",
5138 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
5139 Include "sparc-tdep.h".
5140 (SPARC_R_G1): New define.
5141 (vxsparc_gregset): New variable.
5142 (ext_format_sparc): Remove extern declaration.
5143 (vx_read_register): Rewrite to use sparc32_supply_gregset and
5144 sparc32_supply_fpregset.
5145 (vx_write_register): Rewrite to use sparc32_collect_gregset,
5146 sparc_collect_rwindow and sparc32_collect_fpregset.
5147 * config/sparc/tm-vxworks.h: New file, based on recently removed
5148 tm-vxsparc.h.
5149 * config/sparc/vxworks.mt: New file, based on recently removed
5150 vxworks.mt.
fe61caab 5151
5e938f9f
JB
51522004-01-03 J. Brobecker <brobecker@gnat.com>
5153
5154 * infrun.c (handle_step_into_function): New function.
5155 (handle_inferior_event): Extract out some code into the new
5156 function above.
5157
386c036b
MK
51582004-01-02 Mark Kettenis <kettenis@gnu.org>
5159
5160 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
5161 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
5162 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
5163 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
5164 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
5165 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
5166 (sparc_nat_h): New variable.
5167 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
5168 (tm-sun4os4.h): Remove dependency.
5169 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
5170 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
5171 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
5172 sparc-tdep.o): Update dependencies.
5173 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
5174 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
5175 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
5176 dependencies.
5177 * configure.host: Remove existing sparc-*-lynxos*,
5178 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
5179 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
5180 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
5181 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
5182 triplets.
5183 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
5184 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
5185 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
5186 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
5187 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
5188 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
5189 sparc64-*-solaris2* and sparc64-*-* triplets.
5190 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
5191 "symtab.h" and "objfiles.h".
5192 (BIAS): Remove define.
5193 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
5194 (X_DISP19): Remove macros.
5195 (sparc_fetch_instruction): Remove function.
5196 (struct gdbarch_tdep): Remove definition.
5197 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
5198 (sparc_breakpoint_from_pc): Remove function.
5199 (struct sparc64_frame_cache): Remove definition.
5200 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
5201 sparc64_unwind_pc): Remove functions.
5202 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
5203 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
5204 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
5205 (sparc64_frame_cache): Change return type to `struct
5206 sparc_frame_cache *'. Simply call sparc_frame_cache.
5207 (sparc64_frame_this_id, sparc64_frame_prev_register,
5208 sparc64_frame_base_address): Use `struct sparc_frame_cache'
5209 instead of `struct sparc64_frame_cache.
5210 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
5211 sparc_analyze_control_transfer, sparc_software_single_step,
5212 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
5213 _initialize_sparc64_tdep): Remove functions.
5214 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
5215 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
5216 macros.
5217 (sparc64_supply_gregset, sparc64_collect_gregset,
5218 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
5219 (sparc64_init_abi): New function.
5220 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
5221 inclusion guard. Include "sparc-tdep.h".
5222 (BIAS): Define.
5223 (r_tstate_offset, r_fprs_offset): New defines.
5224 (enum sparc_regnum): Remove defenition.
5225 (enum sparc64_regnum): Reformat.
5226 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
5227 (sparc64_init_abi, sparc64_supply_gregset,
5228 sparc64_collect_gregset, sparc64_supply_fpregset,
5229 sparc64_collect_fpregset): New prototypes.
5230 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
5231 Add extern declarations.
5232 (sparc64_sol2_init_abi): New prototype.
5233 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
5234 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
5235 prototypes.
5236 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
5237 "sparnbsd-nat.h".
5238 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
5239 functions.
5240 (_initialize_sparc64fbsd_nat): Remove initialization of
5241 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
5242 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 5243 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
5244 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
5245 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
5246 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
5247 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
5248 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
5249 (sparc64fbsd_r_y_offset): Remove variables.
5250 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
5251 Make static and const.
5252 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
5253 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
5254 functions.
5255 (sparc64fbsd_gregset): New variable.
5256 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
5257 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
5258 and sparc64_supply_fpregset.
5259 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
5260 (sparc64fbsd_sigtramp_frame_this_id)
5261 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
5262 (sparc64fbsd_sigtramp_frame_unwind): New variable.
5263 (sparc64fbsd_sigtramp_frame_sniffer): New function.
5264 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
5265 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
5266 * sparcnbsd-tdep.c: Update copyright year. Include
5267 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
5268 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
5269 "value.h" and "sparcnbsd-tdep.h".
5270 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
5271 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
5272 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
5273 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
5274 defines.
5275 (sparcnbsd_gregset): New variable.
5276 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
5277 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
5278 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
5279 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
5280 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
5281 variables.
5282 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
5283 (sparc32nbsd_sigcontext_frame_this_id)
5284 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
5285 (sparc32nbsd_sigcontext_frame_unwind): New variable.
5286 (sparc32nbsd_sigtramp_frame_sniffer): New function.
5287 (sparcnbsd_get_longjmp_target_32,
5288 sparcnbsd_get_longjmp_target_64): Remove functions.
5289 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
5290 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
5291 sparcnbsd_init_elf): Remove.
5292 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
5293 (sparcnbsd_elf_init_abi): New functions.
5294 (_initialize_sparcnbsd_tdep): New prototype.
5295 (_initialize_sparnbsd_tdep): Update.
5296 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
5297 corelow.o. Add sparc64-nat.o and sparc-nat.o.
5298 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
5299 * config/sparc/linux.mh: Update comment.
5300 (XM_FILE, HOST_IPC): Remove variables.
5301 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
5302 sparc-linux-nat.o.
5303 * config/sparc/linux.mt: Update comment.
5304 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
5305 * config/sparc/nbsd.mt: Reformat.
5306 * config/sparc/nbsd64.mh: Update comment.
5307 (NATDEPFILES): Add sparc-nat.o.
5308 * config/sparc/nbsd64.mt: Update comment.
5309 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
5310 (TM_FILE): Set to tm-nbsd.h.
5311 * config/sparc/nbsdelf.mh: Update comment.
5312 (NATDEPFILES): Add sparc-nat.o.
5313 (XM_FILE): Delete.
5314 * config/sparc/nbsdaout.mh: Update comment.
5315 (NATDEPFILES): Add sparc-nat.o
5316 (XM_FILE): Delete.
5317 * config/sparc/nm-linux.h: Update copyright year. Don't include
5318 "config/nm-svr4.h" and "solib.h". Add protection against multiple
5319 inclusion.
5320 (KERNEL_U_SIZE): Remove define.
5321 (kernel_u_size): Remove prototype.
5322 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
5323 * config/sparc/nm-nbsd.h: Update copyright. Don't include
5324 "regcache.h".
5325 (CHILD_PREPARE_TO_STORE): Remove define.
5326 * config/sparc/nm-nbsdaout.h: Tweak some comments.
5327 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
5328 sparcnbsd-nat.c: Rewrite files.
5329 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
5330 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
5331 sparcnbsd-tdep.h: Remove files.
5332 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
5333 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
5334 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
5335 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
5336 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
5337 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
5338 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
5339 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
5340 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
5341 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
5342 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
5343 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
5344 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
5345 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
5346 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
5347 * config/sparc/linux64.mh, config/sparc/linux64.mt,
5348 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
5349 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
5350 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
5351
ee84457a
AC
53522004-01-02 Andrew Cagney <cagney@redhat.com>
5353
5354 From 2003-12-18 Kazuhiro Inaoka:
5355 * configure.host: Add m32r-linux target.
5356
0bc2134e
MC
53572004-01-02 Michael Chastain <mec.gnu@mindspring.com>
5358
5359 * top.c (print_gdb_version): Update year to 2004.
5360
89a72f9c
MM
53612004-01-02 Mark Mitchell <mark@codesourcery.com>
5362
5363 * MAINTAINERS: Add myself to the write-after-approval category.
5364
86b013ed
DJ
53652004-01-02 Daniel Jacobowitz <drow@mvista.com>
5366
5367 From Bernardo Innocenti <bernie@develer.com>:
5368 * configure.tgt: Add uClinux target.
5369
e42c9534
AC
53702004-01-02 Andrew Cagney <cagney@redhat.com>
5371
5372 * utils.c (do_my_cleanups): Make static, add forward declaration.
5373 * defs.h (do_my_cleanups): Delete declaration.
5374
162467d3
EZ
53752004-01-02 Eli Zaretskii <eliz@elta.co.il>
5376
5377 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
5378 bfd/ChangeLog-0203.
5379
78434e59
MK
53802004-01-02 Mark Kettenis <kettenis@gnu.org>
5381
5382 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
5383 in <machine/reg.h>.
5384 * configure, config.in: Regenerate.
5385
48efe704
AC
5386For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
5387tui/ChangeLog-1998-2003.
c906108c
SS
5388\f
5389Local Variables:
5390mode: change-log
5391left-margin: 8
5392fill-column: 74
5393version-control: never
5394End:
This page took 0.811666 seconds and 4 git commands to generate.