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