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