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