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