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