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