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