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