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