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