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