* dwarf2read.c (dwarf2_create_include_psymtab): Fix build
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
58a9656e
JB
12004-05-03 Joel Brobecker <brobecker@gnat.com>
2
3 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4 failure detected by recent versions of GCC.
5 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6 to be consistent with the usage in dwarf2_create_include_psymtab.
7
dc305454
MS
82004-05-03 Michael Snyder <msnyder@redhat.com>
9
10 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
11 (heuristic_proc_start): Whitespace cleanup.
12
29972665
MK
132004-05-04 Mark Kettenis <kettenis@gnu.org>
14
6b57680d
MK
15 * sun3-nat.c: Remove file.
16 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
17 dependencies.
18 (ALLDEPFILES): Remove sun3-nat.c.
19 (sun3-nat.o): Remove dependencies.
20
29972665
MK
21 * i386-interix-nat.c, i386-interix-tdep.c,
22 config/i386/nm-interix.h, config/i386/interix.mh,
23 config/i386/interix.mt: Remove files.
24 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
25 dependencies.
26
f595cb19
MK
272004-05-03 Mark Kettenis <kettenis@gnu.org>
28
29 * m68k-tdep.h (struct gdbarch_tdep): Add member
30 struct_value_regnum.
31 (m68k_svr4_init_abi): New prototype.
32 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
33 different calling conventions.
34 (m68k_extract_return_value): Remove code dealing with single-field
35 structs.
36 (m68k_store_return_value): Remove code dealing with single-field
37 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
38 (m68k_extract_struct_value_address): Remove function.
39 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
40 (m68k_reg_struct_return_p, m68k_return_value)
41 (m68k_svr4_return_value): New functions.
42 (m68k_use_struct_convention): Remove function.
43 (m68k_push_dummy_call): Use new struct_value_regnum member of
44 `struct gdbarch_tdep' instead of hardcoded register number to
45 store STRUCT_ADDR.
46 (m68k_svr4_init_abi): New function.
47 (m68k_gdbarch_init): Don't set extract_return_value,
48 store_return_values, deprecated_extract_struct_value_address and
49 use_struct_convention. Set return_value instead. Initialize new
50 struct_value_regnum member of `struct gdbarch_tdep'.
51 * m68klinux-tdep.c: Update copyright year.
52 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
53 (m68k_linux_extract_struct_value_address): Remove function.
54 (m68k_linux_init_abi): Don't set extract_return_value,
55 store_return_values, deprecated_extract_struct_value_address and
56 use_struct_convention. Call m68k_svr4_init_abi but override the
57 new struct_value_regnum member of `struct gdbarch_tdep'.
58 * Makefile.in (m68k-tdep.o): Update dependencies.
59
aaa75496
JB
602004-05-03 J. Brobecker <brobecker@gnat.com>
61
62 * dwarf2read.c (line_header): Add new included_p field in
63 field file_names.
64 (partial_die_info): New field has_stmt_list. New field line_offset.
65 (dwarf2_create_include_psymtab): New function.
66 (dwarf2_build_include_psymtabs): New function.
67 (add_file_name): Add forward declaration. Initialize new field.
68 (dwarf_decode_lines): Add new parameter. Enhance this procedure
69 to be able to determine the list of files included by the
70 given unit, and build their associated psymtabs.
71 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
72 files as well.
73 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
74 (read_file_scope): Update call to dwarf_decode_lines.
75 (read_partial_die): Handle DW_AT_stmt_list attributes.
76
c848556f
MC
772004-05-02 Michael Chastain <mec.gnu@mindspring.com>
78
79 Unfix PR gdb/1626.
80 * configure.in: Revert special case for osf5.*.
81 * configure: Regenerate.
82
eb4556d7
JB
832004-05-02 Jim Blandy <jimb@redhat.com>
84
85 Move the symbol-file-from-memory functions into their own file.
86 * symfile-mem.c, symfile-mem.h: New files.
87 * symfile.c (symbol_file_add_from_bfd): New function.
88 (symbol_file_add): Call symbol_file_add_from_bfd.
89 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
90 Moved to symfile-mem.c.
91 (_initialize_symfile): Move definition of
92 add-symbol-file-from-memory command to symfile-mem.c.
93 * symfile.h (symbol_file_add_from_bfd): New declaration.
94 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
95 * config/powerpc/linux.mt (TDEPFILES): Same.
96 * Makefile.in (SFILES): Add symfile-mem.c.
97 (symfile_mem_h): New variable.
98 (HFILES_NO_SRCDIR): Add symfile-mem.h.
99 (symfile-mem.o): New rule.
100
80bb239e
AC
1012004-05-01 Andrew Cagney <cagney@redhat.com>
102
7789d0fa
AC
103 * breakpoint.c (insert_bp_location): Use get_frame_id, and
104 frame_find_by_id instead of frame_relative_level.
105 (do_enable_breakpoint): Ditto.
106 * thread.c: Update copyright.
107 (info_threads_command): Ditto, simplify.
108
80bb239e
AC
109 * frame.c (deprecated_generic_get_saved_register): Delete
110 function, moved to "xstormy16-tdep.c".
111 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
112 deprecated_generic_get_saved_register from "frame.c".
113 (xstormy16_frame_saved_register): Call
114 xstormy16_get_saved_register.
115 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
116 static.
117 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
118 * frame.h (deprecated_generic_get_saved_register): Delete.
119
b2a871dd
MC
1202004-05-01 Michael Chastain <mec.gnu@mindspring.com>
121
122 * dwarfread.c: Update documentation on the state of dwarf-1.
123
0e100dab
AC
1242004-05-01 Andrew Cagney <cagney@redhat.com>
125
acd8056e
AC
126 * stack.c (select_frame_command): Delete call to
127 frame_relative_level.
128 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
129 Delete #if0 code.
130 (frame_info): Do not print FRAMELESS.
131 (print_block_frame_labels): Replace DEPRECATED_STREQ.
132 (catch_info): Delete #if0 code.
133
0e100dab
AC
134 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
135 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
136 of frame_relative_level.
137 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
138 to SENTINEL_FRAME.
139 * frame.h (enum frame_type): Add SENTINEL_FRAME.
140 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
141 frame_relative_level.
142
55699d59
AC
143 * frame.h (deprecated_set_frame_type): Delete declaration.
144 * frame.c (deprecated_set_frame_type): Delete function, update
145 comments.
146
fcf70625
AC
147 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
148 * gdbarch.h, gdbarch.c: Re-generate.
149 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
150 (shnbsd_pc_in_sigtramp): Delete.
151 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
152 pc_in_sigtramp.
153 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
154 pc_in_sigtramp.
155 * frame.h: Update comments.
156 * ppc-linux-tdep.c: Update comments.
157 * breakpoint.c (bpstat_what): Update comments.
158
ac5eccb7
AC
159 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
160 m68klinux-tdep.o's dependencies, were previously added to
161 m68klinux-nat.o.
162
f2524b93
AC
163 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
164 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
165 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
166 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
167 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
168
17e20bce
AC
169 * Makefile.in (m68klinux-nat.o): Update dependencies.
170 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
171 (m68k_linux_sigtramp_frame_cache)
172 (m68k_linux_sigtramp_frame_this_id)
173 (m68k_linux_sigtramp_frame_prev_register)
174 (m68k_linux_sigtramp_frame_unwind)
175 (m68k_linux_sigtramp_frame_sniffer)
176 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
177 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
178 names, use trad-frame.h.
179 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
180 (struct m68k_sigtramp_info): Delete.
181 * m68k-tdep.c (m68k_sigtramp_frame_cache)
182 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
183 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
184 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
185 "m68klinux-tdep.c".
186
c8864fa2
AC
187 * infrun.c (check_sigtramp2): Delete check for
188 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
189
511dd2cd
MK
1902004-05-01 Mark Kettenis <kettenis@gnu.org>
191
192 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
193
8c6b0e06
AC
1942004-05-01 Andrew Cagney <cagney@redhat.com>
195
9df0bb3f
AC
196 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
197 (frv_linux_sigtramp_frame_cache)
198 (frv_linux_sigtramp_frame_this_id)
199 (frv_linux_sigtramp_frame_prev_register)
200 (frv_linux_sigtramp_frame_unwind)
201 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
202 include "linux" in function and variable names, directly call
203 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
204 the latest trad-frame code.
205 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
206 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
207 * Makefile.in (frv-linux-tdep.o): Update dependencies.
208 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
209 * frv-tdep.c (frv_sigtramp_frame_cache)
210 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
211 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
212 frv-linux-tdep.c.
213 (frv_gdbarch_init): Do not append a sigtramp sniffer.
214 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
215 (frv_set_sigcontext_reg_addr): Delete function.
216
8c6b0e06
AC
217 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
218 (DEPRECATED_SIGTRAMP_END): Delete.
219 * gdbarch.h, gdbarch.c: Re-generate.
220 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
221 * config/vax/tm-vaxbsd.h: Update copyright.
222 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
223 (DEPRECATED_IN_SIGTRAMP): Define.
224 * config/m68k/tm-nbsd.h: Update copyright.
225 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
226 (DEPRECATED_IN_SIGTRAMP): Define.
227
50ea7769
MK
2282004-05-01 Mark Kettenis <kettenis@gnu.org>
229
03ac2a74
MK
230 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
231 encondings. Fixes PR gdb/1628.
232
50ea7769
MK
233 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
234 DW_CFA_restore state without a matching DW_CFA_remember_state
235 instead of aborting. Fixes PR backtrace/1589.
236
9a5d7be1
JB
2372004-04-30 Joel Brobecker <brobecker@gnat.com>
238
239 * MAINTAINERS: Add self as AIX maintainer.
240 Update my e-mail address in write-after-approval section.
241
2593d1cd
AC
2422004-04-30 Andrew Cagney <cagney@redhat.com>
243
ce12bbf9
AC
244 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
245 (legacy_get_prev_frame): Ditto.
246
36710c63
AC
247 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
248 (mips_gdbarch_init): Do not set pc_in_sigtramp.
249 * mipsread.c (sigtramp_address): Delete extern variable.
250 (mipscoff_new_init): Delete reference.
251 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
252 (fixup_sigtramp): Delete function.
253 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
254 (fixup_sigtramp): Delete declarations.
255
2593d1cd
AC
256 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
257 deprecated_pc_in_sigtramp.
258 (ppcnbsd_pc_in_sigtramp): Delete function.
259
2a25f91c
MK
2602004-05-01 Mark Kettenis <kettenis@gnu.org>
261
262 * config/m68k/nm-nbsd.h: Tweak comments.
263 * config/m68k/nm-nbsdaout.h: Likewise.
264
0b281939
AC
2652004-04-30 Andrew Cagney <cagney@redhat.com>
266
267 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
268 legacy_pc_in_sigtramp.
269 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
270
8f2d3ea0
MK
2712004-05-01 Mark Kettenis <kettenis@gnu.org>
272
273 Add OpenBSD/m68k support.
274 * NEWS (New native configurations): Mention OpenBSD/m68k.
275 * m68kbsd-tdep.c: New file.
276 * m68kbsd-nat.c: New file.
277 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
278 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
279 * configure.host: Add m68k-*-openbsd.
280 * configure.tgt: Add m68k-*-openbsd.
281 * config/m68k/tm-obsd.h: New file.
282 * config/m68k/obsd.mt: New file.
283 * config/m68k/obsd.mh: New file.
284 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
285 m68kbsd-tdep.c.
286
c40f49a4
AC
2872004-04-30 Andrew Cagney <cagney@redhat.com>
288
289 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
290 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
291
e81554cd
MK
2922004-04-30 Mark Kettenis <kettenis@gnu.org>
293
294 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
295 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
296
d4dc1a91
BF
2972004-04-30 Brian Ford <ford@vss.fsi.com>
298
299 Revert 2004-04-16 change.
300 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
301 (i386_coff_init_abi): Remove.
302 * i386-tdep.h (i386_coff_init_abi): Remove.
303 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
304
2f72f850
AC
3052004-04-30 Andrew Cagney <cagney@redhat.com>
306
e492f9d6
AC
307 * blockframe.c (find_pc_partial_function): Delete use of
308 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
309 DEPRECATED_SIGTRAMP_END.
310
7b7adad0
AC
311 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
312 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
313 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
314 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
315 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
316
2f72f850
AC
317 * defs.h (deprecated_inside_entry_file): Delete declaration.
318 * blockframe.c (deprecated_inside_entry_file): Delete function.
319 (legacy_frame_chain_valid): Delete call.
320 * sh64-tdep.c (sh64_frame_chain): Delete call.
321 * objfiles.h: Update comments.
322 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
323 call.
324 * frame.c (get_prev_frame): Delete call, update comments.
325
283f90a7
BF
3262004-04-30 Brian Ford <ford@vss.fsi.com>
327
328 * MAINTAINERS (Write After Approval): Add myself.
329
8ee56bcf
AC
3302004-04-30 Andrew Cagney <cagney@redhat.com>
331
332 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
333 * gdbarch.h, gdbarch.c: Re-generate.
334 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
335 code.
336
ee27e1b6
AC
3372004-04-30 Andrew Cagney <cagney@redhat.com>
338
339 * gdb-events.sh (selected_thread_changed)
340 (selected_frame_level_changed, target_changed): Delete.
341 * gdb-events.h, gdb-events.c: Re-generate.
342 * valops.c (value_assign): Update.
343 * stack.c (select_frame_command, up_silently_base)
344 (down_silently_base): Update.
345
d5ac5a39
AC
3462004-04-29 Andrew Cagney <cagney@redhat.com>
347
348 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
349 registers correctly.
350 (print_gp_register_row, mips32_heuristic_proc_desc)
351 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
352 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
353 references to mips_isa_regsize.
354
ceae6e75
AC
3552004-04-29 Andrew Cagney <cagney@redhat.com>
356
357 * mips-tdep.c (struct gdbarch_tdep): Delete
358 mips_fp_register_double.
359 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
360 mips_abi_regsize.
361 (mips_gdbarch_init): Do not set mips_fp_register_double.
362 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
363
a587af0b
AC
3642004-04-29 Joel Brobecker <brobecker@gnat.com>
365
366 Committed by Andrew Cagney.
367 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
368 function calls.
369
13326b4e
AC
3702004-04-29 Andrew Cagney <cagney@redhat.com>
371
372 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
373 gdbarch, use mips_abi, update callers.
374 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
375 mips_abi_regsize, update callers.
376 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
377 mips_default_abi_regsize.
378 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
379 mips_default_abi_regsize.
380
711cc5cd
AC
3812004-04-29 Andrew Cagney <cagney@redhat.com>
382
1b13c4f6
AC
383 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
384 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
385 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
386 mips_default_abi_regsize.
387 (mips_isa_regsize): Rename mips_regisze.
388 * mipsnbsd-tdep.c: Update.
389 * mips-linux-tdep.c: Update.
390 * irix5-nat.c: Update.
391 * mips-tdep.h (mips_isa_regsize): Update.
392
711cc5cd
AC
393 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
394 Delete all disabled code.
395 * gdb-events.h, gdb-events.c: Re-generate.
396
e63bbc88
MK
3972004-04-19 Jerome Guitton <guitton@gnat.com>
398 Mark Kettenis <kettenis@gnu.org>
399
400 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
401 the function begins with a branch instruction.
402
fd35795f
MK
4032004-04-29 Mark Kettenis <kettenis@gnu.org>
404
405 * i386-tdep.c: Fix spelling mistakes.
406
c960c18f
AC
4072004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
408 Andrew Cagney <cagney@redhat.com>
409
410 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
411 <sys/proc.h>.
412 * acconfig.h: Provide default _KMEMUSER value.
413 * config.in, configure: Re-generate.
414 * NEWS: Mention fix.
415
50306a9d
RC
4162004-04-24 Randolph Chung <tausq@debian.org>
417
418 * configure.host (hppa*-*-linux*): New target.
419 * configure.tgt (hppa*-*-linux*): Likewise.
420 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
421 gdbarch_init_osabi() call earlier so that osabi-specific frame
422 unwinders can be registered first.
423 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
424 hppa-linux-nat.c.
425 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
426 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
427 * config/pa/linux.mh: New file.
428 * config/pa/linux.mt: New file.
429 * config/pa/nm-linux.h: New file.
430 * config/pa/xm-linux.h: New file.
431 * hppa-linux-nat.c: New file.
432 * hppa-linux-tdep.c: New file.
433
2a6228ef
RC
4342004-04-28 Randolph Chung <tausq@debian.org>
435
436 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
437 return values.
438 (hppa32_push_dummy_call): Fix small struct and floating point argument
439 passing, and make sure the stack frame is properly aligned.
440
82c10df6
AC
4412004-04-28 Andrew Cagney <cagney@redhat.com>
442
d762c46a
AC
443 * stack.c (print_stack_frame): Fix description.
444
82c10df6
AC
445 * NEWS: Mention gdb/gdbserver/configure execute permission
446 changed. PR server/519.
447
0faf0076
AC
4482004-04-28 Andrew Cagney <cagney@redhat.com>
449
450 * stack.c (print_stack_frame_stub): Delete declaration.
451 (struct print_stack_frame_args, print_stack_frame)
452 (print_frame_info, print_frame): Replace "source" with print what.
453 Replace "print" with "print_level". Replace "args" with
454 "print_args".
455 * frame.h (show_and_print_stack_frame, print_stack_frame)
456 (print_frame_info): Update declarations.
457 * stack.c (select_and_print_frame, frame_command)
458 (current_frame_command, up_command, down_command): Update calls -
459 use get_selected_frame, pass "enum print_what" for source, do not
460 call frame_relative_level.
461 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
462 * remote-rdp.c (remote_rdp_open): Ditto.
463 * remote-mips.c (common_open): Ditto.
464 * remote-e7000.c (e7000_start_remote): Ditto.
465 * ocd.c (ocd_start_remote): Ditto.
466 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
467 * infrun.c (normal_stop): Ditto.
468 * inflow.c (kill_command): Ditto.
469 * infcmd.c (finish_command): Ditto.
470 * corelow.c (core_open): Ditto.
471 * tracepoint.c (finish_tfind_command): Ditto.
472 * thread.c (info_threads_command, info_threads_command)
473 (restore_current_thread, do_captured_thread_select): Ditto.
474 * ada-tasks.c (task_command): Ditto.
475
f4c5303c
OF
4762004-04-26 Orjan Friberg <orjanf@axis.com>
477
478 * frame.c: Include "observer.h".
479 (frame_observer_target_changed): New function.
480 (_initialize_frame): Attach target_changed observer.
481 * regcache.c: Include "observer.h".
482 (regcache_observer_target_changed): New function.
483 (_initialize_regcache): Attach target_changed observer.
484 * valops.c: Include "observer.h".
485 (value_assign): Notify target_changed event when modifying register.
486 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
487
7270d8f2
OF
4882004-04-26 Orjan Friberg <orjanf@axis.com>
489
490 From Paul Koning <pkoning@equallogic.com>:
491 * breakpoint.c (free_valchain): New function.
492 (insert_bp_location, delete_breakpoint): Use free_valchain.
493 (remove_breakpoint): Do not remove the valchain.
494 (bpstat_stop_status): If not stopped by watchpoint, skip
495 watchpoints when generating stop status list.
496 * infrun.c (handle_inferior_event): Make
497 stepped_after_stopped_by_watchpoint a global variable.
498 * remote.c (remote_stopped_data_address): Return watch data
499 address rather than zero if stepped_after_stopped_by_watchpoint is
500 set.
501
02d62932
MC
5022004-04-25 Michael Chastain <mec.gnu@mindspring.com>
503
504 Fix PR gdb/1626.
505 * configure.in: Check for curses after termcap.
506 On osf5.*, do not check for ncurses.
507 * configure: Regenerate.
508
3e9a183c
MK
5092004-04-25 Mark Kettenis <kettenis@gnu.org>
510
c79ac407
MK
511 * ppcobsd-nat.c: Include "ppc-tdep.h".
512 * Makefile.in (ppcobsd-nat.o): Update dependencies.
513
3e9a183c
MK
514 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
515 Fixes PR tdep/1623 and PR tdep/1624.
516
38cc9c28
MC
5172004-04-24 Michael Chastain <mec.gnu@mindspring.com>
518
519 * xmodem.h, xmodem.c: Remove files.
520 * Makefile.in: Remove references to xmodem.h, xmodem.c.
521
7f07c5b6
RC
5222004-04-23 Randolph Chung <tausq@debian.org>
523
524 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
525 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
526 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
527 for handling stackless frames.
528 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
529
9f7194c3
RC
5302004-04-23 Randolph Chung <tausq@debian.org>
531
532 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
533 starts at a pc before the frame is created.
534
dcff6009
JB
5352004-04-23 Joel Brobecker <brobecker@gnat.com>
536
537 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
538
65951cd9
JG
5392004-04-23 Jerome Guitton <guitton@gnat.fr>
540
541 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
542 use convert_typed_floating to get the appropriate format.
543
abc485a1
RC
5442004-04-22 Randolph Chung <tausq@debian.org>
545
546 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
547 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
548 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
549 (hppa_sign_extend): Add prototype.
550 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
551 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
552 (sign_extend): Rename with hppa_ prefix and make non-static. Other
553 hppa targets will also use these functions.
554 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
555 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
556 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
557 (hppa_gdbarch_init): Remove gdbarch setting of
558 skip_trampoline_code, in_solib_call_trampoline and
559 in_solib_return_trampoline.
560 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
561 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
562 hppa_in_solib_call_trampoline.
563 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
564 Moved from hppa-tdep.c.
565 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
566 in_solib_call_trampoline and in_solib_return_trampoline.
567
369aa520
RC
5682004-04-22 Randolph Chung <tausq@debian.org>
569
570 * hppa-tdep.c (hppa_debug): New variable.
571 (find_unwind_entry, hppa_frame_cache): Add debug output.
572 (_initialize_hppa_tdep): Add command to set debug flag.
573
476be15e
AC
5742004-04-22 Andrew Cagney <cagney@redhat.com>
575
576 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
577 "trad-frame.h".
578 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
579 signal trampoline unwinder.
580 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
581
d195bc9f
MK
5822004-04-22 Mark Kettenis <kettenis@gnu.org>
583
584 Add OpenBSD/powerpc support.
585 * NEWS (New native configurations): Mention OpenBSD/powerpc.
586 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
587 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
588 (ppc_collect_fpregset): New prototypes.
589 * ppcobsd-nat.c: New file.
590 * ppcobsd-tdep.c: New file.
591 * ppcobsd-tdep.h: New file.
592 * rs6000-tdep.c: Include "regset.h".
593 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
594 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
595 New functions.
596 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
597 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
598 (rs6000-tdep.o): Update dependencies.
599 * configure.host: Add powerpc-*-openbsd.
600 * configure.tgt: Add powerpc-*-openbsd.
601 * config/powerpc/obsd.mh: New file.
602 * config/powerpc/nm-obsd.h: New file.
603 * config/powerpc/obsd.mt: New file.
604
6f14cc33
AC
6052004-04-22 Andrew Cagney <cagney@redhat.com>
606
fcf29e5f
AC
607 * frame.h (show_frame_info): Delete declaration.
608
6f14cc33
AC
609 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
610 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
611 * m32r-tdep.c (m32r_frame_this_id): Ditto.
612 * frv-tdep.c (frv_frame_this_id): Ditto.
613 * avr-tdep.c (avr_frame_this_id): Ditto.
614
e5786a5c
EZ
6152004-04-22 Elena Zannoni <ezannoni@redhat.com>
616
617 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
618
26e75e5c
JB
6192004-04-22 Jim Blandy <jimb@redhat.com>
620
621 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
622 register number zero.
623
d8d65dd3
MS
6242004-04-21 Michael Snyder <msnyder@redhat.com>
625
626 * mips-tdep.c (heuristic_proc_start):
627 Warning() already prefixes "Warning: ".
628
9a4105ab
AC
6292004-04-21 Andrew Cagney <cagney@redhat.com>
630
631 * annotate.h (deprecated_annotate_starting_hook)
632 (deprecated_annotate_stopped_hook)
633 (deprecated_annotate_exited_hook)
634 (deprecated_annotate_signal_hook)
635 (deprecated_annotate_signalled_hook): Deprecate.
636 * tracepoint.h (deprecated_create_tracepoint_hook)
637 (deprecated_delete_tracepoint_hook)
638 (deprecated_modify_tracepoint_hook)
639 (deprecated_trace_find_hook)
640 (deprecated_trace_start_stop_hook): Deprecate.
641 * target.h (deprecated_target_new_objfile_hook): Deprecate.
642 * remote.h (deprecated_target_resume_hook)
643 (deprecated_target_wait_loop_hook): Deprecate.
644 * gdbcore.h (deprecated_exec_file_display_hook)
645 (deprecated_file_changed_hook): Deprecate.
646 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
647 * defs.h (deprecated_modify_breakpoint_hook)
648 (deprecated_command_loop_hook, deprecated_show_load_progress)
649 (deprecated_print_frame_info_listing_hook)
650 (deprecated_query_hook, deprecated_warning_hook)
651 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
652 (deprecated_delete_breakpoint_hook)
653 (deprecated_interactive_hook, deprecated_registers_changed_hook)
654 (deprecated_readline_begin_hook, deprecated_readline_hook)
655 (deprecated_readline_end_hook, deprecated_register_changed_hook)
656 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
657 (deprecated_context_hook, deprecated_target_wait_hook)
658 (deprecated_attach_hook, deprecated_detach_hook)
659 (deprecated_call_command_hook, deprecated_set_hook)
660 (deprecated_error_hook, deprecated_error_begin_hook)
661 (deprecated_ui_load_progress_hook): Deprecate.
662 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
663 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
664 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
665 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
666 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
667 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
668 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
669 * annotate.c, aix-thread.c: Update.
670
62cf13cc
AC
6712004-04-21 Andrew Cagney <cagney@redhat.com>
672
b2e31a62
AC
673 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
674 * vaxnbsd-tdep.c: Include "gdb_string.h".
675
62cf13cc
AC
676 * symfile.c (symbol_file_add_from_memory): #if 0 function.
677 (add_symbol_file_from_memory_command): #if 0 function body, call
678 error instead.
679
00e32a35
AC
6802004-04-21 Andrew Cagney <cagney@redhat.com>
681
682 * gdbcore.h: Update copyright.
683 (deprecated_add_core_fns): Rename add_core_fns.
684 * win32-nat.c (_initialize_core_win32): Update.
685 * sun3-nat.c (_initialize_core_sun3): Update.
686 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
687 * rs6000-nat.c (_initialize_core_rs6000): Update.
688 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
689 * nto-tdep.c (_initialize_nto_tdep): Update.
690 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
691 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
692 * mips-nat.c (_initialize_core_mips): Update.
693 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
694 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
695 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
696 * lynx-nat.c (_initialize_core_lynx): Update.
697 * irix5-nat.c (_initialize_core_irix5): Update.
698 * i386-interix-nat.c (_initialize_core_interix): Update.
699 * cris-tdep.c (_initialize_cris_tdep): Update.
700 * corelow.c (deprecated_add_core_fns): Update.
701 * core-regset.c (_initialize_core_regset): Update.
702 * core-aout.c (_initialize_core_aout): Update.
703 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
704 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
705 * alpha-nat.c (_initialize_core_alpha): Update.
706
13c7b1ca
JB
7072004-04-21 Jim Blandy <jimb@redhat.com>
708
709 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
710
7b5a2f43
DJ
7112004-04-19 Daniel Jacobowitz <drow@mvista.com>
712
713 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
714 Delete.
715 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
716 (read_attribute_value): Update calls to dwarf_alloc_block.
717 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
718 dwarf2_tmp_obstack.
719 (psymtab_to_symtab_1): Likewise. Clean up using
720 free_stack_comp_unit.
721 (add_to_cu_func_list): Use the comp_unit_obstack.
722
05cf31d1
JB
7232004-04-19 Joel Brobecker <brobecker@gnat.com>
724
725 * dwarf2read.c (dwarf2_flag_true_p): New function.
726 (die_is_declaration): Use the function above. Add some comments.
727
adf93a2f
MK
7282004-04-19 Mark Kettenis <kettenis@gnu.org>
729
730 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
731 architecture when registering sparcnbsd_core_osabi_sniffer.
732 Adjust comment.
733
748894bf
MK
7342004-04-18 Mark Kettenis <kettenis@gnu.org>
735
f622ad42
MK
736 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
737 return value.
738
c4fc7f1b
MK
739 Based on a patch from Brian Ford <ford@vss.fsi.com>:
740 * i386-tdep.c: Correct register numbering scheme comments
741 throughout.
742 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
743 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
744 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
745 (i386_gdb_arch_init): Likewise.
746
b4ead1bd
MK
747 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
748 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
749 ppcnbsd-tdep.o.
750
748894bf
MK
751 * m68k-tdep.h: Tweak comments.
752 * m68k-tdep.c: Tweak comment.
753
fdd72f95
RC
7542004-04-17 Randolph Chung <tausq@debian.org>
755
756 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
757 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
758 (hppa_hpux_som_init_abi): Set is_elf to 0.
759 (hppa_hpux_elf_init_abi): Set is_elf to 1.
760 * hppa-tdep.c (low_text_segment_address): Remove global.
761 (record_text_segment_lowaddr): Pass in low address as parameter. Use
762 section offset to calculate segment address.
763 (internalize_unwinds): Define low_text_segment_address as local and
764 pass to record_text_segment_lowaddr for ELF targets.
765 (hppa_gdbarch_init): Zero fill tdep structure.
766 (hppa_dump_tdep): Print tdep structure.
767 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
768
0f8d9d59
RC
7692004-04-17 Randolph Chung <tausq@debian.org>
770
771 * hppa-tdep.c (hppa_pseudo_register_read): Define.
772 (hppa_gdbarch_init): Set pseudo_register_read.
773 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
774 * regcache.c (supply_register): Remove check for
775 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
776
7c46b9fb
RC
7772004-04-17 Randolph Chung <tausq@debian.org>
778
779 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
780 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
781 (hpread_adjust_stack_address): Move to hpread.c.
782 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
783 obj_private_struct): Move from tm-hppa.h.
784 * hpread.c (hppa-tdep.h): Include.
785 (hpread_adjust_stack_address): Move from hppa-tdep.c.
786 (hpread_read_function_type, hpread_read_doc_function_type)
787 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
788 directly.
789 * pa64solib.c (hppa-tdep.h): Include.
790 * somsolib.c (hppa-tdep.h): Include.
791 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
792 inferior_status): Remove unused forward declarations.
793 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
794 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
795 obj_private_struct): Move to hppa-tdep.h.
796 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
797
8d153463
RC
7982004-04-17 Randolph Chung <tausq@debian.org>
799
800 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
801 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
802 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
803 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
804 Remove forward declaration and make static.
805 (hppa_reg_struct_has_addr): Remove.
806
350c2e5b
JB
8072004-04-16 Joel Brobecker <brobecker@gnat.com>
808
809 * observer.sh: Move comments in sed command to first column.
810
bbde78fa
JM
8112004-04-16 Jason Molenda (jmolenda@apple.com)
812
813 * frame.c: Minor typeo corrections in comments.
814
e0270fd9
JB
8152004-04-16 Joel Brobecker <brobecker@gnat.com>
816
817 * observer.c (observer_test_first_notification_function): Update
818 function profile.
819 (observer_test_second_notification_function): Likewise.
820 (observer_test_third_notification_function): Likewise.
821
3d049254
MK
8222004-04-16 Mark Kettenis <kettenis@gnu.org>
823
824 From Brian Ford <ford@vss.fsi.com>:
825 * i386-tdep.c (i386_coff_init_abi): New function.
826 * i386-tdep.h (i386_coff_init_abi): New prototype.
827 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
828 register number translation functions for DWARF and DWARF 2.
829
7867684d
JB
8302004-04-16 Joel Brobecker <brobecker@gnat.com>
831
832 * dwarf2read.c: Back out my previous change, it was incorrect.
833
72bf9492
DJ
8342004-04-16 Daniel Jacobowitz <drow@mvista.com>
835
836 * dwarf2read.c: Include "hashtab.h".
837 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
838 has_namespace_info.
839 (struct partial_die_info): Add comments. Use bitfields to reduce
840 memory footprint. Add scope, scope_set, has_specification,
841 spec_offset, die_parent, die_child, and die_sibling.
842 (peek_die_abbrev): Add prototype.
843 (partial_read_comp_unit_head): New function, broken out from
844 dwarf2_build_psymtabs_hard.
845 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
846 Use partial_read_comp_unit_head. Initialize the CU and
847 comp_unit_obstack. Update calls to read_partial_die and
848 scan_partial_symbols. Use free_stack_comp_unit and
849 load_partial_dies.
850 (scan_partial_symbols): Change PDI to a pointer. Use the child and
851 sibling pointers to walk partial DIEs. Call fixup_partial_die.
852 Update calls to helper functions. Remove NAMESPACE argument.
853 Update comments.
854 (partial_die_parent_scope, partial_die_full_name): New functions.
855 (add_partial_symbol): Remove namespace argument. Update call to
856 pdi_needs_namespace. Use partial_die_full_name. Handle
857 DW_TAG_namespace. Check has_namespace_info flag.
858 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
859 tag. Handle namespaces.
860 (add_partial_namespace, add_partial_enumeration): Simplify.
861 (guess_structure_name): New function, derived from
862 add_partial_structure.
863 (add_partial_structure): Remove.
864 (determine_class_name): Update comment.
865 (dwarf2_read_abbrevs): Set has_namespace_info flag.
866 (is_type_tag_for_partial, load_partial_dies): New functions.
867 (read_partial_die): Pass abbrev and abbrev_len as arguments.
868 Record specifications instead of following them immediately.
869 (find_partial_die_in_comp_unit, find_partial_die)
870 (fixup_partial_die, free_stack_comp_unit)
871 (hashtab_obstack_allocate, dummy_obstack_deallocate)
872 (partial_die_hash, partial_die_eq): New functions.
873 * Makefile.in (hashtab_h): Define.
874 (dwarf2read.o): Update dependencies.
875 (observer_inc, observer_h): Move to the correct section.
876
fdc860a3
JB
8772004-04-15 Joel Brobecker <brobecker@gnat.com>
878
879 * dwarf2read.c (dwarf2_attribute_true_p): New function.
880 (die_is_declaration): Use the function above. Add comment.
881
dc718098
JB
8822004-04-15 Joel Brobecker <brobecker@gnat.com>
883
884 * dwarf2read.c (read_structure_scope): Identify stub types
885 using die_is_declaration() only.
886
8718a420
RM
8872004-04-15 Roland McGrath <roland@redhat.com>
888
889 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
890 argument instead of NAME.
891 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
892 in call to symbol_file_add_with_addrs_or_offsets.
893 (build_addr_info): New function, helper for ...
894 (symbol_file_add_from_memory): New function.
895 (add_symbol_file_from_memory_command): New function using that.
896 (_initialize_symfile): Register it for add-symbol-file-from-memory.
897 (pre_add_symbol_hook): Add const to argument type.
898 * symfile.h (symbol_file_add_from_memory): Declare it.
899
8b910bab
MK
9002004-04-15 Mark Kettenis <kettenis@gnu.org>
901
9f076e7a
MK
902 * NEWS (New native configurations): Mention OpenBSD/vax.
903 * configure.host: Add vax-*-openbsd*.
904 * config/vax/obsd.mh: New file.
905 * config/vax/nm-obsd.h: New file.
906
8b910bab
MK
907 * vax-tdep.c: Include "regset.h".
908 (vax_supply_gregset): New function.
909 (vax_gregset): New variable.
910 (vax_regset_from_core_section): New function.
911 (vax_gdbarch_init): Set regset_from_core_section.
912 * Makefile.in (vax-tdep.o): Update dependencies.
913
7a464420
AC
9142004-04-15 Andrew Cagney <cagney@redhat.com>
915
916 * observer.c (normal_stop_subject, observer_notify_normal_stop)
917 (observer_normal_stop_notification_stub)
918 (observer_attach_normal_stop, observer_detach_normal_stop):
919 Delete, replaced by #include "observer.inc".
920 * infrun.c (normal_stop): Pass "stop_bpstat" to
921 observer_notify_normal_stop.
922 * Makefile.in (observer_inc): Define.
923 (observer.o): Update dependencies.
924 (observer.h, observer.inc): New rules.
925 * observer.h: Delete file.
926 * observer.sh: New file.
927
e36ad527
MK
9282004-04-15 Mark Kettenis <kettenis@gnu.org>
929
930 * vax-tdep.c (vax_frame_cache): Fix typo.
931
67b441e1
MK
9322004-04-14 Mark Kettenis <kettenis@gnu.org>
933
6f606e1c
MK
934 * NEWS (New native configurations): Mention NetBSD/vax.
935 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
936 * config/vax/nbsdelf.mh: New file.
937 * config/vax/nbsdaout.mh: New file.
938 * config/vax/nm-nbsd.h: New file.
939 * config/vax/nm-nbsdaout.h: New file.
940
9c5519a5
MK
941 * vaxnbsd-tdep.c: New file.
942 * Makefile.in (vaxnbsd-tdep.o): New dependency.
943 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
944 * config/vax/nbsd.mt: New file.
945 * config/vax/tm-nbsd.h: New file.
946
4844a614
MK
947 * Makefile.in (vaxbsd-nat.o): New dependency.
948
67b441e1
MK
949 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
950 * vax-tdep.c (vax_store_arguments): Remove struct_return and
951 struct_addr arguments. Don't push return value address.
952 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
953 arguments to vax_store_arguments. Store return value address in
954 R1.
955 (vax_store_struct_return, vax_extract_return_value)
956 (vax_store_return_value): Remove functions.
957 (vax_return_value): New function.
958 (vax_gdbarch_init): Set return value. Don't set
959 deprecated_store_struct_return, deprecated_extract_struct_return
960 and deprecated_store_return_value.
961
6672f2ae
AS
9622004-04-14 Andreas Schwab <schwab@suse.de>
963
964 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
965 value buffer.
966 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
967
7346c184
MK
9682004-04-14 Mark Kettenis <kettenis@gnu.org>
969
970 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
971 (vax_unwind_dummy_id): New functions.
972 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
973 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
974 variables.
975 (vax_fix_call_dummy): Remove function.
976 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
977 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
978 call_dummy_location, deprecated_call_dummy_words,
979 deprecated_sizeof_call_dummy_words,
980 deprecated_call_dummy_breakpoint_offset,
981 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
982 and deprecated_dummy_write_sp.
983
58e23df4
DC
9842004-04-13 David Carlton <carlton@kealia.com>
985
986 * MAINTAINERS: Move myself to "paper trail" section.
987
5e6b39ff
MK
9882004-04-12 Mark Kettenis <kettenis@gnu.org>
989
7def7fef
MK
990 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
991 "trad-frame.h".
992 (vax_frame_init_saved_regs): Remove function.
993 (vax_sigtramp_saved_pc): Remove function.
994 (vax_frame_saved_pc): Remove function.
995 (vax_frame_args_address): Remove function.
996 (vax_frame_num_args): Rewrite.
997 (vax_frame_chain): Remove function.
998 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
999 VAX_FP_REGNUM.
1000 (vax_pop_frame): Likewise.
1001 (vax_saved_pc_after_call): Remove function.
1002 (struct vax_frame_cache): New structure.
1003 (vax_frame_cache): New function.
1004 (vax_frame_this_id): New function.
1005 (vax_frame_prev_register): New function.
1006 (vax_frame_unwind): New variable.
1007 (vax_frame_sniffer): New function.
1008 (vax_frame_base_address): New function.
1009 (vax_frame_args_address): New function.
1010 (vax_frame_base): New variable.
1011 (vax_unwind_pc): New function.
1012 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
1013 deprecated_fp_regnum, deprecated_saved_pc_after_call,
1014 deprecated_frame_chain, deprecated_frame_saved_pc,
1015 deprecated_frame_args_address and
1016 deprecated_frame_init_saved_regs.
1017 * Makefile.in (vax-tdep.o): Update dependencies.
1018
53284fc1
MK
1019 * vaxbsd-nat.c: New file.
1020
5e6b39ff
MK
1021 * vax-tdep.h: Update copyright year. Adjust comments.
1022 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
1023 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
1024 (vax_regnum): New enum. Replacing...
1025 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
1026 (VAX_PS_REGNUM): ... these removed macros.
1027 * vax-tdep.c (vax_register_name): Remove prototype.
1028 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
1029 (vax_register_byte, vax_register_raw_size,
1030 vax_register_virtual_size, vax_register_virtual_type): Remove
1031 functions.
1032 (vax_register_type): New function.
1033 (vax_breakpoint_from_pc): Reorganize.
1034 (vax_gdbarch_init): Set register_type. Don't set
1035 deprecated_register_size, deprecated_register_bytes,
1036 deprecated_register_byte, deprecated_register_raw_size,
1037 deprecated_max_register_raw_size,
1038 deprecated_register_virtual_size,
1039 deprecated_max_register_virtual_size and
1040 deprecated_register_virtual_type. Add comment on stack direction.
1041
e9c71e9f
MK
10422004-04-11 Mark Kettenis <kettenis@gnu.org>
1043
1044 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
1045 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 1046 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 1047
d46f1176 10482004-04-10 Randolph Chung <tausq@debian.org>
8718a420 1049
d46f1176
RC
1050 * MAINTAINERS (write after approval): Add myself.
1051
a2a84a72
RC
10522004-04-07 Randolph Chung <tausq@debian.org>
1053
1054 * hppa-tdep.c (hppa_inner_than): Remove.
1055 (is_pa_2): Remove unused static variable.
8718a420 1056 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 1057
e85c3284
PH
10582004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
1059
1060 * language.h (language_defn): Add new la_post_parser field.
1061 * parser-defs.h (null_post_parser): New declaration (default for
1062 la_post_parser).
8718a420 1063
e85c3284
PH
1064 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
1065 insert call to that function.
1066 (parse_exp_in_context): New function, including code formerly in
8718a420 1067 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
1068 prefixification.
1069 (parse_expression_in_context): New exported function.
1070 (null_post_parser): New definition.
1071 * expression.h (parse_expression_in_context): Add declaration.
8718a420 1072
e85c3284
PH
1073 * p-lang.c (pascal_language_defn): Add trivial post-parser.
1074 * c-lang.c (c_language_defn): Ditto.
1075 (cplus_language_defn): Ditto.
1076 (asm_language_defn): Ditto.
1077 (minimal_language_defn): Ditto.
1078 * f-lang.c (f_language_defn): Ditto.
1079 * jv-lang.c (java_language_defn): Ditto.
1080 * language.c (unknown_language_defn): Ditto.
1081 (auto_language_defn): Ditto.
1082 (local_language_defn): Ditto.
1083 * m2-lang.c (m2_language_defn): Ditto.
1084 * scm-lang.c (scm_language_defn): Ditto.
1085 * obj-lang.c (objc_language_defn): Ditto.
8718a420 1086
d9f8c85b
MK
10872004-04-10 Mark Kettenis <kettenis@gnu.org>
1088
fa34704a
MK
1089 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
1090 (amd64nbsd_mcontext_addr): New function.
1091 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
1092 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
1093 with amd64nbsd_r_reg_offset, instead of building it on the fly.
1094
403e1656
MK
1095 * corelow.c (core_xfer_partial): Fix coding standards violation.
1096 Add support for TARGET_OBJECT_WCOOKIE.
1097
a57e5a95
MK
1098 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
1099 deprecated_pc_in_sigtramp.
1100 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
1101 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
1102 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
1103 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
1104 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
1105 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
1106 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
1107
377d9ebd
MK
1108 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
1109 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
1110 Fix typo.
1111
f0ef85a5
MK
1112 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
1113 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
1114 (amd64_collect_fxsave): Likewise.
1115
d9f8c85b
MK
1116 * i386-sol2-tdep.c: Include "gdb_string.h".
1117 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
1118 name.
1119 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
1120
75f501b5
MK
11212004-04-10 Mark Kettenis <kettenis@gnu.org>
1122
1123 * i386-sol2-tdep.c: Include "solib-svr4.h".
1124 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
1125 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
1126 * config/i386/tm-i386sol2.h: Include :solib.h".
1127 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
1128 solib-svr4.o and solib-legacy.o.
1129 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
1130 solib-svr4.o.
1131
b31bc724
MK
11322004-04-09 Mark Kettenis <kettenis@gnu.org>
1133
18bbbd9e
MK
1134 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
1135 whether a register is supplied by PTRACE_GETFPREGS.
1136 (store_inferior_registers): Likewise.
1137 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
1138 whether a register is supplied by PT_GETFPREGS.
1139 (store_inferior_registers): Likewise.
1140
3c30bf1b
MK
1141 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
1142 * config/i386/linux64.mt (TDEPFILES): Likewise.
1143
a4194092
MK
1144 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
1145
911bc6ee
MK
1146 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
1147 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
1148 the program counter is in the range specified by `struct
1149 gdbarch_tdep'.
1150 * amd64-linux-tdep.c: Include "symtab.h".
1151 (amd64_linux_pc_in_sigtramp): Remove function.
1152 (amd64_linux_sigtramp_p): New function.
1153 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
1154 deprecated_pc_in_sigtramp.
1155 * amd64nbsd-tdep.c: Include "symtab.h".
1156 (amd64nbsd_sigtramp_p): New function.
1157 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
1158 deprecated_pc_in_sigtramp.
1159 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
1160 few comments.
1161 (amd64obsd_pc_in_sigtramp): Remove function.
1162 (amd64obsd_sigtramp_p): New function.
1163 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
1164 deprecated_pc_in_sigtramp.
1165 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
1166 (i386bsd_pc_ins_sigtramp): Remove prototype.
1167 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
1168 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
1169 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
1170 the program counter is in the range specified by `struct
1171 gdbarch_tdep'.
1172 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
1173 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
1174 (i386_go32_pc_in_sigtramp): Remove function.
1175 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
1176 Initialize TDEP->sigtramp_p.
1177 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
1178 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
1179 deprecated_pc_in_sigtramp.
1180 * i386-linux-tdep.c: Adjust comments.
1181 (i386_linux_pc_in_sigtramp): Remove function.
1182 (i386_linux_sigtramp_p): New function.
1183 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
1184 deprecated_pc_in_sigtramp.
1185 * i386-nto-tdep.c: Update copyright year.
1186 (i386nto_pc_in_sigtramp): Remove function.
1187 (i386nto_sigtramp_p): New function.
1188 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
1189 SP_REGNUM.
1190 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
1191 deprecated_pc_in_sigtramp.
1192 * i386-sol2-tdep.c: Update copyright year.
1193 (i386_sol2_pc_in_sigtramp): Remove function.
1194 (i386_sol2_sigtramp_p): New function.
1195 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
1196 deprecated_pc_in_sigtramp.
1197 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
1198 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
1199 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
1200 deprecated_sigtramp_start and deprecated_sigtramp_end.
1201 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
1202 (i386nbsd_pc_in_sigtramp): Remove function.
1203 (i386nbsd_sigtramp_p): New function.
1204 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
1205 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
1206 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
1207 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
1208 (i386obsd_pc_in_sigtramp): Remove function.
1209 (i386obsd_sigtramp_p): New function.
1210 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
1211 functions.
1212 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
1213 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
1214 TDEP->sigtramp_p.
1215 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
1216 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
1217 dependencies.
1218
e083e6ec
MK
1219 * config/i386/i386aout.mt: Remove file.
1220
bd153b94
MK
1221 * configure.tgt: Remove i[34567]86-*-go32*,
1222 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
1223 and i[34567]86-*-isc*. Set gdb_target to i386 for
1224 i[34567]86-*-netware* and i[34567]86-*-*.
1225 * config/i386/i386.mt: New file.
1226 * config/i386/embed.mt: Remove file.
1227 * config/i386/go32.mt: Remove file.
1228 * config/i386/i386nw.mt: Remove file.
1229 * config/i386/i386v.mt: Remove file.
1230 * config/i386/tm-go32.h: Remove file.
1231
4a1bcc8c
MK
1232 * tui/tui-hooks.c: Include "readline/readline.h" after
1233 "gdb_curses.h" instead of before.
1234 * tui/tui-io.c: Likewise.
1235
f9a79064
MK
1236 * tui/tui.c: Fix typo in comment.
1237
b31bc724
MK
1238 * sparc64-tdep.c (sparc_address_from_register): Remove function.
1239
f83f82bc
AC
12402004-04-08 Andrew Cagney <cagney@redhat.com>
1241
1242 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
1243 (deprecated_exception_support_initialized): Declare.
8718a420 1244 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
1245 (initialize_hp_cxx_exception_support)
1246 (child_enable_exception_callback): Update.
1247 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
1248 (deprecated_exception_support_initialized): Rename
1249 deprecated_exception_catchpoints_are_fragile and
1250 deprecated_exception_support_initialized.
1251 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
1252
1253 * symtab.c (deprecated_hp_som_som_object_present): Rename
1254 hp_som_som_object_present.
1255 * symtab.h (deprecated_hp_som_som_object_present): Declare.
1256 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
1257 Update. Delete extern declaration.
1258 * valops.c (hp_som_som_object_present): Ditto.
8718a420 1259 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
1260 (parse_nested_classes_for_hpacc): Ditto.
1261 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 1262 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
1263 (initialize_hp_cxx_exception_support): Ditto.
1264 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 1265 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 1266 (cp_print_class_method): Ditto.
8718a420 1267 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
1268 (c_type_print_base): Ditto.
1269 * c-exp.y (hp_som_som_object_present): Ditto.
1270
fb2be677
AC
12712004-04-08 Andrew Cagney <cagney@redhat.com>
1272
1273 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
1274 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
1275 (frame_unwind_find_by_frame): Re-implement the unwind code so
1276 that it can both prepend and append sniffers. Replace
1277 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
1278 * tramp-frame.c (tramp_frame_append): Use
1279 frame_unwind_prepend_unwinder.
1280 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
1281 frame_unwind_register_unwinder.
1282 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
1283 tramp_frame_append.
1284 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 1285 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
1286 (mips_linux_init_abi): Update.
1287
67faf007
KB
12882004-04-08 Kevin Buettner <kevinb@redhat.com>
1289
1290 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
1291 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
1292 file support.
1293
8973ff21
KB
12942004-04-07 Kevin Buettner <kevinb@redhat.com>
1295
1296 * ia64-tdep.c (elf.h): Don't include.
1297 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
1298
4a0e2f88
JM
12992004-04-07 Jason Molenda (jmolenda@apple.com)
1300
1301 * frame.h: Typeo corrections in comments.
1302
9872ad24
JB
13032004-04-07 Jim Blandy <jimb@redhat.com>
1304
1305 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
1306 %esp and %ebp
1307
70b216c8
MK
13082004-04-07 Mark Kettenis <kettenis@gnu.org>
1309
11d5789c
MK
1310 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
1311 * config/sparc/linux64.mt (TDEPFILES): Likewise.
1312 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1313 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
1314 and solib-legacy.o.
1315 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
1316 solib-svr4.o.
1317 * config/sparc/tm-sol2.h: Update copyright year. Include
1318 "solib.h".
1319
70b216c8
MK
1320 * sparc-sol2-tdep.c: Update copyright year. Include
1321 "solib-svr4.h".
1322 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
1323 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
1324 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 1325 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
1326 dependencies.
1327
6339dc9e
AC
13282004-04-06 Andrew Cagney <cagney@redhat.com>
1329
1330 * infttrace.c: Include "infttrace.h".
1331 * infttrace.h: Include "target.h".
1332 * Makefile.in (infttrace_h): Update.
1333 (infttrace.o): Update.
8718a420 1334
93449403
AC
13352004-04-06 Andrew Cagney <cagney@redhat.com>
1336
6d518969
AC
1337 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
1338 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
1339 move extern declarations from here ...
1340 * infttrace.h: ... to here.
1341 * Makefile.in (hppah-nat.o): Update dependencies.
1342
85f4f2d8
AC
1343 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
1344 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 1345 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
1346 (hppa_breakpoint_from_pc): Delete.
1347
93449403
AC
1348 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
1349
71456ec6
AC
13502004-04-05 Andrew Cagney <cagney@redhat.com>
1351
1352 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
1353 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
1354 <sys/file.h>.
8718a420 1355
4c02c60c
AC
13562004-04-06 Randolph Chung <tausq@debian.org>
1357
1358 Committed by Andrew Cagney (mechanical change).
1359 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
1360 exception_catchpoints_are_fragile, find_stub_with_shl_get,
1361 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
1362 child_enable_exception_callback, current_ex_event,
1363 null_symtab_and_line, child_get_current_exception_event,
1364 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
1365 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
1366 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
1367 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
1368 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
1369 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
1370 Move hpux-specific definitions ...
1371 * hppa-hpux-tdep.c: ... to here.
1372
3a515653
AC
13732004-04-05 Andrew Cagney <cagney@redhat.com>
1374
1375 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
1376 skip_prologue_using_sal.
1377
c1730d02
AC
13782004-04-05 Andrew Cagney <cagney@redhat.com>
1379
1380 * config/i386/tm-i386.h: Delete file.
1381 * config/i386/tm-vxworks.h: Update copyright, do not include
1382 "tm-i386.h".
1383 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
1384 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
1385 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
1386 * config/i386/ncr3000.mt (TM_FILE): Delete.
1387 * config/i386/interix.mt (TM_FILE): Delete.
1388 * config/i386/i386v.mt (TM_FILE): Delete.
1389 * config/i386/i386nw.mt (TM_FILE): Delete.
1390 * config/i386/i386gnu.mt (TM_FILE): Delete.
1391 * config/i386/i386aout.mt (TM_FILE): Delete.
1392 * config/i386/embed.mt (TM_FILE): Delete.
1393
8b67aa36
KB
13942004-04-05 Kevin Buettner <kevinb@redhat.com>
1395
1396 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
1397 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
1398 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
1399 (accg7_regnum): New constants.
1400 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
1401 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
1402 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
1403 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
1404 for accg registers.
1405 (frv_register_sim_regno): Update spr_map[].
1406
3c7012f5
AC
14072004-04-04 Andrew Cagney <cagney@redhat.com>
1408
1409 * config/mips/xm-riscos.h: Delete.
1410 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
1411 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
1412 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
1413 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
1414 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
1415 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
1416 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
1417 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
1418 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
1419 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
1420 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
1421 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
1422 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
1423 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
1424 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
1425 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
1426 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
1427 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
1428 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
1429 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
1430 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
1431 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
1432 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
1433 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
1434 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
1435 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 1436
3c7012f5
AC
1437 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
1438 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
1439 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
1440 * configure.host: Remove m680[01]0-sun-sunos3*,
1441 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
1442 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
1443 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
1444 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
1445 mips-*-riscos*.
1446 * NEWS: Mention removed systems.
1447
99d16a21
AC
14482004-04-04 Andrew Cagney <cagney@redhat.com>
1449
1450 GDB 6.1 release created from 6.1 branch.
1451
6cdf9d98
AC
14522004-04-04 Andrew Cagney <cagney@redhat.com>
1453
98d346c3
AC
1454 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
1455 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1456 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
1457
6cdf9d98
AC
1458 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
1459 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
1460 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
1461
859a326d
JB
14622004-04-03 Jim Blandy <jimb@redhat.com>
1463
1464 * MAINTAINERS: Chris Faylor has changed employers; add him to
1465 "paper trail" section, and update his E-mail address.
1466
b87178c3
AC
14672004-04-03 Andrew Cagney <cagney@redhat.com>
1468
4ea2acf0
AC
1469 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
1470 generic dummy frames.
1471 * dummy-frame.c: Update copyright.
1472 (dummy_frame_sniffer): Delete check for generic dummy frames.
1473
d0bd2d18 1474 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 1475 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
1476 (REG_PARM_STACK_SPACE): Delete.
1477 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
1478 Inline reference to REG_PARM_STACK_SPACE.
1479
b87178c3
AC
1480 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
1481 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
1482 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
1483 (FRAME_BASE_BEFORE_SIGTRAMP)
1484 (hppa32_hpux_frame_base_before_sigtramp)
1485 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
1486 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
1487 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
1488 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
1489 (FRAME_BASE_BEFORE_SIGTRAMP)
1490 (hppa64_hpux_frame_base_before_sigtramp)
1491 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
1492
43e2e1a0
AC
14932004-04-03 Andrew Cagney <cagney@redhat.com>
1494
1495 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
1496
ddc135a4
AC
14972004-04-02 Andrew Cagney <cagney@redhat.com>
1498
1499 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
1500 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
1501 * dummy-frame.h: Delete out-of-date comments.
1502 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
1503 * gdbarch.h, gdbarch.c: Re-generate.
1504
d15bfd3a 15052004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 1506
d15bfd3a
AC
1507 Committed by Andrew Cagney <cagney@redhat.com>.
1508 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
1509 into account an instruction saving a register if we have already
1510 seen an earlier instruction saving that same register.
1511
f04ceafa
AC
15122004-04-02 Andrew Cagney <cagney@redhat.com>
1513
08be3abd
AC
1514 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
1515 * gdbarch.h, gdbarch.c: Re-generate.
1516 * frame.c (legacy_get_prev_frame): Delete references to
1517 DEPRECATED_INIT_FRAME_PC_FIRST.
1518
f04ceafa
AC
1519 * infrun.c (pc_in_sigtramp): Delete function.
1520 (check_sigtramp2): Inline call to pc_in_sigtramp, use
1521 get_frame_type.
1522
08e69816
AC
15232004-04-02 Andrew Cagney <cagney@redhat.com>
1524
1525 * infrun.c (handle_step_into_function): Delete code conditional on
1526 legacy_frame_p.
1527 (handle_inferior_event, step_over_function): Ditto.
1528
adb54772
AC
15292004-04-02 Andrew Cagney <cagney@redhat.com>
1530
1531 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
1532 "previous frame inner to this frame" test.
1533
304396fb
AC
15342004-04-02 Andrew Cagney <cagney@redhat.com>
1535
1536 * frame.c (safe_frame_unwind_memory): New function.
1537 * frame.h (safe_frame_unwind_memory): Declare. Update description
1538 of /safe_/ methods.
1539 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
1540 "next_frame". Use safe_frame_unwind_memory.
1541 (tramp_frame_sniffer): Update call to tramp_frame_start.
1542
6502dd73
DJ
15432004-04-01 Daniel Jacobowitz <drow@mvista.com>
1544
1545 * dwarf2read.c (dwarf2_objfile_data_key): New.
1546 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
1547 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
1548 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
1549 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
1550 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
1551 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
1552 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
1553 Remove variables.
1554 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
1555 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
1556 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
1557 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
1558 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
1559 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
1560 Remove macros.
1561 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
1562 data.
1563 (dwarf2_locate_sections, dwarf2_build_psymtabs)
1564 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
1565 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
1566 (read_partial_die, read_full_die, read_indirect_string)
1567 (dwarf_decode_line_header, dwarf_decode_macros)
1568 (dwarf2_symbol_mark_computed): Remove use of removed macros.
1569 Update uses of removed variables.
1570 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
1571 of removed macros.
1572 (_initialize_dwarf2_read): New function.
1573 * symfile.h (dwarf2_has_info): Update prototype.
1574 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
1575 * elfread.c (elf_symfile_read): Likewise.
1576
408752b0
JB
15772004-04-01 Jim Blandy <jimb@redhat.com>
1578
9f744501
JB
1579 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
1580 function for register numbers on all the rs6000-derived targets.
1581 (rs6000_gdbarch_init): Don't register a separate
1582 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
1583 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
1584 variants.
1585
408752b0
JB
1586 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
1587 numbering.
1588
2de41bce
PH
15892004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1590
1591 * valarith.c: Update copyright notice.
1592 (value_add): Handle range types.
1593 (value_sub): Ditto.
1594 (value_equal): Ditto.
1595 (value_less): Ditto.
1596 (value_neg): Ditto.
1597 (value_complement): Ditto.
8718a420 1598 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 1599 eliminiating unnecessary COERCE_ENUMs.
8718a420 1600
5613d8d3
AC
16012004-03-31 Andrew Cagney <cagney@redhat.com>
1602
1603 * frame.h (frame_unwind_id): Declare.
1604 * frame.c (frame_unwind_id): New function.
1605 (get_prev_frame_1): New function.
1606 (frame_debug_got_null_frame): New function.
1607 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
1608 code proper to prev_frame, update description.
1609 * infrun.c (step_over_function): Use frame_unwind_id.
1610
c4557624
JB
16112004-04-31 J. Brobecker <brobecker@gnat.com>
1612
1613 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
1614 (hppa64_push_dummy_call): Likewise.
1615
3e6bb910
JB
16162004-03-30 Jim Blandy <jimb@redhat.com>
1617
1618 From Ulrich Weigand:
1619 * utils.c (query): Do not use a va_list variable multiple times.
1620
a2f23071
DJ
16212004-03-29 Daniel Jacobowitz <drow@mvista.com>
1622
1623 * Makefile.in (linux_nat_h): Update dependencies.
1624 * configure.in: Check for <gnu/libc-version.h>.
1625 * configure: Regenerate.
1626 * config.in: Regenerate.
1627 * linux-nat.h: Include "target.h". Add waitstatus field to
1628 struct lwp_info.
1629 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
1630 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
1631 to.
1632 (lin_lwp_handle_extended): New function. Handle clone events.
1633 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
1634 thread exit events.
1635 (child_wait): Handle clone events.
1636 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
1637 * linux-nat.c (linux_enable_event_reporting): Turn on
1638 PTRACE_O_TRACECLONE.
1639 (linux_handle_extended_wait): Handle clone events.
1640 * thread-db.c: Include <gnu/libc-version.h>.
1641 (struct private_thread_info): Add dying flag.
1642 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
1643 higher.
1644 (attach_thread): Update comments. Handle dying threads.
1645 (detach_thread): Set the dying flag.
1646 (check_event): Always call attach_thread.
1647
8d5f9dcb
DJ
16482004-03-29 Daniel Jacobowitz <drow@mvista.com>
1649
1650 * mips-tdep.c (mips_pdr_data): New.
1651 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
1652 (_initialize_mips_tdep): Initialize mips_pdr_data.
1653
66337bb1
CV
16542004-03-29 Corinna Vinschen <vinschen@redhat.com>
1655
1656 * minsyms.c (install_minimal_symbols): Move dropping leading
1657 char from linkage name from here...
1658 (prim_record_minimal_symbol_and_info): ...to here. Simplify
1659 test for "__gnu_compiled*" symbols.
1660
e802b915
JB
16612004-03-28 Jim Blandy <jimb@redhat.com>
1662
1663 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
1664 registers to temp register r0 and byte stores as prologue
1665 instructions.
1666
72b56458
AC
16672004-03-28 Andrew Cagney <cagney@redhat.com>
1668
1669 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
1670 arm*-*-*.
1671
0bfbda3b
SC
16722004-03-28 Stephane Carrez <stcarrez@nerim.fr>
1673
1674 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
1675 and switch the layout to force a display of register window.
1676
5a7225ed
JB
16772004-02-26 J. Brobecker <brobecker@gnat.com>
1678
1679 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
1680 of the INTEGER class.
1681
81a07a45
JB
16822004-03-26 Jim Blandy <jimb@redhat.com>
1683
1684 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
1685 bytes long on PPC GNU/Linux.
1686
8c691c7a
DC
16872004-03-26 David Carlton <carlton@kealia.com>
1688
1689 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
1690
103a0089
AC
16912004-03-25 Andrew Cagney <cagney@redhat.com>
1692
1693 * PROBLEMS: Add general section titles, remove references to
1694 specific releases.
1695
7a5ea0d4
DJ
16962004-03-25 Daniel Jacobowitz <drow@mvista.com>
1697
1698 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
1699 INT_REGISTER_SIZE.
1700 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
1701 FP_REGISTER_VIRTUAL_SIZE.
1702 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
1703 of DEPRECATED_REGISTER_RAW_SIZE.
1704 (arm_register_type): Add gdbarch argument.
1705 (arm_register_raw_size, arm_register_virtual_size): Delete.
1706 (arm_register_byte, arm_extract_return_value)
1707 (arm_store_return_value, arm_get_longjmp_target): Update references
1708 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
1709 (arm_gdbarch_init): Likewise. Don't set
1710 deprecated_register_raw_size, deprecated_register_virtual_size,
1711 deprecated_max_register_raw_size,
1712 deprecated_max_register_virtual_size, or
1713 deprecated_max_register_virtual_type. Do set register_type.
1714 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
1715 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
1716 (FP_REGISTER_VIRTUAL_SIZE): Delete.
1717 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
1718 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
1719 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
1720 INT_REGISTER_SIZE.
1721 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
1722 (remote_rdp_store_register): Likewise.
1723
5792a79b
DJ
17242004-03-24 Daniel Jacobowitz <drow@mvista.com>
1725
1726 * Makefile.in (mips-linux-tdep.o): Update dependencies.
1727 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
1728 to after osabi initialization.
1729 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
1730 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
1731 functions.
1732 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
1733 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
1734 variables.
1735 (mips_linux_init_abi): Append signal trampoline unwinders.
1736
1196bfda
AC
17372004-03-24 Andrew Cagney <cagney@redhat.com>
1738
1739 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
1740 * tramp-frame.c: Include "gdb_assert.h".
1741 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
1742 correct sizeof.
1743 (tramp_frame_append): Validate the tramp frame's instructions.
1744 * Makefile.in (tramp-frame.o): Update dependencies.
1745
4be282b4
AC
17462004-03-23 Andrew Cagney <cagney@redhat.com>
1747
1748 * trad-frame.h (trad_frame_set_reg_addr): Declare.
1749
69aec09b
AC
17502004-03-23 Andrew Cagney <cagney@redhat.com>
1751
1752 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
1753 Nasser as past testsuite/lib/ (and other) maintainers.
1754
63ed89b4
DJ
17552004-03-23 Daniel Jacobowitz <drow@mvista.com>
1756
1757 * infcmd.c (attach_command): Reread symbols if we already have
1758 an exec file.
1759
f3b36427
AC
17602004-03-23 Andrew Cagney <cagney@redhat.com>
1761
1762 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
1763
aa2a3f87
AC
17642004-03-23 Andrew Cagney <cagney@redhat.com>
1765
1766 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
1767 * gdbarch.h, gdbarch.c: Re-generate.
1768 * i386obsd-tdep.c (i386obsd_init_abi): Update.
1769 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
1770 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 1771 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 1772 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 1773 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
1774 (DEPRECATED_SIGTRAMP_START): Update.
1775 * blockframe.c (find_pc_sect_partial_function): Update.
1776 * arch-utils.c (legacy_pc_in_sigtramp): Update.
1777
00cac895
DJ
17782004-03-23 Daniel Jacobowitz <drow@mvista.com>
1779
1780 * remote.c (remote_open_1): Reopen the exec file and reread symbols
1781 if necessary.
1782
f561f026
AC
17832004-03-23 Andrew Cagney <cagney@redhat.com>
1784
1785 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
1786 predicate, deprecate.
1787 * gdbarch.h, gdbarch.c: Re-generate.
1788 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
1789 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
1790 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
1791 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
1792 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
1793 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
1794 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
1795 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
1796 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
1797 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
1798 * blockframe.c (find_pc_partial_function): Update.
1799 * breakpoint.c (bpstat_what): Update.
1800 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
1801 * frv-linux-tdep.c (frv_linux_init_abi): Update.
1802 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
1803 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
1804 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1805 * i386-linux-tdep.c (i386_linux_init_abi): Update.
1806 * i386-nto-tdep.c (i386nto_init_abi): Update.
1807 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
1808 * i386-tdep.c (i386_sigtramp_frame_sniffer)
1809 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
1810 * i386bsd-tdep.c (i386bsd_init_abi): Update.
1811 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
1812 * i386obsd-tdep.c (i386obsd_init_abi): Update.
1813 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
1814 * infrun.c (pc_in_sigtramp): Update.
1815 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
1816 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
1817 * mips-tdep.c (mips_gdbarch_init): Update.
1818 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
1819 * ppc-linux-tdep.c: Update comment.
1820 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
1821 * shnbsd-tdep.c (shnbsd_init_abi): Update.
1822 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
1823 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
1824 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
1825 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
1826 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
1827 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
1828 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
1829 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 1830
8050c72f
AC
18312004-03-23 Andrew Cagney <cagney@redhat.com>
1832
d2259dd3
AC
1833 * tramp-frame.h, tramp-frame.h: New files.
1834 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
1835 Update rules to include "tramp-frame.h" and "tramp-frame.c".
1836
8050c72f
AC
1837 * Makefile.in: Update all dependencies.
1838
0db9b4b7
AC
18392004-03-23 Andrew Cagney <cagney@redhat.com>
1840
1841 * Makefile.in (trad_frame_h): Add $(frame_h).
1842 * trad-frame.h: Update copyright. Include "frame.h".
1843 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
1844 (trad_frame_set_id, trad_frame_get_id): Declare.
1845 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
1846 * trad-frame.c: Update copyright.
1847 (struct trad_frame_cache): Define.
1848 (trad_frame_cache_zalloc): New function.
1849 (trad_frame_set_id, trad_frame_get_id): New functions.
1850 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 1851
8e645ae7
AC
18522004-03-22 Andrew Cagney <cagney@redhat.com>
1853
1854 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
1855 s390_pltstub_unwind_cache.
1856 (s390_stub_frame_unwind_cache): Rename
1857 s390_pltstub_frame_unwind_cache.
1858 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
1859 (s390_stub_frame_prev_register): Rename
1860 s390_pltstub_frame_prev_register.
1861 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
1862 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
1863
1864 From Ulrich Weigand:
1865 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
1866 pointer calls like PLT calls.
1867
34fcf120
DJ
18682004-03-22 Daniel Jacobowitz <drow@mvista.com>
1869
1870 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
1871 PC rather than the partial function start address. Use the start
1872 address to sanity check the found PDR.
1873
5b917078
DJ
18742004-03-22 Daniel Jacobowitz <drow@mvista.com>
1875
1876 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
1877 linux_handle_extended_wait.
1878
8adf9e78
AC
18792004-03-22 Andrew Cagney <cagney@redhat.com>
1880
c3122434
AC
1881 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
1882 function.
1883
8adf9e78
AC
1884 * frame.h (generic_pop_current_frame): Delete declaration.
1885 (deprecate_pop_dummy_frame): Deprecate
1886 generic_pop_dummy_frame.
1887 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
1888 (generic_pop_current_frame): Delete function.
1889 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
1890 generic_pop_current_frame.
1891 * v850-tdep.c (v850_pop_frame): Update.
1892 * mcore-tdep.c (mcore_pop_frame): Update.
1893 * sh64-tdep.c (sh64_pop_frame): Update.
1894 * h8300-tdep.c (h8300_pop_frame): Update.
1895
90ba813f
AC
18962004-03-22 Andrew Cagney <cagney@redhat.com>
1897
1898 * frame.h (deprecated_pc_in_call_dummy): Rename
1899 generic_pc_in_call_dummy.
1900 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
1901 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
1902 generic_pc_in_call_dummy.
1903 (pc_in_dummy_frame): Make static.
1904 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
1905 * gdbarch.h, gdbarch.c: Re-generate.
1906 * dummy-frame.c (dummy_frame_sniffer): Simplify.
1907 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
1908 (legacy_get_prev_frame): Ditto.
1909 * inferior.h: Delete reference to generic_pc_in_call_dummy in
1910 comment.
8718a420 1911
ca4bb888
AC
19122004-03-21 Andrew Cagney <cagney@redhat.com>
1913
244675f9
AC
1914 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
1915 declaration and out-of-date comment.
1916 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1917 Delete function.
1918 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1919 deprecated_pc_in_call_dummy.
1920
ca4bb888
AC
1921 * infrun.c (handle_inferior_event): For non legacy frames, use the
1922 frame ID and frame type to identify a signal trampoline. Update
1923 comments.
1924
1777c7b4
NW
19252004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
1926
1927 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
1928 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1929
82417da5
AC
19302004-03-21 Andrew Cagney <cagney@redhat.com>
1931
1932 * frame-unwind.h: Update copyright.
1933 (struct frame_data): Add opaque declaration.
1934 (frame_sniffer_ftype): Declare.
1935 (struct frame_unwind): Add "unwind_data" and "sniffer".
1936 (frame_unwind_register_unwinder): Declare.
1937 (frame_unwind_find_by_frame): Add parameter "this_cache".
1938 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
1939 (legacy_get_prev_frame, legacy_get_prev_frame)
1940 (get_frame_type): Pass the prologue_cache to
1941 frame_unwind_find_by_frame.
1942 * frame-unwind.c (struct frame_unwind_table_entry): Add field
1943 "unwinder".
1944 (frame_unwind_register_unwinder): New function.
1945 (frame_unwind_find_by_frame): Handle an unwind sniffer.
1946
b2ba182e
PH
19472004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
1948
1949 * bcache.c (print_percentage): Use floating point to avoid
1950 incorrect results when portion*100 overflows.
1951
81332287
KB
19522004-03-19 Kevin Buettner <kevinb@redhat.com>
1953
1954 * ppc_tdep.h (ppc_linux_frame_saved_pc)
1955 (ppc_linux_init_extra_frame_info)
1956 (ppc_linux_frameless_function_invocation)
1957 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
1958 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
1959 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
1960 (rs6000_frame_chain): Delete declarations.
1961 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
1962 (ppc_linux_init_extra_frame_info)
1963 (ppc_linux_frameless_function_invocation)
1964 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
1965 (ppc_linux_init_abi): Remove registration of above deleted functions.
1966 * rs6000-tdep.c (rs6000_init_extra_frame_info)
1967 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
1968 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
1969 (rs6000_pop_frame, rs6000_frameless_function_invocation)
1970 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
1971 (rs6000_gdbarch_init): Remove registration of above deleted functions.
1972 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
1973 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
1974 frame management for all OSABIs.
1975
61a65099
KB
19762004-03-19 Andrew Cagney <cagney@redhat.com>
1977
1978 Committed by Kevin Buettner <kevinb@redhat.com>.
1979
1980 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
1981 Update copyright.
1982 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
1983 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
1984 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
1985 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
1986 unwinders. #ifdef legacy frame code.
1987 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
1988 "frame-base.h".
1989 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
1990 (struct rs6000_frame_cache, rs6000_frame_cache)
1991 (rs6000_frame_this_id, rs6000_frame_prev_register)
1992 (rs6000_frame_sniffer, rs6000_frame_unwind)
1993 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
1994 (rs6000_frame_base): Implement a traditional frame unwinder.
1995 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
1996 frame unwinder.
1997
88f7da05
KB
19982004-03-19 Kevin Buettner <kevinb@redhat.com>
1999
2000 * breakpoint.c (adjust_breakpoint_address): Don't adjust
2001 breakpoint address for watchpoints or the catch eventpoints.
2002 Add new paramter ``bptype''. Adjust all callers.
2003
f826dce1
AC
20042004-03-19 Andrew Cagney <cagney@redhat.com>
2005
33cb8b0f
AC
2006 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
2007
f826dce1
AC
2008 * PROBLEMS: Delete note that ARM does not use frame code, problem
2009 fixed.
2010
43b1ab88
AC
20112004-03-18 Andrew Cagney <cagney@redhat.com>
2012
292ab034
AC
2013 * stack.c (return_command): Delete code wrapped in #ifdef
2014 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
2015
43b1ab88
AC
2016 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
2017
dbfe4626
AC
20182004-03-18 Andrew Cagney <cagney@redhat.com>
2019
2020 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
2021 DEPRECATED_IN_SIGTRAMP.
2022 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2023 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
2024 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2025 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2026 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2027 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2028 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2029 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2030 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
2031 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
2032
0cad6aec
AC
20332004-03-18 Andrew Cagney <cagney@redhat.com>
2034
2035 * frame-base.c: Update copyright. Include "gdb_obstack.h".
2036 (struct frame_base_table_entry): Define.
2037 (struct frame_base_table): Re-implement as a linked list.
2038 (frame_base_init): Re-implement.
2039 (frame_base_table): Delete function.
2040 (append_predicate): Delete function.
2041 (frame_base_append_sniffer): Update.
2042 (frame_base_set_default): Update.
2043 (frame_base_find_by_frame): Update.
2044 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
2045 * Makefile.in (frame-base.o): Update dependencies.
2046
9982c2e7
AC
20472004-03-17 Andrew Cagney <cagney@redhat.com>
2048
2049 * frame.c (legacy_get_prev_frame): Pass correct frame to
2050 frame_unwind_find_by_frame.
2051
8dfe8985
DC
20522004-03-17 David Carlton <carlton@kealia.com>
2053
2054 * NEWS: Mention C++ nested types and namespaces
2055
ed47347a
MC
20562004-03-16 Michael Chastain <mec.gnu@mindspring.com>
2057
2058 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
2059 and "Regressions since gdb 5.3.". Add known regressions since
2060 gdb 6.0.
2061
90aeadfc
DC
20622004-03-16 David Carlton <carlton@kealia.com>
2063
2064 * dwarf2read.c (process_structure_scope): Process children even
2065 when we're a declaration.
2066
73912b9b
AC
20672004-03-16 Andrew Cagney <cagney@redhat.com>
2068
2069 * symtab.h (find_pc_sect_partial_function): Delete declaration.
2070 * blockframe.c (find_pc_partial_function)
2071 (find_pc_sect_partial_function): Merge into a single
2072 find_pc_partial_function.
2073
283accbc
MK
20742004-03-16 Mark Kettenis <kettenis@gnu.org>
2075
2076 * i386bsd-nat.c: s/regno/regnum/g.
2077 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
2078 FP0_REGNUM.
2079 (store_inferior_registers): Likewise.
2080
f5b1afdf
MK
20812004-03-16 Mark Kettenis <kettenis@gnu.org>
2082
2083 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
2084 of i387_fill_fsave.
2085 (store_inferior_registers): Call i387_collect_fsave and
2086 i387_collect_fxsave instead of i387_fill_fsave and
2087 i387_fill_fxsave.
2088
41fe5eb3
AC
20892004-03-15 Andrew Cagney <cagney@redhat.com>
2090
2091 * Makefile.in (frame-unwind.o): Update dependencies.
2092 * frame-unwind.c: Include "gdb_obstack.h".
2093 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
2094 parameter.
2095 (append_predicate): Delete function.
2096 (struct frame_unwind_table_entry): New structure.
2097 (struct frame_unwind_table): Replace "sniffer" with "head" and
2098 "tail".
2099 (frame_unwind_append_sniffer): Update.
2100 (frame_unwind_find_by_frame): Update.
2101 (_initialize_frame_unwind): Registe frame_unwind_init using
2102 gdbarch_data_register_pre_init.
2103
3f63813d
MK
21042004-03-15 Mark Kettenis <kettenis@gnu.org>
2105
2106 * i386bsd-nat.c: Update copyright year.
2107 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
2108 define unconditionally.
2109
3248c325 21102004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
2111
2112 * i387-tdep.h (i387_collect_fsave): New prototype.
2113 * i387-tdep.c (i387_collect_fsave): New function containing most
2114 of the code from i387_fill_fsave.
3248c325 2115 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 2116
871fbe6a
MK
21172004-03-15 Mark Kettenis <kettenis@gnu.org>
2118
2119 * i386-linux-tdep.c: Update copyright year.
2120 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
2121 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
2122 svr4_ilp32_link_map_offsets instead of
2123 i386_linux_svr4_fetch_link_map_offsets.
2124
8176b9b8
DC
21252004-03-15 David Carlton <carlton@kealia.com>
2126
2127 Fix for PR c++/1553:
2128 * dwarf2read.c (read_structure_type): Determine type name by
2129 calling determine_class_name.
2130 (determine_class_name): New.
2131 (determine_prefix): Look at TYPE_TAG_NAME and call
2132 determine_class_name when appropriate.
2133 (determine_prefix_aux, class_name): Delete.
9d58e29d 2134 (read_namespace): Set die->type.
8176b9b8 2135
fe8bf7d7
KB
21362004-03-15 Kevin Buettner <kevinb@redhat.com>
2137
2138 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
2139 unused macro definition. The definition in target.h (or perhaps
2140 elsewhere) takes precedence.
2141
ed6edd9b
AC
21422004-03-15 Andrew Cagney <cagney@redhat.com>
2143
f9be684a
AC
2144 * ppc-tdep.h: Update copyright.
2145 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
2146 function signatures to match "regsets.h".
2147 * ppc-linux-tdep.c: Include "regset.h".
2148 (ELF_GREGSET_SIZE): Delete.
2149 (right_supply_register): New function.
2150 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
2151 using right_supply_register.
2152 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
2153 functions.
2154 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
2155 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
2156 (_initialize_ppc_linux_tdep): Do not register
2157 ppc_linux_regset_core_fns.
2158 (ppc_linux_regset_from_core_section): Replace
2159 fetch_core_registers.
2160 (ppc_linux_regset_core_fns): Delete.
2161 * ppc-linux-nat.c: (right_fill_reg): New function.
2162 (supply_gregset): Update call to ppc_linux_supply_gregset.
2163 (fill_gregset): Clear the register set, use right_fill_reg.
2164 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
2165 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
2166
ed6edd9b
AC
2167 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
2168 unsigned.
2169
030f20e1
AC
21702004-03-15 Andrew Cagney <cagney@redhat.com>
2171
2172 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
2173 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
2174 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
2175 and register_gdbarch_data.
2176 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
2177 (struct gdbarch_data): Replace "init" by "pre_init" and
2178 "post_init".
2179 * gdbarch.h, gdbarch.c: Re-generate.
2180 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
2181 with"obstack", use OBSTACK_ZALLOC.
2182 (dwarf2_frame_ops): Delete.
2183 (dwarf2_frame_set_init_reg): Use gdbarch_data.
2184 (dwarf2_frame_init_reg): Use gdbarch_data.
2185 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 2186 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
2187 (_initialize_svr4_solib): Update.
2188 * user-regs.c (_initialize_user_regs): Update.
2189 * reggroups.c (_initialize_reggroup): Update.
2190 * regcache.c (_initialize_regcache): Update.
2191 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
2192 * libunwind-frame.c (_initialize_libunwind_frame): Update.
2193 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2194 * frame-unwind.c (_initialize_frame_unwind): Update.
2195 * frame-base.c (_initialize_frame_base): Update.
2196 * user-regs.c (user_reg_add): Update.
2197 * reggroups.c (reggroup_add): Update.
2198 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
2199 * libunwind-frame.c (libunwind_frame_set_descr): Update.
2200 * frame-unwind.c (frame_unwind_append_sniffer): Update.
2201 * frame-base.c (frame_base_table): Update.
2202 * remote.c (_initialize_remote): Update.
2203 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 2204
3111a3fc
AC
22052004-03-15 Andrew Cagney <cagney@redhat.com>
2206
2207 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
2208
5ecb7103
KB
22092004-03-15 Kevin Buettner <kevinb@redhat.com>
2210
2211 * Makefile.in (frv-linux-tdep.o): Add dependencies.
2212 * frv-linux-tdep.c: New file.
2213 * frv-tdep.c (struct gdbarch_tdep): Add new field
2214 ``sigcontext_reg_addr''.
2215 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
2216 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
2217 (frv_sigramp_frame_sniffer): New functions.
2218 (frv_sigtramp_frame_unwind): New static global.
2219 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
2220 sniffers.
2221 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
2222 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
2223
1ccda5e9
KB
22242004-03-15 Kevin Buettner <kevinb@redhat.com>
2225
2226 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
2227 but not via a call to error(), when unable to read memory.
2228
b375a0a5
KB
22292004-03-15 Kevin Buettner <kevinb@redhat.com>
2230
2231 * frv-tdep.c (frv_call_dummy_words): Delete.
2232 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
2233
4fdf6121
AC
22342004-03-15 Andrew Cagney <cagney@redhat.com>
2235
2236 * infrun.c (handle_step_into_function, step_over_function): Only
2237 update and use STEP_FRAME_ID when the system is using legacy
2238 frames. Update comments.
2239
34021503
MK
22402004-03-14 Mark Kettenis <kettenis@gnu.org>
2241
187e21d1
MK
2242 * amd64-linux-tdep.h: Remove file.
2243 * amd64-linux-tdep.c: Don't include "inferior.h" and
2244 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
2245 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
2246 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
2247 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
2248 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
2249 macros.
2250 (user_to_gdb_regmap): Remove variable.
2251 (amd64_linux_gregset_reg_offset): New variable.
2252 (amd64_core_fns): Remove variable.
2253 (fetch_core_registers): Remove function.
2254 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
2255 functions.
2256 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
2257 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
2258 * Makefile.in (amd64_linux_tdep_h): Remove.
2259 (amd64-linux-nat.o): Update dependencies.
2260 (amd64-linux-tdep.o): Update dependencies.
2261
99679982
MK
2262 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2263 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
2264 functions.
2265 (fetch_inferior_registers, store_inferior_registers): Rewrite.
2266
34021503
MK
2267 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
2268 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
2269
134d01f1
DJ
22702004-03-14 Daniel Jacobowitz <drow@mvista.com>
2271
2272 * dwarf2read.c (read_structure_type): Rename from
8718a420 2273 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
2274 Return immediately if die->type is set. Call read_type_die before
2275 dwarf2_add_member_fn.
2276 (process_structure_scope): New function.
2277 (read_enumeration_type, process_enumeration_scope): New functions,
2278 broken out from read_enumeration. Don't create the enumeration
2279 type if it has already been created.
2280 (read_enumeration): Removed.
2281 (process_die): Call read_structure_type, process_structure_scope,
2282 read_enumeration_type, and process_enumeration_scope. Just call
2283 new_symbol for base and subrange types. Add a comment about other
2284 type dies.
2285 (read_type_die): Call read_enumeration_type.
2286 (add_partial_structure, new_symbol): Update comments.
2287
65760afb
SC
22882004-03-13 Stephane Carrez <stcarrez@nerim.fr>
2289
2290 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
2291
10f59415
SC
22922004-03-13 Stephane Carrez <stcarrez@nerim.fr>
2293
2294 * tui/tui-win.h (tui_get_cmd_list): Declare.
2295 * tui/tui-win.c (tui_command): New function.
2296 (tui_get_cmd_list): New function.
2297 (_initialize_tui_win): Moved initialization of tui command in
2298 tui_get_cmd_list.
2299
2300 * tui/tui-data.c (init_content_element): Setup new data members.
2301 (init_win_info): Likewise.
2302 (free_content_elements): Free it.
2303 * tui/tui-data.h (struct tui_data_element): Store the register
2304 content to print.
2305 (struct tui_data_info): Keep the current register group.
2306
2307 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
2308
2309 * tui/tui-regs.h (tui_show_registers): Update prototype.
2310 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
2311 (tui_resize_all): No need to calculate anything for register window.
2312 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
2313 (tui_set_register_element, tui_set_general_regs_content): Remove.
2314 (tui_set_special_regs_content): Remove.
2315 (tui_set_general_and_special_regs_content): Remove.
2316 (tui_set_float_regs_content): Remove.
2317 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
2318 (tui_set_regs_content): Remove.
2319 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
2320 (tui_v_show_registers_command_support): Remove.
2321 (tui_show_registers): Use a reggroup to specify the registers to show.
2322 (tui_show_register_group): New function.
2323 (tui_display_registers_from): Compute the layout of register window
2324 and refresh with new API; be sure to delete old register windows.
2325 (tui_check_register_values): Update to use tui_get_register and
2326 tui_display_data.
2327 (tui_display_register): Just refresh the register window part.
2328 (tui_register_format): Format registers and save in tui_data_element.
2329 (tui_get_register): New to combine tui_reg_value_has_changed and
2330 tui_get_register_raw_value; fix to use the new gdb API.
2331 (tui_show_float_command): Renamed tui_reg_float_command.
2332 (tui_show_general_command): Renamed tui_reg_general_command.
2333 (tui_show_special_command): Renamed tui_reg_system_command.
2334 (_initialize_tui_regs): Remove unused commands.
2335
c3364ea4
MK
23362004-03-13 Mark Kettenis <kettenis@gnu.org>
2337
27d1e716
MK
2338 * NEWS (New native configurations): Mention OpenBSD/amd64.
2339
c3364ea4
MK
2340 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
2341 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
2342 Remove defines.
2343 * config/i386/nm-fbsd64.h: Likewise.
2344 * config/i386/nm-obsd.h: Likewise.
2345 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
2346 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
2347
b2d6d697
KB
23482004-03-12 Kevin Buettner <kevinb@redhat.com>
2349
2350 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
2351 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
2352 New constants.
2353
76e43199
KB
2354 From Richard Sandiford <rsandifo@redhat.com>:
2355 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
2356
34ce532e
KB
23572004-03-12 Kevin Buettner <kevinb@redhat.com>
2358
2359 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
2360 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
2361 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
2362 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
2363 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
2364 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
2365 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
2366 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
2367 definitions from frv-tdep.c to frv-tdep.h.
2368
c4d10515
KB
23692004-03-12 Kevin Buettner <kevinb@redhat.com>
2370
2371 Add shared library support for FR-V FDPIC ABI:
2372 * Makefile.in (solib-frv.o): Add dependencies.
2373 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
2374 New functions.
2375 (frv_push_dummy_call): Add support for FDPIC ABI.
2376 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
2377 for FDPIC ABI.
2378 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
2379 (frv_fdpic_find_canonical_descriptor): Declare.
2380 * solib-frv.c: New file.
2381 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
2382 * config/frv/tm-frv.h (solib.h): Include.
2383
ed1bd989
KB
23842004-03-12 Kevin Buettner <kevinb@redhat.com>
2385
2386 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
2387 (frv-tdep.o): Update dependencies.
2388 * frv-tdep.h: New file.
2389 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
2390 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
2391 constants.
2392 (struct gdbarch_tdep): Add new member ``frv_abi''.
2393 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
2394 functions.
2395 (new_variant): Set ``frv_abi'' field.
2396 (gdb_arch_init): Detect FDPIC executables.
2397
82b38f72
MK
23982004-03-12 Mark Kettenis <kettenis@gnu.org>
2399
2400 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
2401 wrapper.
2402
db1ea9ba
AC
24032004-03-11 Andrew Cagney <cagney@redhat.com>
2404
2405 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
2406
f8766ec1
KB
24072004-03-11 Kevin Buettner <kevinb@redhat.com>
2408
2409 * solist.h (master_so_list): New function.
2410 * solib.c (master_so_list): Likewise.
2411 * solib-svr4.c (enable_break): Iterate over so_list entries
2412 obtained from master list instead of entries obtained directly
2413 via svr4_current_sos().
2414
523f6a27
BE
24152004-03-10 Ben Elliston <bje@gnu.org>
2416
2417 * MAINTAINERS: Update my mail address.
2418
37814c18
KI
24192004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
2420
2421 * remote-m32r-sdi.c: Support hardware watchpoint.
2422
8b9740d8
DJ
24232004-03-09 Daniel Jacobowitz <drow@mvista.com>
2424
2425 * user-regs.c: Update copyright years.
2426 (struct user_regs): Rename to gdb_user_regs.
2427 (append_user_reg, builtin_user_regs, user_regs_init)
2428 (user_reg_add, user_reg_map_name_to_regnum)
2429 (usernum_to_user_reg): Update.
2430
4bb7a0a7
DJ
24312004-03-09 Daniel Jacobowitz <drow@mvista.com>
2432
2433 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
2434 (skip_children): New functions.
2435 (locate_pdi_sibling): Call skip_children.
2436
44e1a9eb
DJ
24372004-03-09 Daniel Jacobowitz <drow@mvista.com>
2438
2439 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
2440 * gdbtypes.c (check_typedef): Update comments.
2441
f3dd6933
DJ
24422004-03-09 Daniel Jacobowitz <drow@mvista.com>
2443
2444 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
2445 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
2446 pointer. Update comment about comp_unit_head.
2447 (struct abbrev_info): Shorten two int flags.
2448 (dwarf_alloc_abbrev): Take a CU argument.
2449 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
2450 each time through the loop. Update cleanup argument.
2451 (psymtab_to_symtab_1): Update cleanup call.
2452 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
2453 abbrev_obstack.
2454 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
2455 Just call obstack_free and clear the pointer.
2456
b40c7d58
DJ
24572004-03-09 Daniel Jacobowitz <drow@mvista.com>
2458
2459 * infrun.c (handle_inferior_event): Remove short-circuit code for
2460 events in a different thread.
2461
333dabeb
DJ
24622004-03-09 Daniel Jacobowitz <drow@mvista.com>
2463
2464 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
2465 print the whole transfer.
2466 (initialize_targets): Update description of "set debug target".
2467
aa17d93e
DJ
24682004-03-09 Daniel Jacobowitz <drow@mvista.com>
2469
2470 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
2471
0b71f08f
NW
24722004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
2473
2474 * MAINTAINERS (write after approval): Add myself.
2475
3930f270
CV
24762004-03-08 Corinna Vinschen <vinschen@redhat.com>
2477
2478 * sh-tdep.c (sh_print_registers_info): Use for loop.
2479 Don't skip multiple registers when a float register is encountered.
2480
a2b4a96c
CV
24812004-03-08 Corinna Vinschen <vinschen@redhat.com>
2482
2483 Fix PR tdep/1291.
2484 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
2485 to official SH documentation.
2486
f15a4bc0
AC
24872004-03-07 Andrew Cagney <cagney@redhat.com>
2488
2489 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
2490 unused function.
2491
9498281f
DJ
24922004-03-07 Daniel Jacobowitz <drow@mvista.com>
2493
2494 * arm-tdep.c (thumb_get_next_pc): Handle BX.
2495 (arm_get_next_pc): Handle BX and BLX.
2496
449e1137
AC
24972004-03-07 Andrew Cagney <cagney@redhat.com>
2498
eded0a31
AC
2499 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
2500 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
2501 HPPA_SP_REGNUM.
2502 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
2503 (hppa_target_read_fp): Delete.
2504 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
2505 register_virtual_size, max_register_raw_size,
2506 max_register_virtual_size, register_byte, register_size,
2507 target_read_fp, fp_regnum, and register_bytes. Set register_type
2508 instead of register_virtual_type.
2509 (hppa32_register_type, hppa64_register_type): Replace
2510 hppa32_register_virtual_type and hppa64_register_virtual_type.
2511 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
2512 (HPPA_FP_REGNUM): Define.
2513
f5f907e2
AC
2514 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
2515
69b4bbe4
AC
2516 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
2517 (pa_do_registers_info): Delete.
2518 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 2519 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 2520 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 2521
78161e48
AC
2522 * infcall.c (legacy_push_dummy_code): Delete #ifdef
2523 GDB_TARGET_IS_HPPA code.
2524 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 2525 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
2526 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
2527 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
2528 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
2529 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
2530 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 2531 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
2532 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
2533 (hppa_frameless_function_invocation, hppa64_store_return_value)
2534 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 2535 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 2536 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 2537 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
2538 (find_proc_framesize, deposit_21, restore_pc_queue)
2539 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 2540 (rp_saved, pc_in_linker_stub): Delete.
78161e48 2541
782eae8b
AC
2542 Unconditionally enable 64-bit frame and ABI code.
2543 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
2544 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
2545 push_dummy_frame, fix_call_dummy, push_arguments,
2546 call_dummy_location, extract_return_value, use_struct_convention,
2547 store_return_value, store_struct_return, saved_pc_after_call,
2548 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
2549 frame_chain, frame_chain_valid, frameless_function_invocation,
2550 frame_saved_pc, and pop_frame.
78161e48 2551
449e1137
AC
2552 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
2553 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
2554 (hppa_gdbarch_init): Do not set PC_REGNUM.
2555
12507572
MK
25562004-03-06 Mark Kettenis <kettenis@gnu.org>
2557
2558 * config/alpha/tm-fbsd.h: Remove file.
2559 * config/alpha/fbsd.mt: Tweak comment.
2560 (TM_FILE): Set to tm-alpha.h.
2561
c107cc1b
AC
25622004-03-05 Andrew Cagney <cagney@redhat.com>
2563
2564 * infrun.c (step_over_function): When non-legacy code, and no
2565 step_frame_id, use the unwinder to get the caller's frame ID.
2566
f2e7c15d
MK
25672004-03-05 Mark Kettenis <kettenis@gnu.org>
2568
8b0c3633
MK
2569 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
2570 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
2571 bfd_arch_unknown. Adjust comment.
2572
f2e7c15d
MK
2573 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
2574 * i386obsd-tdep.c: Correct spelling in comment.
2575 * i386nbsd-tdep.c: Correct spelling in comment.
2576 * sparc-tdep.c: Correct spelling in comments.
2577
1198ecbe
DC
25782004-03-05 David Carlton <carlton@kealia.com>
2579
2580 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
2581 bug.
2582
9eb42ed1
MK
25832004-03-05 Mark Kettenis <kettenis@gnu.org>
2584
2585 * sparc-tdep.c: Fix typo in comment.
2586
52b5e991
JB
25872004-03-04 J. Brobecker <brobecker@gnat.com>
2588
2589 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
2590
d8151005
DJ
25912004-03-04 Daniel Jacobowitz <drow@mvista.com>
2592
2593 * dwarf2read.c: Add comment describing memory lifetimes.
2594 (struct dwarf2_pinfo): Update comment.
2595 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
2596 (read_enumeration, new_symbol): Don't use obsavestring.
2597
cbeae229
MK
25982004-03-04 Mark Kettenis <kettenis@gnu.org>
2599
722d18c2
MK
2600 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
2601 instead of amd64_fill_fxsave.
2602 * amd64bsd-nat.c (store_inferior_registers): Likewise.
2603 * amd64fbsd-nat.c (fill_fpregset): Likewise.
2604
cbeae229
MK
2605 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
2606 Reorganize code a bit.
2607
b4206d25
OF
26082004-03-04 Orjan Friberg <orjanf@axis.com>
2609
2610 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
2611 when the frame pointer is pushed. Don't set the frame pointer's
2612 address on the stack unless it's actually located there.
b4206d25
OF
2613 Set the SRP's address on the stack correctly when the PC is still in
2614 the prologue.
2615 (cris_return_value): New function.
2616 (cris_gdbarch_init): Clear deprecated store_return_value,
2617 extract_return_value.
2618
49b0b195
JB
26192004-03-02 Jim Blandy <jimb@redhat.com>
2620
2621 * stabsread.c (reg_value_complaint): The maximum register number
2622 is one less than the number of registers.
2623
e9ff708b
AC
26242004-03-02 Andrew Cagney <cagney@redhat.com>
2625
2626 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
2627 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
2628 trailing comma and redundant assignment of I386_ST0_REGNUM.
2629 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
2630 32-bit segment registers.
2631
d4715e41
AC
26322004-03-01 Andrew Cagney <cagney@redhat.com>
2633
2634 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
2635 use frame_relative_level and get_next_frame.
2636
3ce2bf18
AC
26372004-02-29 Andrew Cagney <cagney@redhat.com>
2638
2639 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
2640 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
2641 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
2642 Delete macro.
2643
2da6aac3
DJ
26442004-02-29 Daniel Jacobowitz <drow@mvista.com>
2645
2646 * inflow.c (terminal_inferior): Don't give up the terminal if we
2647 previously couldn't get the inferior's terminal state.
2648
6ba34a8d
DJ
26492004-02-29 Daniel Jacobowitz <drow@mvista.com>
2650
2651 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
2652 PC_REGNUM.
2653
faae5abe
AC
26542004-02-28 Andrew Cagney <cagney@redhat.com>
2655
2656 * NEWS: Refer to GDB 6.1.
2657 * README: Refer to GDB 6.1.
2658 * PROBLEMS: Refer to GDB 6.1.
2659
2227a3c5
DJ
26602004-02-28 Daniel Jacobowitz <drow@mvista.com>
2661
2662 * thread-db.c (disable_thread_signals): Remove unused function.
2663
80571bff
MK
26642004-02-28 Mark Kettenis <kettenis@gnu.org>
2665
041bd74b
MK
2666 * amd64-nat.c: Include "gdb_string.h".
2667 (amd64_collect_native_gregset): Zero-extend the 32-bit
2668 general-purpose registers and %eip.
2669
3c017e40
MK
2670 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
2671 * amd64-tdep.c (amd64_collect_fxsave): New function.
2672 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
2673
80571bff
MK
2674 * i387-tdep.h: Update copyright year.
2675 (i387_collect_fxsave): New prototype.
2676 * i387-tdep.c: Update copyright year.
2677 (i387_collect_fxsave): New function containing most of the code
2678 from i387_fill_fxsave.
2679 (i387_fill_fxsave): Call i387_collect_fxsave.
2680
50d71875
AC
26812004-02-28 Andrew Cagney <cagney@redhat.com>
2682
2683 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
2684 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
2685
4a28816e
MK
26862004-02-28 Mark Kettenis <kettenis@gnu.org>
2687
2688 * amd64-tdep.c (amd64_frame_cache): Fix comment.
2689
dbda9972
AC
26902004-02-28 Andrew Cagney <cagney@redhat.com>
2691
2692 * utils.c: Use "", instead of <>, to include readline.
2693 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
2694 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
2695 * source.c, solib.c, exec.c, event-top.c: Ditto.
2696 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
2697 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
2698 * Makefile.in: Update all dependencies.
2699 (readline_tilde_h, readline_history_h): Define.
2700 (readline_headers): Delete.
2701
83277a99
MK
27022004-02-28 Mark Kettenis <kettenis@gnu.org>
2703
91ae4303
MK
2704 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
2705 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
2706 "config/i386/tm-lx64.h".
2707
83277a99
MK
2708 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
2709 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
2710 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
2711
6e1d7d6c
AC
27122004-02-28 Andrew Cagney <cagney@redhat.com>
2713
ecc9ac84
AC
2714 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
2715
6e1d7d6c
AC
2716 * breakpoint.c (_initialize_breakpoint): Use
2717 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
2718 Add help to show command.
2719
9671aeef
MK
27202004-02-28 Mark Kettenis <kettenis@gnu.org>
2721
7fa2737c
MK
2722 * i386-nat.c: Reformat to be closer to coding standards.
2723 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
2724 `retval'. Make variables `align' and `size' local to while-loop.
2725 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
2726 (_initialize_i386_nat): New prototype.
2727
9671aeef
MK
2728 * tui/tui.c: Include <readline/readline.h> instead of
2729 "readline/readline.h". Include it after <term.h> and
2730 "gdb_curses.h".
2731
fca7aa43
AC
27322004-02-27 Andrew Cagney <cagney@redhat.com>
2733
412275d5
AC
2734 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
2735 the new frame unwind code.
2736 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
2737 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
2738 PCOQ_HEAD_REGNUM.
2739
fca7aa43
AC
2740 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
2741 "return_value" and "push_dummy_call".
2742 (hppa32_use_struct_convention): Delete unused function.
2743 (hppa32_store_return_value): Delete unused function.
2744 (hppa32_extract_return_value): Delete unused function.
2745 (hppa32_stack_align): Delete function.
2746
e6a8a7d2
EZ
27472004-02-27 Eli Zaretskii <eliz@elta.co.il>
2748
2749 * coffread.c (enter_linenos): Don't let rawptr reference memory
2750 outside linetab[]'s limits.
2751
1797a8f6
AC
27522004-02-27 Andrew Cagney <cagney@redhat.com>
2753
2754 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
2755 inferior stack space - the stack needs to grow upwards.
2756 (hppa32_frame_align): New function.
2757 (hppa64_frame_align): Replace hppa_frame_align.
2758 (hppa_gdbarch_init): Update.
2759
2e4b5889
OF
27602004-02-26 Orjan Friberg <orjanf@axis.com>
2761
2762 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
2763 (dwarf2-frame.h): Include.
2764 (enum cris_regnums): New enum CRIS_FP_REGNUM.
2765 Remove static variables related to ABI setting.
2766 (struct gdbarch_tdep): Remove cris_abi member.
2767 (struct frame_extra_info): Remove.
2768 (cris_unwind_cache, stack_item): New structs.
2769 (cris_frame_unwind, cris_frame_base): New variables.
2770 (push_stack_item, pop_stack_item)
2771 (cris_frame_unwind_cache, cris_frame_this_id)
2772 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
2773 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
2774 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
2775 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
2776 (cris_reg_struct_has_addr): New functions.
2777 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 2778 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
2779 (cris_store_struct_return, cris_frameless_function_invocation)
2780 (cris_pop_frame, cris_skip_prologue_main)
2781 (cris_abi_original_store_return_value)
2782 (cris_abi_v2_store_return_value)
2783 (cris_abi_original_extract_return_value)
2784 (cris_abi_v2_extract_return_value)
2785 (cris_abi_original_reg_struct_has_addr)
2786 (cris_abi_v2_reg_struct_has_addr)
2787 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
2788 (cris_push_return_address, cris_abi_update): Remove.
2789 (_initialize_cris_tdep): Remove ABI command.
2790 (cris_dump_tdep): Ditto.
8718a420 2791 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
2792 Set store_return_value, extract_return_value, push_dummy_code,
2793 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
2794 frame_unwind_append_sniffer, frame_base_set_default.
2795 Clear deprecated init_frame_pc, push_arguments, store_return_value,
2796 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
2797 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 2798 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
2799 init_extra_frame_info, frameless_function_invocation, frame_chain,
2800 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
2801 dummy_write_sp.
8718a420 2802
6b9acc27
JJ
28032004-02-26 Jeff Johnston <jjohnstn@redhat.com>
2804
2805 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
2806 * valprint.c (print_hex_chars): Change from static to external.
2807 (print_char_chars): New function.
2808 * printcmd.c (print_scalar_formatted): For integer and enum types
2809 that are longer than LONGEST, perform processing via appropriate
2810 print_*_chars routines.
2811
a431654a
AC
28122004-02-26 Andrew Cagney <cagney@redhat.com>
2813
2814 * Makefile.in: Update dependencies.
2815 Changes from Ulrich Weigand,
2816 * s390-tdep.c: Include "dwarf2-frame.h".
2817 (s390_dwarf2_frame_init_reg): New function.
2818 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
2819 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
2820
fa8d40ab
JJ
28212004-02-26 Jeff Johnston <jjohnstn@redhat.com>
2822
2823 * breakpoint.c (pending_break_support): New setting variable.
2824 (break_command_1): Account for pending_break_support setting
2825 when creating pending breakpoints.
2826 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
2827 (_initialize_breakpoint): Add "set breakpoint pending" and
2828 "show breakpoint pending" commands.
2829
0dcd613f
AC
28302004-02-26 Andrew Cagney <cagney@redhat.com>
2831
2832 Fix PR i18n/1570.
2833 * charset.c (backslashable, backslashed, represented): Remove 'e'
2834 from list of escaped characters, not part of ISO-C.
2835
479272a3
JB
28362004-02-25 J. Brobecker <brobecker@gnat.com>
2837
2838 From Peter Schauer <schauer@pdf.de>:
2839 * tui/tui.c: Move system header includes after local includes.
2840 Fixes a build failure on solaris systems.
2841
7613d933
JB
28422004-02-25 J. Brobecker <brobecker@gnat.com>
2843
2844 * configure.in: Refine the previous change.
2845 * configure: Regenerate.
2846
9c1488cb
MK
28472004-02-25 Mark Kettenis <kettenis@gnu.org>
2848
2849 * amd64-tdep.h: Renamed from x86-64-tdep.h.
2850 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
2851 "amd64-tdep.h" instead of "x86-64-tdep.h".
2852 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
2853 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
2854 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
2855 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
2856 and "x86-64-tdep.c".
2857 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
2858 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
2859 and "x86-64-tdep.c".
2860 * amd64bsd-nat.c: Update copyright year.
2861 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
2862 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
2863 "x86-64-tdep.h".
2864 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
2865 "x86-64-tdep.h".
2866 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
2867 "x86-64-tdep.h".
2868 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
2869 "x86-64-tdep.h".
2870 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
2871 "x86-64-tdep.h".
2872 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
2873 "x86-64-tdep.h".
8718a420 2874 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
2875 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
2876 * Makefile.in (amd64_linux_tdep_h): Renamed from
2877 x86_64_linux_tdep_h.
2878 (amd64_tdep_h): Renamed from x86_64_tdep_h.
2879 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
2880 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
2881 (amd64obsd-tdep.o): Update dependencies.
2882 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
2883 dependencies.
2884 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
2885 dependencies.
2886 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
2887 amd64-linux-nat.c amd64-linux-tdep.c.
2888 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
2889 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
2890 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
2891 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
2892 amd64-tdep.o and amd64-linux-tdep.o.
2893 (TM_FILE): Set to tm-linux64.h.
2894 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
2895 (NAT_FILE): Set to nm-linux64.h.
2896 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
2897 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
2898 amd64-tdep.o.
2899 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
2900 amd64-tdep.o.
2901 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
2902 amd64-tdep.o.
2903
4b8dad4a
RM
29042004-02-25 Roland McGrath <roland@redhat.com>
2905
2906 * remote.c (remote_protocol_qPart_auxv): New variable.
2907 (init_all_packet_configs): Initialize it.
2908 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
2909 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
2910 (show_remote_cmd): Call it.
2911 (_initialize_remote): Initialize commands.
2912 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
2913 service TARGET_OBJECT_AUXV requests.
2914
66745969
JB
29152004-02-25 J. Brobecker <brobecker@gnat.com>
2916
2917 * configure.in: Make sure that the wborder function is available.
2918 Otherwise, search for it in the cur_colr library.
2919 * configure: Regenerate.
2920
79508e1e
AC
29212004-02-25 Andrew Cagney <cagney@redhat.com>
2922
2923 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
2924
571ee600
MK
29252004-02-25 Mark Kettenis <kettenis@gnu.org>
2926
2927 * config/i386/tm-x86-64linux.h: Tweak comments.
2928
2b1b322f 29292004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
2930
2931 * MAINTAINERS: Add self to write-after-approval list.
2932
4d2acc65
AC
29332004-02-25 Andrew Cagney <cagney@redhat.com>
2934
4b8dad4a 2935 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
2936 * cli/cli-script.c (execute_control_command): Unconditionally
2937 install a cleanup. Default "ret" to "invalid_control". Use
2938 "break" instead of "return" to escape from the switch.
2939
4cfcaf21
JB
29402004-02-24 J. Brobecker <brobecker@gnat.com>
2941
2942 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
2943 with the lines macro defined in term.h on AiX.
2944 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
2945 a collision with the label_width macro defined in term.h on AiX.
2946
54a5c8d8
KB
29472004-02-23 David Mosberger <davidm@hpl.hp.com>
2948
2949 Committed by Kevin Buettner <kevinb@redhat.com>.
2950
2951 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
2952 * ia64-tdep.c (ia64_write_pc): Make it a global function.
2953 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
2954 instead of ia64_write_pc().
2955 * ia64-linux-tdep.c (regcache.h): Include.
2956 (ia64_linux_write_pc): New function.
4b8dad4a 2957
8a1dac83
RM
29582004-02-23 Roland McGrath <roland@redhat.com>
2959
2960 * auxv.c (info_auxv_command): Fix typos in error messages.
2961
90f90721
MK
29622004-02-23 Mark Kettenis <kettenis@gnu.org>
2963
8a1dac83 2964 * x86-64-tdep.h: Tweak comment.
90f90721
MK
2965 (enum amd64_regnum): New.
2966 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
2967 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
2968 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
2969 (X86_64_XMM1_REGNUM): Removed.
2970 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
2971 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
2972 prototypes for renamed functions.
2973 * x86-64-tdep.c: Fix typo.
2974 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
2975 register numbers.
2976 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
2977 Use constants from `enum amd64_regnum' for register numbers.
2978 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
2979 (amd64_analyze_prologue, amd64_frame_cache,
2980 amd64_sigtramp_frame_cache): Use constants from `enum
2981 amd64_regnum' for register numbers.
2982 (amd64_supply_fpregset): Adjust for renamed functions.
2983 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
2984 `enum amd64_regnum' for register numbers.
2985 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
2986 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
2987 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
2988 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
2989 (amd64_linux_fill_gregset): Adjust for renamed macros.
2990 (fetch_core_registers): Adjust for renamed functions.
2991 (amd64_linux_init_abi): Adjust for renamed functions.
2992 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
2993 renamed functions.
2994 * amd64-nat.c: Adjust for renamed macros.
2995 * amd64bsd-nat.c (fetch_inferior_registers)
2996 (store_inferior_registers): Use constants from `enum amd64_regnum'
2997 for register numbers. Adjust for renamed variables.
2998 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
2999 renamed variables.
3000 (_initialize_amd64fbsd_nat): Use constants from `enum
3001 amd64_regnum' for register numbers.
3002 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
3003 `enum amd64_regnum' for register numbers.
3004 (amd64fbsd_init_abi): Adjust for renamed functions.
3005 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
3006 `enum amd64_regnum' for register numbers.
3007 (amd64nbsd_init_abi): Adjust for renamed functions.
3008 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
3009 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
3010 `enum amd64_regnum' for register numbers.
3011 (amd64obsd_init_abi): Adjust for renamed functions.
3012 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
3013
d5479188
JJ
30142004-02-23 Jeff Johnston <jjohnstn@redhat.com>
3015
3016 * breakpoint.c (print_one_breakpoint): Do not output spaces
3017 after printing <PENDING> for a pending breakpoint.
3018
81cb7cc9
JJ
30192004-02-23 Jeff Johnston <jjohnstn@redhat.com>
3020
3021 * printcmd.c (print_scalar_formatted): Initialize val_long
3022 to remove compiler warning message.
3023
cbdeadca
JJ
30242004-02-23 Jeff Johnston <jjohnstn@redhat.com>
3025
3026 * defs.h (nquery, yquery): New prototypes.
3027 * breakpoint.c (break_command_1): Use new nquery interface.
3028 * utils.c (defaulted_query, nquery, yquery): New functions.
3029
da6bab63
AC
30302004-02-23 Andrew Cagney <cagney@redhat.com>
3031
2f690297
AC
3032 * hppa-tdep.c (hppa_frame_align): New function.
3033 (hppa32_push_dummy_call): New function.
3034 (hppa64_push_dummy_call): New function.
3035 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
3036 disabled.
8a1dac83 3037
da6bab63
AC
3038 * infcall.c (legacy_push_dummy_code): Don't call deprecated
3039 FIX_CALL_DUMMY when push_dummy_call is available.
3040 (call_function_by_hand, push_dummy_code): Ditto.
3041
abf9b42d
AC
30422004-02-22 Andrew Cagney <cagney@redhat.com>
3043
3044 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
3045 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
3046 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
3047 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
3048 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
3049 call_dummy_location to ON_STACK.
3050
10fc94a4
MK
30512004-02-22 Mark Kettenis <kettenis@gnu.org>
3052
51433e4b
MK
3053 * x86-64-linux-tdep.c: Tweak comment.
3054 (amd64_linux_supply_gregset): Renamed from
3055 x86_64_linux_supply_gresget.
3056 (amd64_linux_fill_gregset): Renamed from
3057 x86_64_linux_fill_gregset.
3058 (fetch_core_registers): Adjust for renamed functions.
3059 (amd64_core_fns): Renamed from x86_64_core_fns.
3060 (amd64_linux_sigtramp_start): Renamed from
3061 x86_64_linux_sigtramp_start.
3062 (amd64_linux_pc_in_sigtramp): Renamed from
3063 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
3064 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
3065 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
3066 (amd64_linux_sigcontext_addr): Renamed from
3067 x86_64_linux_sigcontext_addr.
3068 (amd64_linux_sc_reg_offset): Renamed from
3069 x86_64_linux_sc_reg_offset.
3070 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
3071 Adjust for renamed functions and variables.
3072 (_initialize_amd64_linux_tdep): Renamed from
3073 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
3074 variables.
3075 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
3076 Adjust for renamed functions.
3077
430eaf2e
MK
3078 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
3079 from x86_64_linux_gregset64_reg_offset.
3080 (amd64_linux_gregset32_reg_offset): Rename from
3081 x86_64_linux_gregset64_reg_offset.
3082 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
3083 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
3084 (amd64_linux_dr_set_control): Renamed from
3085 x86_64_linux_dr_set_control. Adjust for renamed functions.
3086 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
3087 Adjust for renamed functions.
3088 (amd64_linux_dr_reset_addr): Renamed from
3089 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
3090 (amd64_linux_dr_get_status): Renamed from
3091 x86_64_linux_dr_get_status. Adjust for renamed functions.
3092 (_initialize_amd64_linux_nat): Renamed from
3093 _initialize_x86_64_linux_nat. Adjust for renamed variables and
3094 functions.
3095 * config/i386/nm-x86-64linux.h: Update copyright year.
3096 Adjust for renamed functions.
3097
10fc94a4
MK
3098 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
3099 amd64fbsd_sigtramp_start.
3100 (amd64fbsd_sigtramp_end_addr): Renamed from
3101 amd64fbsd_sigtramp_end.
3102 (amd64fbsd_init_abi): Adjust for renamed variables.
3103 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
3104 variables.
3105 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
3106 amd64fbsd_sigtramp_start.
3107 (amd64fbsd_sigtramp_end_addr): Renamed from
3108 amd64fbsd_sigtramp_end.
3109
343af405
AC
31102004-02-22 Andrew Cagney <cagney@redhat.com>
3111
537987fc
AC
3112 * hppa-tdep.c (hppa32_return_value): New function.
3113 (hppa64_return_value): New function.
3114 (hppa_gdbarch_init): Set return_value; keep disabled.
3115
fad850b2
AC
3116 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
3117 struct-return and inferior function call methods.
3118
26d08f08
AC
3119 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
3120 "frame-base.h".
3121 (struct hppa_frame_cache): Define.
3122 (hppa_frame_cache, hppa_frame_this_id): New functions.
3123 (hppa_frame_prev_register): New function.
3124 (hppa_frame_unwind, hppa_frame_base): New variables.
3125 (hppa_frame_unwind_sniffer): New function.
3126 (hppa_frame_base_address, hppa_unwind_pc): New function.
3127 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
3128 sniffer, and frame base sniffer; keep disabled.
3129 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
3130 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
3131
e7d7bd65
AC
3132 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
3133 to predicates for "seriously old code".
3134
e963316f
AC
3135 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
3136 runtime if(0).
3137
56132691
AC
3138 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
3139 unsigned.
3140 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 3141
343af405
AC
3142 * config/pa/tm-hppa.h: Update copyright.
3143 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3144 (deprecated_init_frame_pc_default): Delete declaration.
3145 (hppa_frame_init_saved_regs): Delete declaration.
3146 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
3147 * hppa-tdep.c: Include "arch-utils.h".
3148 (hppa_gdbarch_init): Set deprecated init_frame_pc
3149 and deprecated frame_init_saved_regs.
3150 (hppa_frame_init_saved_regs): Make static.
3151
f5859b4d
MK
31522004-02-22 Mark Kettenis <kettenis@gnu.org>
3153
86f6f8e7 3154 Remove old 386BSD support.
cf7c5c23 3155 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
3156 * configure.host: Remove i[34567]86-*-bsd*.
3157 * configure.tgt: Remove i[34567]86-*-bsd*.
3158 * i386b-nat.c: Removed.
3159 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
3160 (i386b-nat.o): Remove dependencies.
3161
86f6f8e7
MK
3162 * config/i386/i386bsd.mh: Removed.
3163 * config/i386/i386bsd.mt: Removed.
3164 * config/i386/nm-i386bsd.h: Removed.
3165 * config/i386/tm-i386bsd.h: Removed.
3166 * config/i386/xm-i386bsd.h: Removed.
3167
971218cd
MK
3168 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
3169
7e654c37
MK
3170 * amd64fbsd-tdep.c: Include "solib-svr4.h".
3171 (amd64fbsd_init_abi): Set link map offsets.
3172 * amd64nbsd-tdep.c: Include "slib-svr4.h".
3173 (amd64nbsd_init_abi): Set link map offsets.
3174 * amd64obsd-tdep.c: Include "solib-svr4.h".
3175 (amd64obsd_init_abi): Set link map offsets.
3176 * i386fbsd-tdep.c: Include "solib-svr4.h".
3177 (i386fbsd_init_abi): Set link map offsets.
3178 * i386nbsd-tdep.c: Include "solib-svr4.h".
3179 (i386nbsdelf_init_abi): Set link map offsets.
3180 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
3181 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
3182 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
3183 solib-legacy.o and core-aout.o. Reformat.
3184 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
3185 solib-svr4.o, solib-legacy.o. Reformat.
3186 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
3187 * config/i386/nbsdelf.mh: Reformat.
3188 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
3189 solib-svr4.o, solib-legacy.o and corelow.o.
3190 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
3191 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
3192 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
3193 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
3194 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
3195 (TM_FILE): Set to tm-fbsd.h.
3196 * config/i386/nbsd.mt (TDEPFILES): Reformat.
3197 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
3198 solib-svr4.o.
3199 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
3200 solib-svr4.o.
3201 (TM_FILE): Set to nm-nbsd.h.
3202 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
3203 Simplify shared library support. Don't include "elf/common.h".
3204 (SVR4_SHARED_LIBS): Don't define.
3205 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
3206 "solib.h".
3207 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
3208 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
3209 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
3210 Don't include "i386/tm-i386.h". Include "solib.h".
3211 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
3212 Don't include "i386/tm-i386.h".
3213 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
3214 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
3215 Include "i386/xm-i386.h".
3216 (HOST_LONG_DOUBLE_FORMAT): Remove.
3217
5d93ae8c
MK
3218 Fix OpenBSD/i386 sigtramp recognition.
3219 * i386-tdep.h: Update copyright year.
3220 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
3221 (i386bsd_sigtramp_end): New prototypes.
3222 (i386fbsd_sigtramp_start_addr): Renamed from
3223 i386fbsd_sigtramp_start.
3224 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
3225 (i386obsd_sigtramp_start_addr): Renamed from
3226 i386obsd_sigtramp_start.
3227 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
3228 * i386bsd-tdep.c: Update copyright year.
3229 (i386bsd_pc_in_sigtramp): Make public.
3230 * i386fbsd-nat.c: Update copyright year.
3231 (_initialize_i386fbsd_nat): Adjust for renamed variables.
3232 * i386fbsd-tdep.c: Update copyright year.
3233 (i386fbsd_sigtramp_start_addr): Renamed from
3234 i386fbsd_sigtramp_start.
3235 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
3236 (i386fbsdaout_init_abi): Adjust for renamed variables.
3237 * i386obsd-nat.c: Update copyright year.
3238 (_initialize_i386obsd_nat): Adjust for renamed variables.
3239 * i386obsd-tdep.c: Include "target.h".
3240 (i386obsd_page_size): New variable.
3241 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
3242 (i386obsd_sigtramp_end): New functions.
3243 (i386obsd_sigtramp_start_addr): Renamed from
3244 i386obsd_sigtramp_start.
3245 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
3246 (i386obsd_init_abi): Adjust for renamed variables. Set
3247 pc_in_sigtramp, sigtramp_start and sigtramp_end.
3248 * Makefile.in (i386obsd-tdep.o): Update dependencies.
3249
84d04465
MK
3250 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
3251 trampoline change in OpenBSD kernel.
3252
b053aceb
MK
3253 * amd64-nat.c: Update copyright year.
3254 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
3255 architecture from REGCACHE.
3256
f5859b4d
MK
3257 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
3258 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
3259
e4bbbda8
MK
32602004-02-21 Mark Kettenis <kettenis@gnu.org>
3261
ba361932
MK
3262 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
3263 i[34567]86-*-openbsd3.[0-3].
3264 * config/i386/obsdaout.mh: New file.
3265
d3e48264
MK
3266 * config/i386/obsd.mh (MH_FLAGS): Remove.
3267
60a6eeb6
MK
3268 Fix PR build/1549.
3269 * i386obsd-tdep.c: Update copyright years. Include
3270 "solib-svr4.h".
3271 (i386obsd_init_abi): Don't set regset_from_core_section here.
3272 (i386obsd_aout_init_abi): New function. Set
3273 regset_from_core_section here.
3274 (i386obsd_elf_init_abi): New function.
3275 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
3276 * Makefile.in (i386obsd-tdep.o): Update dependecies.
3277 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3278 (TM_FILE): Set to tm-nbsd.h.
3279
3280 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
3281 solib-sunos.o.
3282
e4bbbda8
MK
3283 * solib-svr4.h: Update copyright year.
3284 (svr4_ilp32_fetch_link_map_offsets)
3285 (svr4_lp64_fetch_link_map_offsets): New prototype.
3286 * solib-svr4.c: Update copyright year.
3287 (svr4_ilp32_fetch_link_map_offsets)
3288 (svr4_lp64_fetch_link_map_offsets): New function.
3289
f6fe98ef
DJ
32902004-02-20 Daniel Jacobowitz <drow@mvista.com>
3291
3292 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
3293 to the partial symbol table.
3294
589ca796
JB
32952004-02-20 J. brobecker <brobecker@gnat.com>
3296
3297 * PROBLEMS: Add description of problem documented under gdb/1560.
3298
2031c21a
MK
32992004-02-20 Mark Kettenis <kettenis@gnu.org>
3300
30b344b1
MK
3301 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
3302 comments.
3303 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
3304 functions.
3305 (amd64obsd_init_abi): Reorder initializations. Use
3306 amd64obsd_r_reg_offset to initialize the general-purpose register
3307 set details. Set regset_from_core_section.
3308 (_initialize_amd64obsd_tdep): Rename from
3309 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
3310 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
3311 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
3312
2031c21a
MK
3313 * NEWS (New native configurations): Mention OpenBSD/alpha.
3314 * configure.tgt: Add alpha*-*-openbsd*.
3315 * configure.host: Add alpha*-*-openbsd*.
3316 * alphanbsd-tdep.c: Update copyright year.
3317 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
3318
42471775
AC
33192004-02-20 Andrew Cagney <cagney@redhat.com>
3320
3321 Fix PR tdep/1372.
3322 * configure.tgt: Delete target "none-*-*".
3323 * configure.host: Delete host "none-*-*".
3324 * config/none/none.mh: Delete file.
3325 * config/none/none.mt: Delete file.
3326 * config/none/xm-none.h: Delete file.
3327 * config/none/tm-none.h: Delete file.
3328 * config/none/nm-none.h: Delete file.
3329
960ccd7d
FF
33302004-02-19 Fred Fish <fnf@redhat.com>
3331
3332 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
3333 cache->uses_fp prior to setting it.
3334
5f883edd
FF
33352004-02-19 Fred Fish <fnf@redhat.com>
3336
3337 Fix for PR breakpoint/1558.
3338 * sh-tdep.c (IS_JSR): New macro.
3339 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
3340
f98c22d5
JB
33412004-02-19 Jim Blandy <jimb@redhat.com>
3342
3343 * findvar.c (value_from_register): Doc fix.
3344
95051d27
JJ
33452004-02-19 Jeff Johnston <jjohnstn@redhat.com>
3346
3347 * printcmd.c (print_scalar_formatted): Do not check for sizeof
3348 type being greater than sizeof of host's LONGEST. Always use
3349 unpack_long() unless format 'f' chosen.
3350
ccefbec3
EZ
33512004-02-19 Joel Brobecker <brobecker@gnat.com>
3352
3353 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 3354
ccefbec3
EZ
3355 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
3356 contains a symbol wich is the best, non-exact match for the given
3357 pc. Update comments.
3358
33592004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 3360
2ede629f
EZ
3361 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
3362 macro, which was part of the now removed Mach 3 port.
3363 * utils.c (request_quit): Ditto.
3364
567ee972
MK
33652004-02-18 Mark Kettenis <kettenis@gnu.org>
3366
3367 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
3368 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
3369
50cca7bb
MK
33702004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3371
3372 Committed by Mark Kettenis <kettenis@gnu.org>.
3373
3374 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
3375 Define.
3376
226361c4
AC
33772004-02-18 Andrew Cagney <cagney@redhat.com>
3378
3379 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
3380 CONFIG_INSTALL and CONFIG_UNINSTALL.
3381 * configure: Re-generate.
3382 * interps.h (INTERP_TUI): Define.
3383 * Makefile.in: Update dependencies.
3384 (TUI): New macro.
3385 (tui-main.o): Specify dependencies.
3386 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
3387 * tui/tui-main.c: New file.
3388
49cfa46f
MK
33892004-02-18 Mark Kettenis <kettenis@gnu.org>
3390
e2879ccb
MK
3391 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
3392 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
3393 dependencies.
3394 * configure.host: Add x86_64-*-openbsd*.
3395 * configure.tgt: Add x86_64-*-openbsd*.
3396 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
3397
c43f4bec
MK
3398 * tui/tui.c: Don't include <malloc.h>.
3399
09ae75b6
MK
3400 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
3401 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
3402 amd64nbsd-tdep.c.
3403
49cfa46f 3404 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 3405 static. Remove extraneous whitespace.
49cfa46f
MK
3406 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
3407 static.
3408
05957fdb
JB
34092004-02-17 Jim Blandy <jimb@redhat.com>
3410
3411 * findvar.c (value_from_register): Doc fix.
3412
d0f54f9d
JB
34132004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3414
3415 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 3416
8a1dac83 3417 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
3418 CORE_ADDR as type for selectors. Correct types for GNU run time
3419 message lookup function to use double indirection.
3420 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
3421 * objc-lang.h (lookup_child_selector): Adapt prototype.
3422
9cbd5950
JB
3423 * s390-nat.c (SUBOFF): New macro.
3424 (supply_gregset, fill_gregset): Use it to handle debugging
3425 of 32-bit exectuables running under a 64-bit kernel.
3426 * s390-tdep.c: Include "solib-svr4.h".
3427 (s390_svr4_fetch_link_map_offset): New function.
3428 (s390x_svr_fetch_link_map_offset): Likewise.
3429 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
3430 * Makefile.in (s390-tdep.o): Update dependencies.
3431
a8c99f38
JB
3432 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
3433 "frame-unwind.h".
3434 (s390_readinstruction): Reformat. Use read_memory_nobpt.
3435 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
3436 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
3437 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
3438 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
3439 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 3440 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
3441 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
3442 (struct frame_extra_info): Remove.
3443 (s390_memset_extra_info): Remove.
f73b1eff
JB
3444 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
3445 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
3446 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
3447 (is_rse): Renamed to ...
3448 (is_rsy): ... this. Support long displacements.
3449 (is_rxe): Renamed to ...
3450 (is_rxy): ... this. Support long displacements.
3451 (compute_x_addr): Support long displacements.
3452 (struct s390_prologue_data): New data type.
3453 (s390_on_stack): Change API to use struct s390_prologue_data.
3454 (s390_store): Reimplement.
3455 (s390_load): New function.
3456 (s390_get_signal_frame_info): Remove.
3457 (s390_get_frame_info): Remove, replace by ...
3458 (s390_analyze_prolog): ... this new function.
3459 (s390_check_function_end): Remove.
3460 (s390_function_start): Remove.
3461 (s390_frameless_function_invokation): Remove.
3462 (s390_is_sigreturn): Remove.
3463 (s390_init_frame_pc_first): Remove.
3464 (s390_init_frame_extra_info): Remove.
3465 (s390_frame_init_saved_regs): Remove.
3466 (s390_frame_saved_pc_nofix): Remove.
3467 (s390_frame_saved_pc): Remove.
3468 (s390_frame_chain): Remove.
3469 (s390_fp_regnum, s390_read_fp): Remove.
3470 (s390_pop_frame_regular, s390_pop_frame): Remove.
3471 (s390_saved_pc_after_call): Remove.
3472 (s390_skip_prologue): Reimplement.
3473 (s390_in_function_epilogue_p): Support long displacements.
3474 (struct s390_unwind_cache): New data structure.
3475 (s390_frame_unwind_cache): New function.
3476 (s390_prologue_frame_unwind_cache): Likewise.
3477 (s390_backchain_frame_unwind_cache): Likewise.
3478 (s390_frame_this_id, s390_frame_prev_register): Likewise.
3479 (s390_frame_unwind): Define.
3480 (s390_frame_sniffer): New function.
3481 (struct s390_pltstub_unwind_cache): New data structure.
3482 (s390_pltstub_frame_unwind_cache): New function.
3483 (s390_pltstub_frame_this_id): Likewise.
3484 (s390_pltstub_frame_prev_register): Likewise.
3485 (s390_pltstub_frame_unwind): Define.
3486 (s390_pltstub_frame_sniffer): New function.
3487 (struct s390_sigtramp_unwind_cache): New data structure.
3488 (s390_sigtramp_frame_unwind_cache): New function.
3489 (s390_sigtramp_frame_this_id): Likewise.
3490 (s390_sigtramp_frame_prev_register): Likewise.
3491 (s390_sigtramp_frame_unwind): Define.
3492 (s390_sigtramp_frame_sniffer): New function.
3493 (s390_frame_base_address, s390_local_base_address): New functions.
3494 (s390_frame_base): Define.
3495 (s390_unwind_pc, s390_unwind_sp): New function.
3496 (s390_push_dummy_call): Use new frame base location.
3497 (s390_unwind_dummy_id): Likewise.
3498 (s390_gdbarch_init): Remove calls to:
3499 set_gdbarch_frameless_function_invocation,
3500 set_gdbarch_deprecated_init_frame_pc,
3501 set_gdbarch_deprecated_frame_chain,
3502 set_gdbarch_deprecated_frame_init_saved_regs,
3503 set_gdbarch_deprecated_pop_frame,
3504 set_gdbarch_deprecated_init_extra_frame_info,
3505 set_gdbarch_deprecated_init_frame_pc_first,
3506 set_gdbarch_deprecated_target_read_fp,
3507 set_gdbarch_deprecated_frame_saved_pc,
3508 set_gdbarch_deprecated_saved_pc_after_call,
3509 set_gdbarch_deprecated_fp_regnum.
3510 Add calls to:
3511 set_gdbarch_in_solib_call_trampoline,
3512 frame_unwind_append_sniffer,
3513 frame_base_set_default,
3514 set_gdbarch_unwind_pc,
3515 set_gdbarch_unwind_sp.
3516 * Makefile.in (s390-tdep.o): Update dependencies.
3517
b0cf273e
JB
3518 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
3519 (S390_STACK_FRAME_OVERHEAD): Remove.
3520 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
3521 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
3522 (s390_promote_integer_argument): Remove.
3523 (s390_cannot_extract_struct_value_address): Remove.
3524 (s390_use_struct_convention, s390_store_struct_return): Remove.
3525 (s390_extract_return_value, s390_store_return_value): Remove.
3526 (s390_return_value_convention, s390_return_value): New functions.
3527 (is_float_singleton): Handle typedefs.
8a1dac83 3528 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
3529 Remove, replace by ...
3530 (s390_function_arg_pass_by_reference, s390_function_arg_float,
3531 s390_function_arg_integer): ... these new functions.
3532 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
3533 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
3534 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
3535 Fill in tdep->abi.
3536 Remove calls to:
3537 set_gdbarch_deprecated_store_struct_return,
3538 set_gdbarch_deprecated_extract_return_value,
3539 set_gdbarch_deprecated_store_return_value,
3540 set_gdbarch_use_struct_convention,
3541 set_gdbarch_extract_struct_value_address,
3542 set_gdbarch_deprecated_pc_in_call_dummy,
3543 set_gdbarch_deprecated_push_arguments,
3544 set_gdbarch_deprecated_save_dummy_frame_tos,
3545 set_gdbarch_deprecated_push_return_address,
3546 set_gdbarch_deprecated_sizeof_call_dummy_words,
3547 set_gdbarch_deprecated_call_dummy_words,
3548 set_gdbarch_deprecated_dummy_write_sp.
3549 Add calls to:
3550 set_gdbarch_push_dummy_call,
3551 set_gdbarch_unwind_dummy_id,
3552 set_gdbarch_return_value.
8a1dac83 3553
e1457d83
JB
3554 * config/s390/nm-linux.h: Update comments.
3555 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
3556 (STOPPED_BY_WATCHPOINT): Redefine.
3557 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
3558 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
3559 (s390_stopped_by_watchpoint): Likewise.
3560 (watch_area_cnt): Remove.
3561 * s390-nat.c: Update comments.
3562 (watch_area): Remove typedef.
3563 Global replace watch_area by struct watch_area.
3564 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 3565 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
3566 use s390_inferior_tid. Add short-cut for the no watchpoint case.
3567 (s390_fix_watch_points): Remove pid argument,
3568 use s390_inferior_tid. Recompute area spanned by watchpoints.
3569 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
3570 argument. Reimplement.
3571
d0f54f9d
JB
3572 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
3573 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
3574 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 3575 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
3576 core-regset.o.
3577 * config/s390/s390x.mt: Remove.
3578 * config/s390/tm-s390.h: Remove.
3579 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
3580 (TARGET_ELF64): Remove.
3581 (SKIP_TRAMPOLINE_CODE): Do not undefine.
3582 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
3583 s390*-*-* case; always set gdb_target to s390.
3584 * regformats/reg-s390.dat: Remove control registers.
3585 * regformats/reg-s390x.dat: Likewise.
3586 * s390-tdep.h: New file.
8a1dac83 3587 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
3588 Include "inferior.h" and "s390-tdep.h".
3589 Remove private definition of offsetof.
3590 (s390_register_u_addr): Remove.
3591 (regmap_gregset, regmap_fpregset): Define.
3592 (supply_gregset, fill_gregset): Reimplement.
3593 (supply_fpregset, fill_fpregset): Likewise.
3594 (s390_inferior_tid): New function.
3595 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
3596 (fetch_inferior_registers, store_inferior_registers): Likewise.
3597 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
3598 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
3599 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
3600 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
3601 (struct gdbarch_tdep): Define.
3602 (struct s390_register_info): Define.
3603 (s390_register_info): New variable.
3604 (s390_register_name): Reimplement.
3605 (s390_register_type): New function.
3606 (s390_register_raw_size, s390x_register_raw_size): Remove.
3607 (s390_cannot_fetch_register): Remove.
3608 (s390_register_byte): Remove.
3609 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
3610 (s390_dwarf_regmap): New variable.
3611 (s390_dwarf_reg_to_regnum): New function.
3612 (s390_stab_reg_to_regnum): Remove.
3613 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
3614 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
3615 (s390_convert_register_p): Likewise.
3616 (s390_register_to_value, s390_value_to_register): Likewise.
3617 (s390_register_reggroup_p): Likewise.
3618 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
3619 s390_gregset, s390x_gregset, s390_fpregset): New variables.
3620 (s390_supply_regset, s390_regset_from_core_section): New functions.
3621 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
3622 (S390_FPR_SIZE): Likewise.
3623 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
3624 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
3625 (S390_NUM_GPRS): Move here from tm-s390.h.
3626 (S390_NUM_FPRS): Likewise.
3627 (s390_in_function_epilogue_p): New function.
3628 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
3629 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
3630 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
3631 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
3632 Replace S390_FP_REGNUM by S390_SP_REGNUM.
3633 Remove calls to:
3634 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
3635 set_gdbarch_deprecated_max_register_virtual_size,
3636 set_gdbarch_deprecated_register_byte,
d0f54f9d 3637 set_gdbarch_cannot_fetch_register,
8a1dac83 3638 set_gdbarch_cannot_store_register,
d0f54f9d
JB
3639 set_gdbarch_deprecated_register_size,
3640 set_gdbarch_deprecated_register_raw_size,
3641 set_gdbarch_deprecated_register_virtual_size,
3642 set_gdbarch_deprecated_register_virtual_type,
3643 set_gdbarch_deprecated_register_bytes.
3644 Add calls to:
3645 set_gdbarch_num_pseudo_regs,
3646 set_gdbarch_register_type,
3647 set_gdbarch_convert_register_p,
3648 set_gdbarch_register_to_value,
3649 set_gdbarch_value_to_register,
3650 set_gdbarch_register_reggroup_p,
3651 set_gdbarch_regset_from_core_section,
3652 set_gdbarch_pseudo_register_read,
3653 set_gdbarch_pseudo_register_write,
3654 set_gdbarch_in_function_epilogue_p.
3655 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
3656 (s390_tdep_h): New variable.
3657
8cfe231d
JB
36582004-02-17 Jim Blandy <jimb@redhat.com>
3659
4589a601
JB
3660 * findvar.c (value_from_register): If the type has no length, just
3661 return an acceptable value --- don't report an internal error.
3662
8cfe231d
JB
3663 * stabsread.c (read_type): If we find any type numbers that are
3664 forward references, complain if the references aren't resolved by
3665 the time we're finished reading.
3666 (cleanup_undefined_types): Make error message more appropriate for
3667 a complaint.
3668
5bf0017e
EZ
36692004-02-17 Elena Zannoni <ezannoni@redhat.com>
3670
9d62932d
EZ
3671 * Makefile.in (defs_h): Remove dependency on progress_h.
3672 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
3673 progress.h.
3674 * main.c (captured_main): Delete use of START_PROGRESS and
3675 END_PROGRESS.
3676
36772004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 3678
5bf0017e
EZ
3679 * objfiles.c (terminate_minimal_symbol_table): Add back
3680 initialization of MSYMBOL_TYPE.
3681
9fc9f5e2
AC
36822004-02-17 David Mosberger <davidm@hpl.hp.com>
3683
3684 Committed by Andrew Cagney.
3685 * Makefile.in (ia64_tdep_h): New macro.
3686 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
3687 (ia64-tdep.o): Likewise.
3688 * ia64-tdep.h: New file.
3689 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
3690 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
3691 (ia64_aix_sigcontext_register_address): Likewise.
3692 (ia64_linux_getunwind_table): Delete declaration.
3693 * ia64-linux-tdep.c: Likewise.
3694
76cd2bd9
CV
36952004-02-17 Corinna Vinschen <vinschen@redhat.com>
3696
3697 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
3698 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
3699 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
3700
634aa483
AC
37012004-02-17 Andrew Cagney <cagney@redhat.com>
3702
3703 * symtab.c (skip_prologue_using_sal): New function.
3704 * symtab.h (skip_prologue_using_sal): Declare.
3705 * frv-tdep.c: Include "symtab.h".
3706 (skip_prologue_using_sal): Delete function.
3707 * mips-tdep.c (skip_prologue_using_sal): Delete function.
3708 * rs6000-tdep.c (refine_prologue_limit): Mention
3709 skip_prologue_using_sal.
3710 * ia64-tdep.c (refine_prologue_limit): Ditto.
3711 * Makefile.in: Update dependencies.
3712
37132004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 3714
39ce7b3f
AC
3715 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
3716 START_INFERIOR_TRAPS_EXPECTED.
3717 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
3718 START_INFERIOR_TRAPS_EXPECTED.
3719 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
3720 Delete macro.
3721 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
3722 macro, moved to "nm-osf.h". Update copyright.
3723 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
3724 update copyright.
3725
19772a2c
AC
3726 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
3727 and function replacing FRAMELESS_FUNCTION_INVOCATION.
3728 * blockframe.c (legacy_frameless_look_for_prologue): Rename
3729 frameless_look_for_prologue.
3730 * frame.h (legacy_frameless_look_for_prologue): Rename
3731 frameless_look_for_prologue.
3732 * gdbarch.h, gdbarch.c: Re-generate.
3733 * sh64-tdep.c (sh64_gdbarch_init): Update.
3734 * sh-tdep.c (sh_gdbarch_init): Update.
3735 * s390-tdep.c (s390_gdbarch_init): Update.
3736 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3737 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3738 * m68k-tdep.c (m68k_gdbarch_init): Update.
3739 (delta68_frame_args_address): Update.
3740 * m32r-tdep.c (m32r_gdbarch_init): Update.
3741 * hppa-tdep.c (hppa_gdbarch_init): Update.
3742 * h8300-tdep.c (h8300_gdbarch_init): Update.
3743 * frv-tdep.c (frv_gdbarch_init): Update.
3744 (frv_frameless_function_invocation): Update.
3745 * cris-tdep.c (cris_gdbarch_init): Update.
3746 (cris_frameless_function_invocation): Update.
3747 * avr-tdep.c (avr_gdbarch_init): Update.
3748 * arm-tdep.c (arm_gdbarch_init): Update.
3749 * stack.c (frame_info): Update, call predicate.
3750 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
3751 * frame.c (legacy_get_prev_frame): Update, call predicate..
3752 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
3753 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
3754 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
3755 invocation.
3756 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3757 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3758 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
3759
3760 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
3761 function.
3762
7dcaac91
DJ
37632004-02-16 Daniel Jacobowitz <drow@mvista.com>
3764
3765 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
3766 initializations.
3767
88289b6e
AC
37682004-02-16 Andrew Cagney <cagney@redhat.com>
3769
3770 * tui/tui-windata.c: Include "gdb_string.h".
3771 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
3772 * tui/tui-layout.c, tui/tui-command.c: Ditto.
3773 * Makefile.in: Update dependencies.
3774
9f976b41
DJ
37752004-02-16 Daniel Jacobowitz <drow@mvista.com>
3776
3777 * Makefile.in (infrun.o): Add $(gdb_assert_h).
3778 * infrun.c: Include "gdb_assert.h".
3779 (singlestep_ptid, saved_singlestep_ptid)
3780 (stepping_past_singlestep_breakpoint): New variables.
3781 (resume): Set singlestep_ptid. Check for singlestep thread
3782 hop.
3783 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
3784 (handle_inferior_event): Handle singlestep thread hop.
3785
c324d747
AC
37862004-02-16 Andrew Cagney <cagney@redhat.com>
3787
f090b9b1
AC
3788 * dwarf2-frame.c (dwarf2_frame_ops): New function.
3789 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
3790 (dwarf2_frame_init_reg): Ditto.
3791
fd33e6cb
AC
3792 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
3793 suggested by Joshua Neuheisel
3794
c324d747
AC
3795 * configure.in: Always check for curses, including pdcurses.
3796 Warn, instead of error, when no curses are found. Enable TUI when
3797 curses is available.
3798 * configure: Re-generate.
3799
b66ba949
CV
38002004-02-16 Corinna Vinschen <vinschen@redhat.com>
3801
3802 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
3803 sh_sh4_register_convert_to_virtual.
3804 (sh_register_convert_to_raw): Rename from
3805 sh_sh4_register_convert_to_raw.
3806 (sh_pseudo_register_read): Accomodate above name change.
3807 (sh_pseudo_register_write): Ditto.
3808
b58cbbf2
CV
38092004-02-16 Corinna Vinschen <vinschen@redhat.com>
3810
3811 * sh-tdep.c (sh_generic_register_name): Remove.
3812 (sh_gdbarch_init): Use sh_sh_register_name in default case.
3813
5929a910
AC
38142004-02-15 Andrew Cagney <cagney@redhat.com>
3815
4566dfcf
AC
3816 * configure.in (build_warnings): Add -Wunused-function.
3817 * configure: Re-generate.
3818
db11ed55
AC
3819 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
3820 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
3821
46ac7a5d
AC
3822 * procfs.c (procfs_init_inferior): Assume that
3823 START_INFERIOR_TRAPS_EXPECTED is defined.
3824 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
3825 * config/ns32k/tm-nbsd.h: Delete file,
3826 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
3827
ba801595
AC
3828 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
3829 * config/vax/tm-vax.h: Delete file.
3830
5929a910
AC
3831 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
3832 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
3833 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
3834 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
3835 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
3836 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
3837 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
3838
8f22cb90
MK
38392004-02-15 Mark Kettenis <kettenis@gnu.org>
3840
3841 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
3842 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3843 (struct dwarf2_frame_ops): New.
3844 (dwarf2_frame_default_init_reg): New function, based on
3845 dwarf2_frame_init_reg.
3846 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
3847 (dwarf2_frame_init_reg): Call architecture-specific function.
3848 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
3849 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
3850 instead of dwarf2_frame_data.
3851 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
3852 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
3853
8132723e
AC
38542004-02-15 Andrew Cagney <cagney@redhat.com>
3855
046a4708
AC
3856 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
3857 register_gdbarch_swap.
3858 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
3859 * f-lang.c (_initialize_f_language): Update, use
3860 DEPRECATED_REGISTER_GDBARCH_SWAP.
3861 * remote.c (_initialize_remote): Ditto.
3862 * regcache.c (_initialize_regcache): Ditto.
3863 * parse.c (_initialize_parse): Ditto.
3864 * infrun.c (_initialize_infrun): Ditto.
3865 * mi/mi-main.c (_initialize_mi_main): Ditto.
3866 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 3867
549c1eea
AC
3868 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
3869 poking .cacheable directly.
3870 * symfile.c (symfile_bfd_open): Ditto.
3871
0c0b39de
AC
3872 * Makefile.in: Update all dependencies.
3873
8132723e
AC
3874 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
3875 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
3876 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
3877 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
3878 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 3879
b9d26eb9
AC
38802004-02-14 Andrew Cagney <cagney@redhat.com>
3881
8e1f669a
AC
3882 * arch-utils.c (legacy_convert_register_p): Check
3883 DEPRECATED_REGISTER_CONVERTIBLE_P.
3884 * findvar.c (value_of_register): Ditto.
3885
cd0bfa36
AC
3886 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
3887 * gdbarch.h, gdbarch.c: Re-generate.
3888 * arch-utils.c (deprecated_register_convertible_not): Delete.
3889 * arch-utils.h (deprecated_register_convertible_not): Delete.
3890 * mi/mi-main.c (get_register): Update. Update copyright.
3891 * infcmd.c (default_print_registers_info): Update.
3892
b9d26eb9
AC
3893 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
3894 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
3895 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 3896 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
3897 * frame.c (deprecated_get_next_frame_hack): Delete function.
3898 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
3899 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3900 Update.
3901 * infcall.c (call_function_by_hand): Update.
3902
9ab9195f
EZ
39032004-02-14 Elena Zannoni <ezannoni@redhat.com>
3904
3905 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 3906 from here...
9ab9195f
EZ
3907 * objfiles.c (init_entry_point_info, entry_point_address):..to
3908 here.
3909 * symfile.h (init_entry_point_info, entry_point_address): Remove
3910 prototypes.
3911 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 3912 prototypes.
9ab9195f
EZ
3913 * cris-tdep.c: Remove include of symfile.h. Add include of
3914 objfiles.h.
3915 * infcall.c: Ditto.
3916 * mcore-tdep.c: Ditto.
3917 * mn10300-tdep.c: Ditto.
3918 * sh64-tdep.c: Ditto.
3919 * v850-tdep.c: Ditto.
3920 * arm-tdep.c: Remove include of symfile.h.
3921 * blockframe.c: Ditto.
3922 * coffread.c: Ditto.
3923 * dbxread.c: Ditto.
3924 * dwarf2read.c: Ditto.
3925 * dwarfread.c: Ditto.
8a1dac83 3926 * frv-tdep.c: Ditto.
9ab9195f
EZ
3927 * ia64-tdep.c: Ditto.
3928 * mdebugread.c: Ditto.
3929 * mipsread.c: Ditto.
8a1dac83 3930 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
3931 * s390-tdep.c: Ditto.
3932 * sh-tdep.c: Ditto.
8a1dac83 3933 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
3934 * gdbarch.sh: Remove include of symfile.h.
3935 * gdbarch.c: Regenerate.
3936 * solib-irix.c (enable_break): Use entry_point_address().
3937 Add comment about include file.
3938 * xcoffread.c: Add comment about include file.
8a1dac83
RM
3939 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
3940 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
3941 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
3942 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
3943 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
3944
c4c5b7ba
AC
39452004-02-13 Andrew Cagney <cagney@redhat.com>
3946
3947 * corelow.c (core_xfer_partial): Use "struct bfd_section".
3948 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
3949 copyright.
3950 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
3951
3e7879de
FF
39522004-02-12 Fred Fish <fnf@redhat.com>
3953
3954 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
3955 set_gdbarch_store_return_value.
3956
6a7760b6
AC
39572004-02-12 Andrew Cagney <cagney@redhat.com>
3958
3959 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
3960 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
3961 (interrupt_query): Ditto.
3962 (ofunc): Delete unused variable.
3963 * cris-tdep.c (cris_abi): Delete unused function.
3964 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
3965 (cris_get_wide_opcode, cris_get_short_size): Ditto.
3966 (cris_get_asr_quick_shift_steps): Ditto.
3967 (cris_skip_prologue_frameless_p): Ditto.
3968 * arm-tdep.c (arm_push_return_address): Delete unused function.
3969 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
3970 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
3971 * s390-tdep.c (s390_function_start): Delete unused function.
3972
31687c3c
AC
39732004-02-12 Andrew Cagney <cagney@redhat.com>
3974
3975 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
3976 gdbarch.h, gdbarch.c: Re-generate.
3977 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
3978 to generic_prologue_frameless_p.
3979 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
3980 * arch-utils.c (generic_prologue_frameless_p): Delete function.
3981
6de918a6
DJ
39822004-02-11 Daniel Jacobowitz <drow@mvista.com>
3983
3984 * mips-linux-tdep.c: Include "frame.h".
3985 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
3986 (mips_linux_skip_resolver): New functions.
3987 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
3988 and set_gdbarch_in_solib_call_trampoline.
3989 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
3990 to after set_gdbarch_in_solib_return_trampoline. Only set the
3991 solib hooks to mips16 functions if the OS ABI is unknown.
3992 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
3993 including "config/tm-linux.h".
3994 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
3995 * Makefile.in (mips-linux-tdep.o): Update.
3996
87b3ede8
DC
39972004-02-11 David Carlton <carlton@kealia.com>
3998
3999 * linespec.c (decode_compound): Only look for a class symbol when
4000 considering all but the rightmost component.
4001
5979bc46
AC
40022004-02-11 Andrew Cagney <cagney@redhat.com>
4003
4004 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
4005 abi code are are separatly grouped.
4006
5867a2fb
AC
40072004-02-11 Andrew Cagney <cagney@redhat.com>
4008
4009 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
4010 * gdbarch.h, gdbarch.c: Re-generate.
4011 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4012 * v850-tdep.c (v850_gdbarch_init): Update.
4013 * sh64-tdep.c (sh64_gdbarch_init): Update.
4014 * sh-tdep.c (sh_gdbarch_init): Update.
4015 * s390-tdep.c (s390_gdbarch_init): Update.
4016 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4017 * mips-tdep.c (mips_gdbarch_init): Update.
4018 * mcore-tdep.c (mcore_gdbarch_init): Update.
4019 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4020 * m32r-tdep.c (m32r_gdbarch_init): Update.
4021 * ia64-tdep.c (ia64_gdbarch_init): Update.
4022 * hppa-tdep.c (hppa_gdbarch_init): Update.
4023 * h8300-tdep.c (h8300_gdbarch_init): Update.
4024 * frv-tdep.c (frv_gdbarch_init): Update.
4025 * d10v-tdep.c (d10v_gdbarch_init): Update.
4026 * cris-tdep.c (cris_gdbarch_init): Update.
4027 * avr-tdep.c (avr_gdbarch_init): Update.
4028 * arm-tdep.c (arm_gdbarch_init): Update.
4029 * alpha-tdep.c (alpha_gdbarch_init): Update.
4030
026a72f8
CV
40312004-02-11 Corinna Vinschen <vinschen@redhat.com>
4032
4033 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
4034 comma.
4035 (sh_sh4al_dsp_register_name): Ditto.
4036
3903d437
AC
40372004-02-10 Andrew Cagney <cagney@redhat.com>
4038
4039 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
4040 (mips_init_frame_pc_first): Delete function.
4041 (mips_frame_saved_pc): Delete function.
4042 (mips_frame_chain): Delete function.
4043 (mips_init_extra_frame_info): Delete function.
4044 (mips_xfer_register): Delete unused variable "reg".
4045 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
4046 (mips_n32n64_return_value): Delete unused variable "reg".
4047 (mips_n32n64_return_value): Delete unused variable "pos".
4048 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
4049 (mips_o32_return_value): Delete unused variable "pos".
4050 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
4051 (mips_print_fp_register): Delete unused variable "namelen"
4052 (mips_print_fp_register): Delete unused variable "flt2"
4053 (get_frame_pointer): Delete function.
4054 (cached_proc_desc): Delete static variable.
4055 (mips_pop_frame): Delete function.
4056 (mips_find_saved_regs): Delete function.
4057 (mips_get_saved_register): Delete function.
4058 (mips_saved_pc_after_call): Delete function.
4059 (SIGFRAME_BASE): Delete macro.
4060 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
4061 (SIGFRAME_PC_OFF): Delete macro.
4062 (SIGFRAME_REGSAVE_OFF): Delete macro.
4063 (mips_dump_tdep): Do not print deleted macro definitions.
4064
b9fb98bd
AC
40652004-02-10 Andrew Cagney <cagney@redhat.com>
4066
4067 * Makefile.in (SFILES): Remove explictly listed tui files.
4068 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
4069
78ced177 40702004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 4071
78ced177
JJ
4072 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
4073 to use paddr functions to format ia64 addresses and long values.
4074 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
4075 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
4076 (get_kernel_table, ia64_find_proc_info_x): Ditto.
4077 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
4078 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
4079
6a83354a
AC
40802004-02-10 Andrew Cagney <cagney@redhat.com>
4081
4082 * defs.h: Do not include "tui.h".
4083 * gdb_curses.h: New file.
4084 * tui/tui-hooks.h: New file.
4085 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
4086 (tui_install_hooks, tui_remove_hooks): Delete declarations.
4087 (tui_initialize_io): Delete declaration.
4088 (tui_initialize_readline: Delete redundant declaration.
4089 (struct tui_point): Delete definition.
4090 * tui/tui-data.h (struct tui_point): Define.
4091 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
4092 * utils.c: Include "tui/tui.h".
4093 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
4094 * printcmd.c [TUI]: Include "tui/tui.h".
4095 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
4096 * tui/tui-command.c: Include "gdb_curses.h".
4097 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
4098 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
4099 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
4100 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
4101 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
4102 * Makefile.in: Update all dependencies.
4103 (tui_hooks_h, gdb_curses_h): Define.
4104 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
4105
997470ef
EZ
41062004-02-10 Elena Zannoni <ezannoni@redhat.com>
4107
4108 * objfiles.h (struct objfile): Remove unused fields auxf1 and
4109 auxf2. Add comments about some other rarely used fields.
4110
4ff2cc4d
AC
41112004-02-10 Andrew Cagney <cagney@redhat.com>
4112
4113 * Makefile.in (init.c): Fix script removing duplicates. Problem
4114 reported by Peter Schauer.
4115
1ab21617
EZ
41162004-02-09 Elena Zannoni <ezannoni@redhat.com>
4117
4118 * bcache.c (bcache_xmalloc): Use obstack_init instead of
4119 obstack_specify_allocation.
4120 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 4121 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
4122 (allocate_rt_common_objfile): Ditto.
4123 * symfile.c (reread_symbols): Ditto.
4124 * gdb_obstack.h: Add comment.
4125
17763fd9
EZ
41262004-02-09 Elena Zannoni <ezannoni@redhat.com>
4127
4128 * linespec.c (decode_line_1, locate_first_half)
4129 (decode_compound, lookup_prefix_sym): Update comments. Delete old
4130 commented out code.
4131
ec5cdd75
DJ
41322004-02-09 Daniel Jacobowitz <drow@mvista.com>
4133
4134 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
4135 obstack_free.
4136
43b54b88
AC
41372004-02-09 Andrew Cagney <cagney@redhat.com>
4138
4139 * blockframe.c (find_pc_partial_function): If find_pc_overlay
4140 fails, try find_pc_section. Fix PR c++/1267.
4141 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
4142 instead of find_pc_mapped_section.
4143 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
4144 not default to the section containing PC. Fix PR symtab/1519.
4145
edfae063
AC
41462004-02-09 Andrew Cagney <cagney@redhat.com>
4147
4148 * Makefile.in (mips-tdep.o): Update dependencies.
4149 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
4150 "trad-frame.h".
4151 (mips_unwind_pc): Return the pseudo PC register.
4152 (mips_unwind_dummy_id): New function.
4153 (mips16_fetch_instruction): New function.
4154 (mips32_fetch_instruction): New function.
4155 (struct mips_frame_cache): Define.
4156 (mips_mdebug_frame_cache): New function.
4157 (mips_mdebug_frame_this_id): New function.
4158 (mips_mdebug_frame_prev_register): New function.
4159 (mips_mdebug_frame_unwind): Define.
4160 (mips_mdebug_frame_sniffer): New function.
4161 (mips_mdebug_frame_base_address): New function.
4162 (mips_mdebug_frame_base): Define.
4163 (mips_mdebug_frame_base_sniffer): New function.
4164 (mips_gdbarch_init): Append unwind and base sniffers. Set
4165 unwind_dummy_id.
4166
defc864c
AC
41672004-02-08 Andrew Cagney <cagney@redhat.com>
4168
6764ddad
AC
4169 * frame.c: Print both the register number and name.
4170
defc864c
AC
4171 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
4172 and a sed into a single sed. Make .c and .o patterns more robust.
4173 (OBS): Delete.
4174 (INIT_FILES): Replace OBS with COMMON_OBS.
4175 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
4176
645d6d10
MK
41772004-02-08 Mark Kettenis <kettenis@gnu.org>
4178
4179 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
4180 the PT_WCOOKIE request.
4181
23e3c3fc
AC
41822004-02-08 Andrew Cagney <cagney@redhat.com>
4183
58dfe9ff
AC
4184 * mips-tdep.c (mips_unwind_pc): New function.
4185 (mips_gdbarch_init): Set mips_unwind_pc.
4186
1152e35e
AC
4187 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
4188 (get_frame_id): Allow the UNKNOWN_FRAME.
4189 (frame_register_unwind, get_frame_type): Ditto.
4190
31b75dbf
AC
4191 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
4192 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
4193 unwind_dummy_id indicates a legacy frame.
4194
3483b318
AC
4195 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
4196 * configure: Re-generate.
4197
23e3c3fc
AC
4198 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
4199 methods.
4200
33f8ca73
AC
42012004-02-08 Andrew Cagney <cagney@redhat.com>
4202
4203 * configure.in (CONFIG_ALL): Set to Makefile target, and not
4204 makefile macro.
4205 * configure: Re-generate.
4206 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
4207 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
4208 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
4209 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
4210 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
4211 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
4212 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
4213 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
4214 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
4215 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
4216
6ba8e26f 42172004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 4218
20d286a5
AC
4219 * Makefile.in: Update all dependencies.
4220
d836ee13
AC
4221 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
4222 * configure: Re-generate.
4223 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
4224 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
4225 (COMMON_OBS): Add "main.o" and "annotate.o".
4226 (ANNOTATE_OBS): Delete.
4227 (OBS): Remove ANNOTATE_OBS.
4228 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
4229 CONFIG_INITS.
4230 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
4231 against CONFIG_OBS and "main.o".
4232 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
4233 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
4234
d02c80cd
AC
4235 * tui/tui-command.c: Include "gdb_string.h", delete register
4236 attribute, use ISO-C function signatures.
4237 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
4238 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
4239 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
4240 * tui/tui.c: Ditto.
6ba8e26f
AC
4241
4242 * tui/tui-command.c: Change variable and function names to lower
4243 case.
4244 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
4245 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
4246 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
4247 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
4248 * tui/tui-winsource.c, tui/tui.c: Ditto.
4249
4a146b47
EZ
42502004-02-07 Elena Zannoni <ezannoni@redhat.com>
4251
4252 * buildsym.c (free_pending_blocks, finish_block)
4253 (record_pending_block, make_blockvector, end_symtab): Replace
4254 symbol_obstack with objfile_obstack.
8a1dac83 4255 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 4256 (coff_read_enum_type): Ditto.
8a1dac83 4257 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 4258 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 4259 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
4260 (dwarf2_symbol_mark_computed): Ditto.
4261 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
4262 * elfread.c (elf_symtab_read): Ditto.
4263 * hpread.c (hpread_symfile_init, hpread_symfile_init)
4264 (hpread_read_enum_type, hpread_read_function_type)
4265 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
4266 Ditto.
8a1dac83 4267 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 4268 (java_link_class_type): Ditto.
8a1dac83 4269 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
4270 (new_symbol): Ditto.
4271 * minsyms.c (install_minimal_symbols): Ditto.
4272 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
4273 (terminate_minimal_symbol_table): Replace symbol_obstack with
4274 objfile_obstack.
4275 (free_objfile): Remove freeing of symbol_obstack.
4276 * objfiles.h: Remove symbol_obstack field.
4277 * pa64solib.c (add_to_solist): Replace symbol_obstack with
4278 objfile_obstack.
4279 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
4280 symbol_obstack.
4281 (solib_add_common_symbols): Replace symbol_obstack with
4282 objfile_obstack.
4283 * somsolib.c (som_solib_add): Ditto.
4284 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4285 (common_block_start, common_block_end): Ditto.
4286 * symfile.c (reread_symbols): Remove freeing and init of
4287 symbol_obstack.
4288 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
4289 * symfile.h: Update comment.
4290 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
4291 stats printing.
4292 * symtab.c (symbol_set_names): Replace symbol_obstack with
4293 objfile_obstack.
4294 * symtab.h (struct general_symbol_info, struct minimal_symbol):
4295 Update comments.
4296 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
4297 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
4298 objfile_obstack.
4299
6d012f14
AC
43002004-02-07 Andrew Cagney <cagney@redhat.com>
4301
4302 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
4303 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
4304 fields and variables.
4305 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
4306 (m_beInvisible): Delete macro.
4307 * tui/tui-data.h: Fix case case fields and variables.
4308 (m_genWinPtrIsNull): Delete macro.
4309 (tui_win_list): Rename winList.
4310 (TUI_SRC_WIN): Rename srcWin.
4311 (TUI_DISASM_WIN): Rename disassemWin.
4312 (TUI_DATA_WIN): Rename dataWin.
4313 (TUI_CMD_WIN): Rename cmdWin.
4314 (m_genWinPtrNotNull): Delete macro.
4315 (m_winPtrIsNull): Delete macro.
4316 (m_winPtrNotNull): Delete macro.
4317 (tui_win_is_source_type): Replace m_winIsSourceType
4318 (tui_win_is_auxillary): Replace m_winIsAuzillary.
4319 (tui_win_has_locator): Replace m_hasLocator.
4320 (tui_set_win_highlight): Replace m_setWinHighlightOn and
4321 m_setWinHighlightOff.
4322 * tui/tui-data.c: Update references.
4323 (tui_win_is_source_type, tui_set_win_highlight): New functions.
4324 (tui_win_has_locator, tui_win_is_auxillary): New functions.
4325 * tui/tui-command.c, tui/tui-disasm.c: Update references.
4326 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
4327 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
4328 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
4329 * tui/tui-winsource.c, tui/tui.c: Ditto.
4330
7d34766b
MK
43312004-02-07 Mark Kettenis <kettenis@gnu.org>
4332
1c800673
MK
4333 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
4334 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
4335 StackGhost.
4336
7d34766b
MK
4337 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
4338 variable `i6' to `i7'.
4339 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
4340
22940a24
AC
43412004-02-07 Andrew Cagney <cagney@redhat.com>
4342
4343 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
4344 (TuiPoint, TuiPointPtr): Ditto.
4345 (TuiStatus, TuiStatusPtr): Ditto.
4346 (TuiWinType, TuiWinTypePtr): Ditto.
4347 (struct tui_point): Rename _TuiPoint.
4348 (tui_get_low_disassembly_address): Rename
4349 tuiGetLowDisassemblyAddress.
4350 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
4351 (tuiFree): Delete declaration.
4352 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
4353 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
4354 * tui/tui.c (tuiFree): Delete function.
4355 * cli/cli-cmds.c (disassemble_command): Update references.
4356 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
4357 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
4358 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
4359 * tui/tui-winsource.c: Ditto.
4360
8b92e4d5
EZ
43612004-02-07 Elena Zannoni <ezannoni@redhat.com>
4362
4363 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
4364 coffstab_build_psymtabs, elfstab_build_psymtabs)
4365 (stabsect_build_psymtabs): Replace psymbol_obstack with
4366 objfile_obstack.
4367 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
4368 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
4369 Ditto.
4370 * dwarfread.c (scan_compilation_units): Ditto.
4371 * elfread.c (elfstab_offset_sections): Ditto.
4372 * hppa-tdep.c (read_unwind_info): Ditto.
4373 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
4374 (hpread_end_psymtab): Ditto.
4375 * mdebugread.c (mdebug_build_psymtabs, add_pending)
4376 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
4377 Ditto.
4378 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 4379 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
4380 (build_objfile_section_table): Ditto.
4381 (allocate_objfile): Remove init of psymbol_obstack.
4382 (free_objfile): Remove freeing of psymbol_obstack.
4383 * objfiles.h (struct objfile): Remove field
4384 psymbol_obstack. Update comments.
4385 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
4386 psymbol_obstack with objfile_obstack.
4387 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
4388 psymbol_obstack.
4389 * somread.c (som_symfile_offsets, init_import_symbols)
4390 (init_export_symbols): Replace psymbol_obstack with
4391 objfile_obstack.
4392 * somsolib.c (som_solib_add_solib_objfile): Ditto.
4393 * symfile.c (default_symfile_offsets, syms_from_objfile)
4394 (reread_symbols): Remove freeing and init of psymbol_obstack.
4395 (cashier_psymtab): Update comment.
4396 * symmisc.c (print_objfile_statistics): Don't report stats for
4397 psymbol obstack.
4398 * symtab.h (struct general_symbol_info, struct partial_symtab):
4399 Update comments.
4400 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
4401 (xcoff_symfile_offsets): Replace psymbol_obstack with
4402 objfile_obstack.
4403
b99607ea
EZ
44042004-02-07 Elena Zannoni <ezannoni@redhat.com>
4405
4406 * objfiles.h (struct objfile): Add objfile_obstack field.
4407 Remove type_obstack field.
4408
4409 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
4410 read_structure_scope read_enumeration, new_symbol): Replace
4411 type_obstack with objfile_obstack.
4412 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 4413 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
4414 (lookup_fundamental_type): Ditto.
4415 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
4416 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
4417 (hpread_read_doc_function_type, hpread_read_struct_type)
4418 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 4419 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 4420 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
4421 (java_link_class_type): Ditto.
4422 * mdebugread.c (parse_type): Ditto.
4423 * objfiles.c (allocate_objfile, free_objfile): Ditto.
4424 * solib-sunos.c (solib_add_common_symbols): Ditto.
4425 * stabsread.c (define_symbol, read_type, read_member_functions,
4426 read_cpp_abbrev, read_one_struct_field): Ditto.
4427 * symfile.c (reread_symbols): Ditto.
4428 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 4429
2a8854a7
AC
44302004-02-07 Andrew Cagney <cagney@redhat.com>
4431
4432 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
4433 (tui_exec_info_content): Rename TuiExecInfoContent.
4434 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
4435 (TuiWinInfo, TuiWinInfoPtr): Ditto.
4436 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
4437 (TuiList, TuiListPtr): Ditto.
4438 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
4439 (TuiDataType, TuiDataTypePtr): Ditto.
4440 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
4441 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
4442 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
4443 (TuiSourceElement, TuiSourceElementPtr): Ditto.
4444 (TuiDataElement, TuiDataElementPtr): Ditto.
4445 (TuiWinElement, TuiWinElementPtr): Ditto.
4446 (TuiDataInfo, TuiDataInfoPtr): Ditto.
4447 (TuiCommandElement, TuiCommandElementPtr): Ditto.
4448 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
4449 (TuiWhichElement, TuiWhichElementPtr): Ditto.
4450 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
4451 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
4452 * tui/tui-command.c, tui/tui-data.c: Update references.
4453 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
4454 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
4455 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
4456 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 4457
05cbe71a
MK
44582004-02-07 Mark Kettenis <kettenis@gnu.org>
4459
4460 * dwarf2-frame.h: Update copyright.
4461 (enum dwarf2_frame_reg_rule): New.
4462 (struct dwarf2_frame_state_reg): New.
4463 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
4464 * dwarf2-frame.c: Update copyright.
4465 (enum dwarf2_reg_rule): Remove.
4466 (struct dwarf2_frame_state): Remove defenition of `struct
4467 dwarf2_frame_state_reg'.
4468 (read_reg): Call get_frame_arch to get the architecture instead of
4469 using CURRENT_GDBARCH.
4470 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
4471 DWARF2_FRAME_.
4472 (dwarf2_frame_init_reg): New function.
4473 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
4474 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
4475 initialize the register state. Prefix old `enum dwarf2_reg_rule'
4476 tags with DWARF2_FRAME_.
4477 (dwarf2_frame_prev_register): Call get_frame_arch to get the
4478 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
4479 dwarf2_reg_rule' tags with DWARF2_FRAME_.
4480
ec7d9e56
AC
44812004-02-06 Andrew Cagney <cagney@redhat.com>
4482
dd1abb8c
AC
4483 * tui/tui-data.h (struct tui_list): Rename _TuiList.
4484 (enum tui_data_type): Rename _TuiDataType.
4485 (struct tui_layout_def): Rename _TuiLayoutDef.
4486 (struct tui_source_element): Rename _TuiSourceElement.
4487 (struct tui_data_element): Rename _TuiDataElement.
4488 (struct tui_command_element): Rename _TuiCommandElement.
4489 (struct tui_locator_element): Rename _TuiLocatorElement.
4490 (union tui_which_element): Define.
4491 (struct tui_win_element): Rename _TuiWinElement.
4492 (struct tui_data_info): Rename _TuiDataInfo.
4493 (struct tui_source_info): Rename _TuiSourceInfo.
4494 (struct tui_command_info): Rename _TuiCommandInfo.
4495 (tui_initialize_static_data): Rename initializeStaticData.
4496 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
4497 (tui_alloc_win_info): Rename allocWinInfo.
4498 (tui_init_generic_part): Rename initGenericPart.
4499 (tui_init_win_info): Rename initWinInfo.
4500 (tui_alloc_content): Rename allocContent.
4501 (tui_add_content_elements): Rename addContentElements.
4502 (tui_init_content_element): Rename initContentElement.
4503 (tui_free_window): Rename freeWindow.
4504 (tui_free_win_content): Rename freeWinContent.
4505 (tui_free_data_content): Rename freeDataContent.
4506 (tui_free_all_source_wins_content): Rename
4507 freeAllSourceWinsContent.
4508 (tui_del_window): Rename tuiDelWindow.
4509 (tui_del_data_windows): Rename tuiDelDataWindows.
4510 (tui_partial_win_by_name): Rename partialWinByName.
4511 (tui_win_name): Rename winName.
4512 (tui_current_layout): Rename currentLayout.
4513 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
4514 (tui_term_height): Rename termHeight.
4515 (tui_set_term_height_to): Rename setTermHeightTo.
4516 (tui_term_width): Rename termWidth.
4517 (tui_set_term_width_to): Rename setTermWidthTo.
4518 (tui_set_gen_win_origin): Rename setGenWinOrigin.
4519 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
4520 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
4521 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
4522 (tui_source_windows): Rename sourceWindows.
4523 (tui_clear_source_windows): Rename clearSourceWindows.
4524 (tui_clear_source_windows_detail): Rename
4525 clearSourceWindowsDetail.
4526 (tui_clear_win_detail): Rename clearWinDetail.
4527 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
4528 (tui_default_tab_len): Rename tuiDefaultTabLen.
4529 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
4530 (tui_win_with_focus): Rename tuiWinWithFocus.
4531 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
4532 (tui_layout_def): Rename tuiLayoutDef.
4533 (tui_win_resized): Rename tuiWinResized.
4534 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
4535 (tui_next_win): Rename tuiNextWin.
4536 (tui_prev_win): Rename tuiPrevWin.
4537 (tui_add_to_source_windows): Rename addToSourceWindows.
4538 * tui/tui-winsource.c, tui/tui-win.c: Update references.
4539 * tui/tui-layout.c, tui/tui-source.c: Ditto.
4540 * tui/tui-stack.c, tui/tui-io.c: Ditto.
4541 * tui/tui.c, tui/tui-data.c: Ditto.
4542 * tui/tui-interp.c, tui/tui-data.c: Ditto.
4543 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
4544
a358af15
AC
4545 * tui/tui-source.h: Update copyright. Include "tui-data.h".
4546 (struct symtab): Declare.
4547 (tui_set_source_content): Rename tuiSetSourceContent.
4548 (tui_show_symtab_source): Rename tuiShowSource.
4549 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
4550 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
4551 * tui/tui-source.c: Update copyright. Update references.
4552 * tui/tui-win.c, tui/tui-winsource.c: Update references.
4553 * tui/tui-stack.c: Update references.
4554
a21fcd8f
AC
4555 * tui/tui-win.h: Update copyright. Include "tui-data.h".
4556 (struct tui_win_info): Declare.
4557 (tui_scroll_forward): Rename tuiScrollForward.
4558 (tui_scroll_backward): Rename tuiScrollBackward.
4559 (tui_scroll_left): Rename tuiScrollLeft.
4560 (tui_scroll_right): Rename tuiScrollRight.
4561 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
4562 (tui_resize_all): Rename tuiResizeAll.
4563 (tui_refresh_all_win): Rename tuiRefreshAll.
4564 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
4565 * tui/tui-layout.c, * tui/tui-io.c: Update references.
4566 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
4567 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
4568
edae1ccf
AC
4569 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
4570 (tui_erase_data_content): Rename tuiEraseDataContent.
4571 (tui_display_all_data): Rename tuiDisplayAllData.
4572 (tui_check_data_values): Rename tuiCheckDataValues.
4573 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
4574 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
4575 (tui_first_data_element_no_in_line): Rename
4576 tuiFirstDataElementNoInLine.
4577 (tui_delete_data_content_windows): Rename
4578 tuiDeleteDataContentWindows.
4579 (tui_refresh_data_win): Rename tuiRefreshDataWin.
4580 (tui_display_data_from): Rename tuiDisplayDataFrom.
4581 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
4582 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
4583 * tui/tui-win.c, tui/tui-regs.c: Update references.
4584 * tui/tui-layout.c, tui/tui.c: Update references.
4585
ec7d9e56
AC
4586 * tui/tui-wingeneral.h: Update copyright.
4587 (m_allBeVisible): Delete macro.
8a1dac83 4588 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
4589 (struct tui_gen_win_info): Declare.
4590 (struct tui_win_info): Declare.
4591 (tui_unhighlight_win): Rename unhighlightWin.
4592 (tui_make_visible, tui_make_invisible): Replace makeVisible.
4593 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
4594 (tui_make_window): Rename makeWindow.
4595 (tui_copy_win): Rename copyWin.
4596 (tui_box_win): Rename boxWin.
4597 (tui_highlight_win): Rename highlightWin.
4598 (tui_check_and_display_highlight_if_needed): Rename
4599 checkAndDisplayHighlightIfNeeded.
4600 (tui_refresh_all): Rename refreshAll.
4601 (tui_delete_win): Rename tuiDelwin.
4602 (tui_refresh_win): Rename tuiRefreshWin.
4603 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
4604 (tui_make_visible, tui_make_invisible): New functions.
4605 (tui_make_all_visible, tui_make_all_invisible): New functions.
4606 (make_all_visible): Rename makeAllVisible.
4607 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
4608 * tui/tui-data.c, tui/tui-winsource.c: Update references.
4609 * tui/tui-windata.c, tui/tui-win.c: Update references.
4610 * tui/tui-regs.c, tui/tui-layout.c: Update references.
4611 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
4612
1e52e2eb
MK
46132004-02-06 Mark Kettenis <kettenis@gnu.org>
4614
4615 * proc-api.c (write_with_trace): Initialize local variable to
4616 silence compiler warning.
4617
f80bda8e
AC
46182004-02-06 Andrew Cagney <cagney@redhat.com>
4619
4620 * tui/tui-source.h: Do not include "defs.h".
4621 (struct tui_win_info): Declare.
4622 (tui_set_source_content_nil): Declare.
4623 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
4624 (union tui_line_or_address): Rename _TuiLineOrAddress.
4625 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
4626 (tui_update_source_window): Rename tuiUpdateSourceWindow.
4627 (tui_update_source_window_as_is): Rename
4628 tuiUpdateSourceWindowAsIs.
4629 (tui_update_source_windows_with_addr): Rename
4630 tuiUpdateSourceWindowsWithAddr.
4631 (tui_update_source_windows_with_line): Rename
4632 tuiUpdateSourceWindowsWithLine.
4633 (tui_clear_source_content): Rename tuiClearSourceContent.
4634 (tui_erase_source_content): Rename tuiEraseSourceContent.
4635 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
4636 (tui_show_source_content): Rename tuiShowSourceContent.
4637 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
4638 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
4639 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
4640 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
4641 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
4642 (tui_update_exec_info): Rename tuiUpdateExecInfo.
4643 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
4644 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
4645 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
4646 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
4647 (struct tui_win_info): Declare.
4648 * tui/tui-stack.c: Update references.
4649 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
4650 * tui/tui-win.c, tui/tui-source.c: Ditto.
4651 * tui/tui.c, tui/tui-disasm.c: Ditto.
4652
9fbfb822
MK
46532004-02-06 Mark Kettenis <kettenis@gnu.org>
4654
4655 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
4656 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
4657
03cebad2
MK
46582004-02-05 Mark Kettenis <kettenis@gnu.org>
4659
4660 * infrun.c (handle_inferior_event): Allow for breakpoint
4661 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
4662 and SIGEMT. Update comments.
4663 * NEWS (Revised SPARC target): Mention support for non-executable
4664 stack.
4665
290281b1
MK
46662004-02-04 Mark Kettenis <kettenis@gnu.org>
4667
4668 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
4669 * inftarg.c: Update copyright year.
4670 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
4671 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
4672 (sparc_xfer_wcookie): New function.
4673 * sparc-tdep.c (sparc_fetch_wcookie): New function.
4674 * Makefile.in (sparc-nat.o): Update dependencies.
4675 * config/sparc/nm-nbsd.h: Include "target.h".
4676 (NATIVE_XFER_WCOOKIE): New define.
4677 (sparc_xfer_wcookie): New prototype.
4678
212161df
AC
46792004-02-04 Andrew Cagney <cagney@redhat.com>
4680
4681 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
4682 SYSCALL_TRAP function.
4683 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
4684
6e4c6c91
DJ
46852004-02-04 Andrew Cagney <cagney@redhat.com>
4686 Daniel Jacobowitz <drow@mvista.com>
4687
4688 * objfiles.h: Delete comments refering to inside_entry_func and
4689 DEPRECATED_FRAME_CHAIN_VALID.
4690 * defs.h (inside_entry_func): Update prototype..
4691 * blockframe.c (inside_entry_func): Rename to
4692 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
4693 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
4694
cae688ec
JJ
46952004-02-03 Jeff Johnston <jjohnstn@redhat.com>
4696
4697 * breakpoint.c (struct captured_parse_breakpoint_args): Move
4698 outside of #ifdef SOLIB_ADD region.
4699 (do_restore_lang_radix_cleanup): Ditto.
4700 (resolve_pending_breakpoint): Ditto.
4701
19217676
AC
47022004-02-03 Andrew Cagney <cagney@redhat.com>
4703
4704 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
4705 (process_note_abi_tag_sections): Delete unused function.
4706 (ia64_read_fp): Delete unused function.
4707 (gdbarch_extract_struct_value_address): Delete declaration.
4708
876753be
AC
47092004-02-02 Andrew Cagney <cagney@redhat.com>
4710
4711 * vax-tdep.c (vax_frame_chain): Delete call to
4712 deprecated_inside_entry_file.
4713 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
4714
d4f10bf2
MK
47152004-02-02 Mark Kettenis <kettenis@gnu.org>
4716
4717 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
4718 column that's "empty" or "same value" when eliminating REG_RA
4719 rules.
4720
cae688ec
JJ
47212004-02-02 Jeff Johnston <jjohnstn@redhat.com>
4722
4723 * NEWS: Add information about new pending breakpoint support.
4724
0101ce28
JJ
47252004-02-02 Jeff Johnston <jjohnstn@redhat.com>
4726
4727 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
4728 and pending fields for pending breakpoint support.
4729 * breakpoint.c (breakpoint_enabled): Add check for not pending.
4730 (condition_command): Only parse condition if not a pending
4731 breakpoint.
4732 (print_one_breakpoint): Add support for pending breakpoints.
4733 (describe_other_breakpoints): Add checks to verify we are not
4734 dealing with pending breakpoints.
4735 (check_duplicates): Don't check pending breakpoints.
4736 (set_raw_breakpoint): Initialize pending flag.
4737 (do_restore_lang_radix_cleanup): New cleanup routine.
4738 (resolve_pending_breakpoint): New function.
4739 (re_enable_breakpoints_in_shlibs): Try and resolve any
4740 pending breakpoints via resolve_pending_breakpoint.
4741 (mention): Add pending breakpoint support.
4742 (parse_breakpoint_sals): Add new parameter to pass to
4743 decode_line_1 to indicate silent errors when files or functions
4744 are not found. Change all callers.
4745 (do_captured_parse_breakpoint): New function.
4746 (break_command_1): Change prototype to return an rc value and to
4747 take an optional pending breakpoint pointer. Support creating
4748 a pending breakpoint if a "not found" form of error occurs when
4749 parsing the breakpoint. Also support resolving an existing pending
4750 breakpoint and be silent if the resolution fails.
4751 (create_breakpoints): Change prototype to take pending breakpoint
4752 pointer. When resolving a pending breakpoint, use the new pointer
4753 to provide a conditional or commands added by the end-user.
4754 (delete_breakpoint): Add appropriate check for pending.
4755 (breakpoint_re_set_one): Ditto.
4756 (do_enable_breakpoint): Ditto.
4757
8d577d32
DC
47582004-02-02 David Carlton <carlton@kealia.com>
4759
4760 * valops.c (enum oload_classification): New.
4761 (find_overload_match): Break implementation into separate
4762 functions; delete #if 0'd code; look for symbols within
4763 namespaces.
4764 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
4765 (find_oload_champ,oload_method_static,classify_oload_match): New.
4766 * cp-support.h: Add declaration for cp_func_name; update
4767 declaration for make_symbol_overload_list.
4768 * cp-support.c (cp_func_name): New.
4769 (overload_list_add_symbol): Fix comment, use
4770 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
4771 (make_symbol_overload_list): Take a function name and a namespace
4772 instead of a symbol; change implementation.
4773 (make_symbol_overload_list_using): New.
4774 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
4775
22e8e3c7
FF
47762004-02-02 Fred Fish <fnf@redhat.com>
4777
4778 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 4779 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
4780 * remote-sim.c (gdb_os_write_stderr): Write output to
4781 gdb_stdtargerr stream instead of gdb_stdtarg stream.
4782 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 4783 gdb_stderr stream and update copyright years.
22e8e3c7 4784
6b753f60
DJ
47852004-02-01 Daniel Jacobowitz <drow@mvista.com>
4786
4787 * Makefile.in (mips-linux-nat.o): Update dependencies.
4788 * mips-linux-nat.c: Include mips-tdep.h.
4789
47902004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
4791
4792 * sol-thread.c (sol_thread_xfer_partial): New function.
4793 (init_sol_thread_ops): Use that for to_xfer_partial hook.
4794 (init_sol_core_ops): Likewise.
4795
4796 * procfs.c (procfs_xfer_partial): New function.
4797 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
4798 * Makefile.in (procfs.o): Add $(auxv_h) dep.
4799
4800 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
4801 procfs_xfer_auxv function.
4802
4803 * procfs.c (procfs_make_note_section): If we can read
4804 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
4805 * linux-proc.c (linux_make_note_section): Likewise.
4806
4807 * auxv.h: New file.
4808 * auxv.c: New file.
4809 * Makefile.in (auxv_h): New variable.
4810 (COMMON_OBS): Add auxv.o here.
4811 (auxv.o): New target.
4812
4813 * corelow.c (core_xfer_partial): New function.
4814 (init_core_ops): Use it for core_ops.to_xfer_partial.
4815
4816 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
4817 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
4818 macro if that is defined.
4819
fa5281d0
DJ
48202004-02-01 Daniel Jacobowitz <drow@mvista.com>
4821
4822 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
4823 and check the specified thread for each breakpoint.
4824 * breakpoint.h (bpstat_stop_status): Update prototype.
4825 * infrun.c (handle_inferior_event): Update calls to
4826 bpstat_stop_status.
4827
26ee262d
DJ
48282004-02-01 Daniel Jacobowitz <drow@mvista.com>
4829
4830 * Makefile.in (cli-cmds.o): Add $(readline_h).
4831
d9b52655
DJ
48322004-02-01 Daniel Jacobowitz <drow@mvista.com>
4833
4834 * cli/cli-cmds.c: Include readline.h.
4835 (complete_command): Pass the start of the last word to
4836 complete_line.
4837
9709f61c
DJ
48382004-01-31 Daniel Jacobowitz <drow@mvista.com>
4839
4840 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
4841 argument, and change first argument to a CORE_ADDR.
4842 * breakpoint.h (bpstat_stop_status): Update prototype.
4843 * infrun.c (adjust_pc_after_break): Add a new comment.
4844 (handle_inferior_event): Update calls to bpstat_stop_status.
4845
4f1280bb
DJ
48462004-01-31 Daniel Jacobowitz <drow@mvista.com>
4847
4848 * breakpoint.h: Update copyright years.
4849
4fa8626c
DJ
48502004-01-31 Daniel Jacobowitz <drow@mvista.com>
4851
4852 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
4853 (bpstat_stop_status): Don't decrement PC.
4854 * breakpoint.h (software_breakpoint_inserted_here_p): Add
4855 prototype.
4856 * infrun.c (adjust_pc_after_break): New function.
4857 (handle_inferior_event): Call it, early. Remove later references
4858 to DECR_PC_AFTER_BREAK.
4859 (normal_stop): Add commentary.
4860
fad0733a
DJ
48612004-01-31 Daniel Jacobowitz <drow@mvista.com>
4862
4863 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
4864 2004-01-27 double-free fix.
4865
42cdca6c
MK
48662004-01-31 Mark Kettenis <kettenis@gnu.org>
4867
4868 * sparc-tdep.c (sparc_fetch_wcookie): New function.
4869 (sparc32_frame_prev_register): Handle StackGhost.
4870 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
4871
932d5416
RM
48722004-01-29 Roland McGrath <roland@redhat.com>
4873
4874 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
4875 * configure: Regenerated.
4876
4877 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
4878 * Makefile.in (procfs.o): Add dep.
4879
47d3492a
AC
48802004-01-28 Andrew Cagney <cagney@redhat.com>
4881
4882 * tui/tui-stack.h: Update copyright.
4883 (struct frame_info): Add opaque declaration.
4884 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
4885 (tui_show_locator_content): Rename tuiShowLocatorContent.
4886 (tui_show_frame_info): Rename tuiShowFrameInfo.
4887 * tui/tui-stack.c: Update copyright. Update references.
4888 * tui/tui-winsource.c: Update references.
4889 * tui/tui-win.c: Update references.
4890 * tui/tui-layout.c: Update references.
4891 * tui/tui-hooks.c: Update copyright, update references.
4892 * tui/tui.c: Update copyright, update references.
4893 * tui/tui-disasm.c: Update references.
4894
5d51ca54
DC
48952004-01-28 David Carlton <carlton@kealia.com>
4896
4897 * dwarf2read.c (add_partial_structure): Use demangled name if
4898 namespace equals "".
4899
086ed43d
JB
49002004-01-27 Jim Blandy <jimb@redhat.com>
4901
4902 Clean up misapplied patch:
4903 * dwarf2read.c (determine_prefix): Change one of the two forward
4904 declarations for 'determine_prefix_aux' to a declaration for this.
4905 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
4906 argument to 'die_specification'.
4907
2a35147e
JB
4908 * dwarf2read.c (read_func_scope): Re-indent comment.
4909
a355c7de 49102004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 4911
a355c7de
AC
4912 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
4913 b->exp to NULL after freeing so that error during re-parsing or
4914 evaluation of expressions associated with breakpoint don't
4915 eventually lead to re-freeing of storage.
4916 Committed by Andrew Cagney.
4917
63ff5125
AC
49182004-01-27 Andrew Cagney <cagney@redhat.com>
4919
4920 * source.c (ambiguous_line_spec): Delete undefined declaration.
4921 * m32r-rom.c (m32r_set_board_address): Delete unused function.
4922 (m32r_set_server_address, m32r_set_download_path): Ditto.
4923 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
4924
e142c38c
DJ
49252004-01-27 Daniel Jacobowitz <drow@mvista.com>
4926
4927 * dwarf2read.c: Update calls to changed and renamed functions, and
4928 references to moved variables.
4929
4930 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
4931 language, language_defn, list_in_scope, and ftypes members.
4932 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
4933 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
4934 (baseaddr): Remove globals.
4935
4936 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
4937 (set_cu_language, die_is_declaration, die_specification)
4938 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
4939 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
4940 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
4941 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
4942
4943 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
4944 cu.list_in_scope. Don't initialize cu_header_offset.
4945 (add_partial_symbol): Add local baseaddr.
4946 (psymtab_to_symtab_1): Add local baseaddr. Use
4947 objfile->section_offsets for consistency. Don't initialize
4948 cu_header_offset; do initialize cu.header.offset and
4949 cu.list_in_scope.
4950 (read_file_scope, read_func_scope, read_lexical_block_scope)
4951 (dwarf_decode_lines, new_symbol): Add local baseaddr.
4952
c6e06ede
MC
49532004-01-27 Michael Chastain <mec.gnu@mindspring.com>
4954
fb328ecc 4955 * PROBLEMS: Add gdb/1516.
c6e06ede 4956
48184fd4
AC
49572003-12-29 Robert Millan <robertmh@gnu.org>
4958
4959 Patch committed by Andrw Cagney.
4960 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
4961 * configure.tgt: Match knetbsd*-gnu.
4962
c1321b30
AC
49632004-01-26 Andrew Cagney <cagney@redhat.com>
4964
f3699be3
AC
4965 * breakpoint.c (catch_command_1): Delete #ifdef code.
4966 (catch_fork_command_1): Delete #ifdef wrapper.
4967 (catch_exec_command_1): Ditto.
4968 (catch_load_command_1): Ditto.
4969 (catch_unload_command_1): Ditto.
4970
c1321b30
AC
4971 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
4972 (catch_breakpoint): Delete #if0ed function.
4973 (disable_catch_breakpoint): Ditto.
4974 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
4975 (disable_catch, enable_catch, delete_catch): Ditto.
4976
b4501125
AC
49772004-01-26 Andrew Cagney <cagney@redhat.com>
4978
4979 * remote.c (echo_check, quit_flag): Delete variables.
4980 (cisco_kernel_mode): Delete variable.
4981 (minitelnet_return, tty_input, escape_count): Delete variables.
4982 (remote_cisco_mode): Delete variable.
4983 (remote_cisco_open, remote_cisco_close): Delete function.
4984 (remote_cisco_mourn, remote_cisco_wait): Delete function.
4985 (init_remote_cisco_ops): Delete function.
4986 (_initialize_remote): Do not install "remote cisco" code.
4987 (read_frame): Delete cisco specific code.
4988 (remote_info_process): Delete function.
4989 (remote_wait): Delete cisco specific code.
4990 (remote_cisco_section_offsets): Delete function.
4991 (remote_cisco_objfile_relocate): Delete function.
4992 (remote_async_wait): Delete cisco specific code.
4993 (minitelnet, readtty, readsocket): Delete function.
4994
74055713
AC
49952004-01-26 Andrew Cagney <cagney@redhat.com>
4996
4997 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
4998 comments mentioning extract_returned_value_address.
4999 * infcmd.c (print_return_value): Update. Add comments on
5000 extract_returned_value_address.
5001 * stack.c (return_command): Add comments on
5002 extract_returned_value_address.
5003 * values.c: Update comment.
5004 * m32r-tdep.c: Update comment.
5005 * sparc-tdep.c: Update comment.
5006 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
5007 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5008 * sh64-tdep.c (sh64_gdbarch_init): Update.
5009 * sh-tdep.c (sh_gdbarch_init): Update.
5010 * s390-tdep.c (s390_gdbarch_init): Update.
5011 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5012 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
5013 * m68k-tdep.c (m68k_gdbarch_init): Update.
5014 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5015 * m32r-tdep.c (m32r_gdbarch_init): Update.
5016 * ia64-tdep.c (ia64_gdbarch_init): Update.
5017 * h8300-tdep.c (h8300_gdbarch_init): Update.
5018 * frv-tdep.c (frv_gdbarch_init): Update.
5019 * arm-tdep.c (arm_gdbarch_init): Update.
5020 * alpha-tdep.c (alpha_gdbarch_init): Update.
5021
a67af2b9
AC
50222004-01-26 Andrew Cagney <cagney@redhat.com>
5023
5024 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
5025 SYMBOL_LOCATION_FUNCS
5026 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
5027 "struct symbol_ops".
5028 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
5029 type to "struct symbol_ops".
5030 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
5031 (struct symbol): Replace ".aux_value.loc.funcs" and
5032 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
5033 (SYMBOL_OBJFILE): Delete macro.
5034 (SYMBOL_LOCATION_FUNCS): Delete macro.
5035 (SYMBOL_LOCATION_BATON): Update.
5036 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
5037 intead of SYMBOL_LOCATION_FUNCS.
5038 * ax-gdb.c (gen_var_ref): Ditto.
5039 * printcmd.c (address_info): Ditto.
5040 * findvar.c (read_var_value): Ditto.
5041 (symbol_read_needs_frame): Ditto.
5042
c034e007
AC
50432004-01-26 Andrew Cagney <cagney@redhat.com>
5044
5045 * dwarf2read.c (read_func_scope): Document frame-base hack.
5046
bb472c1e
MK
50472004-01-25 Mark Kettenis <kettenis@gnu.org>
5048
5049 * infcmd.c (print_return_value): Plug memory leak; delete
5050 ui_stream object. Rename argument `structure_return' to
5051 `struct_return'.
5052
c8e737d5
MK
50532004-01-25 Mark Kettenis <kettenis@gnu.org>
5054
f941662f
MK
5055 * infcmd.c (print_return_value): Wrap long lines.
5056 (finish_command_continuation, finish_command): Remove unused
5057 variable `funcaddr'. Fix some coding-standards problems.
5058
c558d81a 5059 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 5060 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
5061 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
5062 TDEP->fpregset to zero.
5063
bf1e5861 5064 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
5065 floating-point registers for traditional NetBSD core files.
5066 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
5067 TDEP->sizeof_fpregset here.
5068
4c72d57a
MK
50692004-01-25 Mark Kettenis <kettenis@gnu.org>
5070
566626fa
MK
5071 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
5072 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
5073 function with code split out from
5074 sparc32nbsd_sigcontext_frame_cache.
5075 (sparc32nbsd_sigcontext_frame_cache): Use
5076 sparc32nbsd_sigcontext_saved_regs.
5077 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
5078 OpenBSD.
5079 * sparcobsd-tdep.c: New file.
5080 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
5081 (sparcobsd-tdep.o): New dependency.
5082 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
5083 * config/sparc/obsd.mt: New file.
5084
4c72d57a
MK
5085 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
5086 TDEP->fpregset to be initialized to enable core file register
5087 sets.
5088
7e5e9f88
MK
50892004-01-24 Mark Kettenis <kettenis@gnu.org>
5090
f0f207fd 5091 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
5092 Add opaque declarations.
5093 (sparc64nbsd_sigcontext_saved_regs): New prototype.
5094 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
5095 function with code split out from
5096 sparc64nbsd_sigcontext_frame_cache.
5097 (sparc64nbsd_sigcontext_frame_cache): Use
5098 sparc64nbsd_sigcontext_saved_regs.
5099 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
5100 OpenBSD.
5101 * sparc64obsd-tdep.c: New file.
5102 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
5103 (sparc64obsd-tdep.o): New dependency.
5104 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
5105 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
5106 * config/sparc/obsd64.mt: New file.
5107
690668cc
MK
5108 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
5109 read the instruction at PC.
5110
7e5e9f88
MK
5111 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
5112 value of GDB_OSABI_DEFAULT.
5113 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
5114 instead of GDB_OSABI_NETBSD_AOUT.
5115
68b6dce9
NR
51162004-01-24 Nick Roberts <nick@nick.uklinux.net>
5117
5118 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
5119 copyright.
5120
080ce8c0
AC
51212004-01-23 Andrew Cagney <cagney@redhat.com>
5122
5123 * printcmd.c (display_command): Replace tui_set_display call with
5124 tui_set_layout_for_display_command.
5125 * tui/tui.h (enum tui_win_type): Define.
5126 (tui_set_layout): Delete declaration.
5127 (tui_set_layout_for_display_command): Rename set_tui_layout.
5128 * tui/tui-data.h (enum tui_layout_type): Define.
5129 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
5130 "tui.h".
5131 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
5132 (tui_default_win_height): Rename tuiDefaultWinHeight.
5133 (tui_default_win_viewport_height): Rename
5134 tuiDefaultWinViewportHeight.
5135 (tui_set_layout): RenametuiSetLayout.
5136 * tui/tui-layout.c: Update references.
5137 * tui/tui.c: Update references.
5138 * tui/tui-disasm.c: Update references.
5139
b368761e
DC
51402004-01-23 David Carlton <carlton@kealia.com>
5141
5142 Partial workaround for PR c++/1511:
5143 * cp-namespace.c: Include frame.h.
5144 (cp_lookup_transparent_type): New
5145 (cp_lookup_transparent_type_loop): New.
5146 * cp-support.h: Declare cp_lookup_transparent_type.
5147 * symtab.c (basic_lookup_transparent_type): Renamed from
5148 lookup_transparent_type.
5149 (lookup_transparent_type): Replace old body by a call to
5150 current_language->la_lookup_transparent_type.
5151 * symtab.h: Update copyright. Declare
5152 basic_lookup_transparent_type.
5153 * language.h: Update copyright.
5154 (struct language_defn): Add la_lookup_transparent_type.
5155 * language.c: Update copyright.
5156 (unknown_language_defn): Add basic_lookup_transparent_type.
5157 (auto_language_defn): Add basic_lookup_transparent_type.
5158 (local_language_defn): Add basic_lookup_transparent_type.
5159 * ada-lang.c: Update copyright.
5160 (ada_language_defn): Add basic_lookup_transparent_type.
5161 * c-lang.c: Update copyright.
5162 (c_language_defn): Add basic_lookup_transparent_type.
5163 (cplus_language_defn): Add basic_lookup_transparent_type.
5164 (asm_language_defn): Add basic_lookup_transparent_type.
5165 (minimal_language_defn): Add basic_lookup_transparent_type.
5166 * f-lang.c: Update copyright.
5167 (f_language_defn): Add basic_lookup_transparent_type.
5168 * jv-lang.c: Update copyright.
5169 (java_language_defn): Add basic_lookup_transparent_type.
5170 * m2-lang.c: Update copyright.
5171 (m2_language_defn): Add basic_lookup_transparent_type.
5172 * objc-lang.c: Update copyright.
5173 (objc_language_defn): Add basic_lookup_transparent_type.
5174 * p-lang.c: Update copyright.
5175 (p_language_defn): Add basic_lookup_transparent_type.
5176 * scm-lang.c: Update copyright.
5177 (scm_language_defn): Add basic_lookup_transparent_type.
5178 * Makefile.in (cp-namespace.o): Depend on frame.h.
5179
fdde2d81
DC
51802004-01-23 David Carlton <carlton@kealia.com>
5181
5182 Patch for PR c++/1520:
5183 * dwarf2read.c (read_func_scope): Set processing_current_prefix
5184 properly if we have a specification die.
5185 (determine_prefix_aux): Rename from determine_prefix.
5186 (determine_prefix): Like the old determine_prefix, but never
5187 returns NULL.
5188
5b828b6b
TR
51892004-01-23 Theodore A. Roth <troth@openavr.org>
5190
5191 * avr-tdep.c: Update copyright.
5192 (avr_iaddr_p): Delete unused function.
5193 (avr_saddr_p): Delete unused function.
5194
a1b8c067
DC
51952004-01-23 David Carlton <carlton@kealia.com>
5196
5197 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
5198 Fix for PR symtab/1534.
5199
f2cab569
MK
52002004-01-23 Mark Kettenis <kettenis@gnu.org>
5201
5202 * NEWS (New native configurations): Mention OpenBSD/sparc and
5203 OpenBSD/sparc64.
5204 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
5205 * configure.host: Likewise.
5206 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
5207 handler for OpenBSD.
5208 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
5209
642d8300
MK
52102004-01-22 Mark Kettenis <kettenis@gnu.org>
5211
89aac506
MK
5212 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
5213 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
5214
36662fde
MK
5215 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
5216 * cli/cli-cmds.c (shell_escape): Likewise.
5217
642d8300
MK
5218 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
5219 OpenBSD .note.openbsd.ident sections.
5220
fae299cd
DC
52212004-01-22 David Carlton <carlton@kealia.com>
5222
5223 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
5224 get_scope_pc_bounds.
5225 (read_file_scope): Ditto.
5226 (get_scope_pc_bounds): New function, produced by extracting code
5227 from the above two functions, consolidating it, and adding support
5228 for DW_TAG_namespace.
5229
a49d618c
MK
52302004-01-22 Mark Kettenis <kettenis@gnu.org>
5231
5232 * osabi.c (MAX_NOTESZ): New define.
5233 (check_note): New function.
5234 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
5235 check_note.
5236
fe61caab
RM
52372004-01-21 Roland McGrath <roland@redhat.com>
5238
5239 * MAINTAINERS (write after approval): Add myself.
5240
ec145965
EZ
52412004-01-21 Eli Zaretskii <eliz@gnu.org>
5242
5243 * utils.c (init_page_info): Move declarations of `rows' and
5244 `cols' before the __GO32__-specific code. Move the closing brace
5245 outside the #ifdef __GO32__..#endif block.
5246 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
5247
877522db
PB
52482004-01-21 Paul Brook <paul@codesourcery.com>
5249
5250 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
5251 BPSTAT_WHAT_CHECK_SHLIBS.
5252
dbf5be1c
PB
52532004-01-21 Paul Brook <paul@codesourcery.com>
5254
5255 * MAINTAINERS: Add myself to write-after-approval.
5256
81f08b92
AC
52572004-01-20 Andrew Cagney <cagney@redhat.com>
5258
5a1efed7
AC
5259 * ax-gdb.c (print_axs_value): Delete unused function.
5260 * jv-lang.c (java_lookup_type): Delete unused function.
5261 * cli/cli-dump.c (dump_filetype): Delete unused function.
5262 * remote-mips.c (remote_mips_insert_hw_breakpoint)
5263 (remote_mips_remove_hw_breakpoint): Delete unused functions.
5264 (mips_getstring): Delete unused function.
5265 (pmon_insert_breakpoint): Delete #if0ed function.
5266 (PMON_MAX_BP): Delete #if0ed MACRO.
5267 (mips_pmon_bp_info): Delete #if0ed variable.
5268 (pmon_remove_breakpoint): Delete #if0ed function.
5269 * monitor.c (monitor_write_even_block): Delete unused function.
5270 (monitor_write_memory_block): Delete #if0ed code.
5271 * dink32-rom.c (dink32_load): Delete unused function.
5272 (_initialize_dink32_rom): Delete #if0ed code.
5273 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
5274
b0a30fce
AC
5275 * tui/tui-command.c: Update references.
5276 * tui/tui-io.c: Update references.
5277 * tui/tui-command.h: Update copyright.
5278 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
5279
81f08b92
AC
5280 * source.c (ambiguous_line_spec): Delete never-defined function.
5281 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
5282 * gdbtypes.c (add_name, add_mangled_type): Ditto.
5283 * cli/cli-cmds.c (validate_comname): Ditto.
5284
65f05602
AC
5285 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
5286 "tui-data.h".
5287 (tui_set_disassem_content): Rename tuiSetDisassemContent.
5288 (tui_show_disassem): Rename tuiShowDisassem.
5289 (tui_show_disassem_and_update_source): Rename
5290 tuiVerticalDisassemScroll.
5291 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
5292 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
5293 * tui/tui.h: Update copyright.
5294 (enum tui_status): Define.
5295 * tui/tui-data.h (enum tui_scroll_direction): Define.
5296 * tui/tui-disasm.c: Update copyright. Update references.
5297 * tui/tui-winsource.c: Update copyright. Update references.
5298 * tui/tui-win.c: Update references.
5299 * tui/tui-layout.c: Update references.
5300
6bb0384f
AC
53012004-01-20 Andrew Cagney <cagney@redhat.com>
5302
5303 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
5304 sym2 to start of block.
5305
9175c9a3
MC
53062004-01-19 Michael Chastain <mec.gnu@mindspring.com>
5307
5308 * MAINTAINERS: Delete mmalloc.
5309 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
5310 * NEWS: Mention removal of --with-malloc.
5311 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
5312 * config.in: Regenerate.
5313 * configure: Regenerate.
6bb0384f
AC
5314 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
5315 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
5316 * gdbinit.in: Remove mmalloc.
5317 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
5318 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
5319 * config/i386/go32.mh: Likewise.
5320 * config/i386/interix.mh: Likewise.
5321 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
5322
4fcef00a
JJ
53232004-01-19 Jeff Johnston <jjohnstn@redhat.com>
5324
5325 * linespec.c (decode_variable, symtab_from_filename): Call
5326 error_silent with error message instead of throwing an exception
5327 directly.
5328 * defs.h (error_silent, error_output_message): Add prototypes.
5329 (catch_exceptions_with_msg): Ditto.
5330 * utils.c (error_silent, error_output_message): New functions.
5331 * top.c (catch_exceptions_with_msg): New function.
5332
8e94b928
NR
53332004-01-20 Nick Roberts <nick@nick.uklinux.net>
5334
5335 * mi/mi-cmds.h (enum print_values): Add definition.
5336
5337 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
5338 type and value for simple data types and just the name and type
5339 for complex ones, if required.
5340
5341 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
5342 children, if required.
5343
a02d6af8
KB
53442004-01-19 Kevin Buettner <kevinb@redhat.com>
5345
5346 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
5347 unused declarations.
5348
78a4a9b9
AC
53492004-01-19 Andrew Cagney <cagney@redhat.com>
5350
5351 * top.h (mapped_symbol_files): Delete declaration.
5352 * main.c (captured_main): Delete option "m" and "mapped".
5353 * objfiles.c (mapped_symbol_files): Delete variable.
5354 * symfile.c (symbol_file_command): Delete mmap code.
5355 (symbol_file_add_with_addrs_or_offsets): Ditto.
5356 (add_symbol_file_command, reread_separate_symbols): Ditto.
5357 * objfiles.h (OBJF_MAPPED): Delete.
5358 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
5359 (free_objfile) [USE_MMALLOC]: Ditto.
5360 (open_existing_mapped_file): Delete function.
5361 (open_mapped_file): Delete function.
5362 (map_to_file): Delete function.
5363
2dbd5e30
KB
53642004-01-19 Kevin Buettner <kevinb@redhat.com>
5365
5366 * infrun.c (step_into_function): Account for possible breakpoint
5367 adjustment when computing ``stop_func_start''.
5368
437b434f
KB
53692004-01-19 Kevin Buettner <kevinb@redhat.com>
5370
5371 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
5372 the region size against the size of a pointer, not the size of
5373 a register as given by DEPRECATED_REGISTER_SIZE.
5374
55fb0713
AC
53752004-01-19 Andrew Cagney <cagney@redhat.com>
5376
5377 * tui/tui-regs.h: Include "tui-data.h".
5378 (tuiFirstRegElementNoInLine): Delete declaration.
5379 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
5380 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
5381 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
5382 (tui_calculate_regs_column_count): Rename
5383 tuiCalculateRegsColumnCount.
5384 (tui_check_register_values): Rename tuiCheckRegisterValues.
5385 (tui_show_registers): Rename tuiShowRegisters.
5386 (tui_display_registers_from_line): Rename
5387 tuiDisplayRegistersFromLine.
5388 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
5389 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
5390 (tui_first_reg_element_no_inline): Rename
5391 tuiFirstRegElementNoInLine.
5392 * tui/tui-data.h: Update copyright.
5393 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
5394 * tui/tui-windata.c: Update copyright, update references.
5395 * tui/tui-regs.c: Update copyright, update references.
5396 * tui/tui-win.c: Update copyright, update references.
5397 * tui/tui-layout.c: Update copyright, update references.
fe61caab 5398
cebe9500
AC
53992004-01-18 Andrew Cagney <cagney@redhat.com>
5400
bcdf1568
AC
5401 * tui/tui-io.c: Update copyright.
5402 (key_is_end_sequence, key_is_backspace): New functions.
5403 (key_is_command_char, key_is_start_sequence): New function.
5404 (tui_getc): Update references.
5405 * tui/tui-io.h: Update copyright.
5406 (m_tuiStartNewLine): Delete macro.
5407 (m_isBackspace, m_isDeleteChar): Delete macros.
5408 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
5409 (m_isNextPage, m_isPrevPage): Delete macros.
5410 (m_isLeftArrow, m_isRightArrow): Delete macros.
5411 (m_isXdbStyleCommandChar): Delete macro.
5412 (key_is_start_sequence): Declare, replace m_isStartSequence.
5413 (key_is_end_sequence): Declare, replace m_isEndSequence.
5414 (key_is_backspace): Declare ,replace m_isBackspace.
5415 (key_is_command_char): Declare, replace m_isCommandChar.
5416 * tui/tui-command.c: Update copyright.
5417 (tuiDispatchCtrlChar): Update references.
5418
130d87e6
AC
5419 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
5420 tuiSourceWin.h.
5421
d7b2e967
AC
5422 * tui/tui-command.c: Rename tui/tuiCommand.c.
5423 * tui/tui-command.h: Rename tui/tuiCommand.h.
5424 * tui/tui-data.c: Rename tui/tuiData.c.
5425 * tui/tui-data.h: Rename tui/tuiData.h.
5426 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
5427 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
5428 * tui/tui-io.c: Rename tui/tuiIO.c.
5429 * tui/tui-io.h: Rename tui/tuiIO.h.
5430 * tui/tui-layout.c: Rename tui/tuiLayout.c.
5431 * tui/tui-layout.h: Rename tui/tuiLayout.h.
5432 * tui/tui-regs.c: Rename tui/tuiRegs.c.
5433 * tui/tui-regs.h: Rename tui/tuiRegs.h.
5434 * tui/tui-source.c: Rename tui/tuiSource.c.
5435 * tui/tui-source.h: Rename tui/tuiSource.h.
5436 * tui/tui-stack.c: Rename tui/tuiStack.c.
5437 * tui/tui-stack.h: Rename tui/tuiStack.h.
5438 * tui/tui-win.c: Rename tui/tuiWin.c.
5439 * tui/tui-win.h: Rename tui/tuiWin.h.
5440 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
5441 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
5442 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
5443 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
5444 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
5445 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
5446 * tui/tui-file.c: Update includes.
5447 * tui/tui-hooks.c: Update includes.
5448 * tui/tui-interp.c: Update includes.
5449 * tui/tui.c: Update includes.
5450 * Makefile.in: Update all tui/ dependencies.
5451 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
5452
b2100910
AC
5453 * Makefile.in: Update copyright. Update dependencies.
5454
cebe9500
AC
5455 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
5456 problem.
5457
c6f0559b
AC
54582004-01-18 Andrew Cagney <cagney@redhat.com>
5459
43e9390b
AC
5460 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
5461 instead of register_gdbarch_init.
5462
c6f0559b
AC
5463 * remote-sds.c (tohex): Delete unused function. Update copyright.
5464 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
5465 * v850-tdep.c (v850_register_virtual_size): Ditto.
5466 * target.c (normal_target_post_startup_inferior): Ditto.
5467 * source.c (ambiguous_line_spec): Ditto.
5468 * remote.c (adapt_remote_get_threadinfo): Ditto.
5469 * mi/mi-out.c (out_field_fmt): Ditto.
5470 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
5471 (output_control_change_notification): Ditto.
5472 * m68k-tdep.c (m68k_register_byte): Ditto.
5473 (m68k_remote_breakpoint_from_pc): Ditto.
5474 * ui-out.c (init_ui_out_state): Delete unused declaration.
5475 * stabsread.c (search_value): Ditto.
5476 * mi/mi-cmd-env.c (env_cli_command): Ditto.
5477 * maint.c (print_section_table): Ditto.
5478 * infrun.c (set_follow_fork_mode_command): Ditto.
5479
a8504492
MK
54802004-01-18 Mark Kettenis <kettenis@gnu.org>
5481
5482 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
5483 DW_CFA_def_cfa_exporession. Add support for
5484 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
5485 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
5486
0bd8997e
AC
54872004-01-18 Andrew Cagney <cagney@redhat.com>
5488
5489 * ocd.c: Update copyright.
5490 (bdm_read_register_command): Delete unused function.
5491 (_initialize_remote_ocd): Delete commented out reference.
5492 (get_quoted_char, reset_packet): Delete #if0ed function.
5493 (output_packet, put_quoted_char): Delete #if0ed function.
5494 (stu_put_packet, stu_get_packet): Delete #if0ed function.
5495 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
5496 (BDM_BREAKPOINT): Delete #if0ed macro.
5497 (remote_timeout): Delete #if0ed variable.
5498
31bb40e4
MK
54992004-01-18 Mark Kettenis <kettenis@gnu.org>
5500
5501 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
5502 (core-sol2.o): Remove dependency.
5503 * core-sol2.c: Remove file.
5504
887432a5
AC
55052004-01-17 Andrew Cagney <cagney@redhat.com>
5506
5507 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
5508 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
5509 enums.
5510
29182b13
DJ
55112004-01-17 Daniel Jacobowitz <drow@mvista.com>
5512
5513 * remote.c: Update copyright years.
5514
2963ee1d
DJ
55152004-01-17 Daniel Jacobowitz <drow@mvista.com>
5516
5517 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
5518
79d45cd4
AC
55192004-01-17 Andrew Cagney <cagney@redhat.com>
5520
ee300cd4
AC
5521 * mdebugread.c: Update copyright.
5522 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
5523 (parse_type, parse_procedure): Ditto.
5524 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
5525
fcacc9c2
AC
5526 * cris-tdep.c (cris_store_struct_return): Put back accidently
5527 deleted function.
5528
79d45cd4
AC
5529 * gdbarch.sh: Update copyright year.
5530 * gdbarch.h, gdbarch.c: Re-generate.
5531
b263358a
DJ
55322004-01-17 Daniel Jacobowitz <drow@mvista.com>
5533
5534 Suggested by George Anzinger.
5535 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
5536 correct stack offset. Include unknown opcode numbers in the error
5537 message.
5538
931aecf5
AC
55392004-01-17 Andrew Cagney <cagney@redhat.com>
5540
5541 * x86-64-tdep.c (x86_64_init_abi): No need to clear
5542 extract_struct_value_address, i386 does not set it.
5543 * sparc64-tdep.c (sparc64_init_abi): Do not set
5544 extract_struct_value_address, never called.
5545 (sparc64_extract_struct_value_address): Delete function.
5546 * m68hc11-tdep.c: Update copyright.
5547 (m68hc11_gdbarch_init): Delete redundant assignment of
5548 extract_struct_value_address.
5549 * i386-tdep.c: Update copyright.
5550 (i386_gdbarch_init): Do not set extract_struct_value_address,
5551 never called.
5552 (i386_extract_struct_value_address): Delete function.
5553 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
5554 extract_struct_value_address, never called.
5555 (sparc32_extract_struct_value_address): #if 0 function. Add
5556 comments explaining its future.
5557
756fe439
DJ
55582004-01-17 Daniel Jacobowitz <drow@mvista.com>
5559
5560 * arm-tdep.c (arm_write_pc): New function.
5561 (arm_gdbarch_init): Call set_gdbarch_write_pc.
5562
e74f0f02
DJ
55632004-01-17 Daniel Jacobowitz <drow@mvista.com>
5564
5565 * breakpoint.c (must_shift_inst_regs): Delete.
5566 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
5567 and SHIFT_INST_REGS.
5568 * infcmd.c (step_1, step_1_continuation): Delete references to
5569 SHIFT_INST_REGS.
5570 * infrun.c (keep_going): Likewise.
5571 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
5572 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
5573
b6cb9035
AC
55742004-01-17 Andrew Cagney <cagney@redhat.com>
5575
444a1e2e
AC
5576 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5577 * gdbarch.h, gdbarch.c: Re-generate.
5578 * infcmd.c (print_return_value): Delete reference to
5579 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5580
def7e6ed
AC
5581 * cris-tdep.c (cris_gdbarch_init): Do not set
5582 deprecated_extract_struct_value_address.
5583
07be497a
AC
5584 * xstormy16-tdep.c: Update copyright.
5585 (xstormy16_extract_struct_value_address): Update to current
5586 extract struct value address interface.
5587 (xstormy16_gdbarch_init): Set extract_struct_value_address.
5588 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
5589 current extract struct value address interface.
5590 (sh64_gdbarch_init): Set extract_struct_value_address.
5591
6b4d5c91
AC
5592 * cris-tdep.c: Update copyright.
5593 (cris_extract_struct_value_address): Delete function.
5594 (struct_return_address): Delete variable.
5595 (cris_store_struct_return): Do not set struct_return_address.
5596
464e0365
AC
5597 * mcore-tdep.c: Update copyright.
5598 (mcore_extract_struct_value_address): Delete function. Update
5599 comments.
5600 (mcore_gdbarch_init): Update.
5601 * mn10300-tdep.c: Update copyright.
5602 (mn10300_extract_struct_value_address): Delete function.
5603 (mn10300_gdbarch_init): Update.
5604 * v850-tdep.c: Update copyright.
5605 (v850_extract_struct_value_address): Delete.
5606 (v850_gdbarch_init): Update.
5607 * ns32k-tdep.c: Update copyright.
5608 (ns32k_extract_struct_value_address): Delete.
5609 (ns32k_gdbarch_init): Update.
5610 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
5611 (hppa_gdbarch_init): Update.
5612 * vax-tdep.c: Update copyright.
5613 (vax_extract_struct_value_address): Delete.
5614 (vax_gdbarch_init): Update.
5615
afb18d0f
AC
5616 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
5617 * gdbarch.h, gdbarch.c: Re-generate.
5618 * procfs.c (procfs_fetch_registers): Delete reference to
5619 DEPRECATED_NPC_REGNUM.
5620 (procfs_store_registers): Ditto.
5621 * regcache.c (generic_target_write_pc): Simplify.
5622 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
5623
a698f53e
AC
5624 * core-sol2.c (fetch_core_registers): Replace
5625 DEPRECATED_NPC_REGNUM with equivalent tdep value.
5626
adc11376
AC
5627 * hppa-tdep.c: Update copyright year.
5628 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
5629 NPC_REGNUM.
5630 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
5631
b6cb9035
AC
5632 * mips-tdep.c (mips_write_pc): New function.
5633 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
5634 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
5635 (mips_find_saved_regs, mips_software_single_step: Ditto.
5636 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
5637 mips_init_extra_frame_info, mips_pop_frame): Ditto.
5638
6d82d43b
AC
56392004-01-17 Andrew Cagney <cagney@redhat.com>
5640
5641 * mips-tdep.c: Re-indent. Group functions by ABI.
5642
71bd6bd4
AC
56432004-01-17 Andrew Cagney <cagney@redhat.com>
5644
5645 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
5646 * gdbarch.c: Re-generate.
5647 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5648 DECR_PC_AFTER_BREAK to zero.
5649 * vax-tdep.c (vax_gdbarch_init): Ditto.
5650 * v850-tdep.c (v850_gdbarch_init): Ditto.
5651 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
5652 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5653 * sh-tdep.c (sh_gdbarch_init): Ditto.
5654 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5655 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5656 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5657 * mips-tdep.c (mips_gdbarch_init): Ditto.
5658 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5659 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5660 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
5661 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5662 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
5663 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5664 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5665 * frv-tdep.c (frv_gdbarch_init): Ditto.
5666 * cris-tdep.c (cris_gdbarch_init): Ditto.
5667 * avr-tdep.c (avr_gdbarch_init): Ditto.
5668 * arm-tdep.c (arm_gdbarch_init): Ditto.
5669 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
5670
a02abb62
JB
56712004-01-17 J. Brobecker <brobecker@gnat.com>
5672
5673 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
5674 Delete, no longer used.
5675 (read_subrange_type): New function, mostly extracted from
5676 read_array_type().
5677 (read_array_type): Replace extracted code by call to
5678 read_subrange_type().
5679 (dwarf2_get_attr_constant_value): New function.
5680 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
5681 (add_partial_symbol): Likewise.
5682 (process_die): Likewise.
5683 (new_symbol): Likewise.
5684 (read_type_die): Likewise.
5685
cf5b2f1b
AC
56862004-01-16 Andrew Cagney <cagney@redhat.com>
5687
5688 * symfile.c: Update copyright year.
5689 (compare_symbols): Delete unused function.
5690 * stabsread.c: Update copyright year.
5691 (lrs_general_complaint): Delete unused function.
5692 (ref_search_value): Ditto.
5693 (get_substring): Delete declaration.
5694 * sh64-tdep.c: Update copyright year.
5695 (sh64_get_gdb_regnum): Delete unused function.
5696 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
5697 Delete unused function.
5698
d33b9831
MK
56992004-01-17 Mark Kettenis <kettenis@gnu.org>
5700
5701 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
5702 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
5703
7aea86e6
AC
57042004-01-16 Andrew Cagney <cagney@redhat.com>
5705
5706 Changes from Peter Schauer.
5707 * rs6000-tdep.c: Update copyright year.
5708 (rs6000_push_dummy_call): Update the stack pointer before
5709 accessing the corresponding stack region.
5710 * rs6000-nat.c: Update copyright year.
5711 (set_host_arch): Set "info.abfd" to "exec_bfd".
5712
26b0da32
MK
57132004-01-15 Mark Kettenis <kettenis@gnu.org>
5714
5715 * blockframe.c: Update copyright year.
5716 (inside_entry_func): Don't treat a zero PC specially.
5717
86fbe6cc
EZ
57182004-01-14 Elena Zannoni <ezannoni@redhat.com>
5719
5720 * gcore.c (gcore_copy_callback): Use paddr_d to print size
5721 variable.
5722 (gcore_create_callback): Ditto. Skip any memory segment that has
5723 no permissions set.
5724
63d06c5c
DC
57252004-01-14 David Carlton <carlton@kealia.com>
5726
5727 Change symbols for C++ nested types to contain the fully qualified
5728 name, if possible. (At least in the DWARF-2 case.) Partial fix
5729 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
5730 c++/895.
5731 * c-exp.y (qualified_type): Handle types nested within classes.
5732 * cp-namespace.c: Update comments.
5733 (cp_set_block_scope): Delete #if 0.
5734 (cp_lookup_nested_type): Handle types nested within classes.
5735 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
5736 when appropriate.
5737 (add_partial_symbol): Add the name of the enclosing namespace to
5738 types.
5739 (pdi_needs_namespace): New.
5740 (add_partial_namespace): Tweak comment.
5741 (add_partial_structure): New.
5742 (psymtab_to_symtab_1): Initialize processing_current_prefix
5743 here...
5744 (process_die): instead of here.
5745 (read_structure_scope): Try to figure out the name of the class or
5746 namespace that the structure might be defined within.
5747 (read_enumeration): Generate fully-qualified names, if possible.
5748 (read_namespace): Don't set name to NULL.
5749 (die_specification): New.
5750 (new_symbol): Generate fully-qualified names for types.
5751 (read_type_die): Determine appropriate prefix.
5752 (determine_prefix): New.
5753 (typename_concat): New.
5754 (class_name): New.
5755 * valops.c (value_aggregate_elt): Pass NOSIDE to
5756 value_struct_elt_for_reference.
5757 (value_struct_elt_for_reference): Make static, add NOSIDE
5758 parameter, call value_maybe_namespace_elt as a last resort.
5759 (value_namespace_elt): Break out code into
5760 value_maybe_namespace_elt.
5761 (value_maybe_namespace_elt): New.
5762
87783b8b
AC
57632004-01-12 Andrew Cagney <cagney@redhat.com>
5764
5765 * mips-tdep.c (mips_convert_register_p): Handle both raw and
5766 cooked floating-point registers.
5767 (mips_gdbarch_init): Set convert_register_p, register_to_value,
5768 and value_to_register.
5769
6503b91e
AC
57702004-01-13 Andrew Cagney <cagney@redhat.com>
5771
5772 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
5773 * gdbarch.c: Re-generate.
5774 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5775 FUNCTION_START_OFFSET.
5776 * v850-tdep.c (v850_gdbarch_init): Ditto.
5777 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
5778 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5779 * sh-tdep.c (sh_gdbarch_init): Ditto.
5780 * s390-tdep.c (s390_gdbarch_init): Ditto.
5781 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5782 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5783 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5784 * mips-tdep.c (mips_gdbarch_init): Ditto.
5785 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5786 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5787 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5788 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
5789 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5790 * i386-tdep.c (i386_gdbarch_init): Ditto.
5791 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5792 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5793 * frv-tdep.c (frv_gdbarch_init): Ditto.
5794 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5795 * cris-tdep.c (cris_gdbarch_init): Ditto.
5796 * avr-tdep.c (avr_gdbarch_init): Ditto.
5797 * arm-tdep.c (arm_gdbarch_init): Ditto.
5798 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5799
ea1dd7bc
DJ
58002004-01-13 Daniel Jacobowitz <drow@mvista.com>
5801
5802 * infrun.c (follow_fork_mode_ask): Remove.
5803 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
5804 (follow_fork): Simplify and remove internal error for
5805 follow_fork_mode_ask.
5806 (_initialize_infrun): Update "set follow-fork-mode" help text.
5807
0f0cffd2
AC
58082004-01-13 Andrew Cagney <cagney@redhat.com>
5809
5810 * configure.in: Update copyright year.
5811 (build_warnings): Add -Wunused-label.
5812 * configure: Re-generate.
5813
de38af99
AC
58142004-01-12 Andrew Cagney <cagney@redhat.com>
5815
954a7fba
AC
5816 * exec.h (exec_ops): Make "extern".
5817
de38af99
AC
5818 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
5819 the function is void.
5820 (mips_pseudo_register_write): Ditto.
5821
1a111ce3
AC
58222004-01-12 Andrew Cagney <cagney@redhat.com>
5823
5824 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
5825 call. Never defined.
5826 * sparc-tdep.h (struct frame_info): Add opaque declaration.
5827 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
5828 (struct sparc_gregset, struct regcache): Ditto.
5829 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
5830
48efe704
AC
58312004-01-12 Andrew Cagney <cagney@redhat.com>
5832
5833 * mi/ChangeLog: Delete file. Renamed to ...
5834 * mi/ChangeLog-1999-2003: New file.
5835 * tui/ChangeLog: Delete file. Renamed to ...
5836 * tui/ChangeLog-1998-2003: New file.
fe61caab 5837
a54124c5
MK
58382004-01-11 Mark Kettenis <kettenis@gnu.org>
5839
2ca62865
MK
5840 * sparc64nbsd-tdep.c: Include "regset.h".
5841 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
5842 Remove variables.
5843 (fetch_core_registers): Remove function.
5844 (sparc64nbsd_core_fns): Remove variable.
5845 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
5846 functions.
5847 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
5848 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
5849 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
5850
ca9d58e9
MK
5851 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
5852 sparc_extract_struct_value_address.
5853 (sparc32_gdbarch_init): Set extract_struct_value_address.
5854 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
5855 function.
5856 (sparc64_init_abi): Set extract_struct_value_address. Don't set
5857 return_value_on_stack.
5858
3cc87ec0
MK
5859 * NEWS: Mention that %cs and %ss have been added to the AMD64
5860 configurations
5861
5bf00f29
MK
5862 * frame.c: Update copyright year.
5863 (get_prev_frame): Improve comment.
5864
4f7ec84e
MK
5865 * sparc64fbsd-tdep.c: Include "regset.h".
5866 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
5867 Remove variables.
5868 (fetch_core_registers): Remove function.
5869 (sparc64fbsd_core_fns): Remove variable.
5870 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
5871 functions.
5872 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
5873 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 5874 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 5875
4e7b0cd3
MK
5876 * sparcnbsd-tdep.c: Include "regset.h".
5877 (fetch_core_registers): Remove function.
5878 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
5879 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
5880 functions.
5881 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
5882 TDEP->fpregset.
46b58ce9 5883 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 5884
a54124c5
MK
5885 * sparc-tdep.h (struct regset): Provide opaque declaration.
5886 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
5887 fpregset and sizeof_fpregset members.
5888 * sparc-tdep.c (struct regset): Provide opaque declaration.
5889 (sparc_regset_from_core_section): New function.
5890 (sparc32_gdbarch_init): Initialize TDEP->gregset,
5891 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
5892 Set regset_from_core_section when appropriate.
5893
29ff87c5
MK
58942004-01-10 Mark Kettenis <kettenis@gnu.org>
5895
79b1ab3d
MK
5896 * x86-64-tdep.c (amd64_non_pod_p): New function.
5897 (amd64_classify_aggregate): Return class memory for non-POD
5898 C++ structure types.
5899
6470d250
MK
5900 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
5901 argument. Use it to reserve a register if necessary.
5902 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
5903 amd64_push_arguments.
5904
562c50c2
MK
5905 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
5906
af233647
MK
5907 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
5908 register numbers in comments.
5909 * x86-64-tdep.h: Update copyright year.
5910 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
5911 Adjust for addition of %cs and %ss.
5912 * amd64fbsd-nat.c: Update copyright year.
5913 (reg_offset): Add register offsets for %cs and %ss.
5914 * amd64fbsd-tdep.c: Update copyright year.
5915 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
5916 (amd64fbsd_sc_reg_offset): Likewise.
5917 * x86-64-linux-nat.c: Update copyright year.
5918 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
5919 and %ss.
5920 * amd64nbsd-nat.c: Update copyright year.
5921 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
5922 * amd64nbsd-tdep.c: Update copyright year.
5923 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
5924 * x86-64-linux-tdep.c: Update copyright year.
5925 (user_to_gdb_regmap): Add mapping for %cs and %ss.
5926 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
5927 * regformats/reg-x86-64.dat: Add %cs and %ss.
5928
29ff87c5
MK
5929 * blockframe.c (inside_entry_func): Reformat. Introduce new local
5930 variables to prevent long lines. Update comments to reflect
5931 reality.
5932
38d518c9
EZ
59332004-01-09 David Carlton <carlton@kealia.com>
5934
5935 Checked in by Elena Zannoni <ezannoni@redhat.com>.
5936 * dwarf2read.c (read_namespace): Pull out name-generating code
5937 into namespace_name. Rename previous_namespace to previous_prefix
5938 and processing_current_namespace to processing_current_prefix..
5939 (namespace_name): New function.
5940 (add_partial_symbol): Substitute uses of pdi->name with
5941 actual_name.
5942 * cp-support.h: Rename processing_current_namespace to
5943 processing_current_prefix.
5944 Update copyright year.
5945 * cp-namespace.c: Rename processing_current_namespace to
5946 processing_current_prefix.
5947 Update copyright year.
fe61caab 5948
1e4728e7
AC
59492004-01-09 Andrew Cagney <cagney@redhat.com>
5950
5951 * jv-valprint.c, ser-unix.c: Add missing copyright years.
5952
c77c642a
MK
59532004-01-09 Mark Kettenis <kettenis@gnu.org>
5954
5955 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
5956 complaining.
5957 (process_one_symbol): Deal with N_PATCH stabs.
5958
b44e9041
EZ
59592004-01-09 Elena Zannoni <ezannoni@redhat.com>
5960
5961 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
5962 ifdeffed code.
5963 Update copyright year.
38d518c9 5964
eccfb640
MC
59652004-01-08 Michael Chastain <mec.gnu@mindspring.com>
5966
5967 * config/pa/tm-hppa.h: Update extern declarations for
5968 hppa32_hpux_frame_saved_pc_in_sigtramp,
5969 hppa32_hpux_frame_base_before_sigtramp, and
5970 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
5971
848c5feb
MC
59722004-01-08 Michael Chastain <mec.gnu@mindspring.com>
5973
5974 * config/pa/tm-hppah.h: Update copyright years.
5975
3cc5d663
AC
59762004-01-08 Andrew Cagney <cagney@redhat.com>
5977
5978 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
5979 (mips_o32_reg_struct_has_addr): Delete function.
5980 (mips_gdbarch_init): Update.
5981 (mips_extract_struct_value_address): Delete function.
5982
bfec0b41
JJ
59832004-01-08 David Mosberger <davidm@hpl.hp.com>
5984
5985 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
5986 reality.
5987
16e109ca
AC
59882004-01-07 Andrew Cagney <cagney@redhat.com>
5989
6214a8a1
AC
5990 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
5991 architecture's elf flags (when available).
5992
8d5838b5
AC
5993 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
5994 FPU to the start, check the MIPS FPU when looking for an old
5995 architecture.
5996 (set_mipsfpu_single_command): Update the architecture.
5997 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
5998
480d3dd2
AC
5999 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
6000 (mips_mask_address_p): Add "tdep" parameter.
6001 (show_mask_address, mips_addr_bits_remove): Update.
6002 (mips_dump_tdep): Update.
6003 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
6004 (MIPS_STACK_ARGSIZE): Delete macro.
6005 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
6006 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
6007 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
6008 (mips_dump_tdep): Update.
6009 (MIPS_SAVED_REGSIZE): Delete macro.
6010 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
6011 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
6012 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
6013 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
6014 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
6015 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
6016 (mips_pop_frame, return_value_location): Update.
6017 (mips_n32n64_return_value, mips_dump_tdep): Update.
6018
ec03c1ac
AC
6019 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
6020 MIPS ABI.
6021
16e109ca
AC
6022 * mips-tdep.c: Update copyright.
6023 (mips_gdbarch_init): Merge two code blocks handling the register
6024 name and number layout.
6025
15255275
MS
60262004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
6027
6028 * tracepoint.c (validate_actionline): Fix segv at EOF
6029
9f9057da
MC
60302004-01-07 Michael Chastain <mec.gnu@mindspring.com>
6031
6032 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
6033 properly for static fields.
6034
0127c0d3 60352004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 6036 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
6037
6038 * disasm.c: Update copyright to include 2004.
6039 (do_mixed_source_and_assembly): For uiout asm list
6040 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 6041 NULL and do so prior to loop. Only reset when we close off
0127c0d3 6042 the tuple/list. Move check for whether to close off the
fe61caab 6043 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
6044 on each loop iteration.
6045
5269965e
AC
60462004-01-05 Andrew Cagney <cagney@redhat.com>
6047
54f1137d
AC
6048 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
6049 should be a switch case and not a label.
6050 * mips-tdep.c (mips32_next_pc): Delete unused labels
6051 "greater_equal_branch" and "less_zero_branch".
6052 * jv-valprint.c (java_print_value_fields): Delete unused label
6053 "flush_it".
6054
5269965e
AC
6055 * target.c (unpush_target): Only close a target that is in the
6056 target stack.
6057
dbc22fa1
MK
60582004-01-05 Mark Kettenis <kettenis@gnu.org>
6059
9515395e
MK
6060 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
6061 address from [sp + 64] instead of %o2.
6062
dbc22fa1
MK
6063 * frame.c (get_prev_frame): Don't try to unwind the PC. This
6064 fixes PR backtrace/1476.
6065
5439edaa
AC
60662004-01-05 Andrew Cagney <cagney@redhat.com>
6067
6068 * libunwind-frame.h (struct frame_id): Add opaque declaration,
6069 move to start of file.
6070 * i386-tdep.h (struct regcache): Add opaque declaration.
6071 * config/ia64/nm-linux.h (struct target_ops): Add opaque
6072 declaration.
6073 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
6074 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
6075 * win32-nat.c (fake_create_process): Use ISO C style definition.
6076 * stabsread.c (define_symbol): Delete #ifndef
6077 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
6078 stabs_argument_has_addr call, macro never defined.
6079
19061abe
MC
60802004-01-04 Michael Chastain <mec.gnu@mindspring.com>
6081
6082 * op50-rom.c: Delete.
6083 * w89k-rom.c: Delete.
6084 * Makefile.in: Remove references.
6085
e53bef9f
MK
60862004-01-04 Mark Kettenis <kettenis@gnu.org>
6087
6088 * x86-64-tdep.c: Update copyright year.
6089 (struct amd64_register_info): Rename from x86_64_register_info.
6090 (amd64_register_info): Rename from x86_64_register_info.
6091 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
6092 (amd64_register_name): Rename from x86_64_register_name.
6093 (amd64_register_type): Rename from x86_64_register_type.
6094 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
6095 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
6096 (amd64_dwarf_reg_to_regnum): Rename from
6097 x86_64_dwarf_reg_to_regnum.
6098 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
6099 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
6100 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
6101 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
6102 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
6103 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
6104 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
6105 (amd64_frame_cache): Rename from x86_64_frame_cache.
6106 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
6107 (amd64_frame_prev_register): Rename from
6108 x86_64_frame_prev_register.
6109 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
6110 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
6111 (amd64_sigtramp_frame_cache): Rename from
6112 x86_64_sigtramp_frame_cache.
6113 (amd64_sigtramp_frame_prev_register): Rename from
6114 x86_64_sigtramp_frame_prev_register.
6115 (amd64_sigtramp_frame_unwind): Rename from
6116 x86_64_sigtramp_frame_unwind.
6117 (amd64_sigtramp_frame_sniffer): Rename from
6118 x86_64_sigtramp_frame_sniffer.
6119 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
6120 (amd64_frame_base): Rename from x86_64_frame_base.
6121 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
6122 (amd64_frame_align): Rename from x86_64_frame_align.
6123 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
6124 (amd64_regset_from_core_section): Rename from
6125 x86_64_regset_from_core_section.
6126 (x86_64_init_abi): Update comments.
6127
fca6aa58
NR
61282004-01-04 Nick Roberts <nick@nick.uklinux.net>
6129
6130 * MAINTAINERS (write after approval): Add myself.
6131
8ada74e3
MK
61322004-01-04 Mark Kettenis <kettenis@gnu.org>
6133
6134 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6135 `float' arguments.
6136
5154b0cd
MK
61372004-01-04 Mark Kettenis <kettenis@gnu.org>
6138
6139 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
6140 such that it mentions a specific version of GCC that exhibits this
6141 bug.
6142
fb316966
MK
61432004-01-03 Mark Kettenis <kettenis@gnu.org>
6144
200cc553
MK
6145 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
6146 structure that has a single `float' member, store it in %f1 in
6147 addition to %f0.
6148
e226a4a0
MK
6149 * sparc-sol2-nat.c: Add missing '\'.
6150
b9d4c5ed
MK
6151 * sparc-tdep.c (sparc32_return_value): New function.
6152 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
6153 Remove functions.
6154 (sparc32_gdbarch_init): Set return_value, don't set
6155 extract_return_value, store_return_value, use_struct_convention
6156 and return_value_on_stack.
6157
fb316966
MK
6158 * sparc-sol2-nat.c: Add missing ')'.
6159
1af510a8
JB
61602004-01-03 J. Brobecker <brobecker@gnat.com>
6161
6162 * infrun.c (handle_step_into_function): New function.
6163 (handle_inferior_event): Extract out some code into the new
6164 function above.
6165
5cf4d23a
JB
61662004-01-03 J. Brobecker <brobecker@gnat.com>
6167
6168 * infrun.c (handle_inferior_event): Move the declaration of
6169 real_stop_pc inside the if blocks where it is used.
6170
60af1db2
MK
61712004-01-03 Mark Kettenis <kettenis@gnu.org>
6172
6173 * sparc64-tdep.c (sparc64_16_byte_align_p)
6174 (sparc64_store_floating_fields, sparc64_store_floating_fields):
6175 Use check_typedef to get subtypes of structures and unions.
6176 (sparc64_store_return_value): Fix calculation of the appropriate
6177 offset into VALBUF when storing a structure or union.
6178 (sparc64_return_value): New function.
6179 (sparc64_use_struct_convention): Remove function.
6180 (sparc64_init_abi): Set return_value, don't set
6181 extract_return_value, store_return_value and
6182 use_struct_convention.
6183
1a901d3f
EZ
61842004-01-03 Eli Zaretskii <eliz@elta.co.il>
6185
6186 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
6187 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
6188 gdb/config/alpha/xm-alphaosf.h,
6189 gdb/config/powerpc/tm-ppcle-eabi.h,
6190 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
6191 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
6192 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
6193 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
6194 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
6195 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
6196 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
6197 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
6198 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
6199 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
6200 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
6201 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
6202 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
6203 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
6204 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
6205 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
6206 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
6207 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
6208 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
6209 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
6210 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
6211 Remove lines for .cvsignore files.
6212
ef52e463
JB
62132004-01-03 J. Brobecker <brobecker@gnat.com>
6214
6215 * infrun.c: Back out the previous change.
6216
cb1bf9dc
MK
62172004-01-03 Mark Kettenis <kettenis@gnu.org>
6218
f0424ef6
MK
6219 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
6220 sparc-*-sunos4* to the list of REMOVED configurations.
6221
cb1bf9dc
MK
6222 * configure.tgt: Add back sparc-*-vxworks*.
6223 * remote-vxsparc.c: Remove all includes except for "defs.h",
6224 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
6225 Include "sparc-tdep.h".
6226 (SPARC_R_G1): New define.
6227 (vxsparc_gregset): New variable.
6228 (ext_format_sparc): Remove extern declaration.
6229 (vx_read_register): Rewrite to use sparc32_supply_gregset and
6230 sparc32_supply_fpregset.
6231 (vx_write_register): Rewrite to use sparc32_collect_gregset,
6232 sparc_collect_rwindow and sparc32_collect_fpregset.
6233 * config/sparc/tm-vxworks.h: New file, based on recently removed
6234 tm-vxsparc.h.
6235 * config/sparc/vxworks.mt: New file, based on recently removed
6236 vxworks.mt.
fe61caab 6237
5e938f9f
JB
62382004-01-03 J. Brobecker <brobecker@gnat.com>
6239
6240 * infrun.c (handle_step_into_function): New function.
6241 (handle_inferior_event): Extract out some code into the new
6242 function above.
6243
386c036b
MK
62442004-01-02 Mark Kettenis <kettenis@gnu.org>
6245
6246 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
6247 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
6248 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
6249 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
6250 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
6251 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
6252 (sparc_nat_h): New variable.
6253 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
6254 (tm-sun4os4.h): Remove dependency.
6255 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
6256 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
6257 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
6258 sparc-tdep.o): Update dependencies.
6259 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
6260 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
6261 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
6262 dependencies.
6263 * configure.host: Remove existing sparc-*-lynxos*,
6264 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
6265 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
6266 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
6267 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
6268 triplets.
6269 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
6270 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
6271 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
6272 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
6273 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
6274 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
6275 sparc64-*-solaris2* and sparc64-*-* triplets.
6276 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
6277 "symtab.h" and "objfiles.h".
6278 (BIAS): Remove define.
6279 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
6280 (X_DISP19): Remove macros.
6281 (sparc_fetch_instruction): Remove function.
6282 (struct gdbarch_tdep): Remove definition.
6283 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
6284 (sparc_breakpoint_from_pc): Remove function.
6285 (struct sparc64_frame_cache): Remove definition.
6286 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
6287 sparc64_unwind_pc): Remove functions.
6288 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
6289 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
6290 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
6291 (sparc64_frame_cache): Change return type to `struct
6292 sparc_frame_cache *'. Simply call sparc_frame_cache.
6293 (sparc64_frame_this_id, sparc64_frame_prev_register,
6294 sparc64_frame_base_address): Use `struct sparc_frame_cache'
6295 instead of `struct sparc64_frame_cache.
6296 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
6297 sparc_analyze_control_transfer, sparc_software_single_step,
6298 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
6299 _initialize_sparc64_tdep): Remove functions.
6300 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
6301 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
6302 macros.
6303 (sparc64_supply_gregset, sparc64_collect_gregset,
6304 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
6305 (sparc64_init_abi): New function.
6306 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
6307 inclusion guard. Include "sparc-tdep.h".
6308 (BIAS): Define.
6309 (r_tstate_offset, r_fprs_offset): New defines.
6310 (enum sparc_regnum): Remove defenition.
6311 (enum sparc64_regnum): Reformat.
6312 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
6313 (sparc64_init_abi, sparc64_supply_gregset,
6314 sparc64_collect_gregset, sparc64_supply_fpregset,
6315 sparc64_collect_fpregset): New prototypes.
6316 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
6317 Add extern declarations.
6318 (sparc64_sol2_init_abi): New prototype.
6319 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
6320 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
6321 prototypes.
6322 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
6323 "sparnbsd-nat.h".
6324 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
6325 functions.
6326 (_initialize_sparc64fbsd_nat): Remove initialization of
6327 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
6328 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 6329 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
6330 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
6331 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
6332 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
6333 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
6334 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
6335 (sparc64fbsd_r_y_offset): Remove variables.
6336 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
6337 Make static and const.
6338 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
6339 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
6340 functions.
6341 (sparc64fbsd_gregset): New variable.
6342 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
6343 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
6344 and sparc64_supply_fpregset.
6345 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
6346 (sparc64fbsd_sigtramp_frame_this_id)
6347 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
6348 (sparc64fbsd_sigtramp_frame_unwind): New variable.
6349 (sparc64fbsd_sigtramp_frame_sniffer): New function.
6350 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
6351 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
6352 * sparcnbsd-tdep.c: Update copyright year. Include
6353 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
6354 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
6355 "value.h" and "sparcnbsd-tdep.h".
6356 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
6357 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
6358 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
6359 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
6360 defines.
6361 (sparcnbsd_gregset): New variable.
6362 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
6363 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
6364 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
6365 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
6366 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
6367 variables.
6368 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
6369 (sparc32nbsd_sigcontext_frame_this_id)
6370 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
6371 (sparc32nbsd_sigcontext_frame_unwind): New variable.
6372 (sparc32nbsd_sigtramp_frame_sniffer): New function.
6373 (sparcnbsd_get_longjmp_target_32,
6374 sparcnbsd_get_longjmp_target_64): Remove functions.
6375 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
6376 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
6377 sparcnbsd_init_elf): Remove.
6378 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
6379 (sparcnbsd_elf_init_abi): New functions.
6380 (_initialize_sparcnbsd_tdep): New prototype.
6381 (_initialize_sparnbsd_tdep): Update.
6382 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
6383 corelow.o. Add sparc64-nat.o and sparc-nat.o.
6384 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
6385 * config/sparc/linux.mh: Update comment.
6386 (XM_FILE, HOST_IPC): Remove variables.
6387 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
6388 sparc-linux-nat.o.
6389 * config/sparc/linux.mt: Update comment.
6390 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
6391 * config/sparc/nbsd.mt: Reformat.
6392 * config/sparc/nbsd64.mh: Update comment.
6393 (NATDEPFILES): Add sparc-nat.o.
6394 * config/sparc/nbsd64.mt: Update comment.
6395 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
6396 (TM_FILE): Set to tm-nbsd.h.
6397 * config/sparc/nbsdelf.mh: Update comment.
6398 (NATDEPFILES): Add sparc-nat.o.
6399 (XM_FILE): Delete.
6400 * config/sparc/nbsdaout.mh: Update comment.
6401 (NATDEPFILES): Add sparc-nat.o
6402 (XM_FILE): Delete.
6403 * config/sparc/nm-linux.h: Update copyright year. Don't include
6404 "config/nm-svr4.h" and "solib.h". Add protection against multiple
6405 inclusion.
6406 (KERNEL_U_SIZE): Remove define.
6407 (kernel_u_size): Remove prototype.
6408 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
6409 * config/sparc/nm-nbsd.h: Update copyright. Don't include
6410 "regcache.h".
6411 (CHILD_PREPARE_TO_STORE): Remove define.
6412 * config/sparc/nm-nbsdaout.h: Tweak some comments.
6413 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
6414 sparcnbsd-nat.c: Rewrite files.
6415 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
6416 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
6417 sparcnbsd-tdep.h: Remove files.
6418 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
6419 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
6420 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
6421 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
6422 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
6423 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
6424 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
6425 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
6426 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
6427 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
6428 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
6429 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
6430 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
6431 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
6432 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
6433 * config/sparc/linux64.mh, config/sparc/linux64.mt,
6434 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
6435 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
6436 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
6437
ee84457a
AC
64382004-01-02 Andrew Cagney <cagney@redhat.com>
6439
6440 From 2003-12-18 Kazuhiro Inaoka:
6441 * configure.host: Add m32r-linux target.
6442
0bc2134e
MC
64432004-01-02 Michael Chastain <mec.gnu@mindspring.com>
6444
6445 * top.c (print_gdb_version): Update year to 2004.
6446
89a72f9c
MM
64472004-01-02 Mark Mitchell <mark@codesourcery.com>
6448
6449 * MAINTAINERS: Add myself to the write-after-approval category.
6450
86b013ed
DJ
64512004-01-02 Daniel Jacobowitz <drow@mvista.com>
6452
6453 From Bernardo Innocenti <bernie@develer.com>:
6454 * configure.tgt: Add uClinux target.
6455
e42c9534
AC
64562004-01-02 Andrew Cagney <cagney@redhat.com>
6457
6458 * utils.c (do_my_cleanups): Make static, add forward declaration.
6459 * defs.h (do_my_cleanups): Delete declaration.
6460
162467d3
EZ
64612004-01-02 Eli Zaretskii <eliz@elta.co.il>
6462
6463 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
6464 bfd/ChangeLog-0203.
6465
78434e59
MK
64662004-01-02 Mark Kettenis <kettenis@gnu.org>
6467
6468 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
6469 in <machine/reg.h>.
6470 * configure, config.in: Regenerate.
6471
48efe704
AC
6472For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
6473tui/ChangeLog-1998-2003.
c906108c
SS
6474\f
6475Local Variables:
6476mode: change-log
6477left-margin: 8
6478fill-column: 74
6479version-control: never
6480End:
This page took 0.815921 seconds and 4 git commands to generate.