]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
9039dfc1af3c07696ca7ac08519dd66809dc44fd
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2004-08-01 Andrew Cagney <cagney@gnu.org>
2
3 * frame.h (deprecated_pop_dummy_frame)
4 (deprecated_read_register_dummy)
5 (deprecated_generic_find_dummy_frame): Delete.
6 * dummy-frame.c (deprecated_generic_find_dummy_frame)
7 (deprecated_read_register_dummy)
8 (deprecated_find_dummy_frame_regcache)
9 (discard_innermost_dummy)
10 (deprecated_pop_dummy_frame): Delete.
11 (dummy_frame_this_id): Simplify.
12 (struct dummy_frame): Delete "fp" and "sp".
13 (find_dummy_frame): Simplify.
14 (generic_push_dummy_frame): Do not set "fp" or "sp".
15 (fprint_dummy_frames): Do not print "fp" and "sp"
16
17 2004-08-01 Mark Kettenis <kettenis@gnu.org>
18
19 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
20 (struct i386_insn): New structure.
21 (i386_match_insn): New function.
22 (i386_frame_setup_skip_insns): New variable.
23 (i386_analyze_frame_setup): Change to use i386_match_insn and the
24 array i386_frame_setup_insns of instructions that should be
25 skipped inside the frame setup sequence.
26
27 2004-08-01 Andrew Cagney <cagney@gnu.org>
28
29 * frame.h (deprecated_frame_xmalloc_with_cleanup)
30 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
31 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
32 * stack.c (frame_info): Delete references to
33 DEPRECATED_FRAME_INIT_SAVED_REGS and
34 deprecated_get_frame_saved_regs.
35 * frame.c (struct frame_info): Delete saved_regs and extra_info.
36 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
37 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
38 (frame_unwind_register_signed)
39 (frame_unwind_register_unsigned)
40 (frame_unwind_unsigned_register): Use register_size.
41 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
42 (deprecated_frame_xmalloc_with_cleanup)
43 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
44 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
45
46 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
47 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
48 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
49 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
50
51 * infcall.c (call_function_by_hand): Do not use
52 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
53 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
54 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
55 DEPRECATED_STACK_ALIGN.
56
57 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
58
59 Committed by Andrew Cagney.
60 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
61
62 2004-08-01 Andrew Cagney <cagney@gnu.org>
63
64 * mips-tdep.c (mips16_frame_cache)
65 (mips16_frame_this_id, mips16_frame_prev_register)
66 (mips16_frame_unwind, mips16_frame_sniffer)
67 (mips16_frame_base_address, mips16_frame_base)
68 (mips16_frame_base_sniffer, mips32_frame_cache)
69 (mips32_frame_this_id, mips32_frame_prev_register)
70 (mips32_frame_unwind, mips32_frame_sniffer)
71 (mips32_frame_base_address, mips32_frame_base)
72 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
73 separate heuristic mips16 and mips32 unwinders.
74 (mips_stub_frame_cache, mips_stub_frame_this_id)
75 (mips_stub_frame_prev_register)
76 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
77 (mips_stub_frame_base_address, mips_stub_frame_base)
78 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
79 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
80 match true mdebug frames.
81 (non_heuristic_proc_desc): Add forward declaration.
82
83 2004-08-01 Andrew Cagney <cagney@gnu.org>
84
85 * config/mips/tm-irix6.h: Delete file.
86 * config/mips/tm-irix5.h: Delete file.
87 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
88 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
89
90 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
91 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
92 * config/nm-gnu.h (NO_CORE_OPS): Delete.
93 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
94 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
95 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
96 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
97 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
98 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
99 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
100 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
101 (TARGET_SIGNAL_RAW_VALUES): Delete.
102 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
103 Delete.
104 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
105 (TARGET_HW_WATCH_LIMIT): Delete.
106 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
107 * minimon.h: Delete file.
108
109 * trad-frame.c (trad_frame_get_this_base)
110 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
111 functions.
112 * trad-frame.h (trad_frame_set_this_base)
113 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
114
115 2004-07-31 Andrew Cagney <cagney@gnu.org>
116
117 * trad-frame.c (trad_frame_get_prev_register): Rename
118 trad_frame_get_prev_register.
119 * vax-tdep.c (vax_frame_prev_register): Update.
120 * trad-frame.h: Update.
121 * trad-frame.c (trad_frame_get_register): Update.
122 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
123 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
124 Update.
125 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
126 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
127 Update.
128 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
129 Update.
130 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
131 Update.
132 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
133 Update.
134 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
135 Update.
136 * s390-tdep.c (s390_frame_prev_register)
137 (s390_stub_frame_prev_register)
138 (s390_sigtramp_frame_prev_register): Update.
139 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
140 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
141 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
142 * m88k-tdep.c (m88k_frame_prev_register)
143 * m68hc11-tdep.c (m68hc11_frame_prev_register)
144 * m32r-tdep.c (m32r_frame_prev_register): Update.
145 * hppa-tdep.c (hppa_frame_prev_register_helper)
146 * frv-tdep.c (frv_frame_prev_register): Update.
147 * d10v-tdep.c (d10v_frame_prev_register): Update.
148 * cris-tdep.c (cris_frame_prev_register): Update.
149 * avr-tdep.c (avr_frame_prev_register): Update.
150 * arm-tdep.c (arm_prologue_prev_register)
151 (arm_sigtramp_prev_register): Update.
152
153 2004-07-31 Andrew Cagney <cagney@gnu.org>
154
155 * frame.h (legacy_saved_regs_unwind)
156 (legacy_frame_chain_valid, legacy_frame_p)
157 (enum frame_type): Delete UNKNOWN_FRAME.
158 * dummy-frame.c (dummy_frame_this_id): Simplify.
159 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
160 * frame.c (struct frame_info): Delete the field "type".
161 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
162 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
163 (legacy_saved_regs_unwind, legacy_frame_p)
164 (frame_type_from_pc): Delete.
165 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
166 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
167
168 2004-07-31 Mark Kettenis <kettenis@gnu.org>
169
170 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
171 indentation.
172
173 * mips-nat.c: Remove file.
174 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
175 (mips-nat.o): Remove dependency.
176
177 * infptrace.c: Update copyright year.
178 (fetch_register): Pass NULL in regcache_raw_supply call instead of
179 explicitly setting the buffer to all zeroes.
180
181 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
182 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
183
184 2004-07-30 Andrew Cagney <cagney@gnu.org>
185
186 * GDB 6.2 released from gdb_6_2-branch.
187
188 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
189
190 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
191
192 * exec.c (exec_file_attach):
193 * nto-tdep.c (nto_find_and_open_solib):
194 * pa64solib.c (pa64_solib_sizeof_symbol_table):
195 * solib.c (solib_open):
196 * somsolib.c (som_solib_sizeof_symbol_table):
197 * source.c (is_regular_file, openp, open_source_file):
198 * symfile.c (symfile_bfd_open):
199 * wince.c (upload_to_device): Differentiate between the search for
200 binary and source files.
201
202 2004-07-30 Andrew Cagney <cagney@gnu.org>
203
204 * complaints.c (_initialize_complaints): Pass NULL to
205 add_setshow_zinteger_cmd for help_doc.
206 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
207
208 2004-07-30 Andrew Cagney <cagney@gnu.org>
209
210 Fix PR i18n/761.
211 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
212 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
213 $(PACKAGE).pot and update-po.
214 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
215 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
216 (update-po): New rules.
217 (localedir): Define using autoconf.
218 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
219 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
220 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
221 * configure.in: Generate CATALOGS and LINGUAS from contents of
222 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
223 * configure: Re-generate.
224 * po/gdbtext: New file
225
226 2004-07-30 Jerome Guitton <guitton@gnat.com>
227
228 * MAINTAINERS: Reorder Write After Approval list in alphabetical
229 order.
230
231 2004-07-30 David Lecomber <dsl@sources.redhat.com>
232
233 * dwarf2read.c (read_file_scope): Set producer if attribute
234 present.
235 (struct dwarf2_cu): Added new member producer.
236
237 2004-07-30 Jerome Guitton <guitton@gnat.com>
238
239 * inflow.c (kill_command): release file handles in BFD.
240 * exec.c (exec_file_attach): Ditto.
241 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
242
243 2004-07-29 Andrew Cagney <cagney@gnu.org>
244
245 * PROBLEMS (mips-irix): Note that it is broken.
246
247 2004-07-29 Andrew Cagney <cagney@gnu.org>
248
249 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
250 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
251
252 * config/xm-nbsd.h: Delete file.
253 * config/arm/xm-nbsd.h: Delete file.
254 * config/i386/xm-nbsd.h: Delete file.
255 * config/ns32k/xm-nbsd.h: Delete file.
256 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
257 * config/i386/nbsdelf.mh (XM_FILE): Delete.
258 * config/i386/nbsdaout.mh (XM_FILE): Delete.
259 * config/arm/nbsdelf.mh (XM_FILE): Delete.
260 * config/arm/nbsdaout.mh (XM_FILE): Delete.
261
262 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
263 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
264 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
265 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
266 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
267 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
268
269 * config/powerpc/xm-linux.h: Delete empty file.
270 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
271 * config/powerpc/linux.mh (XM_FILE): Delete.
272 * config/m68k/xm-linux.h: Delete empty file.
273 * config/m68k/linux.mh (XM_FILE): Delete.
274 * config/ia64/xm-linux.h: Delete empty file.
275 * config/ia64/linux.mh (XM_FILE): Delete.
276 * config/arm/xm-linux.h: Delete empty file.
277 * config/arm/linux.mh (XM_FILE): Delete.
278
279 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
280 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
281 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
282 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
283 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
284 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
285 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
286 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
287
288 * config/m68k/xm-m68k.h: Delete file.
289 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
290 copyright.
291 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
292 * config/pa/xm-linux.h: Delete empty file.
293 * config/pa/linux.mh (XM_FILE): Delete.
294 * config/i386/xm-i386.h: Delete empty file.
295 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
296 "i386/xm-i386.h".
297 * config/i386/obsdaout.mh (XM_FILE): Delete.
298 * config/i386/obsd64.mh (XM_FILE): Delete.
299 * config/i386/fbsd64.mh (XM_FILE): Delete.
300 * config/i386/nto.mh (XM_FILE): Delete.
301 * config/i386/obsd.mh (XM_FILE): Delete.
302 * config/i386/linux64.mh (XM_FILE): Delete.
303 * config/i386/linux.mh (XM_FILE): Delete.
304 * config/i386/i386sol2.mh (XM_FILE): Delete.
305 * config/i386/i386gnu.mh (XM_FILE): Delete.
306 * config/i386/fbsd.mh (XM_FILE): Delete.
307 * config/i386/nbsd64.mh (XM_FILE): Delete.
308
309 2004-07-29 Andrew Cagney <cagney@gnu.org>
310
311 * config/pa/xm-linux.h: Do not include "floatformat.h".
312 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
313 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
314 * config/i386/xm-i386.h: Do not include "floatformat.h".
315 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
316 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
317 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
318 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
319 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
320 GDB_HOST_LONG_DOUBLE_FORMAT instead.
321 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
322 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
323 * configure, config.in: Regenerate.
324 * configure.host (gdb_host_float_format, gdb_host_double_format)
325 (gdb_host_long_double_format): Set according to the host.
326
327 2004-07-29 Andrew Cagney <cagney@gnu.org>
328
329 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
330
331 2004-07-28 Andrew Cagney <cagney@gnu.org>
332
333 * PROBLEMS: Mention threads/1650.
334 * NEWS: Mention the NPTL fix.
335
336 2004-07-28 Andrew Cagney <cagney@gnu.org>
337
338 * cli/cli-decode.c (add_setshow_cmd): Delete function.
339 (add_setshow_cmd_full): Make static.
340 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
341 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
342 * cli/cli-decode.c (add_setshow_filename_cmd)
343 (add_setshow_string_cmd): New functions.
344 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
345 * mips-tdep.c (_initialize_mips_tdep): Update.
346 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
347 * cli/cli-logging.c (_initialize_cli_logging): Update.
348 * complaints.c (_initialize_complaints): Update.
349 * remote.c (_initialize_remote): Update.
350
351 2004-07-28 Andrew Cagney <cagney@gnu.org>
352
353 * cli/cli-decode.c (add_setshow_zinteger_cmd)
354 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
355 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
356 print parameters. Make string parameters constant.
357 * command.h: Update. Update copyright.
358 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
359 * observer.c (_initialize_observer): Ditto.
360 * frame.c (_initialize_frame): Ditto.
361 * complaints.c (_initialize_complaints): Ditto.
362 * maint.c (_initialize_maint_cmds): Ditto.
363 * target.c (initialize_targets): Ditto.
364 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
365 * infcall.c (_initialize_infcall): Ditto.
366 * arm-tdep.c (_initialize_arm_tdep): Ditto.
367 * m32r-rom.c (_initialize_m32r_rom): Ditto.
368 * remote-rdi.c (_initialize_remote_rdi): Ditto.
369 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
370 * mips-tdep.c (_initialize_mips_tdep): Ditto.
371
372 2004-07-28 Andrew Cagney <cagney@gnu.org>
373
374 * gdbtypes.c (lookup_primitive_typename): Delete function.
375 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
376 * ada-lex.l: Use language_lookup_primitive_type_by_name.
377 * gdbtypes.c (lookup_typename): Ditto.
378 * f-exp.y (yylex): Ditto.
379 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
380
381 * scm-lang.c (c_builtin_types): Delete extern declaration.
382 (scm_language_defn): Replace
383 string_char_type and primitive_type_vector with
384 la_language_arch_info.
385 * jv-lang.c (java_language_defn): Replace
386 string_char_type and primitive_type_vector with
387 la_language_arch_info.
388 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
389 c_builtin_types in comment.
390 * c-lang.h (struct language_arch_info): Declare opaque.
391 (c_language_arch_info): Declare.
392 (c_builtin_types): Delete declaration.
393 * c-lang.c (c_language_arch_info): Set string_char_type to
394 builtin_char, not builtin_true_char. Make global.
395 (c_builtin_types): Delete array.
396 (asm_language_defn, minimal_language_defn): Replace
397 string_char_type and primitive_type_vector with
398 la_language_arch_info.
399
400 2004-07-28 Andrew Cagney <cagney@gnu.org>
401
402 * gdbtypes.h (struct builtin_type): Rename true_char to
403 builtin_true_char.
404 * gdbtypes.c (gdbtypes_post_init): Update.
405 * c-lang.c (arch_info): New function.
406 (enum c_primitive_types): New enum.
407 (c_language_defn): Instead of string_char_type and
408 primitive_type_vector set la_language_arch_info.
409
410 2004-07-28 Andrew Cagney <cagney@gnu.org>
411
412 * language.h (struct language_arch_info): Fix typo
413 s/primative/primitive/.
414 * gdbtypes.c (lookup_primitive_typename): Ditto.
415 * language.c (language_lookup_primitive_type_by_name)
416 (unknown_language_arch_info): Ditto.
417
418 2004-07-27 Andrew Cagney <cagney@gnu.org>
419
420 * defs.h (enum language): Add nr_languages.
421 * language.h (struct language_arch_info): Define.
422 (struct language_defn): Add la_language_arch_info.
423 (language_lookup_primative_type_by_name): Declare.
424 (language_string_char_type): Declare.
425 * language.c (_initialize_language, language_gdbarch_post_init)
426 (struct language_gdbarch, language_gdbarch_data): Implement
427 per-architecture language information.
428 (unknown_language_arch_info, language_string_char_type)
429 (language_lookup_primative_type_by_name): New functions.
430 (unknown_language_defn, auto_language_defn)
431 (local_language_defn): Set la_language_arch_info to
432 unknown_language_arch_info.
433 (unknown_builtin_types): Delete.
434 * gdbtypes.c (lookup_primitive_typename): Use
435 language_lookup_primative_type_by_name.
436 (create_string_type): Use language_string_char_type.
437 * values.c (value_from_string): Use language_string_char_type.
438 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
439 * p-lang.c (pascal_language_defn): Ditto.
440 * m2-lang.c (m2_language_defn): Ditto.
441 * jv-lang.c (java_language_defn): Ditto.
442 * objc-lang.c (objc_language_defn): Ditto.
443 * f-lang.c (f_language_defn): Ditto.
444 * c-lang.c (c_language_defn, cplus_language_defn)
445 (asm_language_defn, minimal_language_defn): Ditto.
446
447 2004-07-27 Andrew Cagney <cagney@gnu.org>
448
449 * gdbtypes.h (struct builtin_type): Declare.
450 (builtin_type): Declare.
451 * d10v-tdep.c (d10v_register_type): Use builtin_type.
452 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
453 (gdbtypes_post_init): New function.
454 (builtin_type): New function.
455
456 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
457
458 * remote-m32r-sdi.c: Fix breakpoint bug.
459 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
460 recv_char_data, recv_long_data): New functions to replace communication
461 sequences.
462
463 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
464
465 Document PR threads/1650.
466 * PROBLEMS (Threads): Document problem with many threads
467
468 2004-07-26 Andrew Cagney <cagney@gnu.org>
469
470 * gdb-mi.el: Move from here ...
471 * mi/gdb-mi.el: ... to here.
472
473 2004-07-26 Andrew Cagney <cagney@gnu.org>
474
475 Problem reported by Ashley Pittman <ashley@quadrics.com>.
476 * main.c (captured_main): When in batch mode always detach.
477
478 2004-07-26 Andrew Cagney <cagney@gnu.org>
479
480 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
481 and h8300 as broken.
482 * NEWS: END-OF-LIFE frame compatibility module.
483 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
484 specific comments.
485
486 2004-07-26 Andrew Cagney <cagney@gnu.org>
487
488 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
489 * xcoffsolib.c (_initialize_xcoffsolib): Update.
490 * wince.c (_initialize_wince): Update.
491 * win32-nat.c (_initialize_win32_nat): Update.
492 * varobj.c (_initialize_varobj): Update.
493 * valops.c (_initialize_valops): Update.
494 * utils.c (initialize_utils, initialize_utils): Update.
495 * tui/tui-win.c (_initialize_tui_win): Update.
496 * top.c (init_main): Update.
497 * symfile.c (_initialize_symfile): Update.
498 * source.c (_initialize_source): Update.
499 * somsolib.c (_initialize_som_solib): Update.
500 * solib.c (_initialize_solib): Update.
501 * solib-frv.c (_initialize_frv_solib): Update.
502 * serial.c (_initialize_serial): Update.
503 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
504 * remote.c (_initialize_remote, _initialize_remote): Update.
505 * remote-vx.c (_initialize_vx): Update.
506 * remote-utils.c (_initialize_sr_support): Update.
507 * remote-sds.c (_initialize_remote_sds): Update.
508 * remote-mips.c (_initialize_remote_mips): Update.
509 * remote-e7000.c (_initialize_remote_e7000): Update.
510 * proc-api.c (_initialize_proc_api): Update.
511 * printcmd.c: Update.
512 * parse.c (_initialize_parse): Update.
513 * pa64solib.c (_initialize_pa64_solib): Update.
514 * p-valprint.c (_initialize_pascal_valprint): Update.
515 * monitor.c (_initialize_remote_monitors): Update.
516 * mips-tdep.c (_initialize_mips_tdep): Update.
517 * mcore-tdep.c (_initialize_mcore_tdep): Update.
518 * maint.c (_initialize_maint_cmds): Update.
519 * lin-lwp.c (_initialize_lin_lwp): Update.
520 * language.c (_initialize_language): Update.
521 * kod.c (_initialize_kod): Update.
522 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
523 * i386-tdep.c (_initialize_i386_tdep): Update.
524 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
525 * gdbarch.sh: Update.
526 * gdbarch.c: Re-generate.
527 * gdb-events.sh: Update.
528 * gdb-events.c: Re-generate.
529 * frame.c (_initialize_frame): Update.
530 * exec.c: Update.
531 * demangle.c (_initialize_demangler): Update.
532 * dcache.c (_initialize_dcache): Update.
533 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
534 * cp-valprint.c (_initialize_cp_valprint): Update.
535 * corefile.c (_initialize_core): Update.
536 * command.h: Update.
537 * cli/cli-decode.h: Update.
538 * cli/cli-cmds.c (init_cli_cmds): Update.
539 * charset.c (_initialize_charset): Update.
540 * breakpoint.c (_initialize_breakpoint): Update.
541 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
542 * alpha-tdep.c (_initialize_alpha_tdep): Update.
543 * aix-thread.c (_initialize_aix_thread): Update.
544
545 2004-07-24 Mark Kettenis <kettenis@gnu.org>
546
547 Partial fix for PR backtrace/1718.
548 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
549 that GCC migrates into the prolugue. Don't handle any
550 instructions that clobber %ebx.
551
552 2004-07-23 Andrew Cagney <cagney@gnu.org>
553
554 Use regcache_raw_collect instead of regcache_collect.
555 * regcache.h (regcache_collect): Delete declaration.
556 * regcache.c (regcache_colect): Delete function.
557 * win32-nat.c (do_child_store_inferior_registers): Update.
558 * sol-thread.c (sol_thread_store_registers): Update.
559 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
560 * rs6000-nat.c (store_register): Update.
561 * remote.c (store_register_using_P, remote_store_registers): Update.
562 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
563 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
564 (fill_vrregset, store_spe_registers, fill_gregset)
565 (fill_gregset): Update.
566 * nto-procfs.c (procfs_store_registers): Update.
567 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
568 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
569 * m68klinux-nat.c (store_register, fill_gregset): Update.
570 * m68k-tdep.c (fill_gregset): Update.
571 * infptrace.c (store_register): Update.
572 * i386-nto-tdep.c (i386nto_regset_fill): Update.
573 * i386-linux-nat.c (store_register, fill_gregset): Update.
574 * hppa-linux-nat.c (fill_gregset): Update.
575 * go32-nat.c (store_register): Update.
576 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
577 (store_fp_regs): Update.
578 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
579 (store_nwfpe_extended, store_fpregister, store_fpregs)
580 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
581 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
582 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
583 (store_regs_user_thread, store_regs_kernel_thread): Update.
584
585 2004-07-24 Mark Kettenis <kettenis@gnu.org>
586
587 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
588 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
589 encoding.
590 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
591 member of `struct comp_unit'.
592
593 2004-07-23 Andrew Cagney <cagney@gnu.org>
594
595 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
596 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
597
598 2004-07-23 Martin Hunt <hunt@redhat.com>
599 Kevin Buettner <kevinb@redhat.com>
600
601 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
602 alignment was being added to the offset instead of multiplied.
603
604 2004-07-23 Mark Kettenis <kettenis@gnu.org>
605
606 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
607 changed signal trampoline in OpenBSD 3.5-current.
608
609 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
610 <machine/pcb.h> and "bsd-kvm.h".
611 (sparc64nbsd_supply_pcb): New function.
612 (_initialize_sparc64nbsd_nat): Renamed from
613 _initialize_sparcnbsd_nat. Enable libkvm interface.
614 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
615 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
616 (LOADLIBES): New variable.
617
618 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
619
620 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
621
622 2004-07-21 Andrew Cagney <cagney@gnu.org>
623
624 Use regcache_raw_supply instead of supply_register.
625 * regcache.h (supply_register): Delete declaration.
626 * regcache.c (supply_register): Delete function.
627 * wince.c (do_child_fetch_inferior_registers): Update.
628 * win32-nat.c (do_child_fetch_inferior_registers)
629 (fetch_elf_core_registers): Update.
630 * v850ice.c (v850ice_fetch_registers): Update.
631 * thread-db.c (thread_db_store_registers): Update.
632 * sol-thread.c (sol_thread_store_registers): Update.
633 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
634 * rs6000-nat.c (fetch_register): Update.
635 * rom68k-rom.c (rom68k_supply_one_register): Update.
636 * remote.c (remote_wait, remote_async_wait): Update.
637 * remote-st.c (get_hex_regs): Update.
638 * remote-sim.c (gdbsim_fetch_register): Update.
639 * remote-sds.c (sds_fetch_registers): Update.
640 * remote-rdp.c (remote_rdp_fetch_register): Update.
641 * remote-rdi.c (arm_rdi_fetch_registers): Update.
642 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
643 * remote-m32r-sdi.c (m32r_fetch_register): Update.
644 * remote-hms.c (init_hms_cmds): Update.
645 * remote-est.c (init_est_cmds): Update.
646 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
647 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
648 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
649 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
650 (fetch_register, supply_vrregset, supply_vrregset)
651 (fetch_spe_registers): Update.
652 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
653 * monitor.c (monitor_supply_register): Update.
654 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
655 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
656 (mipsnbsd_supply_fpreg): Update.
657 * mips-nat.c (fetch_inferior_registers)
658 (fetch_core_registers): Update.
659 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
660 (supply_fpregset, mips64_supply_gregset)
661 (mips64_supply_fpregset): Update.
662 * m68klinux-nat.c (fetch_register, supply_gregset)
663 (supply_fpregset): Update.
664 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
665 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
666 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
667 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
668 * infptrace.c (fetch_register): Update.
669 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
670 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
671 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
672 (gnu_fetch_registers, gnu_store_registers): Update.
673 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
674 * i386-linux-nat.c (fetch_register, supply_gregset)
675 (dummy_sse_values): Update.
676 * hpux-thread.c (hpux_thread_fetch_registers): Update.
677 * hppah-nat.c (fetch_register): Update.
678 * hppa-linux-nat.c (fetch_register, supply_gregset)
679 (supply_fpregset): Update.
680 * go32-nat.c (fetch_register): Update.
681 * dve3900-rom.c (fetch_bitmapped_register)
682 (_initialize_r3900_rom): Update.
683 * cris-tdep.c (supply_gregset): Update.
684 * abug-rom.c (init_abug_cmds): Update.
685 * core-aout.c (fetch_core_registers): Update.
686 * armnbsd-nat.c (supply_gregset, supply_fparegset)
687 (fetch_register, fetch_fp_register): Update.
688 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
689 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
690 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
691 * alphanbsd-tdep.c (fetch_core_registers): Update.
692 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
693 * alpha-nat.c (fetch_osf_core_registers)
694 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
695 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
696 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
697
698 2004-07-21 Andrew Cagney <cagney@gnu.org>
699
700 * PROBLEMS: Mention breakpoints/1702.
701 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
702 that is known to work.
703
704 2004-07-21 Andrew Cagney <cagney@gnu.org>
705
706 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
707 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
708 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
709 (handle_inferior_event): Wrap call to deprecated
710 IGNORE_HELPER_CALL in #ifdef.
711 * config/mips/tm-nbsd.h: Update.
712
713 2004-07-20 Jim Blandy <jimb@redhat.com>
714
715 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
716 bfd_mach_ppc has no segment registers.
717
718 Include PowerPC SPR numbers for special-purpose registers.
719 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
720 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
721 new member in initializer.
722 (S, S4, SN4, S64): New macros for defining special-purpose
723 registers.
724 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
725 registers_403, registers_403GC, registers_505, registers_860,
726 registers_601, registers_602, registers_603, registers_604,
727 registers_750, registers_e500): Use them.
728
729 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
730 replace references with expression used to initialize variable.
731
732 2004-07-20 Andrew Cagney <cagney@gnu.org>
733
734 * breakpoint.c (deprecated_read_memory_nobpt): Rename
735 read_memory_nobpt.
736 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
737 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
738 (s390_sigtramp_frame_sniffer): Update.
739 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
740 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
741 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
742 (mips32_fetch_instruction): Update.
743 * mcore-tdep.c (get_insn): Update.
744 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
745 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
746 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
747 * i386-linux-tdep.c (i386_linux_sigtramp_start)
748 (i386_linux_rt_sigtramp_start): Update.
749 * i386-linux-nat.c (child_resume): Update.
750 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
751 * hppa-linux-tdep.c (insns_match_pattern): Update.
752 * gdbcore.h: Update.
753 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
754 * frame.c (safe_frame_unwind_memory): Update.
755 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
756 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
757 * alpha-tdep.c (alpha_read_insn): Update.
758
759 2004-07-20 Andrew Cagney <cagney@gnu.org>
760
761 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
762 containing both bytes and mask. Add "frame_type".
763 * tramp-frame.c (tramp_frame_start): Update.
764 (tramp_frame_prepend_unwinder): Update.
765 * mips-linux-tdep.c (mips_linux_o32_sigframe)
766 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
767 (mips_linux_n64_rt_sigframe): Update. Make "static const".
768 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
769
770 2004-07-19 Eli Zaretskii <eliz@gnu.org>
771
772 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
773 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
774 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
775 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
776
777 2004-07-17 Andrew Cagney <cagney@gnu.org>
778
779 * NEWS, PROBLEMS: Update for 6.2.
780
781 * README: Update to 6.2.
782
783 * utils.c (xvasprintf): Call xstrvprintf.
784
785 * parse.c: Update copyright.
786 (null_post_parser): Eliminate ARGSUSED.
787
788 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
789 * tui/tui-win.c (tui_get_cmd_list): Ditto.
790 * symfile-mem.c (_initialize_symfile_mem): Ditto.
791
792 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
793 * ppc-linux-nat.c: Use "Linux kernel".
794 * hppa-linux-tdep.c: Use GNU/Linux.
795 * hppa-linux-nat.c: Use GNU/Linux.
796 * dwarfread.c: Add [sic] to use of Linux.
797
798 * hppa-linux-nat.c: Do not include <string.h>.
799 (supply_fpregset): Remove "register" attribute.
800
801 * solib-frv.c (fetch_loadmap): Use xfree, not free.
802
803 2004-07-17 Mark Kettenis <kettenis@gnu.org>
804
805 * configure.in: Define _MSE_INT_H on Solaris 9 too.
806 * configure, config.in: Regenerated.
807
808 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
809 "bsd-kvm.h".
810 (vaxbsd_supply_pcb): New function.
811 (_initialize_vaxbsd_nat): New prototype and function.
812 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
813 solib-sunos.o.
814 (LOADLIBES): New variable.
815 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
816 (LOADLIBES): New variable.
817 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
818 (LOADLIBES): New variable.
819 * Makefile.in (vaxbsd-nat.o): Update dependencies.
820
821 2004-07-16 Andrew Cagney <cagney@gnu.org>
822
823 * defs.h (event_loop_p): Replace variable declaration with macro,
824 always 1.
825 * main.c (captured_main): Delete options "-async" and "-noasync".
826 (event_loop_p): Delete variable.
827 * NEWS: Mention that "-async" and "-noasync" were removed.
828
829 2004-07-16 Andrew Cagney <cagney@gnu.org>
830
831 * remote-m32r-sdi.c: Re-indent.
832
833 2004-07-16 Jim Blandy <jimb@redhat.com>
834
835 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
836 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
837 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
838 missing MPC823 SPRs.
839 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
840 incorrect. (This was corrected in GDB's register name tables on
841 2004-07-14.)
842
843 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
844 should be "esasrr" ("ESA Save and Restore Register").
845
846 2004-07-16 Andrew Cagney <cagney@gnu.org>
847
848 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
849 calls, no longer applicable. Update comments and rename parameter
850 "step_frame" to "return_frame".
851
852 2004-07-16 Andrew Cagney <cagney@gnu.org>
853
854 * frame.c (fprint_field): New function.
855 (fprint_frame_id): Use fprint_field.
856
857 2004-07-15 Joel Brobecker <brobecker@gnat.com>
858
859 * ada-lang.c (ada_language_defn): Remove commented out code.
860
861 2004-07-15 Jim Blandy <jimb@redhat.com>
862
863 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
864 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
865
866 2004-07-14 Jim Blandy <jimb@redhat.com>
867
868 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
869
870 * ppc-tdep.h (ppc_num_vrs): New enum constant.
871
872 * ppc-tdep.h (ppc_num_srs): New enum constant.
873
874 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
875 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
876 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
877 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
878 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
879 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
880 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
881 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
882 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
883 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
884 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
885 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
886 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
887 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
888 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
889 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
890 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
891 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
892 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
893 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
894 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
895 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
896 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
897 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
898 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
899 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
900 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
901 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
902 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
903 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
904 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
905 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
906 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
907 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
908 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
909 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
910 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
911 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
912 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
913 special-purpose register numbers.
914
915 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
916 manual mentions 'md_twb', but many mention 'm_twb', and at that
917 point in the register list.)
918
919 2004-07-14 Andrew Cagney <cagney@gnu.org>
920
921 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
922 instead of "internal-error".
923
924 2004-07-10 Joel Brobecker <brobecker@gnat.com>
925
926 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
927 that was inserted inside a comment.
928
929 2004-07-10 Randolph Chung <tausq@debian.org>
930
931 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
932 function.
933 (hppa_hpux_push_dummy_code): New function.
934 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
935 Set find_global_pointer method.
936
937 2004-07-10 Mark Kettenis <kettenis@gnu.org>
938
939 * NEWS: Mention BSD libkvm interface.
940
941 2004-07-10 Michael Snyder <msnyder@redhat.com>
942
943 * symfile.c (generic_load): Comment typo.
944 * stack.c (get_selected_block): Ditto.
945 * regcache.c (regcache_cooked_read): Ditto.
946 * monitor.c (monitor_debug): Ditto.
947 * mips-tdep.c (mips_read_pc): Ditto.
948 * i386-linux-nat.c (ps_get_thread_area): Ditto.
949 * gdb_mbuild.sh: Ditto.
950 * gdbarch.sh: Ditto.
951 * gdbarch.h: Ditto.
952
953 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
954
955 * ada-tasks.c: Remove file.
956
957 Remove ARI problems:
958
959 * ada-exp.y (write_var_from_sym): Reformat to put operator at
960 beginning of line.
961
962 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
963 Add comment.
964 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
965 (MIN_OF_SIZE): Rename min_of_size. Add comment.
966 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
967 (UMIN_OF_SIZE): Remove.
968 (max_of_type): New function to replace orphan macro in gdbtypes.h
969 (min_of_type): Ditto.
970 (discrete_type_high_bound): Use max_of_type.
971 (discrete_type_low_bound): Use min_of_type.
972 (possible_user_operator_p): Move operator to beginning of line.
973 (ada_is_variant_part): Ditto.
974 (ensure_lval): Rewrite to avoid deprecated operations.
975 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
976 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
977 (ada_enum_name): Remove assignments in 'if' statements.
978 (build_ada_types): Add gdbarch parameter.
979 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
980 with gdbarch_data_register_post_init.
981 Use add_setshow_uinteger_cmd rather than add_set_cmd and
982 add_show_from_set.
983
984 * ada-valprint.c (inspect_it): Remove declaration.
985 (repeat_count_threshold): Remove declaration.
986 (ada_print_floating): Remove assignments in 'if' statements.
987 (print_str): Move operator to beginning of line.
988
989 2004-07-08 Jim Blandy <jimb@redhat.com>
990
991 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
992
993 2004-07-08 Bob Rossi <bob@brasko.net>
994
995 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
996
997 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
998
999 * language.h (struct_language_defn): Add new function pointer:
1000 la_class_name_from_physname. Also add new prototype for
1001 language_class_name_from_physname.
1002 * language.c (language_class_name_from_physname): New function.
1003 (unk_lang_class_name): Ditto.
1004 (unknown_language_defn, auto_language_defn): Change
1005 to add unk_lang_class_name function pointer for
1006 la_class_name_from_physname.
1007 (local_language_defn): Ditto.
1008 * dwarf2read.c (guess_structure_name): Change to call
1009 language_class_name_from_physname.
1010 (determine_class_name): Ditto.
1011 * cp-support.c (class_name_from_physname): Renamed.
1012 (cp_class_name_from_physname): New name of function.
1013 * cp-support.h: Ditto.
1014 * c-lang.c (c_language_defn): Change to add NULL
1015 for class_name_from_physname function pointer.
1016 (cplus_language_defn): Change to add cp_class_name_from_physname.
1017 * jv-lang.c (java_class_name_physname): New function.
1018 (java_find_last_component): New static routine.
1019 (java_language_defn): Add java_class_name_from_physname pointer.
1020 * ada-lang.c (ada_language_defn): Change to add NULL
1021 for class_name_from_physname function pointer.
1022 * f-lang.c (f_language_defn): Ditto.
1023 * m2-lang.c (m2_language_defn): Ditto.
1024 * objc-lang.c (objc_language_defn): Ditto.
1025 * p-lang.c (pascal_language_defn): Ditto.
1026 * scm-lang.c (scm_language_defn): Ditto.
1027
1028 2004-07-06 Andrew Cagney <cagney@gnu.org>
1029
1030 Patch from Bart Robinson.
1031 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
1032 (O_LARGEFILE): Define to 0, if not defined.
1033
1034 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1035
1036 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
1037 <machine/pcb.h> and "bsd-kvm.h".
1038 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
1039 (m68kbsd_supply_pcb): New function.
1040 (_initialize_m68kbsd_nat): New prototype and function.
1041 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1042 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1043 (LOADLIBES): New variable.
1044 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1045 (LOADLIBES): New variable.
1046
1047 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
1048
1049 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1050
1051 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
1052 <sys/proc.h>.
1053 (bsd_kvm_cmdlist): New variable.
1054 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
1055 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
1056 command and "kvm proc" command.
1057 * Makefile.in (bsd-kvm.o): Update dependencies.
1058
1059 2004-07-02 Mark Kettenis <kettenis@gnu.org>
1060
1061 * osabi.c: Update copyright year.
1062 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
1063 notes if EI_OSABI is set to ELFOSABI_HPUX.
1064
1065 2004-07-01 Michael Snyder <msnyder@redhat.com>
1066
1067 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
1068 that seems to have gotten whacked out of line.
1069
1070 2004-07-01 Mark Kettenis <kettenis@gnu.org>
1071
1072 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
1073 code.
1074
1075 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1076
1077 * ada-lang.c (decode_packed_array): Minor change to comment.
1078 (ada_value_slice_ptr): New function.
1079 (ada_value_slice): New function.
1080 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
1081 test. Don't know why it is there.
1082 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
1083 to avoid dereferencing huge arrays from which one is slicing.
1084 (empty_array): Correct to return an array rather than
1085 a subrange value.
1086 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
1087 on empty arrays (let'em use 'FIRST instead).
1088
1089 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1090
1091 Address complaints from gdb_ari.sh:
1092
1093 * ada-exp.y: Include gdb_string.h rather than string.h.
1094 (convert_char_literal): Reformat declaration.
1095 * ada-lang.h: Include opaque struct declaration for struct frame_info.
1096 * ada-lex.l: Change use of free to xfree (the macro would do so
1097 anyway, but this is harmless).
1098 Include gdb_string.h rather than string.h.
1099 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
1100
1101 * ada-lang.c (parse): Remove K&Rism in parameter list.
1102 (is_name_suffix): Correct Linux => GNU/Linux in comment.
1103
1104 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1105
1106 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
1107 dead code.
1108
1109 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1110
1111 * alphabsd-nat.c: Update copyright year.
1112 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
1113
1114 2004-06-29 Joel Brobecker <brobecker@gnat.com>
1115
1116 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
1117 (i386_cygwin_in_solib_call_trampoline): New function.
1118 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
1119 and skip_trampoline_code gdbarch methods.
1120
1121 2004-06-29 Jim Blandy <jimb@redhat.com>
1122
1123 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
1124 name actually used in the dependency lists.
1125
1126 2004-06-29 Randolph Chung <tausq@debian.org>
1127
1128 * NEWS (New native configurations): Mention GNU/Linux/hppa.
1129
1130 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
1131
1132 * win32-nat.c (child_pid_to_exec_file): New function.
1133 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
1134 functionality.
1135
1136 2004-06-28 Andrew Cagney <cagney@gnu.org>
1137
1138 * defs.h (xstrvprintf): Declare.
1139 * utils.c (xstrvprintf): New function.
1140 (internal_vproblem, xstrprintf, xasprintf)
1141 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
1142 * serial.c (serial_printf): Ditto.
1143 * complaints.c (vcomplaint): Ditto.
1144
1145 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
1146
1147 * infcmd.c (attach_command): Move call to target_terminal_inferior
1148 behind loading symbol table.
1149
1150 2004-06-28 Andrew Cagney <cagney@gnu.org>
1151
1152 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
1153 change - add back extern deprecated_ui_loop_hook declaration.
1154
1155 2004-06-28 Andrew Cagney <cagney@gnu.org>
1156
1157 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
1158 xstrprintf.
1159 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
1160 (c_value_of_variable): Ditto.
1161 * utils.c (internal_vproblem): Ditto.
1162 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
1163 * remote.c (add_packet_config_cmd): Ditto.
1164 * remote-rdp.c (rdp_set_command_line): Ditto.
1165 * regcache.c (regcache_dump): Ditto.
1166 * frv-tdep.c (new_variant, new_variant): Ditto.
1167 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
1168 (fbsd_find_memory_regions): Ditto.
1169 * breakpoint.c (create_thread_event_breakpoint)
1170 (create_breakpoints): Ditto.
1171 * aix-thread.c (aix_thread_pid_to_str): Ditto.
1172 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
1173
1174 2004-06-28 Joel Brobecker <brobecker@gnat.com>
1175
1176 * ada-lang.c: Re-indent file, with some massaging to help indent
1177 a bit when the result is otherwise really too ugly.
1178
1179 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1180
1181 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
1182 code_addr_p and special_addr_p to 'unsigned int'.
1183
1184 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1185
1186 * i386v4-nat.c: Update copyright year and tweak comment.
1187 (regmap): Remove trailing comma.
1188 (supply_gregset): Rename local variable i to regnum. Call
1189 regcache_raw_supply instead of supply_register.
1190 (fill_gregset): Rename argument regno to regnum. Call
1191 regcache_raw_collect instead of regcache_collect.
1192
1193 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1194
1195 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
1196 and special_addr_p.
1197 (frame_id_build, frame_id_build_special): Update comments.
1198 (frame_id_build_wild): New prototype.
1199 * frame.c (frame_id_build, frame_id_build_special): Fill in new
1200 struct frame_id fields.
1201 (frame_id_build_wild): New function.
1202 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
1203
1204 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1205
1206 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
1207 hppabsd-tdep.c.
1208
1209 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1210
1211 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
1212
1213 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1214
1215 * ada-lang.c: Re-indent file.
1216
1217 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1218
1219 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
1220 (no_symtab_msg): Likewise.
1221
1222 2004-06-27 Andreas Schwab <schwab@suse.de>
1223
1224 * source.c: Fix whitespace.
1225
1226 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1227
1228 * configure.in: Include <sys/param.h> for td_pcb test.
1229 * configure: Regenerated.
1230
1231 * i386nbsd-nat.c: New file.
1232 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
1233 i386obsd-nat.c and i386obsd-tdep.c.
1234 (i386nbsd-nat.o): New dependency.
1235 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
1236 bsd-kvm.o.
1237 (LOADLIBES): New variable.
1238 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
1239 bsd-kvm.o.
1240 (LOADLIBES): New variable.
1241
1242 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
1243 (LOADLIBES): New variable.
1244
1245 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
1246 fetching from BSD_KVM_PADDR. Correctly lookup address for
1247 "_thread0".
1248
1249 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
1250 "bsd-kvm.h".
1251 (amd64fbsd_supply_pcb): New funcion.
1252 (_initialize_amd64fbsd_nat): Enable libkvm interface.
1253
1254 2004-06-27 <david@streamline-computing.com>
1255
1256 Partial fix for PR cli/1056.
1257 * valarith.c: Check for zero in division and remainder
1258 evaluation.
1259
1260 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1261
1262 * i387-tdep.c: Remove excessive whitespace.
1263
1264 2004-06-26 Andrew Cagney <cagney@gnu.org>
1265
1266 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
1267 * gdb-events.h, gdb-events.c: Re-generate.
1268 * tui/tui-hooks.c (tui_install_hooks): Update.
1269 (tui_remove_hooks): Update.
1270 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
1271
1272 2004-06-26 Mark Kettenis <kettenis@gnu.org>
1273
1274 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
1275 (gregset_t, fpregset_t): Remove typedefs.
1276 (REG_OFFSET): Rename argument.
1277 (amd64bsd_r_reg_offset): Rename from reg_offset.
1278 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
1279 Remove functions.
1280 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
1281 of reg_offset.
1282 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
1283
1284 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
1285
1286 * vax-tdep.c: Tweak comment.
1287
1288 Add OpenBSD/hppa support.
1289 * NEWS (New native configurations): Mention OpenBSD/hppa.
1290 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
1291 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
1292 files.
1293 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1294 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
1295 * configure.host: Add hppa*-*-openbsd*.
1296 * configure.tgt: Add hppa*-*-openbsd*.
1297
1298 2004-06-25 Andrew Cagney <cagney@gnu.org>
1299
1300 * defs.h (deprecated_ui_loop_hook): Deprecated.
1301 * wince.c (child_wait): Update.
1302 * win32-nat.c (child_wait): Update.
1303 * v850ice.c (v850ice_wait): Update.
1304 * top.c (deprecated_ui_loop_hook): Update.
1305 * serial.h: Update.
1306 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
1307 (do_unix_readchar): Update.
1308 * ser-tcp.c (net_open): Update.
1309 * remote-sim.c (gdb_os_poll_quit): Update.
1310 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
1311
1312 2004-06-24 Andrew Cagney <cagney@gnu.org>
1313
1314 * defs.h (deprecated_pre_add_symbol_hook)
1315 (deprecated_post_add_symbol_hook): Deprecated.
1316 * symfile.c (symbol_file_add_with_addrs_or_offsets)
1317 (symbol_file_add_with_addrs_or_offsets): Update references.
1318
1319 2004-06-24 Andrew Cagney <cagney@gnu.org>
1320
1321 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
1322 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
1323 * wince.c (ui_loop_hook): Delete extern declaration.
1324 * win32-nat.c (ui_loop_hook): Delete extern declaration..
1325 * v850ice.c (ui_loop_hook): Delete extern declaration..
1326 * ser-unix.c (ui_loop_hook): Delete extern declaration..
1327 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
1328 * remote-sim.c (ui_loop_hook): Delete extern declaration..
1329 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
1330 ui_loop_hook declaration.
1331
1332 2004-06-24 Andrew Cagney <cagney@gnu.org>
1333
1334 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
1335 entry_func_highpc fields.
1336 * objfiles.c (init_entry_point_info): Do not clear
1337 entry_func_lowpc and entry_func_highpc.
1338 (objfile_relocate): Do not relocate entry_func_lowpc and
1339 entry_func_highpc.
1340 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
1341 entry_func_highpc.
1342 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
1343 entry_func_highpc.
1344 * blockframe.c (legacy_frame_chain_valid): Replace tests against
1345 entry_func_lowpc and entry_func_highpc with call to
1346 inside_entry_func.
1347
1348 2004-06-24 Mark Kettenis <kettenis@gnu.org>
1349
1350 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
1351 quad-precision floating point arguments in registers.
1352
1353 2004-06-24 Mark Kettenis <kettenis@gnu.org>
1354
1355 From Michael Mueller <m.mueller99@kay-mueller.de>:
1356 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
1357 account.
1358
1359 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
1360
1361 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
1362 to -1.
1363 * breakpoint.c (bpstat_stop_status): Move check for ignoring
1364 untriggered watchpoints to a separate if clause. Update function
1365 comment regarding STOPPED_BY_WATCHPOINT argument.
1366
1367 2004-06-22 Jim Blandy <jimb@redhat.com>
1368
1369 * gdbarch.sh: Doc fix.
1370
1371 2004-06-21 Martin Hunt <hunt@redhat.com>
1372 Kevin Buettner <kevinb@redhat.com>
1373
1374 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
1375 * mips-tdep.h (MIPS_SP_REGNUM): Define.
1376 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
1377 to set_gdbarch_sp_regnum(). Use cooked register number.
1378 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
1379
1380 2004-06-21 Andrew Cagney <cagney@gnu.org>
1381
1382 * gdbarch.sh: When the macro field is empty, do not generate a
1383 macro definition. When the macro field is "=", generate the macro
1384 name from the upper-case function name.
1385 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
1386 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
1387 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
1388 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
1389 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
1390 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
1391 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
1392 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
1393 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
1394 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
1395 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
1396 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
1397 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
1398 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
1399 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
1400 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
1401 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
1402 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
1403 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
1404 (DEPRECATED_USE_STRUCT_CONVENTION)
1405 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1406 (DEPRECATED_FRAME_INIT_SAVED_REGS)
1407 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
1408 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
1409 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
1410 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
1411 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
1412 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
1413 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
1414 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
1415 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
1416 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
1417 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
1418 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
1419 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
1420 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
1421 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
1422 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
1423
1424 2004-06-21 Andrew Cagney <cagney@gnu.org>
1425
1426 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
1427 macro name, and the function rather than macro value. Only wrap
1428 macro print statements in #ifdef. Move format logic to where it
1429 is needed.
1430 * gdbarch.c: Re-generate.
1431
1432 * gdbarch.sh (read): Delete "print_p" and "description", add
1433 "garbage_at_eol". Check for non-empty garbage at end-of-line.
1434 Delete references to print_p.
1435 (TARGET_ARCHITECTURE): Delete print predicate.
1436 * gdbarch.c: Re-generate.
1437
1438 * gdbarch.sh: Check that multi-arch methods do not provide a
1439 macro.
1440 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
1441 (print_registers_info, print_float_info, print_vector_info)
1442 (adjust_breakpoint_address, remote_translate_xfer_address)
1443 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
1444 (address_class_type_flags_to_name, unwind_sp): Remove the macro
1445 name from the multi-arch definition.
1446
1447 2004-06-20 Andrew Cagney <cagney@gnu.org>
1448
1449 * gdbarch.sh: Sort by the function, instead of macro name.
1450 * gdbarch.c: Re-generate.
1451
1452 2004-06-20 Andrew Cagney <cagney@gnu.org>
1453
1454 * gdbarch.sh: Use the function, instead of macro name in
1455 errors and the log file.
1456 (return_value): Remove stray ":" in spec.
1457
1458 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
1459 * gdbarch.h, gdbarch.c: Re-generate.
1460 * Makefile.in (arch-utils.o): Update dependencies.
1461 * values.c (using_struct_return): Move code calling
1462 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
1463 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
1464 to legacy_return_value, simplify.
1465 * infcmd.c (print_return_value): Move code calling
1466 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
1467 to legacy_return_value, simplify.
1468 * infcall.c (call_function_by_hand): Move code calling
1469 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
1470 * arch-utils.c: Update copyright. Include "gdbcore.h".
1471 (legacy_return_value): New function.
1472 * arch-utils.h: Update copyright.
1473 (legacy_return_value): Declare.
1474
1475 2004-06-20 Andrew Cagney <cagney@gnu.org>
1476
1477 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
1478 * gdbarch.h, gdbarch.c: Re-generate.
1479 * values.c (using_struct_return): Update call.
1480 * mcore-tdep.c: Update comment.
1481 * infcall.c (call_function_by_hand): Update comment.
1482 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1483 * arch-utils.h (always_use_struct_convention): Update.
1484 * v850-tdep.c (v850_gdbarch_init): Update.
1485 * sh64-tdep.c (sh64_gdbarch_init): Update.
1486 * sh-tdep.c (sh_gdbarch_init): Update.
1487 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1488 * mips-tdep.c (mips_gdbarch_init): Update.
1489 * mcore-tdep.c (mcore_gdbarch_init): Update.
1490 * m32r-tdep.c (m32r_gdbarch_init): Update.
1491 * ia64-tdep.c (ia64_gdbarch_init): Update.
1492 * h8300-tdep.c (h8300_gdbarch_init): Update.
1493 * frv-tdep.c (frv_gdbarch_init): Update.
1494 * cris-tdep.c (cris_gdbarch_init): Update.
1495 * arm-tdep.c (arm_gdbarch_init): Update.
1496 * alpha-tdep.c (alpha_gdbarch_init): Update.
1497
1498 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
1499
1500 * PROBLEMS: Add more specific information, and a work-around,
1501 for PR gdb/1458.
1502
1503 2004-06-18 Andrew Cagney <cagney@gnu.org>
1504
1505 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
1506 * gdbarch.h, gdbarch.c: Re-generate.
1507 * ada-lang.c (ada_finish_decode_line_1): Update.
1508 * infrun.c (handle_inferior_event): Update.
1509 * infcall.c (find_function_addr): Update.
1510 * linespec.c (minsym_found): Update.
1511 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
1512 Update.
1513 * blockframe.c (legacy_frameless_look_for_prologue): Update.
1514 * cli/cli-cmds.c (disassemble_command): Update.
1515 * vax-tdep.c (vax_gdbarch_init): Update.
1516
1517 2004-06-18 Mark Kettenis <kettenis@gnu.org>
1518
1519 * i386-tdep.c (i386_collect_fpregset): Fix comment.
1520
1521 2004-06-17 Andrew Cagney <cagney@gnu.org>
1522
1523 GDB 6.1.1 released from the GDB 6.1 branch.
1524 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
1525 * PROBLEMS: Ditto.
1526
1527 2004-06-16 Daniel Jacobowitz <dan@debian.org>
1528
1529 PR gdb/1658
1530 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
1531 operation as a uleb128. Found by Michael Coulter.
1532
1533 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
1534
1535 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
1536 make it non-static.
1537 * ada-lang.h (task_control_block): declaration moved from ada-task.c
1538 to ada-lang.h; this is needed to be able to implement the kill command
1539 in multi-task mode.
1540 (task_ptid): Ditto.
1541 (task_entry): Ditto.
1542 (task_list): Ditto.
1543 (ada_build_task_list): Ditto.
1544
1545 * ada-lang.c: Conditionalize routines and data structures related
1546 to breakpoints, exceptions, completion, and symbol caching on
1547 GNAT_GDB, since these are not yet used in the submitted public sources.
1548 (ada_main_name): Editorial: Move definition out of exception-related
1549 code.
1550
1551 2004-06-15 Andrew Cagney <cagney@gnu.org>
1552
1553 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
1554 deprecated_pc_in_call_dummy.
1555
1556 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1557
1558 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
1559 bfd_get_section_size_before_reloc or _raw_size.
1560 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1561 * dwarf2read.c (dwarf2_locate_sections): Likewise.
1562 (dwarf2_read_section): Likewise.
1563 * elfread.c (elf_locate_sections): Likewise.
1564 * gcore.c (derive_heap_segment): Likewise.
1565 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1566 * remote-e7000.c (e7000_load): Likewise.
1567 * remote-m32r-sdi.c (m32r_load): Likewise.
1568 * remote-mips.c (mips_load_srec): Likewise.
1569 (pmon_load_fast): Likewise.
1570 * remote.c (compare_sections_command): Likewise.
1571 * symfile.c (add_section_size_callback): Likewise.
1572 (load_section_callback): Likewise.
1573 (pc_in_unmapped_range): Likewise.
1574 (pc_in_mapped_range): Likewise.
1575 (sections_overlap): Likewise.
1576 (list_overlays_command): Likewise.
1577 (simple_overlay_update_1): Likewise.
1578 (simple_overlay_update): Likewise.
1579 * tracepoint.c (remote_set_transparent_ranges): Likewise.
1580 * win32-nat.c (core_section_load_dll_symbols): Likewise.
1581
1582 2004-06-14 Randolph Chung <tausq@debian.org>
1583
1584 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
1585 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
1586 static.
1587 (hppa_hpux_inferior_created): New function.
1588 (hppa_hpux_init_abi): Register observer.
1589 * symfile.c (hp_cxx_exception_support_initialized)
1590 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
1591 (symbol_file_add_main_1, symbol_file_clear): Likewise.
1592
1593 2004-06-14 Randolph Chung <tausq@debian.org>
1594
1595 * MAINTAINERS (Write After Approval): Alphabetize my entry
1596 correctly.
1597
1598 2004-06-14 Andrew Cagney <cagney@gnu.org>
1599
1600 * MAINTAINERS (testsuite): List Michael Chastain as the lead
1601 testsuite maintainer.
1602
1603 2004-06-13 Andrew Cagney <cagney@gnu.org>
1604
1605 * infcmd.c (print_return_value): Fix logic, allow
1606 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
1607
1608 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
1609 defining any macros.
1610 * gdbarch.h: Re-generate.
1611
1612 * gdbarch.sh: Delete "level" attribute. Only check for a macro
1613 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
1614 * gdbarch.h: Re-generate.
1615
1616 * values.c (generic_use_struct_convention): Don't check gcc_p.
1617
1618 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1619 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
1620 * gdbarch.h, gdbarch.c: Regenerate.
1621 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
1622 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
1623 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1624 deprecated_max_register_raw_size and
1625 deprecated_max_register_virtual_size.
1626 * v850-tdep.c (v850_gdbarch_init): Ditto.
1627 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1628 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1629 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1630 * cris-tdep.c (cris_gdbarch_init): Ditto.
1631
1632 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
1633 * gdbarch.h, gdbarch.c: Re-generate.
1634 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
1635 (m68hc11_use_struct_convention): Delete function.
1636 (m68hc11_extract_struct_value_address): Delete function.
1637 (m68hc11_return_value): New function.
1638 (m68hc11_gdbarch_init): Instead of store_return_value,
1639 extract_return_value, return_value_on_stack,
1640 deprecated_extract_struct_value_address and use_struct_convention,
1641 set return_value.
1642 * values.c (using_struct_return): Do not call
1643 RETURN_VALUE_ON_STACK.
1644 * arch-utils.h (generic_return_value_on_stack_not): Delete
1645 declaration.
1646 * arch-utils.c (generic_return_value_on_stack_not): Delete
1647 function.
1648
1649 2004-06-12 Andrew Cagney <cagney@gnu.org>
1650
1651 * values.c (register_value_being_returned): Delete function.
1652 * infcmd.c (legacy_return_value): Delete function.
1653 * infcall.c (call_function_by_hand): Inline
1654 "register_value_being_returned", simplify.
1655 * values.c (using_struct_return): Update comment, refer to
1656 print_return_value instead of register_value_being_returned.
1657 * infcmd.c (print_return_value): Inline calls to
1658 register_value_being_returned and legacy_return_value. Simplify.
1659
1660 2004-06-11 Randolph Chung <tausq@debian.org>
1661
1662 * somread.c (som_symtab_read): Exclude gcc local symbols.
1663
1664 2004-06-11 Randolph Chung <tausq@debian.org>
1665
1666 * infrun.c (handle_inferior_event): Handle the case when a
1667 trampoline ends up in the runtime resolver, and if the trampoline
1668 has no name. Rearrange the code so that all the trampoline
1669 processing happens before other step-out-of-range handling.
1670
1671 2004-06-11 Martin Hunt <hunt@redhat.com>
1672
1673 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
1674 has no fpu.
1675
1676 2004-06-10 Andrew Cagney <cagney@gnu.org>
1677
1678 * blockframe.c (legacy_inside_entry_func): Delete.
1679 (legacy_frame_chain_valid): Inline call to
1680 legacy_inside_entry_func, simplify.
1681
1682 2004-06-10 Bob Rossi <bob@brasko.net>
1683
1684 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
1685 * dwarf2read.c (partial_die_info): Add dirname field.
1686 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
1687 (read_partial_die): Save away DW_AT_comp_dir.
1688 * defs.h (symtab_to_filename): Removed.
1689 * source.c (find_and_open_source): Added.
1690 (open_source_file): Just calls find_and_open_source.
1691 (symtab_to_filename): Removed.
1692 (symtab_to_fullname, psymtab_to_fullname): Added.
1693 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
1694 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
1695 symtab_to_filename.
1696 * symtab.h (partial_symtab): Add dirname field.
1697 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
1698 (mi_cmd_file_list_exec_source_file): Call new function
1699 symtab_to_fullname to find fullname.
1700 (mi_cmd_file_list_exec_source_files): Added.
1701 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
1702 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
1703
1704 2004-06-10 Andrew Cagney <cagney@gnu.org>
1705
1706 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
1707 to generic_use_struct_convention, the default value.
1708
1709 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
1710 of abort.
1711
1712 * ns32k-tdep.c (ns32k_push_arguments): New function.
1713 (ns32k_gdbarch_init): Set deprecated_push_arguments.
1714 * infcall.c (call_function_by_hand): Call error instead of
1715 legacy_push_arguments.
1716 * value.h (legacy_push_arguments): Delete declaration.
1717 * valops.c (legacy_push_arguments): Delete function.
1718 (value_push): Delete function.
1719
1720 2004-06-10 Brian Ford <ford@vss.fsi.com>
1721
1722 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
1723 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
1724 info.
1725 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
1726
1727 2004-06-10 Andrew Cagney <cagney@gnu.org>
1728
1729 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
1730 * gdbarch.h, gdbarch.c: Re-generate.
1731 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
1732 parameters.
1733 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
1734 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
1735 deprecated_pc_in_call_dummy instead of
1736 DEPRECATED_PC_IN_CALL_DUMMY.
1737 (arm_skip_prologue): Ditto.
1738 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
1739 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
1740 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
1741 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
1742 Ditto.
1743 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
1744 (sh64_init_extra_frame_info, sh64_get_saved_register)
1745 (sh64_pop_frame): Ditto.
1746 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
1747 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
1748 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
1749 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
1750 (h8300_pop_frame): Ditto.
1751 * blockframe.c (legacy_inside_entry_func)
1752 (legacy_frame_chain_valid): Ditto.
1753 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
1754 to deprecated_pc_in_call_dummy.
1755
1756 2004-06-09 Andrew Cagney <cagney@gnu.org>
1757
1758 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
1759 provide a default value.
1760 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
1761 * gdbarch.h, gdbarch.c: Re-generate.
1762 * arch-utils.c (generic_convert_register_p): Rename
1763 legacy_convert_register_p
1764 (legacy_register_to_value, legacy_value_to_register): Delete
1765 functions.
1766 * arch-utils.h (generic_convert_register_p): Rename
1767 legacy_convert_register_p.
1768 (legacy_register_to_value, legacy_value_to_register): Delete
1769 declarations.
1770
1771 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
1772 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
1773 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
1774 * gdbarch.h, gdbarch.c: Re-generate.
1775 * infcmd.c (default_print_registers_info): Simplify.
1776 * findvar.c (value_of_register): Simplify.
1777 * mi/mi-main.c (get_register): Simplify.
1778 * arch-utils.c (legacy_convert_register_p): Always return 0.
1779 (legacy_register_to_value, legacy_value_to_register): Always call
1780 internal_error.
1781
1782 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
1783 #ifdef CLEAR_INSN_CACHE code.
1784 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
1785 Delete #ifdef CLEAR_DEFERRED_STORES code.
1786
1787 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
1788
1789 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
1790 copyright.
1791 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
1792
1793 * config/mips/mipsv4.mh: Delete file.
1794
1795 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
1796 unreferenced macro.
1797 (hpread_adjust_stack_address): Delete declaration.
1798
1799 2004-06-08 Andrew Cagney <cagney@gnu.org>
1800
1801 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
1802 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
1803 PTRACE_ATTACH / PTRACE_DETACH available call error.
1804 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
1805 * infttrace.c (update_thread_state_after_attach, attach, detach):
1806 Remove #ifdef wrappers.
1807 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
1808 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
1809 * config/nm-bsd.h (ATTACH_DETACH): Delete.
1810 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
1811 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
1812 * config/nm-linux.h (ATTACH_DETACH): Delete.
1813 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
1814 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
1815 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
1816 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
1817 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
1818
1819 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
1820
1821 * configure.in: Set $configdir to the right OS specific value.
1822 Use value when setting $tcldir and $tkdir.
1823 * configure: Regenerate.
1824
1825 2004-06-06 Paul Brook <paul@codesourcery.com>
1826
1827 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
1828 records.
1829
1830 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
1831
1832 * ada-lang.c (lookup_symbol_in_language): New function to allow
1833 re-use of another language's symbol lookup code. (Placed here
1834 temporarily while Ada support is being integrated into the public
1835 tree).
1836 (restore_language): New auxiliary function for
1837 lookup_symbol_in_language.
1838 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
1839 temporarily while Ada support is being integrated into the public
1840 tree).
1841
1842 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
1843
1844 * Makefile.in (check//%): New.
1845
1846 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
1847 (mn10300_store_return_value): Rewrite.
1848 (mn10300_type_align): New.
1849 (mn10300_use_struct_convention): Rewrite.
1850 (mn10300_return_value): New, using all of the above.
1851 (mn10300_pop_frame_regular): Add saved_regs_size.
1852 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
1853
1854 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
1855 regs if PC is on movm.
1856
1857 2004-06-07 Jim Blandy <jimb@redhat.com>
1858
1859 Add native Linux support for the PowerPC E500.
1860 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
1861 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
1862 all architectures except the E500.
1863 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
1864 #definitions.
1865 (struct gdb_evrregset_t): New type.
1866 (have_ptrace_getsetevrregs): New variable.
1867 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
1868 fetch_spe_registers): New functions.
1869 (fetch_register): Call fetch_spe_register as appropriate.
1870 Assert that we're only passed raw register numbers.
1871 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
1872 Don't fetch gprs if they're pseudoregisters.
1873 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
1874 store_spe_registers): New functions.
1875 (store_register): Call store_spe_register as appropriate.
1876 Assert that we're only passed raw register numbers.
1877 (store_ppc_registers): Call store_spe_registers as appropriate.
1878 Don't store gprs if they're pseudoregisters.
1879
1880 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
1881
1882 * thread-db.c (thread_get_info_callback): Fill in the thread_info
1883 struct if one exists, even if we are dealing with a zombie thread.
1884
1885 2004-06-07 Andrew Cagney <cagney@gnu.org>
1886
1887 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
1888 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
1889 Rename PC_REQUIRES_RUN_BEFORE_USE.
1890 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
1891 #ifdef.
1892
1893 2004-06-07 Randolph Chung <tausq@debian.org>
1894
1895 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
1896 unwinding after sp has been saved to the stack but before the end
1897 of the prologue, and after the fp has been modified but before it has
1898 been saved to the stack.
1899 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
1900 Remove superfluous definitions.
1901 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
1902
1903 2004-06-07 Guy Martin <gmsoft@gentoo.org>
1904
1905 Committed by Randolph Chung.
1906 * hppa-linux-nat.c: Include the correct version of the header file
1907 depending on the kernel version.
1908
1909 2004-06-06 Randolph Chung <tausq@debian.org>
1910
1911 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
1912 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
1913
1914 2004-06-06 Randolph Chung <tausq@debian.org>
1915
1916 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
1917 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
1918 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
1919 * hppa-tdep.c (hppa_symbol_address): New function definition.
1920 * hppa-tdep.h (hppa_symbol_address): New function declaration.
1921
1922 2004-06-06 Randolph Chung <tausq@debian.org>
1923
1924 * hppa-tdep.h (struct value): Forward declaration.
1925 (gdbarch_tdep): Define tdep find_global_pointer method.
1926 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
1927 associated with the function we are trying to call, and write it
1928 to the gp register.
1929 (hppa32_convert_from_funct_ptr_addr): New function.
1930 (hppa_find_global_pointer): New function.
1931 (hppa_gdbarch_init): Set default find_global_pointer method; set
1932 convert_from_func_ptr_addr method.
1933 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
1934 (hppa_linux_init_abi): Set find_global_pointer method.
1935 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
1936
1937 2004-06-06 Randolph Chung <tausq@debian.org>
1938
1939 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
1940 to struct value *function.
1941 * gdbarch.c: Regenerate.
1942 * gdbarch.h: Likewise.
1943 * infcall.c (call_function_by_hand): Pass entire function value
1944 to push_dummy_call.
1945
1946 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
1947 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
1948 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
1949 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
1950 * arm-tdep.c (arm_push_dummy_call): Likewise.
1951 * avr-tdep.c (avr_push_dummy_call): Likewise.
1952 * cris-tdep.c (cris_push_dummy_call): Likewise.
1953 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
1954 * frv-tdep.c (frv_push_dummy_call): Likewise.
1955 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1956 * hppa-tdep.c (hppa32_push_dummy_call)
1957 (hppa64_push_dummy_call): Likewise.
1958 * i386-tdep.c (i386_push_dummy_call): Likewise.
1959 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
1960 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
1961 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1962 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
1963 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
1964 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1965 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
1966 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1967 (ppc64_sysv_abi_push_dummy_call): Likewise.
1968 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
1969 (ppc64_sysv_abi_push_dummy_call): Likewise.
1970 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
1971 * s390-tdep.c (s390_push_dummy_call): Likewise.
1972 * sh-tdep.c (sh_push_dummy_call_fpu)
1973 (sh_push_dummy_call_nofpu): Likewise.
1974 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
1975 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
1976 * vax-tdep.c (vax_push_dummy_call): Likewise.
1977
1978 2004-06-04 Jim Blandy <jimb@redhat.com>
1979
1980 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
1981 gdbarch argument to register_size.
1982
1983 * rs6000-tdep.c (rs6000_store_return_value): Use
1984 regcache_cooked_write_part instead of
1985 deprecated_write_register_bytes.
1986 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
1987 not gdbarch_deprecated_store_return_value.
1988
1989 * ppc-linux-nat.c (store_register, fetch_register): Remove
1990 incorrect assertions. Simplify and generalize handling of
1991 transfers whose sizes are not multiples of, or less than, sizeof
1992 (PTRACE_XFER_TYPE).
1993
1994 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
1995
1996 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
1997 as a new thread event.
1998 * thread-db.c (thread_get_info_callback): If the thread is a
1999 zombie, return TD_THR_ZOMBIE.
2000 (thread_from_lwp): If thread_get_info_callback returns
2001 TD_THR_ZOMBIE, check if the thread is still on the thread list
2002 and return a -1 ptid if not found.
2003 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
2004 change the status to TARGET_WAITKIND_SPURIOUS.
2005
2006 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
2007
2008 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
2009 double values in little endian mode.
2010
2011 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
2012
2013 Committed by Andrew Cagney.
2014 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
2015 after last enum constant to avoid error from IBM C
2016 compiler.
2017
2018 2004-06-02 Jim Blandy <jimb@redhat.com>
2019
2020 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
2021 to 'message', and make it local to the lone block that uses it.
2022
2023 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
2024
2025 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
2026
2027 * ada-exp.y: Update copyright notice.
2028 Include block.h.
2029
2030 Replace REGNAME, LAST, INTERNAL_VARIABLE with
2031 SPECIAL_VARIABLE and unify the treatment of these cases.
2032
2033 (write_attribute_call0): Remove.
2034 (write_attribute_call1): Remove.
2035 (write_attribute_calln): Remove.
2036 (save_qualifier): Add missing semicolon.
2037
2038 (simple_exp,exp): Decomment (i.e., reactivate) code that was
2039 temporarily disabled to allow compilation with FSF head version.
2040
2041 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
2042 use individual operators (OP_*) for all attributes.
2043 (exp syntax): Use write_int.
2044 Handle STRING literals with OP_STRING.
2045 (variable syntax): Add limit parameter to calls to
2046 write_object_renaming.
2047
2048 (temp_parse_space): New definition to hold entities that need
2049 only live until the next call to ada_parse.
2050 (string_to_operator): Rename fields of ada_opname_table entries.
2051
2052 (write_var_from_sym): Record block.
2053 (write_var_from_name): Minor reformatting.
2054 Make sure saved name is properly encoded in the case of multiple
2055 matches, and set its language to Ada.
2056 Update comment.
2057 Modify to indicate unresolved name as symbol in the UNRESOLVED
2058 namespace, allocated in temp_parse_space.
2059 (write_int): New function.
2060
2061 (write_object_renaming): Add max_depth parameter to limit
2062 chains of object renamings.
2063 Handle case where root of renaming expression is itself a renaming.
2064 Use temp_parse_space for temporary name buffer.
2065 Handle renamings to dereferenced pointers (___XEXA suffices).
2066
2067 (ada_parse, yyerror, string_to_operator,
2068 write_var_from_sym, write_var_from_name, write_attribute_call0,
2069 write_attribute_call1, write_attribute_calln,
2070 write_object_renaming): Protoize.
2071
2072 (_initialize_ada_exp): New function.
2073
2074 * ada-lang.c: Update copyright notice.
2075 General terminology change to conform to GNAT compiler usage:
2076 mangle => encode, demangle => decode
2077 Include gdb_obstack.h.
2078 Include gdb_regex.h
2079 Include frame.h
2080 Include hashtab.h
2081 Include completer.h
2082 Include gdb_stat.h
2083 Include block.h
2084 Include infcall.h
2085
2086 (ADA_RETAIN_DOTS): Make sure this is defined.
2087 (TRUNCATION_TOWARDS_ZERO): Define.
2088 (struct string_vector): Define.
2089 (unresolved_names): Remove definition.
2090 (xnew_string_vector): New function.
2091 (string_vector_append): New function.
2092 (extract_string): Make static.
2093 (ada_unqualified_name): New function.
2094 (add_angle_brackets): New function.
2095 (function_name_from_pc): New function.
2096 (place_on_stack): Rename to ensure_lval.
2097
2098 (ensure_lval): Renamed from place_on_stack.
2099 Make identity on lvals.
2100 Update comment.
2101 (is_nonfunction): New interface.
2102 Only symbols in LOC_CONST class can be enumerals.
2103 (fill_in_ada_prototype): Remove; now independent of language.
2104 (add_defn_to_vec): Add obstack and symtab arguments.
2105 Use obstack to hold collected definitions.
2106 (num_defns_collected): New function.
2107 (defns_collected): New function.
2108 (ada_resolve_subexp): Rename to resolve_subexp.
2109 (resolve_subexp): Renamed from ada_resolve_subexp.
2110 (ada_op_name): Return non-const result.
2111 (ada_decoded_op_name): Renamed from ada_op_name, now used for
2112 other purposes.
2113
2114 (to_fixed_array_type): Add declaration.
2115 (coerce_unspec_val_to_type): Remove offset parameter.
2116 (find_sal_from_funcs_and_line): New interface.
2117 (find_line_in_linetable): Ditto.
2118
2119 (all_sals_for_line): Rename to ada_sals_for_line and make
2120 global.
2121 Add new parameter. When set, do not ask the user to choose the
2122 instance, but use the first one found instead.
2123 Use given line number in returned sals.
2124 Fix comment.
2125 Skip the prologue if funfirstline is set.
2126 Correct for memory leak when 0 lines found.
2127
2128 (value_pos_atr): Use pos_atr.
2129 (pos_atr): New function.
2130 (standard_lookup): Add block parameter.
2131
2132 (makeTimeStart): Remove declaration and uses.
2133 (makeTimeStop): Remove declaration and uses.
2134
2135 (ada_completer_word_break_characters): Allow for VMS.
2136 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
2137 (raise_sym_name): New constant.
2138 (raise_unhandled_sym_name): New constant.
2139 (raise_assert_sym_name): New constant.
2140 (process_raise_exception_name): New constant.
2141 (longest_exception_template): New constant.
2142 (warning_limit): New variable to limit warnings during expression
2143 evaluation.
2144 (warnings_issued): New variable to keep track of warnings issued.
2145 (known_runtime_file_name_patterns): New constant.
2146 (known_auxiliary_function_name_patterns): New constant.
2147 (symbol_list_obstack): New variable.
2148
2149 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
2150 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
2151 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
2152 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
2153 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
2154 ada_variant_discrim_name, field_alignment, dynamic_template_type,
2155 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
2156 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
2157 and strcmp.
2158
2159 (ada_get_field_index): New function.
2160 (lim_warning): New function.
2161 (ada_translate_error_message): New function.
2162 (MAX_OF_SIZE): New function.
2163 (MIN_OF_SIZE): New function.
2164 (UMAX_OF_SIZE): New function.
2165 (UMIN_OF_SIZE): New function.
2166 (discrete_type_high_bound): New function.
2167 (discrete_type_low_bound): New function.
2168 (base_type): New function.
2169 (do_command): Remove.
2170
2171 (ada_update_initial_language): Use language_ada, not language_unknown.
2172 (ada_encode): Renamed from ada_mangle.
2173 Obey ADA_RETAIN_DOTS.
2174 (ada_decode): Renamed from ada_demangle.
2175 Update coding conventions.
2176 (decoded_names_store): New hash table.
2177 (ada_decode_symbol): New function.
2178 (ada_la_decode): New function.
2179
2180 (modify_general_field): Correct computations of offset and bit
2181 position.
2182 (desc_base_type): Handle ref types, too.
2183 (ada_is_direct_array_type): New function.
2184
2185 (ada_is_simple_array): Rename to ada_is_simple_array_type.
2186 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
2187 (ada_is_bogus_array_descriptor,ada_type_of_array,
2188 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
2189 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
2190 ada_is_array_descriptor_type.
2191
2192 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
2193 (ada_is_packed_array_type): Handle pointers or
2194 references to packed arrays as well.
2195 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
2196 (decode_packed_array_type): Search for the packed array type
2197 symbol in the currently selected block and associated
2198 superblocks too.
2199 Use lookup_symbol again.
2200
2201 (decode_packed_array): Handle pointers and references.
2202 Update call to coerce_unspec_val_to_type.
2203 (decode_packed_array_type,value_subscript_packed): Limit warnings.
2204 (ada_value_primitive_packed_val): Improve comment.
2205
2206 (ada_index_type): Substitute int type for "undefined".
2207 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
2208 ada_array_langth, ada_is_string_type): Use renamed
2209 ada_is_simple_array_type.
2210 (empty_array): New function.
2211
2212 (ada_resolve): Rename to resolve.
2213 (resolve): Make static.
2214 Call renamed resolve_subexp.
2215 Update comment.
2216 (ada_resolve_subexp): Rename to resolve_subexp.
2217 (resolve_subexp): Update comment.
2218 Decomment disabled code.
2219 Add LOC_COMPUTED* cases.
2220 Modify to use temporary struct symbols (marked as being in
2221 UNDEF_NAMESPACE) to indicate unresolved names, instead of
2222 OP_UNRESOLVED_VALUE.
2223 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
2224 Add OP_STRING case.
2225 Remove OP_ARRAY.
2226 Use SYMBOL_PRINT_NAME instead of ada_demangle.
2227 Use new ada_lookup_symbol_list interface.
2228 Use new ada_resolve_function interface.
2229 Remove OP_TYPE case.
2230
2231 (ada_args_match): Idiot proof against null actuals.
2232 Use intermediate variables to clarify.
2233 (ada_resolve_function): Update comment and interface.
2234 (mangled_ordered_before): Rename to encoded_ordered_before and
2235 update comment.
2236 (sort_choices): Update comment and interface.
2237 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
2238 (user_select_syms): New interface.
2239 Use new sort_choices interface.
2240 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
2241 (possible_user_operator_p): Idiot-proof against null values.
2242 (ada_simple_renamed_entity): Don't make cleanup; rely on
2243 caller to free result string.
2244 Remove const from return type.
2245 (make_array_descriptor): Rename uses of place_on_stack to
2246 ensure_lval.
2247 Make sure that arrays are on stack.
2248
2249 (HASH_SIZE): Define.
2250 (struct cache_entry): Define.
2251 (cache_space): Define.
2252 (cache): Define.
2253 (clear_ada_sym_cache): New function.
2254 (find_entry): New function.
2255 (lookup_cached_symbol): New function.
2256 (defn_vector_size): Define.
2257 (cache_symbol): New function.
2258 (defn_symbols): Remove.
2259
2260 (standard_lookup): Use lookup_symbol_in_language to get effect of
2261 C lookup.
2262 Cache results.
2263
2264 (symbol_completion_match): New function.
2265 (symbol_completion_add): New function.
2266 (ada_make_symbol_completion_list): New function.
2267
2268 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
2269 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
2270 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2271 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
2272
2273 (ada_lookup_simple_minsym): New function.
2274 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
2275
2276 (add_symbols_from_enclosing_procs): New interface.
2277 Conditionalize more helpfully.
2278 Don't bother if program isn't running.
2279 Use new interface to get_frame_block.
2280 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
2281
2282 (remove_extra_symbols): New interface.
2283 (xget_renaming_scope): New function.
2284 (is_package_name): New function.
2285 (renaming_is_visible): New function.
2286 (remove_out_of_scope_renamings): New function.
2287
2288 (ada_lookup_symbol_list): New interface.
2289 Properly reinitialize the symbol list obstack.
2290 Don't call add_symbols_from_enclosing_procs if we start from a
2291 static or global block.
2292 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
2293 add_symbols_from_enclosing_procs.
2294 Add symtab data to cached entries.
2295 Handle symbols prefixed with
2296 "standard__" specially; strip prefix and don't look in local symbols.
2297 Do not include out of scope renaming symbols in list of
2298 symbols returned.
2299 Add const to block parameter.
2300 Move check for non-local, non-global symbols earlier.
2301 Remove timing stuff.
2302 (ada_lookup_symbol): New interface.
2303 Find symtab as well.
2304 (ada_lookup_symbol_nonlocal): New function.
2305
2306 (is_name_suffix): Enhance suffix detection to recognize
2307 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
2308 (is_dot_digits_suffix): New function.
2309 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
2310
2311 (ada_add_block_symbols): New interface. Use obstack to return results
2312 in a vector of struct ada_symbol_infos. Add symtab argument.
2313 Use new interface to add_defn_to_vec.
2314 Remove calls to fill_in_ada_prototype.
2315 Use BLOCK_BUCKETS, BLOCK_BUCKET.
2316
2317 (ada_finish_decode_line_1): Add const qualification to local to fix
2318 warning.
2319 Start looking in static block for functions to avoid attempts
2320 to search frame chain for up-level variables.
2321 Adapt to new ada_sals_for_line interface.
2322 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
2323 Handle quoting of the function name inside the spec string.
2324 Skip prologue when funfirstline is set and update the
2325 function documentation to that effect.
2326
2327 (debug_print_lines, debug_print_block, debug_print_blocks,
2328 debug_print_symtab): Remove.
2329
2330 (ada_main_name): New function.
2331 (ada_exception_breakpoint_type): New function.
2332 (is_known_support_routine): New function.
2333 (ada_find_printable_frame): Renamed from find_printable_frame and made
2334 global.
2335 Remove level parameter.
2336 Use new interface to select_frame.
2337
2338 (begin_command): Remove.
2339 (ada_adjust_exception_stop): New function.
2340 (ada_print_exception_stop): New function.
2341 (exception_name_from_cond): New function.
2342 (ada_report_exception_break): Replace disabled code with
2343 conditionalization on GNAT_GDB.
2344 Get the exception name from the condition string.
2345 Remove and move functionality into new functions
2346 ada_print_exception_breakpoint_task and
2347 ada_print_exception_breakpoint_nontask.
2348 (error_breakpoint_runtime_sym_not_found): New function.
2349 (is_runtime_sym_defined): New function.
2350 (ada_breakpoint_rewrite): Uncomment suppressed code.
2351 Use symbolic error-message and runtime-symbol names.
2352 Surround runtime symbol names in quotes.
2353 Allow non-specific breakpoints on exceptions and assertions before
2354 program starts.
2355
2356 (ada_is_tagged_type): Add parameter.
2357 (ada_is_tag_type): New function.
2358 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
2359 (ada_variant_discrim_type): Ditto.
2360 (value_tag_from_contents_and_address): New function.
2361 (type_from_tag): New function.
2362 (struct tag_args): New structure used to communicate with
2363 ada_tag_name_1.
2364 (ada_tag_name_1): New function.
2365 (ada_tag_name): New function.
2366
2367 (ada_scan_number): Update comment.
2368 (find_struct_field): New function.
2369 (ada_search_struct_field): Make static.
2370 (ada_value_struct_elt): New version that returns references when
2371 given pointers or references to structs.
2372 (ada_lookup_struct_elt_type): Add 'refok' parameter.
2373 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
2374 interface.
2375 (ada_value_ind): Use new ada_to_fixed_value interface.
2376 (ada_coerce_ref): Ditto.
2377 (field_offset): Remove.
2378
2379 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
2380 (ada_find_renaming_symbol): New function.
2381 (ada_prefer_type): Prefer named types over unnamed ones.
2382 (variant_field_index): New function.
2383 (contains_variant_part): Removed: subsumed by variant_field_index.
2384 (ada_template_to_fixed_record_type): New function, mostly from
2385 template_to_fixed_record_type.
2386 (template_to_fixed_record_type):
2387 Do not scan the type fields beyond the last one; prevents a
2388 potential SEGV.
2389 Handle case where variant field is listed BEFORE discriminant it
2390 depends on.
2391 Fix calculation of record length when bit length is
2392 not evenly divisible by char length.
2393 Move code to ada_template_to_fixed_record_type and call it.
2394
2395 (template_to_static_fixed_type): Revise comment.
2396 Modify to work on ordinary record types as well as templates,
2397 so as to handle fields that use ___XVE or ___XVU encodings.
2398 (to_record_with_fixed_variant_part): Fill out comment.
2399 Initialize C++ stuff in right type.
2400 Allow case where DVAL is null.
2401 Handle case where variant field is not last.
2402 Fix typo concerning record length.
2403 (to_fixed_record_type): Decomment disabled code.
2404 (to_fixed_record_type): Use variant_field_index instead of
2405 contains_variant_part.
2406 (to_fixed_variant_branch_type): Ditto.
2407 (to_fixed_array_type): Decomment disabled code.
2408 (ada_to_fixed_type): Convert tagged types to the specific type.
2409 Deactivate the size-check for array types in order to avoid
2410 some false size alarms.
2411 (to_static_fixed_type): Decomment disabled code.
2412 Modify to call template_to_static_fixed_type
2413 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
2414 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
2415 Remove valaddr argument, as it is never really used.
2416 (ada_to_fixed_value): Change interface to act on single struct value*
2417 operand.
2418 (adjust_pc_past_prologue): New function.
2419 (ada_attribute_name): Modify to take enum exp_opcode argument.
2420
2421 (ada_enum_name): Recognize new homonym-distinguishing convention.
2422 Adjust local variable's type to remove compiler warning.
2423 Fix a small problem in the part that unqualifies the enumeration name.
2424 (ada_value_binop): New function.
2425 (ada_value_equal): New function.
2426
2427 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
2428 Don't give error message when not doing normal evaluation
2429 and a tagged type doesn't seem to contain a structure member.
2430 Give error message for packed arrays.
2431 For indexing arrays, handle pointers to packed arrays correctly.
2432 Handle case of 'first and 'last attributes of bare integral type
2433 without encoded subtype info.
2434 Remove some unnecessary casts.
2435 Fix uninitialized value of type in computing 'first, 'last, or 'length
2436 of array object.
2437 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
2438 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
2439 calls.
2440 Attributes are now exp_opcode values.
2441 Correct treatment of 'modulus.
2442 Better error message for taking 'length of wrong kind of type;
2443 improve comment.
2444 Change EVAL_NORMAL to noside for consistency.
2445 Use ada_value_binop for DIV, MOD, REM.
2446 Make special case out of array of length 0, since an argument
2447 of 0 upsets some platforms' malloc.
2448 Use OP_STRING instead of OP_ARRAY.
2449 For slice, add check that we have an array type before extracting
2450 a slice out of it. Avoids a SEGV.
2451 When evaluating an array slice, if the array type is a reference to
2452 an aligner type, then replace the aligner type by the actual type.
2453 Decomment disabled code.
2454 Remove some dead code.
2455 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
2456 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
2457 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
2458 and UNOP_MBR to UNOP_IN_RANGE.
2459 If an array type has a parallel ___XVE type, then use it.
2460 Turn arrays into pointers for lvalue arrays.
2461 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
2462 bounds error and handle 0-length slices.
2463 Use lim_warning.
2464 When selecting fields, apply ada_to_fixed_value (because the fields
2465 might have ___XVU or ___XVE encodings even if not dynamic.)
2466 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
2467 (ada_is_system_address_type): New function.
2468
2469 (get_var_value): Use new interface to ada_lookup_symbol_list.
2470 (get_int_var_value): New interface.
2471 (to_fixed_range_type): Allow unknown bound, with warning.
2472 (ada_is_modular_type): Decomment disabled code.
2473 (ADA_OPERATORS): New definition.
2474 (ada_operator_length): New function.
2475 (ada_expr_op_name): New function.
2476 (ada_forward_operator_length): New function.
2477 (ada_dump_subexp_body): New function.
2478 (ada_print_subexp): New function.
2479 (ada_exp_descriptor): New constant.
2480 (ada_op_print_tab): Add 'size. Remove FIXMEs.
2481 (ada_language_defn): Add ada_exp_descriptor entry.
2482 Change ada_parse => parse.
2483 Add post-parser entry.
2484 Use ada-specific non-local symbol lookup.
2485 Don't use C-style arrays.
2486 String lower-bound is 1.
2487 Decomment disabled code.
2488 (parse): New function.
2489 New fields ada_translate_error_message, ada_lookup_symbol,
2490 ada_lookup_minimal_symbol.
2491
2492 * ada-lang.h: Update copyright dates.
2493 Replace the mangle/demangle terminology throughout by the
2494 more appropriate encode/decode one.
2495 Include breakpoint.h.
2496 Forward declare struct partial_symbol, struct block.
2497 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
2498 (EXTRACT_ADDRESS): Remove.
2499 (EXTRACT_INT): Remove.
2500 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
2501 (MAX_ENCLOSING_FRAME_LEVELS): Define.
2502 (MAX_RENAMING_CHAIN_LENGTH): Define.
2503 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
2504
2505 (enum task_states): Remove.
2506 ada_task_states: Remove.
2507 (fat_string): Remove.
2508 (struct entry_call): Remove.
2509 (struct task_fields): Remove.
2510 (struct task_entry): Remove.
2511
2512 (struct ada_symbol_info): Define.
2513 (enum ada_attribute): Remove.
2514 (enum ada_operator): Define.
2515
2516 (ada_get_field_index): Declare.
2517 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
2518 (ada_is_simple_array): Rename to ada_is_simple_array_type.
2519 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
2520 (ada_lookup_symbol_list): New interface.
2521 (ada_decode_symbol): Declare.
2522 (ada_decode): Declare.
2523 (ada_lookup_symbol): New interface.
2524 (ada_update_initial_language): Declare.
2525 (ada_lookup_simple_minsym): Declare.
2526 (user_select_syms): New interface.
2527 (ada_sals_for_line): Declare.
2528 (ada_is_tagged_type): New interface.
2529 (ada_tag_name): Declare.
2530 (ada_lookup_struct_elt_type): Remove declaration.
2531 (ada_search_struct_field): Remove declaration.
2532 (ada_attribute_name): New interface.
2533 (ada_is_system_address_type): Declare.
2534 (ada_to_fixed_value): Remove declaration.
2535 (ada_template_to_fixed_record_type_1): Declare.
2536 (get_int_var_value): New interface.
2537 (ada_find_any_symbol): Declare.
2538 (ada_find_renaming_symbol): Declare.
2539 (ada_mangle): Rename to ada_encode.
2540 (ada_simple_renamed_entity): Remove const.
2541 (ada_main_name): Declare.
2542 (get_current_task): Rename to ada_get_current_task.
2543 (get_entry_number): Remove declaration.
2544 (ada_report_exception_break): Remove declaration.
2545 (ada_print_exception_breakpoint_nontask): Declare.
2546 (ada_print_exception_breakpoint_task): Declare.
2547 (ada_find_printable_frame): Declare.
2548
2549 * ada-lex.l: Update copyright notices.
2550 Use xmalloc and xfree instead of malloc and free.
2551 Use new interface to name_lookup.
2552 Use new interface to
2553 ada_mangle=>ada_encode.
2554 Redo handling of '$...' variable to parallel current treatment
2555 in c-exp.y.
2556 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
2557 digit_to_int, strtoulst, processInt, processReal, processId,
2558 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
2559 yywrap): Protoize.
2560
2561 (processInt): Use cast to remove harmless warning.
2562 (processReal): Modify to get rid of compiler warning on scan formats.
2563
2564 (processId): Replace xmalloc with obstack_alloc for name and remove
2565 call to ada_name_string_cleanup.
2566 Remove obsolete disabled code.
2567 (name_lookup): Ditto.
2568 New interface.
2569 Use obsavestring on temp_parse_space instead of savestring
2570 on name, and remove call to ada_name_string_cleanup.
2571 Free string returned from ada_simple_renamed_entity.
2572 Use new interface to ada_lookup_symbol_list.
2573 Decomment disabled code.
2574 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
2575 not types.
2576 When a type name lookup succeeds as a result of
2577 lookup_primitive_typename, check for regular type entry that has not
2578 yet been read in.
2579 Limit length of chain of renamed symbols we are willing to follow.
2580 Do not break names beginning with "standard__" into segments.
2581 (block_lookup): Use new interface to ada_lookup_symbol_list.
2582
2583 * ada-typeprint.c: Update copyright notice.
2584 (demangled_type_name): Rename to decoded_type_name.
2585 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
2586 (print_range_bound): Correct handling of negative
2587 bounds that make the index type looked unsigned under STABS.
2588 (print_dynamic_range_bound): Use new interface to get_int_var_value.
2589 (print_range_type_named): Use the builtin int type if no type
2590 corresponding to the given type name could be found.
2591 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
2592 Add some bullet-proofing.
2593 (print_variant_clauses): Allow for variant branches with ___XVU
2594 encodings that are not dynamic fields.
2595 Use new interface to ada_is_tagged_type.
2596 (print_record_type): Allow for fields with ___XVE encodings that
2597 are not dynamic fields.
2598 Use new interface to ada_is_tagged_type.
2599 (ada_print_type): ada_is_array_descriptor =>
2600 ada_is_array_descriptor_type.
2601
2602 * ada-valprint.c: Update copyright notice.
2603 Include gdb_string.h
2604 Include infcall.h
2605 (ui_memcpy): New function.
2606 (ada_print_floating): New function.
2607 (ada_print_str): Order arguments correctly.
2608 Correct handling of empty arrays and arrays of 0-length items.
2609 ada_is_array_descriptor => ada_is_array_descriptor_type
2610 Print values of type System.Address in hexadecimal format.
2611 Use ada_print_floating to print floating-point numbers in Ada format.
2612 Print class tag values with type names.
2613 No longer print the address of reference values. Avoids
2614 a potential confusion.
2615 (ada_value_print): Stop printing the object type for reference
2616 values, but preserve that behavior for access types. Avoids
2617 a potential confusion.
2618 Simplify one conditional expression, as the first part is now
2619 necessarily true.
2620 ada_is_array_descriptor => ada_is_array_descriptor_type
2621 Add check for arrays for null records, and print them by hand.
2622
2623 2004-06-01 Jim Blandy <jimb@redhat.com>
2624
2625 * ppc-tdep.h: Delete unused 'regoff' member.
2626 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
2627
2628 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
2629
2630 Fix PR symtab/1661.
2631 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
2632 (hpread_read_struct_type): Likewise.
2633
2634 2004-06-01 Andrew Cagney <cagney@gnu.org>
2635
2636 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
2637 instead of xasprintf.
2638 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
2639 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
2640 (mi_cmd_data_list_register_names)
2641 (mi_cmd_data_list_changed_registers)
2642 (mi_cmd_data_list_register_values)
2643 (get_register, mi_cmd_data_write_register_values)
2644 (mi_cmd_data_write_register_values)
2645 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
2646 (mi_cmd_target_download, mi_cmd_target_select)
2647 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
2648 (mi_execute_cli_command, mi_execute_async_cli_command)
2649 (mi_execute_async_cli_command): Ditto.
2650 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
2651 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
2652
2653 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
2654 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
2655 error_last_message instead of mi_error_last_message.
2656 * mi/mi-main.c (mi_error_last_message): Delete function.
2657
2658 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
2659 "invalid number of columns" error. Delete redundant "out of
2660 memory" check.
2661
2662 2004-05-31 Mark Kettenis <kettenis@gnu.org>
2663
2664 * i386bsd-nat.c: Don't include <sys/procfs.h>.
2665 (gregset_t, fpregset_t): Remove typedefs.
2666 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
2667 (REG_OFFSET): Rename argument.
2668 (i386bsd_r_reg_offset): Rename from reg_offset.
2669 (REG_ADDR): Remove macro.
2670 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
2671 functions.
2672 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
2673 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
2674 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
2675 instead of supply_gregset.
2676 (store_inferior_registers): Use `struct reg' and `struct fpreg'
2677 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
2678 instead of fill_gregset.
2679 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
2680
2681 * i386bsd-nat.c: Don't include "gregset.h".
2682 (supply_gregset, fill_gregset): Make static.
2683 (supply_fpregset, fill_fpregset): Remove.
2684 * Makefile.in (i386bsd-nat.o): Update dependencies.
2685
2686 2004-05-30 Mark Kettenis <kettenis@gnu.org>
2687
2688 * fbsd-proc.c: Include "regcache.h", "regset.h" and
2689 "gdb_assert.h". Con't include "gregset.h".
2690 (fbsd_make_corefile_notes): Use regset-based core file support
2691 instead off fill_gregset and fill_fpregset.
2692 * Makefile.in (fbsd-proc.o): Update dependencies.
2693
2694 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
2695 instructions.
2696 (m88k_frame_prev_register): Simplify code a bit.
2697
2698 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
2699 (amd64_collect_fpregset): New function.
2700 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
2701
2702 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
2703
2704 * i386-tdep.c (i386_supply_gregset): Adjust comment.
2705 (i386_collect_gregset): New function.
2706 (i386_supply_fpregset): Adjust comment.
2707 (i386_collect_fpregset): New function.
2708 (i386_regset_from_core_section): Use i386_collect_gregset and
2709 i386_collect_fpregset.
2710
2711 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
2712 handle VALUEP being null.
2713
2714 * regset.h (collect_regset_ftype): Unconstify fourth argument.
2715
2716 2004-05-29 Mark Kettenis <kettenis@gnu.org>
2717
2718 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
2719
2720 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
2721 assembler in OpenBSD 3.5-current.
2722 (amd64obsd_sigcontext_addr): Likewise.
2723
2724 2004-05-28 Jim Blandy <jimb@redhat.com>
2725
2726 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
2727 register set, so our regcache isn't declared "legacy" and our E500
2728 pseudoregister read and write functions aren't ignored.
2729 (rs6000_register_byte, rs6000_register_raw_size,
2730 rs6000_register_virtual_type, rs6000_register_convertible,
2731 rs6000_register_convert_to_virtual,
2732 rs6000_register_convert_to_raw): Deleted.
2733 (rs6000_register_type, rs6000_convert_register_p,
2734 rs6000_register_to_value, rs6000_value_to_register): New
2735 functions.
2736 (rs6000_gdbarch_init): Don't register
2737 gdbarch_deprecated_register_size,
2738 gdbarch_deprecated_register_bytes,
2739 gdbarch_deprecated_register_byte,
2740 gdbarch_deprecated_register_raw_size,
2741 gdbarch_deprecated_register_virtual_type,
2742 gdbarch_deprecated_register_convertible,
2743 gdbarch_deprecated_register_convert_to_virtual, or
2744 gdbarch_deprecated_register_convert_to_raw methods. Instead,
2745 register gdbarch_register_type, gdbarch_convert_register_p,
2746 gdbarch_register_to_value, and gdbarch_value_to_register methods.
2747
2748 2004-05-26 Jim Blandy <jimb@redhat.com>
2749
2750 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
2751 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
2752 functions, updated to match the register numberings used in GCC.
2753 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
2754 rs6000_dwarf2_reg_to_regnum as register number conversions
2755 functions for STABS and Dwarf2.
2756
2757 2004-05-26 Randolph Chung <tausq@debian.org>
2758
2759 * infttrace.h (target_waitkind): Forward declare type instead of pulling
2760 in header file.
2761
2762 2004-05-25 Joel Brobecker <brobecker@gnat.com>
2763
2764 * NEWS: Document new "start" command.
2765
2766 2004-05-25 Randolph Chung <tausq@debian.org>
2767
2768 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
2769 hppa-linux.
2770
2771 2004-05-25 Randolph Chung <tausq@debian.org>
2772
2773 * hppa-hpux-tdep.c (offsetof): Define.
2774 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
2775 (hppa32_hpux_frame_base_before_sigtramp)
2776 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
2777 (hppa64_hpux_frame_saved_pc_in_sigtramp)
2778 (hppa64_hpux_frame_base_before_sigtramp)
2779 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
2780 functions.
2781 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
2782 (hppa_hpux_sigtramp_frame_unwind_cache)
2783 (hppa_hpux_sigtramp_frame_this_id)
2784 (hppa_hpux_sigtramp_frame_prev_register)
2785 (hppa_hpux_sigtramp_frame_unwind)
2786 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
2787 (hppa_hpux_init_abi): Register sigtramp unwinder.
2788 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
2789
2790 2004-05-25 Randolph Chung <tausq@debian.org>
2791
2792 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
2793 and multiple stack unwinds.
2794 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
2795
2796 2004-05-25 Andrew Cagney <cagney@gnu.org>
2797
2798 * symfile.h (symbol_file_add_from_memory): Delete declaration.
2799 * symfile-mem.h: Delete file.
2800 * symfile-mem.c: Do not include "symfile-mem.h".
2801 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
2802 "struct bfd_section". When an error do not bother returning NULL.
2803 (add_symbol_file_from_memory_command): Use "struct bfd" and
2804 "struct bfd_section".
2805 * Makefile.in (symfile_mem_h): Delete.
2806 (symfile-mem.o): Update dependencies.
2807
2808 2004-05-25 Nick Roberts <nickrob@gnu.org>
2809
2810 * gdb-mi.el: New file.
2811
2812 2004-05-25 Andrew Cagney <cagney@gnu.org>
2813
2814 * inftarg.c: Include "observer.h".
2815 (child_attach, child_create_inferior): Notify inferior_created.
2816 * corelow.c: Include "observer.h".
2817 (core_open): Notify inferior_created.
2818 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
2819
2820 2004-05-25 Andrew Cagney <cagney@gnu.org>
2821
2822 * target.h (struct target_ops): Add from_tty to
2823 to_create_inferior.
2824 (target_create_inferior, find_default_create_inferior): Update.
2825 * infcmd.c (run_command): Update.
2826 * wince.c (child_create_inferior): Update.
2827 * win32-nat.c (child_create_inferior): Update.
2828 * uw-thread.c (uw_thread_create_inferior): Update.
2829 * thread-db.c (thread_db_create_inferior): Update.
2830 * target.c (debug_to_create_inferior)
2831 (find_default_create_inferior): Update.
2832 (maybe_kill_then_create_inferior): Update.
2833 * sol-thread.c (sol_thread_create_inferior): Update.
2834 * remote.c (extended_remote_async_create_inferior)
2835 (extended_remote_create_inferior): Update.
2836 * remote-vx.c (vx_create_inferior): Update.
2837 * remote-st.c (st2000_create_inferior): Update.
2838 * remote-sim.c (gdbsim_create_inferior): Update.
2839 * remote-sds.c (sds_create_inferior): Update.
2840 * remote-rdp.c (remote_rdp_create_inferior): Update.
2841 * remote-rdi.c (arm_rdi_create_inferior): Update.
2842 * remote-m32r-sdi.c (m32r_create_inferior): Update.
2843 * remote-e7000.c (e7000_create_inferior): Update.
2844 * procfs.c (procfs_create_inferior): Update.
2845 * ocd.c (ocd_create_inferior): Update.
2846 * ocd.h (ocd_create_inferior): Update.
2847 * nto-procfs.c (procfs_create_inferior): Update.
2848 * monitor.c (monitor_create_inferior): Update.
2849 * lin-lwp.c (lin_lwp_create_inferior): Update.
2850 * inftarg.c (child_create_inferior): Update.
2851 * hpux-thread.c (hpux_thread_create_inferior): Update.
2852 * gnu-nat.c (gnu_create_inferior): Update.
2853
2854 2004-05-25 Andrew Cagney <cagney@gnu.com>
2855
2856 * MAINTAINERS: Update e-mail address.
2857
2858 2004-05-24 Randolph Chung <tausq@debian.org>
2859
2860 * thread.c (info_threads_command, thread_apply_all_command)
2861 (thread_apply_command, thread_command, do_captured_thread_select):
2862 Remove HPUXHPPA-specific code.
2863
2864 2004-05-24 Randolph Chung <tausq@debian.org>
2865
2866 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
2867 unused symbols.
2868 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
2869 references.
2870
2871 2004-05-24 Joel Brobecker <brobecker@gnat.com>
2872
2873 * infcmd.c (kill_if_already_running): New function, extracted
2874 from run_command().
2875 (run_command): Replace extracted code by call to
2876 kill_if_already_running().
2877 (start_command): New function.
2878 (_initialize_infcmd): Add "start" command.
2879
2880 2004-05-24 Mark Kettenis <kettenis@gnu.org>
2881
2882 Add OpenBSD/m88k support.
2883 * NEWS (New native configurations): Mention OpenBSD/m88k.
2884 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
2885 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
2886 * Makefile.in (m88k_tdep_h): New variable.
2887 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
2888 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
2889 * configure.host: Add m88*-*-openbsd*.
2890 * configure.tgt: Add m88*-*-openbsd*.
2891
2892 2004-05-24 Jim Blandy <jimb@redhat.com>
2893
2894 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
2895 to approve changes.
2896
2897 2004-05-24 Kevin Buettner <kevinb@redhat.com>
2898
2899 * symtab.c (fixup_section): Search section table when lookup by
2900 name fails.
2901
2902 2004-05-24 Randolph Chung <tausq@debian.org>
2903
2904 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
2905 be "small_struct".
2906
2907 2004-05-24 Mark Kettenis <kettenis@gnu.org>
2908
2909 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
2910 register number in regcache_raw_collect call.
2911 (m68kbsd_collect_fpregset): Likewise.
2912 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
2913
2914 * regset.h (struct regset): Add back `regset' member.
2915
2916 2004-05-23 Mark Kettenis <kettenis@gnu.org>
2917
2918 * configure.in: Check for td_pcb in `struct thread'.
2919 * configure, config.in: Regenerated.
2920
2921 * dpx2-nat.c: Remove file.
2922 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
2923 (dpx2-nat.o): Remove dependencies.
2924
2925 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
2926 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
2927 (amd64obsd_supply_pcb): New function.
2928 (_initialize_amd64obsd_nat): Enable libkvm interface.
2929 * Makefile.in (amd64obsd-nat.o): Update dependencies.
2930 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
2931 (LOADLIBES): New variable.
2932
2933 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
2934 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
2935 (sparc32nbsd_supply_pcb): New function.
2936 (_initialize_sparcnbsd_nat): Enable libkvm interface.
2937 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
2938 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2939 (LOADLIBES): New variable.
2940
2941 2004-05-22 Mark Kettenis <kettenis@gnu.org>
2942
2943 * bsd-kvm.c, bsd-kvm.h: New files.
2944 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2945 "bsd-kvm.h".
2946 (i386fbsd_supply_pcb): New function.
2947 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
2948 (i386fbsd-nat.o): Update dependencies.
2949 (bsd_kvm_h): New variable.
2950 (bsd-kvm.o): New dependency.
2951 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2952 (LOADLIBES): New variable.
2953
2954 * regset.c: Tweak comment.
2955 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
2956 macro.
2957 * regset.h: Update copyright year.
2958 (struct regset): Remove `descr' member, add `gdbarch' member.
2959 (regset_alloc): Adjust prototype and comment.
2960 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
2961 (i386_supply_fpregset): Likewise.
2962 (i386_regset_from_core_section): Update call to regset_alloc.
2963 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
2964 REGSET->arch.
2965 (i386obsd_aout_regset_from_core_section): Update call to
2966 regset_alloc.
2967 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
2968 REGSET->arch.
2969 (i386nbsd_aout_regset_from_core_section): Update call to
2970 regset_alloc.
2971 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
2972 REGSET->arch.
2973 (amd64_regset_from_core_section): Update call to regset_alloc.
2974 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
2975 REGSET->arch.
2976 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
2977 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
2978 &sparc32nbsd_gregset in sparc32_supply_gregset call.
2979 (sparc32nbsd_init_abi): Update call to regset_alloc.
2980 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
2981 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
2982 (sparc64obsd_init_abi): Update call to regset_alloc.
2983 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
2984 &sparc64nbsd_gregset in sparc64_supply_gregset call.
2985 (sparc64nbsd_init_abi): Update call to regset_alloc.
2986 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
2987 &sparc64fbsd_gregset in sparc64_supply_gregset call.
2988 (sparc64fbsd_init_abi): Update call to regset_alloc.
2989
2990 2004-05-22 Jim Blandy <jimb@redhat.com>
2991
2992 * ppc-tdep.h (spe_register_p): New declaration.
2993 (struct gdbarch_tdep): New members: ppc_acc_regnum and
2994 ppc_spefscr_regnum.
2995 * rs6000-tdep.c (spe_register_p): New function.
2996 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
2997 spefscr.
2998 (rs6000_gdbarch_init): Initialize the new members of the tdep
2999 structure.
3000
3001 2004-05-21 Jim Blandy <jimb@redhat.com>
3002
3003 * ppc-linux-nat.c (fetch_register): Move code back to be next
3004 to the comment that describes it. (Moved code, instead of
3005 comment, for symmetry with store_register.)
3006
3007 Allocate regset structures in the gdbarch's obstack, not using
3008 xmalloc.
3009 * regset.c (regset_alloc): Renamed from regset_xmalloc.
3010 Add 'arch' argument. Allocate the regset on arch's obstack, not
3011 using xmalloc.
3012 * regset.h (regset_alloc): Update declaration.
3013 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
3014 gdbarch argument.
3015 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3016 * i386-tdep.c (i386_regset_from_core_section): Same.
3017 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3018 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3019 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3020 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3021 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3022 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3023
3024 2004-05-21 Joel Brobecker <brobecker@gnat.com>
3025
3026 * config/djgpp/fnchange.lst: Undo previous change, was useless.
3027
3028 2004-05-21 Jim Blandy <jimb@redhat.com>
3029
3030 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
3031 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
3032
3033 2004-05-20 Jim Blandy <jimb@redhat.com>
3034
3035 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
3036
3037 2004-05-20 Mark Kettenis <kettenis@gnu.org>
3038
3039 * regset.h: Make prototype const-correct.
3040 * regset.c (regset_xmalloc): Make const-correct.
3041
3042 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
3043
3044 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
3045 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
3046 (symbol_search_name): Declare.
3047
3048 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
3049 (iter_name_next_hashed): Ditto.
3050 (iter_name_next_linear): Ditto.
3051 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
3052
3053 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
3054 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
3055 (symbol_search_name): New function.
3056
3057 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
3058
3059 * minsyms.c (build_minimal_symbol_hash_tables): Change
3060 test for adding to demangled hash table to check for difference
3061 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
3062
3063 2004-05-19 Jim Blandy <jimb@redhat.com>
3064
3065 Use a constructor function to create regset structures.
3066 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
3067 (struct regset): Use supply_regset_ftype. Add new
3068 'collect_regset' member.
3069 (regset_xmalloc): New declaration.
3070 * regset.c: New file.
3071 * am64-tdep.c (amd64_regset_from_core_section): Use
3072 regset_xmalloc to construct regset structures.
3073 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3074 * i386-tdep.c (i386_regset_from_core_section): Same.
3075 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3076 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3077 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3078 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3079 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3080 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3081 * Makefile.in (COMMON_OBS): Add regset.o.
3082 (regset.o): New rule.
3083
3084 2004-05-19 Joel Brobecker <brobecker@gnat.com>
3085
3086 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
3087 and pthread_cond_wait.c.
3088
3089 2004-05-18 Jim Blandy <jimb@redhat.com>
3090
3091 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
3092 before the mach-specific switch, and then let the individual cases
3093 override the defaults, rather than leaving them uninitialized
3094 until the switch and then setting them in each case.
3095
3096 2004-05-18 Randolph Chung <tausq@debian.org>
3097
3098 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
3099 millicode functions.
3100
3101 2004-05-18 Randolph Chung <tausq@debian.org>
3102
3103 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
3104 references to dld_flags_buffer consistent.
3105
3106 2004-05-18 Randolph Chung <tausq@debian.org>
3107
3108 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
3109 it for unwinding the stack.
3110
3111 2004-05-18 Randolph Chung <tausq@debian.org>
3112
3113 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
3114 Undefine these so we can overide them using gdbarch.
3115
3116 2004-05-18 Randolph Chung <tausq@debian.org>
3117
3118 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
3119 handling for 64-bit HPUX (elf).
3120
3121 2004-05-18 Daniel Jacobowitz <dan@debian.org>
3122
3123 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
3124 constants.
3125 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3126 * ia64-tdep.c (examine_prologue): Likewise.
3127 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
3128 * v850-tdep.c (v850_fix_call_dummy): Likewise.
3129
3130 2004-05-18 Mark Kettenis <kettenis@gnu.org>
3131
3132 * vax-tdep.c (vax_return_value): Implement
3133 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3134
3135 2004-05-17 Mark Kettenis <kettenis@gnu.org>
3136
3137 * vax-tdep.c (vax_return_value): Fix typo.
3138
3139 2004-05-17 Andrew Cagney <cagney@redhat.com>
3140
3141 * MAINTAINERS: Mark Salter was also responsible for
3142 testsuite/config/
3143
3144 * NEWS: Mention signal fixes.
3145
3146 2004-05-17 Randolph Chung <tausq@debian.org>
3147
3148 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
3149 check to see if we are unwinding an export stub. Export stubs clobber
3150 the %rp in the call path and stores the original rp in a stack slot.
3151
3152 2004-05-17 Jim Blandy <jimb@redhat.com>
3153
3154 * MAINTAINERS: Update address for J.T. Conklin.
3155
3156 2004-05-17 Randolph Chung <tausq@debian.org>
3157
3158 * hppa-tdep.c: Remove superfluous #include's.
3159 * Makefile.in (hppa-tdep.o): Update dependencies.
3160
3161 2004-05-17 Randolph Chung <tausq@debian.org>
3162
3163 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
3164 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
3165 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
3166 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
3167 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
3168 Remove static function declarations.
3169
3170 2004-05-17 Mark Kettenis <kettenis@gnu.org>
3171
3172 * alphabsd-nat.c: Update copyright year.
3173 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
3174
3175 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
3176 and M68K_A2_REGNUM.
3177
3178 * m68k-tdep.c (m68k_svr4_return_value): Implement
3179 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3180
3181 2004-05-16 Mark Kettenis <kettenis@gnu.org>
3182
3183 * sol-thread.c Update copyright year. Fix various coding
3184 standards violations. Tweak a few comments.
3185 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
3186 Delete prototypes.
3187
3188 2004-05-15 Randolph Chung <tausq@debian.org>
3189
3190 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
3191 as pointer instead of array reference since HPUX compiler does
3192 not accept unsized array arguments.
3193 * somsolib.c (dld_flags_buffer): Use constant array size.
3194
3195 2004-05-15 Mark Kettenis <kettenis@gnu.org>
3196
3197 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
3198 offset with decimal offset.
3199 (amd64obsd_sigcontext_addr): Return correct address for entire
3200 signal trampoline.
3201
3202 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
3203 instead of get_frame_base.
3204
3205 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
3206 (fill_gregset): Use regcache_raw_collect.
3207
3208 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
3209 ppcobsd-tdep.c.
3210
3211 * config/sparc/tm-nbsd64.h: Remove file.
3212 * config/tm-sunos.h: Remove file.
3213
3214 2004-05-15 Joel Brobecker <brobecker@gnat.com>
3215
3216 * rs6000-tdep.c (store_param_on_stack_p): New function,
3217 an improved version of some code extracted from skip_prologue().
3218 (skip_prologue): Use store_param_on_stack_p() to detect
3219 instructions saving a parameter on the stack. Detect when r0
3220 is used to save a parameter.
3221 Do not mark "li rx, SIMM" instructions as part of the prologue,
3222 unless the following instruction is also part of the prologue.
3223
3224 2004-05-14 Andrew Cagney <cagney@redhat.com>
3225
3226 * infrun.c (handle_inferior_event): Simplify
3227 STEP_OVER_UNDEBUGGABLE.
3228
3229 * infrun.c (handle_step_into_function): Delete function.
3230 (handle_inferior_event): Inline calls to
3231 handle_step_into_function.
3232
3233 2004-05-14 Jerome Guitton <guitton@gnat.com>
3234
3235 * rs6000-nat.c: Fix a comment.
3236
3237 2004-05-12 David Anderson <davea@sgi.com>
3238
3239 Committed by Jim Blandy <jimb@redhat.com>:
3240 * regcache.c (struct regcache_descr): fix comment spelling.
3241
3242 2004-05-13 J. Brobecker <brobecker@gnat.com>
3243
3244 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
3245 Fixes a link link failure.
3246
3247 2004-05-13 J. Brobecker <brobecker@gnat.com>
3248
3249 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
3250 error that was causing the build to fail.
3251
3252 2004-05-13 J. Brobecker <brobecker@gnat.com>
3253
3254 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
3255 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
3256
3257 2004-05-13 Andrew Cagney <cagney@redhat.com>
3258
3259 * infrun.c (handle_inferior_event): Check for
3260 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
3261 calls. Update comments.
3262
3263 2004-05-13 Jim Blandy <jimb@redhat.com>
3264
3265 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
3266 (fetch_regs_user_thread, fetch_regs_kernel_thread)
3267 (store_regs_user_thread, store_regs_kernel_thread): Use
3268 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
3269 * ppc-linux-nat.c (fill_gregset): Same.
3270 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3271 (ppc_linux_sigtramp_cache): Same.
3272 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
3273 (ppcnbsd_sigtramp_cache_init): Same.
3274 * rs6000-nat.c (fetch_core_registers): Same.
3275 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
3276 (rs6000_frame_cache): Same.
3277
3278 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
3279 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
3280 of assuming that the gprs are numbered starting with zero.
3281 * ppc-linux-nat.c (fill_gregset): Same.
3282 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
3283 * ppcnbsd-nat.c (getregs_supplies): Same.
3284 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
3285 * rs6000-nat.c (fetch_core_registers): Same.
3286 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
3287
3288 2004-05-07 Michael Snyder <msnyder@redhat.com>
3289
3290 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
3291 LOC_COMPUTED_ARG, and LOC_INDIRECT.
3292
3293 2004-05-13 Andrew Cagney <cagney@redhat.com>
3294
3295 * infrun.c (handle_inferior_event): Use frame_unwind_id.
3296
3297 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
3298
3299 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
3300 base_address for shared libraries.
3301
3302 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
3303
3304 * MAINTAINERS (write after approval): Add myself.
3305
3306 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3307
3308 * breakpoint.c (bpstat_stop_status): Add new argument
3309 STOPPED_BY_WATCHPOINT. Use it instead of testing
3310 target_stopped_data_address agaist 0 to check whether
3311 or not we stopped due to a hardware watchpoint.
3312 * breakpoint.h (bpstat_stop_status): Adapt prototype.
3313 * infrun.c (handle_inferior_event): Call bpstat_stop_status
3314 with new argument.
3315
3316 2004-05-12 Jim Blandy <jimb@redhat.com>
3317
3318 * configure.in: When checking whether we should use the -bbigtoc
3319 option, don't forget to restore the original value of LDFLAGS.
3320 * configure: Regenerated.
3321
3322 2004-05-12 Andrew Cagney <cagney@redhat.com>
3323
3324 * thread.c (load_infrun_state): Delete step_sp.
3325 * infrun.c (context_switch): Ditto.
3326 * inferior.h (step_sp): Ditto.
3327 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
3328 * gdbthread.h (struct thread_info, save_infrun_state)
3329 (restore_infrun_state): Ditto.
3330
3331 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
3332
3333 * MAINTAINERS (write after approval): Add myself.
3334
3335 2004-05-12 Andrew Cagney <cagney@redhat.com>
3336
3337 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
3338 eliminate reference to step_sp.
3339 (struct execution_control_state, init_execution_control_state)
3340 (handle_inferior_event, keep_going): Delete update_step_sp and
3341 step_sp.
3342 * infcmd.c (step_sp): Note that variable is unused.
3343
3344 2004-05-11 Andrew Cagney <cagney@redhat.com>
3345
3346 * infrun.c (step_over_function): Delete function.
3347 (handle_step_into_function): Use insert_step_resume_breakpoint.
3348 (insert_step_resume_breakpoint): Fix assertion.
3349
3350 2004-05-11 Nick Roberts <nickrob@gnu.org>
3351
3352 * utils.c (defaulted_query): Just use the normal query input type
3353 when printing the annotations.
3354
3355 2004-05-11 Andrew Cagney <cagney@redhat.com>
3356
3357 * infrun.c (handle_inferior_event): Simplify code handling
3358 step-into or return-from a signal trampoline.
3359
3360 2004-05-11 Andrew Cagney <cagney@redhat.com>
3361
3362 * ppcnbsd-tdep.c: Include "gdb_assert.h".
3363 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
3364
3365 2004-05-10 Jim Blandy <jimb@redhat.com>
3366
3367 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
3368 with a call to internal_error.
3369
3370 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
3371 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
3372 processor variant lacks those registers.
3373 (ppc_floating_point_unit_p): Change description to make it clear
3374 that this returns info about the ISA, not the ABI.
3375 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
3376 return true or false by checking tdep->ppc_fp0_regnum and
3377 tdep->ppc_fpscr_regnum. The original code replicated the BFD
3378 arch/mach switching done in rs6000_gdbarch_init; it's better to
3379 keep that logic there, and just check the results here.
3380 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
3381 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
3382 floating-point registers.
3383 (ppc_supply_fpregset, ppc_collect_fpregset)
3384 (rs6000_push_dummy_call, rs6000_extract_return_value)
3385 (rs6000_store_return_value): Assert that we have floating-point
3386 registers.
3387 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
3388 (rs6000_frame_cache): Don't note the locations at which
3389 floating-point registers were saved if we have no fprs.
3390 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
3391 registers.
3392 (fetch_regs_user_thread, fetch_regs_kernel_thread)
3393 (store_regs_user_thread, store_regs_kernel_thread): Only call
3394 supply_fprs / fill_fprs if we actually have floating-point
3395 registers.
3396 (special_register_p): Check ppc_fpscr_regnum before matching
3397 against it.
3398 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
3399 supply / collect fpscr if we don't have it.
3400 * ppc-bdm.c: #include "gdb_assert.h".
3401 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
3402 have floating-point registers, since I can't test this code on
3403 FP-free systems to adapt it.
3404 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
3405 fpscr and floating point register numbers if they don't exist.
3406 (fetch_register): Assert that we have floating-point registers
3407 before we reach the code that handles them.
3408 (store_register): Same. And use tdep instead of calling
3409 gdbarch_tdep again.
3410 (fill_fpregset): Don't try to collect FP registers and fpscr if we
3411 don't have them.
3412 (ppc_linux_sigtramp_cache): Don't record the saved locations of
3413 fprs and fpscr if we don't have them.
3414 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
3415 don't have them.
3416 * ppcnbsd-nat.c: #include "gdb_assert.h".
3417 (getfpregs_supplies): Assert that we have floating-point registers.
3418 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
3419 * ppcobsd-tdep.c: #include "gdb_assert.h".
3420 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
3421 have floating-point registers.
3422 * rs6000-nat.c (regmap): Don't match against the fpscr and
3423 floating point register numbers if they don't exist.
3424 (fetch_inferior_registers, store_inferior_registers,
3425 fetch_core_registers): Only fetch / store / supply the
3426 floating-point registers and the fpscr if we have them.
3427 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
3428 (ppcobsd-tdep.o): Update dependencies.
3429
3430 2004-05-10 Andrew Cagney <cagney@redhat.com>
3431
3432 * infrun.c (through_sigtramp_breakpoint): Delete variable.
3433 (context_switch): Do not switch through_sigtramp_breakpoint.
3434 * gdbthread.h (save_infrun_state, load_infrun_state)
3435 (struct thread_info): Delete through_sigtramp_breakpoint parameter
3436 and structure member.
3437 * thread.c (load_infrun_state, save_infrun_state): Update.
3438
3439 2004-05-10 Mark Kettenis <kettenis@gnu.org>
3440
3441 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
3442
3443 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3444
3445 * acinclude.m4: Quote macro names being defined by AC_DEFUN
3446 throughout.
3447 * aclocal.m4: Regenerate.
3448
3449 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
3450
3451 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
3452
3453 2004-05-10 Andrew Cagney <cagney@redhat.com>
3454
3455 * infrun.c (check_sigtramp2): Delete function.
3456 (handle_inferior_event): When single stepping, and taking a
3457 signal, set a breakpoint at the signal return address. Delete
3458 redundant calls to check_sigtramp2.
3459 (insert_step_resume_breakpoint): New function.
3460 (through_sigtramp_breakpoint, handle_inferior_event)
3461 (follow_exec, wait_for_inferior, fetch_inferior_event)
3462 (currently_stepping, keep_going): Delete most uses of
3463 through_sigtramp_breakpoint, not that it should be deleted.
3464 (delete_breakpoint_current_contents): Delete function.
3465
3466 2004-05-10 Randolph Chung <tausq@debian.org>
3467
3468 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
3469 target.
3470 * config/pa/tm-linux.h: New file.
3471
3472 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
3473
3474 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
3475 of prefixes. Don't print the prefix twice in the CLI.
3476
3477 2004-05-10 Jim Blandy <jimb@redhat.com>
3478
3479 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
3480 collect all the gprs.
3481
3482 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
3483 loop collecting gprs.
3484
3485 2004-05-09 Andrew Cagney <cagney@redhat.com>
3486
3487 * remote-vx.c (net_step): Delete step-range code.
3488 * remote.c (remote_resume, init_all_packet_configs)
3489 (set_remote_protocol_E_packet_cmd)
3490 (show_remote_protocol_E_packet_cmd)
3491 (remote_protocol_E, show_remote_cmd, _initialize_remote)
3492 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
3493 (show_remote_protocol_e_packet_cmd): Ditto.
3494
3495 2004-05-09 Mark Kettenis <kettenis@gnu.org>
3496
3497 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
3498
3499 * hppa-tdep.h: Update copyright year.
3500 (struct trad_frame_saved_reg): Add opaque declaration.
3501
3502 * amd64-tdep.c (amd64_return_value): Implement
3503 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3504
3505 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
3506 (m68k_value_to_register): New functions.
3507 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
3508 value_to_register.
3509
3510 * defs.h (enum return_value_convention): Add
3511 RETURN_VALUE_ABI_RETURNS_ADDRESS and
3512 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
3513 * infcmd.c (legacy_return_value): New function.
3514 (print_return_value): Rwerite to implement
3515 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3516 * values.c (using_struct_return): Check for inequality to
3517 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
3518 RETURN_VALUE_STRUCT_CONVENTION.
3519 * i386-tdep.c (i386_return_value): Implement
3520 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3521
3522 * vax-tdep.c: Tweak comments. Reorder include files. Don't
3523 include "symtab.h", "opcode/vax.h" and "inferior.h".
3524 (vax_skip_prologue): Replace calls to read_memory_integer by calls
3525 to read_memory_unsigned_integer.
3526 (vax_gdbarch_init): Reorder.
3527 (_initialize_vax_tdep): Spell out prototype.
3528 * Makefile.in (vax-tdep.o): Update dependencies.
3529
3530 2004-05-08 Andrew Cagney <cagney@redhat.com>
3531
3532 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
3533 * target.c (target_detach, target_disconnect): Ditto.
3534
3535 * infcall.c (call_function_by_hand): When no
3536 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
3537 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
3538 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
3539 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3540 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3541
3542 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
3543 * gdbarch.h, gdbarch.c: Re-generate.
3544 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
3545 deprecated_fix_call_dummy.
3546 * v850-tdep.c (v850_gdbarch_init): Ditto.
3547 * infcall.c (call_function_by_hand): Do not call
3548 DEPRECATED_FIX_CALL_DUMMY.
3549
3550 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
3551 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
3552 * gdbarch.h, gdbarch.c: Re-generate.
3553 * arm-linux-tdep.c (arm_linux_call_dummy_words)
3554 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
3555 deprecated_sizeof_call_dummy_words.
3556 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
3557 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3558 * v850-tdep.c (v850_gdbarch_init): Ditto.
3559 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3560 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
3561 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3562 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3563 * arch-utils.h (legacy_call_dummy_words)
3564 (legacy_sizeof_call_dummy_words): Delete declarations.
3565 * arch-utils.c (legacy_call_dummy_words)
3566 (legacy_sizeof_call_dummy_words): Delete variables.
3567
3568 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
3569 * gdbarch.h, gdbarch.c: Re-generate.
3570 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
3571 * infcall.c (call_function_by_hand): Eliminate call to
3572 DEPRECATED_PUSH_DUMMY_FRAME.
3573 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
3574 push_dummy_frame.
3575 (ns32k_push_dummy_frame): Delete function.
3576
3577 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
3578 deprecated_call_dummy_breakpoint_offset or
3579 deprecated_call_dummy_start_offset.
3580 * dummy-frame.c, arm-tdep.c: Update comments.
3581 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
3582 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
3583 * gdbarch.h, gdbarch.c: Re-generate.
3584
3585 * infcall.c (legacy_push_dummy_code): Delete function.
3586 (push_dummy_code): Delete call.
3587
3588 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
3589 * gdbarch.h, gdbarch.c: Re-generate.
3590 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
3591 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
3592 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
3593 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
3594
3595 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
3596 (struct frame_info): Delete opaque declaration.
3597 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
3598 * frame.c (get_frame_type): Delete call.
3599
3600 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
3601 pc_in_call_dummy.
3602 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
3603 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
3604
3605 2004-05-08 Mark Kettenis <kettenis@gnu.org>
3606
3607 * alphanbsd-tdep.c: Include "gdb_string.h".
3608 * armnbsd-tdep.c: Update copyright year.
3609 Include "gdb_string.h".
3610 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
3611 dependencies.
3612
3613 * delta68-nat.c: Remove file.
3614 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
3615 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
3616 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
3617 (delta68-nat.o): Remove dependency.
3618
3619 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
3620 function.
3621 (m68k_gdbarch_init): Don't set
3622 deprecated_frameless_function_invocation.
3623
3624 2004-05-07 Randolph Chung <tausq@debian.org>
3625
3626 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
3627 read_memory_nobpt for code reading when doing frame unwinding.
3628 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
3629
3630 2004-05-07 Randolph Chung <tausq@debian.org>
3631
3632 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
3633 instead of sp, handle sigaltstack case.
3634 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
3635 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
3636 signal handler and not that of the caller.
3637 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
3638 hppa_linux_sigtramp_find_sigcontext.
3639
3640 2004-05-07 Randolph Chung <tausq@debian.org>
3641
3642 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
3643 hppa-linux-nat.c.
3644 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
3645 * hppa-linux-nat.c (fetch_register, store_register): Define.
3646 (fetch_inferior_registers, store_inferior_registers): Define.
3647 (supply_gregset): Add comment and clean up some unneeded code.
3648 (fill_gregset): Add comment and fix so that it saves registers in
3649 the right place in the gregset.
3650 (fill_fpregset): Fix buffer overrun problem.
3651 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3652
3653 2004-05-07 Randolph Chung <tausq@debian.org>
3654
3655 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
3656 do common handling of the pcoqt register.
3657 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
3658 to use helper function.
3659 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
3660 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
3661 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
3662 generic fallback unwinder when all else fails.
3663 (hppa_gdbarch_init): Add fallback sniffer.
3664 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
3665 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
3666 to use helper function.
3667
3668 2004-05-08 Joel Brobecker <brobecker@gnat.com>
3669
3670 * config/djgpp/fnchange.lst: Add translation rules for
3671 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
3672
3673 2004-05-08 Mark Kettenis <kettenis@gnu.org>
3674
3675 * frame.c (get_prev_frame_1): Work around GCC bug.
3676 * frame.h: Add comment about GCC bug.
3677
3678 2004-05-07 Andrew Cagney <cagney@redhat.com>
3679
3680 * observer.c: Include "commands.h" and "gdbcmd.h".
3681 (observer_debug, _initialize_observer): Add the
3682 command "set/show debug observer".
3683 * observer.sh: When observer debugging, log notify calls.
3684 * Makefile.in (observer.o): Update dependencies.
3685
3686 2004-05-07 Jason Molenda (jmolenda@apple.com)
3687
3688 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
3689
3690 2004-05-07 Jim Blandy <jimb@redhat.com>
3691
3692 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
3693 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
3694 to recognize gpr regnums, instead of assuming that
3695 tdep->ppc_fp0_regnum marks the end of the general-purpose
3696 registers.
3697
3698 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
3699 the given architecture has floating-point registers.
3700
3701 2004-05-07 Andrew Cagney <cagney@redhat.com>
3702
3703 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
3704 macro defined to 1.
3705 * gdbarch.h, gdbarch.c: Re-generate.
3706 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
3707 deprecated_use_generic_dummy_frames.
3708
3709 2004-05-07 Brian Ford <ford@vss.fsi.com>
3710
3711 * NEWS: Mention Cygwin DWARF 2 support.
3712
3713 2004-05-07 Andrew Cagney <cagney@redhat.com>
3714
3715 * objfiles.h (struct entry_info): Delete unused fields
3716 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
3717 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
3718 * mipsread.c (mipscoff_symfile_read): Update.
3719 * mdebugread.c (parse_partial_symbols): Update.
3720 * dwarfread.c (read_file_scope): Update.
3721 * dwarf2read.c (read_file_scope): Update.
3722 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
3723 * coffread.c (complete_symtab): Update.
3724
3725 2004-05-07 Mark Kettenis <kettenis@gnu.org>
3726
3727 * infcall.c (_initialize_infcall): Fix typo.
3728
3729 2004-05-07 Andrew Cagney <cagney@redhat.com>
3730
3731 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
3732 * command.h (add_setshow_zinteger_cmd): Declare.
3733
3734 2004-05-06 Randolph Chung <tausq@debian.org>
3735
3736 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
3737 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
3738 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
3739 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
3740 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
3741 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
3742 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
3743 definitions ...
3744 * hppa-tdep.h: ... to here, with HPPA_ prefix.
3745 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
3746 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
3747 (hppa64_hpux_frame_find_saved_regs_in_sig)
3748 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
3749 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
3750 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
3751 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
3752 (hppa_linux_sigtramp_frame_prev_register): Likewise.
3753 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
3754 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
3755 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
3756 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
3757 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
3758 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
3759 (hppa32_register_type, hppa_cannot_store_register)
3760 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
3761 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
3762 * hpread.c (hpread_process_one_debug_symbol): Likewise.
3763 * pa64solib.c (pa64_solib_have_load_event)
3764 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
3765 (pa64_solib_unloaded_library_pathname): Likewise.
3766 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
3767 (som_solib_library_pathname): Likewise.
3768
3769 2004-05-05 Jim Ingham <jingham@apple.com>
3770
3771 * breakpoint.c (create_breakpoints): Copy the ignore count and
3772 thread id over from the pended breakpoint to the actual
3773 breakpoint.
3774
3775 2004-05-05 Andrew Cagney <cagney@redhat.com>
3776
3777 * gdbarch.sh (PARM_BOUNDARY): Delete.
3778 gdbarch.h, gdbarch.c: Re-generate.
3779 * valops.c (PARM_BOUNDARY): Delete macro.
3780 (value_push): Delete PARM_BOUNDARY code.
3781 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
3782
3783 2004-05-04 Jim Blandy <jimb@redhat.com>
3784
3785 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
3786 Don't assume that the gprs, fprs, and UISA sprs are
3787 contiguous, start at register number zero, and end with fpscr.
3788 Instead, use the numbers from the tdep structure.
3789
3790 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
3791 should no longer be used in code specific to the RS6000 and its
3792 derivatives.
3793 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
3794 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
3795 tdep->ppc_fp0_regnum.
3796 (ppc_supply_fpregset, ppc_collect_fpregset)
3797 (rs6000_push_dummy_call, rs6000_extract_return_value)
3798 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
3799 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
3800 FP0_REGNUM.
3801 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
3802 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
3803 Same.
3804 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
3805 bdm_ppc_store_registers): Same.
3806 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
3807 (store_register, fill_fpregset): Same.
3808 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
3809 (ppc_linux_supply_fpregset): Same.
3810 * ppcnbsd-nat.c (getfpregs_supplies): Same.
3811 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
3812 Same.
3813 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
3814 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
3815 ppc64_sysv_abi_return_value): Same.
3816 * rs6000-nat.c (regmap, fetch_inferior_registers)
3817 (store_inferior_registers, fetch_core_registers): Same.
3818
3819 2004-05-01 Mark Kettenis <kettenis@gnu.org>
3820
3821 * m68knbsd-nat.c: Remove file.
3822 * m68knbsd-tdep.c: Remove file.
3823 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
3824 dependencies.
3825 * configure.host: Add m68k-*-netbsdelf*.
3826 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
3827 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
3828 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
3829 (XM_FILE): Remove.
3830 * config/m68k/nbsdelf.mh: New file.
3831 * config/m68k/nbsd.mt: New file.
3832 * config/m68k/nbsdaout.mt: Remove file.
3833 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
3834 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
3835 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
3836 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
3837 (use_struct_convention): Remove prototype.
3838 (USE_STRUCT_CONVENTION): Remove define.
3839 * config/m68k/xm-nbsd.h: Remove file.
3840
3841 2004-05-04 Michael Snyder <msnyder@redhat.com>
3842
3843 * m68k-tdep.c (m68k_gdbarch_init): Default to using
3844 reg_struct_return method (as gcc usually does for cross targets).
3845
3846 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3847
3848 Committed by Andrew Cagney.
3849 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
3850 alignment padding when accessing ucontext struct members.
3851
3852 2004-05-04 Jim Blandy <jimb@redhat.com>
3853
3854 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
3855 'ppc_gplast_regnum' member.
3856 (ppc_num_gprs): New enum constant.
3857 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
3858 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
3859 * rs6000-nat.c (regmap, fetch_inferior_registers,
3860 store_inferior_registers): Same.
3861 * rs6000-tdep.c (e500_pseudo_register_read)
3862 (e500_pseudo_register_write): Same.
3863 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
3864
3865 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
3866 * ppc-tdep.h (ppc_num_fprs): New enum constant.
3867 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
3868 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
3869 FPLAST_REGNUM.
3870 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
3871 Same.
3872 * ppc-linux-nat.c (ppc_register_u_addr): Same.
3873 * rs6000-nat.c (regmap, fetch_inferior_registers)
3874 (store_inferior_registers): Same.
3875
3876 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
3877 with FPLAST_REGNUM.
3878
3879 2004-05-03 Joel Brobecker <brobecker@gnat.com>
3880
3881 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
3882 failure detected by recent versions of GCC.
3883 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
3884 to be consistent with the usage in dwarf2_create_include_psymtab.
3885
3886 2004-05-03 Michael Snyder <msnyder@redhat.com>
3887
3888 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
3889 (heuristic_proc_start): Whitespace cleanup.
3890
3891 2004-05-04 Mark Kettenis <kettenis@gnu.org>
3892
3893 * sun3-nat.c: Remove file.
3894 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
3895 dependencies.
3896 (ALLDEPFILES): Remove sun3-nat.c.
3897 (sun3-nat.o): Remove dependencies.
3898
3899 * i386-interix-nat.c, i386-interix-tdep.c,
3900 config/i386/nm-interix.h, config/i386/interix.mh,
3901 config/i386/interix.mt: Remove files.
3902 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
3903 dependencies.
3904
3905 2004-05-03 Mark Kettenis <kettenis@gnu.org>
3906
3907 * m68k-tdep.h (struct gdbarch_tdep): Add member
3908 struct_value_regnum.
3909 (m68k_svr4_init_abi): New prototype.
3910 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
3911 different calling conventions.
3912 (m68k_extract_return_value): Remove code dealing with single-field
3913 structs.
3914 (m68k_store_return_value): Remove code dealing with single-field
3915 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
3916 (m68k_extract_struct_value_address): Remove function.
3917 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
3918 (m68k_reg_struct_return_p, m68k_return_value)
3919 (m68k_svr4_return_value): New functions.
3920 (m68k_use_struct_convention): Remove function.
3921 (m68k_push_dummy_call): Use new struct_value_regnum member of
3922 `struct gdbarch_tdep' instead of hardcoded register number to
3923 store STRUCT_ADDR.
3924 (m68k_svr4_init_abi): New function.
3925 (m68k_gdbarch_init): Don't set extract_return_value,
3926 store_return_values, deprecated_extract_struct_value_address and
3927 use_struct_convention. Set return_value instead. Initialize new
3928 struct_value_regnum member of `struct gdbarch_tdep'.
3929 * m68klinux-tdep.c: Update copyright year.
3930 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
3931 (m68k_linux_extract_struct_value_address): Remove function.
3932 (m68k_linux_init_abi): Don't set extract_return_value,
3933 store_return_values, deprecated_extract_struct_value_address and
3934 use_struct_convention. Call m68k_svr4_init_abi but override the
3935 new struct_value_regnum member of `struct gdbarch_tdep'.
3936 * Makefile.in (m68k-tdep.o): Update dependencies.
3937
3938 2004-05-03 J. Brobecker <brobecker@gnat.com>
3939
3940 * dwarf2read.c (line_header): Add new included_p field in
3941 field file_names.
3942 (partial_die_info): New field has_stmt_list. New field line_offset.
3943 (dwarf2_create_include_psymtab): New function.
3944 (dwarf2_build_include_psymtabs): New function.
3945 (add_file_name): Add forward declaration. Initialize new field.
3946 (dwarf_decode_lines): Add new parameter. Enhance this procedure
3947 to be able to determine the list of files included by the
3948 given unit, and build their associated psymtabs.
3949 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
3950 files as well.
3951 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
3952 (read_file_scope): Update call to dwarf_decode_lines.
3953 (read_partial_die): Handle DW_AT_stmt_list attributes.
3954
3955 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
3956
3957 Unfix PR gdb/1626.
3958 * configure.in: Revert special case for osf5.*.
3959 * configure: Regenerate.
3960
3961 2004-05-02 Jim Blandy <jimb@redhat.com>
3962
3963 Move the symbol-file-from-memory functions into their own file.
3964 * symfile-mem.c, symfile-mem.h: New files.
3965 * symfile.c (symbol_file_add_from_bfd): New function.
3966 (symbol_file_add): Call symbol_file_add_from_bfd.
3967 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
3968 Moved to symfile-mem.c.
3969 (_initialize_symfile): Move definition of
3970 add-symbol-file-from-memory command to symfile-mem.c.
3971 * symfile.h (symbol_file_add_from_bfd): New declaration.
3972 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
3973 * config/powerpc/linux.mt (TDEPFILES): Same.
3974 * Makefile.in (SFILES): Add symfile-mem.c.
3975 (symfile_mem_h): New variable.
3976 (HFILES_NO_SRCDIR): Add symfile-mem.h.
3977 (symfile-mem.o): New rule.
3978
3979 2004-05-01 Andrew Cagney <cagney@redhat.com>
3980
3981 * breakpoint.c (insert_bp_location): Use get_frame_id, and
3982 frame_find_by_id instead of frame_relative_level.
3983 (do_enable_breakpoint): Ditto.
3984 * thread.c: Update copyright.
3985 (info_threads_command): Ditto, simplify.
3986
3987 * frame.c (deprecated_generic_get_saved_register): Delete
3988 function, moved to "xstormy16-tdep.c".
3989 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
3990 deprecated_generic_get_saved_register from "frame.c".
3991 (xstormy16_frame_saved_register): Call
3992 xstormy16_get_saved_register.
3993 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
3994 static.
3995 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
3996 * frame.h (deprecated_generic_get_saved_register): Delete.
3997
3998 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
3999
4000 * dwarfread.c: Update documentation on the state of dwarf-1.
4001
4002 2004-05-01 Andrew Cagney <cagney@redhat.com>
4003
4004 * stack.c (select_frame_command): Delete call to
4005 frame_relative_level.
4006 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
4007 Delete #if0 code.
4008 (frame_info): Do not print FRAMELESS.
4009 (print_block_frame_labels): Replace DEPRECATED_STREQ.
4010 (catch_info): Delete #if0 code.
4011
4012 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
4013 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
4014 of frame_relative_level.
4015 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
4016 to SENTINEL_FRAME.
4017 * frame.h (enum frame_type): Add SENTINEL_FRAME.
4018 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
4019 frame_relative_level.
4020
4021 * frame.h (deprecated_set_frame_type): Delete declaration.
4022 * frame.c (deprecated_set_frame_type): Delete function, update
4023 comments.
4024
4025 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
4026 * gdbarch.h, gdbarch.c: Re-generate.
4027 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
4028 (shnbsd_pc_in_sigtramp): Delete.
4029 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
4030 pc_in_sigtramp.
4031 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
4032 pc_in_sigtramp.
4033 * frame.h: Update comments.
4034 * ppc-linux-tdep.c: Update comments.
4035 * breakpoint.c (bpstat_what): Update comments.
4036
4037 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
4038 m68klinux-tdep.o's dependencies, were previously added to
4039 m68klinux-nat.o.
4040
4041 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
4042 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
4043 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
4044 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
4045 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
4046
4047 * Makefile.in (m68klinux-nat.o): Update dependencies.
4048 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4049 (m68k_linux_sigtramp_frame_cache)
4050 (m68k_linux_sigtramp_frame_this_id)
4051 (m68k_linux_sigtramp_frame_prev_register)
4052 (m68k_linux_sigtramp_frame_unwind)
4053 (m68k_linux_sigtramp_frame_sniffer)
4054 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
4055 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
4056 names, use trad-frame.h.
4057 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
4058 (struct m68k_sigtramp_info): Delete.
4059 * m68k-tdep.c (m68k_sigtramp_frame_cache)
4060 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
4061 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
4062 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
4063 "m68klinux-tdep.c".
4064
4065 * infrun.c (check_sigtramp2): Delete check for
4066 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
4067
4068 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4069
4070 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
4071
4072 2004-05-01 Andrew Cagney <cagney@redhat.com>
4073
4074 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4075 (frv_linux_sigtramp_frame_cache)
4076 (frv_linux_sigtramp_frame_this_id)
4077 (frv_linux_sigtramp_frame_prev_register)
4078 (frv_linux_sigtramp_frame_unwind)
4079 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
4080 include "linux" in function and variable names, directly call
4081 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
4082 the latest trad-frame code.
4083 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
4084 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
4085 * Makefile.in (frv-linux-tdep.o): Update dependencies.
4086 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
4087 * frv-tdep.c (frv_sigtramp_frame_cache)
4088 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4089 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
4090 frv-linux-tdep.c.
4091 (frv_gdbarch_init): Do not append a sigtramp sniffer.
4092 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
4093 (frv_set_sigcontext_reg_addr): Delete function.
4094
4095 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
4096 (DEPRECATED_SIGTRAMP_END): Delete.
4097 * gdbarch.h, gdbarch.c: Re-generate.
4098 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
4099 * config/vax/tm-vaxbsd.h: Update copyright.
4100 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4101 (DEPRECATED_IN_SIGTRAMP): Define.
4102 * config/m68k/tm-nbsd.h: Update copyright.
4103 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4104 (DEPRECATED_IN_SIGTRAMP): Define.
4105
4106 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4107
4108 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
4109 encondings. Fixes PR gdb/1628.
4110
4111 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
4112 DW_CFA_restore state without a matching DW_CFA_remember_state
4113 instead of aborting. Fixes PR backtrace/1589.
4114
4115 2004-04-30 Joel Brobecker <brobecker@gnat.com>
4116
4117 * MAINTAINERS: Add self as AIX maintainer.
4118 Update my e-mail address in write-after-approval section.
4119
4120 2004-04-30 Andrew Cagney <cagney@redhat.com>
4121
4122 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
4123 (legacy_get_prev_frame): Ditto.
4124
4125 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
4126 (mips_gdbarch_init): Do not set pc_in_sigtramp.
4127 * mipsread.c (sigtramp_address): Delete extern variable.
4128 (mipscoff_new_init): Delete reference.
4129 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
4130 (fixup_sigtramp): Delete function.
4131 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
4132 (fixup_sigtramp): Delete declarations.
4133
4134 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
4135 deprecated_pc_in_sigtramp.
4136 (ppcnbsd_pc_in_sigtramp): Delete function.
4137
4138 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4139
4140 * config/m68k/nm-nbsd.h: Tweak comments.
4141 * config/m68k/nm-nbsdaout.h: Likewise.
4142
4143 2004-04-30 Andrew Cagney <cagney@redhat.com>
4144
4145 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
4146 legacy_pc_in_sigtramp.
4147 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
4148
4149 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4150
4151 Add OpenBSD/m68k support.
4152 * NEWS (New native configurations): Mention OpenBSD/m68k.
4153 * m68kbsd-tdep.c: New file.
4154 * m68kbsd-nat.c: New file.
4155 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
4156 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
4157 * configure.host: Add m68k-*-openbsd.
4158 * configure.tgt: Add m68k-*-openbsd.
4159 * config/m68k/tm-obsd.h: New file.
4160 * config/m68k/obsd.mt: New file.
4161 * config/m68k/obsd.mh: New file.
4162 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
4163 m68kbsd-tdep.c.
4164
4165 2004-04-30 Andrew Cagney <cagney@redhat.com>
4166
4167 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
4168 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
4169
4170 2004-04-30 Mark Kettenis <kettenis@gnu.org>
4171
4172 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
4173 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
4174
4175 2004-04-30 Brian Ford <ford@vss.fsi.com>
4176
4177 Revert 2004-04-16 change.
4178 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
4179 (i386_coff_init_abi): Remove.
4180 * i386-tdep.h (i386_coff_init_abi): Remove.
4181 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
4182
4183 2004-04-30 Andrew Cagney <cagney@redhat.com>
4184
4185 * blockframe.c (find_pc_partial_function): Delete use of
4186 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
4187 DEPRECATED_SIGTRAMP_END.
4188
4189 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
4190 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
4191 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
4192 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
4193 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
4194
4195 * defs.h (deprecated_inside_entry_file): Delete declaration.
4196 * blockframe.c (deprecated_inside_entry_file): Delete function.
4197 (legacy_frame_chain_valid): Delete call.
4198 * sh64-tdep.c (sh64_frame_chain): Delete call.
4199 * objfiles.h: Update comments.
4200 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
4201 call.
4202 * frame.c (get_prev_frame): Delete call, update comments.
4203
4204 2004-04-30 Brian Ford <ford@vss.fsi.com>
4205
4206 * MAINTAINERS (Write After Approval): Add myself.
4207
4208 2004-04-30 Andrew Cagney <cagney@redhat.com>
4209
4210 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
4211 * gdbarch.h, gdbarch.c: Re-generate.
4212 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
4213 code.
4214
4215 2004-04-30 Andrew Cagney <cagney@redhat.com>
4216
4217 * gdb-events.sh (selected_thread_changed)
4218 (selected_frame_level_changed, target_changed): Delete.
4219 * gdb-events.h, gdb-events.c: Re-generate.
4220 * valops.c (value_assign): Update.
4221 * stack.c (select_frame_command, up_silently_base)
4222 (down_silently_base): Update.
4223
4224 2004-04-29 Andrew Cagney <cagney@redhat.com>
4225
4226 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
4227 registers correctly.
4228 (print_gp_register_row, mips32_heuristic_proc_desc)
4229 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
4230 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
4231 references to mips_isa_regsize.
4232
4233 2004-04-29 Andrew Cagney <cagney@redhat.com>
4234
4235 * mips-tdep.c (struct gdbarch_tdep): Delete
4236 mips_fp_register_double.
4237 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
4238 mips_abi_regsize.
4239 (mips_gdbarch_init): Do not set mips_fp_register_double.
4240 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
4241
4242 2004-04-29 Joel Brobecker <brobecker@gnat.com>
4243
4244 Committed by Andrew Cagney.
4245 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
4246 function calls.
4247
4248 2004-04-29 Andrew Cagney <cagney@redhat.com>
4249
4250 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
4251 gdbarch, use mips_abi, update callers.
4252 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
4253 mips_abi_regsize, update callers.
4254 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
4255 mips_default_abi_regsize.
4256 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
4257 mips_default_abi_regsize.
4258
4259 2004-04-29 Andrew Cagney <cagney@redhat.com>
4260
4261 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
4262 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
4263 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
4264 mips_default_abi_regsize.
4265 (mips_isa_regsize): Rename mips_regisze.
4266 * mipsnbsd-tdep.c: Update.
4267 * mips-linux-tdep.c: Update.
4268 * irix5-nat.c: Update.
4269 * mips-tdep.h (mips_isa_regsize): Update.
4270
4271 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
4272 Delete all disabled code.
4273 * gdb-events.h, gdb-events.c: Re-generate.
4274
4275 2004-04-19 Jerome Guitton <guitton@gnat.com>
4276 Mark Kettenis <kettenis@gnu.org>
4277
4278 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
4279 the function begins with a branch instruction.
4280
4281 2004-04-29 Mark Kettenis <kettenis@gnu.org>
4282
4283 * i386-tdep.c: Fix spelling mistakes.
4284
4285 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4286 Andrew Cagney <cagney@redhat.com>
4287
4288 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
4289 <sys/proc.h>.
4290 * acconfig.h: Provide default _KMEMUSER value.
4291 * config.in, configure: Re-generate.
4292 * NEWS: Mention fix.
4293
4294 2004-04-24 Randolph Chung <tausq@debian.org>
4295
4296 * configure.host (hppa*-*-linux*): New target.
4297 * configure.tgt (hppa*-*-linux*): Likewise.
4298 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
4299 gdbarch_init_osabi() call earlier so that osabi-specific frame
4300 unwinders can be registered first.
4301 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
4302 hppa-linux-nat.c.
4303 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
4304 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
4305 * config/pa/linux.mh: New file.
4306 * config/pa/linux.mt: New file.
4307 * config/pa/nm-linux.h: New file.
4308 * config/pa/xm-linux.h: New file.
4309 * hppa-linux-nat.c: New file.
4310 * hppa-linux-tdep.c: New file.
4311
4312 2004-04-28 Randolph Chung <tausq@debian.org>
4313
4314 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
4315 return values.
4316 (hppa32_push_dummy_call): Fix small struct and floating point argument
4317 passing, and make sure the stack frame is properly aligned.
4318
4319 2004-04-28 Andrew Cagney <cagney@redhat.com>
4320
4321 * stack.c (print_stack_frame): Fix description.
4322
4323 * NEWS: Mention gdb/gdbserver/configure execute permission
4324 changed. PR server/519.
4325
4326 2004-04-28 Andrew Cagney <cagney@redhat.com>
4327
4328 * stack.c (print_stack_frame_stub): Delete declaration.
4329 (struct print_stack_frame_args, print_stack_frame)
4330 (print_frame_info, print_frame): Replace "source" with print what.
4331 Replace "print" with "print_level". Replace "args" with
4332 "print_args".
4333 * frame.h (show_and_print_stack_frame, print_stack_frame)
4334 (print_frame_info): Update declarations.
4335 * stack.c (select_and_print_frame, frame_command)
4336 (current_frame_command, up_command, down_command): Update calls -
4337 use get_selected_frame, pass "enum print_what" for source, do not
4338 call frame_relative_level.
4339 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
4340 * remote-rdp.c (remote_rdp_open): Ditto.
4341 * remote-mips.c (common_open): Ditto.
4342 * remote-e7000.c (e7000_start_remote): Ditto.
4343 * ocd.c (ocd_start_remote): Ditto.
4344 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
4345 * infrun.c (normal_stop): Ditto.
4346 * inflow.c (kill_command): Ditto.
4347 * infcmd.c (finish_command): Ditto.
4348 * corelow.c (core_open): Ditto.
4349 * tracepoint.c (finish_tfind_command): Ditto.
4350 * thread.c (info_threads_command, info_threads_command)
4351 (restore_current_thread, do_captured_thread_select): Ditto.
4352 * ada-tasks.c (task_command): Ditto.
4353
4354 2004-04-26 Orjan Friberg <orjanf@axis.com>
4355
4356 * frame.c: Include "observer.h".
4357 (frame_observer_target_changed): New function.
4358 (_initialize_frame): Attach target_changed observer.
4359 * regcache.c: Include "observer.h".
4360 (regcache_observer_target_changed): New function.
4361 (_initialize_regcache): Attach target_changed observer.
4362 * valops.c: Include "observer.h".
4363 (value_assign): Notify target_changed event when modifying register.
4364 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
4365
4366 2004-04-26 Orjan Friberg <orjanf@axis.com>
4367
4368 From Paul Koning <pkoning@equallogic.com>:
4369 * breakpoint.c (free_valchain): New function.
4370 (insert_bp_location, delete_breakpoint): Use free_valchain.
4371 (remove_breakpoint): Do not remove the valchain.
4372 (bpstat_stop_status): If not stopped by watchpoint, skip
4373 watchpoints when generating stop status list.
4374 * infrun.c (handle_inferior_event): Make
4375 stepped_after_stopped_by_watchpoint a global variable.
4376 * remote.c (remote_stopped_data_address): Return watch data
4377 address rather than zero if stepped_after_stopped_by_watchpoint is
4378 set.
4379
4380 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
4381
4382 Fix PR gdb/1626.
4383 * configure.in: Check for curses after termcap.
4384 On osf5.*, do not check for ncurses.
4385 * configure: Regenerate.
4386
4387 2004-04-25 Mark Kettenis <kettenis@gnu.org>
4388
4389 * ppcobsd-nat.c: Include "ppc-tdep.h".
4390 * Makefile.in (ppcobsd-nat.o): Update dependencies.
4391
4392 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
4393 Fixes PR tdep/1623 and PR tdep/1624.
4394
4395 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
4396
4397 * xmodem.h, xmodem.c: Remove files.
4398 * Makefile.in: Remove references to xmodem.h, xmodem.c.
4399
4400 2004-04-23 Randolph Chung <tausq@debian.org>
4401
4402 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
4403 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
4404 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
4405 for handling stackless frames.
4406 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
4407
4408 2004-04-23 Randolph Chung <tausq@debian.org>
4409
4410 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
4411 starts at a pc before the frame is created.
4412
4413 2004-04-23 Joel Brobecker <brobecker@gnat.com>
4414
4415 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
4416
4417 2004-04-23 Jerome Guitton <guitton@gnat.com>
4418
4419 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
4420 use convert_typed_floating to get the appropriate format.
4421
4422 2004-04-22 Randolph Chung <tausq@debian.org>
4423
4424 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
4425 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
4426 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
4427 (hppa_sign_extend): Add prototype.
4428 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
4429 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
4430 (sign_extend): Rename with hppa_ prefix and make non-static. Other
4431 hppa targets will also use these functions.
4432 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
4433 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
4434 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
4435 (hppa_gdbarch_init): Remove gdbarch setting of
4436 skip_trampoline_code, in_solib_call_trampoline and
4437 in_solib_return_trampoline.
4438 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4439 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
4440 hppa_in_solib_call_trampoline.
4441 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
4442 Moved from hppa-tdep.c.
4443 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
4444 in_solib_call_trampoline and in_solib_return_trampoline.
4445
4446 2004-04-22 Randolph Chung <tausq@debian.org>
4447
4448 * hppa-tdep.c (hppa_debug): New variable.
4449 (find_unwind_entry, hppa_frame_cache): Add debug output.
4450 (_initialize_hppa_tdep): Add command to set debug flag.
4451
4452 2004-04-22 Andrew Cagney <cagney@redhat.com>
4453
4454 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
4455 "trad-frame.h".
4456 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
4457 signal trampoline unwinder.
4458 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
4459
4460 2004-04-22 Mark Kettenis <kettenis@gnu.org>
4461
4462 Add OpenBSD/powerpc support.
4463 * NEWS (New native configurations): Mention OpenBSD/powerpc.
4464 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
4465 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
4466 (ppc_collect_fpregset): New prototypes.
4467 * ppcobsd-nat.c: New file.
4468 * ppcobsd-tdep.c: New file.
4469 * ppcobsd-tdep.h: New file.
4470 * rs6000-tdep.c: Include "regset.h".
4471 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
4472 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
4473 New functions.
4474 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
4475 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
4476 (rs6000-tdep.o): Update dependencies.
4477 * configure.host: Add powerpc-*-openbsd.
4478 * configure.tgt: Add powerpc-*-openbsd.
4479 * config/powerpc/obsd.mh: New file.
4480 * config/powerpc/nm-obsd.h: New file.
4481 * config/powerpc/obsd.mt: New file.
4482
4483 2004-04-22 Andrew Cagney <cagney@redhat.com>
4484
4485 * frame.h (show_frame_info): Delete declaration.
4486
4487 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
4488 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
4489 * m32r-tdep.c (m32r_frame_this_id): Ditto.
4490 * frv-tdep.c (frv_frame_this_id): Ditto.
4491 * avr-tdep.c (avr_frame_this_id): Ditto.
4492
4493 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
4494
4495 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
4496
4497 2004-04-22 Jim Blandy <jimb@redhat.com>
4498
4499 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
4500 register number zero.
4501
4502 2004-04-21 Michael Snyder <msnyder@redhat.com>
4503
4504 * mips-tdep.c (heuristic_proc_start):
4505 Warning() already prefixes "Warning: ".
4506
4507 2004-04-21 Andrew Cagney <cagney@redhat.com>
4508
4509 * annotate.h (deprecated_annotate_starting_hook)
4510 (deprecated_annotate_stopped_hook)
4511 (deprecated_annotate_exited_hook)
4512 (deprecated_annotate_signal_hook)
4513 (deprecated_annotate_signalled_hook): Deprecate.
4514 * tracepoint.h (deprecated_create_tracepoint_hook)
4515 (deprecated_delete_tracepoint_hook)
4516 (deprecated_modify_tracepoint_hook)
4517 (deprecated_trace_find_hook)
4518 (deprecated_trace_start_stop_hook): Deprecate.
4519 * target.h (deprecated_target_new_objfile_hook): Deprecate.
4520 * remote.h (deprecated_target_resume_hook)
4521 (deprecated_target_wait_loop_hook): Deprecate.
4522 * gdbcore.h (deprecated_exec_file_display_hook)
4523 (deprecated_file_changed_hook): Deprecate.
4524 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
4525 * defs.h (deprecated_modify_breakpoint_hook)
4526 (deprecated_command_loop_hook, deprecated_show_load_progress)
4527 (deprecated_print_frame_info_listing_hook)
4528 (deprecated_query_hook, deprecated_warning_hook)
4529 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
4530 (deprecated_delete_breakpoint_hook)
4531 (deprecated_interactive_hook, deprecated_registers_changed_hook)
4532 (deprecated_readline_begin_hook, deprecated_readline_hook)
4533 (deprecated_readline_end_hook, deprecated_register_changed_hook)
4534 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
4535 (deprecated_context_hook, deprecated_target_wait_hook)
4536 (deprecated_attach_hook, deprecated_detach_hook)
4537 (deprecated_call_command_hook, deprecated_set_hook)
4538 (deprecated_error_hook, deprecated_error_begin_hook)
4539 (deprecated_ui_load_progress_hook): Deprecate.
4540 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
4541 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
4542 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
4543 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
4544 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
4545 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
4546 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
4547 * annotate.c, aix-thread.c: Update.
4548
4549 2004-04-21 Andrew Cagney <cagney@redhat.com>
4550
4551 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
4552 * vaxnbsd-tdep.c: Include "gdb_string.h".
4553
4554 * symfile.c (symbol_file_add_from_memory): #if 0 function.
4555 (add_symbol_file_from_memory_command): #if 0 function body, call
4556 error instead.
4557
4558 2004-04-21 Andrew Cagney <cagney@redhat.com>
4559
4560 * gdbcore.h: Update copyright.
4561 (deprecated_add_core_fns): Rename add_core_fns.
4562 * win32-nat.c (_initialize_core_win32): Update.
4563 * sun3-nat.c (_initialize_core_sun3): Update.
4564 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
4565 * rs6000-nat.c (_initialize_core_rs6000): Update.
4566 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
4567 * nto-tdep.c (_initialize_nto_tdep): Update.
4568 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
4569 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
4570 * mips-nat.c (_initialize_core_mips): Update.
4571 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
4572 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
4573 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
4574 * lynx-nat.c (_initialize_core_lynx): Update.
4575 * irix5-nat.c (_initialize_core_irix5): Update.
4576 * i386-interix-nat.c (_initialize_core_interix): Update.
4577 * cris-tdep.c (_initialize_cris_tdep): Update.
4578 * corelow.c (deprecated_add_core_fns): Update.
4579 * core-regset.c (_initialize_core_regset): Update.
4580 * core-aout.c (_initialize_core_aout): Update.
4581 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
4582 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
4583 * alpha-nat.c (_initialize_core_alpha): Update.
4584
4585 2004-04-21 Jim Blandy <jimb@redhat.com>
4586
4587 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
4588
4589 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
4590
4591 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
4592 Delete.
4593 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
4594 (read_attribute_value): Update calls to dwarf_alloc_block.
4595 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
4596 dwarf2_tmp_obstack.
4597 (psymtab_to_symtab_1): Likewise. Clean up using
4598 free_stack_comp_unit.
4599 (add_to_cu_func_list): Use the comp_unit_obstack.
4600
4601 2004-04-19 Joel Brobecker <brobecker@gnat.com>
4602
4603 * dwarf2read.c (dwarf2_flag_true_p): New function.
4604 (die_is_declaration): Use the function above. Add some comments.
4605
4606 2004-04-19 Mark Kettenis <kettenis@gnu.org>
4607
4608 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
4609 architecture when registering sparcnbsd_core_osabi_sniffer.
4610 Adjust comment.
4611
4612 2004-04-18 Mark Kettenis <kettenis@gnu.org>
4613
4614 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
4615 return value.
4616
4617 Based on a patch from Brian Ford <ford@vss.fsi.com>:
4618 * i386-tdep.c: Correct register numbering scheme comments
4619 throughout.
4620 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
4621 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
4622 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
4623 (i386_gdb_arch_init): Likewise.
4624
4625 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
4626 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
4627 ppcnbsd-tdep.o.
4628
4629 * m68k-tdep.h: Tweak comments.
4630 * m68k-tdep.c: Tweak comment.
4631
4632 2004-04-17 Randolph Chung <tausq@debian.org>
4633
4634 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
4635 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
4636 (hppa_hpux_som_init_abi): Set is_elf to 0.
4637 (hppa_hpux_elf_init_abi): Set is_elf to 1.
4638 * hppa-tdep.c (low_text_segment_address): Remove global.
4639 (record_text_segment_lowaddr): Pass in low address as parameter. Use
4640 section offset to calculate segment address.
4641 (internalize_unwinds): Define low_text_segment_address as local and
4642 pass to record_text_segment_lowaddr for ELF targets.
4643 (hppa_gdbarch_init): Zero fill tdep structure.
4644 (hppa_dump_tdep): Print tdep structure.
4645 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
4646
4647 2004-04-17 Randolph Chung <tausq@debian.org>
4648
4649 * hppa-tdep.c (hppa_pseudo_register_read): Define.
4650 (hppa_gdbarch_init): Set pseudo_register_read.
4651 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
4652 * regcache.c (supply_register): Remove check for
4653 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
4654
4655 2004-04-17 Randolph Chung <tausq@debian.org>
4656
4657 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
4658 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
4659 (hpread_adjust_stack_address): Move to hpread.c.
4660 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
4661 obj_private_struct): Move from tm-hppa.h.
4662 * hpread.c (hppa-tdep.h): Include.
4663 (hpread_adjust_stack_address): Move from hppa-tdep.c.
4664 (hpread_read_function_type, hpread_read_doc_function_type)
4665 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
4666 directly.
4667 * pa64solib.c (hppa-tdep.h): Include.
4668 * somsolib.c (hppa-tdep.h): Include.
4669 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
4670 inferior_status): Remove unused forward declarations.
4671 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
4672 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
4673 obj_private_struct): Move to hppa-tdep.h.
4674 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
4675
4676 2004-04-17 Randolph Chung <tausq@debian.org>
4677
4678 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
4679 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
4680 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
4681 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
4682 Remove forward declaration and make static.
4683 (hppa_reg_struct_has_addr): Remove.
4684
4685 2004-04-16 Joel Brobecker <brobecker@gnat.com>
4686
4687 * observer.sh: Move comments in sed command to first column.
4688
4689 2004-04-16 Jason Molenda (jmolenda@apple.com)
4690
4691 * frame.c: Minor typeo corrections in comments.
4692
4693 2004-04-16 Joel Brobecker <brobecker@gnat.com>
4694
4695 * observer.c (observer_test_first_notification_function): Update
4696 function profile.
4697 (observer_test_second_notification_function): Likewise.
4698 (observer_test_third_notification_function): Likewise.
4699
4700 2004-04-16 Mark Kettenis <kettenis@gnu.org>
4701
4702 From Brian Ford <ford@vss.fsi.com>:
4703 * i386-tdep.c (i386_coff_init_abi): New function.
4704 * i386-tdep.h (i386_coff_init_abi): New prototype.
4705 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
4706 register number translation functions for DWARF and DWARF 2.
4707
4708 2004-04-16 Joel Brobecker <brobecker@gnat.com>
4709
4710 * dwarf2read.c: Back out my previous change, it was incorrect.
4711
4712 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
4713
4714 * dwarf2read.c: Include "hashtab.h".
4715 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
4716 has_namespace_info.
4717 (struct partial_die_info): Add comments. Use bitfields to reduce
4718 memory footprint. Add scope, scope_set, has_specification,
4719 spec_offset, die_parent, die_child, and die_sibling.
4720 (peek_die_abbrev): Add prototype.
4721 (partial_read_comp_unit_head): New function, broken out from
4722 dwarf2_build_psymtabs_hard.
4723 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
4724 Use partial_read_comp_unit_head. Initialize the CU and
4725 comp_unit_obstack. Update calls to read_partial_die and
4726 scan_partial_symbols. Use free_stack_comp_unit and
4727 load_partial_dies.
4728 (scan_partial_symbols): Change PDI to a pointer. Use the child and
4729 sibling pointers to walk partial DIEs. Call fixup_partial_die.
4730 Update calls to helper functions. Remove NAMESPACE argument.
4731 Update comments.
4732 (partial_die_parent_scope, partial_die_full_name): New functions.
4733 (add_partial_symbol): Remove namespace argument. Update call to
4734 pdi_needs_namespace. Use partial_die_full_name. Handle
4735 DW_TAG_namespace. Check has_namespace_info flag.
4736 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
4737 tag. Handle namespaces.
4738 (add_partial_namespace, add_partial_enumeration): Simplify.
4739 (guess_structure_name): New function, derived from
4740 add_partial_structure.
4741 (add_partial_structure): Remove.
4742 (determine_class_name): Update comment.
4743 (dwarf2_read_abbrevs): Set has_namespace_info flag.
4744 (is_type_tag_for_partial, load_partial_dies): New functions.
4745 (read_partial_die): Pass abbrev and abbrev_len as arguments.
4746 Record specifications instead of following them immediately.
4747 (find_partial_die_in_comp_unit, find_partial_die)
4748 (fixup_partial_die, free_stack_comp_unit)
4749 (hashtab_obstack_allocate, dummy_obstack_deallocate)
4750 (partial_die_hash, partial_die_eq): New functions.
4751 * Makefile.in (hashtab_h): Define.
4752 (dwarf2read.o): Update dependencies.
4753 (observer_inc, observer_h): Move to the correct section.
4754
4755 2004-04-15 Joel Brobecker <brobecker@gnat.com>
4756
4757 * dwarf2read.c (dwarf2_attribute_true_p): New function.
4758 (die_is_declaration): Use the function above. Add comment.
4759
4760 2004-04-15 Joel Brobecker <brobecker@gnat.com>
4761
4762 * dwarf2read.c (read_structure_scope): Identify stub types
4763 using die_is_declaration() only.
4764
4765 2004-04-15 Roland McGrath <roland@redhat.com>
4766
4767 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
4768 argument instead of NAME.
4769 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
4770 in call to symbol_file_add_with_addrs_or_offsets.
4771 (build_addr_info): New function, helper for ...
4772 (symbol_file_add_from_memory): New function.
4773 (add_symbol_file_from_memory_command): New function using that.
4774 (_initialize_symfile): Register it for add-symbol-file-from-memory.
4775 (pre_add_symbol_hook): Add const to argument type.
4776 * symfile.h (symbol_file_add_from_memory): Declare it.
4777
4778 2004-04-15 Mark Kettenis <kettenis@gnu.org>
4779
4780 * NEWS (New native configurations): Mention OpenBSD/vax.
4781 * configure.host: Add vax-*-openbsd*.
4782 * config/vax/obsd.mh: New file.
4783 * config/vax/nm-obsd.h: New file.
4784
4785 * vax-tdep.c: Include "regset.h".
4786 (vax_supply_gregset): New function.
4787 (vax_gregset): New variable.
4788 (vax_regset_from_core_section): New function.
4789 (vax_gdbarch_init): Set regset_from_core_section.
4790 * Makefile.in (vax-tdep.o): Update dependencies.
4791
4792 2004-04-15 Andrew Cagney <cagney@redhat.com>
4793
4794 * observer.c (normal_stop_subject, observer_notify_normal_stop)
4795 (observer_normal_stop_notification_stub)
4796 (observer_attach_normal_stop, observer_detach_normal_stop):
4797 Delete, replaced by #include "observer.inc".
4798 * infrun.c (normal_stop): Pass "stop_bpstat" to
4799 observer_notify_normal_stop.
4800 * Makefile.in (observer_inc): Define.
4801 (observer.o): Update dependencies.
4802 (observer.h, observer.inc): New rules.
4803 * observer.h: Delete file.
4804 * observer.sh: New file.
4805
4806 2004-04-15 Mark Kettenis <kettenis@gnu.org>
4807
4808 * vax-tdep.c (vax_frame_cache): Fix typo.
4809
4810 2004-04-14 Mark Kettenis <kettenis@gnu.org>
4811
4812 * NEWS (New native configurations): Mention NetBSD/vax.
4813 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
4814 * config/vax/nbsdelf.mh: New file.
4815 * config/vax/nbsdaout.mh: New file.
4816 * config/vax/nm-nbsd.h: New file.
4817 * config/vax/nm-nbsdaout.h: New file.
4818
4819 * vaxnbsd-tdep.c: New file.
4820 * Makefile.in (vaxnbsd-tdep.o): New dependency.
4821 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
4822 * config/vax/nbsd.mt: New file.
4823 * config/vax/tm-nbsd.h: New file.
4824
4825 * Makefile.in (vaxbsd-nat.o): New dependency.
4826
4827 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
4828 * vax-tdep.c (vax_store_arguments): Remove struct_return and
4829 struct_addr arguments. Don't push return value address.
4830 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
4831 arguments to vax_store_arguments. Store return value address in
4832 R1.
4833 (vax_store_struct_return, vax_extract_return_value)
4834 (vax_store_return_value): Remove functions.
4835 (vax_return_value): New function.
4836 (vax_gdbarch_init): Set return value. Don't set
4837 deprecated_store_struct_return, deprecated_extract_struct_return
4838 and deprecated_store_return_value.
4839
4840 2004-04-14 Andreas Schwab <schwab@suse.de>
4841
4842 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
4843 value buffer.
4844 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
4845
4846 2004-04-14 Mark Kettenis <kettenis@gnu.org>
4847
4848 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
4849 (vax_unwind_dummy_id): New functions.
4850 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
4851 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
4852 variables.
4853 (vax_fix_call_dummy): Remove function.
4854 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
4855 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
4856 call_dummy_location, deprecated_call_dummy_words,
4857 deprecated_sizeof_call_dummy_words,
4858 deprecated_call_dummy_breakpoint_offset,
4859 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
4860 and deprecated_dummy_write_sp.
4861
4862 2004-04-13 David Carlton <carlton@kealia.com>
4863
4864 * MAINTAINERS: Move myself to "paper trail" section.
4865
4866 2004-04-12 Mark Kettenis <kettenis@gnu.org>
4867
4868 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
4869 "trad-frame.h".
4870 (vax_frame_init_saved_regs): Remove function.
4871 (vax_sigtramp_saved_pc): Remove function.
4872 (vax_frame_saved_pc): Remove function.
4873 (vax_frame_args_address): Remove function.
4874 (vax_frame_num_args): Rewrite.
4875 (vax_frame_chain): Remove function.
4876 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
4877 VAX_FP_REGNUM.
4878 (vax_pop_frame): Likewise.
4879 (vax_saved_pc_after_call): Remove function.
4880 (struct vax_frame_cache): New structure.
4881 (vax_frame_cache): New function.
4882 (vax_frame_this_id): New function.
4883 (vax_frame_prev_register): New function.
4884 (vax_frame_unwind): New variable.
4885 (vax_frame_sniffer): New function.
4886 (vax_frame_base_address): New function.
4887 (vax_frame_args_address): New function.
4888 (vax_frame_base): New variable.
4889 (vax_unwind_pc): New function.
4890 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
4891 deprecated_fp_regnum, deprecated_saved_pc_after_call,
4892 deprecated_frame_chain, deprecated_frame_saved_pc,
4893 deprecated_frame_args_address and
4894 deprecated_frame_init_saved_regs.
4895 * Makefile.in (vax-tdep.o): Update dependencies.
4896
4897 * vaxbsd-nat.c: New file.
4898
4899 * vax-tdep.h: Update copyright year. Adjust comments.
4900 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
4901 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
4902 (vax_regnum): New enum. Replacing...
4903 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
4904 (VAX_PS_REGNUM): ... these removed macros.
4905 * vax-tdep.c (vax_register_name): Remove prototype.
4906 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
4907 (vax_register_byte, vax_register_raw_size,
4908 vax_register_virtual_size, vax_register_virtual_type): Remove
4909 functions.
4910 (vax_register_type): New function.
4911 (vax_breakpoint_from_pc): Reorganize.
4912 (vax_gdbarch_init): Set register_type. Don't set
4913 deprecated_register_size, deprecated_register_bytes,
4914 deprecated_register_byte, deprecated_register_raw_size,
4915 deprecated_max_register_raw_size,
4916 deprecated_register_virtual_size,
4917 deprecated_max_register_virtual_size and
4918 deprecated_register_virtual_type. Add comment on stack direction.
4919
4920 2004-04-11 Mark Kettenis <kettenis@gnu.org>
4921
4922 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
4923 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
4924 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
4925
4926 2004-04-10 Randolph Chung <tausq@debian.org>
4927
4928 * MAINTAINERS (write after approval): Add myself.
4929
4930 2004-04-07 Randolph Chung <tausq@debian.org>
4931
4932 * hppa-tdep.c (hppa_inner_than): Remove.
4933 (is_pa_2): Remove unused static variable.
4934 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
4935
4936 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
4937
4938 * language.h (language_defn): Add new la_post_parser field.
4939 * parser-defs.h (null_post_parser): New declaration (default for
4940 la_post_parser).
4941
4942 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
4943 insert call to that function.
4944 (parse_exp_in_context): New function, including code formerly in
4945 parse_exp_1. Calls language-dependent post-parser after
4946 prefixification.
4947 (parse_expression_in_context): New exported function.
4948 (null_post_parser): New definition.
4949 * expression.h (parse_expression_in_context): Add declaration.
4950
4951 * p-lang.c (pascal_language_defn): Add trivial post-parser.
4952 * c-lang.c (c_language_defn): Ditto.
4953 (cplus_language_defn): Ditto.
4954 (asm_language_defn): Ditto.
4955 (minimal_language_defn): Ditto.
4956 * f-lang.c (f_language_defn): Ditto.
4957 * jv-lang.c (java_language_defn): Ditto.
4958 * language.c (unknown_language_defn): Ditto.
4959 (auto_language_defn): Ditto.
4960 (local_language_defn): Ditto.
4961 * m2-lang.c (m2_language_defn): Ditto.
4962 * scm-lang.c (scm_language_defn): Ditto.
4963 * obj-lang.c (objc_language_defn): Ditto.
4964
4965 2004-04-10 Mark Kettenis <kettenis@gnu.org>
4966
4967 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
4968 (amd64nbsd_mcontext_addr): New function.
4969 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
4970 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
4971 with amd64nbsd_r_reg_offset, instead of building it on the fly.
4972
4973 * corelow.c (core_xfer_partial): Fix coding standards violation.
4974 Add support for TARGET_OBJECT_WCOOKIE.
4975
4976 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
4977 deprecated_pc_in_sigtramp.
4978 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
4979 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
4980 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
4981 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
4982 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
4983 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
4984 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
4985
4986 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
4987 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
4988 Fix typo.
4989
4990 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
4991 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
4992 (amd64_collect_fxsave): Likewise.
4993
4994 * i386-sol2-tdep.c: Include "gdb_string.h".
4995 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
4996 name.
4997 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
4998
4999 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5000
5001 * i386-sol2-tdep.c: Include "solib-svr4.h".
5002 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5003 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5004 * config/i386/tm-i386sol2.h: Include :solib.h".
5005 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
5006 solib-svr4.o and solib-legacy.o.
5007 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
5008 solib-svr4.o.
5009
5010 2004-04-09 Mark Kettenis <kettenis@gnu.org>
5011
5012 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
5013 whether a register is supplied by PTRACE_GETFPREGS.
5014 (store_inferior_registers): Likewise.
5015 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
5016 whether a register is supplied by PT_GETFPREGS.
5017 (store_inferior_registers): Likewise.
5018
5019 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
5020 * config/i386/linux64.mt (TDEPFILES): Likewise.
5021
5022 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
5023
5024 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
5025 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5026 the program counter is in the range specified by `struct
5027 gdbarch_tdep'.
5028 * amd64-linux-tdep.c: Include "symtab.h".
5029 (amd64_linux_pc_in_sigtramp): Remove function.
5030 (amd64_linux_sigtramp_p): New function.
5031 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5032 deprecated_pc_in_sigtramp.
5033 * amd64nbsd-tdep.c: Include "symtab.h".
5034 (amd64nbsd_sigtramp_p): New function.
5035 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5036 deprecated_pc_in_sigtramp.
5037 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
5038 few comments.
5039 (amd64obsd_pc_in_sigtramp): Remove function.
5040 (amd64obsd_sigtramp_p): New function.
5041 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5042 deprecated_pc_in_sigtramp.
5043 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
5044 (i386bsd_pc_ins_sigtramp): Remove prototype.
5045 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
5046 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
5047 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5048 the program counter is in the range specified by `struct
5049 gdbarch_tdep'.
5050 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
5051 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
5052 (i386_go32_pc_in_sigtramp): Remove function.
5053 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
5054 Initialize TDEP->sigtramp_p.
5055 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
5056 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
5057 deprecated_pc_in_sigtramp.
5058 * i386-linux-tdep.c: Adjust comments.
5059 (i386_linux_pc_in_sigtramp): Remove function.
5060 (i386_linux_sigtramp_p): New function.
5061 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5062 deprecated_pc_in_sigtramp.
5063 * i386-nto-tdep.c: Update copyright year.
5064 (i386nto_pc_in_sigtramp): Remove function.
5065 (i386nto_sigtramp_p): New function.
5066 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
5067 SP_REGNUM.
5068 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
5069 deprecated_pc_in_sigtramp.
5070 * i386-sol2-tdep.c: Update copyright year.
5071 (i386_sol2_pc_in_sigtramp): Remove function.
5072 (i386_sol2_sigtramp_p): New function.
5073 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
5074 deprecated_pc_in_sigtramp.
5075 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
5076 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
5077 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5078 deprecated_sigtramp_start and deprecated_sigtramp_end.
5079 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
5080 (i386nbsd_pc_in_sigtramp): Remove function.
5081 (i386nbsd_sigtramp_p): New function.
5082 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5083 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5084 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
5085 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
5086 (i386obsd_pc_in_sigtramp): Remove function.
5087 (i386obsd_sigtramp_p): New function.
5088 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
5089 functions.
5090 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5091 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5092 TDEP->sigtramp_p.
5093 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
5094 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
5095 dependencies.
5096
5097 * config/i386/i386aout.mt: Remove file.
5098
5099 * configure.tgt: Remove i[34567]86-*-go32*,
5100 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
5101 and i[34567]86-*-isc*. Set gdb_target to i386 for
5102 i[34567]86-*-netware* and i[34567]86-*-*.
5103 * config/i386/i386.mt: New file.
5104 * config/i386/embed.mt: Remove file.
5105 * config/i386/go32.mt: Remove file.
5106 * config/i386/i386nw.mt: Remove file.
5107 * config/i386/i386v.mt: Remove file.
5108 * config/i386/tm-go32.h: Remove file.
5109
5110 * tui/tui-hooks.c: Include "readline/readline.h" after
5111 "gdb_curses.h" instead of before.
5112 * tui/tui-io.c: Likewise.
5113
5114 * tui/tui.c: Fix typo in comment.
5115
5116 * sparc64-tdep.c (sparc_address_from_register): Remove function.
5117
5118 2004-04-08 Andrew Cagney <cagney@redhat.com>
5119
5120 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
5121 (deprecated_exception_support_initialized): Declare.
5122 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
5123 (initialize_hp_cxx_exception_support)
5124 (child_enable_exception_callback): Update.
5125 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
5126 (deprecated_exception_support_initialized): Rename
5127 deprecated_exception_catchpoints_are_fragile and
5128 deprecated_exception_support_initialized.
5129 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
5130
5131 * symtab.c (deprecated_hp_som_som_object_present): Rename
5132 hp_som_som_object_present.
5133 * symtab.h (deprecated_hp_som_som_object_present): Declare.
5134 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
5135 Update. Delete extern declaration.
5136 * valops.c (hp_som_som_object_present): Ditto.
5137 * parse.c (deprecated_hp_som_som_object_present)
5138 (parse_nested_classes_for_hpacc): Ditto.
5139 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
5140 * hppa-hpux-tdep.c (hp_som_som_object_present)
5141 (initialize_hp_cxx_exception_support): Ditto.
5142 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
5143 * cp-valprint.c (hp_som_som_object_present)
5144 (cp_print_class_method): Ditto.
5145 * c-typeprint.c (hp_som_som_object_present):
5146 (c_type_print_base): Ditto.
5147 * c-exp.y (hp_som_som_object_present): Ditto.
5148
5149 2004-04-08 Andrew Cagney <cagney@redhat.com>
5150
5151 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
5152 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
5153 (frame_unwind_find_by_frame): Re-implement the unwind code so
5154 that it can both prepend and append sniffers. Replace
5155 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
5156 * tramp-frame.c (tramp_frame_append): Use
5157 frame_unwind_prepend_unwinder.
5158 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
5159 frame_unwind_register_unwinder.
5160 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
5161 tramp_frame_append.
5162 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
5163 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
5164 (mips_linux_init_abi): Update.
5165
5166 2004-04-08 Kevin Buettner <kevinb@redhat.com>
5167
5168 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
5169 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
5170 file support.
5171
5172 2004-04-07 Kevin Buettner <kevinb@redhat.com>
5173
5174 * ia64-tdep.c (elf.h): Don't include.
5175 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
5176
5177 2004-04-07 Jason Molenda (jmolenda@apple.com)
5178
5179 * frame.h: Typeo corrections in comments.
5180
5181 2004-04-07 Jim Blandy <jimb@redhat.com>
5182
5183 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
5184 %esp and %ebp
5185
5186 2004-04-07 Mark Kettenis <kettenis@gnu.org>
5187
5188 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
5189 * config/sparc/linux64.mt (TDEPFILES): Likewise.
5190 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5191 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
5192 and solib-legacy.o.
5193 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
5194 solib-svr4.o.
5195 * config/sparc/tm-sol2.h: Update copyright year. Include
5196 "solib.h".
5197
5198 * sparc-sol2-tdep.c: Update copyright year. Include
5199 "solib-svr4.h".
5200 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5201 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
5202 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5203 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
5204 dependencies.
5205
5206 2004-04-06 Andrew Cagney <cagney@redhat.com>
5207
5208 * infttrace.c: Include "infttrace.h".
5209 * infttrace.h: Include "target.h".
5210 * Makefile.in (infttrace_h): Update.
5211 (infttrace.o): Update.
5212
5213 2004-04-06 Andrew Cagney <cagney@redhat.com>
5214
5215 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
5216 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
5217 move extern declarations from here ...
5218 * infttrace.h: ... to here.
5219 * Makefile.in (hppah-nat.o): Update dependencies.
5220
5221 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
5222 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
5223 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
5224 (hppa_breakpoint_from_pc): Delete.
5225
5226 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
5227
5228 2004-04-05 Andrew Cagney <cagney@redhat.com>
5229
5230 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
5231 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
5232 <sys/file.h>.
5233
5234 2004-04-06 Randolph Chung <tausq@debian.org>
5235
5236 Committed by Andrew Cagney (mechanical change).
5237 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
5238 exception_catchpoints_are_fragile, find_stub_with_shl_get,
5239 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
5240 child_enable_exception_callback, current_ex_event,
5241 null_symtab_and_line, child_get_current_exception_event,
5242 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
5243 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
5244 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
5245 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
5246 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
5247 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
5248 Move hpux-specific definitions ...
5249 * hppa-hpux-tdep.c: ... to here.
5250
5251 2004-04-05 Andrew Cagney <cagney@redhat.com>
5252
5253 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
5254 skip_prologue_using_sal.
5255
5256 2004-04-05 Andrew Cagney <cagney@redhat.com>
5257
5258 * config/i386/tm-i386.h: Delete file.
5259 * config/i386/tm-vxworks.h: Update copyright, do not include
5260 "tm-i386.h".
5261 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
5262 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
5263 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
5264 * config/i386/ncr3000.mt (TM_FILE): Delete.
5265 * config/i386/interix.mt (TM_FILE): Delete.
5266 * config/i386/i386v.mt (TM_FILE): Delete.
5267 * config/i386/i386nw.mt (TM_FILE): Delete.
5268 * config/i386/i386gnu.mt (TM_FILE): Delete.
5269 * config/i386/i386aout.mt (TM_FILE): Delete.
5270 * config/i386/embed.mt (TM_FILE): Delete.
5271
5272 2004-04-05 Kevin Buettner <kevinb@redhat.com>
5273
5274 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
5275 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
5276 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
5277 (accg7_regnum): New constants.
5278 (last_spr_regnum, last_pseudo_regnum): Update.
5279 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
5280 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
5281 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
5282 for accg registers.
5283 (frv_register_sim_regno): Update spr_map[].
5284
5285 2004-04-04 Andrew Cagney <cagney@redhat.com>
5286
5287 * config/mips/xm-riscos.h: Delete.
5288 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
5289 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
5290 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
5291 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
5292 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
5293 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
5294 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
5295 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
5296 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
5297 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
5298 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
5299 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
5300 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
5301 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
5302 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
5303 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
5304 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
5305 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
5306 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
5307 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
5308 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
5309 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
5310 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
5311 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
5312 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
5313 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
5314
5315 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
5316 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
5317 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
5318 * configure.host: Remove m680[01]0-sun-sunos3*,
5319 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
5320 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
5321 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
5322 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
5323 mips-*-riscos*.
5324 * NEWS: Mention removed systems.
5325
5326 2004-04-04 Andrew Cagney <cagney@redhat.com>
5327
5328 GDB 6.1 release created from 6.1 branch.
5329
5330 2004-04-04 Andrew Cagney <cagney@redhat.com>
5331
5332 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
5333 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
5334 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
5335
5336 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
5337 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
5338 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
5339
5340 2004-04-03 Jim Blandy <jimb@redhat.com>
5341
5342 * MAINTAINERS: Chris Faylor has changed employers; add him to
5343 "paper trail" section, and update his E-mail address.
5344
5345 2004-04-03 Andrew Cagney <cagney@redhat.com>
5346
5347 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
5348 generic dummy frames.
5349 * dummy-frame.c: Update copyright.
5350 (dummy_frame_sniffer): Delete check for generic dummy frames.
5351
5352 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
5353 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
5354 (REG_PARM_STACK_SPACE): Delete.
5355 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
5356 Inline reference to REG_PARM_STACK_SPACE.
5357
5358 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
5359 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
5360 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5361 (FRAME_BASE_BEFORE_SIGTRAMP)
5362 (hppa32_hpux_frame_base_before_sigtramp)
5363 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
5364 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
5365 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
5366 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
5367 (FRAME_BASE_BEFORE_SIGTRAMP)
5368 (hppa64_hpux_frame_base_before_sigtramp)
5369 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
5370
5371 2004-04-03 Andrew Cagney <cagney@redhat.com>
5372
5373 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
5374
5375 2004-04-02 Andrew Cagney <cagney@redhat.com>
5376
5377 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
5378 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
5379 * dummy-frame.h: Delete out-of-date comments.
5380 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
5381 * gdbarch.h, gdbarch.c: Re-generate.
5382
5383 2004-04-02 Joel Brobecker <brobecker@gnat.com>
5384
5385 Committed by Andrew Cagney <cagney@redhat.com>.
5386 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
5387 into account an instruction saving a register if we have already
5388 seen an earlier instruction saving that same register.
5389
5390 2004-04-02 Andrew Cagney <cagney@redhat.com>
5391
5392 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
5393 * gdbarch.h, gdbarch.c: Re-generate.
5394 * frame.c (legacy_get_prev_frame): Delete references to
5395 DEPRECATED_INIT_FRAME_PC_FIRST.
5396
5397 * infrun.c (pc_in_sigtramp): Delete function.
5398 (check_sigtramp2): Inline call to pc_in_sigtramp, use
5399 get_frame_type.
5400
5401 2004-04-02 Andrew Cagney <cagney@redhat.com>
5402
5403 * infrun.c (handle_step_into_function): Delete code conditional on
5404 legacy_frame_p.
5405 (handle_inferior_event, step_over_function): Ditto.
5406
5407 2004-04-02 Andrew Cagney <cagney@redhat.com>
5408
5409 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
5410 "previous frame inner to this frame" test.
5411
5412 2004-04-02 Andrew Cagney <cagney@redhat.com>
5413
5414 * frame.c (safe_frame_unwind_memory): New function.
5415 * frame.h (safe_frame_unwind_memory): Declare. Update description
5416 of /safe_/ methods.
5417 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
5418 "next_frame". Use safe_frame_unwind_memory.
5419 (tramp_frame_sniffer): Update call to tramp_frame_start.
5420
5421 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
5422
5423 * dwarf2read.c (dwarf2_objfile_data_key): New.
5424 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
5425 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
5426 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
5427 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
5428 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
5429 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
5430 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
5431 Remove variables.
5432 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
5433 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
5434 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
5435 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
5436 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
5437 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
5438 Remove macros.
5439 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
5440 data.
5441 (dwarf2_locate_sections, dwarf2_build_psymtabs)
5442 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
5443 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
5444 (read_partial_die, read_full_die, read_indirect_string)
5445 (dwarf_decode_line_header, dwarf_decode_macros)
5446 (dwarf2_symbol_mark_computed): Remove use of removed macros.
5447 Update uses of removed variables.
5448 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
5449 of removed macros.
5450 (_initialize_dwarf2_read): New function.
5451 * symfile.h (dwarf2_has_info): Update prototype.
5452 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
5453 * elfread.c (elf_symfile_read): Likewise.
5454
5455 2004-04-01 Jim Blandy <jimb@redhat.com>
5456
5457 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
5458 function for register numbers on all the rs6000-derived targets.
5459 (rs6000_gdbarch_init): Don't register a separate
5460 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
5461 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
5462 variants.
5463
5464 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
5465 numbering.
5466
5467 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5468
5469 * valarith.c: Update copyright notice.
5470 (value_add): Handle range types.
5471 (value_sub): Ditto.
5472 (value_equal): Ditto.
5473 (value_less): Ditto.
5474 (value_neg): Ditto.
5475 (value_complement): Ditto.
5476 (value_binop): Simplify slightly by using is_integral_type and
5477 eliminiating unnecessary COERCE_ENUMs.
5478
5479 2004-03-31 Andrew Cagney <cagney@redhat.com>
5480
5481 * frame.h (frame_unwind_id): Declare.
5482 * frame.c (frame_unwind_id): New function.
5483 (get_prev_frame_1): New function.
5484 (frame_debug_got_null_frame): New function.
5485 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
5486 code proper to prev_frame, update description.
5487 * infrun.c (step_over_function): Use frame_unwind_id.
5488
5489 2004-04-31 J. Brobecker <brobecker@gnat.com>
5490
5491 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
5492 (hppa64_push_dummy_call): Likewise.
5493
5494 2004-03-30 Jim Blandy <jimb@redhat.com>
5495
5496 From Ulrich Weigand:
5497 * utils.c (query): Do not use a va_list variable multiple times.
5498
5499 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
5500
5501 * Makefile.in (linux_nat_h): Update dependencies.
5502 * configure.in: Check for <gnu/libc-version.h>.
5503 * configure: Regenerate.
5504 * config.in: Regenerate.
5505 * linux-nat.h: Include "target.h". Add waitstatus field to
5506 struct lwp_info.
5507 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
5508 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
5509 to.
5510 (lin_lwp_handle_extended): New function. Handle clone events.
5511 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
5512 thread exit events.
5513 (child_wait): Handle clone events.
5514 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
5515 * linux-nat.c (linux_enable_event_reporting): Turn on
5516 PTRACE_O_TRACECLONE.
5517 (linux_handle_extended_wait): Handle clone events.
5518 * thread-db.c: Include <gnu/libc-version.h>.
5519 (struct private_thread_info): Add dying flag.
5520 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
5521 higher.
5522 (attach_thread): Update comments. Handle dying threads.
5523 (detach_thread): Set the dying flag.
5524 (check_event): Always call attach_thread.
5525
5526 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
5527
5528 * mips-tdep.c (mips_pdr_data): New.
5529 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
5530 (_initialize_mips_tdep): Initialize mips_pdr_data.
5531
5532 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
5533
5534 * minsyms.c (install_minimal_symbols): Move dropping leading
5535 char from linkage name from here...
5536 (prim_record_minimal_symbol_and_info): ...to here. Simplify
5537 test for "__gnu_compiled*" symbols.
5538
5539 2004-03-28 Jim Blandy <jimb@redhat.com>
5540
5541 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
5542 registers to temp register r0 and byte stores as prologue
5543 instructions.
5544
5545 2004-03-28 Andrew Cagney <cagney@redhat.com>
5546
5547 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
5548 arm*-*-*.
5549
5550 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
5551
5552 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
5553 and switch the layout to force a display of register window.
5554
5555 2004-02-26 J. Brobecker <brobecker@gnat.com>
5556
5557 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
5558 of the INTEGER class.
5559
5560 2004-03-26 Jim Blandy <jimb@redhat.com>
5561
5562 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
5563 bytes long on PPC GNU/Linux.
5564
5565 2004-03-26 David Carlton <carlton@kealia.com>
5566
5567 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
5568
5569 2004-03-25 Andrew Cagney <cagney@redhat.com>
5570
5571 * PROBLEMS: Add general section titles, remove references to
5572 specific releases.
5573
5574 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
5575
5576 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
5577 INT_REGISTER_SIZE.
5578 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
5579 FP_REGISTER_VIRTUAL_SIZE.
5580 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
5581 of DEPRECATED_REGISTER_RAW_SIZE.
5582 (arm_register_type): Add gdbarch argument.
5583 (arm_register_raw_size, arm_register_virtual_size): Delete.
5584 (arm_register_byte, arm_extract_return_value)
5585 (arm_store_return_value, arm_get_longjmp_target): Update references
5586 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
5587 (arm_gdbarch_init): Likewise. Don't set
5588 deprecated_register_raw_size, deprecated_register_virtual_size,
5589 deprecated_max_register_raw_size,
5590 deprecated_max_register_virtual_size, or
5591 deprecated_max_register_virtual_type. Do set register_type.
5592 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
5593 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
5594 (FP_REGISTER_VIRTUAL_SIZE): Delete.
5595 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
5596 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
5597 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
5598 INT_REGISTER_SIZE.
5599 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
5600 (remote_rdp_store_register): Likewise.
5601
5602 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
5603
5604 * Makefile.in (mips-linux-tdep.o): Update dependencies.
5605 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
5606 to after osabi initialization.
5607 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
5608 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
5609 functions.
5610 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
5611 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
5612 variables.
5613 (mips_linux_init_abi): Append signal trampoline unwinders.
5614
5615 2004-03-24 Andrew Cagney <cagney@redhat.com>
5616
5617 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
5618 * tramp-frame.c: Include "gdb_assert.h".
5619 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
5620 correct sizeof.
5621 (tramp_frame_append): Validate the tramp frame's instructions.
5622 * Makefile.in (tramp-frame.o): Update dependencies.
5623
5624 2004-03-23 Andrew Cagney <cagney@redhat.com>
5625
5626 * trad-frame.h (trad_frame_set_reg_addr): Declare.
5627
5628 2004-03-23 Andrew Cagney <cagney@redhat.com>
5629
5630 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
5631 Nasser as past testsuite/lib/ (and other) maintainers.
5632
5633 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
5634
5635 * infcmd.c (attach_command): Reread symbols if we already have
5636 an exec file.
5637
5638 2004-03-23 Andrew Cagney <cagney@redhat.com>
5639
5640 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
5641
5642 2004-03-23 Andrew Cagney <cagney@redhat.com>
5643
5644 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
5645 * gdbarch.h, gdbarch.c: Re-generate.
5646 * i386obsd-tdep.c (i386obsd_init_abi): Update.
5647 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
5648 * i386bsd-tdep.c (i386bsd_init_abi): Update.
5649 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
5650 (DEPRECATED_SIGTRAMP_START): Update.
5651 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
5652 (DEPRECATED_SIGTRAMP_START): Update.
5653 * blockframe.c (find_pc_sect_partial_function): Update.
5654 * arch-utils.c (legacy_pc_in_sigtramp): Update.
5655
5656 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
5657
5658 * remote.c (remote_open_1): Reopen the exec file and reread symbols
5659 if necessary.
5660
5661 2004-03-23 Andrew Cagney <cagney@redhat.com>
5662
5663 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
5664 predicate, deprecate.
5665 * gdbarch.h, gdbarch.c: Re-generate.
5666 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5667 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5668 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
5669 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5670 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
5671 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
5672 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
5673 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
5674 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
5675 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
5676 * blockframe.c (find_pc_partial_function): Update.
5677 * breakpoint.c (bpstat_what): Update.
5678 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
5679 * frv-linux-tdep.c (frv_linux_init_abi): Update.
5680 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
5681 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
5682 * i386-interix-tdep.c (i386_interix_init_abi): Update.
5683 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5684 * i386-nto-tdep.c (i386nto_init_abi): Update.
5685 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
5686 * i386-tdep.c (i386_sigtramp_frame_sniffer)
5687 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
5688 * i386bsd-tdep.c (i386bsd_init_abi): Update.
5689 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
5690 * i386obsd-tdep.c (i386obsd_init_abi): Update.
5691 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
5692 * infrun.c (pc_in_sigtramp): Update.
5693 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
5694 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
5695 * mips-tdep.c (mips_gdbarch_init): Update.
5696 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
5697 * ppc-linux-tdep.c: Update comment.
5698 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
5699 * shnbsd-tdep.c (shnbsd_init_abi): Update.
5700 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
5701 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
5702 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
5703 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
5704 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
5705 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
5706 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
5707 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
5708
5709 2004-03-23 Andrew Cagney <cagney@redhat.com>
5710
5711 * tramp-frame.h, tramp-frame.h: New files.
5712 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
5713 Update rules to include "tramp-frame.h" and "tramp-frame.c".
5714
5715 * Makefile.in: Update all dependencies.
5716
5717 2004-03-23 Andrew Cagney <cagney@redhat.com>
5718
5719 * Makefile.in (trad_frame_h): Add $(frame_h).
5720 * trad-frame.h: Update copyright. Include "frame.h".
5721 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
5722 (trad_frame_set_id, trad_frame_get_id): Declare.
5723 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
5724 * trad-frame.c: Update copyright.
5725 (struct trad_frame_cache): Define.
5726 (trad_frame_cache_zalloc): New function.
5727 (trad_frame_set_id, trad_frame_get_id): New functions.
5728 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
5729
5730 2004-03-22 Andrew Cagney <cagney@redhat.com>
5731
5732 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
5733 s390_pltstub_unwind_cache.
5734 (s390_stub_frame_unwind_cache): Rename
5735 s390_pltstub_frame_unwind_cache.
5736 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
5737 (s390_stub_frame_prev_register): Rename
5738 s390_pltstub_frame_prev_register.
5739 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
5740 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
5741
5742 From Ulrich Weigand:
5743 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
5744 pointer calls like PLT calls.
5745
5746 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
5747
5748 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
5749 PC rather than the partial function start address. Use the start
5750 address to sanity check the found PDR.
5751
5752 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
5753
5754 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
5755 linux_handle_extended_wait.
5756
5757 2004-03-22 Andrew Cagney <cagney@redhat.com>
5758
5759 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
5760 function.
5761
5762 * frame.h (generic_pop_current_frame): Delete declaration.
5763 (deprecate_pop_dummy_frame): Deprecate
5764 generic_pop_dummy_frame.
5765 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
5766 (generic_pop_current_frame): Delete function.
5767 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
5768 generic_pop_current_frame.
5769 * v850-tdep.c (v850_pop_frame): Update.
5770 * mcore-tdep.c (mcore_pop_frame): Update.
5771 * sh64-tdep.c (sh64_pop_frame): Update.
5772 * h8300-tdep.c (h8300_pop_frame): Update.
5773
5774 2004-03-22 Andrew Cagney <cagney@redhat.com>
5775
5776 * frame.h (deprecated_pc_in_call_dummy): Rename
5777 generic_pc_in_call_dummy.
5778 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
5779 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
5780 generic_pc_in_call_dummy.
5781 (pc_in_dummy_frame): Make static.
5782 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
5783 * gdbarch.h, gdbarch.c: Re-generate.
5784 * dummy-frame.c (dummy_frame_sniffer): Simplify.
5785 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
5786 (legacy_get_prev_frame): Ditto.
5787 * inferior.h: Delete reference to generic_pc_in_call_dummy in
5788 comment.
5789
5790 2004-03-21 Andrew Cagney <cagney@redhat.com>
5791
5792 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
5793 declaration and out-of-date comment.
5794 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
5795 Delete function.
5796 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
5797 deprecated_pc_in_call_dummy.
5798
5799 * infrun.c (handle_inferior_event): For non legacy frames, use the
5800 frame ID and frame type to identify a signal trampoline. Update
5801 comments.
5802
5803 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
5804
5805 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
5806 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
5807
5808 2004-03-21 Andrew Cagney <cagney@redhat.com>
5809
5810 * frame-unwind.h: Update copyright.
5811 (struct frame_data): Add opaque declaration.
5812 (frame_sniffer_ftype): Declare.
5813 (struct frame_unwind): Add "unwind_data" and "sniffer".
5814 (frame_unwind_register_unwinder): Declare.
5815 (frame_unwind_find_by_frame): Add parameter "this_cache".
5816 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
5817 (legacy_get_prev_frame, legacy_get_prev_frame)
5818 (get_frame_type): Pass the prologue_cache to
5819 frame_unwind_find_by_frame.
5820 * frame-unwind.c (struct frame_unwind_table_entry): Add field
5821 "unwinder".
5822 (frame_unwind_register_unwinder): New function.
5823 (frame_unwind_find_by_frame): Handle an unwind sniffer.
5824
5825 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
5826
5827 * bcache.c (print_percentage): Use floating point to avoid
5828 incorrect results when portion*100 overflows.
5829
5830 2004-03-19 Kevin Buettner <kevinb@redhat.com>
5831
5832 * ppc_tdep.h (ppc_linux_frame_saved_pc)
5833 (ppc_linux_init_extra_frame_info)
5834 (ppc_linux_frameless_function_invocation)
5835 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
5836 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
5837 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
5838 (rs6000_frame_chain): Delete declarations.
5839 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
5840 (ppc_linux_init_extra_frame_info)
5841 (ppc_linux_frameless_function_invocation)
5842 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
5843 (ppc_linux_init_abi): Remove registration of above deleted functions.
5844 * rs6000-tdep.c (rs6000_init_extra_frame_info)
5845 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
5846 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
5847 (rs6000_pop_frame, rs6000_frameless_function_invocation)
5848 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
5849 (rs6000_gdbarch_init): Remove registration of above deleted functions.
5850 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
5851 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
5852 frame management for all OSABIs.
5853
5854 2004-03-19 Andrew Cagney <cagney@redhat.com>
5855
5856 Committed by Kevin Buettner <kevinb@redhat.com>.
5857
5858 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
5859 Update copyright.
5860 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
5861 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
5862 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
5863 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
5864 unwinders. #ifdef legacy frame code.
5865 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
5866 "frame-base.h".
5867 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
5868 (struct rs6000_frame_cache, rs6000_frame_cache)
5869 (rs6000_frame_this_id, rs6000_frame_prev_register)
5870 (rs6000_frame_sniffer, rs6000_frame_unwind)
5871 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
5872 (rs6000_frame_base): Implement a traditional frame unwinder.
5873 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
5874 frame unwinder.
5875
5876 2004-03-19 Kevin Buettner <kevinb@redhat.com>
5877
5878 * breakpoint.c (adjust_breakpoint_address): Don't adjust
5879 breakpoint address for watchpoints or the catch eventpoints.
5880 Add new paramter ``bptype''. Adjust all callers.
5881
5882 2004-03-19 Andrew Cagney <cagney@redhat.com>
5883
5884 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
5885
5886 * PROBLEMS: Delete note that ARM does not use frame code, problem
5887 fixed.
5888
5889 2004-03-18 Andrew Cagney <cagney@redhat.com>
5890
5891 * stack.c (return_command): Delete code wrapped in #ifdef
5892 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
5893
5894 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
5895
5896 2004-03-18 Andrew Cagney <cagney@redhat.com>
5897
5898 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
5899 DEPRECATED_IN_SIGTRAMP.
5900 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5901 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
5902 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5903 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5904 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5905 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5906 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5907 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5908 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
5909 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
5910
5911 2004-03-18 Andrew Cagney <cagney@redhat.com>
5912
5913 * frame-base.c: Update copyright. Include "gdb_obstack.h".
5914 (struct frame_base_table_entry): Define.
5915 (struct frame_base_table): Re-implement as a linked list.
5916 (frame_base_init): Re-implement.
5917 (frame_base_table): Delete function.
5918 (append_predicate): Delete function.
5919 (frame_base_append_sniffer): Update.
5920 (frame_base_set_default): Update.
5921 (frame_base_find_by_frame): Update.
5922 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
5923 * Makefile.in (frame-base.o): Update dependencies.
5924
5925 2004-03-17 Andrew Cagney <cagney@redhat.com>
5926
5927 * frame.c (legacy_get_prev_frame): Pass correct frame to
5928 frame_unwind_find_by_frame.
5929
5930 2004-03-17 David Carlton <carlton@kealia.com>
5931
5932 * NEWS: Mention C++ nested types and namespaces
5933
5934 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
5935
5936 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
5937 and "Regressions since gdb 5.3.". Add known regressions since
5938 gdb 6.0.
5939
5940 2004-03-16 David Carlton <carlton@kealia.com>
5941
5942 * dwarf2read.c (process_structure_scope): Process children even
5943 when we're a declaration.
5944
5945 2004-03-16 Andrew Cagney <cagney@redhat.com>
5946
5947 * symtab.h (find_pc_sect_partial_function): Delete declaration.
5948 * blockframe.c (find_pc_partial_function)
5949 (find_pc_sect_partial_function): Merge into a single
5950 find_pc_partial_function.
5951
5952 2004-03-16 Mark Kettenis <kettenis@gnu.org>
5953
5954 * i386bsd-nat.c: s/regno/regnum/g.
5955 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
5956 FP0_REGNUM.
5957 (store_inferior_registers): Likewise.
5958
5959 2004-03-16 Mark Kettenis <kettenis@gnu.org>
5960
5961 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
5962 of i387_fill_fsave.
5963 (store_inferior_registers): Call i387_collect_fsave and
5964 i387_collect_fxsave instead of i387_fill_fsave and
5965 i387_fill_fxsave.
5966
5967 2004-03-15 Andrew Cagney <cagney@redhat.com>
5968
5969 * Makefile.in (frame-unwind.o): Update dependencies.
5970 * frame-unwind.c: Include "gdb_obstack.h".
5971 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
5972 parameter.
5973 (append_predicate): Delete function.
5974 (struct frame_unwind_table_entry): New structure.
5975 (struct frame_unwind_table): Replace "sniffer" with "head" and
5976 "tail".
5977 (frame_unwind_append_sniffer): Update.
5978 (frame_unwind_find_by_frame): Update.
5979 (_initialize_frame_unwind): Registe frame_unwind_init using
5980 gdbarch_data_register_pre_init.
5981
5982 2004-03-15 Mark Kettenis <kettenis@gnu.org>
5983
5984 * i386bsd-nat.c: Update copyright year.
5985 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
5986 define unconditionally.
5987
5988 2004-03-15 Mark Kettenis <kettenis@gnu.org>
5989
5990 * i387-tdep.h (i387_collect_fsave): New prototype.
5991 * i387-tdep.c (i387_collect_fsave): New function containing most
5992 of the code from i387_fill_fsave.
5993 (i387_fill_fsave): Call i387_collect_fsave.
5994
5995 2004-03-15 Mark Kettenis <kettenis@gnu.org>
5996
5997 * i386-linux-tdep.c: Update copyright year.
5998 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
5999 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
6000 svr4_ilp32_link_map_offsets instead of
6001 i386_linux_svr4_fetch_link_map_offsets.
6002
6003 2004-03-15 David Carlton <carlton@kealia.com>
6004
6005 Fix for PR c++/1553:
6006 * dwarf2read.c (read_structure_type): Determine type name by
6007 calling determine_class_name.
6008 (determine_class_name): New.
6009 (determine_prefix): Look at TYPE_TAG_NAME and call
6010 determine_class_name when appropriate.
6011 (determine_prefix_aux, class_name): Delete.
6012 (read_namespace): Set die->type.
6013
6014 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6015
6016 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
6017 unused macro definition. The definition in target.h (or perhaps
6018 elsewhere) takes precedence.
6019
6020 2004-03-15 Andrew Cagney <cagney@redhat.com>
6021
6022 * ppc-tdep.h: Update copyright.
6023 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
6024 function signatures to match "regsets.h".
6025 * ppc-linux-tdep.c: Include "regset.h".
6026 (ELF_GREGSET_SIZE): Delete.
6027 (right_supply_register): New function.
6028 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
6029 using right_supply_register.
6030 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
6031 functions.
6032 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
6033 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
6034 (_initialize_ppc_linux_tdep): Do not register
6035 ppc_linux_regset_core_fns.
6036 (ppc_linux_regset_from_core_section): Replace
6037 fetch_core_registers.
6038 (ppc_linux_regset_core_fns): Delete.
6039 * ppc-linux-nat.c: (right_fill_reg): New function.
6040 (supply_gregset): Update call to ppc_linux_supply_gregset.
6041 (fill_gregset): Clear the register set, use right_fill_reg.
6042 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
6043 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
6044
6045 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
6046 unsigned.
6047
6048 2004-03-15 Andrew Cagney <cagney@redhat.com>
6049
6050 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
6051 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
6052 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
6053 and register_gdbarch_data.
6054 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
6055 (struct gdbarch_data): Replace "init" by "pre_init" and
6056 "post_init".
6057 * gdbarch.h, gdbarch.c: Re-generate.
6058 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
6059 with"obstack", use OBSTACK_ZALLOC.
6060 (dwarf2_frame_ops): Delete.
6061 (dwarf2_frame_set_init_reg): Use gdbarch_data.
6062 (dwarf2_frame_init_reg): Use gdbarch_data.
6063 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
6064 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
6065 (_initialize_svr4_solib): Update.
6066 * user-regs.c (_initialize_user_regs): Update.
6067 * reggroups.c (_initialize_reggroup): Update.
6068 * regcache.c (_initialize_regcache): Update.
6069 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6070 * libunwind-frame.c (_initialize_libunwind_frame): Update.
6071 * gnu-v3-abi.c (init_gnuv3_ops): Update.
6072 * frame-unwind.c (_initialize_frame_unwind): Update.
6073 * frame-base.c (_initialize_frame_base): Update.
6074 * user-regs.c (user_reg_add): Update.
6075 * reggroups.c (reggroup_add): Update.
6076 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
6077 * libunwind-frame.c (libunwind_frame_set_descr): Update.
6078 * frame-unwind.c (frame_unwind_append_sniffer): Update.
6079 * frame-base.c (frame_base_table): Update.
6080 * remote.c (_initialize_remote): Update.
6081 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
6082
6083 2004-03-15 Andrew Cagney <cagney@redhat.com>
6084
6085 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
6086
6087 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6088
6089 * Makefile.in (frv-linux-tdep.o): Add dependencies.
6090 * frv-linux-tdep.c: New file.
6091 * frv-tdep.c (struct gdbarch_tdep): Add new field
6092 ``sigcontext_reg_addr''.
6093 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
6094 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6095 (frv_sigramp_frame_sniffer): New functions.
6096 (frv_sigtramp_frame_unwind): New static global.
6097 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
6098 sniffers.
6099 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
6100 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
6101
6102 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6103
6104 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
6105 but not via a call to error(), when unable to read memory.
6106
6107 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6108
6109 * frv-tdep.c (frv_call_dummy_words): Delete.
6110 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
6111
6112 2004-03-15 Andrew Cagney <cagney@redhat.com>
6113
6114 * infrun.c (handle_step_into_function, step_over_function): Only
6115 update and use STEP_FRAME_ID when the system is using legacy
6116 frames. Update comments.
6117
6118 2004-03-14 Mark Kettenis <kettenis@gnu.org>
6119
6120 * amd64-linux-tdep.h: Remove file.
6121 * amd64-linux-tdep.c: Don't include "inferior.h" and
6122 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
6123 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
6124 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
6125 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
6126 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
6127 macros.
6128 (user_to_gdb_regmap): Remove variable.
6129 (amd64_linux_gregset_reg_offset): New variable.
6130 (amd64_core_fns): Remove variable.
6131 (fetch_core_registers): Remove function.
6132 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
6133 functions.
6134 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
6135 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
6136 * Makefile.in (amd64_linux_tdep_h): Remove.
6137 (amd64-linux-nat.o): Update dependencies.
6138 (amd64-linux-tdep.o): Update dependencies.
6139
6140 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
6141 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
6142 functions.
6143 (fetch_inferior_registers, store_inferior_registers): Rewrite.
6144
6145 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
6146 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
6147
6148 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
6149
6150 * dwarf2read.c (read_structure_type): Rename from
6151 read_structure_scope. Don't create a symbol or call process_die.
6152 Return immediately if die->type is set. Call read_type_die before
6153 dwarf2_add_member_fn.
6154 (process_structure_scope): New function.
6155 (read_enumeration_type, process_enumeration_scope): New functions,
6156 broken out from read_enumeration. Don't create the enumeration
6157 type if it has already been created.
6158 (read_enumeration): Removed.
6159 (process_die): Call read_structure_type, process_structure_scope,
6160 read_enumeration_type, and process_enumeration_scope. Just call
6161 new_symbol for base and subrange types. Add a comment about other
6162 type dies.
6163 (read_type_die): Call read_enumeration_type.
6164 (add_partial_structure, new_symbol): Update comments.
6165
6166 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6167
6168 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
6169
6170 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6171
6172 * tui/tui-win.h (tui_get_cmd_list): Declare.
6173 * tui/tui-win.c (tui_command): New function.
6174 (tui_get_cmd_list): New function.
6175 (_initialize_tui_win): Moved initialization of tui command in
6176 tui_get_cmd_list.
6177
6178 * tui/tui-data.c (init_content_element): Setup new data members.
6179 (init_win_info): Likewise.
6180 (free_content_elements): Free it.
6181 * tui/tui-data.h (struct tui_data_element): Store the register
6182 content to print.
6183 (struct tui_data_info): Keep the current register group.
6184
6185 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
6186
6187 * tui/tui-regs.h (tui_show_registers): Update prototype.
6188 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
6189 (tui_resize_all): No need to calculate anything for register window.
6190 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
6191 (tui_set_register_element, tui_set_general_regs_content): Remove.
6192 (tui_set_special_regs_content): Remove.
6193 (tui_set_general_and_special_regs_content): Remove.
6194 (tui_set_float_regs_content): Remove.
6195 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
6196 (tui_set_regs_content): Remove.
6197 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
6198 (tui_v_show_registers_command_support): Remove.
6199 (tui_show_registers): Use a reggroup to specify the registers to show.
6200 (tui_show_register_group): New function.
6201 (tui_display_registers_from): Compute the layout of register window
6202 and refresh with new API; be sure to delete old register windows.
6203 (tui_check_register_values): Update to use tui_get_register and
6204 tui_display_data.
6205 (tui_display_register): Just refresh the register window part.
6206 (tui_register_format): Format registers and save in tui_data_element.
6207 (tui_get_register): New to combine tui_reg_value_has_changed and
6208 tui_get_register_raw_value; fix to use the new gdb API.
6209 (tui_show_float_command): Renamed tui_reg_float_command.
6210 (tui_show_general_command): Renamed tui_reg_general_command.
6211 (tui_show_special_command): Renamed tui_reg_system_command.
6212 (_initialize_tui_regs): Remove unused commands.
6213
6214 2004-03-13 Mark Kettenis <kettenis@gnu.org>
6215
6216 * NEWS (New native configurations): Mention OpenBSD/amd64.
6217
6218 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
6219 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
6220 Remove defines.
6221 * config/i386/nm-fbsd64.h: Likewise.
6222 * config/i386/nm-obsd.h: Likewise.
6223 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
6224 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
6225
6226 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6227
6228 * frv-tdep.c (set_variant_scratch_registers): New function.
6229 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
6230 New constants.
6231
6232 From Richard Sandiford <rsandifo@redhat.com>:
6233 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
6234
6235 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6236
6237 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
6238 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
6239 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
6240 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
6241 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
6242 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
6243 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
6244 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
6245 definitions from frv-tdep.c to frv-tdep.h.
6246
6247 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6248
6249 Add shared library support for FR-V FDPIC ABI:
6250 * Makefile.in (solib-frv.o): Add dependencies.
6251 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
6252 New functions.
6253 (frv_push_dummy_call): Add support for FDPIC ABI.
6254 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
6255 for FDPIC ABI.
6256 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
6257 (frv_fdpic_find_canonical_descriptor): Declare.
6258 * solib-frv.c: New file.
6259 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
6260 * config/frv/tm-frv.h (solib.h): Include.
6261
6262 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6263
6264 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
6265 (frv-tdep.o): Update dependencies.
6266 * frv-tdep.h: New file.
6267 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
6268 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
6269 constants.
6270 (struct gdbarch_tdep): Add new member ``frv_abi''.
6271 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
6272 functions.
6273 (new_variant): Set ``frv_abi'' field.
6274 (gdb_arch_init): Detect FDPIC executables.
6275
6276 2004-03-12 Mark Kettenis <kettenis@gnu.org>
6277
6278 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
6279 wrapper.
6280
6281 2004-03-11 Andrew Cagney <cagney@redhat.com>
6282
6283 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
6284
6285 2004-03-11 Kevin Buettner <kevinb@redhat.com>
6286
6287 * solist.h (master_so_list): New function.
6288 * solib.c (master_so_list): Likewise.
6289 * solib-svr4.c (enable_break): Iterate over so_list entries
6290 obtained from master list instead of entries obtained directly
6291 via svr4_current_sos().
6292
6293 2004-03-10 Ben Elliston <bje@gnu.org>
6294
6295 * MAINTAINERS: Update my mail address.
6296
6297 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
6298
6299 * remote-m32r-sdi.c: Support hardware watchpoint.
6300
6301 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6302
6303 * user-regs.c: Update copyright years.
6304 (struct user_regs): Rename to gdb_user_regs.
6305 (append_user_reg, builtin_user_regs, user_regs_init)
6306 (user_reg_add, user_reg_map_name_to_regnum)
6307 (usernum_to_user_reg): Update.
6308
6309 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6310
6311 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
6312 (skip_children): New functions.
6313 (locate_pdi_sibling): Call skip_children.
6314
6315 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6316
6317 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
6318 * gdbtypes.c (check_typedef): Update comments.
6319
6320 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6321
6322 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
6323 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
6324 pointer. Update comment about comp_unit_head.
6325 (struct abbrev_info): Shorten two int flags.
6326 (dwarf_alloc_abbrev): Take a CU argument.
6327 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
6328 each time through the loop. Update cleanup argument.
6329 (psymtab_to_symtab_1): Update cleanup call.
6330 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
6331 abbrev_obstack.
6332 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
6333 Just call obstack_free and clear the pointer.
6334
6335 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6336
6337 * infrun.c (handle_inferior_event): Remove short-circuit code for
6338 events in a different thread.
6339
6340 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6341
6342 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
6343 print the whole transfer.
6344 (initialize_targets): Update description of "set debug target".
6345
6346 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6347
6348 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
6349
6350 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
6351
6352 * MAINTAINERS (write after approval): Add myself.
6353
6354 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
6355
6356 * sh-tdep.c (sh_print_registers_info): Use for loop.
6357 Don't skip multiple registers when a float register is encountered.
6358
6359 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
6360
6361 Fix PR tdep/1291.
6362 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
6363 to official SH documentation.
6364
6365 2004-03-07 Andrew Cagney <cagney@redhat.com>
6366
6367 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
6368 unused function.
6369
6370 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
6371
6372 * arm-tdep.c (thumb_get_next_pc): Handle BX.
6373 (arm_get_next_pc): Handle BX and BLX.
6374
6375 2004-03-07 Andrew Cagney <cagney@redhat.com>
6376
6377 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
6378 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
6379 HPPA_SP_REGNUM.
6380 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
6381 (hppa_target_read_fp): Delete.
6382 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
6383 register_virtual_size, max_register_raw_size,
6384 max_register_virtual_size, register_byte, register_size,
6385 target_read_fp, fp_regnum, and register_bytes. Set register_type
6386 instead of register_virtual_type.
6387 (hppa32_register_type, hppa64_register_type): Replace
6388 hppa32_register_virtual_type and hppa64_register_virtual_type.
6389 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
6390 (HPPA_FP_REGNUM): Define.
6391
6392 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
6393
6394 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
6395 (pa_do_registers_info): Delete.
6396 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
6397 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
6398 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
6399
6400 * infcall.c (legacy_push_dummy_code): Delete #ifdef
6401 GDB_TARGET_IS_HPPA code.
6402 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
6403 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
6404 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
6405 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
6406 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
6407 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
6408 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
6409 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
6410 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
6411 (hppa_frameless_function_invocation, hppa64_store_return_value)
6412 (hppa_store_struct_return, hppa64_extract_return_value)
6413 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
6414 (hppa32_call_dummy_length, hppa64_call_dummy_length)
6415 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
6416 (find_proc_framesize, deposit_21, restore_pc_queue)
6417 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
6418 (rp_saved, pc_in_linker_stub): Delete.
6419
6420 Unconditionally enable 64-bit frame and ABI code.
6421 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
6422 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
6423 push_dummy_frame, fix_call_dummy, push_arguments,
6424 call_dummy_location, extract_return_value, use_struct_convention,
6425 store_return_value, store_struct_return, saved_pc_after_call,
6426 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
6427 frame_chain, frame_chain_valid, frameless_function_invocation,
6428 frame_saved_pc, and pop_frame.
6429
6430 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
6431 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
6432 (hppa_gdbarch_init): Do not set PC_REGNUM.
6433
6434 2004-03-06 Mark Kettenis <kettenis@gnu.org>
6435
6436 * config/alpha/tm-fbsd.h: Remove file.
6437 * config/alpha/fbsd.mt: Tweak comment.
6438 (TM_FILE): Set to tm-alpha.h.
6439
6440 2004-03-05 Andrew Cagney <cagney@redhat.com>
6441
6442 * infrun.c (step_over_function): When non-legacy code, and no
6443 step_frame_id, use the unwinder to get the caller's frame ID.
6444
6445 2004-03-05 Mark Kettenis <kettenis@gnu.org>
6446
6447 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
6448 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
6449 bfd_arch_unknown. Adjust comment.
6450
6451 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
6452 * i386obsd-tdep.c: Correct spelling in comment.
6453 * i386nbsd-tdep.c: Correct spelling in comment.
6454 * sparc-tdep.c: Correct spelling in comments.
6455
6456 2004-03-05 David Carlton <carlton@kealia.com>
6457
6458 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
6459 bug.
6460
6461 2004-03-05 Mark Kettenis <kettenis@gnu.org>
6462
6463 * sparc-tdep.c: Fix typo in comment.
6464
6465 2004-03-04 J. Brobecker <brobecker@gnat.com>
6466
6467 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
6468
6469 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
6470
6471 * dwarf2read.c: Add comment describing memory lifetimes.
6472 (struct dwarf2_pinfo): Update comment.
6473 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
6474 (read_enumeration, new_symbol): Don't use obsavestring.
6475
6476 2004-03-04 Mark Kettenis <kettenis@gnu.org>
6477
6478 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
6479 instead of amd64_fill_fxsave.
6480 * amd64bsd-nat.c (store_inferior_registers): Likewise.
6481 * amd64fbsd-nat.c (fill_fpregset): Likewise.
6482
6483 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
6484 Reorganize code a bit.
6485
6486 2004-03-04 Orjan Friberg <orjanf@axis.com>
6487
6488 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
6489 when the frame pointer is pushed. Don't set the frame pointer's
6490 address on the stack unless it's actually located there.
6491 Set the SRP's address on the stack correctly when the PC is still in
6492 the prologue.
6493 (cris_return_value): New function.
6494 (cris_gdbarch_init): Clear deprecated store_return_value,
6495 extract_return_value.
6496
6497 2004-03-02 Jim Blandy <jimb@redhat.com>
6498
6499 * stabsread.c (reg_value_complaint): The maximum register number
6500 is one less than the number of registers.
6501
6502 2004-03-02 Andrew Cagney <cagney@redhat.com>
6503
6504 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
6505 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
6506 trailing comma and redundant assignment of I386_ST0_REGNUM.
6507 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
6508 32-bit segment registers.
6509
6510 2004-03-01 Andrew Cagney <cagney@redhat.com>
6511
6512 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
6513 use frame_relative_level and get_next_frame.
6514
6515 2004-02-29 Andrew Cagney <cagney@redhat.com>
6516
6517 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
6518 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
6519 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
6520 Delete macro.
6521
6522 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
6523
6524 * inflow.c (terminal_inferior): Don't give up the terminal if we
6525 previously couldn't get the inferior's terminal state.
6526
6527 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
6528
6529 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
6530 PC_REGNUM.
6531
6532 2004-02-28 Andrew Cagney <cagney@redhat.com>
6533
6534 * NEWS: Refer to GDB 6.1.
6535 * README: Refer to GDB 6.1.
6536 * PROBLEMS: Refer to GDB 6.1.
6537
6538 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
6539
6540 * thread-db.c (disable_thread_signals): Remove unused function.
6541
6542 2004-02-28 Mark Kettenis <kettenis@gnu.org>
6543
6544 * amd64-nat.c: Include "gdb_string.h".
6545 (amd64_collect_native_gregset): Zero-extend the 32-bit
6546 general-purpose registers and %eip.
6547
6548 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
6549 * amd64-tdep.c (amd64_collect_fxsave): New function.
6550 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
6551
6552 * i387-tdep.h: Update copyright year.
6553 (i387_collect_fxsave): New prototype.
6554 * i387-tdep.c: Update copyright year.
6555 (i387_collect_fxsave): New function containing most of the code
6556 from i387_fill_fxsave.
6557 (i387_fill_fxsave): Call i387_collect_fxsave.
6558
6559 2004-02-28 Andrew Cagney <cagney@redhat.com>
6560
6561 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
6562 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
6563
6564 2004-02-28 Mark Kettenis <kettenis@gnu.org>
6565
6566 * amd64-tdep.c (amd64_frame_cache): Fix comment.
6567
6568 2004-02-28 Andrew Cagney <cagney@redhat.com>
6569
6570 * utils.c: Use "", instead of <>, to include readline.
6571 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
6572 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
6573 * source.c, solib.c, exec.c, event-top.c: Ditto.
6574 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
6575 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
6576 * Makefile.in: Update all dependencies.
6577 (readline_tilde_h, readline_history_h): Define.
6578 (readline_headers): Delete.
6579
6580 2004-02-28 Mark Kettenis <kettenis@gnu.org>
6581
6582 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
6583 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
6584 "config/i386/tm-lx64.h".
6585
6586 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
6587 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
6588 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
6589
6590 2004-02-28 Andrew Cagney <cagney@redhat.com>
6591
6592 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
6593
6594 * breakpoint.c (_initialize_breakpoint): Use
6595 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
6596 Add help to show command.
6597
6598 2004-02-28 Mark Kettenis <kettenis@gnu.org>
6599
6600 * i386-nat.c: Reformat to be closer to coding standards.
6601 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
6602 `retval'. Make variables `align' and `size' local to while-loop.
6603 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
6604 (_initialize_i386_nat): New prototype.
6605
6606 * tui/tui.c: Include <readline/readline.h> instead of
6607 "readline/readline.h". Include it after <term.h> and
6608 "gdb_curses.h".
6609
6610 2004-02-27 Andrew Cagney <cagney@redhat.com>
6611
6612 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
6613 the new frame unwind code.
6614 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
6615 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
6616 PCOQ_HEAD_REGNUM.
6617
6618 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
6619 "return_value" and "push_dummy_call".
6620 (hppa32_use_struct_convention): Delete unused function.
6621 (hppa32_store_return_value): Delete unused function.
6622 (hppa32_extract_return_value): Delete unused function.
6623 (hppa32_stack_align): Delete function.
6624
6625 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
6626
6627 * coffread.c (enter_linenos): Don't let rawptr reference memory
6628 outside linetab[]'s limits.
6629
6630 2004-02-27 Andrew Cagney <cagney@redhat.com>
6631
6632 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
6633 inferior stack space - the stack needs to grow upwards.
6634 (hppa32_frame_align): New function.
6635 (hppa64_frame_align): Replace hppa_frame_align.
6636 (hppa_gdbarch_init): Update.
6637
6638 2004-02-26 Orjan Friberg <orjanf@axis.com>
6639
6640 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
6641 (dwarf2-frame.h): Include.
6642 (enum cris_regnums): New enum CRIS_FP_REGNUM.
6643 Remove static variables related to ABI setting.
6644 (struct gdbarch_tdep): Remove cris_abi member.
6645 (struct frame_extra_info): Remove.
6646 (cris_unwind_cache, stack_item): New structs.
6647 (cris_frame_unwind, cris_frame_base): New variables.
6648 (push_stack_item, pop_stack_item)
6649 (cris_frame_unwind_cache, cris_frame_this_id)
6650 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
6651 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
6652 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
6653 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
6654 (cris_reg_struct_has_addr): New functions.
6655 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
6656 (cris_frame_saved_pc, cris_saved_pc_after_call,
6657 (cris_store_struct_return, cris_frameless_function_invocation)
6658 (cris_pop_frame, cris_skip_prologue_main)
6659 (cris_abi_original_store_return_value)
6660 (cris_abi_v2_store_return_value)
6661 (cris_abi_original_extract_return_value)
6662 (cris_abi_v2_extract_return_value)
6663 (cris_abi_original_reg_struct_has_addr)
6664 (cris_abi_v2_reg_struct_has_addr)
6665 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
6666 (cris_push_return_address, cris_abi_update): Remove.
6667 (_initialize_cris_tdep): Remove ABI command.
6668 (cris_dump_tdep): Ditto.
6669 (cris_gdbarch_init): Remove ABI command.
6670 Set store_return_value, extract_return_value, push_dummy_code,
6671 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
6672 frame_unwind_append_sniffer, frame_base_set_default.
6673 Clear deprecated init_frame_pc, push_arguments, store_return_value,
6674 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
6675 sizeof_call_dummy_words, get_saved_register, push_return_address,
6676 pop_frame, store_struct_return, frame_init_saved_regs,
6677 init_extra_frame_info, frameless_function_invocation, frame_chain,
6678 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
6679 dummy_write_sp.
6680
6681 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
6682
6683 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
6684 * valprint.c (print_hex_chars): Change from static to external.
6685 (print_char_chars): New function.
6686 * printcmd.c (print_scalar_formatted): For integer and enum types
6687 that are longer than LONGEST, perform processing via appropriate
6688 print_*_chars routines.
6689
6690 2004-02-26 Andrew Cagney <cagney@redhat.com>
6691
6692 * Makefile.in: Update dependencies.
6693 Changes from Ulrich Weigand,
6694 * s390-tdep.c: Include "dwarf2-frame.h".
6695 (s390_dwarf2_frame_init_reg): New function.
6696 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
6697 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
6698
6699 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
6700
6701 * breakpoint.c (pending_break_support): New setting variable.
6702 (break_command_1): Account for pending_break_support setting
6703 when creating pending breakpoints.
6704 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
6705 (_initialize_breakpoint): Add "set breakpoint pending" and
6706 "show breakpoint pending" commands.
6707
6708 2004-02-26 Andrew Cagney <cagney@redhat.com>
6709
6710 Fix PR i18n/1570.
6711 * charset.c (backslashable, backslashed, represented): Remove 'e'
6712 from list of escaped characters, not part of ISO-C.
6713
6714 2004-02-25 J. Brobecker <brobecker@gnat.com>
6715
6716 From Peter Schauer <schauer@pdf.de>:
6717 * tui/tui.c: Move system header includes after local includes.
6718 Fixes a build failure on solaris systems.
6719
6720 2004-02-25 J. Brobecker <brobecker@gnat.com>
6721
6722 * configure.in: Refine the previous change.
6723 * configure: Regenerate.
6724
6725 2004-02-25 Mark Kettenis <kettenis@gnu.org>
6726
6727 * amd64-tdep.h: Renamed from x86-64-tdep.h.
6728 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
6729 "amd64-tdep.h" instead of "x86-64-tdep.h".
6730 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
6731 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
6732 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
6733 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
6734 and "x86-64-tdep.c".
6735 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
6736 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
6737 and "x86-64-tdep.c".
6738 * amd64bsd-nat.c: Update copyright year.
6739 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
6740 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
6741 "x86-64-tdep.h".
6742 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
6743 "x86-64-tdep.h".
6744 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
6745 "x86-64-tdep.h".
6746 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
6747 "x86-64-tdep.h".
6748 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
6749 "x86-64-tdep.h".
6750 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
6751 "x86-64-tdep.h".
6752 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
6753 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
6754 * Makefile.in (amd64_linux_tdep_h): Renamed from
6755 x86_64_linux_tdep_h.
6756 (amd64_tdep_h): Renamed from x86_64_tdep_h.
6757 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
6758 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
6759 (amd64obsd-tdep.o): Update dependencies.
6760 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
6761 dependencies.
6762 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
6763 dependencies.
6764 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
6765 amd64-linux-nat.c amd64-linux-tdep.c.
6766 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
6767 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
6768 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
6769 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
6770 amd64-tdep.o and amd64-linux-tdep.o.
6771 (TM_FILE): Set to tm-linux64.h.
6772 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
6773 (NAT_FILE): Set to nm-linux64.h.
6774 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
6775 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
6776 amd64-tdep.o.
6777 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
6778 amd64-tdep.o.
6779 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
6780 amd64-tdep.o.
6781
6782 2004-02-25 Roland McGrath <roland@redhat.com>
6783
6784 * remote.c (remote_protocol_qPart_auxv): New variable.
6785 (init_all_packet_configs): Initialize it.
6786 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
6787 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
6788 (show_remote_cmd): Call it.
6789 (_initialize_remote): Initialize commands.
6790 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
6791 service TARGET_OBJECT_AUXV requests.
6792
6793 2004-02-25 J. Brobecker <brobecker@gnat.com>
6794
6795 * configure.in: Make sure that the wborder function is available.
6796 Otherwise, search for it in the cur_colr library.
6797 * configure: Regenerate.
6798
6799 2004-02-25 Andrew Cagney <cagney@redhat.com>
6800
6801 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
6802
6803 2004-02-25 Mark Kettenis <kettenis@gnu.org>
6804
6805 * config/i386/tm-x86-64linux.h: Tweak comments.
6806
6807 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
6808
6809 * MAINTAINERS: Add self to write-after-approval list.
6810
6811 2004-02-25 Andrew Cagney <cagney@redhat.com>
6812
6813 PR cli/1566. Problem found, and fix suggested by David Allan.
6814 * cli/cli-script.c (execute_control_command): Unconditionally
6815 install a cleanup. Default "ret" to "invalid_control". Use
6816 "break" instead of "return" to escape from the switch.
6817
6818 2004-02-24 J. Brobecker <brobecker@gnat.com>
6819
6820 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
6821 with the lines macro defined in term.h on AiX.
6822 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
6823 a collision with the label_width macro defined in term.h on AiX.
6824
6825 2004-02-23 David Mosberger <davidm@hpl.hp.com>
6826
6827 Committed by Kevin Buettner <kevinb@redhat.com>.
6828
6829 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
6830 * ia64-tdep.c (ia64_write_pc): Make it a global function.
6831 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
6832 instead of ia64_write_pc().
6833 * ia64-linux-tdep.c (regcache.h): Include.
6834 (ia64_linux_write_pc): New function.
6835
6836 2004-02-23 Roland McGrath <roland@redhat.com>
6837
6838 * auxv.c (info_auxv_command): Fix typos in error messages.
6839
6840 2004-02-23 Mark Kettenis <kettenis@gnu.org>
6841
6842 * x86-64-tdep.h: Tweak comment.
6843 (enum amd64_regnum): New.
6844 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
6845 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
6846 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
6847 (X86_64_XMM1_REGNUM): Removed.
6848 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
6849 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
6850 prototypes for renamed functions.
6851 * x86-64-tdep.c: Fix typo.
6852 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
6853 register numbers.
6854 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
6855 Use constants from `enum amd64_regnum' for register numbers.
6856 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
6857 (amd64_analyze_prologue, amd64_frame_cache,
6858 amd64_sigtramp_frame_cache): Use constants from `enum
6859 amd64_regnum' for register numbers.
6860 (amd64_supply_fpregset): Adjust for renamed functions.
6861 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
6862 `enum amd64_regnum' for register numbers.
6863 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
6864 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
6865 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
6866 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
6867 (amd64_linux_fill_gregset): Adjust for renamed macros.
6868 (fetch_core_registers): Adjust for renamed functions.
6869 (amd64_linux_init_abi): Adjust for renamed functions.
6870 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
6871 renamed functions.
6872 * amd64-nat.c: Adjust for renamed macros.
6873 * amd64bsd-nat.c (fetch_inferior_registers)
6874 (store_inferior_registers): Use constants from `enum amd64_regnum'
6875 for register numbers. Adjust for renamed variables.
6876 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
6877 renamed variables.
6878 (_initialize_amd64fbsd_nat): Use constants from `enum
6879 amd64_regnum' for register numbers.
6880 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
6881 `enum amd64_regnum' for register numbers.
6882 (amd64fbsd_init_abi): Adjust for renamed functions.
6883 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
6884 `enum amd64_regnum' for register numbers.
6885 (amd64nbsd_init_abi): Adjust for renamed functions.
6886 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
6887 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
6888 `enum amd64_regnum' for register numbers.
6889 (amd64obsd_init_abi): Adjust for renamed functions.
6890 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
6891
6892 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
6893
6894 * breakpoint.c (print_one_breakpoint): Do not output spaces
6895 after printing <PENDING> for a pending breakpoint.
6896
6897 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
6898
6899 * printcmd.c (print_scalar_formatted): Initialize val_long
6900 to remove compiler warning message.
6901
6902 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
6903
6904 * defs.h (nquery, yquery): New prototypes.
6905 * breakpoint.c (break_command_1): Use new nquery interface.
6906 * utils.c (defaulted_query, nquery, yquery): New functions.
6907
6908 2004-02-23 Andrew Cagney <cagney@redhat.com>
6909
6910 * hppa-tdep.c (hppa_frame_align): New function.
6911 (hppa32_push_dummy_call): New function.
6912 (hppa64_push_dummy_call): New function.
6913 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
6914 disabled.
6915
6916 * infcall.c (legacy_push_dummy_code): Don't call deprecated
6917 FIX_CALL_DUMMY when push_dummy_call is available.
6918 (call_function_by_hand, push_dummy_code): Ditto.
6919
6920 2004-02-22 Andrew Cagney <cagney@redhat.com>
6921
6922 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
6923 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
6924 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
6925 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
6926 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
6927 call_dummy_location to ON_STACK.
6928
6929 2004-02-22 Mark Kettenis <kettenis@gnu.org>
6930
6931 * x86-64-linux-tdep.c: Tweak comment.
6932 (amd64_linux_supply_gregset): Renamed from
6933 x86_64_linux_supply_gresget.
6934 (amd64_linux_fill_gregset): Renamed from
6935 x86_64_linux_fill_gregset.
6936 (fetch_core_registers): Adjust for renamed functions.
6937 (amd64_core_fns): Renamed from x86_64_core_fns.
6938 (amd64_linux_sigtramp_start): Renamed from
6939 x86_64_linux_sigtramp_start.
6940 (amd64_linux_pc_in_sigtramp): Renamed from
6941 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
6942 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
6943 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
6944 (amd64_linux_sigcontext_addr): Renamed from
6945 x86_64_linux_sigcontext_addr.
6946 (amd64_linux_sc_reg_offset): Renamed from
6947 x86_64_linux_sc_reg_offset.
6948 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
6949 Adjust for renamed functions and variables.
6950 (_initialize_amd64_linux_tdep): Renamed from
6951 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
6952 variables.
6953 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
6954 Adjust for renamed functions.
6955
6956 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
6957 from x86_64_linux_gregset64_reg_offset.
6958 (amd64_linux_gregset32_reg_offset): Rename from
6959 x86_64_linux_gregset64_reg_offset.
6960 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
6961 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
6962 (amd64_linux_dr_set_control): Renamed from
6963 x86_64_linux_dr_set_control. Adjust for renamed functions.
6964 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
6965 Adjust for renamed functions.
6966 (amd64_linux_dr_reset_addr): Renamed from
6967 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
6968 (amd64_linux_dr_get_status): Renamed from
6969 x86_64_linux_dr_get_status. Adjust for renamed functions.
6970 (_initialize_amd64_linux_nat): Renamed from
6971 _initialize_x86_64_linux_nat. Adjust for renamed variables and
6972 functions.
6973 * config/i386/nm-x86-64linux.h: Update copyright year.
6974 Adjust for renamed functions.
6975
6976 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
6977 amd64fbsd_sigtramp_start.
6978 (amd64fbsd_sigtramp_end_addr): Renamed from
6979 amd64fbsd_sigtramp_end.
6980 (amd64fbsd_init_abi): Adjust for renamed variables.
6981 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
6982 variables.
6983 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
6984 amd64fbsd_sigtramp_start.
6985 (amd64fbsd_sigtramp_end_addr): Renamed from
6986 amd64fbsd_sigtramp_end.
6987
6988 2004-02-22 Andrew Cagney <cagney@redhat.com>
6989
6990 * hppa-tdep.c (hppa32_return_value): New function.
6991 (hppa64_return_value): New function.
6992 (hppa_gdbarch_init): Set return_value; keep disabled.
6993
6994 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
6995 struct-return and inferior function call methods.
6996
6997 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6998 "frame-base.h".
6999 (struct hppa_frame_cache): Define.
7000 (hppa_frame_cache, hppa_frame_this_id): New functions.
7001 (hppa_frame_prev_register): New function.
7002 (hppa_frame_unwind, hppa_frame_base): New variables.
7003 (hppa_frame_unwind_sniffer): New function.
7004 (hppa_frame_base_address, hppa_unwind_pc): New function.
7005 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
7006 sniffer, and frame base sniffer; keep disabled.
7007 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
7008 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
7009
7010 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
7011 to predicates for "seriously old code".
7012
7013 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
7014 runtime if(0).
7015
7016 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
7017 unsigned.
7018 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
7019
7020 * config/pa/tm-hppa.h: Update copyright.
7021 (DEPRECATED_INIT_FRAME_PC): Delete macro.
7022 (deprecated_init_frame_pc_default): Delete declaration.
7023 (hppa_frame_init_saved_regs): Delete declaration.
7024 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7025 * hppa-tdep.c: Include "arch-utils.h".
7026 (hppa_gdbarch_init): Set deprecated init_frame_pc
7027 and deprecated frame_init_saved_regs.
7028 (hppa_frame_init_saved_regs): Make static.
7029
7030 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7031
7032 Remove old 386BSD support.
7033 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
7034 * configure.host: Remove i[34567]86-*-bsd*.
7035 * configure.tgt: Remove i[34567]86-*-bsd*.
7036 * i386b-nat.c: Removed.
7037 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
7038 (i386b-nat.o): Remove dependencies.
7039
7040 * config/i386/i386bsd.mh: Removed.
7041 * config/i386/i386bsd.mt: Removed.
7042 * config/i386/nm-i386bsd.h: Removed.
7043 * config/i386/tm-i386bsd.h: Removed.
7044 * config/i386/xm-i386bsd.h: Removed.
7045
7046 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
7047
7048 * amd64fbsd-tdep.c: Include "solib-svr4.h".
7049 (amd64fbsd_init_abi): Set link map offsets.
7050 * amd64nbsd-tdep.c: Include "slib-svr4.h".
7051 (amd64nbsd_init_abi): Set link map offsets.
7052 * amd64obsd-tdep.c: Include "solib-svr4.h".
7053 (amd64obsd_init_abi): Set link map offsets.
7054 * i386fbsd-tdep.c: Include "solib-svr4.h".
7055 (i386fbsd_init_abi): Set link map offsets.
7056 * i386nbsd-tdep.c: Include "solib-svr4.h".
7057 (i386nbsdelf_init_abi): Set link map offsets.
7058 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
7059 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
7060 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
7061 solib-legacy.o and core-aout.o. Reformat.
7062 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
7063 solib-svr4.o, solib-legacy.o. Reformat.
7064 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
7065 * config/i386/nbsdelf.mh: Reformat.
7066 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
7067 solib-svr4.o, solib-legacy.o and corelow.o.
7068 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
7069 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
7070 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
7071 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7072 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7073 (TM_FILE): Set to tm-fbsd.h.
7074 * config/i386/nbsd.mt (TDEPFILES): Reformat.
7075 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
7076 solib-svr4.o.
7077 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
7078 solib-svr4.o.
7079 (TM_FILE): Set to nm-nbsd.h.
7080 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
7081 Simplify shared library support. Don't include "elf/common.h".
7082 (SVR4_SHARED_LIBS): Don't define.
7083 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
7084 "solib.h".
7085 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
7086 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
7087 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
7088 Don't include "i386/tm-i386.h". Include "solib.h".
7089 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
7090 Don't include "i386/tm-i386.h".
7091 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
7092 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
7093 Include "i386/xm-i386.h".
7094 (HOST_LONG_DOUBLE_FORMAT): Remove.
7095
7096 Fix OpenBSD/i386 sigtramp recognition.
7097 * i386-tdep.h: Update copyright year.
7098 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
7099 (i386bsd_sigtramp_end): New prototypes.
7100 (i386fbsd_sigtramp_start_addr): Renamed from
7101 i386fbsd_sigtramp_start.
7102 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7103 (i386obsd_sigtramp_start_addr): Renamed from
7104 i386obsd_sigtramp_start.
7105 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7106 * i386bsd-tdep.c: Update copyright year.
7107 (i386bsd_pc_in_sigtramp): Make public.
7108 * i386fbsd-nat.c: Update copyright year.
7109 (_initialize_i386fbsd_nat): Adjust for renamed variables.
7110 * i386fbsd-tdep.c: Update copyright year.
7111 (i386fbsd_sigtramp_start_addr): Renamed from
7112 i386fbsd_sigtramp_start.
7113 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7114 (i386fbsdaout_init_abi): Adjust for renamed variables.
7115 * i386obsd-nat.c: Update copyright year.
7116 (_initialize_i386obsd_nat): Adjust for renamed variables.
7117 * i386obsd-tdep.c: Include "target.h".
7118 (i386obsd_page_size): New variable.
7119 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
7120 (i386obsd_sigtramp_end): New functions.
7121 (i386obsd_sigtramp_start_addr): Renamed from
7122 i386obsd_sigtramp_start.
7123 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7124 (i386obsd_init_abi): Adjust for renamed variables. Set
7125 pc_in_sigtramp, sigtramp_start and sigtramp_end.
7126 * Makefile.in (i386obsd-tdep.o): Update dependencies.
7127
7128 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
7129 trampoline change in OpenBSD kernel.
7130
7131 * amd64-nat.c: Update copyright year.
7132 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
7133 architecture from REGCACHE.
7134
7135 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
7136 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
7137
7138 2004-02-21 Mark Kettenis <kettenis@gnu.org>
7139
7140 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
7141 i[34567]86-*-openbsd3.[0-3].
7142 * config/i386/obsdaout.mh: New file.
7143
7144 * config/i386/obsd.mh (MH_FLAGS): Remove.
7145
7146 Fix PR build/1549.
7147 * i386obsd-tdep.c: Update copyright years. Include
7148 "solib-svr4.h".
7149 (i386obsd_init_abi): Don't set regset_from_core_section here.
7150 (i386obsd_aout_init_abi): New function. Set
7151 regset_from_core_section here.
7152 (i386obsd_elf_init_abi): New function.
7153 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
7154 * Makefile.in (i386obsd-tdep.o): Update dependecies.
7155 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7156 (TM_FILE): Set to tm-nbsd.h.
7157
7158 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
7159 solib-sunos.o.
7160
7161 * solib-svr4.h: Update copyright year.
7162 (svr4_ilp32_fetch_link_map_offsets)
7163 (svr4_lp64_fetch_link_map_offsets): New prototype.
7164 * solib-svr4.c: Update copyright year.
7165 (svr4_ilp32_fetch_link_map_offsets)
7166 (svr4_lp64_fetch_link_map_offsets): New function.
7167
7168 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
7169
7170 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
7171 to the partial symbol table.
7172
7173 2004-02-20 J. brobecker <brobecker@gnat.com>
7174
7175 * PROBLEMS: Add description of problem documented under gdb/1560.
7176
7177 2004-02-20 Mark Kettenis <kettenis@gnu.org>
7178
7179 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
7180 comments.
7181 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
7182 functions.
7183 (amd64obsd_init_abi): Reorder initializations. Use
7184 amd64obsd_r_reg_offset to initialize the general-purpose register
7185 set details. Set regset_from_core_section.
7186 (_initialize_amd64obsd_tdep): Rename from
7187 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
7188 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
7189 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
7190
7191 * NEWS (New native configurations): Mention OpenBSD/alpha.
7192 * configure.tgt: Add alpha*-*-openbsd*.
7193 * configure.host: Add alpha*-*-openbsd*.
7194 * alphanbsd-tdep.c: Update copyright year.
7195 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
7196
7197 2004-02-20 Andrew Cagney <cagney@redhat.com>
7198
7199 Fix PR tdep/1372.
7200 * configure.tgt: Delete target "none-*-*".
7201 * configure.host: Delete host "none-*-*".
7202 * config/none/none.mh: Delete file.
7203 * config/none/none.mt: Delete file.
7204 * config/none/xm-none.h: Delete file.
7205 * config/none/tm-none.h: Delete file.
7206 * config/none/nm-none.h: Delete file.
7207
7208 2004-02-19 Fred Fish <fnf@redhat.com>
7209
7210 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
7211 cache->uses_fp prior to setting it.
7212
7213 2004-02-19 Fred Fish <fnf@redhat.com>
7214
7215 Fix for PR breakpoint/1558.
7216 * sh-tdep.c (IS_JSR): New macro.
7217 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
7218
7219 2004-02-19 Jim Blandy <jimb@redhat.com>
7220
7221 * findvar.c (value_from_register): Doc fix.
7222
7223 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
7224
7225 * printcmd.c (print_scalar_formatted): Do not check for sizeof
7226 type being greater than sizeof of host's LONGEST. Always use
7227 unpack_long() unless format 'f' chosen.
7228
7229 2004-02-19 Joel Brobecker <brobecker@gnat.com>
7230
7231 Committed by Elena Zannoni <ezannoni@redhat.com>
7232
7233 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
7234 contains a symbol wich is the best, non-exact match for the given
7235 pc. Update comments.
7236
7237 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
7238
7239 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
7240 macro, which was part of the now removed Mach 3 port.
7241 * utils.c (request_quit): Ditto.
7242
7243 2004-02-18 Mark Kettenis <kettenis@gnu.org>
7244
7245 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
7246 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
7247
7248 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7249
7250 Committed by Mark Kettenis <kettenis@gnu.org>.
7251
7252 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
7253 Define.
7254
7255 2004-02-18 Andrew Cagney <cagney@redhat.com>
7256
7257 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
7258 CONFIG_INSTALL and CONFIG_UNINSTALL.
7259 * configure: Re-generate.
7260 * interps.h (INTERP_TUI): Define.
7261 * Makefile.in: Update dependencies.
7262 (TUI): New macro.
7263 (tui-main.o): Specify dependencies.
7264 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
7265 * tui/tui-main.c: New file.
7266
7267 2004-02-18 Mark Kettenis <kettenis@gnu.org>
7268
7269 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
7270 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
7271 dependencies.
7272 * configure.host: Add x86_64-*-openbsd*.
7273 * configure.tgt: Add x86_64-*-openbsd*.
7274 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
7275
7276 * tui/tui.c: Don't include <malloc.h>.
7277
7278 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
7279 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
7280 amd64nbsd-tdep.c.
7281
7282 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
7283 static. Remove extraneous whitespace.
7284 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
7285 static.
7286
7287 2004-02-17 Jim Blandy <jimb@redhat.com>
7288
7289 * findvar.c (value_from_register): Doc fix.
7290
7291 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7292
7293 Committed by Jim Blandy <jimb@redhat.com>.
7294
7295 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
7296 CORE_ADDR as type for selectors. Correct types for GNU run time
7297 message lookup function to use double indirection.
7298 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
7299 * objc-lang.h (lookup_child_selector): Adapt prototype.
7300
7301 * s390-nat.c (SUBOFF): New macro.
7302 (supply_gregset, fill_gregset): Use it to handle debugging
7303 of 32-bit exectuables running under a 64-bit kernel.
7304 * s390-tdep.c: Include "solib-svr4.h".
7305 (s390_svr4_fetch_link_map_offset): New function.
7306 (s390x_svr_fetch_link_map_offset): Likewise.
7307 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
7308 * Makefile.in (s390-tdep.o): Update dependencies.
7309
7310 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
7311 "frame-unwind.h".
7312 (s390_readinstruction): Reformat. Use read_memory_nobpt.
7313 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
7314 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
7315 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
7316 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
7317 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
7318 S390_SIGNAL_FRAMESIZE,
7319 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
7320 (struct frame_extra_info): Remove.
7321 (s390_memset_extra_info): Remove.
7322 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
7323 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
7324 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
7325 (is_rse): Renamed to ...
7326 (is_rsy): ... this. Support long displacements.
7327 (is_rxe): Renamed to ...
7328 (is_rxy): ... this. Support long displacements.
7329 (compute_x_addr): Support long displacements.
7330 (struct s390_prologue_data): New data type.
7331 (s390_on_stack): Change API to use struct s390_prologue_data.
7332 (s390_store): Reimplement.
7333 (s390_load): New function.
7334 (s390_get_signal_frame_info): Remove.
7335 (s390_get_frame_info): Remove, replace by ...
7336 (s390_analyze_prolog): ... this new function.
7337 (s390_check_function_end): Remove.
7338 (s390_function_start): Remove.
7339 (s390_frameless_function_invokation): Remove.
7340 (s390_is_sigreturn): Remove.
7341 (s390_init_frame_pc_first): Remove.
7342 (s390_init_frame_extra_info): Remove.
7343 (s390_frame_init_saved_regs): Remove.
7344 (s390_frame_saved_pc_nofix): Remove.
7345 (s390_frame_saved_pc): Remove.
7346 (s390_frame_chain): Remove.
7347 (s390_fp_regnum, s390_read_fp): Remove.
7348 (s390_pop_frame_regular, s390_pop_frame): Remove.
7349 (s390_saved_pc_after_call): Remove.
7350 (s390_skip_prologue): Reimplement.
7351 (s390_in_function_epilogue_p): Support long displacements.
7352 (struct s390_unwind_cache): New data structure.
7353 (s390_frame_unwind_cache): New function.
7354 (s390_prologue_frame_unwind_cache): Likewise.
7355 (s390_backchain_frame_unwind_cache): Likewise.
7356 (s390_frame_this_id, s390_frame_prev_register): Likewise.
7357 (s390_frame_unwind): Define.
7358 (s390_frame_sniffer): New function.
7359 (struct s390_pltstub_unwind_cache): New data structure.
7360 (s390_pltstub_frame_unwind_cache): New function.
7361 (s390_pltstub_frame_this_id): Likewise.
7362 (s390_pltstub_frame_prev_register): Likewise.
7363 (s390_pltstub_frame_unwind): Define.
7364 (s390_pltstub_frame_sniffer): New function.
7365 (struct s390_sigtramp_unwind_cache): New data structure.
7366 (s390_sigtramp_frame_unwind_cache): New function.
7367 (s390_sigtramp_frame_this_id): Likewise.
7368 (s390_sigtramp_frame_prev_register): Likewise.
7369 (s390_sigtramp_frame_unwind): Define.
7370 (s390_sigtramp_frame_sniffer): New function.
7371 (s390_frame_base_address, s390_local_base_address): New functions.
7372 (s390_frame_base): Define.
7373 (s390_unwind_pc, s390_unwind_sp): New function.
7374 (s390_push_dummy_call): Use new frame base location.
7375 (s390_unwind_dummy_id): Likewise.
7376 (s390_gdbarch_init): Remove calls to:
7377 set_gdbarch_frameless_function_invocation,
7378 set_gdbarch_deprecated_init_frame_pc,
7379 set_gdbarch_deprecated_frame_chain,
7380 set_gdbarch_deprecated_frame_init_saved_regs,
7381 set_gdbarch_deprecated_pop_frame,
7382 set_gdbarch_deprecated_init_extra_frame_info,
7383 set_gdbarch_deprecated_init_frame_pc_first,
7384 set_gdbarch_deprecated_target_read_fp,
7385 set_gdbarch_deprecated_frame_saved_pc,
7386 set_gdbarch_deprecated_saved_pc_after_call,
7387 set_gdbarch_deprecated_fp_regnum.
7388 Add calls to:
7389 set_gdbarch_in_solib_call_trampoline,
7390 frame_unwind_append_sniffer,
7391 frame_base_set_default,
7392 set_gdbarch_unwind_pc,
7393 set_gdbarch_unwind_sp.
7394 * Makefile.in (s390-tdep.o): Update dependencies.
7395
7396 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
7397 (S390_STACK_FRAME_OVERHEAD): Remove.
7398 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
7399 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
7400 (s390_promote_integer_argument): Remove.
7401 (s390_cannot_extract_struct_value_address): Remove.
7402 (s390_use_struct_convention, s390_store_struct_return): Remove.
7403 (s390_extract_return_value, s390_store_return_value): Remove.
7404 (s390_return_value_convention, s390_return_value): New functions.
7405 (is_float_singleton): Handle typedefs.
7406 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
7407 Remove, replace by ...
7408 (s390_function_arg_pass_by_reference, s390_function_arg_float,
7409 s390_function_arg_integer): ... these new functions.
7410 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
7411 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
7412 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
7413 Fill in tdep->abi.
7414 Remove calls to:
7415 set_gdbarch_deprecated_store_struct_return,
7416 set_gdbarch_deprecated_extract_return_value,
7417 set_gdbarch_deprecated_store_return_value,
7418 set_gdbarch_use_struct_convention,
7419 set_gdbarch_extract_struct_value_address,
7420 set_gdbarch_deprecated_pc_in_call_dummy,
7421 set_gdbarch_deprecated_push_arguments,
7422 set_gdbarch_deprecated_save_dummy_frame_tos,
7423 set_gdbarch_deprecated_push_return_address,
7424 set_gdbarch_deprecated_sizeof_call_dummy_words,
7425 set_gdbarch_deprecated_call_dummy_words,
7426 set_gdbarch_deprecated_dummy_write_sp.
7427 Add calls to:
7428 set_gdbarch_push_dummy_call,
7429 set_gdbarch_unwind_dummy_id,
7430 set_gdbarch_return_value.
7431
7432 * config/s390/nm-linux.h: Update comments.
7433 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
7434 (STOPPED_BY_WATCHPOINT): Redefine.
7435 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
7436 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
7437 (s390_stopped_by_watchpoint): Likewise.
7438 (watch_area_cnt): Remove.
7439 * s390-nat.c: Update comments.
7440 (watch_area): Remove typedef.
7441 Global replace watch_area by struct watch_area.
7442 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
7443 (s390_stopped_by_watchpoint): Remove pid argument,
7444 use s390_inferior_tid. Add short-cut for the no watchpoint case.
7445 (s390_fix_watch_points): Remove pid argument,
7446 use s390_inferior_tid. Recompute area spanned by watchpoints.
7447 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
7448 argument. Reimplement.
7449
7450 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
7451 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
7452 (FETCH_INFERIOR_REGISTERS): Define.
7453 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
7454 core-regset.o.
7455 * config/s390/s390x.mt: Remove.
7456 * config/s390/tm-s390.h: Remove.
7457 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
7458 (TARGET_ELF64): Remove.
7459 (SKIP_TRAMPOLINE_CODE): Do not undefine.
7460 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
7461 s390*-*-* case; always set gdb_target to s390.
7462 * regformats/reg-s390.dat: Remove control registers.
7463 * regformats/reg-s390x.dat: Likewise.
7464 * s390-tdep.h: New file.
7465 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
7466 Include "inferior.h" and "s390-tdep.h".
7467 Remove private definition of offsetof.
7468 (s390_register_u_addr): Remove.
7469 (regmap_gregset, regmap_fpregset): Define.
7470 (supply_gregset, fill_gregset): Reimplement.
7471 (supply_fpregset, fill_fpregset): Likewise.
7472 (s390_inferior_tid): New function.
7473 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
7474 (fetch_inferior_registers, store_inferior_registers): Likewise.
7475 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
7476 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
7477 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
7478 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
7479 (struct gdbarch_tdep): Define.
7480 (struct s390_register_info): Define.
7481 (s390_register_info): New variable.
7482 (s390_register_name): Reimplement.
7483 (s390_register_type): New function.
7484 (s390_register_raw_size, s390x_register_raw_size): Remove.
7485 (s390_cannot_fetch_register): Remove.
7486 (s390_register_byte): Remove.
7487 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
7488 (s390_dwarf_regmap): New variable.
7489 (s390_dwarf_reg_to_regnum): New function.
7490 (s390_stab_reg_to_regnum): Remove.
7491 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
7492 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
7493 (s390_convert_register_p): Likewise.
7494 (s390_register_to_value, s390_value_to_register): Likewise.
7495 (s390_register_reggroup_p): Likewise.
7496 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
7497 s390_gregset, s390x_gregset, s390_fpregset): New variables.
7498 (s390_supply_regset, s390_regset_from_core_section): New functions.
7499 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
7500 (S390_FPR_SIZE): Likewise.
7501 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
7502 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
7503 (S390_NUM_GPRS): Move here from tm-s390.h.
7504 (S390_NUM_FPRS): Likewise.
7505 (s390_in_function_epilogue_p): New function.
7506 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
7507 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
7508 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
7509 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
7510 Replace S390_FP_REGNUM by S390_SP_REGNUM.
7511 Remove calls to:
7512 set_gdbarch_deprecated_max_register_raw_size,
7513 set_gdbarch_deprecated_max_register_virtual_size,
7514 set_gdbarch_deprecated_register_byte,
7515 set_gdbarch_cannot_fetch_register,
7516 set_gdbarch_cannot_store_register,
7517 set_gdbarch_deprecated_register_size,
7518 set_gdbarch_deprecated_register_raw_size,
7519 set_gdbarch_deprecated_register_virtual_size,
7520 set_gdbarch_deprecated_register_virtual_type,
7521 set_gdbarch_deprecated_register_bytes.
7522 Add calls to:
7523 set_gdbarch_num_pseudo_regs,
7524 set_gdbarch_register_type,
7525 set_gdbarch_convert_register_p,
7526 set_gdbarch_register_to_value,
7527 set_gdbarch_value_to_register,
7528 set_gdbarch_register_reggroup_p,
7529 set_gdbarch_regset_from_core_section,
7530 set_gdbarch_pseudo_register_read,
7531 set_gdbarch_pseudo_register_write,
7532 set_gdbarch_in_function_epilogue_p.
7533 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
7534 (s390_tdep_h): New variable.
7535
7536 2004-02-17 Jim Blandy <jimb@redhat.com>
7537
7538 * findvar.c (value_from_register): If the type has no length, just
7539 return an acceptable value --- don't report an internal error.
7540
7541 * stabsread.c (read_type): If we find any type numbers that are
7542 forward references, complain if the references aren't resolved by
7543 the time we're finished reading.
7544 (cleanup_undefined_types): Make error message more appropriate for
7545 a complaint.
7546
7547 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
7548
7549 * Makefile.in (defs_h): Remove dependency on progress_h.
7550 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
7551 progress.h.
7552 * main.c (captured_main): Delete use of START_PROGRESS and
7553 END_PROGRESS.
7554
7555 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
7556
7557 * objfiles.c (terminate_minimal_symbol_table): Add back
7558 initialization of MSYMBOL_TYPE.
7559
7560 2004-02-17 David Mosberger <davidm@hpl.hp.com>
7561
7562 Committed by Andrew Cagney.
7563 * Makefile.in (ia64_tdep_h): New macro.
7564 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
7565 (ia64-tdep.o): Likewise.
7566 * ia64-tdep.h: New file.
7567 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
7568 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
7569 (ia64_aix_sigcontext_register_address): Likewise.
7570 (ia64_linux_getunwind_table): Delete declaration.
7571 * ia64-linux-tdep.c: Likewise.
7572
7573 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
7574
7575 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
7576 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
7577 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
7578
7579 2004-02-17 Andrew Cagney <cagney@redhat.com>
7580
7581 * symtab.c (skip_prologue_using_sal): New function.
7582 * symtab.h (skip_prologue_using_sal): Declare.
7583 * frv-tdep.c: Include "symtab.h".
7584 (skip_prologue_using_sal): Delete function.
7585 * mips-tdep.c (skip_prologue_using_sal): Delete function.
7586 * rs6000-tdep.c (refine_prologue_limit): Mention
7587 skip_prologue_using_sal.
7588 * ia64-tdep.c (refine_prologue_limit): Ditto.
7589 * Makefile.in: Update dependencies.
7590
7591 2004-02-16 Andrew Cagney <cagney@redhat.com>
7592
7593 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
7594 START_INFERIOR_TRAPS_EXPECTED.
7595 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
7596 START_INFERIOR_TRAPS_EXPECTED.
7597 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
7598 Delete macro.
7599 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
7600 macro, moved to "nm-osf.h". Update copyright.
7601 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
7602 update copyright.
7603
7604 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
7605 and function replacing FRAMELESS_FUNCTION_INVOCATION.
7606 * blockframe.c (legacy_frameless_look_for_prologue): Rename
7607 frameless_look_for_prologue.
7608 * frame.h (legacy_frameless_look_for_prologue): Rename
7609 frameless_look_for_prologue.
7610 * gdbarch.h, gdbarch.c: Re-generate.
7611 * sh64-tdep.c (sh64_gdbarch_init): Update.
7612 * sh-tdep.c (sh_gdbarch_init): Update.
7613 * s390-tdep.c (s390_gdbarch_init): Update.
7614 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7615 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7616 * m68k-tdep.c (m68k_gdbarch_init): Update.
7617 (delta68_frame_args_address): Update.
7618 * m32r-tdep.c (m32r_gdbarch_init): Update.
7619 * hppa-tdep.c (hppa_gdbarch_init): Update.
7620 * h8300-tdep.c (h8300_gdbarch_init): Update.
7621 * frv-tdep.c (frv_gdbarch_init): Update.
7622 (frv_frameless_function_invocation): Update.
7623 * cris-tdep.c (cris_gdbarch_init): Update.
7624 (cris_frameless_function_invocation): Update.
7625 * avr-tdep.c (avr_gdbarch_init): Update.
7626 * arm-tdep.c (arm_gdbarch_init): Update.
7627 * stack.c (frame_info): Update, call predicate.
7628 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
7629 * frame.c (legacy_get_prev_frame): Update, call predicate..
7630 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
7631 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
7632 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
7633 invocation.
7634 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7635 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7636 * vax-tdep.c (vax_gdbarch_init): Ditto.
7637
7638 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
7639 function.
7640
7641 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
7642
7643 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
7644 initializations.
7645
7646 2004-02-16 Andrew Cagney <cagney@redhat.com>
7647
7648 * tui/tui-windata.c: Include "gdb_string.h".
7649 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
7650 * tui/tui-layout.c, tui/tui-command.c: Ditto.
7651 * Makefile.in: Update dependencies.
7652
7653 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
7654
7655 * Makefile.in (infrun.o): Add $(gdb_assert_h).
7656 * infrun.c: Include "gdb_assert.h".
7657 (singlestep_ptid, saved_singlestep_ptid)
7658 (stepping_past_singlestep_breakpoint): New variables.
7659 (resume): Set singlestep_ptid. Check for singlestep thread
7660 hop.
7661 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
7662 (handle_inferior_event): Handle singlestep thread hop.
7663
7664 2004-02-16 Andrew Cagney <cagney@redhat.com>
7665
7666 * dwarf2-frame.c (dwarf2_frame_ops): New function.
7667 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
7668 (dwarf2_frame_init_reg): Ditto.
7669
7670 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
7671 suggested by Joshua Neuheisel
7672
7673 * configure.in: Always check for curses, including pdcurses.
7674 Warn, instead of error, when no curses are found. Enable TUI when
7675 curses is available.
7676 * configure: Re-generate.
7677
7678 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
7679
7680 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
7681 sh_sh4_register_convert_to_virtual.
7682 (sh_register_convert_to_raw): Rename from
7683 sh_sh4_register_convert_to_raw.
7684 (sh_pseudo_register_read): Accomodate above name change.
7685 (sh_pseudo_register_write): Ditto.
7686
7687 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
7688
7689 * sh-tdep.c (sh_generic_register_name): Remove.
7690 (sh_gdbarch_init): Use sh_sh_register_name in default case.
7691
7692 2004-02-15 Andrew Cagney <cagney@redhat.com>
7693
7694 * configure.in (build_warnings): Add -Wunused-function.
7695 * configure: Re-generate.
7696
7697 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
7698 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
7699
7700 * procfs.c (procfs_init_inferior): Assume that
7701 START_INFERIOR_TRAPS_EXPECTED is defined.
7702 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
7703 * config/ns32k/tm-nbsd.h: Delete file,
7704 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
7705
7706 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
7707 * config/vax/tm-vax.h: Delete file.
7708
7709 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7710 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7711 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7712 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7713 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
7714 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7715 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
7716
7717 2004-02-15 Mark Kettenis <kettenis@gnu.org>
7718
7719 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
7720 * dwarf2-frame.c (dwarf2_frame_data): New variable.
7721 (struct dwarf2_frame_ops): New.
7722 (dwarf2_frame_default_init_reg): New function, based on
7723 dwarf2_frame_init_reg.
7724 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
7725 (dwarf2_frame_init_reg): Call architecture-specific function.
7726 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
7727 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
7728 instead of dwarf2_frame_data.
7729 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
7730 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
7731
7732 2004-02-15 Andrew Cagney <cagney@redhat.com>
7733
7734 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
7735 register_gdbarch_swap.
7736 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
7737 * f-lang.c (_initialize_f_language): Update, use
7738 DEPRECATED_REGISTER_GDBARCH_SWAP.
7739 * remote.c (_initialize_remote): Ditto.
7740 * regcache.c (_initialize_regcache): Ditto.
7741 * parse.c (_initialize_parse): Ditto.
7742 * infrun.c (_initialize_infrun): Ditto.
7743 * mi/mi-main.c (_initialize_mi_main): Ditto.
7744 * gdbtypes.c (_initialize_gdbtypes): Ditto.
7745
7746 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
7747 poking .cacheable directly.
7748 * symfile.c (symfile_bfd_open): Ditto.
7749
7750 * Makefile.in: Update all dependencies.
7751
7752 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
7753 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
7754 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
7755 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
7756 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
7757
7758 2004-02-14 Andrew Cagney <cagney@redhat.com>
7759
7760 * arch-utils.c (legacy_convert_register_p): Check
7761 DEPRECATED_REGISTER_CONVERTIBLE_P.
7762 * findvar.c (value_of_register): Ditto.
7763
7764 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
7765 * gdbarch.h, gdbarch.c: Re-generate.
7766 * arch-utils.c (deprecated_register_convertible_not): Delete.
7767 * arch-utils.h (deprecated_register_convertible_not): Delete.
7768 * mi/mi-main.c (get_register): Update. Update copyright.
7769 * infcmd.c (default_print_registers_info): Update.
7770
7771 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7772 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
7773 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
7774 * gdbarch.h, gdbarch.c: Re-generate.
7775 * frame.c (deprecated_get_next_frame_hack): Delete function.
7776 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
7777 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7778 Update.
7779 * infcall.c (call_function_by_hand): Update.
7780
7781 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
7782
7783 * symfile.c (init_entry_point_info, entry_point_address): Move
7784 from here...
7785 * objfiles.c (init_entry_point_info, entry_point_address):..to
7786 here.
7787 * symfile.h (init_entry_point_info, entry_point_address): Remove
7788 prototypes.
7789 * objfiles.h (init_entry_point_info, entry_point_address):Add
7790 prototypes.
7791 * cris-tdep.c: Remove include of symfile.h. Add include of
7792 objfiles.h.
7793 * infcall.c: Ditto.
7794 * mcore-tdep.c: Ditto.
7795 * mn10300-tdep.c: Ditto.
7796 * sh64-tdep.c: Ditto.
7797 * v850-tdep.c: Ditto.
7798 * arm-tdep.c: Remove include of symfile.h.
7799 * blockframe.c: Ditto.
7800 * coffread.c: Ditto.
7801 * dbxread.c: Ditto.
7802 * dwarf2read.c: Ditto.
7803 * dwarfread.c: Ditto.
7804 * frv-tdep.c: Ditto.
7805 * ia64-tdep.c: Ditto.
7806 * mdebugread.c: Ditto.
7807 * mipsread.c: Ditto.
7808 * rs6000-tdep.c: Ditto.
7809 * s390-tdep.c: Ditto.
7810 * sh-tdep.c: Ditto.
7811 * xstormy16-tdep.c: Ditto.
7812 * gdbarch.sh: Remove include of symfile.h.
7813 * gdbarch.c: Regenerate.
7814 * solib-irix.c (enable_break): Use entry_point_address().
7815 Add comment about include file.
7816 * xcoffread.c: Add comment about include file.
7817 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
7818 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
7819 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
7820 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
7821 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
7822
7823 2004-02-13 Andrew Cagney <cagney@redhat.com>
7824
7825 * corelow.c (core_xfer_partial): Use "struct bfd_section".
7826 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
7827 copyright.
7828 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
7829
7830 2004-02-12 Fred Fish <fnf@redhat.com>
7831
7832 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
7833 set_gdbarch_store_return_value.
7834
7835 2004-02-12 Andrew Cagney <cagney@redhat.com>
7836
7837 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
7838 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
7839 (interrupt_query): Ditto.
7840 (ofunc): Delete unused variable.
7841 * cris-tdep.c (cris_abi): Delete unused function.
7842 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
7843 (cris_get_wide_opcode, cris_get_short_size): Ditto.
7844 (cris_get_asr_quick_shift_steps): Ditto.
7845 (cris_skip_prologue_frameless_p): Ditto.
7846 * arm-tdep.c (arm_push_return_address): Delete unused function.
7847 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
7848 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
7849 * s390-tdep.c (s390_function_start): Delete unused function.
7850
7851 2004-02-12 Andrew Cagney <cagney@redhat.com>
7852
7853 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
7854 gdbarch.h, gdbarch.c: Re-generate.
7855 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
7856 to generic_prologue_frameless_p.
7857 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
7858 * arch-utils.c (generic_prologue_frameless_p): Delete function.
7859
7860 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
7861
7862 * mips-linux-tdep.c: Include "frame.h".
7863 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
7864 (mips_linux_skip_resolver): New functions.
7865 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
7866 and set_gdbarch_in_solib_call_trampoline.
7867 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
7868 to after set_gdbarch_in_solib_return_trampoline. Only set the
7869 solib hooks to mips16 functions if the OS ABI is unknown.
7870 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
7871 including "config/tm-linux.h".
7872 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
7873 * Makefile.in (mips-linux-tdep.o): Update.
7874
7875 2004-02-11 David Carlton <carlton@kealia.com>
7876
7877 * linespec.c (decode_compound): Only look for a class symbol when
7878 considering all but the rightmost component.
7879
7880 2004-02-11 Andrew Cagney <cagney@redhat.com>
7881
7882 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
7883 abi code are are separatly grouped.
7884
7885 2004-02-11 Andrew Cagney <cagney@redhat.com>
7886
7887 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
7888 * gdbarch.h, gdbarch.c: Re-generate.
7889 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7890 * v850-tdep.c (v850_gdbarch_init): Update.
7891 * sh64-tdep.c (sh64_gdbarch_init): Update.
7892 * sh-tdep.c (sh_gdbarch_init): Update.
7893 * s390-tdep.c (s390_gdbarch_init): Update.
7894 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7895 * mips-tdep.c (mips_gdbarch_init): Update.
7896 * mcore-tdep.c (mcore_gdbarch_init): Update.
7897 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7898 * m32r-tdep.c (m32r_gdbarch_init): Update.
7899 * ia64-tdep.c (ia64_gdbarch_init): Update.
7900 * hppa-tdep.c (hppa_gdbarch_init): Update.
7901 * h8300-tdep.c (h8300_gdbarch_init): Update.
7902 * frv-tdep.c (frv_gdbarch_init): Update.
7903 * d10v-tdep.c (d10v_gdbarch_init): Update.
7904 * cris-tdep.c (cris_gdbarch_init): Update.
7905 * avr-tdep.c (avr_gdbarch_init): Update.
7906 * arm-tdep.c (arm_gdbarch_init): Update.
7907 * alpha-tdep.c (alpha_gdbarch_init): Update.
7908
7909 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
7910
7911 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
7912 comma.
7913 (sh_sh4al_dsp_register_name): Ditto.
7914
7915 2004-02-10 Andrew Cagney <cagney@redhat.com>
7916
7917 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
7918 (mips_init_frame_pc_first): Delete function.
7919 (mips_frame_saved_pc): Delete function.
7920 (mips_frame_chain): Delete function.
7921 (mips_init_extra_frame_info): Delete function.
7922 (mips_xfer_register): Delete unused variable "reg".
7923 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
7924 (mips_n32n64_return_value): Delete unused variable "reg".
7925 (mips_n32n64_return_value): Delete unused variable "pos".
7926 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
7927 (mips_o32_return_value): Delete unused variable "pos".
7928 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
7929 (mips_print_fp_register): Delete unused variable "namelen"
7930 (mips_print_fp_register): Delete unused variable "flt2"
7931 (get_frame_pointer): Delete function.
7932 (cached_proc_desc): Delete static variable.
7933 (mips_pop_frame): Delete function.
7934 (mips_find_saved_regs): Delete function.
7935 (mips_get_saved_register): Delete function.
7936 (mips_saved_pc_after_call): Delete function.
7937 (SIGFRAME_BASE): Delete macro.
7938 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
7939 (SIGFRAME_PC_OFF): Delete macro.
7940 (SIGFRAME_REGSAVE_OFF): Delete macro.
7941 (mips_dump_tdep): Do not print deleted macro definitions.
7942
7943 2004-02-10 Andrew Cagney <cagney@redhat.com>
7944
7945 * Makefile.in (SFILES): Remove explictly listed tui files.
7946 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
7947
7948 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
7949
7950 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
7951 to use paddr functions to format ia64 addresses and long values.
7952 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
7953 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
7954 (get_kernel_table, ia64_find_proc_info_x): Ditto.
7955 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
7956 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
7957
7958 2004-02-10 Andrew Cagney <cagney@redhat.com>
7959
7960 * defs.h: Do not include "tui.h".
7961 * gdb_curses.h: New file.
7962 * tui/tui-hooks.h: New file.
7963 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
7964 (tui_install_hooks, tui_remove_hooks): Delete declarations.
7965 (tui_initialize_io): Delete declaration.
7966 (tui_initialize_readline: Delete redundant declaration.
7967 (struct tui_point): Delete definition.
7968 * tui/tui-data.h (struct tui_point): Define.
7969 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
7970 * utils.c: Include "tui/tui.h".
7971 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
7972 * printcmd.c [TUI]: Include "tui/tui.h".
7973 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
7974 * tui/tui-command.c: Include "gdb_curses.h".
7975 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
7976 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
7977 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
7978 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
7979 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
7980 * Makefile.in: Update all dependencies.
7981 (tui_hooks_h, gdb_curses_h): Define.
7982 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
7983
7984 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
7985
7986 * objfiles.h (struct objfile): Remove unused fields auxf1 and
7987 auxf2. Add comments about some other rarely used fields.
7988
7989 2004-02-10 Andrew Cagney <cagney@redhat.com>
7990
7991 * Makefile.in (init.c): Fix script removing duplicates. Problem
7992 reported by Peter Schauer.
7993
7994 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
7995
7996 * bcache.c (bcache_xmalloc): Use obstack_init instead of
7997 obstack_specify_allocation.
7998 * objfiles.c (allocate_objfile): Ditto.
7999 * solib-sunos.c (solib_add_common_symbols)
8000 (allocate_rt_common_objfile): Ditto.
8001 * symfile.c (reread_symbols): Ditto.
8002 * gdb_obstack.h: Add comment.
8003
8004 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8005
8006 * linespec.c (decode_line_1, locate_first_half)
8007 (decode_compound, lookup_prefix_sym): Update comments. Delete old
8008 commented out code.
8009
8010 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
8011
8012 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
8013 obstack_free.
8014
8015 2004-02-09 Andrew Cagney <cagney@redhat.com>
8016
8017 * blockframe.c (find_pc_partial_function): If find_pc_overlay
8018 fails, try find_pc_section. Fix PR c++/1267.
8019 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
8020 instead of find_pc_mapped_section.
8021 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
8022 not default to the section containing PC. Fix PR symtab/1519.
8023
8024 2004-02-09 Andrew Cagney <cagney@redhat.com>
8025
8026 * Makefile.in (mips-tdep.o): Update dependencies.
8027 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
8028 "trad-frame.h".
8029 (mips_unwind_pc): Return the pseudo PC register.
8030 (mips_unwind_dummy_id): New function.
8031 (mips16_fetch_instruction): New function.
8032 (mips32_fetch_instruction): New function.
8033 (struct mips_frame_cache): Define.
8034 (mips_mdebug_frame_cache): New function.
8035 (mips_mdebug_frame_this_id): New function.
8036 (mips_mdebug_frame_prev_register): New function.
8037 (mips_mdebug_frame_unwind): Define.
8038 (mips_mdebug_frame_sniffer): New function.
8039 (mips_mdebug_frame_base_address): New function.
8040 (mips_mdebug_frame_base): Define.
8041 (mips_mdebug_frame_base_sniffer): New function.
8042 (mips_gdbarch_init): Append unwind and base sniffers. Set
8043 unwind_dummy_id.
8044
8045 2004-02-08 Andrew Cagney <cagney@redhat.com>
8046
8047 * frame.c: Print both the register number and name.
8048
8049 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
8050 and a sed into a single sed. Make .c and .o patterns more robust.
8051 (OBS): Delete.
8052 (INIT_FILES): Replace OBS with COMMON_OBS.
8053 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
8054
8055 2004-02-08 Mark Kettenis <kettenis@gnu.org>
8056
8057 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
8058 the PT_WCOOKIE request.
8059
8060 2004-02-08 Andrew Cagney <cagney@redhat.com>
8061
8062 * mips-tdep.c (mips_unwind_pc): New function.
8063 (mips_gdbarch_init): Set mips_unwind_pc.
8064
8065 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
8066 (get_frame_id): Allow the UNKNOWN_FRAME.
8067 (frame_register_unwind, get_frame_type): Ditto.
8068
8069 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
8070 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
8071 unwind_dummy_id indicates a legacy frame.
8072
8073 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
8074 * configure: Re-generate.
8075
8076 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
8077 methods.
8078
8079 2004-02-08 Andrew Cagney <cagney@redhat.com>
8080
8081 * configure.in (CONFIG_ALL): Set to Makefile target, and not
8082 makefile macro.
8083 * configure: Re-generate.
8084 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
8085 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
8086 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
8087 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
8088 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
8089 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
8090 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
8091 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
8092 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
8093 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
8094
8095 2004-02-07 Andrew Cagney <cagney@redhat.com>
8096
8097 * Makefile.in: Update all dependencies.
8098
8099 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
8100 * configure: Re-generate.
8101 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
8102 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
8103 (COMMON_OBS): Add "main.o" and "annotate.o".
8104 (ANNOTATE_OBS): Delete.
8105 (OBS): Remove ANNOTATE_OBS.
8106 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
8107 CONFIG_INITS.
8108 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
8109 against CONFIG_OBS and "main.o".
8110 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
8111 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
8112
8113 * tui/tui-command.c: Include "gdb_string.h", delete register
8114 attribute, use ISO-C function signatures.
8115 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
8116 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8117 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
8118 * tui/tui.c: Ditto.
8119
8120 * tui/tui-command.c: Change variable and function names to lower
8121 case.
8122 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
8123 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
8124 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
8125 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8126 * tui/tui-winsource.c, tui/tui.c: Ditto.
8127
8128 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8129
8130 * buildsym.c (free_pending_blocks, finish_block)
8131 (record_pending_block, make_blockvector, end_symtab): Replace
8132 symbol_obstack with objfile_obstack.
8133 * coffread.c (process_coff_symbol, coff_read_struct_type)
8134 (coff_read_enum_type): Ditto.
8135 * cp-namespace.c (initialize_namespace_symtab)
8136 (check_one_possible_namespace_symbol): Ditto.
8137 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
8138 (dwarf2_symbol_mark_computed): Ditto.
8139 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
8140 * elfread.c (elf_symtab_read): Ditto.
8141 * hpread.c (hpread_symfile_init, hpread_symfile_init)
8142 (hpread_read_enum_type, hpread_read_function_type)
8143 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
8144 Ditto.
8145 * jv-lang.c (get_java_class_symtab, add_class_symbol)
8146 (java_link_class_type): Ditto.
8147 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
8148 (new_symbol): Ditto.
8149 * minsyms.c (install_minimal_symbols): Ditto.
8150 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
8151 (terminate_minimal_symbol_table): Replace symbol_obstack with
8152 objfile_obstack.
8153 (free_objfile): Remove freeing of symbol_obstack.
8154 * objfiles.h: Remove symbol_obstack field.
8155 * pa64solib.c (add_to_solist): Replace symbol_obstack with
8156 objfile_obstack.
8157 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8158 symbol_obstack.
8159 (solib_add_common_symbols): Replace symbol_obstack with
8160 objfile_obstack.
8161 * somsolib.c (som_solib_add): Ditto.
8162 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8163 (common_block_start, common_block_end): Ditto.
8164 * symfile.c (reread_symbols): Remove freeing and init of
8165 symbol_obstack.
8166 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
8167 * symfile.h: Update comment.
8168 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
8169 stats printing.
8170 * symtab.c (symbol_set_names): Replace symbol_obstack with
8171 objfile_obstack.
8172 * symtab.h (struct general_symbol_info, struct minimal_symbol):
8173 Update comments.
8174 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
8175 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
8176 objfile_obstack.
8177
8178 2004-02-07 Andrew Cagney <cagney@redhat.com>
8179
8180 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
8181 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
8182 fields and variables.
8183 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
8184 (m_beInvisible): Delete macro.
8185 * tui/tui-data.h: Fix case case fields and variables.
8186 (m_genWinPtrIsNull): Delete macro.
8187 (tui_win_list): Rename winList.
8188 (TUI_SRC_WIN): Rename srcWin.
8189 (TUI_DISASM_WIN): Rename disassemWin.
8190 (TUI_DATA_WIN): Rename dataWin.
8191 (TUI_CMD_WIN): Rename cmdWin.
8192 (m_genWinPtrNotNull): Delete macro.
8193 (m_winPtrIsNull): Delete macro.
8194 (m_winPtrNotNull): Delete macro.
8195 (tui_win_is_source_type): Replace m_winIsSourceType
8196 (tui_win_is_auxillary): Replace m_winIsAuzillary.
8197 (tui_win_has_locator): Replace m_hasLocator.
8198 (tui_set_win_highlight): Replace m_setWinHighlightOn and
8199 m_setWinHighlightOff.
8200 * tui/tui-data.c: Update references.
8201 (tui_win_is_source_type, tui_set_win_highlight): New functions.
8202 (tui_win_has_locator, tui_win_is_auxillary): New functions.
8203 * tui/tui-command.c, tui/tui-disasm.c: Update references.
8204 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
8205 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
8206 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8207 * tui/tui-winsource.c, tui/tui.c: Ditto.
8208
8209 2004-02-07 Mark Kettenis <kettenis@gnu.org>
8210
8211 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
8212 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
8213 StackGhost.
8214
8215 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
8216 variable `i6' to `i7'.
8217 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
8218
8219 2004-02-07 Andrew Cagney <cagney@redhat.com>
8220
8221 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
8222 (TuiPoint, TuiPointPtr): Ditto.
8223 (TuiStatus, TuiStatusPtr): Ditto.
8224 (TuiWinType, TuiWinTypePtr): Ditto.
8225 (struct tui_point): Rename _TuiPoint.
8226 (tui_get_low_disassembly_address): Rename
8227 tuiGetLowDisassemblyAddress.
8228 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
8229 (tuiFree): Delete declaration.
8230 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
8231 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
8232 * tui/tui.c (tuiFree): Delete function.
8233 * cli/cli-cmds.c (disassemble_command): Update references.
8234 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
8235 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8236 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
8237 * tui/tui-winsource.c: Ditto.
8238
8239 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8240
8241 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
8242 coffstab_build_psymtabs, elfstab_build_psymtabs)
8243 (stabsect_build_psymtabs): Replace psymbol_obstack with
8244 objfile_obstack.
8245 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
8246 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
8247 Ditto.
8248 * dwarfread.c (scan_compilation_units): Ditto.
8249 * elfread.c (elfstab_offset_sections): Ditto.
8250 * hppa-tdep.c (read_unwind_info): Ditto.
8251 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
8252 (hpread_end_psymtab): Ditto.
8253 * mdebugread.c (mdebug_build_psymtabs, add_pending)
8254 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
8255 Ditto.
8256 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8257 * objfiles.c (add_to_objfile_sections)
8258 (build_objfile_section_table): Ditto.
8259 (allocate_objfile): Remove init of psymbol_obstack.
8260 (free_objfile): Remove freeing of psymbol_obstack.
8261 * objfiles.h (struct objfile): Remove field
8262 psymbol_obstack. Update comments.
8263 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
8264 psymbol_obstack with objfile_obstack.
8265 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8266 psymbol_obstack.
8267 * somread.c (som_symfile_offsets, init_import_symbols)
8268 (init_export_symbols): Replace psymbol_obstack with
8269 objfile_obstack.
8270 * somsolib.c (som_solib_add_solib_objfile): Ditto.
8271 * symfile.c (default_symfile_offsets, syms_from_objfile)
8272 (reread_symbols): Remove freeing and init of psymbol_obstack.
8273 (cashier_psymtab): Update comment.
8274 * symmisc.c (print_objfile_statistics): Don't report stats for
8275 psymbol obstack.
8276 * symtab.h (struct general_symbol_info, struct partial_symtab):
8277 Update comments.
8278 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
8279 (xcoff_symfile_offsets): Replace psymbol_obstack with
8280 objfile_obstack.
8281
8282 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8283
8284 * objfiles.h (struct objfile): Add objfile_obstack field.
8285 Remove type_obstack field.
8286
8287 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
8288 read_structure_scope read_enumeration, new_symbol): Replace
8289 type_obstack with objfile_obstack.
8290 * dwarfread.c (struct_type, enum_type): Ditto.
8291 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
8292 (lookup_fundamental_type): Ditto.
8293 * gdbtypes.h (TYPE_ALLOC): Ditto.
8294 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
8295 (hpread_read_doc_function_type, hpread_read_struct_type)
8296 (fix_static_member_physnames, hpread_read_array_type)
8297 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8298 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
8299 (java_link_class_type): Ditto.
8300 * mdebugread.c (parse_type): Ditto.
8301 * objfiles.c (allocate_objfile, free_objfile): Ditto.
8302 * solib-sunos.c (solib_add_common_symbols): Ditto.
8303 * stabsread.c (define_symbol, read_type, read_member_functions,
8304 read_cpp_abbrev, read_one_struct_field): Ditto.
8305 * symfile.c (reread_symbols): Ditto.
8306 * symmisc.c (print_objfile_statistics): Ditto.
8307
8308 2004-02-07 Andrew Cagney <cagney@redhat.com>
8309
8310 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
8311 (tui_exec_info_content): Rename TuiExecInfoContent.
8312 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
8313 (TuiWinInfo, TuiWinInfoPtr): Ditto.
8314 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
8315 (TuiList, TuiListPtr): Ditto.
8316 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
8317 (TuiDataType, TuiDataTypePtr): Ditto.
8318 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
8319 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
8320 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
8321 (TuiSourceElement, TuiSourceElementPtr): Ditto.
8322 (TuiDataElement, TuiDataElementPtr): Ditto.
8323 (TuiWinElement, TuiWinElementPtr): Ditto.
8324 (TuiDataInfo, TuiDataInfoPtr): Ditto.
8325 (TuiCommandElement, TuiCommandElementPtr): Ditto.
8326 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
8327 (TuiWhichElement, TuiWhichElementPtr): Ditto.
8328 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
8329 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
8330 * tui/tui-command.c, tui/tui-data.c: Update references.
8331 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
8332 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
8333 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8334 * tui/tui-winsource.c, tui/tui.c: Ditto.
8335
8336 2004-02-07 Mark Kettenis <kettenis@gnu.org>
8337
8338 * dwarf2-frame.h: Update copyright.
8339 (enum dwarf2_frame_reg_rule): New.
8340 (struct dwarf2_frame_state_reg): New.
8341 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
8342 * dwarf2-frame.c: Update copyright.
8343 (enum dwarf2_reg_rule): Remove.
8344 (struct dwarf2_frame_state): Remove defenition of `struct
8345 dwarf2_frame_state_reg'.
8346 (read_reg): Call get_frame_arch to get the architecture instead of
8347 using CURRENT_GDBARCH.
8348 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
8349 DWARF2_FRAME_.
8350 (dwarf2_frame_init_reg): New function.
8351 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
8352 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
8353 initialize the register state. Prefix old `enum dwarf2_reg_rule'
8354 tags with DWARF2_FRAME_.
8355 (dwarf2_frame_prev_register): Call get_frame_arch to get the
8356 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
8357 dwarf2_reg_rule' tags with DWARF2_FRAME_.
8358
8359 2004-02-06 Andrew Cagney <cagney@redhat.com>
8360
8361 * tui/tui-data.h (struct tui_list): Rename _TuiList.
8362 (enum tui_data_type): Rename _TuiDataType.
8363 (struct tui_layout_def): Rename _TuiLayoutDef.
8364 (struct tui_source_element): Rename _TuiSourceElement.
8365 (struct tui_data_element): Rename _TuiDataElement.
8366 (struct tui_command_element): Rename _TuiCommandElement.
8367 (struct tui_locator_element): Rename _TuiLocatorElement.
8368 (union tui_which_element): Define.
8369 (struct tui_win_element): Rename _TuiWinElement.
8370 (struct tui_data_info): Rename _TuiDataInfo.
8371 (struct tui_source_info): Rename _TuiSourceInfo.
8372 (struct tui_command_info): Rename _TuiCommandInfo.
8373 (tui_initialize_static_data): Rename initializeStaticData.
8374 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
8375 (tui_alloc_win_info): Rename allocWinInfo.
8376 (tui_init_generic_part): Rename initGenericPart.
8377 (tui_init_win_info): Rename initWinInfo.
8378 (tui_alloc_content): Rename allocContent.
8379 (tui_add_content_elements): Rename addContentElements.
8380 (tui_init_content_element): Rename initContentElement.
8381 (tui_free_window): Rename freeWindow.
8382 (tui_free_win_content): Rename freeWinContent.
8383 (tui_free_data_content): Rename freeDataContent.
8384 (tui_free_all_source_wins_content): Rename
8385 freeAllSourceWinsContent.
8386 (tui_del_window): Rename tuiDelWindow.
8387 (tui_del_data_windows): Rename tuiDelDataWindows.
8388 (tui_partial_win_by_name): Rename partialWinByName.
8389 (tui_win_name): Rename winName.
8390 (tui_current_layout): Rename currentLayout.
8391 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
8392 (tui_term_height): Rename termHeight.
8393 (tui_set_term_height_to): Rename setTermHeightTo.
8394 (tui_term_width): Rename termWidth.
8395 (tui_set_term_width_to): Rename setTermWidthTo.
8396 (tui_set_gen_win_origin): Rename setGenWinOrigin.
8397 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
8398 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
8399 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
8400 (tui_source_windows): Rename sourceWindows.
8401 (tui_clear_source_windows): Rename clearSourceWindows.
8402 (tui_clear_source_windows_detail): Rename
8403 clearSourceWindowsDetail.
8404 (tui_clear_win_detail): Rename clearWinDetail.
8405 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
8406 (tui_default_tab_len): Rename tuiDefaultTabLen.
8407 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
8408 (tui_win_with_focus): Rename tuiWinWithFocus.
8409 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
8410 (tui_layout_def): Rename tuiLayoutDef.
8411 (tui_win_resized): Rename tuiWinResized.
8412 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
8413 (tui_next_win): Rename tuiNextWin.
8414 (tui_prev_win): Rename tuiPrevWin.
8415 (tui_add_to_source_windows): Rename addToSourceWindows.
8416 * tui/tui-winsource.c, tui/tui-win.c: Update references.
8417 * tui/tui-layout.c, tui/tui-source.c: Ditto.
8418 * tui/tui-stack.c, tui/tui-io.c: Ditto.
8419 * tui/tui.c, tui/tui-data.c: Ditto.
8420 * tui/tui-interp.c, tui/tui-data.c: Ditto.
8421 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
8422
8423 * tui/tui-source.h: Update copyright. Include "tui-data.h".
8424 (struct symtab): Declare.
8425 (tui_set_source_content): Rename tuiSetSourceContent.
8426 (tui_show_symtab_source): Rename tuiShowSource.
8427 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
8428 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
8429 * tui/tui-source.c: Update copyright. Update references.
8430 * tui/tui-win.c, tui/tui-winsource.c: Update references.
8431 * tui/tui-stack.c: Update references.
8432
8433 * tui/tui-win.h: Update copyright. Include "tui-data.h".
8434 (struct tui_win_info): Declare.
8435 (tui_scroll_forward): Rename tuiScrollForward.
8436 (tui_scroll_backward): Rename tuiScrollBackward.
8437 (tui_scroll_left): Rename tuiScrollLeft.
8438 (tui_scroll_right): Rename tuiScrollRight.
8439 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
8440 (tui_resize_all): Rename tuiResizeAll.
8441 (tui_refresh_all_win): Rename tuiRefreshAll.
8442 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
8443 * tui/tui-layout.c, * tui/tui-io.c: Update references.
8444 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
8445 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
8446
8447 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
8448 (tui_erase_data_content): Rename tuiEraseDataContent.
8449 (tui_display_all_data): Rename tuiDisplayAllData.
8450 (tui_check_data_values): Rename tuiCheckDataValues.
8451 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
8452 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
8453 (tui_first_data_element_no_in_line): Rename
8454 tuiFirstDataElementNoInLine.
8455 (tui_delete_data_content_windows): Rename
8456 tuiDeleteDataContentWindows.
8457 (tui_refresh_data_win): Rename tuiRefreshDataWin.
8458 (tui_display_data_from): Rename tuiDisplayDataFrom.
8459 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
8460 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
8461 * tui/tui-win.c, tui/tui-regs.c: Update references.
8462 * tui/tui-layout.c, tui/tui.c: Update references.
8463
8464 * tui/tui-wingeneral.h: Update copyright.
8465 (m_allBeVisible): Delete macro.
8466 (m_allBeInvisible): Delete macro.
8467 (struct tui_gen_win_info): Declare.
8468 (struct tui_win_info): Declare.
8469 (tui_unhighlight_win): Rename unhighlightWin.
8470 (tui_make_visible, tui_make_invisible): Replace makeVisible.
8471 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
8472 (tui_make_window): Rename makeWindow.
8473 (tui_copy_win): Rename copyWin.
8474 (tui_box_win): Rename boxWin.
8475 (tui_highlight_win): Rename highlightWin.
8476 (tui_check_and_display_highlight_if_needed): Rename
8477 checkAndDisplayHighlightIfNeeded.
8478 (tui_refresh_all): Rename refreshAll.
8479 (tui_delete_win): Rename tuiDelwin.
8480 (tui_refresh_win): Rename tuiRefreshWin.
8481 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
8482 (tui_make_visible, tui_make_invisible): New functions.
8483 (tui_make_all_visible, tui_make_all_invisible): New functions.
8484 (make_all_visible): Rename makeAllVisible.
8485 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
8486 * tui/tui-data.c, tui/tui-winsource.c: Update references.
8487 * tui/tui-windata.c, tui/tui-win.c: Update references.
8488 * tui/tui-regs.c, tui/tui-layout.c: Update references.
8489 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
8490
8491 2004-02-06 Mark Kettenis <kettenis@gnu.org>
8492
8493 * proc-api.c (write_with_trace): Initialize local variable to
8494 silence compiler warning.
8495
8496 2004-02-06 Andrew Cagney <cagney@redhat.com>
8497
8498 * tui/tui-source.h: Do not include "defs.h".
8499 (struct tui_win_info): Declare.
8500 (tui_set_source_content_nil): Declare.
8501 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
8502 (union tui_line_or_address): Rename _TuiLineOrAddress.
8503 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
8504 (tui_update_source_window): Rename tuiUpdateSourceWindow.
8505 (tui_update_source_window_as_is): Rename
8506 tuiUpdateSourceWindowAsIs.
8507 (tui_update_source_windows_with_addr): Rename
8508 tuiUpdateSourceWindowsWithAddr.
8509 (tui_update_source_windows_with_line): Rename
8510 tuiUpdateSourceWindowsWithLine.
8511 (tui_clear_source_content): Rename tuiClearSourceContent.
8512 (tui_erase_source_content): Rename tuiEraseSourceContent.
8513 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
8514 (tui_show_source_content): Rename tuiShowSourceContent.
8515 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
8516 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
8517 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
8518 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
8519 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
8520 (tui_update_exec_info): Rename tuiUpdateExecInfo.
8521 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
8522 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
8523 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
8524 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
8525 (struct tui_win_info): Declare.
8526 * tui/tui-stack.c: Update references.
8527 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
8528 * tui/tui-win.c, tui/tui-source.c: Ditto.
8529 * tui/tui.c, tui/tui-disasm.c: Ditto.
8530
8531 2004-02-06 Mark Kettenis <kettenis@gnu.org>
8532
8533 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
8534 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
8535
8536 2004-02-05 Mark Kettenis <kettenis@gnu.org>
8537
8538 * infrun.c (handle_inferior_event): Allow for breakpoint
8539 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
8540 and SIGEMT. Update comments.
8541 * NEWS (Revised SPARC target): Mention support for non-executable
8542 stack.
8543
8544 2004-02-04 Mark Kettenis <kettenis@gnu.org>
8545
8546 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
8547 * inftarg.c: Update copyright year.
8548 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
8549 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
8550 (sparc_xfer_wcookie): New function.
8551 * sparc-tdep.c (sparc_fetch_wcookie): New function.
8552 * Makefile.in (sparc-nat.o): Update dependencies.
8553 * config/sparc/nm-nbsd.h: Include "target.h".
8554 (NATIVE_XFER_WCOOKIE): New define.
8555 (sparc_xfer_wcookie): New prototype.
8556
8557 2004-02-04 Andrew Cagney <cagney@redhat.com>
8558
8559 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
8560 SYSCALL_TRAP function.
8561 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
8562
8563 2004-02-04 Andrew Cagney <cagney@redhat.com>
8564 Daniel Jacobowitz <drow@mvista.com>
8565
8566 * objfiles.h: Delete comments refering to inside_entry_func and
8567 DEPRECATED_FRAME_CHAIN_VALID.
8568 * defs.h (inside_entry_func): Update prototype..
8569 * blockframe.c (inside_entry_func): Rename to
8570 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
8571 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
8572
8573 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
8574
8575 * breakpoint.c (struct captured_parse_breakpoint_args): Move
8576 outside of #ifdef SOLIB_ADD region.
8577 (do_restore_lang_radix_cleanup): Ditto.
8578 (resolve_pending_breakpoint): Ditto.
8579
8580 2004-02-03 Andrew Cagney <cagney@redhat.com>
8581
8582 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
8583 (process_note_abi_tag_sections): Delete unused function.
8584 (ia64_read_fp): Delete unused function.
8585 (gdbarch_extract_struct_value_address): Delete declaration.
8586
8587 2004-02-02 Andrew Cagney <cagney@redhat.com>
8588
8589 * vax-tdep.c (vax_frame_chain): Delete call to
8590 deprecated_inside_entry_file.
8591 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
8592
8593 2004-02-02 Mark Kettenis <kettenis@gnu.org>
8594
8595 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
8596 column that's "empty" or "same value" when eliminating REG_RA
8597 rules.
8598
8599 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
8600
8601 * NEWS: Add information about new pending breakpoint support.
8602
8603 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
8604
8605 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
8606 and pending fields for pending breakpoint support.
8607 * breakpoint.c (breakpoint_enabled): Add check for not pending.
8608 (condition_command): Only parse condition if not a pending
8609 breakpoint.
8610 (print_one_breakpoint): Add support for pending breakpoints.
8611 (describe_other_breakpoints): Add checks to verify we are not
8612 dealing with pending breakpoints.
8613 (check_duplicates): Don't check pending breakpoints.
8614 (set_raw_breakpoint): Initialize pending flag.
8615 (do_restore_lang_radix_cleanup): New cleanup routine.
8616 (resolve_pending_breakpoint): New function.
8617 (re_enable_breakpoints_in_shlibs): Try and resolve any
8618 pending breakpoints via resolve_pending_breakpoint.
8619 (mention): Add pending breakpoint support.
8620 (parse_breakpoint_sals): Add new parameter to pass to
8621 decode_line_1 to indicate silent errors when files or functions
8622 are not found. Change all callers.
8623 (do_captured_parse_breakpoint): New function.
8624 (break_command_1): Change prototype to return an rc value and to
8625 take an optional pending breakpoint pointer. Support creating
8626 a pending breakpoint if a "not found" form of error occurs when
8627 parsing the breakpoint. Also support resolving an existing pending
8628 breakpoint and be silent if the resolution fails.
8629 (create_breakpoints): Change prototype to take pending breakpoint
8630 pointer. When resolving a pending breakpoint, use the new pointer
8631 to provide a conditional or commands added by the end-user.
8632 (delete_breakpoint): Add appropriate check for pending.
8633 (breakpoint_re_set_one): Ditto.
8634 (do_enable_breakpoint): Ditto.
8635
8636 2004-02-02 David Carlton <carlton@kealia.com>
8637
8638 * valops.c (enum oload_classification): New.
8639 (find_overload_match): Break implementation into separate
8640 functions; delete #if 0'd code; look for symbols within
8641 namespaces.
8642 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
8643 (find_oload_champ,oload_method_static,classify_oload_match): New.
8644 * cp-support.h: Add declaration for cp_func_name; update
8645 declaration for make_symbol_overload_list.
8646 * cp-support.c (cp_func_name): New.
8647 (overload_list_add_symbol): Fix comment, use
8648 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
8649 (make_symbol_overload_list): Take a function name and a namespace
8650 instead of a symbol; change implementation.
8651 (make_symbol_overload_list_using): New.
8652 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
8653
8654 2004-02-02 Fred Fish <fnf@redhat.com>
8655
8656 * main.c (gdb_stdtarg): Move definition to group with other
8657 gdb_stdtarg definitions and update copyright years.
8658 * remote-sim.c (gdb_os_write_stderr): Write output to
8659 gdb_stdtargerr stream instead of gdb_stdtarg stream.
8660 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
8661 gdb_stderr stream and update copyright years.
8662
8663 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
8664
8665 * Makefile.in (mips-linux-nat.o): Update dependencies.
8666 * mips-linux-nat.c: Include mips-tdep.h.
8667
8668 2004-02-01 Roland McGrath <roland@redhat.com>
8669
8670 * sol-thread.c (sol_thread_xfer_partial): New function.
8671 (init_sol_thread_ops): Use that for to_xfer_partial hook.
8672 (init_sol_core_ops): Likewise.
8673
8674 * procfs.c (procfs_xfer_partial): New function.
8675 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
8676 * Makefile.in (procfs.o): Add $(auxv_h) dep.
8677
8678 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
8679 procfs_xfer_auxv function.
8680
8681 * procfs.c (procfs_make_note_section): If we can read
8682 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
8683 * linux-proc.c (linux_make_note_section): Likewise.
8684
8685 * auxv.h: New file.
8686 * auxv.c: New file.
8687 * Makefile.in (auxv_h): New variable.
8688 (COMMON_OBS): Add auxv.o here.
8689 (auxv.o): New target.
8690
8691 * corelow.c (core_xfer_partial): New function.
8692 (init_core_ops): Use it for core_ops.to_xfer_partial.
8693
8694 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
8695 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
8696 macro if that is defined.
8697
8698 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
8699
8700 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
8701 and check the specified thread for each breakpoint.
8702 * breakpoint.h (bpstat_stop_status): Update prototype.
8703 * infrun.c (handle_inferior_event): Update calls to
8704 bpstat_stop_status.
8705
8706 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
8707
8708 * Makefile.in (cli-cmds.o): Add $(readline_h).
8709
8710 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
8711
8712 * cli/cli-cmds.c: Include readline.h.
8713 (complete_command): Pass the start of the last word to
8714 complete_line.
8715
8716 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
8717
8718 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
8719 argument, and change first argument to a CORE_ADDR.
8720 * breakpoint.h (bpstat_stop_status): Update prototype.
8721 * infrun.c (adjust_pc_after_break): Add a new comment.
8722 (handle_inferior_event): Update calls to bpstat_stop_status.
8723
8724 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
8725
8726 * breakpoint.h: Update copyright years.
8727
8728 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
8729
8730 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
8731 (bpstat_stop_status): Don't decrement PC.
8732 * breakpoint.h (software_breakpoint_inserted_here_p): Add
8733 prototype.
8734 * infrun.c (adjust_pc_after_break): New function.
8735 (handle_inferior_event): Call it, early. Remove later references
8736 to DECR_PC_AFTER_BREAK.
8737 (normal_stop): Add commentary.
8738
8739 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
8740
8741 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
8742 2004-01-27 double-free fix.
8743
8744 2004-01-31 Mark Kettenis <kettenis@gnu.org>
8745
8746 * sparc-tdep.c (sparc_fetch_wcookie): New function.
8747 (sparc32_frame_prev_register): Handle StackGhost.
8748 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
8749
8750 2004-01-29 Roland McGrath <roland@redhat.com>
8751
8752 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
8753 * configure: Regenerated.
8754
8755 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
8756 * Makefile.in (procfs.o): Add dep.
8757
8758 2004-01-28 Andrew Cagney <cagney@redhat.com>
8759
8760 * tui/tui-stack.h: Update copyright.
8761 (struct frame_info): Add opaque declaration.
8762 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
8763 (tui_show_locator_content): Rename tuiShowLocatorContent.
8764 (tui_show_frame_info): Rename tuiShowFrameInfo.
8765 * tui/tui-stack.c: Update copyright. Update references.
8766 * tui/tui-winsource.c: Update references.
8767 * tui/tui-win.c: Update references.
8768 * tui/tui-layout.c: Update references.
8769 * tui/tui-hooks.c: Update copyright, update references.
8770 * tui/tui.c: Update copyright, update references.
8771 * tui/tui-disasm.c: Update references.
8772
8773 2004-01-28 David Carlton <carlton@kealia.com>
8774
8775 * dwarf2read.c (add_partial_structure): Use demangled name if
8776 namespace equals "".
8777
8778 2004-01-27 Jim Blandy <jimb@redhat.com>
8779
8780 Clean up misapplied patch:
8781 * dwarf2read.c (determine_prefix): Change one of the two forward
8782 declarations for 'determine_prefix_aux' to a declaration for this.
8783 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
8784 argument to 'die_specification'.
8785
8786 * dwarf2read.c (read_func_scope): Re-indent comment.
8787
8788 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
8789
8790 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
8791 b->exp to NULL after freeing so that error during re-parsing or
8792 evaluation of expressions associated with breakpoint don't
8793 eventually lead to re-freeing of storage.
8794 Committed by Andrew Cagney.
8795
8796 2004-01-27 Andrew Cagney <cagney@redhat.com>
8797
8798 * source.c (ambiguous_line_spec): Delete undefined declaration.
8799 * m32r-rom.c (m32r_set_board_address): Delete unused function.
8800 (m32r_set_server_address, m32r_set_download_path): Ditto.
8801 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
8802
8803 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
8804
8805 * dwarf2read.c: Update calls to changed and renamed functions, and
8806 references to moved variables.
8807
8808 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
8809 language, language_defn, list_in_scope, and ftypes members.
8810 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
8811 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
8812 (baseaddr): Remove globals.
8813
8814 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
8815 (set_cu_language, die_is_declaration, die_specification)
8816 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
8817 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
8818 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
8819 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
8820
8821 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
8822 cu.list_in_scope. Don't initialize cu_header_offset.
8823 (add_partial_symbol): Add local baseaddr.
8824 (psymtab_to_symtab_1): Add local baseaddr. Use
8825 objfile->section_offsets for consistency. Don't initialize
8826 cu_header_offset; do initialize cu.header.offset and
8827 cu.list_in_scope.
8828 (read_file_scope, read_func_scope, read_lexical_block_scope)
8829 (dwarf_decode_lines, new_symbol): Add local baseaddr.
8830
8831 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
8832
8833 * PROBLEMS: Add gdb/1516.
8834
8835 2003-12-29 Robert Millan <robertmh@gnu.org>
8836
8837 Patch committed by Andrw Cagney.
8838 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
8839 * configure.tgt: Match knetbsd*-gnu.
8840
8841 2004-01-26 Andrew Cagney <cagney@redhat.com>
8842
8843 * breakpoint.c (catch_command_1): Delete #ifdef code.
8844 (catch_fork_command_1): Delete #ifdef wrapper.
8845 (catch_exec_command_1): Ditto.
8846 (catch_load_command_1): Ditto.
8847 (catch_unload_command_1): Ditto.
8848
8849 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
8850 (catch_breakpoint): Delete #if0ed function.
8851 (disable_catch_breakpoint): Ditto.
8852 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
8853 (disable_catch, enable_catch, delete_catch): Ditto.
8854
8855 2004-01-26 Andrew Cagney <cagney@redhat.com>
8856
8857 * remote.c (echo_check, quit_flag): Delete variables.
8858 (cisco_kernel_mode): Delete variable.
8859 (minitelnet_return, tty_input, escape_count): Delete variables.
8860 (remote_cisco_mode): Delete variable.
8861 (remote_cisco_open, remote_cisco_close): Delete function.
8862 (remote_cisco_mourn, remote_cisco_wait): Delete function.
8863 (init_remote_cisco_ops): Delete function.
8864 (_initialize_remote): Do not install "remote cisco" code.
8865 (read_frame): Delete cisco specific code.
8866 (remote_info_process): Delete function.
8867 (remote_wait): Delete cisco specific code.
8868 (remote_cisco_section_offsets): Delete function.
8869 (remote_cisco_objfile_relocate): Delete function.
8870 (remote_async_wait): Delete cisco specific code.
8871 (minitelnet, readtty, readsocket): Delete function.
8872
8873 2004-01-26 Andrew Cagney <cagney@redhat.com>
8874
8875 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
8876 comments mentioning extract_returned_value_address.
8877 * infcmd.c (print_return_value): Update. Add comments on
8878 extract_returned_value_address.
8879 * stack.c (return_command): Add comments on
8880 extract_returned_value_address.
8881 * values.c: Update comment.
8882 * m32r-tdep.c: Update comment.
8883 * sparc-tdep.c: Update comment.
8884 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
8885 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8886 * sh64-tdep.c (sh64_gdbarch_init): Update.
8887 * sh-tdep.c (sh_gdbarch_init): Update.
8888 * s390-tdep.c (s390_gdbarch_init): Update.
8889 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8890 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8891 * m68k-tdep.c (m68k_gdbarch_init): Update.
8892 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8893 * m32r-tdep.c (m32r_gdbarch_init): Update.
8894 * ia64-tdep.c (ia64_gdbarch_init): Update.
8895 * h8300-tdep.c (h8300_gdbarch_init): Update.
8896 * frv-tdep.c (frv_gdbarch_init): Update.
8897 * arm-tdep.c (arm_gdbarch_init): Update.
8898 * alpha-tdep.c (alpha_gdbarch_init): Update.
8899
8900 2004-01-26 Andrew Cagney <cagney@redhat.com>
8901
8902 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
8903 SYMBOL_LOCATION_FUNCS
8904 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
8905 "struct symbol_ops".
8906 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
8907 type to "struct symbol_ops".
8908 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
8909 (struct symbol): Replace ".aux_value.loc.funcs" and
8910 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
8911 (SYMBOL_OBJFILE): Delete macro.
8912 (SYMBOL_LOCATION_FUNCS): Delete macro.
8913 (SYMBOL_LOCATION_BATON): Update.
8914 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
8915 intead of SYMBOL_LOCATION_FUNCS.
8916 * ax-gdb.c (gen_var_ref): Ditto.
8917 * printcmd.c (address_info): Ditto.
8918 * findvar.c (read_var_value): Ditto.
8919 (symbol_read_needs_frame): Ditto.
8920
8921 2004-01-26 Andrew Cagney <cagney@redhat.com>
8922
8923 * dwarf2read.c (read_func_scope): Document frame-base hack.
8924
8925 2004-01-25 Mark Kettenis <kettenis@gnu.org>
8926
8927 * infcmd.c (print_return_value): Plug memory leak; delete
8928 ui_stream object. Rename argument `structure_return' to
8929 `struct_return'.
8930
8931 2004-01-25 Mark Kettenis <kettenis@gnu.org>
8932
8933 * infcmd.c (print_return_value): Wrap long lines.
8934 (finish_command_continuation, finish_command): Remove unused
8935 variable `funcaddr'. Fix some coding-standards problems.
8936
8937 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
8938 SECT_SIZE is large enough, not whether it's exactly the right size.
8939 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
8940 TDEP->fpregset to zero.
8941
8942 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
8943 floating-point registers for traditional NetBSD core files.
8944 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
8945 TDEP->sizeof_fpregset here.
8946
8947 2004-01-25 Mark Kettenis <kettenis@gnu.org>
8948
8949 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
8950 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
8951 function with code split out from
8952 sparc32nbsd_sigcontext_frame_cache.
8953 (sparc32nbsd_sigcontext_frame_cache): Use
8954 sparc32nbsd_sigcontext_saved_regs.
8955 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
8956 OpenBSD.
8957 * sparcobsd-tdep.c: New file.
8958 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
8959 (sparcobsd-tdep.o): New dependency.
8960 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
8961 * config/sparc/obsd.mt: New file.
8962
8963 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
8964 TDEP->fpregset to be initialized to enable core file register
8965 sets.
8966
8967 2004-01-24 Mark Kettenis <kettenis@gnu.org>
8968
8969 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
8970 Add opaque declarations.
8971 (sparc64nbsd_sigcontext_saved_regs): New prototype.
8972 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
8973 function with code split out from
8974 sparc64nbsd_sigcontext_frame_cache.
8975 (sparc64nbsd_sigcontext_frame_cache): Use
8976 sparc64nbsd_sigcontext_saved_regs.
8977 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
8978 OpenBSD.
8979 * sparc64obsd-tdep.c: New file.
8980 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
8981 (sparc64obsd-tdep.o): New dependency.
8982 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
8983 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
8984 * config/sparc/obsd64.mt: New file.
8985
8986 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
8987 read the instruction at PC.
8988
8989 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
8990 value of GDB_OSABI_DEFAULT.
8991 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
8992 instead of GDB_OSABI_NETBSD_AOUT.
8993
8994 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
8995
8996 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
8997 copyright.
8998
8999 2004-01-23 Andrew Cagney <cagney@redhat.com>
9000
9001 * printcmd.c (display_command): Replace tui_set_display call with
9002 tui_set_layout_for_display_command.
9003 * tui/tui.h (enum tui_win_type): Define.
9004 (tui_set_layout): Delete declaration.
9005 (tui_set_layout_for_display_command): Rename set_tui_layout.
9006 * tui/tui-data.h (enum tui_layout_type): Define.
9007 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
9008 "tui.h".
9009 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
9010 (tui_default_win_height): Rename tuiDefaultWinHeight.
9011 (tui_default_win_viewport_height): Rename
9012 tuiDefaultWinViewportHeight.
9013 (tui_set_layout): RenametuiSetLayout.
9014 * tui/tui-layout.c: Update references.
9015 * tui/tui.c: Update references.
9016 * tui/tui-disasm.c: Update references.
9017
9018 2004-01-23 David Carlton <carlton@kealia.com>
9019
9020 Partial workaround for PR c++/1511:
9021 * cp-namespace.c: Include frame.h.
9022 (cp_lookup_transparent_type): New
9023 (cp_lookup_transparent_type_loop): New.
9024 * cp-support.h: Declare cp_lookup_transparent_type.
9025 * symtab.c (basic_lookup_transparent_type): Renamed from
9026 lookup_transparent_type.
9027 (lookup_transparent_type): Replace old body by a call to
9028 current_language->la_lookup_transparent_type.
9029 * symtab.h: Update copyright. Declare
9030 basic_lookup_transparent_type.
9031 * language.h: Update copyright.
9032 (struct language_defn): Add la_lookup_transparent_type.
9033 * language.c: Update copyright.
9034 (unknown_language_defn): Add basic_lookup_transparent_type.
9035 (auto_language_defn): Add basic_lookup_transparent_type.
9036 (local_language_defn): Add basic_lookup_transparent_type.
9037 * ada-lang.c: Update copyright.
9038 (ada_language_defn): Add basic_lookup_transparent_type.
9039 * c-lang.c: Update copyright.
9040 (c_language_defn): Add basic_lookup_transparent_type.
9041 (cplus_language_defn): Add basic_lookup_transparent_type.
9042 (asm_language_defn): Add basic_lookup_transparent_type.
9043 (minimal_language_defn): Add basic_lookup_transparent_type.
9044 * f-lang.c: Update copyright.
9045 (f_language_defn): Add basic_lookup_transparent_type.
9046 * jv-lang.c: Update copyright.
9047 (java_language_defn): Add basic_lookup_transparent_type.
9048 * m2-lang.c: Update copyright.
9049 (m2_language_defn): Add basic_lookup_transparent_type.
9050 * objc-lang.c: Update copyright.
9051 (objc_language_defn): Add basic_lookup_transparent_type.
9052 * p-lang.c: Update copyright.
9053 (p_language_defn): Add basic_lookup_transparent_type.
9054 * scm-lang.c: Update copyright.
9055 (scm_language_defn): Add basic_lookup_transparent_type.
9056 * Makefile.in (cp-namespace.o): Depend on frame.h.
9057
9058 2004-01-23 David Carlton <carlton@kealia.com>
9059
9060 Patch for PR c++/1520:
9061 * dwarf2read.c (read_func_scope): Set processing_current_prefix
9062 properly if we have a specification die.
9063 (determine_prefix_aux): Rename from determine_prefix.
9064 (determine_prefix): Like the old determine_prefix, but never
9065 returns NULL.
9066
9067 2004-01-23 Theodore A. Roth <troth@openavr.org>
9068
9069 * avr-tdep.c: Update copyright.
9070 (avr_iaddr_p): Delete unused function.
9071 (avr_saddr_p): Delete unused function.
9072
9073 2004-01-23 David Carlton <carlton@kealia.com>
9074
9075 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
9076 Fix for PR symtab/1534.
9077
9078 2004-01-23 Mark Kettenis <kettenis@gnu.org>
9079
9080 * NEWS (New native configurations): Mention OpenBSD/sparc and
9081 OpenBSD/sparc64.
9082 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
9083 * configure.host: Likewise.
9084 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
9085 handler for OpenBSD.
9086 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
9087
9088 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9089
9090 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
9091 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
9092
9093 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
9094 * cli/cli-cmds.c (shell_escape): Likewise.
9095
9096 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
9097 OpenBSD .note.openbsd.ident sections.
9098
9099 2004-01-22 David Carlton <carlton@kealia.com>
9100
9101 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
9102 get_scope_pc_bounds.
9103 (read_file_scope): Ditto.
9104 (get_scope_pc_bounds): New function, produced by extracting code
9105 from the above two functions, consolidating it, and adding support
9106 for DW_TAG_namespace.
9107
9108 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9109
9110 * osabi.c (MAX_NOTESZ): New define.
9111 (check_note): New function.
9112 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
9113 check_note.
9114
9115 2004-01-21 Roland McGrath <roland@redhat.com>
9116
9117 * MAINTAINERS (write after approval): Add myself.
9118
9119 2004-01-21 Eli Zaretskii <eliz@gnu.org>
9120
9121 * utils.c (init_page_info): Move declarations of `rows' and
9122 `cols' before the __GO32__-specific code. Move the closing brace
9123 outside the #ifdef __GO32__..#endif block.
9124 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
9125
9126 2004-01-21 Paul Brook <paul@codesourcery.com>
9127
9128 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
9129 BPSTAT_WHAT_CHECK_SHLIBS.
9130
9131 2004-01-21 Paul Brook <paul@codesourcery.com>
9132
9133 * MAINTAINERS: Add myself to write-after-approval.
9134
9135 2004-01-20 Andrew Cagney <cagney@redhat.com>
9136
9137 * ax-gdb.c (print_axs_value): Delete unused function.
9138 * jv-lang.c (java_lookup_type): Delete unused function.
9139 * cli/cli-dump.c (dump_filetype): Delete unused function.
9140 * remote-mips.c (remote_mips_insert_hw_breakpoint)
9141 (remote_mips_remove_hw_breakpoint): Delete unused functions.
9142 (mips_getstring): Delete unused function.
9143 (pmon_insert_breakpoint): Delete #if0ed function.
9144 (PMON_MAX_BP): Delete #if0ed MACRO.
9145 (mips_pmon_bp_info): Delete #if0ed variable.
9146 (pmon_remove_breakpoint): Delete #if0ed function.
9147 * monitor.c (monitor_write_even_block): Delete unused function.
9148 (monitor_write_memory_block): Delete #if0ed code.
9149 * dink32-rom.c (dink32_load): Delete unused function.
9150 (_initialize_dink32_rom): Delete #if0ed code.
9151 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
9152
9153 * tui/tui-command.c: Update references.
9154 * tui/tui-io.c: Update references.
9155 * tui/tui-command.h: Update copyright.
9156 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
9157
9158 * source.c (ambiguous_line_spec): Delete never-defined function.
9159 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
9160 * gdbtypes.c (add_name, add_mangled_type): Ditto.
9161 * cli/cli-cmds.c (validate_comname): Ditto.
9162
9163 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
9164 "tui-data.h".
9165 (tui_set_disassem_content): Rename tuiSetDisassemContent.
9166 (tui_show_disassem): Rename tuiShowDisassem.
9167 (tui_show_disassem_and_update_source): Rename
9168 tuiVerticalDisassemScroll.
9169 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
9170 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
9171 * tui/tui.h: Update copyright.
9172 (enum tui_status): Define.
9173 * tui/tui-data.h (enum tui_scroll_direction): Define.
9174 * tui/tui-disasm.c: Update copyright. Update references.
9175 * tui/tui-winsource.c: Update copyright. Update references.
9176 * tui/tui-win.c: Update references.
9177 * tui/tui-layout.c: Update references.
9178
9179 2004-01-20 Andrew Cagney <cagney@redhat.com>
9180
9181 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
9182 sym2 to start of block.
9183
9184 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
9185
9186 * MAINTAINERS: Delete mmalloc.
9187 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
9188 * NEWS: Mention removal of --with-malloc.
9189 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
9190 * config.in: Regenerate.
9191 * configure: Regenerate.
9192 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
9193 USE_MMALLOC, MMCHECK_FORCE.
9194 * gdbinit.in: Remove mmalloc.
9195 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
9196 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
9197 * config/i386/go32.mh: Likewise.
9198 * config/i386/interix.mh: Likewise.
9199 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
9200
9201 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
9202
9203 * linespec.c (decode_variable, symtab_from_filename): Call
9204 error_silent with error message instead of throwing an exception
9205 directly.
9206 * defs.h (error_silent, error_output_message): Add prototypes.
9207 (catch_exceptions_with_msg): Ditto.
9208 * utils.c (error_silent, error_output_message): New functions.
9209 * top.c (catch_exceptions_with_msg): New function.
9210
9211 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
9212
9213 * mi/mi-cmds.h (enum print_values): Add definition.
9214
9215 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
9216 type and value for simple data types and just the name and type
9217 for complex ones, if required.
9218
9219 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
9220 children, if required.
9221
9222 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9223
9224 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
9225 unused declarations.
9226
9227 2004-01-19 Andrew Cagney <cagney@redhat.com>
9228
9229 * top.h (mapped_symbol_files): Delete declaration.
9230 * main.c (captured_main): Delete option "m" and "mapped".
9231 * objfiles.c (mapped_symbol_files): Delete variable.
9232 * symfile.c (symbol_file_command): Delete mmap code.
9233 (symbol_file_add_with_addrs_or_offsets): Ditto.
9234 (add_symbol_file_command, reread_separate_symbols): Ditto.
9235 * objfiles.h (OBJF_MAPPED): Delete.
9236 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
9237 (free_objfile) [USE_MMALLOC]: Ditto.
9238 (open_existing_mapped_file): Delete function.
9239 (open_mapped_file): Delete function.
9240 (map_to_file): Delete function.
9241
9242 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9243
9244 * infrun.c (step_into_function): Account for possible breakpoint
9245 adjustment when computing ``stop_func_start''.
9246
9247 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9248
9249 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
9250 the region size against the size of a pointer, not the size of
9251 a register as given by DEPRECATED_REGISTER_SIZE.
9252
9253 2004-01-19 Andrew Cagney <cagney@redhat.com>
9254
9255 * tui/tui-regs.h: Include "tui-data.h".
9256 (tuiFirstRegElementNoInLine): Delete declaration.
9257 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
9258 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
9259 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
9260 (tui_calculate_regs_column_count): Rename
9261 tuiCalculateRegsColumnCount.
9262 (tui_check_register_values): Rename tuiCheckRegisterValues.
9263 (tui_show_registers): Rename tuiShowRegisters.
9264 (tui_display_registers_from_line): Rename
9265 tuiDisplayRegistersFromLine.
9266 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
9267 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
9268 (tui_first_reg_element_no_inline): Rename
9269 tuiFirstRegElementNoInLine.
9270 * tui/tui-data.h: Update copyright.
9271 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
9272 * tui/tui-windata.c: Update copyright, update references.
9273 * tui/tui-regs.c: Update copyright, update references.
9274 * tui/tui-win.c: Update copyright, update references.
9275 * tui/tui-layout.c: Update copyright, update references.
9276
9277 2004-01-18 Andrew Cagney <cagney@redhat.com>
9278
9279 * tui/tui-io.c: Update copyright.
9280 (key_is_end_sequence, key_is_backspace): New functions.
9281 (key_is_command_char, key_is_start_sequence): New function.
9282 (tui_getc): Update references.
9283 * tui/tui-io.h: Update copyright.
9284 (m_tuiStartNewLine): Delete macro.
9285 (m_isBackspace, m_isDeleteChar): Delete macros.
9286 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
9287 (m_isNextPage, m_isPrevPage): Delete macros.
9288 (m_isLeftArrow, m_isRightArrow): Delete macros.
9289 (m_isXdbStyleCommandChar): Delete macro.
9290 (key_is_start_sequence): Declare, replace m_isStartSequence.
9291 (key_is_end_sequence): Declare, replace m_isEndSequence.
9292 (key_is_backspace): Declare ,replace m_isBackspace.
9293 (key_is_command_char): Declare, replace m_isCommandChar.
9294 * tui/tui-command.c: Update copyright.
9295 (tuiDispatchCtrlChar): Update references.
9296
9297 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
9298 tuiSourceWin.h.
9299
9300 * tui/tui-command.c: Rename tui/tuiCommand.c.
9301 * tui/tui-command.h: Rename tui/tuiCommand.h.
9302 * tui/tui-data.c: Rename tui/tuiData.c.
9303 * tui/tui-data.h: Rename tui/tuiData.h.
9304 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
9305 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
9306 * tui/tui-io.c: Rename tui/tuiIO.c.
9307 * tui/tui-io.h: Rename tui/tuiIO.h.
9308 * tui/tui-layout.c: Rename tui/tuiLayout.c.
9309 * tui/tui-layout.h: Rename tui/tuiLayout.h.
9310 * tui/tui-regs.c: Rename tui/tuiRegs.c.
9311 * tui/tui-regs.h: Rename tui/tuiRegs.h.
9312 * tui/tui-source.c: Rename tui/tuiSource.c.
9313 * tui/tui-source.h: Rename tui/tuiSource.h.
9314 * tui/tui-stack.c: Rename tui/tuiStack.c.
9315 * tui/tui-stack.h: Rename tui/tuiStack.h.
9316 * tui/tui-win.c: Rename tui/tuiWin.c.
9317 * tui/tui-win.h: Rename tui/tuiWin.h.
9318 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
9319 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
9320 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
9321 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
9322 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
9323 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
9324 * tui/tui-file.c: Update includes.
9325 * tui/tui-hooks.c: Update includes.
9326 * tui/tui-interp.c: Update includes.
9327 * tui/tui.c: Update includes.
9328 * Makefile.in: Update all tui/ dependencies.
9329 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
9330
9331 * Makefile.in: Update copyright. Update dependencies.
9332
9333 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
9334 problem.
9335
9336 2004-01-18 Andrew Cagney <cagney@redhat.com>
9337
9338 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
9339 instead of register_gdbarch_init.
9340
9341 * remote-sds.c (tohex): Delete unused function. Update copyright.
9342 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
9343 * v850-tdep.c (v850_register_virtual_size): Ditto.
9344 * target.c (normal_target_post_startup_inferior): Ditto.
9345 * source.c (ambiguous_line_spec): Ditto.
9346 * remote.c (adapt_remote_get_threadinfo): Ditto.
9347 * mi/mi-out.c (out_field_fmt): Ditto.
9348 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
9349 (output_control_change_notification): Ditto.
9350 * m68k-tdep.c (m68k_register_byte): Ditto.
9351 (m68k_remote_breakpoint_from_pc): Ditto.
9352 * ui-out.c (init_ui_out_state): Delete unused declaration.
9353 * stabsread.c (search_value): Ditto.
9354 * mi/mi-cmd-env.c (env_cli_command): Ditto.
9355 * maint.c (print_section_table): Ditto.
9356 * infrun.c (set_follow_fork_mode_command): Ditto.
9357
9358 2004-01-18 Mark Kettenis <kettenis@gnu.org>
9359
9360 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
9361 DW_CFA_def_cfa_exporession. Add support for
9362 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
9363 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
9364
9365 2004-01-18 Andrew Cagney <cagney@redhat.com>
9366
9367 * ocd.c: Update copyright.
9368 (bdm_read_register_command): Delete unused function.
9369 (_initialize_remote_ocd): Delete commented out reference.
9370 (get_quoted_char, reset_packet): Delete #if0ed function.
9371 (output_packet, put_quoted_char): Delete #if0ed function.
9372 (stu_put_packet, stu_get_packet): Delete #if0ed function.
9373 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
9374 (BDM_BREAKPOINT): Delete #if0ed macro.
9375 (remote_timeout): Delete #if0ed variable.
9376
9377 2004-01-18 Mark Kettenis <kettenis@gnu.org>
9378
9379 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
9380 (core-sol2.o): Remove dependency.
9381 * core-sol2.c: Remove file.
9382
9383 2004-01-17 Andrew Cagney <cagney@redhat.com>
9384
9385 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
9386 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
9387 enums.
9388
9389 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9390
9391 * remote.c: Update copyright years.
9392
9393 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9394
9395 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
9396
9397 2004-01-17 Andrew Cagney <cagney@redhat.com>
9398
9399 * mdebugread.c: Update copyright.
9400 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
9401 (parse_type, parse_procedure): Ditto.
9402 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
9403
9404 * cris-tdep.c (cris_store_struct_return): Put back accidently
9405 deleted function.
9406
9407 * gdbarch.sh: Update copyright year.
9408 * gdbarch.h, gdbarch.c: Re-generate.
9409
9410 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9411
9412 Suggested by George Anzinger.
9413 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
9414 correct stack offset. Include unknown opcode numbers in the error
9415 message.
9416
9417 2004-01-17 Andrew Cagney <cagney@redhat.com>
9418
9419 * x86-64-tdep.c (x86_64_init_abi): No need to clear
9420 extract_struct_value_address, i386 does not set it.
9421 * sparc64-tdep.c (sparc64_init_abi): Do not set
9422 extract_struct_value_address, never called.
9423 (sparc64_extract_struct_value_address): Delete function.
9424 * m68hc11-tdep.c: Update copyright.
9425 (m68hc11_gdbarch_init): Delete redundant assignment of
9426 extract_struct_value_address.
9427 * i386-tdep.c: Update copyright.
9428 (i386_gdbarch_init): Do not set extract_struct_value_address,
9429 never called.
9430 (i386_extract_struct_value_address): Delete function.
9431 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
9432 extract_struct_value_address, never called.
9433 (sparc32_extract_struct_value_address): #if 0 function. Add
9434 comments explaining its future.
9435
9436 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9437
9438 * arm-tdep.c (arm_write_pc): New function.
9439 (arm_gdbarch_init): Call set_gdbarch_write_pc.
9440
9441 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9442
9443 * breakpoint.c (must_shift_inst_regs): Delete.
9444 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
9445 and SHIFT_INST_REGS.
9446 * infcmd.c (step_1, step_1_continuation): Delete references to
9447 SHIFT_INST_REGS.
9448 * infrun.c (keep_going): Likewise.
9449 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
9450 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
9451
9452 2004-01-17 Andrew Cagney <cagney@redhat.com>
9453
9454 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9455 * gdbarch.h, gdbarch.c: Re-generate.
9456 * infcmd.c (print_return_value): Delete reference to
9457 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
9458
9459 * cris-tdep.c (cris_gdbarch_init): Do not set
9460 deprecated_extract_struct_value_address.
9461
9462 * xstormy16-tdep.c: Update copyright.
9463 (xstormy16_extract_struct_value_address): Update to current
9464 extract struct value address interface.
9465 (xstormy16_gdbarch_init): Set extract_struct_value_address.
9466 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
9467 current extract struct value address interface.
9468 (sh64_gdbarch_init): Set extract_struct_value_address.
9469
9470 * cris-tdep.c: Update copyright.
9471 (cris_extract_struct_value_address): Delete function.
9472 (struct_return_address): Delete variable.
9473 (cris_store_struct_return): Do not set struct_return_address.
9474
9475 * mcore-tdep.c: Update copyright.
9476 (mcore_extract_struct_value_address): Delete function. Update
9477 comments.
9478 (mcore_gdbarch_init): Update.
9479 * mn10300-tdep.c: Update copyright.
9480 (mn10300_extract_struct_value_address): Delete function.
9481 (mn10300_gdbarch_init): Update.
9482 * v850-tdep.c: Update copyright.
9483 (v850_extract_struct_value_address): Delete.
9484 (v850_gdbarch_init): Update.
9485 * ns32k-tdep.c: Update copyright.
9486 (ns32k_extract_struct_value_address): Delete.
9487 (ns32k_gdbarch_init): Update.
9488 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
9489 (hppa_gdbarch_init): Update.
9490 * vax-tdep.c: Update copyright.
9491 (vax_extract_struct_value_address): Delete.
9492 (vax_gdbarch_init): Update.
9493
9494 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
9495 * gdbarch.h, gdbarch.c: Re-generate.
9496 * procfs.c (procfs_fetch_registers): Delete reference to
9497 DEPRECATED_NPC_REGNUM.
9498 (procfs_store_registers): Ditto.
9499 * regcache.c (generic_target_write_pc): Simplify.
9500 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
9501
9502 * core-sol2.c (fetch_core_registers): Replace
9503 DEPRECATED_NPC_REGNUM with equivalent tdep value.
9504
9505 * hppa-tdep.c: Update copyright year.
9506 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
9507 NPC_REGNUM.
9508 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
9509
9510 * mips-tdep.c (mips_write_pc): New function.
9511 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
9512 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
9513 (mips_find_saved_regs, mips_software_single_step: Ditto.
9514 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
9515 mips_init_extra_frame_info, mips_pop_frame): Ditto.
9516
9517 2004-01-17 Andrew Cagney <cagney@redhat.com>
9518
9519 * mips-tdep.c: Re-indent. Group functions by ABI.
9520
9521 2004-01-17 Andrew Cagney <cagney@redhat.com>
9522
9523 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
9524 * gdbarch.c: Re-generate.
9525 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9526 DECR_PC_AFTER_BREAK to zero.
9527 * vax-tdep.c (vax_gdbarch_init): Ditto.
9528 * v850-tdep.c (v850_gdbarch_init): Ditto.
9529 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
9530 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
9531 * sh-tdep.c (sh_gdbarch_init): Ditto.
9532 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9533 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9534 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9535 * mips-tdep.c (mips_gdbarch_init): Ditto.
9536 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9537 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9538 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
9539 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9540 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9541 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9542 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9543 * frv-tdep.c (frv_gdbarch_init): Ditto.
9544 * cris-tdep.c (cris_gdbarch_init): Ditto.
9545 * avr-tdep.c (avr_gdbarch_init): Ditto.
9546 * arm-tdep.c (arm_gdbarch_init): Ditto.
9547 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
9548
9549 2004-01-17 J. Brobecker <brobecker@gnat.com>
9550
9551 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
9552 Delete, no longer used.
9553 (read_subrange_type): New function, mostly extracted from
9554 read_array_type().
9555 (read_array_type): Replace extracted code by call to
9556 read_subrange_type().
9557 (dwarf2_get_attr_constant_value): New function.
9558 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
9559 (add_partial_symbol): Likewise.
9560 (process_die): Likewise.
9561 (new_symbol): Likewise.
9562 (read_type_die): Likewise.
9563
9564 2004-01-16 Andrew Cagney <cagney@redhat.com>
9565
9566 * symfile.c: Update copyright year.
9567 (compare_symbols): Delete unused function.
9568 * stabsread.c: Update copyright year.
9569 (lrs_general_complaint): Delete unused function.
9570 (ref_search_value): Ditto.
9571 (get_substring): Delete declaration.
9572 * sh64-tdep.c: Update copyright year.
9573 (sh64_get_gdb_regnum): Delete unused function.
9574 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
9575 Delete unused function.
9576
9577 2004-01-17 Mark Kettenis <kettenis@gnu.org>
9578
9579 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
9580 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
9581
9582 2004-01-16 Andrew Cagney <cagney@redhat.com>
9583
9584 Changes from Peter Schauer.
9585 * rs6000-tdep.c: Update copyright year.
9586 (rs6000_push_dummy_call): Update the stack pointer before
9587 accessing the corresponding stack region.
9588 * rs6000-nat.c: Update copyright year.
9589 (set_host_arch): Set "info.abfd" to "exec_bfd".
9590
9591 2004-01-15 Mark Kettenis <kettenis@gnu.org>
9592
9593 * blockframe.c: Update copyright year.
9594 (inside_entry_func): Don't treat a zero PC specially.
9595
9596 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
9597
9598 * gcore.c (gcore_copy_callback): Use paddr_d to print size
9599 variable.
9600 (gcore_create_callback): Ditto. Skip any memory segment that has
9601 no permissions set.
9602
9603 2004-01-14 David Carlton <carlton@kealia.com>
9604
9605 Change symbols for C++ nested types to contain the fully qualified
9606 name, if possible. (At least in the DWARF-2 case.) Partial fix
9607 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
9608 c++/895.
9609 * c-exp.y (qualified_type): Handle types nested within classes.
9610 * cp-namespace.c: Update comments.
9611 (cp_set_block_scope): Delete #if 0.
9612 (cp_lookup_nested_type): Handle types nested within classes.
9613 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
9614 when appropriate.
9615 (add_partial_symbol): Add the name of the enclosing namespace to
9616 types.
9617 (pdi_needs_namespace): New.
9618 (add_partial_namespace): Tweak comment.
9619 (add_partial_structure): New.
9620 (psymtab_to_symtab_1): Initialize processing_current_prefix
9621 here...
9622 (process_die): instead of here.
9623 (read_structure_scope): Try to figure out the name of the class or
9624 namespace that the structure might be defined within.
9625 (read_enumeration): Generate fully-qualified names, if possible.
9626 (read_namespace): Don't set name to NULL.
9627 (die_specification): New.
9628 (new_symbol): Generate fully-qualified names for types.
9629 (read_type_die): Determine appropriate prefix.
9630 (determine_prefix): New.
9631 (typename_concat): New.
9632 (class_name): New.
9633 * valops.c (value_aggregate_elt): Pass NOSIDE to
9634 value_struct_elt_for_reference.
9635 (value_struct_elt_for_reference): Make static, add NOSIDE
9636 parameter, call value_maybe_namespace_elt as a last resort.
9637 (value_namespace_elt): Break out code into
9638 value_maybe_namespace_elt.
9639 (value_maybe_namespace_elt): New.
9640
9641 2004-01-12 Andrew Cagney <cagney@redhat.com>
9642
9643 * mips-tdep.c (mips_convert_register_p): Handle both raw and
9644 cooked floating-point registers.
9645 (mips_gdbarch_init): Set convert_register_p, register_to_value,
9646 and value_to_register.
9647
9648 2004-01-13 Andrew Cagney <cagney@redhat.com>
9649
9650 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
9651 * gdbarch.c: Re-generate.
9652 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9653 FUNCTION_START_OFFSET.
9654 * v850-tdep.c (v850_gdbarch_init): Ditto.
9655 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
9656 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
9657 * sh-tdep.c (sh_gdbarch_init): Ditto.
9658 * s390-tdep.c (s390_gdbarch_init): Ditto.
9659 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9660 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9661 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9662 * mips-tdep.c (mips_gdbarch_init): Ditto.
9663 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9664 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9665 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9666 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
9667 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9668 * i386-tdep.c (i386_gdbarch_init): Ditto.
9669 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9670 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9671 * frv-tdep.c (frv_gdbarch_init): Ditto.
9672 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9673 * cris-tdep.c (cris_gdbarch_init): Ditto.
9674 * avr-tdep.c (avr_gdbarch_init): Ditto.
9675 * arm-tdep.c (arm_gdbarch_init): Ditto.
9676 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9677
9678 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
9679
9680 * infrun.c (follow_fork_mode_ask): Remove.
9681 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
9682 (follow_fork): Simplify and remove internal error for
9683 follow_fork_mode_ask.
9684 (_initialize_infrun): Update "set follow-fork-mode" help text.
9685
9686 2004-01-13 Andrew Cagney <cagney@redhat.com>
9687
9688 * configure.in: Update copyright year.
9689 (build_warnings): Add -Wunused-label.
9690 * configure: Re-generate.
9691
9692 2004-01-12 Andrew Cagney <cagney@redhat.com>
9693
9694 * exec.h (exec_ops): Make "extern".
9695
9696 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
9697 the function is void.
9698 (mips_pseudo_register_write): Ditto.
9699
9700 2004-01-12 Andrew Cagney <cagney@redhat.com>
9701
9702 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
9703 call. Never defined.
9704 * sparc-tdep.h (struct frame_info): Add opaque declaration.
9705 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
9706 (struct sparc_gregset, struct regcache): Ditto.
9707 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
9708
9709 2004-01-12 Andrew Cagney <cagney@redhat.com>
9710
9711 * mi/ChangeLog: Delete file. Renamed to ...
9712 * mi/ChangeLog-1999-2003: New file.
9713 * tui/ChangeLog: Delete file. Renamed to ...
9714 * tui/ChangeLog-1998-2003: New file.
9715
9716 2004-01-11 Mark Kettenis <kettenis@gnu.org>
9717
9718 * sparc64nbsd-tdep.c: Include "regset.h".
9719 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
9720 Remove variables.
9721 (fetch_core_registers): Remove function.
9722 (sparc64nbsd_core_fns): Remove variable.
9723 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
9724 functions.
9725 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
9726 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
9727 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
9728
9729 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
9730 sparc_extract_struct_value_address.
9731 (sparc32_gdbarch_init): Set extract_struct_value_address.
9732 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
9733 function.
9734 (sparc64_init_abi): Set extract_struct_value_address. Don't set
9735 return_value_on_stack.
9736
9737 * NEWS: Mention that %cs and %ss have been added to the AMD64
9738 configurations
9739
9740 * frame.c: Update copyright year.
9741 (get_prev_frame): Improve comment.
9742
9743 * sparc64fbsd-tdep.c: Include "regset.h".
9744 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
9745 Remove variables.
9746 (fetch_core_registers): Remove function.
9747 (sparc64fbsd_core_fns): Remove variable.
9748 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
9749 functions.
9750 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
9751 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
9752 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
9753
9754 * sparcnbsd-tdep.c: Include "regset.h".
9755 (fetch_core_registers): Remove function.
9756 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
9757 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
9758 functions.
9759 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
9760 TDEP->fpregset.
9761 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
9762
9763 * sparc-tdep.h (struct regset): Provide opaque declaration.
9764 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
9765 fpregset and sizeof_fpregset members.
9766 * sparc-tdep.c (struct regset): Provide opaque declaration.
9767 (sparc_regset_from_core_section): New function.
9768 (sparc32_gdbarch_init): Initialize TDEP->gregset,
9769 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
9770 Set regset_from_core_section when appropriate.
9771
9772 2004-01-10 Mark Kettenis <kettenis@gnu.org>
9773
9774 * x86-64-tdep.c (amd64_non_pod_p): New function.
9775 (amd64_classify_aggregate): Return class memory for non-POD
9776 C++ structure types.
9777
9778 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
9779 argument. Use it to reserve a register if necessary.
9780 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
9781 amd64_push_arguments.
9782
9783 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
9784
9785 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
9786 register numbers in comments.
9787 * x86-64-tdep.h: Update copyright year.
9788 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
9789 Adjust for addition of %cs and %ss.
9790 * amd64fbsd-nat.c: Update copyright year.
9791 (reg_offset): Add register offsets for %cs and %ss.
9792 * amd64fbsd-tdep.c: Update copyright year.
9793 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
9794 (amd64fbsd_sc_reg_offset): Likewise.
9795 * x86-64-linux-nat.c: Update copyright year.
9796 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
9797 and %ss.
9798 * amd64nbsd-nat.c: Update copyright year.
9799 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
9800 * amd64nbsd-tdep.c: Update copyright year.
9801 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
9802 * x86-64-linux-tdep.c: Update copyright year.
9803 (user_to_gdb_regmap): Add mapping for %cs and %ss.
9804 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
9805 * regformats/reg-x86-64.dat: Add %cs and %ss.
9806
9807 * blockframe.c (inside_entry_func): Reformat. Introduce new local
9808 variables to prevent long lines. Update comments to reflect
9809 reality.
9810
9811 2004-01-09 David Carlton <carlton@kealia.com>
9812
9813 Checked in by Elena Zannoni <ezannoni@redhat.com>.
9814 * dwarf2read.c (read_namespace): Pull out name-generating code
9815 into namespace_name. Rename previous_namespace to previous_prefix
9816 and processing_current_namespace to processing_current_prefix..
9817 (namespace_name): New function.
9818 (add_partial_symbol): Substitute uses of pdi->name with
9819 actual_name.
9820 * cp-support.h: Rename processing_current_namespace to
9821 processing_current_prefix.
9822 Update copyright year.
9823 * cp-namespace.c: Rename processing_current_namespace to
9824 processing_current_prefix.
9825 Update copyright year.
9826
9827 2004-01-09 Andrew Cagney <cagney@redhat.com>
9828
9829 * jv-valprint.c, ser-unix.c: Add missing copyright years.
9830
9831 2004-01-09 Mark Kettenis <kettenis@gnu.org>
9832
9833 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
9834 complaining.
9835 (process_one_symbol): Deal with N_PATCH stabs.
9836
9837 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
9838
9839 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
9840 ifdeffed code.
9841 Update copyright year.
9842
9843 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
9844
9845 * config/pa/tm-hppa.h: Update extern declarations for
9846 hppa32_hpux_frame_saved_pc_in_sigtramp,
9847 hppa32_hpux_frame_base_before_sigtramp, and
9848 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
9849
9850 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
9851
9852 * config/pa/tm-hppah.h: Update copyright years.
9853
9854 2004-01-08 Andrew Cagney <cagney@redhat.com>
9855
9856 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
9857 (mips_o32_reg_struct_has_addr): Delete function.
9858 (mips_gdbarch_init): Update.
9859 (mips_extract_struct_value_address): Delete function.
9860
9861 2004-01-08 David Mosberger <davidm@hpl.hp.com>
9862
9863 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
9864 reality.
9865
9866 2004-01-07 Andrew Cagney <cagney@redhat.com>
9867
9868 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
9869 architecture's elf flags (when available).
9870
9871 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
9872 FPU to the start, check the MIPS FPU when looking for an old
9873 architecture.
9874 (set_mipsfpu_single_command): Update the architecture.
9875 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
9876
9877 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
9878 (mips_mask_address_p): Add "tdep" parameter.
9879 (show_mask_address, mips_addr_bits_remove): Update.
9880 (mips_dump_tdep): Update.
9881 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
9882 (MIPS_STACK_ARGSIZE): Delete macro.
9883 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
9884 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
9885 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
9886 (mips_dump_tdep): Update.
9887 (MIPS_SAVED_REGSIZE): Delete macro.
9888 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
9889 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
9890 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
9891 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
9892 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
9893 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
9894 (mips_pop_frame, return_value_location): Update.
9895 (mips_n32n64_return_value, mips_dump_tdep): Update.
9896
9897 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
9898 MIPS ABI.
9899
9900 * mips-tdep.c: Update copyright.
9901 (mips_gdbarch_init): Merge two code blocks handling the register
9902 name and number layout.
9903
9904 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
9905
9906 * tracepoint.c (validate_actionline): Fix segv at EOF
9907
9908 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
9909
9910 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
9911 properly for static fields.
9912
9913 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
9914 Jason Molenda <jmolenda@apple.com>
9915
9916 * disasm.c: Update copyright to include 2004.
9917 (do_mixed_source_and_assembly): For uiout asm list
9918 and tuple cleanups, initialize to null_cleanup instead of
9919 NULL and do so prior to loop. Only reset when we close off
9920 the tuple/list. Move check for whether to close off the
9921 asm tuple/list to after dump_insns call where it will be run
9922 on each loop iteration.
9923
9924 2004-01-05 Andrew Cagney <cagney@redhat.com>
9925
9926 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
9927 should be a switch case and not a label.
9928 * mips-tdep.c (mips32_next_pc): Delete unused labels
9929 "greater_equal_branch" and "less_zero_branch".
9930 * jv-valprint.c (java_print_value_fields): Delete unused label
9931 "flush_it".
9932
9933 * target.c (unpush_target): Only close a target that is in the
9934 target stack.
9935
9936 2004-01-05 Mark Kettenis <kettenis@gnu.org>
9937
9938 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
9939 address from [sp + 64] instead of %o2.
9940
9941 * frame.c (get_prev_frame): Don't try to unwind the PC. This
9942 fixes PR backtrace/1476.
9943
9944 2004-01-05 Andrew Cagney <cagney@redhat.com>
9945
9946 * libunwind-frame.h (struct frame_id): Add opaque declaration,
9947 move to start of file.
9948 * i386-tdep.h (struct regcache): Add opaque declaration.
9949 * config/ia64/nm-linux.h (struct target_ops): Add opaque
9950 declaration.
9951 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
9952 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
9953 * win32-nat.c (fake_create_process): Use ISO C style definition.
9954 * stabsread.c (define_symbol): Delete #ifndef
9955 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
9956 stabs_argument_has_addr call, macro never defined.
9957
9958 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
9959
9960 * op50-rom.c: Delete.
9961 * w89k-rom.c: Delete.
9962 * Makefile.in: Remove references.
9963
9964 2004-01-04 Mark Kettenis <kettenis@gnu.org>
9965
9966 * x86-64-tdep.c: Update copyright year.
9967 (struct amd64_register_info): Rename from x86_64_register_info.
9968 (amd64_register_info): Rename from x86_64_register_info.
9969 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
9970 (amd64_register_name): Rename from x86_64_register_name.
9971 (amd64_register_type): Rename from x86_64_register_type.
9972 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
9973 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
9974 (amd64_dwarf_reg_to_regnum): Rename from
9975 x86_64_dwarf_reg_to_regnum.
9976 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
9977 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
9978 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
9979 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
9980 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
9981 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
9982 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
9983 (amd64_frame_cache): Rename from x86_64_frame_cache.
9984 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
9985 (amd64_frame_prev_register): Rename from
9986 x86_64_frame_prev_register.
9987 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
9988 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
9989 (amd64_sigtramp_frame_cache): Rename from
9990 x86_64_sigtramp_frame_cache.
9991 (amd64_sigtramp_frame_prev_register): Rename from
9992 x86_64_sigtramp_frame_prev_register.
9993 (amd64_sigtramp_frame_unwind): Rename from
9994 x86_64_sigtramp_frame_unwind.
9995 (amd64_sigtramp_frame_sniffer): Rename from
9996 x86_64_sigtramp_frame_sniffer.
9997 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
9998 (amd64_frame_base): Rename from x86_64_frame_base.
9999 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
10000 (amd64_frame_align): Rename from x86_64_frame_align.
10001 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
10002 (amd64_regset_from_core_section): Rename from
10003 x86_64_regset_from_core_section.
10004 (x86_64_init_abi): Update comments.
10005
10006 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
10007
10008 * MAINTAINERS (write after approval): Add myself.
10009
10010 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10011
10012 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
10013 `float' arguments.
10014
10015 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10016
10017 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
10018 such that it mentions a specific version of GCC that exhibits this
10019 bug.
10020
10021 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10022
10023 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
10024 structure that has a single `float' member, store it in %f1 in
10025 addition to %f0.
10026
10027 * sparc-sol2-nat.c: Add missing '\'.
10028
10029 * sparc-tdep.c (sparc32_return_value): New function.
10030 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
10031 Remove functions.
10032 (sparc32_gdbarch_init): Set return_value, don't set
10033 extract_return_value, store_return_value, use_struct_convention
10034 and return_value_on_stack.
10035
10036 * sparc-sol2-nat.c: Add missing ')'.
10037
10038 2004-01-03 J. Brobecker <brobecker@gnat.com>
10039
10040 * infrun.c (handle_step_into_function): New function.
10041 (handle_inferior_event): Extract out some code into the new
10042 function above.
10043
10044 2004-01-03 J. Brobecker <brobecker@gnat.com>
10045
10046 * infrun.c (handle_inferior_event): Move the declaration of
10047 real_stop_pc inside the if blocks where it is used.
10048
10049 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10050
10051 * sparc64-tdep.c (sparc64_16_byte_align_p)
10052 (sparc64_store_floating_fields, sparc64_store_floating_fields):
10053 Use check_typedef to get subtypes of structures and unions.
10054 (sparc64_store_return_value): Fix calculation of the appropriate
10055 offset into VALBUF when storing a structure or union.
10056 (sparc64_return_value): New function.
10057 (sparc64_use_struct_convention): Remove function.
10058 (sparc64_init_abi): Set return_value, don't set
10059 extract_return_value, store_return_value and
10060 use_struct_convention.
10061
10062 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
10063
10064 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
10065 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
10066 gdb/config/alpha/xm-alphaosf.h,
10067 gdb/config/powerpc/tm-ppcle-eabi.h,
10068 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
10069 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
10070 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
10071 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
10072 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
10073 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
10074 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
10075 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
10076 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
10077 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
10078 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
10079 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
10080 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
10081 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
10082 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
10083 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
10084 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
10085 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
10086 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
10087 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
10088 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
10089 Remove lines for .cvsignore files.
10090
10091 2004-01-03 J. Brobecker <brobecker@gnat.com>
10092
10093 * infrun.c: Back out the previous change.
10094
10095 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10096
10097 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
10098 sparc-*-sunos4* to the list of REMOVED configurations.
10099
10100 * configure.tgt: Add back sparc-*-vxworks*.
10101 * remote-vxsparc.c: Remove all includes except for "defs.h",
10102 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
10103 Include "sparc-tdep.h".
10104 (SPARC_R_G1): New define.
10105 (vxsparc_gregset): New variable.
10106 (ext_format_sparc): Remove extern declaration.
10107 (vx_read_register): Rewrite to use sparc32_supply_gregset and
10108 sparc32_supply_fpregset.
10109 (vx_write_register): Rewrite to use sparc32_collect_gregset,
10110 sparc_collect_rwindow and sparc32_collect_fpregset.
10111 * config/sparc/tm-vxworks.h: New file, based on recently removed
10112 tm-vxsparc.h.
10113 * config/sparc/vxworks.mt: New file, based on recently removed
10114 vxworks.mt.
10115
10116 2004-01-03 J. Brobecker <brobecker@gnat.com>
10117
10118 * infrun.c (handle_step_into_function): New function.
10119 (handle_inferior_event): Extract out some code into the new
10120 function above.
10121
10122 2004-01-02 Mark Kettenis <kettenis@gnu.org>
10123
10124 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
10125 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
10126 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
10127 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
10128 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
10129 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
10130 (sparc_nat_h): New variable.
10131 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
10132 (tm-sun4os4.h): Remove dependency.
10133 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
10134 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
10135 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
10136 sparc-tdep.o): Update dependencies.
10137 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
10138 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
10139 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
10140 dependencies.
10141 * configure.host: Remove existing sparc-*-lynxos*,
10142 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
10143 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
10144 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
10145 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
10146 triplets.
10147 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
10148 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
10149 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
10150 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
10151 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
10152 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
10153 sparc64-*-solaris2* and sparc64-*-* triplets.
10154 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
10155 "symtab.h" and "objfiles.h".
10156 (BIAS): Remove define.
10157 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
10158 (X_DISP19): Remove macros.
10159 (sparc_fetch_instruction): Remove function.
10160 (struct gdbarch_tdep): Remove definition.
10161 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
10162 (sparc_breakpoint_from_pc): Remove function.
10163 (struct sparc64_frame_cache): Remove definition.
10164 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
10165 sparc64_unwind_pc): Remove functions.
10166 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
10167 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
10168 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
10169 (sparc64_frame_cache): Change return type to `struct
10170 sparc_frame_cache *'. Simply call sparc_frame_cache.
10171 (sparc64_frame_this_id, sparc64_frame_prev_register,
10172 sparc64_frame_base_address): Use `struct sparc_frame_cache'
10173 instead of `struct sparc64_frame_cache.
10174 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
10175 sparc_analyze_control_transfer, sparc_software_single_step,
10176 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
10177 _initialize_sparc64_tdep): Remove functions.
10178 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
10179 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
10180 macros.
10181 (sparc64_supply_gregset, sparc64_collect_gregset,
10182 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
10183 (sparc64_init_abi): New function.
10184 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
10185 inclusion guard. Include "sparc-tdep.h".
10186 (BIAS): Define.
10187 (r_tstate_offset, r_fprs_offset): New defines.
10188 (enum sparc_regnum): Remove defenition.
10189 (enum sparc64_regnum): Reformat.
10190 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
10191 (sparc64_init_abi, sparc64_supply_gregset,
10192 sparc64_collect_gregset, sparc64_supply_fpregset,
10193 sparc64_collect_fpregset): New prototypes.
10194 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
10195 Add extern declarations.
10196 (sparc64_sol2_init_abi): New prototype.
10197 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10198 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10199 prototypes.
10200 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
10201 "sparnbsd-nat.h".
10202 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
10203 functions.
10204 (_initialize_sparc64fbsd_nat): Remove initialization of
10205 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
10206 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
10207 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
10208 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
10209 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
10210 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
10211 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
10212 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
10213 (sparc64fbsd_r_y_offset): Remove variables.
10214 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10215 Make static and const.
10216 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10217 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10218 functions.
10219 (sparc64fbsd_gregset): New variable.
10220 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
10221 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
10222 and sparc64_supply_fpregset.
10223 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
10224 (sparc64fbsd_sigtramp_frame_this_id)
10225 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
10226 (sparc64fbsd_sigtramp_frame_unwind): New variable.
10227 (sparc64fbsd_sigtramp_frame_sniffer): New function.
10228 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
10229 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
10230 * sparcnbsd-tdep.c: Update copyright year. Include
10231 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
10232 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
10233 "value.h" and "sparcnbsd-tdep.h".
10234 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
10235 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
10236 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
10237 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
10238 defines.
10239 (sparcnbsd_gregset): New variable.
10240 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
10241 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
10242 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
10243 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
10244 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
10245 variables.
10246 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
10247 (sparc32nbsd_sigcontext_frame_this_id)
10248 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
10249 (sparc32nbsd_sigcontext_frame_unwind): New variable.
10250 (sparc32nbsd_sigtramp_frame_sniffer): New function.
10251 (sparcnbsd_get_longjmp_target_32,
10252 sparcnbsd_get_longjmp_target_64): Remove functions.
10253 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
10254 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
10255 sparcnbsd_init_elf): Remove.
10256 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
10257 (sparcnbsd_elf_init_abi): New functions.
10258 (_initialize_sparcnbsd_tdep): New prototype.
10259 (_initialize_sparnbsd_tdep): Update.
10260 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
10261 corelow.o. Add sparc64-nat.o and sparc-nat.o.
10262 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
10263 * config/sparc/linux.mh: Update comment.
10264 (XM_FILE, HOST_IPC): Remove variables.
10265 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
10266 sparc-linux-nat.o.
10267 * config/sparc/linux.mt: Update comment.
10268 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
10269 * config/sparc/nbsd.mt: Reformat.
10270 * config/sparc/nbsd64.mh: Update comment.
10271 (NATDEPFILES): Add sparc-nat.o.
10272 * config/sparc/nbsd64.mt: Update comment.
10273 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
10274 (TM_FILE): Set to tm-nbsd.h.
10275 * config/sparc/nbsdelf.mh: Update comment.
10276 (NATDEPFILES): Add sparc-nat.o.
10277 (XM_FILE): Delete.
10278 * config/sparc/nbsdaout.mh: Update comment.
10279 (NATDEPFILES): Add sparc-nat.o
10280 (XM_FILE): Delete.
10281 * config/sparc/nm-linux.h: Update copyright year. Don't include
10282 "config/nm-svr4.h" and "solib.h". Add protection against multiple
10283 inclusion.
10284 (KERNEL_U_SIZE): Remove define.
10285 (kernel_u_size): Remove prototype.
10286 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
10287 * config/sparc/nm-nbsd.h: Update copyright. Don't include
10288 "regcache.h".
10289 (CHILD_PREPARE_TO_STORE): Remove define.
10290 * config/sparc/nm-nbsdaout.h: Tweak some comments.
10291 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
10292 sparcnbsd-nat.c: Rewrite files.
10293 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
10294 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
10295 sparcnbsd-tdep.h: Remove files.
10296 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
10297 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
10298 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
10299 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
10300 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
10301 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
10302 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
10303 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
10304 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
10305 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
10306 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
10307 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
10308 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
10309 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
10310 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
10311 * config/sparc/linux64.mh, config/sparc/linux64.mt,
10312 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
10313 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
10314 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
10315
10316 2004-01-02 Andrew Cagney <cagney@redhat.com>
10317
10318 From 2003-12-18 Kazuhiro Inaoka:
10319 * configure.host: Add m32r-linux target.
10320
10321 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
10322
10323 * top.c (print_gdb_version): Update year to 2004.
10324
10325 2004-01-02 Mark Mitchell <mark@codesourcery.com>
10326
10327 * MAINTAINERS: Add myself to the write-after-approval category.
10328
10329 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
10330
10331 From Bernardo Innocenti <bernie@develer.com>:
10332 * configure.tgt: Add uClinux target.
10333
10334 2004-01-02 Andrew Cagney <cagney@redhat.com>
10335
10336 * utils.c (do_my_cleanups): Make static, add forward declaration.
10337 * defs.h (do_my_cleanups): Delete declaration.
10338
10339 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
10340
10341 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
10342 bfd/ChangeLog-0203.
10343
10344 2004-01-02 Mark Kettenis <kettenis@gnu.org>
10345
10346 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
10347 in <machine/reg.h>.
10348 * configure, config.in: Regenerate.
10349
10350 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
10351 tui/ChangeLog-1998-2003.
10352 \f
10353 Local Variables:
10354 mode: change-log
10355 left-margin: 8
10356 fill-column: 74
10357 version-control: never
10358 End: