f8d4d3cf8c34fb0a940bd6577e3343a52638aab9
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2004-02-25  J. Brobecker  <brobecker@gnat.com>
2
3         From Peter Schauer <schauer@pdf.de>:
4         * tui/tui.c: Move system header includes after local includes.
5         Fixes a build failure on solaris systems.
6
7 2004-02-25  J. Brobecker  <brobecker@gnat.com>
8
9         * configure.in: Refine the previous change.
10         * configure: Regenerate.
11
12 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
13
14         * amd64-tdep.h: Renamed from x86-64-tdep.h.
15         * amd64-tdep.c: Renamed from x86-64-tdep.c.  Include
16         "amd64-tdep.h" instead of "x86-64-tdep.h".
17         * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
18         * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
19         * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c.  Include
20         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
21         and "x86-64-tdep.c".
22         * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c.  Include
23         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
24         and "x86-64-tdep.c".
25         * amd64bsd-nat.c: Update copyright year.
26         Include "amd64-tdep.h" instead of "x86-64-tdep.h".
27         * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
28         "x86-64-tdep.h".
29         * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
30         "x86-64-tdep.h".
31         * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
32         "x86-64-tdep.h".
33         * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
34         "x86-64-tdep.h".
35         * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
36         "x86-64-tdep.h".
37         * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
38         "x86-64-tdep.h".
39         * configure.host: (x86_64-*-linux*): Set gdb_target to linux64. 
40         * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
41         * Makefile.in (amd64_linux_tdep_h): Renamed from
42         x86_64_linux_tdep_h.
43         (amd64_tdep_h): Renamed from x86_64_tdep_h.
44         (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
45         (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
46         (amd64obsd-tdep.o): Update dependencies.
47         (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
48         dependencies.
49         (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
50         dependencies.
51         (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
52         amd64-linux-nat.c amd64-linux-tdep.c.
53         * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
54         * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
55         * config/i386/linux64.mt: Renamed from x86-64linux.mt.
56         (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
57         amd64-tdep.o and amd64-linux-tdep.o.
58         (TM_FILE): Set to tm-linux64.h.
59         * config/i386/linux64.mh: Renamed from x86-64linux.mh.
60         (NAT_FILE): Set to nm-linux64.h.
61         (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
62         * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
63         amd64-tdep.o.
64         * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
65         amd64-tdep.o.
66         * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
67         amd64-tdep.o.
68
69 2004-02-25  Roland McGrath  <roland@redhat.com>
70
71         * remote.c (remote_protocol_qPart_auxv): New variable.
72         (init_all_packet_configs): Initialize it.
73         (set_remote_protocol_qPart_auxv_packet_cmd): New function.
74         (show_remote_protocol_qPart_auxv_packet_cmd): New function.
75         (show_remote_cmd): Call it.
76         (_initialize_remote): Initialize commands.
77         (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
78         service TARGET_OBJECT_AUXV requests.
79
80 2004-02-25  J. Brobecker  <brobecker@gnat.com>
81
82         * configure.in: Make sure that the wborder function is available.
83         Otherwise, search for it in the cur_colr library.
84         * configure: Regenerate.
85
86 2004-02-25  Andrew Cagney  <cagney@redhat.com>
87
88         * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
89
90 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
91
92         * config/i386/tm-x86-64linux.h: Tweak comments.
93
94 2004-02-25  Richard Sandiford  <rsandifo@redhat.com>
95
96         * MAINTAINERS: Add self to write-after-approval list.
97
98 2004-02-25  Andrew Cagney  <cagney@redhat.com>
99
100         PR cli/1566.  Problem found, and fix suggested by David Allan.
101         * cli/cli-script.c (execute_control_command): Unconditionally
102         install a cleanup.  Default "ret" to "invalid_control".  Use
103         "break" instead of "return" to escape from the switch.
104
105 2004-02-24  J. Brobecker  <brobecker@gnat.com>
106
107         * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
108         with the lines macro defined in term.h on AiX.
109         * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
110         a collision with the label_width macro defined in term.h on AiX.
111
112 2004-02-23  David Mosberger  <davidm@hpl.hp.com>
113
114         Committed by Kevin Buettner <kevinb@redhat.com>.
115
116         * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
117         * ia64-tdep.c (ia64_write_pc): Make it a global function.
118         (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
119         instead of ia64_write_pc().
120         * ia64-linux-tdep.c (regcache.h): Include.
121         (ia64_linux_write_pc): New function.
122
123 2004-02-23  Roland McGrath  <roland@redhat.com>
124
125         * auxv.c (info_auxv_command): Fix typos in error messages.
126
127 2004-02-23  Mark Kettenis  <kettenis@gnu.org>
128
129         * x86-64-tdep.h: Tweak comment.
130         (enum amd64_regnum): New.
131         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
132         (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
133         (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
134         (X86_64_XMM1_REGNUM): Removed.
135         (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
136         (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
137         prototypes for renamed functions.
138         * x86-64-tdep.c: Fix typo.
139         (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
140         register numbers.
141         (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
142         Use constants from `enum amd64_regnum' for register numbers.
143         (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
144         (amd64_analyze_prologue, amd64_frame_cache,
145         amd64_sigtramp_frame_cache): Use constants from `enum
146         amd64_regnum' for register numbers.
147         (amd64_supply_fpregset): Adjust for renamed functions.
148         (amd64_init_abi): Rename from x86_64_init_abi.  Use constants from
149         `enum amd64_regnum' for register numbers.
150         (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
151         (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
152         (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
153         * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
154         (amd64_linux_fill_gregset): Adjust for renamed macros.
155         (fetch_core_registers): Adjust for renamed functions.
156         (amd64_linux_init_abi): Adjust for renamed functions.
157         * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
158         renamed functions.
159         * amd64-nat.c: Adjust for renamed macros.
160         * amd64bsd-nat.c (fetch_inferior_registers)
161         (store_inferior_registers): Use constants from `enum amd64_regnum'
162         for register numbers.  Adjust for renamed variables.
163         * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
164         renamed variables.
165         (_initialize_amd64fbsd_nat): Use constants from `enum
166         amd64_regnum' for register numbers.
167         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
168         `enum amd64_regnum' for register numbers.
169         (amd64fbsd_init_abi): Adjust for renamed functions.
170         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
171         `enum amd64_regnum' for register numbers.
172         (amd64nbsd_init_abi): Adjust for renamed functions.
173         (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
174         * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
175         `enum amd64_regnum' for register numbers.
176         (amd64obsd_init_abi): Adjust for renamed functions.
177         (_initialize_amd64obsd_ndep): Adjust for renamed macros.
178
179 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
180
181         * breakpoint.c (print_one_breakpoint): Do not output spaces
182         after printing <PENDING> for a pending breakpoint.
183
184 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
185
186         * printcmd.c (print_scalar_formatted): Initialize val_long
187         to remove compiler warning message.
188
189 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
190
191         * defs.h (nquery, yquery): New prototypes.
192         * breakpoint.c (break_command_1): Use new nquery interface.
193         * utils.c (defaulted_query, nquery, yquery): New functions.
194
195 2004-02-23  Andrew Cagney  <cagney@redhat.com>
196
197         * hppa-tdep.c (hppa_frame_align): New function.
198         (hppa32_push_dummy_call): New function.
199         (hppa64_push_dummy_call): New function.
200         (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
201         disabled.
202
203         * infcall.c (legacy_push_dummy_code): Don't call deprecated
204         FIX_CALL_DUMMY when push_dummy_call is available.
205         (call_function_by_hand, push_dummy_code): Ditto.
206
207 2004-02-22  Andrew Cagney  <cagney@redhat.com>
208
209         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
210         (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
211         (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
212         * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
213         use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
214         call_dummy_location to ON_STACK.
215
216 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
217
218         * x86-64-linux-tdep.c: Tweak comment.
219         (amd64_linux_supply_gregset): Renamed from
220         x86_64_linux_supply_gresget.
221         (amd64_linux_fill_gregset): Renamed from
222         x86_64_linux_fill_gregset.
223         (fetch_core_registers): Adjust for renamed functions.
224         (amd64_core_fns): Renamed from x86_64_core_fns.
225         (amd64_linux_sigtramp_start): Renamed from
226         x86_64_linux_sigtramp_start.
227         (amd64_linux_pc_in_sigtramp): Renamed from
228         x86_64_linux_pc_in_sigtramp.  Adjust for renamed functions.
229         (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
230         X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
231         (amd64_linux_sigcontext_addr): Renamed from
232         x86_64_linux_sigcontext_addr.
233         (amd64_linux_sc_reg_offset): Renamed from
234         x86_64_linux_sc_reg_offset.
235         (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
236         Adjust for renamed functions and variables.
237         (_initialize_amd64_linux_tdep): Renamed from
238         _initialize_x86_64_linux_tdep.  Adjust for renamed functions and
239         variables.
240         * x86-64-linux-tdep.h: Update copyright year.  Tweak comment.
241         Adjust for renamed functions.
242
243         * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
244         from x86_64_linux_gregset64_reg_offset.
245         (amd64_linux_gregset32_reg_offset): Rename from
246         x86_64_linux_gregset64_reg_offset.
247         (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
248         (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
249         (amd64_linux_dr_set_control): Renamed from
250         x86_64_linux_dr_set_control.  Adjust for renamed functions.
251         (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
252         Adjust for renamed functions.
253         (amd64_linux_dr_reset_addr): Renamed from
254         x86_64_linux_dr_reset_addr. Adjust for renamed functions.
255         (amd64_linux_dr_get_status): Renamed from
256         x86_64_linux_dr_get_status.  Adjust for renamed functions.
257         (_initialize_amd64_linux_nat): Renamed from
258         _initialize_x86_64_linux_nat.  Adjust for renamed variables and
259         functions.
260         * config/i386/nm-x86-64linux.h: Update copyright year.
261         Adjust for renamed functions.
262
263         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
264         amd64fbsd_sigtramp_start.
265         (amd64fbsd_sigtramp_end_addr): Renamed from
266         amd64fbsd_sigtramp_end.
267         (amd64fbsd_init_abi): Adjust for renamed variables.
268         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
269         variables.
270         * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
271         amd64fbsd_sigtramp_start.
272         (amd64fbsd_sigtramp_end_addr): Renamed from
273         amd64fbsd_sigtramp_end.
274
275 2004-02-22  Andrew Cagney  <cagney@redhat.com>
276
277         * hppa-tdep.c (hppa32_return_value): New function.
278         (hppa64_return_value): New function.
279         (hppa_gdbarch_init): Set return_value; keep disabled.
280
281         * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
282         struct-return and inferior function call methods.
283
284         * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
285         "frame-base.h".
286         (struct hppa_frame_cache): Define.
287         (hppa_frame_cache, hppa_frame_this_id): New functions.
288         (hppa_frame_prev_register): New function.
289         (hppa_frame_unwind, hppa_frame_base): New variables.
290         (hppa_frame_unwind_sniffer): New function.
291         (hppa_frame_base_address, hppa_unwind_pc): New function.
292         (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
293         sniffer, and frame base sniffer; keep disabled.
294         (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
295         * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
296
297         * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
298         to predicates for "seriously old code".
299
300         * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
301         runtime if(0).
302
303         * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
304         unsigned.
305         (hppa_frame_find_saved_regs): Fix "std" instruction pattern
306
307         * config/pa/tm-hppa.h: Update copyright.
308         (DEPRECATED_INIT_FRAME_PC): Delete macro.
309         (deprecated_init_frame_pc_default): Delete declaration.
310         (hppa_frame_init_saved_regs): Delete declaration.
311         (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
312         * hppa-tdep.c: Include "arch-utils.h".
313         (hppa_gdbarch_init): Set deprecated init_frame_pc
314         and deprecated frame_init_saved_regs.
315         (hppa_frame_init_saved_regs): Make static.
316
317 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
318
319         Remove old 386BSD support.
320         * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
321         * configure.host: Remove i[34567]86-*-bsd*.
322         * configure.tgt: Remove i[34567]86-*-bsd*.
323         * i386b-nat.c: Removed.
324         * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
325         (i386b-nat.o): Remove dependencies.
326
327         * config/i386/i386bsd.mh: Removed.
328         * config/i386/i386bsd.mt: Removed.
329         * config/i386/nm-i386bsd.h: Removed.
330         * config/i386/tm-i386bsd.h: Removed.
331         * config/i386/xm-i386bsd.h: Removed.
332
333         * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
334
335         * amd64fbsd-tdep.c: Include "solib-svr4.h".
336         (amd64fbsd_init_abi): Set link map offsets.
337         * amd64nbsd-tdep.c: Include "slib-svr4.h".
338         (amd64nbsd_init_abi): Set link map offsets.
339         * amd64obsd-tdep.c: Include "solib-svr4.h".
340         (amd64obsd_init_abi): Set link map offsets.
341         * i386fbsd-tdep.c: Include "solib-svr4.h".
342         (i386fbsd_init_abi): Set link map offsets.
343         * i386nbsd-tdep.c: Include "solib-svr4.h".
344         (i386nbsdelf_init_abi): Set link map offsets.
345         * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
346         (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
347         * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
348         solib-legacy.o and core-aout.o. Reformat.
349         * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
350         solib-svr4.o, solib-legacy.o.  Reformat.
351         * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
352         * config/i386/nbsdelf.mh: Reformat.
353         * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
354         solib-svr4.o, solib-legacy.o and corelow.o.
355         * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
356         * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
357         solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
358         * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
359         * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
360         (TM_FILE): Set to tm-fbsd.h.
361         * config/i386/nbsd.mt (TDEPFILES): Reformat.
362         * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
363         solib-svr4.o.
364         * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
365         solib-svr4.o.
366         (TM_FILE): Set to nm-nbsd.h.
367         * config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
368         Simplify shared library support.  Don't include "elf/common.h".
369         (SVR4_SHARED_LIBS): Don't define.
370         * config/i386/nm-fbsd64.h: Update copyright year.  Don't include
371         "solib.h".
372         * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
373         config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
374         * config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
375         Don't include "i386/tm-i386.h".  Include "solib.h".
376         * config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
377         Don't include "i386/tm-i386.h".
378         * config/i386/xm-i386.h: Update copyright year.  Tweak comments.
379         * config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
380         Include "i386/xm-i386.h".
381         (HOST_LONG_DOUBLE_FORMAT): Remove.
382
383         Fix OpenBSD/i386 sigtramp recognition.
384         * i386-tdep.h: Update copyright year.
385         (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
386         (i386bsd_sigtramp_end): New prototypes.
387         (i386fbsd_sigtramp_start_addr): Renamed from
388         i386fbsd_sigtramp_start.
389         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
390         (i386obsd_sigtramp_start_addr): Renamed from
391         i386obsd_sigtramp_start.
392         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
393         * i386bsd-tdep.c: Update copyright year.
394         (i386bsd_pc_in_sigtramp): Make public.
395         * i386fbsd-nat.c: Update copyright year.
396         (_initialize_i386fbsd_nat): Adjust for renamed variables.
397         * i386fbsd-tdep.c: Update copyright year.
398         (i386fbsd_sigtramp_start_addr): Renamed from
399         i386fbsd_sigtramp_start.
400         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
401         (i386fbsdaout_init_abi): Adjust for renamed variables.
402         * i386obsd-nat.c: Update copyright year.
403         (_initialize_i386obsd_nat): Adjust for renamed variables.
404         * i386obsd-tdep.c: Include "target.h".
405         (i386obsd_page_size): New variable.
406         (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
407         (i386obsd_sigtramp_end): New functions.
408         (i386obsd_sigtramp_start_addr): Renamed from
409         i386obsd_sigtramp_start.
410         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
411         (i386obsd_init_abi): Adjust for renamed variables.  Set
412         pc_in_sigtramp, sigtramp_start and sigtramp_end.
413         * Makefile.in (i386obsd-tdep.o): Update dependencies.
414
415         * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
416         trampoline change in OpenBSD kernel.
417
418         * amd64-nat.c: Update copyright year.
419         (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
420         architecture from REGCACHE.
421
422         * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
423         symbolic constants from <sys/reg.h> instead of hard-coded numbers.
424
425 2004-02-21  Mark Kettenis  <kettenis@gnu.org>
426
427         * configure.host: Add i[34567]86-*-openbsd[0-2].* and
428         i[34567]86-*-openbsd3.[0-3].
429         * config/i386/obsdaout.mh: New file.
430
431         * config/i386/obsd.mh (MH_FLAGS): Remove.
432
433         Fix PR build/1549.
434         * i386obsd-tdep.c: Update copyright years.  Include
435         "solib-svr4.h".
436         (i386obsd_init_abi): Don't set regset_from_core_section here.
437         (i386obsd_aout_init_abi): New function.  Set
438         regset_from_core_section here.
439         (i386obsd_elf_init_abi): New function.
440         (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
441         * Makefile.in (i386obsd-tdep.o): Update dependecies.
442         * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
443         (TM_FILE): Set to tm-nbsd.h.
444
445         * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
446         solib-sunos.o.
447
448         * solib-svr4.h: Update copyright year.
449         (svr4_ilp32_fetch_link_map_offsets)
450         (svr4_lp64_fetch_link_map_offsets): New prototype.
451         * solib-svr4.c: Update copyright year.
452         (svr4_ilp32_fetch_link_map_offsets)
453         (svr4_lp64_fetch_link_map_offsets): New function.
454
455 2004-02-20  Daniel Jacobowitz  <drow@mvista.com>
456
457         * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
458         to the partial symbol table.
459
460 2004-02-20  J. brobecker  <brobecker@gnat.com>
461
462         * PROBLEMS: Add description of problem documented under gdb/1560.
463
464 2004-02-20  Mark Kettenis  <kettenis@gnu.org>
465
466         * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h".  Fix
467         comments.
468         (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
469         functions.
470         (amd64obsd_init_abi): Reorder initializations.  Use
471         amd64obsd_r_reg_offset to initialize the general-purpose register
472         set details.  Set regset_from_core_section.
473         (_initialize_amd64obsd_tdep): Rename from
474         _initialize_amd64obsd_ndep.  Add OS ABI handler for core dumps.
475         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
476         * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
477
478         * NEWS (New native configurations): Mention OpenBSD/alpha.
479         * configure.tgt: Add alpha*-*-openbsd*.
480         * configure.host: Add alpha*-*-openbsd*.
481         * alphanbsd-tdep.c: Update copyright year.
482         (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
483
484 2004-02-20  Andrew Cagney  <cagney@redhat.com>
485
486         Fix PR tdep/1372.
487         * configure.tgt: Delete target "none-*-*".
488         * configure.host: Delete host "none-*-*".
489         * config/none/none.mh: Delete file.
490         * config/none/none.mt: Delete file.
491         * config/none/xm-none.h: Delete file.
492         * config/none/tm-none.h: Delete file.
493         * config/none/nm-none.h: Delete file.
494
495 2004-02-19  Fred Fish  <fnf@redhat.com>
496
497         * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
498         cache->uses_fp prior to setting it.
499
500 2004-02-19  Fred Fish  <fnf@redhat.com>
501
502         Fix for PR breakpoint/1558.
503         * sh-tdep.c (IS_JSR): New macro.
504         (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
505
506 2004-02-19  Jim Blandy  <jimb@redhat.com>
507
508         * findvar.c (value_from_register): Doc fix.
509
510 2004-02-19  Jeff Johnston  <jjohnstn@redhat.com>
511
512         * printcmd.c (print_scalar_formatted): Do not check for sizeof
513         type being greater than sizeof of host's LONGEST.  Always use
514         unpack_long() unless format 'f' chosen.
515
516 2004-02-19  Joel Brobecker  <brobecker@gnat.com>
517
518         Committed by Elena Zannoni  <ezannoni@redhat.com>
519
520         * symtab.c (find_pc_sect_psymtab): Return the psymtab that
521         contains a symbol wich is the best, non-exact match for the given
522         pc.  Update comments.
523
524 2004-02-19  Elena Zannoni  <ezannoni@redhat.com>
525
526         * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
527         macro, which was part of the now removed Mach 3 port.
528         * utils.c (request_quit): Ditto.
529
530 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
531
532         * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
533         "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
534
535 2004-02-18  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
536
537         Committed by Mark Kettenis  <kettenis@gnu.org>.
538
539         * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
540         Define.
541
542 2004-02-18  Andrew Cagney  <cagney@redhat.com>
543
544         * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
545         CONFIG_INSTALL and CONFIG_UNINSTALL.
546         * configure: Re-generate.
547         * interps.h (INTERP_TUI): Define.
548         * Makefile.in: Update dependencies.
549         (TUI): New macro.
550         (tui-main.o): Specify dependencies.
551         (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
552         * tui/tui-main.c: New file.
553
554 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
555
556         * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
557         * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
558         dependencies.
559         * configure.host: Add x86_64-*-openbsd*.
560         * configure.tgt: Add x86_64-*-openbsd*.
561         * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
562
563         * tui/tui.c: Don't include <malloc.h>.
564
565         * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
566         amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
567         amd64nbsd-tdep.c.
568
569         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
570         static.  Remove extraneous whitespace.
571         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
572         static.
573
574 2004-02-17  Jim Blandy  <jimb@redhat.com>
575
576         * findvar.c (value_from_register): Doc fix.
577
578 2004-02-17  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
579
580         Committed by Jim Blandy  <jimb@redhat.com>.
581
582         * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
583         CORE_ADDR as type for selectors.  Correct types for GNU run time
584         message lookup function to use double indirection.
585         * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
586         * objc-lang.h (lookup_child_selector): Adapt prototype.
587
588         * s390-nat.c (SUBOFF): New macro.
589         (supply_gregset, fill_gregset): Use it to handle debugging
590         of 32-bit exectuables running under a 64-bit kernel.
591         * s390-tdep.c: Include "solib-svr4.h".
592         (s390_svr4_fetch_link_map_offset): New function.
593         (s390x_svr_fetch_link_map_offset): Likewise.
594         (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
595         * Makefile.in (s390-tdep.o): Update dependencies.
596
597         * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
598         "frame-unwind.h".
599         (s390_readinstruction): Reformat.  Use read_memory_nobpt.
600         (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
601         (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
602         (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
603         S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
604         S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
605         S390_SIGNAL_FRAMESIZE,
606         s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
607         (struct frame_extra_info): Remove.
608         (s390_memset_extra_info): Remove.
609         (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
610         (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
611         (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
612         (is_rse): Renamed to ...
613         (is_rsy): ... this.  Support long displacements.
614         (is_rxe): Renamed to ...
615         (is_rxy): ... this.  Support long displacements.
616         (compute_x_addr): Support long displacements.
617         (struct s390_prologue_data): New data type.
618         (s390_on_stack): Change API to use struct s390_prologue_data.
619         (s390_store): Reimplement.
620         (s390_load): New function.
621         (s390_get_signal_frame_info): Remove.
622         (s390_get_frame_info): Remove, replace by ...
623         (s390_analyze_prolog): ... this new function.
624         (s390_check_function_end): Remove.
625         (s390_function_start): Remove.
626         (s390_frameless_function_invokation): Remove.
627         (s390_is_sigreturn): Remove.
628         (s390_init_frame_pc_first): Remove.
629         (s390_init_frame_extra_info): Remove.
630         (s390_frame_init_saved_regs): Remove.
631         (s390_frame_saved_pc_nofix): Remove.
632         (s390_frame_saved_pc): Remove.
633         (s390_frame_chain): Remove.
634         (s390_fp_regnum, s390_read_fp): Remove.
635         (s390_pop_frame_regular, s390_pop_frame): Remove.
636         (s390_saved_pc_after_call): Remove.
637         (s390_skip_prologue): Reimplement.
638         (s390_in_function_epilogue_p): Support long displacements.
639         (struct s390_unwind_cache): New data structure.
640         (s390_frame_unwind_cache): New function.
641         (s390_prologue_frame_unwind_cache): Likewise.
642         (s390_backchain_frame_unwind_cache): Likewise.
643         (s390_frame_this_id, s390_frame_prev_register): Likewise.
644         (s390_frame_unwind): Define.
645         (s390_frame_sniffer): New function.
646         (struct s390_pltstub_unwind_cache): New data structure.
647         (s390_pltstub_frame_unwind_cache): New function.
648         (s390_pltstub_frame_this_id): Likewise.
649         (s390_pltstub_frame_prev_register): Likewise.
650         (s390_pltstub_frame_unwind): Define.
651         (s390_pltstub_frame_sniffer): New function.
652         (struct s390_sigtramp_unwind_cache): New data structure.
653         (s390_sigtramp_frame_unwind_cache): New function.
654         (s390_sigtramp_frame_this_id): Likewise.
655         (s390_sigtramp_frame_prev_register): Likewise.
656         (s390_sigtramp_frame_unwind): Define.
657         (s390_sigtramp_frame_sniffer): New function.
658         (s390_frame_base_address, s390_local_base_address): New functions.
659         (s390_frame_base): Define.
660         (s390_unwind_pc, s390_unwind_sp): New function.
661         (s390_push_dummy_call): Use new frame base location.
662         (s390_unwind_dummy_id): Likewise.
663         (s390_gdbarch_init): Remove calls to:
664         set_gdbarch_frameless_function_invocation,
665         set_gdbarch_deprecated_init_frame_pc,
666         set_gdbarch_deprecated_frame_chain,
667         set_gdbarch_deprecated_frame_init_saved_regs,
668         set_gdbarch_deprecated_pop_frame,
669         set_gdbarch_deprecated_init_extra_frame_info,
670         set_gdbarch_deprecated_init_frame_pc_first,
671         set_gdbarch_deprecated_target_read_fp,
672         set_gdbarch_deprecated_frame_saved_pc,
673         set_gdbarch_deprecated_saved_pc_after_call,
674         set_gdbarch_deprecated_fp_regnum.
675         Add calls to:
676         set_gdbarch_in_solib_call_trampoline,
677         frame_unwind_append_sniffer,
678         frame_base_set_default,
679         set_gdbarch_unwind_pc,
680         set_gdbarch_unwind_sp.
681         * Makefile.in (s390-tdep.o): Update dependencies.
682
683         * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
684         (S390_STACK_FRAME_OVERHEAD): Remove.
685         (S390_STACK_PARAMETER_ALIGNMENT): Remove.
686         (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
687         (s390_promote_integer_argument): Remove.
688         (s390_cannot_extract_struct_value_address): Remove.
689         (s390_use_struct_convention, s390_store_struct_return): Remove.
690         (s390_extract_return_value, s390_store_return_value): Remove.
691         (s390_return_value_convention, s390_return_value): New functions.
692         (is_float_singleton): Handle typedefs.
693         (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
694         Remove, replace by ...
695         (s390_function_arg_pass_by_reference, s390_function_arg_float,
696         s390_function_arg_integer): ... these new functions.
697         (s390_push_arguments, s390_push_return_address): Remove, replace by ...
698         (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
699         (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
700         Fill in tdep->abi.
701         Remove calls to:
702         set_gdbarch_deprecated_store_struct_return,
703         set_gdbarch_deprecated_extract_return_value,
704         set_gdbarch_deprecated_store_return_value,
705         set_gdbarch_use_struct_convention,
706         set_gdbarch_extract_struct_value_address,
707         set_gdbarch_deprecated_pc_in_call_dummy,
708         set_gdbarch_deprecated_push_arguments,
709         set_gdbarch_deprecated_save_dummy_frame_tos,
710         set_gdbarch_deprecated_push_return_address,
711         set_gdbarch_deprecated_sizeof_call_dummy_words,
712         set_gdbarch_deprecated_call_dummy_words,
713         set_gdbarch_deprecated_dummy_write_sp.
714         Add calls to:
715         set_gdbarch_push_dummy_call,
716         set_gdbarch_unwind_dummy_id,
717         set_gdbarch_return_value.
718
719         * config/s390/nm-linux.h: Update comments.
720         (target_insert_watchpoint, target_remove_watchpoint): Redefine.
721         (STOPPED_BY_WATCHPOINT): Redefine.
722         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
723         (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
724         (s390_stopped_by_watchpoint): Likewise.
725         (watch_area_cnt): Remove.
726         * s390-nat.c: Update comments.
727         (watch_area): Remove typedef.
728         Global replace watch_area by struct watch_area.
729         (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
730         (s390_stopped_by_watchpoint): Remove pid argument,
731         use s390_inferior_tid.  Add short-cut for the no watchpoint case.
732         (s390_fix_watch_points): Remove pid argument,
733         use s390_inferior_tid.  Recompute area spanned by watchpoints.
734         (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
735         argument.  Reimplement.
736
737         * config/s390/nm-linux.h: Update comments.  Do not include "solib.h".
738         (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
739         (FETCH_INFERIOR_REGISTERS): Define.
740         * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
741         core-regset.o.
742         * config/s390/s390x.mt: Remove.
743         * config/s390/tm-s390.h: Remove.
744         * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
745         (TARGET_ELF64): Remove.
746         (SKIP_TRAMPOLINE_CODE): Do not undefine.
747         * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
748         s390*-*-* case; always set gdb_target to s390.
749         * regformats/reg-s390.dat: Remove control registers.
750         * regformats/reg-s390x.dat: Likewise.
751         * s390-tdep.h: New file.
752         * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
753         Include "inferior.h" and "s390-tdep.h".
754         Remove private definition of offsetof.
755         (s390_register_u_addr): Remove.
756         (regmap_gregset, regmap_fpregset): Define.
757         (supply_gregset, fill_gregset): Reimplement.
758         (supply_fpregset, fill_fpregset): Likewise.
759         (s390_inferior_tid): New function.
760         (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
761         (fetch_inferior_registers, store_inferior_registers): Likewise.
762         * s390-tdep.c: Do not define S390_TDEP.  Include "defs.h" instead
763         of <defs.h>.  Include "reggroups.h", "regset.h", and "s390-tdep.h".
764         Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
765         Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
766         (struct gdbarch_tdep): Define.
767         (struct s390_register_info): Define.
768         (s390_register_info): New variable.
769         (s390_register_name): Reimplement.
770         (s390_register_type): New function.
771         (s390_register_raw_size, s390x_register_raw_size): Remove.
772         (s390_cannot_fetch_register): Remove.
773         (s390_register_byte): Remove.
774         (s390_register_virtual_type, s390x_register_virtual_type): Remove.
775         (s390_dwarf_regmap): New variable.
776         (s390_dwarf_reg_to_regnum): New function.
777         (s390_stab_reg_to_regnum): Remove.
778         (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
779         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
780         (s390_convert_register_p): Likewise.
781         (s390_register_to_value, s390_value_to_register): Likewise.
782         (s390_register_reggroup_p): Likewise.
783         (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
784         s390_gregset, s390x_gregset, s390_fpregset): New variables.
785         (s390_supply_regset, s390_regset_from_core_section): New functions.
786         (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
787         (S390_FPR_SIZE): Likewise.
788         (S390_GPR_SIZE): Likewise.  Redefine in terms of GDB_TARGET_IS_ESAME.
789         Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
790         (S390_NUM_GPRS): Move here from tm-s390.h.
791         (S390_NUM_FPRS): Likewise.
792         (s390_in_function_epilogue_p): New function.
793         (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
794         Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
795         (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
796         Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
797         Replace S390_FP_REGNUM by S390_SP_REGNUM.
798         Remove calls to:
799         set_gdbarch_deprecated_max_register_raw_size,
800         set_gdbarch_deprecated_max_register_virtual_size,
801         set_gdbarch_deprecated_register_byte,
802         set_gdbarch_cannot_fetch_register,
803         set_gdbarch_cannot_store_register,
804         set_gdbarch_deprecated_register_size,
805         set_gdbarch_deprecated_register_raw_size,
806         set_gdbarch_deprecated_register_virtual_size,
807         set_gdbarch_deprecated_register_virtual_type,
808         set_gdbarch_deprecated_register_bytes.
809         Add calls to:
810         set_gdbarch_num_pseudo_regs,
811         set_gdbarch_register_type,
812         set_gdbarch_convert_register_p,
813         set_gdbarch_register_to_value,
814         set_gdbarch_value_to_register,
815         set_gdbarch_register_reggroup_p,
816         set_gdbarch_regset_from_core_section,
817         set_gdbarch_pseudo_register_read,
818         set_gdbarch_pseudo_register_write,
819         set_gdbarch_in_function_epilogue_p.
820         * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
821         (s390_tdep_h): New variable.
822
823 2004-02-17  Jim Blandy  <jimb@redhat.com>
824
825         * findvar.c (value_from_register): If the type has no length, just
826         return an acceptable value --- don't report an internal error.
827
828         * stabsread.c (read_type): If we find any type numbers that are
829         forward references, complain if the references aren't resolved by
830         the time we're finished reading.
831         (cleanup_undefined_types): Make error message more appropriate for
832         a complaint.
833
834 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
835
836         * Makefile.in (defs_h): Remove dependency on progress_h.
837         * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
838         progress.h.
839         * main.c (captured_main): Delete use of START_PROGRESS and
840         END_PROGRESS.
841
842 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
843
844         * objfiles.c (terminate_minimal_symbol_table): Add back
845         initialization of MSYMBOL_TYPE.
846
847 2004-02-17  David Mosberger  <davidm@hpl.hp.com>
848
849         Committed by Andrew Cagney.
850         * Makefile.in (ia64_tdep_h): New macro.
851         (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
852         (ia64-tdep.o): Likewise.
853         * ia64-tdep.h: New file.
854         * ia64-tdep.c: Update copyright notice.  Include "ia64-tdep.h".
855         (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
856         (ia64_aix_sigcontext_register_address): Likewise.
857         (ia64_linux_getunwind_table): Delete declaration.
858         * ia64-linux-tdep.c: Likewise.
859
860 2004-02-17  Corinna Vinschen  <vinschen@redhat.com>
861
862         * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
863         * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
864         DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
865
866 2004-02-17  Andrew Cagney  <cagney@redhat.com>
867
868         * symtab.c (skip_prologue_using_sal): New function.
869         * symtab.h (skip_prologue_using_sal): Declare.
870         * frv-tdep.c: Include "symtab.h".
871         (skip_prologue_using_sal): Delete function.
872         * mips-tdep.c (skip_prologue_using_sal): Delete function.
873         * rs6000-tdep.c (refine_prologue_limit): Mention
874         skip_prologue_using_sal.
875         * ia64-tdep.c (refine_prologue_limit): Ditto.
876         * Makefile.in: Update dependencies.
877
878 2004-02-16  Andrew Cagney  <cagney@redhat.com>
879
880         * config/alpha/tm-nbsd.h: Update copyright, delete #undef
881         START_INFERIOR_TRAPS_EXPECTED.
882         * config/alpha/tm-fbsd.h: Update copyright, delete #undef
883         START_INFERIOR_TRAPS_EXPECTED.
884         * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
885         Delete macro.
886         * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
887         macro, moved to "nm-osf.h".  Update copyright.
888         * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
889         update copyright.
890
891         * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
892         and function replacing FRAMELESS_FUNCTION_INVOCATION.
893         * blockframe.c (legacy_frameless_look_for_prologue): Rename
894         frameless_look_for_prologue.
895         * frame.h (legacy_frameless_look_for_prologue): Rename
896         frameless_look_for_prologue.
897         * gdbarch.h, gdbarch.c: Re-generate.
898         * sh64-tdep.c (sh64_gdbarch_init): Update.
899         * sh-tdep.c (sh_gdbarch_init): Update.
900         * s390-tdep.c (s390_gdbarch_init): Update.
901         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
902         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
903         * m68k-tdep.c (m68k_gdbarch_init): Update.
904         (delta68_frame_args_address): Update.
905         * m32r-tdep.c (m32r_gdbarch_init): Update.
906         * hppa-tdep.c (hppa_gdbarch_init): Update.
907         * h8300-tdep.c (h8300_gdbarch_init): Update.
908         * frv-tdep.c (frv_gdbarch_init): Update.
909         (frv_frameless_function_invocation): Update.
910         * cris-tdep.c (cris_gdbarch_init): Update.
911         (cris_frameless_function_invocation): Update.
912         * avr-tdep.c (avr_gdbarch_init): Update.
913         * arm-tdep.c (arm_gdbarch_init): Update.
914         * stack.c (frame_info): Update, call predicate.
915         * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
916         * frame.c (legacy_get_prev_frame): Update, call predicate..
917         * arch-utils.c (generic_frameless_function_invocation_not): Delete.
918         * arch-utils.h (generic_frameless_function_invocation_not): Delete.
919         * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
920         invocation.
921         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
922         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
923         * vax-tdep.c (vax_gdbarch_init): Ditto.
924
925         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
926         function.
927
928 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
929
930         * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
931         initializations.
932
933 2004-02-16  Andrew Cagney  <cagney@redhat.com>
934
935         * tui/tui-windata.c: Include "gdb_string.h".
936         * tui/tui-source.c, tui/tui-winsource.c: Ditto.
937         * tui/tui-layout.c, tui/tui-command.c: Ditto.
938         * Makefile.in: Update dependencies.
939
940 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
941
942         * Makefile.in (infrun.o): Add $(gdb_assert_h).
943         * infrun.c: Include "gdb_assert.h".
944         (singlestep_ptid, saved_singlestep_ptid)
945         (stepping_past_singlestep_breakpoint): New variables.
946         (resume): Set singlestep_ptid.  Check for singlestep thread
947         hop.
948         (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
949         (handle_inferior_event): Handle singlestep thread hop.
950
951 2004-02-16  Andrew Cagney  <cagney@redhat.com>
952
953         * dwarf2-frame.c (dwarf2_frame_ops): New function.
954         (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
955         (dwarf2_frame_init_reg): Ditto.
956
957         * printcmd.c (display_command): Check that EXP isn't NULL.  Fix
958         suggested by Joshua Neuheisel
959
960         * configure.in: Always check for curses, including pdcurses.
961         Warn, instead of error, when no curses are found.  Enable TUI when
962         curses is available.
963         * configure: Re-generate.
964
965 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
966
967         * sh-tdep.c (sh_register_convert_to_virtual): Rename from
968         sh_sh4_register_convert_to_virtual.
969         (sh_register_convert_to_raw): Rename from
970         sh_sh4_register_convert_to_raw.
971         (sh_pseudo_register_read): Accomodate above name change.
972         (sh_pseudo_register_write): Ditto.
973
974 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
975
976         * sh-tdep.c (sh_generic_register_name): Remove.
977         (sh_gdbarch_init): Use sh_sh_register_name in default case.
978
979 2004-02-15  Andrew Cagney  <cagney@redhat.com>
980
981         * configure.in (build_warnings): Add -Wunused-function.
982         * configure: Re-generate.
983
984         * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
985         * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
986
987         * procfs.c (procfs_init_inferior): Assume that
988         START_INFERIOR_TRAPS_EXPECTED is defined.
989         * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
990         * config/ns32k/tm-nbsd.h: Delete file,
991         START_INFERIOR_TRAPS_EXPECTED already defined as 2.
992
993         * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
994         * config/vax/tm-vax.h: Delete file.
995
996         * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
997         * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
998         * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
999         * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
1000         * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
1001         * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
1002         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
1003
1004 2004-02-15  Mark Kettenis  <kettenis@gnu.org>
1005
1006         * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
1007         * dwarf2-frame.c (dwarf2_frame_data): New variable.
1008         (struct dwarf2_frame_ops): New.
1009         (dwarf2_frame_default_init_reg): New function, based on
1010         dwarf2_frame_init_reg.
1011         (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
1012         (dwarf2_frame_init_reg): Call architecture-specific function.
1013         (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
1014         (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
1015         instead of dwarf2_frame_data.
1016         (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
1017         Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
1018
1019 2004-02-15  Andrew Cagney  <cagney@redhat.com>
1020
1021         * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
1022         register_gdbarch_swap.
1023         (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
1024         * f-lang.c (_initialize_f_language): Update, use
1025         DEPRECATED_REGISTER_GDBARCH_SWAP.
1026         * remote.c (_initialize_remote): Ditto.
1027         * regcache.c (_initialize_regcache): Ditto.
1028         * parse.c (_initialize_parse): Ditto.
1029         * infrun.c (_initialize_infrun): Ditto.
1030         * mi/mi-main.c (_initialize_mi_main): Ditto.
1031         * gdbtypes.c (_initialize_gdbtypes): Ditto.
1032
1033         * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
1034         poking .cacheable directly.
1035         * symfile.c (symfile_bfd_open): Ditto.
1036
1037         * Makefile.in: Update all dependencies.
1038
1039         * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
1040         (.y.c, .l.c): Specify implicit rule.  Instead of .tab.c, generate
1041         .c.  Update references.  Delete unnecessary .tab.c and -lex.c rules.
1042         (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
1043         (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
1044
1045 2004-02-14  Andrew Cagney  <cagney@redhat.com>
1046
1047         * arch-utils.c (legacy_convert_register_p): Check
1048         DEPRECATED_REGISTER_CONVERTIBLE_P.
1049         * findvar.c (value_of_register): Ditto.
1050
1051         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
1052         * gdbarch.h, gdbarch.c: Re-generate.
1053         * arch-utils.c (deprecated_register_convertible_not): Delete.
1054         * arch-utils.h (deprecated_register_convertible_not): Delete.
1055         * mi/mi-main.c (get_register): Update.  Update copyright.
1056         * infcmd.c (default_print_registers_info): Update.
1057
1058         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
1059         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
1060         (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
1061         * gdbarch.h, gdbarch.c: Re-generate.
1062         * frame.c (deprecated_get_next_frame_hack): Delete function.
1063         * frame.h (deprecated_get_next_frame_hack): Delete declaration.
1064         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1065         Update.
1066         * infcall.c (call_function_by_hand): Update.
1067
1068 2004-02-14  Elena Zannoni  <ezannoni@redhat.com>
1069
1070         * symfile.c (init_entry_point_info, entry_point_address): Move
1071         from here...
1072         * objfiles.c (init_entry_point_info, entry_point_address):..to
1073         here.
1074         * symfile.h (init_entry_point_info, entry_point_address): Remove
1075         prototypes.
1076         * objfiles.h (init_entry_point_info, entry_point_address):Add
1077         prototypes.
1078         * cris-tdep.c: Remove include of symfile.h. Add include of
1079         objfiles.h.
1080         * infcall.c: Ditto.
1081         * mcore-tdep.c: Ditto.
1082         * mn10300-tdep.c: Ditto.
1083         * sh64-tdep.c: Ditto.
1084         * v850-tdep.c: Ditto.
1085         * arm-tdep.c: Remove include of symfile.h.
1086         * blockframe.c: Ditto.
1087         * coffread.c: Ditto.
1088         * dbxread.c: Ditto.
1089         * dwarf2read.c: Ditto.
1090         * dwarfread.c: Ditto.
1091         * frv-tdep.c: Ditto.
1092         * ia64-tdep.c: Ditto.
1093         * mdebugread.c: Ditto.
1094         * mipsread.c: Ditto.
1095         * rs6000-tdep.c: Ditto.
1096         * s390-tdep.c: Ditto.
1097         * sh-tdep.c: Ditto.
1098         * xstormy16-tdep.c: Ditto.
1099         * gdbarch.sh: Remove include of symfile.h.
1100         * gdbarch.c: Regenerate.
1101         * solib-irix.c (enable_break): Use entry_point_address().
1102         Add comment about include file.
1103         * xcoffread.c: Add comment about include file.
1104         * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
1105         (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
1106         (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
1107         (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
1108         (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
1109
1110 2004-02-13  Andrew Cagney  <cagney@redhat.com>
1111
1112         * corelow.c (core_xfer_partial): Use "struct bfd_section".
1113         * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
1114         copyright.
1115         * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
1116
1117 2004-02-12  Fred Fish  <fnf@redhat.com>
1118
1119         * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
1120          set_gdbarch_store_return_value.
1121
1122 2004-02-12  Andrew Cagney  <cagney@redhat.com>
1123
1124         * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
1125         (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
1126         (interrupt_query): Ditto.
1127         (ofunc): Delete unused variable.
1128         * cris-tdep.c (cris_abi): Delete unused function.
1129         (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
1130         (cris_get_wide_opcode, cris_get_short_size): Ditto.
1131         (cris_get_asr_quick_shift_steps): Ditto.
1132         (cris_skip_prologue_frameless_p): Ditto.
1133         * arm-tdep.c (arm_push_return_address): Delete unused function.
1134         (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
1135         * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
1136         * s390-tdep.c (s390_function_start): Delete unused function.
1137
1138 2004-02-12  Andrew Cagney  <cagney@redhat.com>
1139
1140         * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
1141         gdbarch.h, gdbarch.c: Re-generate.
1142         * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
1143         to generic_prologue_frameless_p.
1144         * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
1145         * arch-utils.c (generic_prologue_frameless_p): Delete function.
1146
1147 2004-02-11  Daniel Jacobowitz  <drow@mvista.com>
1148
1149         * mips-linux-tdep.c: Include "frame.h".
1150         (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
1151         (mips_linux_skip_resolver): New functions.
1152         (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
1153         and set_gdbarch_in_solib_call_trampoline.
1154         * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
1155         to after set_gdbarch_in_solib_return_trampoline.  Only set the
1156         solib hooks to mips16 functions if the OS ABI is unknown.
1157         * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
1158         including "config/tm-linux.h".
1159         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
1160         * Makefile.in (mips-linux-tdep.o): Update.
1161
1162 2004-02-11  David Carlton  <carlton@kealia.com>
1163
1164         * linespec.c (decode_compound): Only look for a class symbol when
1165         considering all but the rightmost component.
1166
1167 2004-02-11  Andrew Cagney  <cagney@redhat.com>
1168
1169         * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
1170         abi code are are separatly grouped.
1171
1172 2004-02-11  Andrew Cagney  <cagney@redhat.com>
1173
1174         * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
1175         * gdbarch.h, gdbarch.c: Re-generate.
1176         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1177         * v850-tdep.c (v850_gdbarch_init): Update.
1178         * sh64-tdep.c (sh64_gdbarch_init): Update.
1179         * sh-tdep.c (sh_gdbarch_init): Update.
1180         * s390-tdep.c (s390_gdbarch_init): Update.
1181         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1182         * mips-tdep.c (mips_gdbarch_init): Update.
1183         * mcore-tdep.c (mcore_gdbarch_init): Update.
1184         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1185         * m32r-tdep.c (m32r_gdbarch_init): Update.
1186         * ia64-tdep.c (ia64_gdbarch_init): Update.
1187         * hppa-tdep.c (hppa_gdbarch_init): Update.
1188         * h8300-tdep.c (h8300_gdbarch_init): Update.
1189         * frv-tdep.c (frv_gdbarch_init): Update.
1190         * d10v-tdep.c (d10v_gdbarch_init): Update.
1191         * cris-tdep.c (cris_gdbarch_init): Update.
1192         * avr-tdep.c (avr_gdbarch_init): Update.
1193         * arm-tdep.c (arm_gdbarch_init): Update.
1194         * alpha-tdep.c (alpha_gdbarch_init): Update.
1195
1196 2004-02-11  Corinna Vinschen  <vinschen@redhat.com>
1197
1198         * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
1199         comma.
1200         (sh_sh4al_dsp_register_name): Ditto.
1201
1202 2004-02-10  Andrew Cagney  <cagney@redhat.com>
1203
1204         * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
1205         (mips_init_frame_pc_first): Delete function.
1206         (mips_frame_saved_pc): Delete function.
1207         (mips_frame_chain): Delete function.
1208         (mips_init_extra_frame_info): Delete function.
1209         (mips_xfer_register): Delete unused variable "reg".
1210         (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
1211         (mips_n32n64_return_value): Delete unused variable "reg".
1212         (mips_n32n64_return_value): Delete unused variable "pos".
1213         (mips_o32_push_dummy_call): Delete unused variable "valbuf".
1214         (mips_o32_return_value): Delete unused variable "pos".
1215         (mips_o64_push_dummy_call): Delete unused variable "valbuf".
1216         (mips_print_fp_register): Delete unused variable "namelen"
1217         (mips_print_fp_register): Delete unused variable "flt2"
1218         (get_frame_pointer): Delete function.
1219         (cached_proc_desc): Delete static variable.
1220         (mips_pop_frame): Delete function.
1221         (mips_find_saved_regs): Delete function.
1222         (mips_get_saved_register): Delete function.
1223         (mips_saved_pc_after_call): Delete function.
1224         (SIGFRAME_BASE): Delete macro.
1225         (SIGFRAME_FPREGSAVE_OFF): Delete macro.
1226         (SIGFRAME_PC_OFF): Delete macro.
1227         (SIGFRAME_REGSAVE_OFF): Delete macro.
1228         (mips_dump_tdep): Do not print deleted macro definitions.
1229
1230 2004-02-10  Andrew Cagney  <cagney@redhat.com>
1231
1232         * Makefile.in (SFILES): Remove explictly listed tui files.
1233         (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
1234
1235 2004-02-10  Jeff Johnston  <jjohnstn@redhat.com>
1236
1237         * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
1238         to use paddr functions to format ia64 addresses and long values.
1239         (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
1240         (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
1241         (get_kernel_table, ia64_find_proc_info_x): Ditto.
1242         (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
1243         (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
1244
1245 2004-02-10  Andrew Cagney  <cagney@redhat.com>
1246
1247         * defs.h: Do not include "tui.h".
1248         * gdb_curses.h: New file.
1249         * tui/tui-hooks.h: New file.
1250         * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
1251         (tui_install_hooks, tui_remove_hooks): Delete declarations.
1252         (tui_initialize_io): Delete declaration.
1253         (tui_initialize_readline: Delete redundant declaration.
1254         (struct tui_point): Delete definition.
1255         * tui/tui-data.h (struct tui_point): Define.
1256         * cli/cli-decode.c [TUI]: Include "tui/tui.h".
1257         * utils.c: Include "tui/tui.h".
1258         * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
1259         * printcmd.c [TUI]: Include "tui/tui.h".
1260         * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
1261         * tui/tui-command.c: Include "gdb_curses.h".
1262         * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
1263         * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
1264         * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
1265         * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
1266         * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
1267         * Makefile.in: Update all dependencies.
1268         (tui_hooks_h, gdb_curses_h): Define.
1269         (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
1270
1271 2004-02-10  Elena Zannoni  <ezannoni@redhat.com>
1272
1273         * objfiles.h (struct objfile): Remove unused fields auxf1 and
1274         auxf2. Add comments about some other rarely used fields.
1275
1276 2004-02-10  Andrew Cagney  <cagney@redhat.com>
1277
1278         * Makefile.in (init.c): Fix script removing duplicates. Problem
1279         reported by Peter Schauer.
1280
1281 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
1282
1283         * bcache.c (bcache_xmalloc): Use obstack_init instead of
1284         obstack_specify_allocation.
1285         * objfiles.c (allocate_objfile): Ditto.
1286         * solib-sunos.c (solib_add_common_symbols)
1287         (allocate_rt_common_objfile): Ditto.
1288         * symfile.c (reread_symbols): Ditto.
1289         * gdb_obstack.h: Add comment.
1290
1291 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
1292
1293         * linespec.c (decode_line_1, locate_first_half)
1294         (decode_compound, lookup_prefix_sym): Update comments. Delete old
1295         commented out code.
1296
1297 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1298
1299         * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
1300         obstack_free.
1301
1302 2004-02-09  Andrew Cagney  <cagney@redhat.com>
1303
1304         * blockframe.c (find_pc_partial_function): If find_pc_overlay
1305         fails, try find_pc_section.  Fix PR c++/1267.
1306         * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
1307         instead of find_pc_mapped_section.
1308         (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
1309         not default to the section containing PC.  Fix PR symtab/1519.
1310
1311 2004-02-09  Andrew Cagney  <cagney@redhat.com>
1312
1313         * Makefile.in (mips-tdep.o): Update dependencies.
1314         * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
1315         "trad-frame.h".
1316         (mips_unwind_pc): Return the pseudo PC register.
1317         (mips_unwind_dummy_id): New function.
1318         (mips16_fetch_instruction): New function.
1319         (mips32_fetch_instruction): New function.
1320         (struct mips_frame_cache): Define.
1321         (mips_mdebug_frame_cache): New function.
1322         (mips_mdebug_frame_this_id): New function.
1323         (mips_mdebug_frame_prev_register): New function.
1324         (mips_mdebug_frame_unwind): Define.
1325         (mips_mdebug_frame_sniffer): New function.
1326         (mips_mdebug_frame_base_address): New function.
1327         (mips_mdebug_frame_base): Define.
1328         (mips_mdebug_frame_base_sniffer): New function.
1329         (mips_gdbarch_init): Append unwind and base sniffers.  Set
1330         unwind_dummy_id.
1331
1332 2004-02-08  Andrew Cagney  <cagney@redhat.com>
1333
1334         * frame.c: Print both the register number and name.
1335
1336         * Makefile.in (init.c): Eliminate duplicates.  Combine two greps
1337         and a sed into a single sed.  Make .c and .o patterns more robust.
1338         (OBS): Delete.
1339         (INIT_FILES): Replace OBS with COMMON_OBS.
1340         (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
1341
1342 2004-02-08  Mark Kettenis  <kettenis@gnu.org>
1343
1344         * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
1345         the PT_WCOOKIE request.
1346
1347 2004-02-08  Andrew Cagney  <cagney@redhat.com>
1348
1349         * mips-tdep.c (mips_unwind_pc): New function.
1350         (mips_gdbarch_init): Set mips_unwind_pc.
1351
1352         * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
1353         (get_frame_id): Allow the UNKNOWN_FRAME.
1354         (frame_register_unwind, get_frame_type): Ditto.
1355
1356         * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
1357         and DEPRECATED_FP_REGNUM.  Don't assume that the lack of
1358         unwind_dummy_id indicates a legacy frame.
1359
1360         * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
1361         * configure: Re-generate.
1362
1363         * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
1364         methods.
1365
1366 2004-02-08  Andrew Cagney  <cagney@redhat.com>
1367
1368         * configure.in (CONFIG_ALL): Set to Makefile target, and not
1369         makefile macro.
1370         * configure: Re-generate.
1371         (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
1372         * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
1373         (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
1374         (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
1375         (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
1376         (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
1377         (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
1378         (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
1379         (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
1380         (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
1381
1382 2004-02-07  Andrew Cagney  <cagney@redhat.com>
1383
1384         * Makefile.in: Update all dependencies.
1385
1386         * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
1387         * configure: Re-generate.
1388         * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
1389         (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
1390         (COMMON_OBS): Add "main.o" and "annotate.o".
1391         (ANNOTATE_OBS): Delete.
1392         (OBS): Remove ANNOTATE_OBS.
1393         (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
1394         CONFIG_INITS.
1395         (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
1396         against CONFIG_OBS and "main.o".
1397         (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
1398         (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
1399
1400         * tui/tui-command.c: Include "gdb_string.h", delete register
1401         attribute, use ISO-C function signatures.
1402         * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
1403         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
1404         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
1405         * tui/tui.c: Ditto.
1406
1407         * tui/tui-command.c: Change variable and function names to lower
1408         case.
1409         * tui/tui-data.c, tui/tui-disasm.c: Ditto.
1410         * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
1411         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
1412         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
1413         * tui/tui-winsource.c, tui/tui.c: Ditto.
1414
1415 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
1416
1417         * buildsym.c (free_pending_blocks, finish_block)
1418         (record_pending_block, make_blockvector, end_symtab): Replace
1419         symbol_obstack with objfile_obstack.
1420         * coffread.c (process_coff_symbol, coff_read_struct_type)
1421         (coff_read_enum_type): Ditto.
1422         * cp-namespace.c (initialize_namespace_symtab)
1423         (check_one_possible_namespace_symbol): Ditto.
1424         * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
1425         (dwarf2_symbol_mark_computed): Ditto.
1426         * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
1427         * elfread.c (elf_symtab_read): Ditto.
1428         * hpread.c (hpread_symfile_init, hpread_symfile_init)
1429         (hpread_read_enum_type, hpread_read_function_type)
1430         (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
1431         Ditto.
1432         * jv-lang.c (get_java_class_symtab, add_class_symbol)
1433         (java_link_class_type): Ditto.
1434         * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
1435         (new_symbol): Ditto.
1436         * minsyms.c (install_minimal_symbols): Ditto.
1437         * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
1438         (terminate_minimal_symbol_table): Replace symbol_obstack with
1439         objfile_obstack.
1440         (free_objfile): Remove freeing of symbol_obstack.
1441         * objfiles.h: Remove symbol_obstack field.
1442         * pa64solib.c (add_to_solist): Replace symbol_obstack with
1443         objfile_obstack.
1444         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
1445         symbol_obstack.
1446         (solib_add_common_symbols): Replace symbol_obstack with
1447         objfile_obstack.
1448         * somsolib.c (som_solib_add): Ditto.
1449         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
1450         (common_block_start, common_block_end): Ditto.
1451         * symfile.c (reread_symbols): Remove freeing and init of
1452         symbol_obstack.
1453         (allocate_symtab): Rename symbol_obstack to objfile_obstack.
1454         * symfile.h: Update comment.
1455         * symmisc.c (print_objfile_statistics): Remove symbol_obstack
1456         stats printing.
1457         * symtab.c (symbol_set_names): Replace symbol_obstack with
1458         objfile_obstack.
1459         * symtab.h (struct general_symbol_info, struct minimal_symbol):
1460         Update comments.
1461         * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
1462         (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
1463         objfile_obstack.
1464
1465 2004-02-07  Andrew Cagney  <cagney@redhat.com>
1466
1467         * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
1468         "ansidecl.h".  Do not undef "reg" and "chtype".  Fix case of
1469         fields and variables.
1470         * tui/tui-wingeneral.h (m_beVisible): Delete macro.
1471         (m_beInvisible): Delete macro.
1472         * tui/tui-data.h: Fix case case fields and variables.
1473         (m_genWinPtrIsNull): Delete macro.
1474         (tui_win_list): Rename winList.
1475         (TUI_SRC_WIN): Rename srcWin.
1476         (TUI_DISASM_WIN): Rename disassemWin.
1477         (TUI_DATA_WIN): Rename dataWin.
1478         (TUI_CMD_WIN): Rename cmdWin.
1479         (m_genWinPtrNotNull): Delete macro.
1480         (m_winPtrIsNull): Delete macro.
1481         (m_winPtrNotNull): Delete macro.
1482         (tui_win_is_source_type): Replace m_winIsSourceType
1483         (tui_win_is_auxillary): Replace m_winIsAuzillary.
1484         (tui_win_has_locator): Replace m_hasLocator.
1485         (tui_set_win_highlight): Replace m_setWinHighlightOn and
1486         m_setWinHighlightOff.
1487         * tui/tui-data.c: Update references.
1488         (tui_win_is_source_type, tui_set_win_highlight): New functions.
1489         (tui_win_has_locator, tui_win_is_auxillary): New functions.
1490         * tui/tui-command.c, tui/tui-disasm.c: Update references.
1491         * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
1492         * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
1493         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
1494         * tui/tui-winsource.c, tui/tui.c: Ditto.
1495
1496 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
1497
1498         * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
1499         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
1500         StackGhost.
1501
1502         * sparc-tdep.c (sparc32_frame_prev_register): Rename local
1503         variable `i6' to `i7'.
1504         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
1505
1506 2004-02-07  Andrew Cagney  <cagney@redhat.com>
1507
1508         * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
1509         (TuiPoint, TuiPointPtr): Ditto.
1510         (TuiStatus, TuiStatusPtr): Ditto.
1511         (TuiWinType, TuiWinTypePtr): Ditto.
1512         (struct tui_point): Rename _TuiPoint.
1513         (tui_get_low_disassembly_address): Rename
1514         tuiGetLowDisassemblyAddress.
1515         (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
1516         (tuiFree): Delete declaration.
1517         (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
1518         (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
1519         * tui/tui.c (tuiFree): Delete function.
1520         * cli/cli-cmds.c (disassemble_command): Update references.
1521         * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
1522         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
1523         * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
1524         * tui/tui-winsource.c: Ditto.
1525
1526 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
1527
1528         * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
1529         coffstab_build_psymtabs, elfstab_build_psymtabs)
1530         (stabsect_build_psymtabs): Replace psymbol_obstack with
1531         objfile_obstack.
1532         * dwarf2-frame.c (decode_frame_entry_1): Ditto.
1533         * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
1534         Ditto.
1535         * dwarfread.c (scan_compilation_units): Ditto.
1536         * elfread.c (elfstab_offset_sections): Ditto.
1537         * hppa-tdep.c (read_unwind_info): Ditto.
1538         * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
1539         (hpread_end_psymtab): Ditto.
1540         * mdebugread.c (mdebug_build_psymtabs, add_pending)
1541         (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
1542         Ditto.
1543         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
1544         * objfiles.c (add_to_objfile_sections)
1545         (build_objfile_section_table): Ditto.
1546         (allocate_objfile): Remove init of psymbol_obstack.
1547         (free_objfile): Remove freeing of psymbol_obstack.
1548         * objfiles.h (struct objfile): Remove field
1549         psymbol_obstack. Update comments.
1550         * pa64solib.c (pa64_solib_add_solib_objfile): Replace
1551         psymbol_obstack with objfile_obstack.
1552         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
1553         psymbol_obstack.
1554         * somread.c (som_symfile_offsets, init_import_symbols)
1555         (init_export_symbols): Replace psymbol_obstack with
1556         objfile_obstack.
1557         * somsolib.c (som_solib_add_solib_objfile): Ditto.
1558         * symfile.c (default_symfile_offsets, syms_from_objfile)
1559         (reread_symbols): Remove freeing and init of psymbol_obstack.
1560         (cashier_psymtab): Update comment.
1561         * symmisc.c (print_objfile_statistics): Don't report stats for
1562         psymbol obstack.
1563         * symtab.h (struct general_symbol_info, struct partial_symtab):
1564         Update comments.
1565         * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
1566         (xcoff_symfile_offsets): Replace psymbol_obstack with
1567         objfile_obstack.
1568
1569 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
1570
1571         * objfiles.h (struct objfile): Add objfile_obstack field.
1572         Remove type_obstack field.
1573
1574         * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
1575         read_structure_scope read_enumeration, new_symbol): Replace
1576         type_obstack with objfile_obstack.
1577         * dwarfread.c (struct_type, enum_type): Ditto.
1578         * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
1579         (lookup_fundamental_type): Ditto.
1580         * gdbtypes.h (TYPE_ALLOC): Ditto.
1581         * hpread.c (hpread_read_enum_type, hpread_read_function_type)
1582         (hpread_read_doc_function_type, hpread_read_struct_type)
1583         (fix_static_member_physnames, hpread_read_array_type)
1584         (hpread_read_subrange_type, hpread_type_lookup): Ditto.
1585         * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
1586         (java_link_class_type): Ditto.
1587         * mdebugread.c (parse_type): Ditto.
1588         * objfiles.c (allocate_objfile, free_objfile): Ditto.
1589         * solib-sunos.c (solib_add_common_symbols): Ditto.
1590         * stabsread.c (define_symbol, read_type, read_member_functions,
1591         read_cpp_abbrev, read_one_struct_field): Ditto.
1592         * symfile.c (reread_symbols): Ditto.
1593         * symmisc.c (print_objfile_statistics): Ditto.
1594
1595 2004-02-07  Andrew Cagney  <cagney@redhat.com>
1596
1597         * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
1598         (tui_exec_info_content): Rename TuiExecInfoContent.
1599         (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
1600         (TuiWinInfo, TuiWinInfoPtr): Ditto.
1601         (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
1602         (TuiList, TuiListPtr): Ditto.
1603         (TuiLayoutType, TuiLayoutTypePtr): Ditto.
1604         (TuiDataType, TuiDataTypePtr): Ditto.
1605         (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
1606         (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
1607         (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
1608         (TuiSourceElement, TuiSourceElementPtr): Ditto.
1609         (TuiDataElement, TuiDataElementPtr): Ditto.
1610         (TuiWinElement, TuiWinElementPtr): Ditto.
1611         (TuiDataInfo, TuiDataInfoPtr): Ditto.
1612         (TuiCommandElement, TuiCommandElementPtr): Ditto.
1613         (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
1614         (TuiWhichElement, TuiWhichElementPtr): Ditto.
1615         (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
1616         (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
1617         * tui/tui-command.c, tui/tui-data.c: Update references.
1618         * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
1619         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
1620         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
1621         * tui/tui-winsource.c, tui/tui.c: Ditto.
1622
1623 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
1624
1625         * dwarf2-frame.h: Update copyright.
1626         (enum dwarf2_frame_reg_rule): New.
1627         (struct dwarf2_frame_state_reg): New.
1628         (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
1629         * dwarf2-frame.c: Update copyright.
1630         (enum dwarf2_reg_rule): Remove.
1631         (struct dwarf2_frame_state): Remove defenition of `struct
1632         dwarf2_frame_state_reg'.
1633         (read_reg): Call get_frame_arch to get the architecture instead of
1634         using CURRENT_GDBARCH.
1635         (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
1636         DWARF2_FRAME_.
1637         (dwarf2_frame_init_reg): New function.
1638         (dwarf2_frame_cache): Call get_frame_arch to get the architecture
1639         instead of using CURRENT_GDBARCH.  Call dwarf2_frame_init_reg to
1640         initialize the register state.  Prefix old `enum dwarf2_reg_rule'
1641         tags with DWARF2_FRAME_.
1642         (dwarf2_frame_prev_register): Call get_frame_arch to get the
1643         architecture instead of using CURRENT_GDBARCH.  Prefix old `enum
1644         dwarf2_reg_rule' tags with DWARF2_FRAME_.
1645
1646 2004-02-06  Andrew Cagney  <cagney@redhat.com>
1647
1648         * tui/tui-data.h (struct tui_list): Rename _TuiList.
1649         (enum tui_data_type): Rename _TuiDataType.
1650         (struct tui_layout_def): Rename _TuiLayoutDef.
1651         (struct tui_source_element): Rename _TuiSourceElement.
1652         (struct tui_data_element): Rename _TuiDataElement.
1653         (struct tui_command_element): Rename _TuiCommandElement.
1654         (struct tui_locator_element): Rename _TuiLocatorElement.
1655         (union tui_which_element): Define.
1656         (struct tui_win_element): Rename _TuiWinElement.
1657         (struct tui_data_info): Rename _TuiDataInfo.
1658         (struct tui_source_info): Rename _TuiSourceInfo.
1659         (struct tui_command_info): Rename _TuiCommandInfo.
1660         (tui_initialize_static_data): Rename initializeStaticData.
1661         (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
1662         (tui_alloc_win_info): Rename allocWinInfo.
1663         (tui_init_generic_part): Rename initGenericPart.
1664         (tui_init_win_info): Rename initWinInfo.
1665         (tui_alloc_content): Rename allocContent.
1666         (tui_add_content_elements): Rename addContentElements.
1667         (tui_init_content_element): Rename initContentElement.
1668         (tui_free_window): Rename freeWindow.
1669         (tui_free_win_content): Rename freeWinContent.
1670         (tui_free_data_content): Rename freeDataContent.
1671         (tui_free_all_source_wins_content): Rename
1672         freeAllSourceWinsContent.
1673         (tui_del_window): Rename tuiDelWindow.
1674         (tui_del_data_windows): Rename tuiDelDataWindows.
1675         (tui_partial_win_by_name): Rename partialWinByName.
1676         (tui_win_name): Rename winName.
1677         (tui_current_layout): Rename currentLayout.
1678         (tui_set_current_layout_to): Rename setCurrentLayoutTo.
1679         (tui_term_height): Rename termHeight.
1680         (tui_set_term_height_to): Rename setTermHeightTo.
1681         (tui_term_width): Rename termWidth.
1682         (tui_set_term_width_to): Rename setTermWidthTo.
1683         (tui_set_gen_win_origin): Rename setGenWinOrigin.
1684         (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
1685         (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
1686         (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
1687         (tui_source_windows): Rename sourceWindows.
1688         (tui_clear_source_windows): Rename clearSourceWindows.
1689         (tui_clear_source_windows_detail): Rename
1690         clearSourceWindowsDetail.
1691         (tui_clear_win_detail): Rename clearWinDetail.
1692         (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
1693         (tui_default_tab_len): Rename tuiDefaultTabLen.
1694         (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
1695         (tui_win_with_focus): Rename tuiWinWithFocus.
1696         (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
1697         (tui_layout_def): Rename tuiLayoutDef.
1698         (tui_win_resized): Rename tuiWinResized.
1699         (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
1700         (tui_next_win): Rename tuiNextWin.
1701         (tui_prev_win): Rename tuiPrevWin.
1702         (tui_add_to_source_windows): Rename addToSourceWindows.
1703         * tui/tui-winsource.c, tui/tui-win.c: Update references.
1704         * tui/tui-layout.c, tui/tui-source.c: Ditto.
1705         * tui/tui-stack.c, tui/tui-io.c: Ditto.
1706         * tui/tui.c, tui/tui-data.c: Ditto.
1707         * tui/tui-interp.c, tui/tui-data.c: Ditto.
1708         * tui/tui-disasm.c, tui/tui-command.c: Ditto.
1709
1710         * tui/tui-source.h: Update copyright.  Include "tui-data.h".
1711         (struct symtab): Declare.
1712         (tui_set_source_content): Rename tuiSetSourceContent.
1713         (tui_show_symtab_source): Rename tuiShowSource.
1714         (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
1715         (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
1716         * tui/tui-source.c: Update copyright.  Update references.
1717         * tui/tui-win.c, tui/tui-winsource.c: Update references.
1718         * tui/tui-stack.c: Update references.
1719
1720         * tui/tui-win.h: Update copyright.  Include "tui-data.h".
1721         (struct tui_win_info): Declare.
1722         (tui_scroll_forward): Rename tuiScrollForward.
1723         (tui_scroll_backward): Rename tuiScrollBackward.
1724         (tui_scroll_left): Rename tuiScrollLeft.
1725         (tui_scroll_right): Rename tuiScrollRight.
1726         (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
1727         (tui_resize_all): Rename tuiResizeAll.
1728         (tui_refresh_all_win): Rename tuiRefreshAll.
1729         (tui_sigwinch_handler): Rename tuiSigwinchHandler.
1730         * tui/tui-layout.c, * tui/tui-io.c: Update references.
1731         * tui/tui-wingeneral.h, * tui/tui.c: Update references.
1732         * tui/tui-disasm.c, * tui/tui-command.c: Update references.
1733
1734         * tui/tui-windata.h: Update copyright.  Include "tui-data.h".
1735         (tui_erase_data_content): Rename tuiEraseDataContent.
1736         (tui_display_all_data): Rename tuiDisplayAllData.
1737         (tui_check_data_values): Rename tuiCheckDataValues.
1738         (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
1739         (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
1740         (tui_first_data_element_no_in_line): Rename
1741         tuiFirstDataElementNoInLine.
1742         (tui_delete_data_content_windows): Rename
1743         tuiDeleteDataContentWindows.
1744         (tui_refresh_data_win): Rename tuiRefreshDataWin.
1745         (tui_display_data_from): Rename tuiDisplayDataFrom.
1746         (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
1747         * tui/tui-windata.c, tui/tui-hooks.c: Update references.
1748         * tui/tui-win.c, tui/tui-regs.c: Update references.
1749         * tui/tui-layout.c, tui/tui.c: Update references.
1750
1751         * tui/tui-wingeneral.h: Update copyright.
1752         (m_allBeVisible): Delete macro.
1753         (m_allBeInvisible): Delete macro.
1754         (struct tui_gen_win_info): Declare.
1755         (struct tui_win_info): Declare.
1756         (tui_unhighlight_win): Rename unhighlightWin.
1757         (tui_make_visible, tui_make_invisible): Replace makeVisible.
1758         (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
1759         (tui_make_window): Rename makeWindow.
1760         (tui_copy_win): Rename copyWin.
1761         (tui_box_win): Rename boxWin.
1762         (tui_highlight_win): Rename highlightWin.
1763         (tui_check_and_display_highlight_if_needed): Rename
1764         checkAndDisplayHighlightIfNeeded.
1765         (tui_refresh_all): Rename refreshAll.
1766         (tui_delete_win): Rename tuiDelwin.
1767         (tui_refresh_win): Rename tuiRefreshWin.
1768         * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
1769         (tui_make_visible, tui_make_invisible): New functions.
1770         (tui_make_all_visible, tui_make_all_invisible): New functions.
1771         (make_all_visible): Rename makeAllVisible.
1772         * tui/tui-winsource.c, tui/tui-windata.c: Update references.
1773         * tui/tui-data.c, tui/tui-winsource.c: Update references.
1774         * tui/tui-windata.c, tui/tui-win.c: Update references.
1775         * tui/tui-regs.c, tui/tui-layout.c: Update references.
1776         * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
1777
1778 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
1779
1780         * proc-api.c (write_with_trace): Initialize local variable to
1781         silence compiler warning.
1782
1783 2004-02-06  Andrew Cagney  <cagney@redhat.com>
1784
1785         * tui/tui-source.h: Do not include "defs.h".
1786         (struct tui_win_info): Declare.
1787         (tui_set_source_content_nil): Declare.
1788         * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
1789         (union tui_line_or_address): Rename _TuiLineOrAddress.
1790         * tui/tui-winsource.h: Update copyright.  Include "tui-data.h".
1791         (tui_update_source_window): Rename tuiUpdateSourceWindow.
1792         (tui_update_source_window_as_is): Rename
1793         tuiUpdateSourceWindowAsIs.
1794         (tui_update_source_windows_with_addr): Rename
1795         tuiUpdateSourceWindowsWithAddr.
1796         (tui_update_source_windows_with_line): Rename
1797         tuiUpdateSourceWindowsWithLine.
1798         (tui_clear_source_content): Rename tuiClearSourceContent.
1799         (tui_erase_source_content): Rename tuiEraseSourceContent.
1800         (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
1801         (tui_show_source_content): Rename tuiShowSourceContent.
1802         (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
1803         (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
1804         (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
1805         (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
1806         (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
1807         (tui_update_exec_info): Rename tuiUpdateExecInfo.
1808         (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
1809         (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
1810         (tui_line_is_displayed): Rename tuiLineIsDisplayed.
1811         (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
1812         (struct tui_win_info): Declare.
1813         * tui/tui-stack.c: Update references.
1814         * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
1815         * tui/tui-win.c, tui/tui-source.c: Ditto.
1816         * tui/tui.c, tui/tui-disasm.c: Ditto.
1817
1818 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
1819
1820         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
1821         of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
1822
1823 2004-02-05  Mark Kettenis  <kettenis@gnu.org>
1824
1825         * infrun.c (handle_inferior_event): Allow for breakpoint
1826         instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
1827         and SIGEMT.  Update comments.
1828         * NEWS (Revised SPARC target): Mention support for non-executable
1829         stack.
1830
1831 2004-02-04  Mark Kettenis  <kettenis@gnu.org>
1832
1833         * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
1834         * inftarg.c: Update copyright year.
1835         (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
1836         * sparc-nat.c: Include "target.h" and "gdb_assert.h".
1837         (sparc_xfer_wcookie): New function.
1838         * sparc-tdep.c (sparc_fetch_wcookie): New function.
1839         * Makefile.in (sparc-nat.o): Update dependencies.
1840         * config/sparc/nm-nbsd.h: Include "target.h".
1841         (NATIVE_XFER_WCOOKIE): New define.
1842         (sparc_xfer_wcookie): New prototype.
1843
1844 2004-02-04  Andrew Cagney  <cagney@redhat.com>
1845
1846         * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
1847         SYSCALL_TRAP function.
1848         (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
1849
1850 2004-02-04  Andrew Cagney  <cagney@redhat.com>
1851             Daniel Jacobowitz  <drow@mvista.com>
1852
1853         * objfiles.h: Delete comments refering to inside_entry_func and
1854         DEPRECATED_FRAME_CHAIN_VALID.
1855         * defs.h (inside_entry_func): Update prototype..
1856         * blockframe.c (inside_entry_func): Rename to
1857         legacy_inside_entry_func.  Add new inside_entry_func taking a frame.
1858         * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
1859
1860 2004-02-03  Jeff Johnston  <jjohnstn@redhat.com>
1861
1862         * breakpoint.c (struct captured_parse_breakpoint_args):  Move
1863         outside of #ifdef SOLIB_ADD region.
1864         (do_restore_lang_radix_cleanup): Ditto.
1865         (resolve_pending_breakpoint): Ditto.
1866
1867 2004-02-03  Andrew Cagney  <cagney@redhat.com>
1868
1869         * ia64-tdep.c (read_sigcontext_register): Delete unused function.
1870         (process_note_abi_tag_sections): Delete unused function.
1871         (ia64_read_fp): Delete unused function.
1872         (gdbarch_extract_struct_value_address): Delete declaration.
1873
1874 2004-02-02  Andrew Cagney  <cagney@redhat.com>
1875
1876         * vax-tdep.c (vax_frame_chain): Delete call to
1877         deprecated_inside_entry_file.
1878         * ns32k-tdep.c (ns32k_frame_chain): Ditto.
1879
1880 2004-02-02  Mark Kettenis  <kettenis@gnu.org>
1881
1882         * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
1883         column that's "empty" or "same value" when eliminating REG_RA
1884         rules.
1885
1886 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
1887
1888         * NEWS: Add information about new pending breakpoint support.
1889
1890 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
1891
1892         * breakpoint.h (struct breakpoint): Add new flag, from_tty,
1893         and pending fields for pending breakpoint support.
1894         * breakpoint.c (breakpoint_enabled): Add check for not pending.
1895         (condition_command): Only parse condition if not a pending
1896         breakpoint.
1897         (print_one_breakpoint): Add support for pending breakpoints.
1898         (describe_other_breakpoints): Add checks to verify we are not
1899         dealing with pending breakpoints.
1900         (check_duplicates): Don't check pending breakpoints.
1901         (set_raw_breakpoint): Initialize pending flag.
1902         (do_restore_lang_radix_cleanup): New cleanup routine.
1903         (resolve_pending_breakpoint): New function.
1904         (re_enable_breakpoints_in_shlibs): Try and resolve any
1905         pending breakpoints via resolve_pending_breakpoint.
1906         (mention): Add pending breakpoint support.
1907         (parse_breakpoint_sals): Add new parameter to pass to
1908         decode_line_1 to indicate silent errors when files or functions
1909         are not found.  Change all callers.
1910         (do_captured_parse_breakpoint): New function.
1911         (break_command_1): Change prototype to return an rc value and to
1912         take an optional pending breakpoint pointer.  Support creating
1913         a pending breakpoint if a "not found" form of error occurs when
1914         parsing the breakpoint.  Also support resolving an existing pending
1915         breakpoint and be silent if the resolution fails.
1916         (create_breakpoints): Change prototype to take pending breakpoint
1917         pointer.  When resolving a pending breakpoint, use the new pointer
1918         to provide a conditional or commands added by the end-user.
1919         (delete_breakpoint): Add appropriate check for pending.
1920         (breakpoint_re_set_one): Ditto.
1921         (do_enable_breakpoint): Ditto.
1922
1923 2004-02-02  David Carlton  <carlton@kealia.com>
1924
1925         * valops.c (enum oload_classification): New.
1926         (find_overload_match): Break implementation into separate
1927         functions; delete #if 0'd code; look for symbols within
1928         namespaces.
1929         (find_oload_champ_namespace,find_oload_champ_namespace_loop)
1930         (find_oload_champ,oload_method_static,classify_oload_match): New.
1931         * cp-support.h: Add declaration for cp_func_name; update
1932         declaration for make_symbol_overload_list.
1933         * cp-support.c (cp_func_name): New.
1934         (overload_list_add_symbol): Fix comment, use
1935         SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
1936         (make_symbol_overload_list): Take a function name and a namespace
1937         instead of a symbol; change implementation.
1938         (make_symbol_overload_list_using): New.
1939         (make_symbol_overload_list_qualified, read_in_psymtabs): New.
1940
1941 2004-02-02  Fred Fish  <fnf@redhat.com>
1942
1943         * main.c (gdb_stdtarg): Move definition to group with other
1944         gdb_stdtarg definitions and update copyright years.
1945         * remote-sim.c (gdb_os_write_stderr): Write output to
1946         gdb_stdtargerr stream instead of gdb_stdtarg stream.
1947         (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
1948         gdb_stderr stream and update copyright years.
1949
1950 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
1951
1952         * Makefile.in (mips-linux-nat.o): Update dependencies.
1953         * mips-linux-nat.c: Include mips-tdep.h.
1954
1955 2004-02-01  Roland McGrath  <roland@redhat.com>
1956
1957         * sol-thread.c (sol_thread_xfer_partial): New function.
1958         (init_sol_thread_ops): Use that for to_xfer_partial hook.
1959         (init_sol_core_ops): Likewise.
1960
1961         * procfs.c (procfs_xfer_partial): New function.
1962         (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
1963         * Makefile.in (procfs.o): Add $(auxv_h) dep.
1964
1965         * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
1966         procfs_xfer_auxv function.
1967
1968         * procfs.c (procfs_make_note_section): If we can read
1969         TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
1970         * linux-proc.c (linux_make_note_section): Likewise.
1971
1972         * auxv.h: New file.
1973         * auxv.c: New file.
1974         * Makefile.in (auxv_h): New variable.
1975         (COMMON_OBS): Add auxv.o here.
1976         (auxv.o): New target.
1977
1978         * corelow.c (core_xfer_partial): New function.
1979         (init_core_ops): Use it for core_ops.to_xfer_partial.
1980
1981         * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
1982         * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
1983         macro if that is defined.
1984
1985 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
1986
1987         * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
1988         and check the specified thread for each breakpoint.
1989         * breakpoint.h (bpstat_stop_status): Update prototype.
1990         * infrun.c (handle_inferior_event): Update calls to
1991         bpstat_stop_status.
1992
1993 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
1994
1995         * Makefile.in (cli-cmds.o): Add $(readline_h).
1996
1997 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
1998
1999         * cli/cli-cmds.c: Include readline.h.
2000         (complete_command): Pass the start of the last word to
2001         complete_line.
2002
2003 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
2004
2005         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
2006         argument, and change first argument to a CORE_ADDR.
2007         * breakpoint.h (bpstat_stop_status): Update prototype.
2008         * infrun.c (adjust_pc_after_break): Add a new comment.
2009         (handle_inferior_event): Update calls to bpstat_stop_status.
2010
2011 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
2012
2013         * breakpoint.h: Update copyright years.
2014
2015 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
2016
2017         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
2018         (bpstat_stop_status): Don't decrement PC.
2019         * breakpoint.h (software_breakpoint_inserted_here_p): Add
2020         prototype.
2021         * infrun.c (adjust_pc_after_break): New function.
2022         (handle_inferior_event): Call it, early.  Remove later references
2023         to DECR_PC_AFTER_BREAK.
2024         (normal_stop): Add commentary.
2025
2026 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
2027
2028         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
2029         2004-01-27 double-free fix.
2030
2031 2004-01-31  Mark Kettenis  <kettenis@gnu.org>
2032
2033         * sparc-tdep.c (sparc_fetch_wcookie): New function.
2034         (sparc32_frame_prev_register): Handle StackGhost.
2035         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
2036
2037 2004-01-29  Roland McGrath  <roland@redhat.com>
2038
2039         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
2040         * configure: Regenerated.
2041
2042         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
2043         * Makefile.in (procfs.o): Add dep.
2044
2045 2004-01-28  Andrew Cagney  <cagney@redhat.com>
2046
2047         * tui/tui-stack.h: Update copyright.
2048         (struct frame_info): Add opaque declaration.
2049         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
2050         (tui_show_locator_content): Rename tuiShowLocatorContent.
2051         (tui_show_frame_info): Rename tuiShowFrameInfo.
2052         * tui/tui-stack.c: Update copyright.  Update references.
2053         * tui/tui-winsource.c: Update references.
2054         * tui/tui-win.c: Update references.
2055         * tui/tui-layout.c: Update references.
2056         * tui/tui-hooks.c: Update copyright, update references.
2057         * tui/tui.c: Update copyright, update references.
2058         * tui/tui-disasm.c: Update references.
2059
2060 2004-01-28  David Carlton  <carlton@kealia.com>
2061
2062         * dwarf2read.c (add_partial_structure): Use demangled name if
2063         namespace equals "".
2064
2065 2004-01-27  Jim Blandy  <jimb@redhat.com>
2066
2067         Clean up misapplied patch:
2068         * dwarf2read.c (determine_prefix): Change one of the two forward
2069         declarations for 'determine_prefix_aux' to a declaration for this.
2070         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
2071         argument to 'die_specification'.
2072
2073         * dwarf2read.c (read_func_scope): Re-indent comment.
2074
2075 2004-01-27  Paul N. Hilfinger  <hilfinger@gnat.com>
2076
2077         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
2078         b->exp to NULL after freeing so that error during re-parsing or
2079         evaluation of expressions associated with breakpoint don't
2080         eventually lead to re-freeing of storage.
2081         Committed by Andrew Cagney.
2082
2083 2004-01-27  Andrew Cagney  <cagney@redhat.com>
2084
2085         * source.c (ambiguous_line_spec): Delete undefined declaration.
2086         * m32r-rom.c (m32r_set_board_address): Delete unused function.
2087         (m32r_set_server_address, m32r_set_download_path): Ditto.
2088         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
2089
2090 2004-01-27  Daniel Jacobowitz  <drow@mvista.com>
2091
2092         * dwarf2read.c: Update calls to changed and renamed functions, and
2093         references to moved variables.
2094
2095         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
2096         language, language_defn, list_in_scope, and ftypes members.
2097         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
2098         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
2099         (baseaddr): Remove globals.
2100
2101         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
2102         (set_cu_language, die_is_declaration, die_specification)
2103         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
2104         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
2105         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
2106         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
2107
2108         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
2109         cu.list_in_scope.  Don't initialize cu_header_offset.
2110         (add_partial_symbol): Add local baseaddr.
2111         (psymtab_to_symtab_1): Add local baseaddr.  Use
2112         objfile->section_offsets for consistency.  Don't initialize
2113         cu_header_offset; do initialize cu.header.offset and
2114         cu.list_in_scope.
2115         (read_file_scope, read_func_scope, read_lexical_block_scope)
2116         (dwarf_decode_lines, new_symbol): Add local baseaddr.
2117
2118 2004-01-27  Michael Chastain  <mec.gnu@mindspring.com>
2119
2120         * PROBLEMS: Add gdb/1516.
2121
2122 2003-12-29  Robert Millan  <robertmh@gnu.org>
2123
2124         Patch committed by Andrw Cagney.
2125         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
2126         * configure.tgt: Match knetbsd*-gnu.
2127
2128 2004-01-26  Andrew Cagney  <cagney@redhat.com>
2129
2130         * breakpoint.c (catch_command_1): Delete #ifdef code.
2131         (catch_fork_command_1): Delete #ifdef wrapper.
2132         (catch_exec_command_1): Ditto.
2133         (catch_load_command_1): Ditto.
2134         (catch_unload_command_1): Ditto.
2135
2136         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
2137         (catch_breakpoint): Delete #if0ed function.
2138         (disable_catch_breakpoint): Ditto.
2139         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
2140         (disable_catch, enable_catch, delete_catch): Ditto.
2141
2142 2004-01-26  Andrew Cagney  <cagney@redhat.com>
2143
2144         * remote.c (echo_check, quit_flag): Delete variables.
2145         (cisco_kernel_mode): Delete variable.
2146         (minitelnet_return, tty_input, escape_count): Delete variables.
2147         (remote_cisco_mode): Delete variable.
2148         (remote_cisco_open, remote_cisco_close): Delete function.
2149         (remote_cisco_mourn, remote_cisco_wait): Delete function.
2150         (init_remote_cisco_ops): Delete function.
2151         (_initialize_remote): Do not install "remote cisco" code.
2152         (read_frame): Delete cisco specific code.
2153         (remote_info_process): Delete function.
2154         (remote_wait): Delete cisco specific code.
2155         (remote_cisco_section_offsets): Delete function.
2156         (remote_cisco_objfile_relocate): Delete function.
2157         (remote_async_wait): Delete cisco specific code.
2158         (minitelnet, readtty, readsocket): Delete function.
2159
2160 2004-01-26  Andrew Cagney  <cagney@redhat.com>
2161
2162         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
2163         comments mentioning extract_returned_value_address.
2164         * infcmd.c (print_return_value): Update.  Add comments on
2165         extract_returned_value_address.
2166         * stack.c (return_command): Add comments on
2167         extract_returned_value_address.
2168         * values.c: Update comment.
2169         * m32r-tdep.c: Update comment.
2170         * sparc-tdep.c: Update comment.
2171         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
2172         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2173         * sh64-tdep.c (sh64_gdbarch_init): Update.
2174         * sh-tdep.c (sh_gdbarch_init): Update.
2175         * s390-tdep.c (s390_gdbarch_init): Update.
2176         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2177         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
2178         * m68k-tdep.c (m68k_gdbarch_init): Update.
2179         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2180         * m32r-tdep.c (m32r_gdbarch_init): Update.
2181         * ia64-tdep.c (ia64_gdbarch_init): Update.
2182         * h8300-tdep.c (h8300_gdbarch_init): Update.
2183         * frv-tdep.c (frv_gdbarch_init): Update.
2184         * arm-tdep.c (arm_gdbarch_init): Update.
2185         * alpha-tdep.c (alpha_gdbarch_init): Update.
2186
2187 2004-01-26  Andrew Cagney  <cagney@redhat.com>
2188
2189         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
2190         SYMBOL_LOCATION_FUNCS
2191         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
2192         "struct symbol_ops".
2193         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
2194         type to "struct symbol_ops".
2195         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
2196         (struct symbol): Replace ".aux_value.loc.funcs" and
2197         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
2198         (SYMBOL_OBJFILE): Delete macro.
2199         (SYMBOL_LOCATION_FUNCS): Delete macro.
2200         (SYMBOL_LOCATION_BATON): Update.
2201         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
2202         intead of SYMBOL_LOCATION_FUNCS.
2203         * ax-gdb.c (gen_var_ref): Ditto.
2204         * printcmd.c (address_info): Ditto.
2205         * findvar.c (read_var_value): Ditto.
2206         (symbol_read_needs_frame): Ditto.
2207
2208 2004-01-26  Andrew Cagney  <cagney@redhat.com>
2209
2210         * dwarf2read.c (read_func_scope): Document frame-base hack.
2211
2212 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
2213
2214         * infcmd.c (print_return_value): Plug memory leak; delete
2215         ui_stream object.  Rename argument `structure_return' to
2216         `struct_return'.
2217
2218 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
2219
2220         * infcmd.c (print_return_value): Wrap long lines.
2221         (finish_command_continuation, finish_command): Remove unused
2222         variable `funcaddr'.  Fix some coding-standards problems.
2223
2224         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
2225         SECT_SIZE is large enough, not wheter it's exactly the right size.
2226         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
2227         TDEP->fpregset to zero.
2228
2229         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
2230         floating-point registers for traditional NetBSD core files.
2231         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
2232         TDEP->sizeof_fpregset here.
2233
2234 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
2235
2236         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
2237         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
2238         function with code split out from
2239         sparc32nbsd_sigcontext_frame_cache.
2240         (sparc32nbsd_sigcontext_frame_cache): Use
2241         sparc32nbsd_sigcontext_saved_regs.
2242         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
2243         OpenBSD.
2244         * sparcobsd-tdep.c: New file.
2245         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
2246         (sparcobsd-tdep.o): New dependency.
2247         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
2248         * config/sparc/obsd.mt: New file.
2249
2250         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
2251         TDEP->fpregset to be initialized to enable core file register
2252         sets.
2253
2254 2004-01-24  Mark Kettenis  <kettenis@gnu.org>
2255
2256         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
2257         Add opaque declarations.
2258         (sparc64nbsd_sigcontext_saved_regs): New prototype.
2259         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
2260         function with code split out from
2261         sparc64nbsd_sigcontext_frame_cache.
2262         (sparc64nbsd_sigcontext_frame_cache): Use
2263         sparc64nbsd_sigcontext_saved_regs.
2264         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
2265         OpenBSD.
2266         * sparc64obsd-tdep.c: New file.
2267         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
2268         (sparc64obsd-tdep.o): New dependency.
2269         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
2270         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
2271         * config/sparc/obsd64.mt: New file.
2272
2273         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
2274         read the instruction at PC.
2275
2276         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
2277         value of GDB_OSABI_DEFAULT.
2278         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
2279         instead of GDB_OSABI_NETBSD_AOUT.
2280
2281 2004-01-24  Nick Roberts  <nick@nick.uklinux.net>
2282
2283         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
2284         copyright.
2285
2286 2004-01-23  Andrew Cagney  <cagney@redhat.com>
2287
2288         * printcmd.c (display_command): Replace tui_set_display call with
2289         tui_set_layout_for_display_command.
2290         * tui/tui.h (enum tui_win_type): Define.
2291         (tui_set_layout): Delete declaration.
2292         (tui_set_layout_for_display_command): Rename set_tui_layout.
2293         * tui/tui-data.h (enum tui_layout_type): Define.
2294         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
2295         "tui.h".
2296         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
2297         (tui_default_win_height): Rename tuiDefaultWinHeight.
2298         (tui_default_win_viewport_height): Rename
2299         tuiDefaultWinViewportHeight.
2300         (tui_set_layout): RenametuiSetLayout.
2301         * tui/tui-layout.c: Update references.
2302         * tui/tui.c: Update references.
2303         * tui/tui-disasm.c: Update references.
2304
2305 2004-01-23  David Carlton  <carlton@kealia.com>
2306
2307         Partial workaround for PR c++/1511:
2308         * cp-namespace.c: Include frame.h.
2309         (cp_lookup_transparent_type): New
2310         (cp_lookup_transparent_type_loop): New.
2311         * cp-support.h: Declare cp_lookup_transparent_type.
2312         * symtab.c (basic_lookup_transparent_type): Renamed from
2313         lookup_transparent_type.
2314         (lookup_transparent_type): Replace old body by a call to
2315         current_language->la_lookup_transparent_type.
2316         * symtab.h: Update copyright.  Declare
2317         basic_lookup_transparent_type.
2318         * language.h: Update copyright.
2319         (struct language_defn): Add la_lookup_transparent_type.
2320         * language.c: Update copyright.
2321         (unknown_language_defn): Add basic_lookup_transparent_type.
2322         (auto_language_defn): Add basic_lookup_transparent_type.
2323         (local_language_defn): Add basic_lookup_transparent_type.
2324         * ada-lang.c: Update copyright.
2325         (ada_language_defn): Add basic_lookup_transparent_type.
2326         * c-lang.c: Update copyright.
2327         (c_language_defn): Add basic_lookup_transparent_type.
2328         (cplus_language_defn): Add basic_lookup_transparent_type.
2329         (asm_language_defn): Add basic_lookup_transparent_type.
2330         (minimal_language_defn): Add basic_lookup_transparent_type.
2331         * f-lang.c: Update copyright.
2332         (f_language_defn): Add basic_lookup_transparent_type.
2333         * jv-lang.c: Update copyright.
2334         (java_language_defn): Add basic_lookup_transparent_type.
2335         * m2-lang.c: Update copyright.
2336         (m2_language_defn): Add basic_lookup_transparent_type.
2337         * objc-lang.c: Update copyright.
2338         (objc_language_defn): Add basic_lookup_transparent_type.
2339         * p-lang.c: Update copyright.
2340         (p_language_defn): Add basic_lookup_transparent_type.
2341         * scm-lang.c: Update copyright.
2342         (scm_language_defn): Add basic_lookup_transparent_type.
2343         * Makefile.in (cp-namespace.o): Depend on frame.h.
2344
2345 2004-01-23  David Carlton  <carlton@kealia.com>
2346
2347         Patch for PR c++/1520:
2348         * dwarf2read.c (read_func_scope): Set processing_current_prefix
2349         properly if we have a specification die.
2350         (determine_prefix_aux): Rename from determine_prefix.
2351         (determine_prefix): Like the old determine_prefix, but never
2352         returns NULL.
2353
2354 2004-01-23  Theodore A. Roth  <troth@openavr.org>
2355
2356         * avr-tdep.c: Update copyright.
2357         (avr_iaddr_p): Delete unused function.
2358         (avr_saddr_p): Delete unused function.
2359
2360 2004-01-23  David Carlton  <carlton@kealia.com>
2361
2362         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
2363         Fix for PR symtab/1534.
2364
2365 2004-01-23  Mark Kettenis  <kettenis@gnu.org>
2366
2367         * NEWS (New native configurations): Mention OpenBSD/sparc and
2368         OpenBSD/sparc64.
2369         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
2370         * configure.host: Likewise.
2371         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
2372         handler for OpenBSD.
2373         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
2374
2375 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
2376
2377         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
2378         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
2379
2380         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
2381         * cli/cli-cmds.c (shell_escape): Likewise.
2382
2383         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
2384         OpenBSD .note.openbsd.ident sections.
2385
2386 2004-01-22  David Carlton  <carlton@kealia.com>
2387
2388         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
2389         get_scope_pc_bounds.
2390         (read_file_scope): Ditto.
2391         (get_scope_pc_bounds): New function, produced by extracting code
2392         from the above two functions, consolidating it, and adding support
2393         for DW_TAG_namespace.
2394
2395 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
2396
2397         * osabi.c (MAX_NOTESZ): New define.
2398         (check_note): New function.
2399         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
2400         check_note.
2401
2402 2004-01-21  Roland McGrath  <roland@redhat.com>
2403
2404         * MAINTAINERS (write after approval): Add myself.
2405
2406 2004-01-21  Eli Zaretskii  <eliz@gnu.org>
2407
2408         * utils.c (init_page_info): Move declarations of `rows' and
2409         `cols' before the __GO32__-specific code.  Move the closing brace
2410         outside the #ifdef __GO32__..#endif block.
2411         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
2412
2413 2004-01-21  Paul Brook  <paul@codesourcery.com>
2414
2415         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
2416         BPSTAT_WHAT_CHECK_SHLIBS.
2417
2418 2004-01-21  Paul Brook  <paul@codesourcery.com>
2419
2420         * MAINTAINERS: Add myself to write-after-approval.
2421
2422 2004-01-20  Andrew Cagney  <cagney@redhat.com>
2423
2424         * ax-gdb.c (print_axs_value): Delete unused function.
2425         * jv-lang.c (java_lookup_type): Delete unused function.
2426         * cli/cli-dump.c (dump_filetype): Delete unused function.
2427         * remote-mips.c (remote_mips_insert_hw_breakpoint)
2428         (remote_mips_remove_hw_breakpoint): Delete unused functions.
2429         (mips_getstring): Delete unused function.
2430         (pmon_insert_breakpoint): Delete #if0ed function.
2431         (PMON_MAX_BP): Delete #if0ed MACRO.
2432         (mips_pmon_bp_info): Delete #if0ed variable.
2433         (pmon_remove_breakpoint): Delete #if0ed function.
2434         * monitor.c (monitor_write_even_block): Delete unused function.
2435         (monitor_write_memory_block): Delete #if0ed code.
2436         * dink32-rom.c (dink32_load): Delete unused function.
2437         (_initialize_dink32_rom): Delete #if0ed code.
2438         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
2439
2440         * tui/tui-command.c: Update references.
2441         * tui/tui-io.c: Update references.
2442         * tui/tui-command.h: Update copyright.
2443         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
2444
2445         * source.c (ambiguous_line_spec): Delete never-defined function.
2446         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
2447         * gdbtypes.c (add_name, add_mangled_type): Ditto.
2448         * cli/cli-cmds.c (validate_comname): Ditto.
2449
2450         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
2451         "tui-data.h".
2452         (tui_set_disassem_content): Rename tuiSetDisassemContent.
2453         (tui_show_disassem): Rename tuiShowDisassem.
2454         (tui_show_disassem_and_update_source): Rename
2455         tuiVerticalDisassemScroll.
2456         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
2457         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
2458         * tui/tui.h: Update copyright.
2459         (enum tui_status): Define.
2460         * tui/tui-data.h (enum tui_scroll_direction): Define.
2461         * tui/tui-disasm.c: Update copyright.  Update references.
2462         * tui/tui-winsource.c:  Update copyright.  Update references.
2463         * tui/tui-win.c: Update references.
2464         * tui/tui-layout.c: Update references.
2465
2466 2004-01-20  Andrew Cagney  <cagney@redhat.com>
2467
2468         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
2469         sym2 to start of block.
2470
2471 2004-01-19  Michael Chastain  <mec.gnu@mindspring.com>
2472
2473         * MAINTAINERS: Delete mmalloc.
2474         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
2475         * NEWS: Mention removal of --with-malloc.
2476         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
2477         * config.in: Regenerate.
2478         * configure: Regenerate.
2479         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
2480         USE_MMALLOC, MMCHECK_FORCE.
2481         * gdbinit.in: Remove mmalloc.
2482         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
2483         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
2484         * config/i386/go32.mh: Likewise.
2485         * config/i386/interix.mh: Likewise.
2486         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
2487
2488 2004-01-19  Jeff Johnston  <jjohnstn@redhat.com>
2489
2490         * linespec.c (decode_variable, symtab_from_filename):  Call
2491         error_silent with error message instead of throwing an exception
2492         directly.
2493         * defs.h (error_silent, error_output_message): Add prototypes.
2494         (catch_exceptions_with_msg): Ditto.
2495         * utils.c (error_silent, error_output_message): New functions.
2496         * top.c (catch_exceptions_with_msg): New function.
2497
2498 2004-01-20  Nick Roberts  <nick@nick.uklinux.net>
2499
2500         * mi/mi-cmds.h (enum print_values): Add definition.
2501
2502         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
2503         type and value for simple data types and just the name and type
2504         for complex ones, if required.
2505
2506         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
2507         children, if required.
2508
2509 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
2510
2511         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
2512         unused declarations.
2513
2514 2004-01-19  Andrew Cagney  <cagney@redhat.com>
2515
2516         * top.h (mapped_symbol_files): Delete declaration.
2517         * main.c (captured_main): Delete option "m" and "mapped".
2518         * objfiles.c (mapped_symbol_files): Delete variable.
2519         * symfile.c (symbol_file_command): Delete mmap code.
2520         (symbol_file_add_with_addrs_or_offsets): Ditto.
2521         (add_symbol_file_command, reread_separate_symbols): Ditto.
2522         * objfiles.h (OBJF_MAPPED): Delete.
2523         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
2524         (free_objfile) [USE_MMALLOC]: Ditto.
2525         (open_existing_mapped_file): Delete function.
2526         (open_mapped_file): Delete function.
2527         (map_to_file): Delete function.
2528
2529 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
2530
2531         * infrun.c (step_into_function): Account for possible breakpoint
2532         adjustment when computing ``stop_func_start''.
2533
2534 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
2535
2536         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
2537         the region size against the size of a pointer, not the size of
2538         a register as given by DEPRECATED_REGISTER_SIZE.
2539
2540 2004-01-19  Andrew Cagney  <cagney@redhat.com>
2541
2542         * tui/tui-regs.h: Include "tui-data.h".
2543         (tuiFirstRegElementNoInLine): Delete declaration.
2544         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
2545         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
2546         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
2547         (tui_calculate_regs_column_count): Rename
2548         tuiCalculateRegsColumnCount.
2549         (tui_check_register_values): Rename tuiCheckRegisterValues.
2550         (tui_show_registers): Rename tuiShowRegisters.
2551         (tui_display_registers_from_line): Rename
2552         tuiDisplayRegistersFromLine.
2553         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
2554         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
2555         (tui_first_reg_element_no_inline): Rename
2556         tuiFirstRegElementNoInLine.
2557         * tui/tui-data.h: Update copyright.
2558         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
2559         * tui/tui-windata.c: Update copyright, update references.
2560         * tui/tui-regs.c: Update copyright, update references.
2561         * tui/tui-win.c: Update copyright, update references.
2562         * tui/tui-layout.c: Update copyright, update references.
2563
2564 2004-01-18  Andrew Cagney  <cagney@redhat.com>
2565
2566         * tui/tui-io.c: Update copyright.
2567         (key_is_end_sequence, key_is_backspace): New functions.
2568         (key_is_command_char, key_is_start_sequence): New function.
2569         (tui_getc): Update references.
2570         * tui/tui-io.h: Update copyright.
2571         (m_tuiStartNewLine): Delete macro.
2572         (m_isBackspace, m_isDeleteChar): Delete macros.
2573         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
2574         (m_isNextPage, m_isPrevPage): Delete macros.
2575         (m_isLeftArrow, m_isRightArrow): Delete macros.
2576         (m_isXdbStyleCommandChar): Delete macro.
2577         (key_is_start_sequence): Declare, replace m_isStartSequence.
2578         (key_is_end_sequence): Declare, replace m_isEndSequence.
2579         (key_is_backspace): Declare ,replace m_isBackspace.
2580         (key_is_command_char): Declare, replace m_isCommandChar.
2581         * tui/tui-command.c: Update copyright.
2582         (tuiDispatchCtrlChar): Update references.
2583
2584         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
2585         tuiSourceWin.h.
2586
2587         * tui/tui-command.c: Rename tui/tuiCommand.c.
2588         * tui/tui-command.h: Rename tui/tuiCommand.h.
2589         * tui/tui-data.c: Rename tui/tuiData.c.
2590         * tui/tui-data.h: Rename tui/tuiData.h.
2591         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
2592         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
2593         * tui/tui-io.c: Rename tui/tuiIO.c.
2594         * tui/tui-io.h: Rename tui/tuiIO.h.
2595         * tui/tui-layout.c: Rename tui/tuiLayout.c.
2596         * tui/tui-layout.h: Rename tui/tuiLayout.h.
2597         * tui/tui-regs.c: Rename tui/tuiRegs.c.
2598         * tui/tui-regs.h: Rename tui/tuiRegs.h.
2599         * tui/tui-source.c: Rename tui/tuiSource.c.
2600         * tui/tui-source.h: Rename tui/tuiSource.h.
2601         * tui/tui-stack.c: Rename tui/tuiStack.c.
2602         * tui/tui-stack.h: Rename tui/tuiStack.h.
2603         * tui/tui-win.c: Rename tui/tuiWin.c.
2604         * tui/tui-win.h: Rename tui/tuiWin.h.
2605         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
2606         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
2607         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
2608         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
2609         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
2610         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
2611         * tui/tui-file.c: Update includes.
2612         * tui/tui-hooks.c: Update includes.
2613         * tui/tui-interp.c: Update includes.
2614         * tui/tui.c: Update includes.
2615         * Makefile.in: Update all tui/ dependencies.
2616         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
2617
2618         * Makefile.in: Update copyright.  Update dependencies.
2619
2620         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
2621         problem.
2622
2623 2004-01-18  Andrew Cagney  <cagney@redhat.com>
2624
2625         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
2626         instead of register_gdbarch_init.
2627
2628         * remote-sds.c (tohex): Delete unused function.  Update copyright.
2629         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
2630         * v850-tdep.c (v850_register_virtual_size): Ditto.
2631         * target.c (normal_target_post_startup_inferior): Ditto.
2632         * source.c (ambiguous_line_spec): Ditto.
2633         * remote.c (adapt_remote_get_threadinfo): Ditto.
2634         * mi/mi-out.c (out_field_fmt): Ditto.
2635         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
2636         (output_control_change_notification): Ditto.
2637         * m68k-tdep.c (m68k_register_byte): Ditto.
2638         (m68k_remote_breakpoint_from_pc): Ditto.
2639         * ui-out.c (init_ui_out_state): Delete unused declaration.
2640         * stabsread.c (search_value): Ditto.
2641         * mi/mi-cmd-env.c (env_cli_command): Ditto.
2642         * maint.c (print_section_table): Ditto.
2643         * infrun.c (set_follow_fork_mode_command): Ditto.
2644
2645 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
2646
2647         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
2648         DW_CFA_def_cfa_exporession.  Add support for
2649         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
2650         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
2651
2652 2004-01-18  Andrew Cagney  <cagney@redhat.com>
2653
2654         * ocd.c: Update copyright.
2655         (bdm_read_register_command): Delete unused function.
2656         (_initialize_remote_ocd): Delete commented out reference.
2657         (get_quoted_char, reset_packet): Delete #if0ed function.
2658         (output_packet, put_quoted_char): Delete #if0ed function.
2659         (stu_put_packet, stu_get_packet): Delete #if0ed function.
2660         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
2661         (BDM_BREAKPOINT): Delete #if0ed macro.
2662         (remote_timeout): Delete #if0ed variable.
2663
2664 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
2665
2666         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
2667         (core-sol2.o): Remove dependency.
2668         * core-sol2.c: Remove file.
2669
2670 2004-01-17  Andrew Cagney  <cagney@redhat.com>
2671
2672         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
2673         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
2674         enums.
2675
2676 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
2677
2678         * remote.c: Update copyright years.
2679
2680 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
2681
2682         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
2683
2684 2004-01-17  Andrew Cagney  <cagney@redhat.com>
2685
2686         * mdebugread.c: Update copyright.
2687         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
2688         (parse_type, parse_procedure): Ditto.
2689         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
2690
2691         * cris-tdep.c (cris_store_struct_return): Put back accidently
2692         deleted function.
2693
2694         * gdbarch.sh: Update copyright year.
2695         * gdbarch.h, gdbarch.c: Re-generate.
2696
2697 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
2698
2699         Suggested by George Anzinger.
2700         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
2701         correct stack offset.  Include unknown opcode numbers in the error
2702         message.
2703
2704 2004-01-17  Andrew Cagney  <cagney@redhat.com>
2705
2706         * x86-64-tdep.c (x86_64_init_abi): No need to clear
2707         extract_struct_value_address, i386 does not set it.
2708         * sparc64-tdep.c (sparc64_init_abi): Do not set
2709         extract_struct_value_address, never called.
2710         (sparc64_extract_struct_value_address): Delete function.
2711         * m68hc11-tdep.c: Update copyright.
2712         (m68hc11_gdbarch_init): Delete redundant assignment of
2713         extract_struct_value_address.
2714         * i386-tdep.c: Update copyright.
2715         (i386_gdbarch_init): Do not set extract_struct_value_address,
2716         never called.
2717         (i386_extract_struct_value_address): Delete function.
2718         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
2719         extract_struct_value_address, never called.
2720         (sparc32_extract_struct_value_address): #if 0 function.  Add
2721         comments explaining its future.
2722
2723 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
2724
2725         * arm-tdep.c (arm_write_pc): New function.
2726         (arm_gdbarch_init): Call set_gdbarch_write_pc.
2727
2728 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
2729
2730         * breakpoint.c (must_shift_inst_regs): Delete.
2731         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
2732         and SHIFT_INST_REGS.
2733         * infcmd.c (step_1, step_1_continuation): Delete references to
2734         SHIFT_INST_REGS.
2735         * infrun.c (keep_going): Likewise.
2736         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
2737         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
2738
2739 2004-01-17  Andrew Cagney  <cagney@redhat.com>
2740
2741         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2742         * gdbarch.h, gdbarch.c: Re-generate.
2743         * infcmd.c (print_return_value): Delete reference to
2744         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2745
2746         * cris-tdep.c (cris_gdbarch_init): Do not set
2747         deprecated_extract_struct_value_address.
2748
2749         * xstormy16-tdep.c: Update copyright.
2750         (xstormy16_extract_struct_value_address): Update to current
2751         extract struct value address interface.
2752         (xstormy16_gdbarch_init): Set extract_struct_value_address.
2753         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
2754         current extract struct value address interface.
2755         (sh64_gdbarch_init): Set extract_struct_value_address.
2756
2757         * cris-tdep.c: Update copyright.
2758         (cris_extract_struct_value_address): Delete function.
2759         (struct_return_address): Delete variable.
2760         (cris_store_struct_return): Do not set struct_return_address.
2761
2762         * mcore-tdep.c: Update copyright.
2763         (mcore_extract_struct_value_address): Delete function.  Update
2764         comments.
2765         (mcore_gdbarch_init): Update.
2766         * mn10300-tdep.c: Update copyright.
2767         (mn10300_extract_struct_value_address): Delete function.
2768         (mn10300_gdbarch_init): Update.
2769         * v850-tdep.c: Update copyright.
2770         (v850_extract_struct_value_address): Delete.
2771         (v850_gdbarch_init): Update.
2772         * ns32k-tdep.c: Update copyright.
2773         (ns32k_extract_struct_value_address): Delete.
2774         (ns32k_gdbarch_init): Update.
2775         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
2776         (hppa_gdbarch_init): Update.
2777         * vax-tdep.c: Update copyright.
2778         (vax_extract_struct_value_address): Delete.
2779         (vax_gdbarch_init): Update.
2780
2781         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
2782         * gdbarch.h, gdbarch.c: Re-generate.
2783         * procfs.c (procfs_fetch_registers): Delete reference to
2784         DEPRECATED_NPC_REGNUM.
2785         (procfs_store_registers): Ditto.
2786         * regcache.c (generic_target_write_pc): Simplify.
2787         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
2788
2789         * core-sol2.c (fetch_core_registers): Replace
2790         DEPRECATED_NPC_REGNUM with equivalent tdep value.
2791
2792         * hppa-tdep.c: Update copyright year.
2793         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
2794         NPC_REGNUM.
2795         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
2796
2797         * mips-tdep.c (mips_write_pc): New function.
2798         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
2799         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
2800         (mips_find_saved_regs, mips_software_single_step: Ditto.
2801         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
2802         mips_init_extra_frame_info, mips_pop_frame): Ditto.
2803
2804 2004-01-17  Andrew Cagney  <cagney@redhat.com>
2805
2806         * mips-tdep.c: Re-indent.  Group functions by ABI.
2807
2808 2004-01-17  Andrew Cagney  <cagney@redhat.com>
2809
2810         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
2811         * gdbarch.c: Re-generate.
2812         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2813         DECR_PC_AFTER_BREAK to zero.
2814         * vax-tdep.c (vax_gdbarch_init): Ditto.
2815         * v850-tdep.c (v850_gdbarch_init): Ditto.
2816         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
2817         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2818         * sh-tdep.c (sh_gdbarch_init): Ditto.
2819         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2820         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2821         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2822         * mips-tdep.c (mips_gdbarch_init): Ditto.
2823         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2824         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2825         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2826         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2827         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2828         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2829         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2830         * frv-tdep.c (frv_gdbarch_init): Ditto.
2831         * cris-tdep.c (cris_gdbarch_init): Ditto.
2832         * avr-tdep.c (avr_gdbarch_init): Ditto.
2833         * arm-tdep.c (arm_gdbarch_init): Ditto.
2834         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
2835
2836 2004-01-17  J. Brobecker  <brobecker@gnat.com>
2837
2838         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
2839         Delete, no longer used.
2840         (read_subrange_type): New function, mostly extracted from
2841         read_array_type().
2842         (read_array_type): Replace extracted code by call to
2843         read_subrange_type().
2844         (dwarf2_get_attr_constant_value): New function.
2845         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
2846         (add_partial_symbol): Likewise.
2847         (process_die): Likewise.
2848         (new_symbol): Likewise.
2849         (read_type_die): Likewise.
2850
2851 2004-01-16  Andrew Cagney  <cagney@redhat.com>
2852
2853         * symfile.c: Update copyright year.
2854         (compare_symbols): Delete unused function.
2855         * stabsread.c: Update copyright year.
2856         (lrs_general_complaint): Delete unused function.
2857         (ref_search_value): Ditto.
2858         (get_substring): Delete declaration.
2859         * sh64-tdep.c: Update copyright year.
2860         (sh64_get_gdb_regnum): Delete unused function.
2861         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
2862         Delete unused function.
2863
2864 2004-01-17  Mark Kettenis  <kettenis@gnu.org>
2865
2866         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
2867         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
2868
2869 2004-01-16  Andrew Cagney  <cagney@redhat.com>
2870
2871         Changes from Peter Schauer.
2872         * rs6000-tdep.c: Update copyright year.
2873         (rs6000_push_dummy_call): Update the stack pointer before
2874         accessing the corresponding stack region.
2875         * rs6000-nat.c: Update copyright year.
2876         (set_host_arch): Set "info.abfd" to "exec_bfd".
2877
2878 2004-01-15  Mark Kettenis  <kettenis@gnu.org>
2879
2880         * blockframe.c: Update copyright year.
2881         (inside_entry_func): Don't treat a zero PC specially.
2882
2883 2004-01-14  Elena Zannoni  <ezannoni@redhat.com>
2884
2885         * gcore.c (gcore_copy_callback): Use paddr_d to print size
2886         variable.
2887         (gcore_create_callback): Ditto.  Skip any memory segment that has
2888         no permissions set.
2889
2890 2004-01-14  David Carlton  <carlton@kealia.com>
2891
2892         Change symbols for C++ nested types to contain the fully qualified
2893         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
2894         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
2895         c++/895.
2896         * c-exp.y (qualified_type): Handle types nested within classes.
2897         * cp-namespace.c: Update comments.
2898         (cp_set_block_scope): Delete #if 0.
2899         (cp_lookup_nested_type): Handle types nested within classes.
2900         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
2901         when appropriate.
2902         (add_partial_symbol): Add the name of the enclosing namespace to
2903         types.
2904         (pdi_needs_namespace): New.
2905         (add_partial_namespace): Tweak comment.
2906         (add_partial_structure): New.
2907         (psymtab_to_symtab_1): Initialize processing_current_prefix
2908         here...
2909         (process_die): instead of here.
2910         (read_structure_scope): Try to figure out the name of the class or
2911         namespace that the structure might be defined within.
2912         (read_enumeration): Generate fully-qualified names, if possible.
2913         (read_namespace): Don't set name to NULL.
2914         (die_specification): New.
2915         (new_symbol): Generate fully-qualified names for types.
2916         (read_type_die): Determine appropriate prefix.
2917         (determine_prefix): New.
2918         (typename_concat): New.
2919         (class_name): New.
2920         * valops.c (value_aggregate_elt): Pass NOSIDE to
2921         value_struct_elt_for_reference.
2922         (value_struct_elt_for_reference): Make static, add NOSIDE
2923         parameter, call value_maybe_namespace_elt as a last resort.
2924         (value_namespace_elt): Break out code into
2925         value_maybe_namespace_elt.
2926         (value_maybe_namespace_elt): New.
2927
2928 2004-01-12  Andrew Cagney  <cagney@redhat.com>
2929
2930         * mips-tdep.c (mips_convert_register_p): Handle both raw and
2931         cooked floating-point registers.
2932         (mips_gdbarch_init): Set convert_register_p, register_to_value,
2933         and value_to_register.
2934
2935 2004-01-13  Andrew Cagney  <cagney@redhat.com>
2936
2937         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
2938         * gdbarch.c: Re-generate.
2939         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2940         FUNCTION_START_OFFSET.
2941         * v850-tdep.c (v850_gdbarch_init): Ditto.
2942         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
2943         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2944         * sh-tdep.c (sh_gdbarch_init): Ditto.
2945         * s390-tdep.c (s390_gdbarch_init): Ditto.
2946         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2947         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2948         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2949         * mips-tdep.c (mips_gdbarch_init): Ditto.
2950         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2951         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2952         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2953         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2954         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2955         * i386-tdep.c (i386_gdbarch_init): Ditto.
2956         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2957         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2958         * frv-tdep.c (frv_gdbarch_init): Ditto.
2959         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2960         * cris-tdep.c (cris_gdbarch_init): Ditto.
2961         * avr-tdep.c (avr_gdbarch_init): Ditto.
2962         * arm-tdep.c (arm_gdbarch_init): Ditto.
2963         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2964
2965 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
2966
2967         * infrun.c (follow_fork_mode_ask): Remove.
2968         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
2969         (follow_fork): Simplify and remove internal error for
2970         follow_fork_mode_ask.
2971         (_initialize_infrun): Update "set follow-fork-mode" help text.
2972
2973 2004-01-13  Andrew Cagney  <cagney@redhat.com>
2974
2975         * configure.in: Update copyright year.
2976         (build_warnings): Add -Wunused-label.
2977         * configure: Re-generate.
2978
2979 2004-01-12  Andrew Cagney  <cagney@redhat.com>
2980
2981         * exec.h (exec_ops): Make "extern".
2982
2983         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
2984         the function is void.
2985         (mips_pseudo_register_write): Ditto.
2986
2987 2004-01-12  Andrew Cagney  <cagney@redhat.com>
2988
2989         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
2990         call.  Never defined.
2991         * sparc-tdep.h (struct frame_info): Add opaque declaration.
2992         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
2993         (struct sparc_gregset, struct regcache): Ditto.
2994         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
2995
2996 2004-01-12  Andrew Cagney  <cagney@redhat.com>
2997
2998         * mi/ChangeLog: Delete file.  Renamed to ...
2999         * mi/ChangeLog-1999-2003: New file.
3000         * tui/ChangeLog: Delete file.  Renamed to ...
3001         * tui/ChangeLog-1998-2003: New file.
3002
3003 2004-01-11  Mark Kettenis  <kettenis@gnu.org>
3004
3005         * sparc64nbsd-tdep.c: Include "regset.h".
3006         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
3007         Remove variables.
3008         (fetch_core_registers): Remove function.
3009         (sparc64nbsd_core_fns): Remove variable.
3010         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
3011         functions.
3012         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
3013         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
3014         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
3015
3016         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
3017         sparc_extract_struct_value_address.
3018         (sparc32_gdbarch_init): Set extract_struct_value_address.
3019         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
3020         function.
3021         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
3022         return_value_on_stack.
3023
3024         * NEWS: Mention that %cs and %ss have been added to the AMD64
3025         configurations
3026
3027         * frame.c: Update copyright year.
3028         (get_prev_frame): Improve comment.
3029
3030         * sparc64fbsd-tdep.c: Include "regset.h".
3031         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
3032         Remove variables.
3033         (fetch_core_registers): Remove function.
3034         (sparc64fbsd_core_fns): Remove variable.
3035         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
3036         functions.
3037         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
3038         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
3039         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
3040
3041         * sparcnbsd-tdep.c: Include "regset.h".
3042         (fetch_core_registers): Remove function.
3043         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
3044         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
3045         functions.
3046         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
3047         TDEP->fpregset.
3048         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
3049
3050         * sparc-tdep.h (struct regset): Provide opaque declaration.
3051         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
3052         fpregset and sizeof_fpregset members.
3053         * sparc-tdep.c (struct regset): Provide opaque declaration.
3054         (sparc_regset_from_core_section): New function.
3055         (sparc32_gdbarch_init): Initialize TDEP->gregset,
3056         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
3057         Set regset_from_core_section when appropriate.
3058
3059 2004-01-10  Mark Kettenis  <kettenis@gnu.org>
3060
3061         * x86-64-tdep.c (amd64_non_pod_p): New function.
3062         (amd64_classify_aggregate): Return class memory for non-POD
3063         C++ structure types.
3064
3065         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
3066         argument.  Use it to reserve a register if necessary.
3067         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
3068         amd64_push_arguments.
3069
3070         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
3071
3072         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
3073         register numbers in comments.
3074         * x86-64-tdep.h: Update copyright year.
3075         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
3076         Adjust for addition of %cs and %ss.
3077         * amd64fbsd-nat.c: Update copyright year.
3078         (reg_offset): Add register offsets for %cs and %ss.
3079         * amd64fbsd-tdep.c: Update copyright year.
3080         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
3081         (amd64fbsd_sc_reg_offset): Likewise.
3082         * x86-64-linux-nat.c: Update copyright year.
3083         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
3084         and %ss.
3085         * amd64nbsd-nat.c: Update copyright year.
3086         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
3087         * amd64nbsd-tdep.c: Update copyright year.
3088         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
3089         * x86-64-linux-tdep.c: Update copyright year.
3090         (user_to_gdb_regmap): Add mapping for %cs and %ss.
3091         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
3092         * regformats/reg-x86-64.dat: Add %cs and %ss.
3093
3094         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
3095         variables to prevent long lines.  Update comments to reflect
3096         reality.
3097
3098 2004-01-09  David Carlton  <carlton@kealia.com>
3099
3100         Checked in by Elena Zannoni  <ezannoni@redhat.com>.
3101         * dwarf2read.c (read_namespace): Pull out name-generating code
3102         into namespace_name. Rename previous_namespace to previous_prefix
3103         and processing_current_namespace to processing_current_prefix..
3104         (namespace_name): New function.
3105         (add_partial_symbol): Substitute uses of pdi->name with
3106         actual_name.
3107         * cp-support.h: Rename processing_current_namespace to
3108         processing_current_prefix.
3109         Update copyright year.
3110         * cp-namespace.c: Rename processing_current_namespace to
3111         processing_current_prefix.
3112         Update copyright year.
3113
3114 2004-01-09  Andrew Cagney  <cagney@redhat.com>
3115
3116         * jv-valprint.c, ser-unix.c: Add missing copyright years.
3117
3118 2004-01-09  Mark Kettenis  <kettenis@gnu.org>
3119
3120         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
3121         complaining.
3122         (process_one_symbol): Deal with N_PATCH stabs.
3123
3124 2004-01-09  Elena Zannoni  <ezannoni@redhat.com>
3125
3126         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
3127         ifdeffed code.
3128         Update copyright year.
3129
3130 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
3131
3132         * config/pa/tm-hppa.h: Update extern declarations for
3133         hppa32_hpux_frame_saved_pc_in_sigtramp,
3134         hppa32_hpux_frame_base_before_sigtramp, and
3135         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
3136
3137 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
3138
3139         * config/pa/tm-hppah.h: Update copyright years.
3140
3141 2004-01-08  Andrew Cagney  <cagney@redhat.com>
3142
3143         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
3144         (mips_o32_reg_struct_has_addr): Delete function.
3145         (mips_gdbarch_init): Update.
3146         (mips_extract_struct_value_address): Delete function.
3147
3148 2004-01-08  David Mosberger  <davidm@hpl.hp.com>
3149
3150         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
3151         reality.
3152
3153 2004-01-07  Andrew Cagney  <cagney@redhat.com>
3154
3155         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
3156         architecture's elf flags (when available).
3157
3158         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
3159         FPU to the start, check the MIPS FPU when looking for an old
3160         architecture.
3161         (set_mipsfpu_single_command): Update the architecture.
3162         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
3163
3164         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
3165         (mips_mask_address_p): Add "tdep" parameter.
3166         (show_mask_address, mips_addr_bits_remove): Update.
3167         (mips_dump_tdep): Update.
3168         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
3169         (MIPS_STACK_ARGSIZE): Delete macro.
3170         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
3171         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
3172         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
3173         (mips_dump_tdep): Update.
3174         (MIPS_SAVED_REGSIZE): Delete macro.
3175         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
3176         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
3177         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
3178         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
3179         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
3180         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
3181         (mips_pop_frame, return_value_location): Update.
3182         (mips_n32n64_return_value, mips_dump_tdep): Update.
3183
3184         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
3185         MIPS ABI.
3186
3187         * mips-tdep.c: Update copyright.
3188         (mips_gdbarch_init): Merge two code blocks handling the register
3189         name and number layout.
3190
3191 2004-01-02  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>
3192
3193         * tracepoint.c (validate_actionline): Fix segv at EOF
3194
3195 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
3196
3197         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
3198         properly for static fields.
3199
3200 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
3201             Jason Molenda  <jmolenda@apple.com>
3202
3203         * disasm.c: Update copyright to include 2004.
3204         (do_mixed_source_and_assembly): For uiout asm list
3205         and tuple cleanups, initialize to null_cleanup instead of
3206         NULL and do so prior to loop.  Only reset when we close off
3207         the tuple/list.  Move check for whether to close off the
3208         asm tuple/list to after dump_insns call where it will be run
3209         on each loop iteration.
3210
3211 2004-01-05  Andrew Cagney  <cagney@redhat.com>
3212
3213         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
3214         should be a switch case and not a label.
3215         * mips-tdep.c (mips32_next_pc): Delete unused labels
3216         "greater_equal_branch" and "less_zero_branch".
3217         * jv-valprint.c (java_print_value_fields): Delete unused label
3218         "flush_it".
3219
3220         * target.c (unpush_target): Only close a target that is in the
3221         target stack.
3222
3223 2004-01-05  Mark Kettenis  <kettenis@gnu.org>
3224
3225         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
3226         address from [sp + 64] instead of %o2.
3227
3228         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
3229         fixes PR backtrace/1476.
3230
3231 2004-01-05  Andrew Cagney  <cagney@redhat.com>
3232
3233         * libunwind-frame.h (struct frame_id): Add opaque declaration,
3234         move to start of file.
3235         * i386-tdep.h (struct regcache): Add opaque declaration.
3236         * config/ia64/nm-linux.h (struct target_ops): Add opaque
3237         declaration.
3238         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
3239         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
3240         * win32-nat.c (fake_create_process): Use ISO C style definition.
3241         * stabsread.c (define_symbol): Delete #ifndef
3242         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
3243         stabs_argument_has_addr call, macro never defined.
3244
3245 2004-01-04  Michael Chastain  <mec.gnu@mindspring.com>
3246
3247         * op50-rom.c: Delete.
3248         * w89k-rom.c: Delete.
3249         * Makefile.in: Remove references.
3250
3251 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
3252
3253         * x86-64-tdep.c: Update copyright year.
3254         (struct amd64_register_info): Rename from x86_64_register_info.
3255         (amd64_register_info): Rename from x86_64_register_info.
3256         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
3257         (amd64_register_name): Rename from x86_64_register_name.
3258         (amd64_register_type): Rename from x86_64_register_type.
3259         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
3260         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
3261         (amd64_dwarf_reg_to_regnum): Rename from
3262         x86_64_dwarf_reg_to_regnum.
3263         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
3264         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
3265         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
3266         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
3267         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
3268         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
3269         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
3270         (amd64_frame_cache): Rename from x86_64_frame_cache.
3271         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
3272         (amd64_frame_prev_register): Rename from
3273         x86_64_frame_prev_register.
3274         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
3275         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
3276         (amd64_sigtramp_frame_cache): Rename from
3277         x86_64_sigtramp_frame_cache.
3278         (amd64_sigtramp_frame_prev_register): Rename from
3279         x86_64_sigtramp_frame_prev_register.
3280         (amd64_sigtramp_frame_unwind): Rename from
3281         x86_64_sigtramp_frame_unwind.
3282         (amd64_sigtramp_frame_sniffer): Rename from
3283         x86_64_sigtramp_frame_sniffer.
3284         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
3285         (amd64_frame_base): Rename from x86_64_frame_base.
3286         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
3287         (amd64_frame_align): Rename from x86_64_frame_align.
3288         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
3289         (amd64_regset_from_core_section): Rename from
3290         x86_64_regset_from_core_section.
3291         (x86_64_init_abi): Update comments.
3292
3293 2004-01-04  Nick Roberts  <nick@nick.uklinux.net>
3294
3295         * MAINTAINERS (write after approval): Add myself.
3296
3297 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
3298
3299         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3300         `float' arguments.
3301
3302 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
3303
3304         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
3305         such that it mentions a specific version of GCC that exhibits this
3306         bug.
3307
3308 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
3309
3310         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
3311         structure that has a single `float' member, store it in %f1 in
3312         addition to %f0.
3313
3314         * sparc-sol2-nat.c: Add missing '\'.
3315
3316         * sparc-tdep.c (sparc32_return_value): New function.
3317          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
3318         Remove functions.
3319         (sparc32_gdbarch_init): Set return_value, don't set
3320         extract_return_value, store_return_value, use_struct_convention
3321         and return_value_on_stack.
3322
3323         * sparc-sol2-nat.c: Add missing ')'.
3324
3325 2004-01-03  J. Brobecker  <brobecker@gnat.com>
3326
3327         * infrun.c (handle_step_into_function): New function.
3328         (handle_inferior_event): Extract out some code into the new
3329         function above.
3330
3331 2004-01-03  J. Brobecker  <brobecker@gnat.com>
3332
3333         * infrun.c (handle_inferior_event): Move the declaration of
3334         real_stop_pc inside the if blocks where it is used.
3335
3336 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
3337
3338         * sparc64-tdep.c (sparc64_16_byte_align_p)
3339         (sparc64_store_floating_fields, sparc64_store_floating_fields):
3340         Use check_typedef to get subtypes of structures and unions.
3341         (sparc64_store_return_value): Fix calculation of the appropriate
3342         offset into VALBUF when storing a structure or union.
3343         (sparc64_return_value): New function.
3344         (sparc64_use_struct_convention): Remove function.
3345         (sparc64_init_abi): Set return_value, don't set
3346         extract_return_value, store_return_value and
3347         use_struct_convention.
3348
3349 2004-01-03  Eli Zaretskii  <eliz@elta.co.il>
3350
3351         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
3352         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
3353         gdb/config/alpha/xm-alphaosf.h,
3354         gdb/config/powerpc/tm-ppcle-eabi.h,
3355         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
3356         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
3357         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
3358         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
3359         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
3360         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
3361         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
3362         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
3363         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
3364         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
3365         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
3366         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
3367         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
3368         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
3369         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
3370         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
3371         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
3372         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
3373         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
3374         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
3375         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
3376         Remove lines for .cvsignore files.
3377
3378 2004-01-03  J. Brobecker  <brobecker@gnat.com>
3379
3380         * infrun.c: Back out the previous change.
3381
3382 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
3383
3384         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
3385         sparc-*-sunos4* to the list of REMOVED configurations.
3386
3387         * configure.tgt: Add back sparc-*-vxworks*.
3388         * remote-vxsparc.c: Remove all includes except for "defs.h",
3389         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
3390         Include "sparc-tdep.h".
3391         (SPARC_R_G1): New define.
3392         (vxsparc_gregset): New variable.
3393         (ext_format_sparc): Remove extern declaration.
3394         (vx_read_register): Rewrite to use sparc32_supply_gregset and
3395         sparc32_supply_fpregset.
3396         (vx_write_register): Rewrite to use sparc32_collect_gregset,
3397         sparc_collect_rwindow and sparc32_collect_fpregset.
3398         * config/sparc/tm-vxworks.h: New file, based on recently removed
3399         tm-vxsparc.h.
3400         * config/sparc/vxworks.mt: New file, based on recently removed
3401         vxworks.mt.
3402
3403 2004-01-03  J. Brobecker  <brobecker@gnat.com>
3404
3405         * infrun.c (handle_step_into_function): New function.
3406         (handle_inferior_event): Extract out some code into the new
3407         function above.
3408
3409 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
3410
3411         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
3412         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
3413         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
3414         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
3415         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
3416         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
3417         (sparc_nat_h): New variable.
3418         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
3419         (tm-sun4os4.h): Remove dependency.
3420         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
3421         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
3422         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
3423         sparc-tdep.o): Update dependencies.
3424         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
3425         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
3426         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
3427         dependencies.
3428         * configure.host: Remove existing sparc-*-lynxos*,
3429         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
3430         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
3431         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
3432         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
3433         triplets.
3434         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
3435         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
3436         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
3437         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
3438         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
3439         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
3440         sparc64-*-solaris2* and sparc64-*-* triplets.
3441         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
3442         "symtab.h" and "objfiles.h".
3443         (BIAS): Remove define.
3444         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
3445         (X_DISP19): Remove macros.
3446         (sparc_fetch_instruction): Remove function.
3447         (struct gdbarch_tdep): Remove definition.
3448         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
3449         (sparc_breakpoint_from_pc): Remove function.
3450         (struct sparc64_frame_cache): Remove definition.
3451         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
3452         sparc64_unwind_pc): Remove functions.
3453         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
3454         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
3455         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
3456         (sparc64_frame_cache): Change return type to `struct
3457         sparc_frame_cache *'.  Simply call sparc_frame_cache.
3458         (sparc64_frame_this_id, sparc64_frame_prev_register,
3459         sparc64_frame_base_address): Use `struct sparc_frame_cache'
3460         instead of `struct sparc64_frame_cache.
3461         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
3462         sparc_analyze_control_transfer, sparc_software_single_step,
3463         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
3464         _initialize_sparc64_tdep): Remove functions.
3465         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
3466         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
3467         macros.
3468         (sparc64_supply_gregset, sparc64_collect_gregset,
3469         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
3470         (sparc64_init_abi): New function.
3471         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
3472         inclusion guard.  Include "sparc-tdep.h".
3473         (BIAS): Define.
3474         (r_tstate_offset, r_fprs_offset): New defines.
3475         (enum sparc_regnum): Remove defenition.
3476         (enum sparc64_regnum): Reformat.
3477         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
3478         (sparc64_init_abi, sparc64_supply_gregset,
3479         sparc64_collect_gregset, sparc64_supply_fpregset,
3480         sparc64_collect_fpregset): New prototypes.
3481         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
3482         Add extern declarations.
3483         (sparc64_sol2_init_abi): New prototype.
3484         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
3485         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
3486         prototypes.
3487         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
3488         "sparnbsd-nat.h".
3489         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
3490         functions.
3491         (_initialize_sparc64fbsd_nat): Remove initialization of
3492         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
3493         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
3494         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
3495         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
3496         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
3497         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
3498         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
3499         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
3500         (sparc64fbsd_r_y_offset): Remove variables.
3501         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
3502         Make static and const.
3503         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
3504         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
3505         functions.
3506         (sparc64fbsd_gregset): New variable.
3507         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
3508         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
3509         and sparc64_supply_fpregset.
3510         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
3511         (sparc64fbsd_sigtramp_frame_this_id)
3512         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
3513         (sparc64fbsd_sigtramp_frame_unwind): New variable.
3514         (sparc64fbsd_sigtramp_frame_sniffer): New function.
3515         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
3516         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
3517         * sparcnbsd-tdep.c: Update copyright year.  Include
3518         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
3519         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
3520         "value.h" and "sparcnbsd-tdep.h".
3521         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
3522         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
3523         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
3524         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
3525         defines.
3526         (sparcnbsd_gregset): New variable.
3527         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
3528         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
3529         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
3530         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
3531         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
3532         variables.
3533         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
3534         (sparc32nbsd_sigcontext_frame_this_id)
3535         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
3536         (sparc32nbsd_sigcontext_frame_unwind): New variable.
3537         (sparc32nbsd_sigtramp_frame_sniffer): New function.
3538         (sparcnbsd_get_longjmp_target_32,
3539         sparcnbsd_get_longjmp_target_64): Remove functions.
3540         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
3541         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
3542         sparcnbsd_init_elf): Remove.
3543         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
3544         (sparcnbsd_elf_init_abi): New functions.
3545         (_initialize_sparcnbsd_tdep): New prototype.
3546         (_initialize_sparnbsd_tdep): Update.
3547         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
3548         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
3549         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
3550         * config/sparc/linux.mh: Update comment.
3551         (XM_FILE, HOST_IPC): Remove variables.
3552         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
3553         sparc-linux-nat.o.
3554         * config/sparc/linux.mt: Update comment.
3555         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
3556         * config/sparc/nbsd.mt: Reformat.
3557         * config/sparc/nbsd64.mh: Update comment.
3558         (NATDEPFILES): Add sparc-nat.o.
3559         * config/sparc/nbsd64.mt: Update comment.
3560         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
3561         (TM_FILE): Set to tm-nbsd.h.
3562         * config/sparc/nbsdelf.mh: Update comment.
3563         (NATDEPFILES): Add sparc-nat.o.
3564         (XM_FILE): Delete.
3565         * config/sparc/nbsdaout.mh: Update comment.
3566         (NATDEPFILES): Add sparc-nat.o
3567         (XM_FILE): Delete.
3568         * config/sparc/nm-linux.h: Update copyright year.  Don't include
3569         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
3570         inclusion.
3571         (KERNEL_U_SIZE): Remove define.
3572         (kernel_u_size): Remove prototype.
3573         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
3574         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
3575         "regcache.h".
3576         (CHILD_PREPARE_TO_STORE): Remove define.
3577         * config/sparc/nm-nbsdaout.h: Tweak some comments.
3578         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
3579         sparcnbsd-nat.c: Rewrite files.
3580         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
3581         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
3582         sparcnbsd-tdep.h: Remove files.
3583         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
3584         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
3585         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
3586         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
3587         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
3588         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
3589         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
3590         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
3591         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
3592         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
3593         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
3594         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
3595         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
3596         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
3597         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
3598         * config/sparc/linux64.mh, config/sparc/linux64.mt,
3599         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
3600         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
3601         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
3602
3603 2004-01-02  Andrew Cagney  <cagney@redhat.com>
3604
3605         From 2003-12-18 Kazuhiro Inaoka:
3606         * configure.host: Add m32r-linux target.
3607
3608 2004-01-02  Michael Chastain  <mec.gnu@mindspring.com>
3609
3610         * top.c (print_gdb_version): Update year to 2004.
3611
3612 2004-01-02  Mark Mitchell  <mark@codesourcery.com>
3613
3614         * MAINTAINERS: Add myself to the write-after-approval category.
3615
3616 2004-01-02  Daniel Jacobowitz  <drow@mvista.com>
3617
3618         From Bernardo Innocenti <bernie@develer.com>:
3619         * configure.tgt: Add uClinux target.
3620
3621 2004-01-02  Andrew Cagney  <cagney@redhat.com>
3622
3623         * utils.c (do_my_cleanups): Make static, add forward declaration.
3624         * defs.h (do_my_cleanups): Delete declaration.
3625
3626 2004-01-02  Eli Zaretskii  <eliz@elta.co.il>
3627
3628         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
3629         bfd/ChangeLog-0203.
3630
3631 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
3632
3633         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
3634         in <machine/reg.h>.
3635         * configure, config.in: Regenerate.
3636
3637 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
3638 tui/ChangeLog-1998-2003.
3639 \f
3640 Local Variables:
3641 mode: change-log
3642 left-margin: 8
3643 fill-column: 74
3644 version-control: never
3645 End: