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