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