*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5a7225ed
JB
12004-02-26 J. Brobecker <brobecker@gnat.com>
2
3 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
4 of the INTEGER class.
5
81a07a45
JB
62004-03-26 Jim Blandy <jimb@redhat.com>
7
8 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9 bytes long on PPC GNU/Linux.
10
8c691c7a
DC
112004-03-26 David Carlton <carlton@kealia.com>
12
13 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
14
103a0089
AC
152004-03-25 Andrew Cagney <cagney@redhat.com>
16
17 * PROBLEMS: Add general section titles, remove references to
18 specific releases.
19
7a5ea0d4
DJ
202004-03-25 Daniel Jacobowitz <drow@mvista.com>
21
22 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
23 INT_REGISTER_SIZE.
24 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
25 FP_REGISTER_VIRTUAL_SIZE.
26 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
27 of DEPRECATED_REGISTER_RAW_SIZE.
28 (arm_register_type): Add gdbarch argument.
29 (arm_register_raw_size, arm_register_virtual_size): Delete.
30 (arm_register_byte, arm_extract_return_value)
31 (arm_store_return_value, arm_get_longjmp_target): Update references
32 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
33 (arm_gdbarch_init): Likewise. Don't set
34 deprecated_register_raw_size, deprecated_register_virtual_size,
35 deprecated_max_register_raw_size,
36 deprecated_max_register_virtual_size, or
37 deprecated_max_register_virtual_type. Do set register_type.
38 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
39 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
40 (FP_REGISTER_VIRTUAL_SIZE): Delete.
41 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
42 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
43 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
44 INT_REGISTER_SIZE.
45 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
46 (remote_rdp_store_register): Likewise.
47
5792a79b
DJ
482004-03-24 Daniel Jacobowitz <drow@mvista.com>
49
50 * Makefile.in (mips-linux-tdep.o): Update dependencies.
51 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
52 to after osabi initialization.
53 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
54 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
55 functions.
56 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
57 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
58 variables.
59 (mips_linux_init_abi): Append signal trampoline unwinders.
60
1196bfda
AC
612004-03-24 Andrew Cagney <cagney@redhat.com>
62
63 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
64 * tramp-frame.c: Include "gdb_assert.h".
65 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
66 correct sizeof.
67 (tramp_frame_append): Validate the tramp frame's instructions.
68 * Makefile.in (tramp-frame.o): Update dependencies.
69
4be282b4
AC
702004-03-23 Andrew Cagney <cagney@redhat.com>
71
72 * trad-frame.h (trad_frame_set_reg_addr): Declare.
73
69aec09b
AC
742004-03-23 Andrew Cagney <cagney@redhat.com>
75
76 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
77 Nasser as past testsuite/lib/ (and other) maintainers.
78
63ed89b4
DJ
792004-03-23 Daniel Jacobowitz <drow@mvista.com>
80
81 * infcmd.c (attach_command): Reread symbols if we already have
82 an exec file.
83
f3b36427
AC
842004-03-23 Andrew Cagney <cagney@redhat.com>
85
86 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
87
aa2a3f87
AC
882004-03-23 Andrew Cagney <cagney@redhat.com>
89
90 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
91 * gdbarch.h, gdbarch.c: Re-generate.
92 * i386obsd-tdep.c (i386obsd_init_abi): Update.
93 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
94 * i386bsd-tdep.c (i386bsd_init_abi): Update.
95 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
96 (DEPRECATED_SIGTRAMP_START): Update.
97 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
98 (DEPRECATED_SIGTRAMP_START): Update.
99 * blockframe.c (find_pc_sect_partial_function): Update.
100 * arch-utils.c (legacy_pc_in_sigtramp): Update.
101
00cac895
DJ
1022004-03-23 Daniel Jacobowitz <drow@mvista.com>
103
104 * remote.c (remote_open_1): Reopen the exec file and reread symbols
105 if necessary.
106
f561f026
AC
1072004-03-23 Andrew Cagney <cagney@redhat.com>
108
109 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
110 predicate, deprecate.
111 * gdbarch.h, gdbarch.c: Re-generate.
112 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
113 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
114 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
115 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
116 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
117 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
118 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
119 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
120 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
121 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
122 * blockframe.c (find_pc_partial_function): Update.
123 * breakpoint.c (bpstat_what): Update.
124 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
125 * frv-linux-tdep.c (frv_linux_init_abi): Update.
126 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
127 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
128 * i386-interix-tdep.c (i386_interix_init_abi): Update.
129 * i386-linux-tdep.c (i386_linux_init_abi): Update.
130 * i386-nto-tdep.c (i386nto_init_abi): Update.
131 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
132 * i386-tdep.c (i386_sigtramp_frame_sniffer)
133 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
134 * i386bsd-tdep.c (i386bsd_init_abi): Update.
135 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
136 * i386obsd-tdep.c (i386obsd_init_abi): Update.
137 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
138 * infrun.c (pc_in_sigtramp): Update.
139 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
140 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
141 * mips-tdep.c (mips_gdbarch_init): Update.
142 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
143 * ppc-linux-tdep.c: Update comment.
144 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
145 * shnbsd-tdep.c (shnbsd_init_abi): Update.
146 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
147 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
148 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
149 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
150 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
151 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
152 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
153 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
154
8050c72f
AC
1552004-03-23 Andrew Cagney <cagney@redhat.com>
156
d2259dd3
AC
157 * tramp-frame.h, tramp-frame.h: New files.
158 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
159 Update rules to include "tramp-frame.h" and "tramp-frame.c".
160
8050c72f
AC
161 * Makefile.in: Update all dependencies.
162
0db9b4b7
AC
1632004-03-23 Andrew Cagney <cagney@redhat.com>
164
165 * Makefile.in (trad_frame_h): Add $(frame_h).
166 * trad-frame.h: Update copyright. Include "frame.h".
167 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
168 (trad_frame_set_id, trad_frame_get_id): Declare.
169 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
170 * trad-frame.c: Update copyright.
171 (struct trad_frame_cache): Define.
172 (trad_frame_cache_zalloc): New function.
173 (trad_frame_set_id, trad_frame_get_id): New functions.
174 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
175
8e645ae7
AC
1762004-03-22 Andrew Cagney <cagney@redhat.com>
177
178 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
179 s390_pltstub_unwind_cache.
180 (s390_stub_frame_unwind_cache): Rename
181 s390_pltstub_frame_unwind_cache.
182 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
183 (s390_stub_frame_prev_register): Rename
184 s390_pltstub_frame_prev_register.
185 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
186 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
187
188 From Ulrich Weigand:
189 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
190 pointer calls like PLT calls.
191
34fcf120
DJ
1922004-03-22 Daniel Jacobowitz <drow@mvista.com>
193
194 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
195 PC rather than the partial function start address. Use the start
196 address to sanity check the found PDR.
197
5b917078
DJ
1982004-03-22 Daniel Jacobowitz <drow@mvista.com>
199
200 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
201 linux_handle_extended_wait.
202
8adf9e78
AC
2032004-03-22 Andrew Cagney <cagney@redhat.com>
204
c3122434
AC
205 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
206 function.
207
8adf9e78
AC
208 * frame.h (generic_pop_current_frame): Delete declaration.
209 (deprecate_pop_dummy_frame): Deprecate
210 generic_pop_dummy_frame.
211 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
212 (generic_pop_current_frame): Delete function.
213 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
214 generic_pop_current_frame.
215 * v850-tdep.c (v850_pop_frame): Update.
216 * mcore-tdep.c (mcore_pop_frame): Update.
217 * sh64-tdep.c (sh64_pop_frame): Update.
218 * h8300-tdep.c (h8300_pop_frame): Update.
219
90ba813f
AC
2202004-03-22 Andrew Cagney <cagney@redhat.com>
221
222 * frame.h (deprecated_pc_in_call_dummy): Rename
223 generic_pc_in_call_dummy.
224 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
225 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
226 generic_pc_in_call_dummy.
227 (pc_in_dummy_frame): Make static.
228 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
229 * gdbarch.h, gdbarch.c: Re-generate.
230 * dummy-frame.c (dummy_frame_sniffer): Simplify.
231 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
232 (legacy_get_prev_frame): Ditto.
233 * inferior.h: Delete reference to generic_pc_in_call_dummy in
234 comment.
235
ca4bb888
AC
2362004-03-21 Andrew Cagney <cagney@redhat.com>
237
244675f9
AC
238 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
239 declaration and out-of-date comment.
240 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
241 Delete function.
242 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
243 deprecated_pc_in_call_dummy.
244
ca4bb888
AC
245 * infrun.c (handle_inferior_event): For non legacy frames, use the
246 frame ID and frame type to identify a signal trampoline. Update
247 comments.
248
1777c7b4
NW
2492004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
250
251 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
252 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
253
82417da5
AC
2542004-03-21 Andrew Cagney <cagney@redhat.com>
255
256 * frame-unwind.h: Update copyright.
257 (struct frame_data): Add opaque declaration.
258 (frame_sniffer_ftype): Declare.
259 (struct frame_unwind): Add "unwind_data" and "sniffer".
260 (frame_unwind_register_unwinder): Declare.
261 (frame_unwind_find_by_frame): Add parameter "this_cache".
262 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
263 (legacy_get_prev_frame, legacy_get_prev_frame)
264 (get_frame_type): Pass the prologue_cache to
265 frame_unwind_find_by_frame.
266 * frame-unwind.c (struct frame_unwind_table_entry): Add field
267 "unwinder".
268 (frame_unwind_register_unwinder): New function.
269 (frame_unwind_find_by_frame): Handle an unwind sniffer.
270
b2ba182e
PH
2712004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
272
273 * bcache.c (print_percentage): Use floating point to avoid
274 incorrect results when portion*100 overflows.
275
81332287
KB
2762004-03-19 Kevin Buettner <kevinb@redhat.com>
277
278 * ppc_tdep.h (ppc_linux_frame_saved_pc)
279 (ppc_linux_init_extra_frame_info)
280 (ppc_linux_frameless_function_invocation)
281 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
282 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
283 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
284 (rs6000_frame_chain): Delete declarations.
285 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
286 (ppc_linux_init_extra_frame_info)
287 (ppc_linux_frameless_function_invocation)
288 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
289 (ppc_linux_init_abi): Remove registration of above deleted functions.
290 * rs6000-tdep.c (rs6000_init_extra_frame_info)
291 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
292 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
293 (rs6000_pop_frame, rs6000_frameless_function_invocation)
294 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
295 (rs6000_gdbarch_init): Remove registration of above deleted functions.
296 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
297 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
298 frame management for all OSABIs.
299
61a65099
KB
3002004-03-19 Andrew Cagney <cagney@redhat.com>
301
302 Committed by Kevin Buettner <kevinb@redhat.com>.
303
304 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
305 Update copyright.
306 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
307 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
308 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
309 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
310 unwinders. #ifdef legacy frame code.
311 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
312 "frame-base.h".
313 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
314 (struct rs6000_frame_cache, rs6000_frame_cache)
315 (rs6000_frame_this_id, rs6000_frame_prev_register)
316 (rs6000_frame_sniffer, rs6000_frame_unwind)
317 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
318 (rs6000_frame_base): Implement a traditional frame unwinder.
319 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
320 frame unwinder.
321
88f7da05
KB
3222004-03-19 Kevin Buettner <kevinb@redhat.com>
323
324 * breakpoint.c (adjust_breakpoint_address): Don't adjust
325 breakpoint address for watchpoints or the catch eventpoints.
326 Add new paramter ``bptype''. Adjust all callers.
327
f826dce1
AC
3282004-03-19 Andrew Cagney <cagney@redhat.com>
329
33cb8b0f
AC
330 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
331
f826dce1
AC
332 * PROBLEMS: Delete note that ARM does not use frame code, problem
333 fixed.
334
43b1ab88
AC
3352004-03-18 Andrew Cagney <cagney@redhat.com>
336
292ab034
AC
337 * stack.c (return_command): Delete code wrapped in #ifdef
338 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
339
43b1ab88
AC
340 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
341
dbfe4626
AC
3422004-03-18 Andrew Cagney <cagney@redhat.com>
343
344 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
345 DEPRECATED_IN_SIGTRAMP.
346 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
347 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
348 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
349 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
350 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
351 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
352 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
353 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
354 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
355 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
356
0cad6aec
AC
3572004-03-18 Andrew Cagney <cagney@redhat.com>
358
359 * frame-base.c: Update copyright. Include "gdb_obstack.h".
360 (struct frame_base_table_entry): Define.
361 (struct frame_base_table): Re-implement as a linked list.
362 (frame_base_init): Re-implement.
363 (frame_base_table): Delete function.
364 (append_predicate): Delete function.
365 (frame_base_append_sniffer): Update.
366 (frame_base_set_default): Update.
367 (frame_base_find_by_frame): Update.
368 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
369 * Makefile.in (frame-base.o): Update dependencies.
370
9982c2e7
AC
3712004-03-17 Andrew Cagney <cagney@redhat.com>
372
373 * frame.c (legacy_get_prev_frame): Pass correct frame to
374 frame_unwind_find_by_frame.
375
8dfe8985
DC
3762004-03-17 David Carlton <carlton@kealia.com>
377
378 * NEWS: Mention C++ nested types and namespaces
379
ed47347a
MC
3802004-03-16 Michael Chastain <mec.gnu@mindspring.com>
381
382 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
383 and "Regressions since gdb 5.3.". Add known regressions since
384 gdb 6.0.
385
90aeadfc
DC
3862004-03-16 David Carlton <carlton@kealia.com>
387
388 * dwarf2read.c (process_structure_scope): Process children even
389 when we're a declaration.
390
73912b9b
AC
3912004-03-16 Andrew Cagney <cagney@redhat.com>
392
393 * symtab.h (find_pc_sect_partial_function): Delete declaration.
394 * blockframe.c (find_pc_partial_function)
395 (find_pc_sect_partial_function): Merge into a single
396 find_pc_partial_function.
397
283accbc
MK
3982004-03-16 Mark Kettenis <kettenis@gnu.org>
399
400 * i386bsd-nat.c: s/regno/regnum/g.
401 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
402 FP0_REGNUM.
403 (store_inferior_registers): Likewise.
404
f5b1afdf
MK
4052004-03-16 Mark Kettenis <kettenis@gnu.org>
406
407 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
408 of i387_fill_fsave.
409 (store_inferior_registers): Call i387_collect_fsave and
410 i387_collect_fxsave instead of i387_fill_fsave and
411 i387_fill_fxsave.
412
41fe5eb3
AC
4132004-03-15 Andrew Cagney <cagney@redhat.com>
414
415 * Makefile.in (frame-unwind.o): Update dependencies.
416 * frame-unwind.c: Include "gdb_obstack.h".
417 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
418 parameter.
419 (append_predicate): Delete function.
420 (struct frame_unwind_table_entry): New structure.
421 (struct frame_unwind_table): Replace "sniffer" with "head" and
422 "tail".
423 (frame_unwind_append_sniffer): Update.
424 (frame_unwind_find_by_frame): Update.
425 (_initialize_frame_unwind): Registe frame_unwind_init using
426 gdbarch_data_register_pre_init.
427
3f63813d
MK
4282004-03-15 Mark Kettenis <kettenis@gnu.org>
429
430 * i386bsd-nat.c: Update copyright year.
431 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
432 define unconditionally.
433
3248c325 4342004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
435
436 * i387-tdep.h (i387_collect_fsave): New prototype.
437 * i387-tdep.c (i387_collect_fsave): New function containing most
438 of the code from i387_fill_fsave.
3248c325 439 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 440
871fbe6a
MK
4412004-03-15 Mark Kettenis <kettenis@gnu.org>
442
443 * i386-linux-tdep.c: Update copyright year.
444 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
445 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
446 svr4_ilp32_link_map_offsets instead of
447 i386_linux_svr4_fetch_link_map_offsets.
448
8176b9b8
DC
4492004-03-15 David Carlton <carlton@kealia.com>
450
451 Fix for PR c++/1553:
452 * dwarf2read.c (read_structure_type): Determine type name by
453 calling determine_class_name.
454 (determine_class_name): New.
455 (determine_prefix): Look at TYPE_TAG_NAME and call
456 determine_class_name when appropriate.
457 (determine_prefix_aux, class_name): Delete.
458
fe8bf7d7
KB
4592004-03-15 Kevin Buettner <kevinb@redhat.com>
460
461 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
462 unused macro definition. The definition in target.h (or perhaps
463 elsewhere) takes precedence.
464
ed6edd9b
AC
4652004-03-15 Andrew Cagney <cagney@redhat.com>
466
f9be684a
AC
467 * ppc-tdep.h: Update copyright.
468 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
469 function signatures to match "regsets.h".
470 * ppc-linux-tdep.c: Include "regset.h".
471 (ELF_GREGSET_SIZE): Delete.
472 (right_supply_register): New function.
473 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
474 using right_supply_register.
475 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
476 functions.
477 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
478 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
479 (_initialize_ppc_linux_tdep): Do not register
480 ppc_linux_regset_core_fns.
481 (ppc_linux_regset_from_core_section): Replace
482 fetch_core_registers.
483 (ppc_linux_regset_core_fns): Delete.
484 * ppc-linux-nat.c: (right_fill_reg): New function.
485 (supply_gregset): Update call to ppc_linux_supply_gregset.
486 (fill_gregset): Clear the register set, use right_fill_reg.
487 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
488 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
489
ed6edd9b
AC
490 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
491 unsigned.
492
030f20e1
AC
4932004-03-15 Andrew Cagney <cagney@redhat.com>
494
495 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
496 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
497 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
498 and register_gdbarch_data.
499 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
500 (struct gdbarch_data): Replace "init" by "pre_init" and
501 "post_init".
502 * gdbarch.h, gdbarch.c: Re-generate.
503 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
504 with"obstack", use OBSTACK_ZALLOC.
505 (dwarf2_frame_ops): Delete.
506 (dwarf2_frame_set_init_reg): Use gdbarch_data.
507 (dwarf2_frame_init_reg): Use gdbarch_data.
508 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
509 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
510 (_initialize_svr4_solib): Update.
511 * user-regs.c (_initialize_user_regs): Update.
512 * reggroups.c (_initialize_reggroup): Update.
513 * regcache.c (_initialize_regcache): Update.
514 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
515 * libunwind-frame.c (_initialize_libunwind_frame): Update.
516 * gnu-v3-abi.c (init_gnuv3_ops): Update.
517 * frame-unwind.c (_initialize_frame_unwind): Update.
518 * frame-base.c (_initialize_frame_base): Update.
519 * user-regs.c (user_reg_add): Update.
520 * reggroups.c (reggroup_add): Update.
521 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
522 * libunwind-frame.c (libunwind_frame_set_descr): Update.
523 * frame-unwind.c (frame_unwind_append_sniffer): Update.
524 * frame-base.c (frame_base_table): Update.
525 * remote.c (_initialize_remote): Update.
526 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
527
3111a3fc
AC
5282004-03-15 Andrew Cagney <cagney@redhat.com>
529
530 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
531
5ecb7103
KB
5322004-03-15 Kevin Buettner <kevinb@redhat.com>
533
534 * Makefile.in (frv-linux-tdep.o): Add dependencies.
535 * frv-linux-tdep.c: New file.
536 * frv-tdep.c (struct gdbarch_tdep): Add new field
537 ``sigcontext_reg_addr''.
538 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
539 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
540 (frv_sigramp_frame_sniffer): New functions.
541 (frv_sigtramp_frame_unwind): New static global.
542 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
543 sniffers.
544 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
545 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
546
1ccda5e9
KB
5472004-03-15 Kevin Buettner <kevinb@redhat.com>
548
549 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
550 but not via a call to error(), when unable to read memory.
551
b375a0a5
KB
5522004-03-15 Kevin Buettner <kevinb@redhat.com>
553
554 * frv-tdep.c (frv_call_dummy_words): Delete.
555 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
556
4fdf6121
AC
5572004-03-15 Andrew Cagney <cagney@redhat.com>
558
559 * infrun.c (handle_step_into_function, step_over_function): Only
560 update and use STEP_FRAME_ID when the system is using legacy
561 frames. Update comments.
562
34021503
MK
5632004-03-14 Mark Kettenis <kettenis@gnu.org>
564
187e21d1
MK
565 * amd64-linux-tdep.h: Remove file.
566 * amd64-linux-tdep.c: Don't include "inferior.h" and
567 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
568 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
569 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
570 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
571 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
572 macros.
573 (user_to_gdb_regmap): Remove variable.
574 (amd64_linux_gregset_reg_offset): New variable.
575 (amd64_core_fns): Remove variable.
576 (fetch_core_registers): Remove function.
577 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
578 functions.
579 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
580 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
581 * Makefile.in (amd64_linux_tdep_h): Remove.
582 (amd64-linux-nat.o): Update dependencies.
583 (amd64-linux-tdep.o): Update dependencies.
584
99679982
MK
585 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
586 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
587 functions.
588 (fetch_inferior_registers, store_inferior_registers): Rewrite.
589
34021503
MK
590 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
591 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
592
134d01f1
DJ
5932004-03-14 Daniel Jacobowitz <drow@mvista.com>
594
595 * dwarf2read.c (read_structure_type): Rename from
596 read_structure_scope. Don't create a symbol or call process_die.
597 Return immediately if die->type is set. Call read_type_die before
598 dwarf2_add_member_fn.
599 (process_structure_scope): New function.
600 (read_enumeration_type, process_enumeration_scope): New functions,
601 broken out from read_enumeration. Don't create the enumeration
602 type if it has already been created.
603 (read_enumeration): Removed.
604 (process_die): Call read_structure_type, process_structure_scope,
605 read_enumeration_type, and process_enumeration_scope. Just call
606 new_symbol for base and subrange types. Add a comment about other
607 type dies.
608 (read_type_die): Call read_enumeration_type.
609 (add_partial_structure, new_symbol): Update comments.
610
65760afb
SC
6112004-03-13 Stephane Carrez <stcarrez@nerim.fr>
612
613 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
614
10f59415
SC
6152004-03-13 Stephane Carrez <stcarrez@nerim.fr>
616
617 * tui/tui-win.h (tui_get_cmd_list): Declare.
618 * tui/tui-win.c (tui_command): New function.
619 (tui_get_cmd_list): New function.
620 (_initialize_tui_win): Moved initialization of tui command in
621 tui_get_cmd_list.
622
623 * tui/tui-data.c (init_content_element): Setup new data members.
624 (init_win_info): Likewise.
625 (free_content_elements): Free it.
626 * tui/tui-data.h (struct tui_data_element): Store the register
627 content to print.
628 (struct tui_data_info): Keep the current register group.
629
630 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
631
632 * tui/tui-regs.h (tui_show_registers): Update prototype.
633 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
634 (tui_resize_all): No need to calculate anything for register window.
635 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
636 (tui_set_register_element, tui_set_general_regs_content): Remove.
637 (tui_set_special_regs_content): Remove.
638 (tui_set_general_and_special_regs_content): Remove.
639 (tui_set_float_regs_content): Remove.
640 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
641 (tui_set_regs_content): Remove.
642 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
643 (tui_v_show_registers_command_support): Remove.
644 (tui_show_registers): Use a reggroup to specify the registers to show.
645 (tui_show_register_group): New function.
646 (tui_display_registers_from): Compute the layout of register window
647 and refresh with new API; be sure to delete old register windows.
648 (tui_check_register_values): Update to use tui_get_register and
649 tui_display_data.
650 (tui_display_register): Just refresh the register window part.
651 (tui_register_format): Format registers and save in tui_data_element.
652 (tui_get_register): New to combine tui_reg_value_has_changed and
653 tui_get_register_raw_value; fix to use the new gdb API.
654 (tui_show_float_command): Renamed tui_reg_float_command.
655 (tui_show_general_command): Renamed tui_reg_general_command.
656 (tui_show_special_command): Renamed tui_reg_system_command.
657 (_initialize_tui_regs): Remove unused commands.
658
c3364ea4
MK
6592004-03-13 Mark Kettenis <kettenis@gnu.org>
660
27d1e716
MK
661 * NEWS (New native configurations): Mention OpenBSD/amd64.
662
c3364ea4
MK
663 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
664 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
665 Remove defines.
666 * config/i386/nm-fbsd64.h: Likewise.
667 * config/i386/nm-obsd.h: Likewise.
668 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
669 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
670
b2d6d697
KB
6712004-03-12 Kevin Buettner <kevinb@redhat.com>
672
673 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
674 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
675 New constants.
676
76e43199
KB
677 From Richard Sandiford <rsandifo@redhat.com>:
678 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
679
34ce532e
KB
6802004-03-12 Kevin Buettner <kevinb@redhat.com>
681
682 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
683 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
684 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
685 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
686 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
687 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
688 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
689 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
690 definitions from frv-tdep.c to frv-tdep.h.
691
c4d10515
KB
6922004-03-12 Kevin Buettner <kevinb@redhat.com>
693
694 Add shared library support for FR-V FDPIC ABI:
695 * Makefile.in (solib-frv.o): Add dependencies.
696 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
697 New functions.
698 (frv_push_dummy_call): Add support for FDPIC ABI.
699 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
700 for FDPIC ABI.
701 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
702 (frv_fdpic_find_canonical_descriptor): Declare.
703 * solib-frv.c: New file.
704 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
705 * config/frv/tm-frv.h (solib.h): Include.
706
ed1bd989
KB
7072004-03-12 Kevin Buettner <kevinb@redhat.com>
708
709 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
710 (frv-tdep.o): Update dependencies.
711 * frv-tdep.h: New file.
712 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
713 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
714 constants.
715 (struct gdbarch_tdep): Add new member ``frv_abi''.
716 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
717 functions.
718 (new_variant): Set ``frv_abi'' field.
719 (gdb_arch_init): Detect FDPIC executables.
720
82b38f72
MK
7212004-03-12 Mark Kettenis <kettenis@gnu.org>
722
723 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
724 wrapper.
725
db1ea9ba
AC
7262004-03-11 Andrew Cagney <cagney@redhat.com>
727
728 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
729
f8766ec1
KB
7302004-03-11 Kevin Buettner <kevinb@redhat.com>
731
732 * solist.h (master_so_list): New function.
733 * solib.c (master_so_list): Likewise.
734 * solib-svr4.c (enable_break): Iterate over so_list entries
735 obtained from master list instead of entries obtained directly
736 via svr4_current_sos().
737
523f6a27
BE
7382004-03-10 Ben Elliston <bje@gnu.org>
739
740 * MAINTAINERS: Update my mail address.
741
37814c18
KI
7422004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
743
744 * remote-m32r-sdi.c: Support hardware watchpoint.
745
8b9740d8
DJ
7462004-03-09 Daniel Jacobowitz <drow@mvista.com>
747
748 * user-regs.c: Update copyright years.
749 (struct user_regs): Rename to gdb_user_regs.
750 (append_user_reg, builtin_user_regs, user_regs_init)
751 (user_reg_add, user_reg_map_name_to_regnum)
752 (usernum_to_user_reg): Update.
753
4bb7a0a7
DJ
7542004-03-09 Daniel Jacobowitz <drow@mvista.com>
755
756 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
757 (skip_children): New functions.
758 (locate_pdi_sibling): Call skip_children.
759
44e1a9eb
DJ
7602004-03-09 Daniel Jacobowitz <drow@mvista.com>
761
762 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
763 * gdbtypes.c (check_typedef): Update comments.
764
f3dd6933
DJ
7652004-03-09 Daniel Jacobowitz <drow@mvista.com>
766
767 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
768 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
769 pointer. Update comment about comp_unit_head.
770 (struct abbrev_info): Shorten two int flags.
771 (dwarf_alloc_abbrev): Take a CU argument.
772 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
773 each time through the loop. Update cleanup argument.
774 (psymtab_to_symtab_1): Update cleanup call.
775 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
776 abbrev_obstack.
777 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
778 Just call obstack_free and clear the pointer.
779
b40c7d58
DJ
7802004-03-09 Daniel Jacobowitz <drow@mvista.com>
781
782 * infrun.c (handle_inferior_event): Remove short-circuit code for
783 events in a different thread.
784
333dabeb
DJ
7852004-03-09 Daniel Jacobowitz <drow@mvista.com>
786
787 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
788 print the whole transfer.
789 (initialize_targets): Update description of "set debug target".
790
aa17d93e
DJ
7912004-03-09 Daniel Jacobowitz <drow@mvista.com>
792
793 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
794
0b71f08f
NW
7952004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
796
797 * MAINTAINERS (write after approval): Add myself.
798
3930f270
CV
7992004-03-08 Corinna Vinschen <vinschen@redhat.com>
800
801 * sh-tdep.c (sh_print_registers_info): Use for loop.
802 Don't skip multiple registers when a float register is encountered.
803
a2b4a96c
CV
8042004-03-08 Corinna Vinschen <vinschen@redhat.com>
805
806 Fix PR tdep/1291.
807 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
808 to official SH documentation.
809
f15a4bc0
AC
8102004-03-07 Andrew Cagney <cagney@redhat.com>
811
812 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
813 unused function.
814
9498281f
DJ
8152004-03-07 Daniel Jacobowitz <drow@mvista.com>
816
817 * arm-tdep.c (thumb_get_next_pc): Handle BX.
818 (arm_get_next_pc): Handle BX and BLX.
819
449e1137
AC
8202004-03-07 Andrew Cagney <cagney@redhat.com>
821
eded0a31
AC
822 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
823 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
824 HPPA_SP_REGNUM.
825 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
826 (hppa_target_read_fp): Delete.
827 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
828 register_virtual_size, max_register_raw_size,
829 max_register_virtual_size, register_byte, register_size,
830 target_read_fp, fp_regnum, and register_bytes. Set register_type
831 instead of register_virtual_type.
832 (hppa32_register_type, hppa64_register_type): Replace
833 hppa32_register_virtual_type and hppa64_register_virtual_type.
834 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
835 (HPPA_FP_REGNUM): Define.
836
f5f907e2
AC
837 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
838
69b4bbe4
AC
839 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
840 (pa_do_registers_info): Delete.
841 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
842 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
843 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 844
78161e48
AC
845 * infcall.c (legacy_push_dummy_code): Delete #ifdef
846 GDB_TARGET_IS_HPPA code.
847 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
848 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
849 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
850 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
851 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
852 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
853 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
854 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
855 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
856 (hppa_frameless_function_invocation, hppa64_store_return_value)
857 (hppa_store_struct_return, hppa64_extract_return_value)
858 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
859 (hppa32_call_dummy_length, hppa64_call_dummy_length)
860 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
861 (find_proc_framesize, deposit_21, restore_pc_queue)
862 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 863 (rp_saved, pc_in_linker_stub): Delete.
78161e48 864
782eae8b
AC
865 Unconditionally enable 64-bit frame and ABI code.
866 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
867 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
868 push_dummy_frame, fix_call_dummy, push_arguments,
869 call_dummy_location, extract_return_value, use_struct_convention,
870 store_return_value, store_struct_return, saved_pc_after_call,
871 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
872 frame_chain, frame_chain_valid, frameless_function_invocation,
873 frame_saved_pc, and pop_frame.
78161e48 874
449e1137
AC
875 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
876 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
877 (hppa_gdbarch_init): Do not set PC_REGNUM.
878
12507572
MK
8792004-03-06 Mark Kettenis <kettenis@gnu.org>
880
881 * config/alpha/tm-fbsd.h: Remove file.
882 * config/alpha/fbsd.mt: Tweak comment.
883 (TM_FILE): Set to tm-alpha.h.
884
c107cc1b
AC
8852004-03-05 Andrew Cagney <cagney@redhat.com>
886
887 * infrun.c (step_over_function): When non-legacy code, and no
888 step_frame_id, use the unwinder to get the caller's frame ID.
889
f2e7c15d
MK
8902004-03-05 Mark Kettenis <kettenis@gnu.org>
891
8b0c3633
MK
892 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
893 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
894 bfd_arch_unknown. Adjust comment.
895
f2e7c15d
MK
896 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
897 * i386obsd-tdep.c: Correct spelling in comment.
898 * i386nbsd-tdep.c: Correct spelling in comment.
899 * sparc-tdep.c: Correct spelling in comments.
900
1198ecbe
DC
9012004-03-05 David Carlton <carlton@kealia.com>
902
903 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
904 bug.
905
9eb42ed1
MK
9062004-03-05 Mark Kettenis <kettenis@gnu.org>
907
908 * sparc-tdep.c: Fix typo in comment.
909
52b5e991
JB
9102004-03-04 J. Brobecker <brobecker@gnat.com>
911
912 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
913
d8151005
DJ
9142004-03-04 Daniel Jacobowitz <drow@mvista.com>
915
916 * dwarf2read.c: Add comment describing memory lifetimes.
917 (struct dwarf2_pinfo): Update comment.
918 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
919 (read_enumeration, new_symbol): Don't use obsavestring.
920
cbeae229
MK
9212004-03-04 Mark Kettenis <kettenis@gnu.org>
922
722d18c2
MK
923 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
924 instead of amd64_fill_fxsave.
925 * amd64bsd-nat.c (store_inferior_registers): Likewise.
926 * amd64fbsd-nat.c (fill_fpregset): Likewise.
927
cbeae229
MK
928 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
929 Reorganize code a bit.
930
b4206d25
OF
9312004-03-04 Orjan Friberg <orjanf@axis.com>
932
933 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
934 when the frame pointer is pushed. Don't set the frame pointer's
935 address on the stack unless it's actually located there.
936 Set the SRP's address on the stack correctly when the PC is still in
937 the prologue.
938 (cris_return_value): New function.
939 (cris_gdbarch_init): Clear deprecated store_return_value,
940 extract_return_value.
941
49b0b195
JB
9422004-03-02 Jim Blandy <jimb@redhat.com>
943
944 * stabsread.c (reg_value_complaint): The maximum register number
945 is one less than the number of registers.
946
e9ff708b
AC
9472004-03-02 Andrew Cagney <cagney@redhat.com>
948
949 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
950 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
951 trailing comma and redundant assignment of I386_ST0_REGNUM.
952 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
953 32-bit segment registers.
954
d4715e41
AC
9552004-03-01 Andrew Cagney <cagney@redhat.com>
956
957 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
958 use frame_relative_level and get_next_frame.
959
3ce2bf18
AC
9602004-02-29 Andrew Cagney <cagney@redhat.com>
961
962 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
963 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
964 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
965 Delete macro.
966
2da6aac3
DJ
9672004-02-29 Daniel Jacobowitz <drow@mvista.com>
968
969 * inflow.c (terminal_inferior): Don't give up the terminal if we
970 previously couldn't get the inferior's terminal state.
971
6ba34a8d
DJ
9722004-02-29 Daniel Jacobowitz <drow@mvista.com>
973
974 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
975 PC_REGNUM.
976
faae5abe
AC
9772004-02-28 Andrew Cagney <cagney@redhat.com>
978
979 * NEWS: Refer to GDB 6.1.
980 * README: Refer to GDB 6.1.
981 * PROBLEMS: Refer to GDB 6.1.
982
2227a3c5
DJ
9832004-02-28 Daniel Jacobowitz <drow@mvista.com>
984
985 * thread-db.c (disable_thread_signals): Remove unused function.
986
80571bff
MK
9872004-02-28 Mark Kettenis <kettenis@gnu.org>
988
041bd74b
MK
989 * amd64-nat.c: Include "gdb_string.h".
990 (amd64_collect_native_gregset): Zero-extend the 32-bit
991 general-purpose registers and %eip.
992
3c017e40
MK
993 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
994 * amd64-tdep.c (amd64_collect_fxsave): New function.
995 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
996
80571bff
MK
997 * i387-tdep.h: Update copyright year.
998 (i387_collect_fxsave): New prototype.
999 * i387-tdep.c: Update copyright year.
1000 (i387_collect_fxsave): New function containing most of the code
1001 from i387_fill_fxsave.
1002 (i387_fill_fxsave): Call i387_collect_fxsave.
1003
50d71875
AC
10042004-02-28 Andrew Cagney <cagney@redhat.com>
1005
1006 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
1007 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
1008
4a28816e
MK
10092004-02-28 Mark Kettenis <kettenis@gnu.org>
1010
1011 * amd64-tdep.c (amd64_frame_cache): Fix comment.
1012
dbda9972
AC
10132004-02-28 Andrew Cagney <cagney@redhat.com>
1014
1015 * utils.c: Use "", instead of <>, to include readline.
1016 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
1017 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
1018 * source.c, solib.c, exec.c, event-top.c: Ditto.
1019 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
1020 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
1021 * Makefile.in: Update all dependencies.
1022 (readline_tilde_h, readline_history_h): Define.
1023 (readline_headers): Delete.
1024
83277a99
MK
10252004-02-28 Mark Kettenis <kettenis@gnu.org>
1026
91ae4303
MK
1027 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
1028 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
1029 "config/i386/tm-lx64.h".
1030
83277a99
MK
1031 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
1032 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
1033 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
1034
6e1d7d6c
AC
10352004-02-28 Andrew Cagney <cagney@redhat.com>
1036
ecc9ac84
AC
1037 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
1038
6e1d7d6c
AC
1039 * breakpoint.c (_initialize_breakpoint): Use
1040 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
1041 Add help to show command.
1042
9671aeef
MK
10432004-02-28 Mark Kettenis <kettenis@gnu.org>
1044
7fa2737c
MK
1045 * i386-nat.c: Reformat to be closer to coding standards.
1046 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
1047 `retval'. Make variables `align' and `size' local to while-loop.
1048 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
1049 (_initialize_i386_nat): New prototype.
1050
9671aeef
MK
1051 * tui/tui.c: Include <readline/readline.h> instead of
1052 "readline/readline.h". Include it after <term.h> and
1053 "gdb_curses.h".
1054
fca7aa43
AC
10552004-02-27 Andrew Cagney <cagney@redhat.com>
1056
412275d5
AC
1057 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
1058 the new frame unwind code.
1059 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
1060 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
1061 PCOQ_HEAD_REGNUM.
1062
fca7aa43
AC
1063 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
1064 "return_value" and "push_dummy_call".
1065 (hppa32_use_struct_convention): Delete unused function.
1066 (hppa32_store_return_value): Delete unused function.
1067 (hppa32_extract_return_value): Delete unused function.
1068 (hppa32_stack_align): Delete function.
1069
e6a8a7d2
EZ
10702004-02-27 Eli Zaretskii <eliz@elta.co.il>
1071
1072 * coffread.c (enter_linenos): Don't let rawptr reference memory
1073 outside linetab[]'s limits.
1074
1797a8f6
AC
10752004-02-27 Andrew Cagney <cagney@redhat.com>
1076
1077 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
1078 inferior stack space - the stack needs to grow upwards.
1079 (hppa32_frame_align): New function.
1080 (hppa64_frame_align): Replace hppa_frame_align.
1081 (hppa_gdbarch_init): Update.
1082
2e4b5889
OF
10832004-02-26 Orjan Friberg <orjanf@axis.com>
1084
1085 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
1086 (dwarf2-frame.h): Include.
1087 (enum cris_regnums): New enum CRIS_FP_REGNUM.
1088 Remove static variables related to ABI setting.
1089 (struct gdbarch_tdep): Remove cris_abi member.
1090 (struct frame_extra_info): Remove.
1091 (cris_unwind_cache, stack_item): New structs.
1092 (cris_frame_unwind, cris_frame_base): New variables.
1093 (push_stack_item, pop_stack_item)
1094 (cris_frame_unwind_cache, cris_frame_this_id)
1095 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
1096 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
1097 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
1098 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
1099 (cris_reg_struct_has_addr): New functions.
1100 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
1101 (cris_frame_saved_pc, cris_saved_pc_after_call,
1102 (cris_store_struct_return, cris_frameless_function_invocation)
1103 (cris_pop_frame, cris_skip_prologue_main)
1104 (cris_abi_original_store_return_value)
1105 (cris_abi_v2_store_return_value)
1106 (cris_abi_original_extract_return_value)
1107 (cris_abi_v2_extract_return_value)
1108 (cris_abi_original_reg_struct_has_addr)
1109 (cris_abi_v2_reg_struct_has_addr)
1110 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
1111 (cris_push_return_address, cris_abi_update): Remove.
1112 (_initialize_cris_tdep): Remove ABI command.
1113 (cris_dump_tdep): Ditto.
1114 (cris_gdbarch_init): Remove ABI command.
1115 Set store_return_value, extract_return_value, push_dummy_code,
1116 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
1117 frame_unwind_append_sniffer, frame_base_set_default.
1118 Clear deprecated init_frame_pc, push_arguments, store_return_value,
1119 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
1120 sizeof_call_dummy_words, get_saved_register, push_return_address,
1121 pop_frame, store_struct_return, frame_init_saved_regs,
1122 init_extra_frame_info, frameless_function_invocation, frame_chain,
1123 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
1124 dummy_write_sp.
1125
6b9acc27
JJ
11262004-02-26 Jeff Johnston <jjohnstn@redhat.com>
1127
1128 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
1129 * valprint.c (print_hex_chars): Change from static to external.
1130 (print_char_chars): New function.
1131 * printcmd.c (print_scalar_formatted): For integer and enum types
1132 that are longer than LONGEST, perform processing via appropriate
1133 print_*_chars routines.
1134
a431654a
AC
11352004-02-26 Andrew Cagney <cagney@redhat.com>
1136
1137 * Makefile.in: Update dependencies.
1138 Changes from Ulrich Weigand,
1139 * s390-tdep.c: Include "dwarf2-frame.h".
1140 (s390_dwarf2_frame_init_reg): New function.
1141 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
1142 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
1143
fa8d40ab
JJ
11442004-02-26 Jeff Johnston <jjohnstn@redhat.com>
1145
1146 * breakpoint.c (pending_break_support): New setting variable.
1147 (break_command_1): Account for pending_break_support setting
1148 when creating pending breakpoints.
1149 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
1150 (_initialize_breakpoint): Add "set breakpoint pending" and
1151 "show breakpoint pending" commands.
1152
0dcd613f
AC
11532004-02-26 Andrew Cagney <cagney@redhat.com>
1154
1155 Fix PR i18n/1570.
1156 * charset.c (backslashable, backslashed, represented): Remove 'e'
1157 from list of escaped characters, not part of ISO-C.
1158
479272a3
JB
11592004-02-25 J. Brobecker <brobecker@gnat.com>
1160
1161 From Peter Schauer <schauer@pdf.de>:
1162 * tui/tui.c: Move system header includes after local includes.
1163 Fixes a build failure on solaris systems.
1164
7613d933
JB
11652004-02-25 J. Brobecker <brobecker@gnat.com>
1166
1167 * configure.in: Refine the previous change.
1168 * configure: Regenerate.
1169
9c1488cb
MK
11702004-02-25 Mark Kettenis <kettenis@gnu.org>
1171
1172 * amd64-tdep.h: Renamed from x86-64-tdep.h.
1173 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
1174 "amd64-tdep.h" instead of "x86-64-tdep.h".
1175 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
1176 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
1177 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
1178 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
1179 and "x86-64-tdep.c".
1180 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
1181 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
1182 and "x86-64-tdep.c".
1183 * amd64bsd-nat.c: Update copyright year.
1184 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
1185 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
1186 "x86-64-tdep.h".
1187 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
1188 "x86-64-tdep.h".
1189 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
1190 "x86-64-tdep.h".
1191 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
1192 "x86-64-tdep.h".
1193 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
1194 "x86-64-tdep.h".
1195 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
1196 "x86-64-tdep.h".
1197 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
1198 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
1199 * Makefile.in (amd64_linux_tdep_h): Renamed from
1200 x86_64_linux_tdep_h.
1201 (amd64_tdep_h): Renamed from x86_64_tdep_h.
1202 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
1203 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
1204 (amd64obsd-tdep.o): Update dependencies.
1205 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
1206 dependencies.
1207 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
1208 dependencies.
1209 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
1210 amd64-linux-nat.c amd64-linux-tdep.c.
1211 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
1212 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
1213 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
1214 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
1215 amd64-tdep.o and amd64-linux-tdep.o.
1216 (TM_FILE): Set to tm-linux64.h.
1217 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
1218 (NAT_FILE): Set to nm-linux64.h.
1219 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
1220 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
1221 amd64-tdep.o.
1222 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
1223 amd64-tdep.o.
1224 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
1225 amd64-tdep.o.
1226
4b8dad4a
RM
12272004-02-25 Roland McGrath <roland@redhat.com>
1228
1229 * remote.c (remote_protocol_qPart_auxv): New variable.
1230 (init_all_packet_configs): Initialize it.
1231 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
1232 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
1233 (show_remote_cmd): Call it.
1234 (_initialize_remote): Initialize commands.
1235 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
1236 service TARGET_OBJECT_AUXV requests.
1237
66745969
JB
12382004-02-25 J. Brobecker <brobecker@gnat.com>
1239
1240 * configure.in: Make sure that the wborder function is available.
1241 Otherwise, search for it in the cur_colr library.
1242 * configure: Regenerate.
1243
79508e1e
AC
12442004-02-25 Andrew Cagney <cagney@redhat.com>
1245
1246 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
1247
571ee600
MK
12482004-02-25 Mark Kettenis <kettenis@gnu.org>
1249
1250 * config/i386/tm-x86-64linux.h: Tweak comments.
1251
2b1b322f 12522004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
1253
1254 * MAINTAINERS: Add self to write-after-approval list.
1255
4d2acc65
AC
12562004-02-25 Andrew Cagney <cagney@redhat.com>
1257
4b8dad4a 1258 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
1259 * cli/cli-script.c (execute_control_command): Unconditionally
1260 install a cleanup. Default "ret" to "invalid_control". Use
1261 "break" instead of "return" to escape from the switch.
1262
4cfcaf21
JB
12632004-02-24 J. Brobecker <brobecker@gnat.com>
1264
1265 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
1266 with the lines macro defined in term.h on AiX.
1267 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
1268 a collision with the label_width macro defined in term.h on AiX.
1269
54a5c8d8
KB
12702004-02-23 David Mosberger <davidm@hpl.hp.com>
1271
1272 Committed by Kevin Buettner <kevinb@redhat.com>.
1273
1274 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
1275 * ia64-tdep.c (ia64_write_pc): Make it a global function.
1276 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
1277 instead of ia64_write_pc().
1278 * ia64-linux-tdep.c (regcache.h): Include.
1279 (ia64_linux_write_pc): New function.
4b8dad4a 1280
8a1dac83
RM
12812004-02-23 Roland McGrath <roland@redhat.com>
1282
1283 * auxv.c (info_auxv_command): Fix typos in error messages.
1284
90f90721
MK
12852004-02-23 Mark Kettenis <kettenis@gnu.org>
1286
8a1dac83 1287 * x86-64-tdep.h: Tweak comment.
90f90721
MK
1288 (enum amd64_regnum): New.
1289 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
1290 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
1291 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
1292 (X86_64_XMM1_REGNUM): Removed.
1293 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
1294 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
1295 prototypes for renamed functions.
1296 * x86-64-tdep.c: Fix typo.
1297 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
1298 register numbers.
1299 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
1300 Use constants from `enum amd64_regnum' for register numbers.
1301 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
1302 (amd64_analyze_prologue, amd64_frame_cache,
1303 amd64_sigtramp_frame_cache): Use constants from `enum
1304 amd64_regnum' for register numbers.
1305 (amd64_supply_fpregset): Adjust for renamed functions.
1306 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
1307 `enum amd64_regnum' for register numbers.
1308 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
1309 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
1310 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
1311 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
1312 (amd64_linux_fill_gregset): Adjust for renamed macros.
1313 (fetch_core_registers): Adjust for renamed functions.
1314 (amd64_linux_init_abi): Adjust for renamed functions.
1315 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
1316 renamed functions.
1317 * amd64-nat.c: Adjust for renamed macros.
1318 * amd64bsd-nat.c (fetch_inferior_registers)
1319 (store_inferior_registers): Use constants from `enum amd64_regnum'
1320 for register numbers. Adjust for renamed variables.
1321 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
1322 renamed variables.
1323 (_initialize_amd64fbsd_nat): Use constants from `enum
1324 amd64_regnum' for register numbers.
1325 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
1326 `enum amd64_regnum' for register numbers.
1327 (amd64fbsd_init_abi): Adjust for renamed functions.
1328 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
1329 `enum amd64_regnum' for register numbers.
1330 (amd64nbsd_init_abi): Adjust for renamed functions.
1331 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
1332 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
1333 `enum amd64_regnum' for register numbers.
1334 (amd64obsd_init_abi): Adjust for renamed functions.
1335 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
1336
d5479188
JJ
13372004-02-23 Jeff Johnston <jjohnstn@redhat.com>
1338
1339 * breakpoint.c (print_one_breakpoint): Do not output spaces
1340 after printing <PENDING> for a pending breakpoint.
1341
81cb7cc9
JJ
13422004-02-23 Jeff Johnston <jjohnstn@redhat.com>
1343
1344 * printcmd.c (print_scalar_formatted): Initialize val_long
1345 to remove compiler warning message.
1346
cbdeadca
JJ
13472004-02-23 Jeff Johnston <jjohnstn@redhat.com>
1348
1349 * defs.h (nquery, yquery): New prototypes.
1350 * breakpoint.c (break_command_1): Use new nquery interface.
1351 * utils.c (defaulted_query, nquery, yquery): New functions.
1352
da6bab63
AC
13532004-02-23 Andrew Cagney <cagney@redhat.com>
1354
2f690297
AC
1355 * hppa-tdep.c (hppa_frame_align): New function.
1356 (hppa32_push_dummy_call): New function.
1357 (hppa64_push_dummy_call): New function.
1358 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
1359 disabled.
8a1dac83 1360
da6bab63
AC
1361 * infcall.c (legacy_push_dummy_code): Don't call deprecated
1362 FIX_CALL_DUMMY when push_dummy_call is available.
1363 (call_function_by_hand, push_dummy_code): Ditto.
1364
abf9b42d
AC
13652004-02-22 Andrew Cagney <cagney@redhat.com>
1366
1367 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
1368 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
1369 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
1370 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
1371 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
1372 call_dummy_location to ON_STACK.
1373
10fc94a4
MK
13742004-02-22 Mark Kettenis <kettenis@gnu.org>
1375
51433e4b
MK
1376 * x86-64-linux-tdep.c: Tweak comment.
1377 (amd64_linux_supply_gregset): Renamed from
1378 x86_64_linux_supply_gresget.
1379 (amd64_linux_fill_gregset): Renamed from
1380 x86_64_linux_fill_gregset.
1381 (fetch_core_registers): Adjust for renamed functions.
1382 (amd64_core_fns): Renamed from x86_64_core_fns.
1383 (amd64_linux_sigtramp_start): Renamed from
1384 x86_64_linux_sigtramp_start.
1385 (amd64_linux_pc_in_sigtramp): Renamed from
1386 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
1387 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
1388 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
1389 (amd64_linux_sigcontext_addr): Renamed from
1390 x86_64_linux_sigcontext_addr.
1391 (amd64_linux_sc_reg_offset): Renamed from
1392 x86_64_linux_sc_reg_offset.
1393 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
1394 Adjust for renamed functions and variables.
1395 (_initialize_amd64_linux_tdep): Renamed from
1396 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
1397 variables.
1398 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
1399 Adjust for renamed functions.
1400
430eaf2e
MK
1401 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
1402 from x86_64_linux_gregset64_reg_offset.
1403 (amd64_linux_gregset32_reg_offset): Rename from
1404 x86_64_linux_gregset64_reg_offset.
1405 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
1406 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
1407 (amd64_linux_dr_set_control): Renamed from
1408 x86_64_linux_dr_set_control. Adjust for renamed functions.
1409 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
1410 Adjust for renamed functions.
1411 (amd64_linux_dr_reset_addr): Renamed from
1412 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
1413 (amd64_linux_dr_get_status): Renamed from
1414 x86_64_linux_dr_get_status. Adjust for renamed functions.
1415 (_initialize_amd64_linux_nat): Renamed from
1416 _initialize_x86_64_linux_nat. Adjust for renamed variables and
1417 functions.
1418 * config/i386/nm-x86-64linux.h: Update copyright year.
1419 Adjust for renamed functions.
1420
10fc94a4
MK
1421 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
1422 amd64fbsd_sigtramp_start.
1423 (amd64fbsd_sigtramp_end_addr): Renamed from
1424 amd64fbsd_sigtramp_end.
1425 (amd64fbsd_init_abi): Adjust for renamed variables.
1426 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
1427 variables.
1428 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
1429 amd64fbsd_sigtramp_start.
1430 (amd64fbsd_sigtramp_end_addr): Renamed from
1431 amd64fbsd_sigtramp_end.
1432
343af405
AC
14332004-02-22 Andrew Cagney <cagney@redhat.com>
1434
537987fc
AC
1435 * hppa-tdep.c (hppa32_return_value): New function.
1436 (hppa64_return_value): New function.
1437 (hppa_gdbarch_init): Set return_value; keep disabled.
1438
fad850b2
AC
1439 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
1440 struct-return and inferior function call methods.
1441
26d08f08
AC
1442 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
1443 "frame-base.h".
1444 (struct hppa_frame_cache): Define.
1445 (hppa_frame_cache, hppa_frame_this_id): New functions.
1446 (hppa_frame_prev_register): New function.
1447 (hppa_frame_unwind, hppa_frame_base): New variables.
1448 (hppa_frame_unwind_sniffer): New function.
1449 (hppa_frame_base_address, hppa_unwind_pc): New function.
1450 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
1451 sniffer, and frame base sniffer; keep disabled.
1452 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
1453 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
1454
e7d7bd65
AC
1455 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
1456 to predicates for "seriously old code".
1457
e963316f
AC
1458 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
1459 runtime if(0).
1460
56132691
AC
1461 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
1462 unsigned.
1463 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 1464
343af405
AC
1465 * config/pa/tm-hppa.h: Update copyright.
1466 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1467 (deprecated_init_frame_pc_default): Delete declaration.
1468 (hppa_frame_init_saved_regs): Delete declaration.
1469 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
1470 * hppa-tdep.c: Include "arch-utils.h".
1471 (hppa_gdbarch_init): Set deprecated init_frame_pc
1472 and deprecated frame_init_saved_regs.
1473 (hppa_frame_init_saved_regs): Make static.
1474
f5859b4d
MK
14752004-02-22 Mark Kettenis <kettenis@gnu.org>
1476
86f6f8e7 1477 Remove old 386BSD support.
cf7c5c23 1478 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
1479 * configure.host: Remove i[34567]86-*-bsd*.
1480 * configure.tgt: Remove i[34567]86-*-bsd*.
1481 * i386b-nat.c: Removed.
1482 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
1483 (i386b-nat.o): Remove dependencies.
1484
86f6f8e7
MK
1485 * config/i386/i386bsd.mh: Removed.
1486 * config/i386/i386bsd.mt: Removed.
1487 * config/i386/nm-i386bsd.h: Removed.
1488 * config/i386/tm-i386bsd.h: Removed.
1489 * config/i386/xm-i386bsd.h: Removed.
1490
971218cd
MK
1491 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
1492
7e654c37
MK
1493 * amd64fbsd-tdep.c: Include "solib-svr4.h".
1494 (amd64fbsd_init_abi): Set link map offsets.
1495 * amd64nbsd-tdep.c: Include "slib-svr4.h".
1496 (amd64nbsd_init_abi): Set link map offsets.
1497 * amd64obsd-tdep.c: Include "solib-svr4.h".
1498 (amd64obsd_init_abi): Set link map offsets.
1499 * i386fbsd-tdep.c: Include "solib-svr4.h".
1500 (i386fbsd_init_abi): Set link map offsets.
1501 * i386nbsd-tdep.c: Include "solib-svr4.h".
1502 (i386nbsdelf_init_abi): Set link map offsets.
1503 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
1504 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
1505 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
1506 solib-legacy.o and core-aout.o. Reformat.
1507 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
1508 solib-svr4.o, solib-legacy.o. Reformat.
1509 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
1510 * config/i386/nbsdelf.mh: Reformat.
1511 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
1512 solib-svr4.o, solib-legacy.o and corelow.o.
1513 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
1514 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
1515 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
1516 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
1517 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
1518 (TM_FILE): Set to tm-fbsd.h.
1519 * config/i386/nbsd.mt (TDEPFILES): Reformat.
1520 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
1521 solib-svr4.o.
1522 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
1523 solib-svr4.o.
1524 (TM_FILE): Set to nm-nbsd.h.
1525 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
1526 Simplify shared library support. Don't include "elf/common.h".
1527 (SVR4_SHARED_LIBS): Don't define.
1528 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
1529 "solib.h".
1530 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
1531 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
1532 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
1533 Don't include "i386/tm-i386.h". Include "solib.h".
1534 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
1535 Don't include "i386/tm-i386.h".
1536 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
1537 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
1538 Include "i386/xm-i386.h".
1539 (HOST_LONG_DOUBLE_FORMAT): Remove.
1540
5d93ae8c
MK
1541 Fix OpenBSD/i386 sigtramp recognition.
1542 * i386-tdep.h: Update copyright year.
1543 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
1544 (i386bsd_sigtramp_end): New prototypes.
1545 (i386fbsd_sigtramp_start_addr): Renamed from
1546 i386fbsd_sigtramp_start.
1547 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
1548 (i386obsd_sigtramp_start_addr): Renamed from
1549 i386obsd_sigtramp_start.
1550 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
1551 * i386bsd-tdep.c: Update copyright year.
1552 (i386bsd_pc_in_sigtramp): Make public.
1553 * i386fbsd-nat.c: Update copyright year.
1554 (_initialize_i386fbsd_nat): Adjust for renamed variables.
1555 * i386fbsd-tdep.c: Update copyright year.
1556 (i386fbsd_sigtramp_start_addr): Renamed from
1557 i386fbsd_sigtramp_start.
1558 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
1559 (i386fbsdaout_init_abi): Adjust for renamed variables.
1560 * i386obsd-nat.c: Update copyright year.
1561 (_initialize_i386obsd_nat): Adjust for renamed variables.
1562 * i386obsd-tdep.c: Include "target.h".
1563 (i386obsd_page_size): New variable.
1564 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
1565 (i386obsd_sigtramp_end): New functions.
1566 (i386obsd_sigtramp_start_addr): Renamed from
1567 i386obsd_sigtramp_start.
1568 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
1569 (i386obsd_init_abi): Adjust for renamed variables. Set
1570 pc_in_sigtramp, sigtramp_start and sigtramp_end.
1571 * Makefile.in (i386obsd-tdep.o): Update dependencies.
1572
84d04465
MK
1573 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
1574 trampoline change in OpenBSD kernel.
1575
b053aceb
MK
1576 * amd64-nat.c: Update copyright year.
1577 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
1578 architecture from REGCACHE.
1579
f5859b4d
MK
1580 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
1581 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
1582
e4bbbda8
MK
15832004-02-21 Mark Kettenis <kettenis@gnu.org>
1584
ba361932
MK
1585 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
1586 i[34567]86-*-openbsd3.[0-3].
1587 * config/i386/obsdaout.mh: New file.
1588
d3e48264
MK
1589 * config/i386/obsd.mh (MH_FLAGS): Remove.
1590
60a6eeb6
MK
1591 Fix PR build/1549.
1592 * i386obsd-tdep.c: Update copyright years. Include
1593 "solib-svr4.h".
1594 (i386obsd_init_abi): Don't set regset_from_core_section here.
1595 (i386obsd_aout_init_abi): New function. Set
1596 regset_from_core_section here.
1597 (i386obsd_elf_init_abi): New function.
1598 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
1599 * Makefile.in (i386obsd-tdep.o): Update dependecies.
1600 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1601 (TM_FILE): Set to tm-nbsd.h.
1602
1603 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
1604 solib-sunos.o.
1605
e4bbbda8
MK
1606 * solib-svr4.h: Update copyright year.
1607 (svr4_ilp32_fetch_link_map_offsets)
1608 (svr4_lp64_fetch_link_map_offsets): New prototype.
1609 * solib-svr4.c: Update copyright year.
1610 (svr4_ilp32_fetch_link_map_offsets)
1611 (svr4_lp64_fetch_link_map_offsets): New function.
1612
f6fe98ef
DJ
16132004-02-20 Daniel Jacobowitz <drow@mvista.com>
1614
1615 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
1616 to the partial symbol table.
1617
589ca796
JB
16182004-02-20 J. brobecker <brobecker@gnat.com>
1619
1620 * PROBLEMS: Add description of problem documented under gdb/1560.
1621
2031c21a
MK
16222004-02-20 Mark Kettenis <kettenis@gnu.org>
1623
30b344b1
MK
1624 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
1625 comments.
1626 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
1627 functions.
1628 (amd64obsd_init_abi): Reorder initializations. Use
1629 amd64obsd_r_reg_offset to initialize the general-purpose register
1630 set details. Set regset_from_core_section.
1631 (_initialize_amd64obsd_tdep): Rename from
1632 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
1633 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
1634 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
1635
2031c21a
MK
1636 * NEWS (New native configurations): Mention OpenBSD/alpha.
1637 * configure.tgt: Add alpha*-*-openbsd*.
1638 * configure.host: Add alpha*-*-openbsd*.
1639 * alphanbsd-tdep.c: Update copyright year.
1640 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
1641
42471775
AC
16422004-02-20 Andrew Cagney <cagney@redhat.com>
1643
1644 Fix PR tdep/1372.
1645 * configure.tgt: Delete target "none-*-*".
1646 * configure.host: Delete host "none-*-*".
1647 * config/none/none.mh: Delete file.
1648 * config/none/none.mt: Delete file.
1649 * config/none/xm-none.h: Delete file.
1650 * config/none/tm-none.h: Delete file.
1651 * config/none/nm-none.h: Delete file.
1652
960ccd7d
FF
16532004-02-19 Fred Fish <fnf@redhat.com>
1654
1655 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
1656 cache->uses_fp prior to setting it.
1657
5f883edd
FF
16582004-02-19 Fred Fish <fnf@redhat.com>
1659
1660 Fix for PR breakpoint/1558.
1661 * sh-tdep.c (IS_JSR): New macro.
1662 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
1663
f98c22d5
JB
16642004-02-19 Jim Blandy <jimb@redhat.com>
1665
1666 * findvar.c (value_from_register): Doc fix.
1667
95051d27
JJ
16682004-02-19 Jeff Johnston <jjohnstn@redhat.com>
1669
1670 * printcmd.c (print_scalar_formatted): Do not check for sizeof
1671 type being greater than sizeof of host's LONGEST. Always use
1672 unpack_long() unless format 'f' chosen.
1673
ccefbec3
EZ
16742004-02-19 Joel Brobecker <brobecker@gnat.com>
1675
1676 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 1677
ccefbec3
EZ
1678 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
1679 contains a symbol wich is the best, non-exact match for the given
1680 pc. Update comments.
1681
16822004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 1683
2ede629f
EZ
1684 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
1685 macro, which was part of the now removed Mach 3 port.
1686 * utils.c (request_quit): Ditto.
1687
567ee972
MK
16882004-02-18 Mark Kettenis <kettenis@gnu.org>
1689
1690 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
1691 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
1692
50cca7bb
MK
16932004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1694
1695 Committed by Mark Kettenis <kettenis@gnu.org>.
1696
1697 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
1698 Define.
1699
226361c4
AC
17002004-02-18 Andrew Cagney <cagney@redhat.com>
1701
1702 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
1703 CONFIG_INSTALL and CONFIG_UNINSTALL.
1704 * configure: Re-generate.
1705 * interps.h (INTERP_TUI): Define.
1706 * Makefile.in: Update dependencies.
1707 (TUI): New macro.
1708 (tui-main.o): Specify dependencies.
1709 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
1710 * tui/tui-main.c: New file.
1711
49cfa46f
MK
17122004-02-18 Mark Kettenis <kettenis@gnu.org>
1713
e2879ccb
MK
1714 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
1715 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
1716 dependencies.
1717 * configure.host: Add x86_64-*-openbsd*.
1718 * configure.tgt: Add x86_64-*-openbsd*.
1719 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
1720
c43f4bec
MK
1721 * tui/tui.c: Don't include <malloc.h>.
1722
09ae75b6
MK
1723 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
1724 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
1725 amd64nbsd-tdep.c.
1726
49cfa46f 1727 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 1728 static. Remove extraneous whitespace.
49cfa46f
MK
1729 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
1730 static.
1731
05957fdb
JB
17322004-02-17 Jim Blandy <jimb@redhat.com>
1733
1734 * findvar.c (value_from_register): Doc fix.
1735
d0f54f9d
JB
17362004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1737
1738 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 1739
8a1dac83 1740 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
1741 CORE_ADDR as type for selectors. Correct types for GNU run time
1742 message lookup function to use double indirection.
1743 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
1744 * objc-lang.h (lookup_child_selector): Adapt prototype.
1745
9cbd5950
JB
1746 * s390-nat.c (SUBOFF): New macro.
1747 (supply_gregset, fill_gregset): Use it to handle debugging
1748 of 32-bit exectuables running under a 64-bit kernel.
1749 * s390-tdep.c: Include "solib-svr4.h".
1750 (s390_svr4_fetch_link_map_offset): New function.
1751 (s390x_svr_fetch_link_map_offset): Likewise.
1752 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
1753 * Makefile.in (s390-tdep.o): Update dependencies.
1754
a8c99f38
JB
1755 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
1756 "frame-unwind.h".
1757 (s390_readinstruction): Reformat. Use read_memory_nobpt.
1758 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
1759 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
1760 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
1761 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
1762 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 1763 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
1764 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
1765 (struct frame_extra_info): Remove.
1766 (s390_memset_extra_info): Remove.
f73b1eff
JB
1767 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
1768 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
1769 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
1770 (is_rse): Renamed to ...
1771 (is_rsy): ... this. Support long displacements.
1772 (is_rxe): Renamed to ...
1773 (is_rxy): ... this. Support long displacements.
1774 (compute_x_addr): Support long displacements.
1775 (struct s390_prologue_data): New data type.
1776 (s390_on_stack): Change API to use struct s390_prologue_data.
1777 (s390_store): Reimplement.
1778 (s390_load): New function.
1779 (s390_get_signal_frame_info): Remove.
1780 (s390_get_frame_info): Remove, replace by ...
1781 (s390_analyze_prolog): ... this new function.
1782 (s390_check_function_end): Remove.
1783 (s390_function_start): Remove.
1784 (s390_frameless_function_invokation): Remove.
1785 (s390_is_sigreturn): Remove.
1786 (s390_init_frame_pc_first): Remove.
1787 (s390_init_frame_extra_info): Remove.
1788 (s390_frame_init_saved_regs): Remove.
1789 (s390_frame_saved_pc_nofix): Remove.
1790 (s390_frame_saved_pc): Remove.
1791 (s390_frame_chain): Remove.
1792 (s390_fp_regnum, s390_read_fp): Remove.
1793 (s390_pop_frame_regular, s390_pop_frame): Remove.
1794 (s390_saved_pc_after_call): Remove.
1795 (s390_skip_prologue): Reimplement.
1796 (s390_in_function_epilogue_p): Support long displacements.
1797 (struct s390_unwind_cache): New data structure.
1798 (s390_frame_unwind_cache): New function.
1799 (s390_prologue_frame_unwind_cache): Likewise.
1800 (s390_backchain_frame_unwind_cache): Likewise.
1801 (s390_frame_this_id, s390_frame_prev_register): Likewise.
1802 (s390_frame_unwind): Define.
1803 (s390_frame_sniffer): New function.
1804 (struct s390_pltstub_unwind_cache): New data structure.
1805 (s390_pltstub_frame_unwind_cache): New function.
1806 (s390_pltstub_frame_this_id): Likewise.
1807 (s390_pltstub_frame_prev_register): Likewise.
1808 (s390_pltstub_frame_unwind): Define.
1809 (s390_pltstub_frame_sniffer): New function.
1810 (struct s390_sigtramp_unwind_cache): New data structure.
1811 (s390_sigtramp_frame_unwind_cache): New function.
1812 (s390_sigtramp_frame_this_id): Likewise.
1813 (s390_sigtramp_frame_prev_register): Likewise.
1814 (s390_sigtramp_frame_unwind): Define.
1815 (s390_sigtramp_frame_sniffer): New function.
1816 (s390_frame_base_address, s390_local_base_address): New functions.
1817 (s390_frame_base): Define.
1818 (s390_unwind_pc, s390_unwind_sp): New function.
1819 (s390_push_dummy_call): Use new frame base location.
1820 (s390_unwind_dummy_id): Likewise.
1821 (s390_gdbarch_init): Remove calls to:
1822 set_gdbarch_frameless_function_invocation,
1823 set_gdbarch_deprecated_init_frame_pc,
1824 set_gdbarch_deprecated_frame_chain,
1825 set_gdbarch_deprecated_frame_init_saved_regs,
1826 set_gdbarch_deprecated_pop_frame,
1827 set_gdbarch_deprecated_init_extra_frame_info,
1828 set_gdbarch_deprecated_init_frame_pc_first,
1829 set_gdbarch_deprecated_target_read_fp,
1830 set_gdbarch_deprecated_frame_saved_pc,
1831 set_gdbarch_deprecated_saved_pc_after_call,
1832 set_gdbarch_deprecated_fp_regnum.
1833 Add calls to:
1834 set_gdbarch_in_solib_call_trampoline,
1835 frame_unwind_append_sniffer,
1836 frame_base_set_default,
1837 set_gdbarch_unwind_pc,
1838 set_gdbarch_unwind_sp.
1839 * Makefile.in (s390-tdep.o): Update dependencies.
1840
b0cf273e
JB
1841 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
1842 (S390_STACK_FRAME_OVERHEAD): Remove.
1843 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
1844 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
1845 (s390_promote_integer_argument): Remove.
1846 (s390_cannot_extract_struct_value_address): Remove.
1847 (s390_use_struct_convention, s390_store_struct_return): Remove.
1848 (s390_extract_return_value, s390_store_return_value): Remove.
1849 (s390_return_value_convention, s390_return_value): New functions.
1850 (is_float_singleton): Handle typedefs.
8a1dac83 1851 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
1852 Remove, replace by ...
1853 (s390_function_arg_pass_by_reference, s390_function_arg_float,
1854 s390_function_arg_integer): ... these new functions.
1855 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
1856 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
1857 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
1858 Fill in tdep->abi.
1859 Remove calls to:
1860 set_gdbarch_deprecated_store_struct_return,
1861 set_gdbarch_deprecated_extract_return_value,
1862 set_gdbarch_deprecated_store_return_value,
1863 set_gdbarch_use_struct_convention,
1864 set_gdbarch_extract_struct_value_address,
1865 set_gdbarch_deprecated_pc_in_call_dummy,
1866 set_gdbarch_deprecated_push_arguments,
1867 set_gdbarch_deprecated_save_dummy_frame_tos,
1868 set_gdbarch_deprecated_push_return_address,
1869 set_gdbarch_deprecated_sizeof_call_dummy_words,
1870 set_gdbarch_deprecated_call_dummy_words,
1871 set_gdbarch_deprecated_dummy_write_sp.
1872 Add calls to:
1873 set_gdbarch_push_dummy_call,
1874 set_gdbarch_unwind_dummy_id,
1875 set_gdbarch_return_value.
8a1dac83 1876
e1457d83
JB
1877 * config/s390/nm-linux.h: Update comments.
1878 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
1879 (STOPPED_BY_WATCHPOINT): Redefine.
1880 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
1881 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
1882 (s390_stopped_by_watchpoint): Likewise.
1883 (watch_area_cnt): Remove.
1884 * s390-nat.c: Update comments.
1885 (watch_area): Remove typedef.
1886 Global replace watch_area by struct watch_area.
1887 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 1888 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
1889 use s390_inferior_tid. Add short-cut for the no watchpoint case.
1890 (s390_fix_watch_points): Remove pid argument,
1891 use s390_inferior_tid. Recompute area spanned by watchpoints.
1892 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
1893 argument. Reimplement.
1894
d0f54f9d
JB
1895 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
1896 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
1897 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 1898 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
1899 core-regset.o.
1900 * config/s390/s390x.mt: Remove.
1901 * config/s390/tm-s390.h: Remove.
1902 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
1903 (TARGET_ELF64): Remove.
1904 (SKIP_TRAMPOLINE_CODE): Do not undefine.
1905 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
1906 s390*-*-* case; always set gdb_target to s390.
1907 * regformats/reg-s390.dat: Remove control registers.
1908 * regformats/reg-s390x.dat: Likewise.
1909 * s390-tdep.h: New file.
8a1dac83 1910 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
1911 Include "inferior.h" and "s390-tdep.h".
1912 Remove private definition of offsetof.
1913 (s390_register_u_addr): Remove.
1914 (regmap_gregset, regmap_fpregset): Define.
1915 (supply_gregset, fill_gregset): Reimplement.
1916 (supply_fpregset, fill_fpregset): Likewise.
1917 (s390_inferior_tid): New function.
1918 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
1919 (fetch_inferior_registers, store_inferior_registers): Likewise.
1920 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
1921 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
1922 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
1923 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
1924 (struct gdbarch_tdep): Define.
1925 (struct s390_register_info): Define.
1926 (s390_register_info): New variable.
1927 (s390_register_name): Reimplement.
1928 (s390_register_type): New function.
1929 (s390_register_raw_size, s390x_register_raw_size): Remove.
1930 (s390_cannot_fetch_register): Remove.
1931 (s390_register_byte): Remove.
1932 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
1933 (s390_dwarf_regmap): New variable.
1934 (s390_dwarf_reg_to_regnum): New function.
1935 (s390_stab_reg_to_regnum): Remove.
1936 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
1937 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
1938 (s390_convert_register_p): Likewise.
1939 (s390_register_to_value, s390_value_to_register): Likewise.
1940 (s390_register_reggroup_p): Likewise.
1941 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
1942 s390_gregset, s390x_gregset, s390_fpregset): New variables.
1943 (s390_supply_regset, s390_regset_from_core_section): New functions.
1944 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
1945 (S390_FPR_SIZE): Likewise.
1946 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
1947 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
1948 (S390_NUM_GPRS): Move here from tm-s390.h.
1949 (S390_NUM_FPRS): Likewise.
1950 (s390_in_function_epilogue_p): New function.
1951 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
1952 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
1953 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
1954 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
1955 Replace S390_FP_REGNUM by S390_SP_REGNUM.
1956 Remove calls to:
1957 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
1958 set_gdbarch_deprecated_max_register_virtual_size,
1959 set_gdbarch_deprecated_register_byte,
d0f54f9d 1960 set_gdbarch_cannot_fetch_register,
8a1dac83 1961 set_gdbarch_cannot_store_register,
d0f54f9d
JB
1962 set_gdbarch_deprecated_register_size,
1963 set_gdbarch_deprecated_register_raw_size,
1964 set_gdbarch_deprecated_register_virtual_size,
1965 set_gdbarch_deprecated_register_virtual_type,
1966 set_gdbarch_deprecated_register_bytes.
1967 Add calls to:
1968 set_gdbarch_num_pseudo_regs,
1969 set_gdbarch_register_type,
1970 set_gdbarch_convert_register_p,
1971 set_gdbarch_register_to_value,
1972 set_gdbarch_value_to_register,
1973 set_gdbarch_register_reggroup_p,
1974 set_gdbarch_regset_from_core_section,
1975 set_gdbarch_pseudo_register_read,
1976 set_gdbarch_pseudo_register_write,
1977 set_gdbarch_in_function_epilogue_p.
1978 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
1979 (s390_tdep_h): New variable.
1980
8cfe231d
JB
19812004-02-17 Jim Blandy <jimb@redhat.com>
1982
4589a601
JB
1983 * findvar.c (value_from_register): If the type has no length, just
1984 return an acceptable value --- don't report an internal error.
1985
8cfe231d
JB
1986 * stabsread.c (read_type): If we find any type numbers that are
1987 forward references, complain if the references aren't resolved by
1988 the time we're finished reading.
1989 (cleanup_undefined_types): Make error message more appropriate for
1990 a complaint.
1991
5bf0017e
EZ
19922004-02-17 Elena Zannoni <ezannoni@redhat.com>
1993
9d62932d
EZ
1994 * Makefile.in (defs_h): Remove dependency on progress_h.
1995 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
1996 progress.h.
1997 * main.c (captured_main): Delete use of START_PROGRESS and
1998 END_PROGRESS.
1999
20002004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 2001
5bf0017e
EZ
2002 * objfiles.c (terminate_minimal_symbol_table): Add back
2003 initialization of MSYMBOL_TYPE.
2004
9fc9f5e2
AC
20052004-02-17 David Mosberger <davidm@hpl.hp.com>
2006
2007 Committed by Andrew Cagney.
2008 * Makefile.in (ia64_tdep_h): New macro.
2009 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
2010 (ia64-tdep.o): Likewise.
2011 * ia64-tdep.h: New file.
2012 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
2013 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
2014 (ia64_aix_sigcontext_register_address): Likewise.
2015 (ia64_linux_getunwind_table): Delete declaration.
2016 * ia64-linux-tdep.c: Likewise.
2017
76cd2bd9
CV
20182004-02-17 Corinna Vinschen <vinschen@redhat.com>
2019
2020 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
2021 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
2022 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
2023
634aa483
AC
20242004-02-17 Andrew Cagney <cagney@redhat.com>
2025
2026 * symtab.c (skip_prologue_using_sal): New function.
2027 * symtab.h (skip_prologue_using_sal): Declare.
2028 * frv-tdep.c: Include "symtab.h".
2029 (skip_prologue_using_sal): Delete function.
2030 * mips-tdep.c (skip_prologue_using_sal): Delete function.
2031 * rs6000-tdep.c (refine_prologue_limit): Mention
2032 skip_prologue_using_sal.
2033 * ia64-tdep.c (refine_prologue_limit): Ditto.
2034 * Makefile.in: Update dependencies.
2035
20362004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 2037
39ce7b3f
AC
2038 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
2039 START_INFERIOR_TRAPS_EXPECTED.
2040 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
2041 START_INFERIOR_TRAPS_EXPECTED.
2042 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
2043 Delete macro.
2044 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
2045 macro, moved to "nm-osf.h". Update copyright.
2046 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
2047 update copyright.
2048
19772a2c
AC
2049 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
2050 and function replacing FRAMELESS_FUNCTION_INVOCATION.
2051 * blockframe.c (legacy_frameless_look_for_prologue): Rename
2052 frameless_look_for_prologue.
2053 * frame.h (legacy_frameless_look_for_prologue): Rename
2054 frameless_look_for_prologue.
2055 * gdbarch.h, gdbarch.c: Re-generate.
2056 * sh64-tdep.c (sh64_gdbarch_init): Update.
2057 * sh-tdep.c (sh_gdbarch_init): Update.
2058 * s390-tdep.c (s390_gdbarch_init): Update.
2059 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2060 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2061 * m68k-tdep.c (m68k_gdbarch_init): Update.
2062 (delta68_frame_args_address): Update.
2063 * m32r-tdep.c (m32r_gdbarch_init): Update.
2064 * hppa-tdep.c (hppa_gdbarch_init): Update.
2065 * h8300-tdep.c (h8300_gdbarch_init): Update.
2066 * frv-tdep.c (frv_gdbarch_init): Update.
2067 (frv_frameless_function_invocation): Update.
2068 * cris-tdep.c (cris_gdbarch_init): Update.
2069 (cris_frameless_function_invocation): Update.
2070 * avr-tdep.c (avr_gdbarch_init): Update.
2071 * arm-tdep.c (arm_gdbarch_init): Update.
2072 * stack.c (frame_info): Update, call predicate.
2073 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
2074 * frame.c (legacy_get_prev_frame): Update, call predicate..
2075 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
2076 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
2077 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
2078 invocation.
2079 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2080 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2081 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
2082
2083 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
2084 function.
2085
7dcaac91
DJ
20862004-02-16 Daniel Jacobowitz <drow@mvista.com>
2087
2088 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
2089 initializations.
2090
88289b6e
AC
20912004-02-16 Andrew Cagney <cagney@redhat.com>
2092
2093 * tui/tui-windata.c: Include "gdb_string.h".
2094 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
2095 * tui/tui-layout.c, tui/tui-command.c: Ditto.
2096 * Makefile.in: Update dependencies.
2097
9f976b41
DJ
20982004-02-16 Daniel Jacobowitz <drow@mvista.com>
2099
2100 * Makefile.in (infrun.o): Add $(gdb_assert_h).
2101 * infrun.c: Include "gdb_assert.h".
2102 (singlestep_ptid, saved_singlestep_ptid)
2103 (stepping_past_singlestep_breakpoint): New variables.
2104 (resume): Set singlestep_ptid. Check for singlestep thread
2105 hop.
2106 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
2107 (handle_inferior_event): Handle singlestep thread hop.
2108
c324d747
AC
21092004-02-16 Andrew Cagney <cagney@redhat.com>
2110
f090b9b1
AC
2111 * dwarf2-frame.c (dwarf2_frame_ops): New function.
2112 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
2113 (dwarf2_frame_init_reg): Ditto.
2114
fd33e6cb
AC
2115 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
2116 suggested by Joshua Neuheisel
2117
c324d747
AC
2118 * configure.in: Always check for curses, including pdcurses.
2119 Warn, instead of error, when no curses are found. Enable TUI when
2120 curses is available.
2121 * configure: Re-generate.
2122
b66ba949
CV
21232004-02-16 Corinna Vinschen <vinschen@redhat.com>
2124
2125 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
2126 sh_sh4_register_convert_to_virtual.
2127 (sh_register_convert_to_raw): Rename from
2128 sh_sh4_register_convert_to_raw.
2129 (sh_pseudo_register_read): Accomodate above name change.
2130 (sh_pseudo_register_write): Ditto.
2131
b58cbbf2
CV
21322004-02-16 Corinna Vinschen <vinschen@redhat.com>
2133
2134 * sh-tdep.c (sh_generic_register_name): Remove.
2135 (sh_gdbarch_init): Use sh_sh_register_name in default case.
2136
5929a910
AC
21372004-02-15 Andrew Cagney <cagney@redhat.com>
2138
4566dfcf
AC
2139 * configure.in (build_warnings): Add -Wunused-function.
2140 * configure: Re-generate.
2141
db11ed55
AC
2142 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
2143 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
2144
46ac7a5d
AC
2145 * procfs.c (procfs_init_inferior): Assume that
2146 START_INFERIOR_TRAPS_EXPECTED is defined.
2147 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
2148 * config/ns32k/tm-nbsd.h: Delete file,
2149 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
2150
ba801595
AC
2151 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
2152 * config/vax/tm-vax.h: Delete file.
2153
5929a910
AC
2154 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
2155 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
2156 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
2157 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
2158 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
2159 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
2160 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
2161
8f22cb90
MK
21622004-02-15 Mark Kettenis <kettenis@gnu.org>
2163
2164 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
2165 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2166 (struct dwarf2_frame_ops): New.
2167 (dwarf2_frame_default_init_reg): New function, based on
2168 dwarf2_frame_init_reg.
2169 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
2170 (dwarf2_frame_init_reg): Call architecture-specific function.
2171 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
2172 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
2173 instead of dwarf2_frame_data.
2174 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
2175 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
2176
8132723e
AC
21772004-02-15 Andrew Cagney <cagney@redhat.com>
2178
046a4708
AC
2179 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
2180 register_gdbarch_swap.
2181 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
2182 * f-lang.c (_initialize_f_language): Update, use
2183 DEPRECATED_REGISTER_GDBARCH_SWAP.
2184 * remote.c (_initialize_remote): Ditto.
2185 * regcache.c (_initialize_regcache): Ditto.
2186 * parse.c (_initialize_parse): Ditto.
2187 * infrun.c (_initialize_infrun): Ditto.
2188 * mi/mi-main.c (_initialize_mi_main): Ditto.
2189 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 2190
549c1eea
AC
2191 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
2192 poking .cacheable directly.
2193 * symfile.c (symfile_bfd_open): Ditto.
2194
0c0b39de
AC
2195 * Makefile.in: Update all dependencies.
2196
8132723e
AC
2197 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
2198 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
2199 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
2200 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
2201 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 2202
b9d26eb9
AC
22032004-02-14 Andrew Cagney <cagney@redhat.com>
2204
8e1f669a
AC
2205 * arch-utils.c (legacy_convert_register_p): Check
2206 DEPRECATED_REGISTER_CONVERTIBLE_P.
2207 * findvar.c (value_of_register): Ditto.
2208
cd0bfa36
AC
2209 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
2210 * gdbarch.h, gdbarch.c: Re-generate.
2211 * arch-utils.c (deprecated_register_convertible_not): Delete.
2212 * arch-utils.h (deprecated_register_convertible_not): Delete.
2213 * mi/mi-main.c (get_register): Update. Update copyright.
2214 * infcmd.c (default_print_registers_info): Update.
2215
b9d26eb9
AC
2216 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
2217 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
2218 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 2219 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
2220 * frame.c (deprecated_get_next_frame_hack): Delete function.
2221 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
2222 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2223 Update.
2224 * infcall.c (call_function_by_hand): Update.
2225
9ab9195f
EZ
22262004-02-14 Elena Zannoni <ezannoni@redhat.com>
2227
2228 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 2229 from here...
9ab9195f
EZ
2230 * objfiles.c (init_entry_point_info, entry_point_address):..to
2231 here.
2232 * symfile.h (init_entry_point_info, entry_point_address): Remove
2233 prototypes.
2234 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 2235 prototypes.
9ab9195f
EZ
2236 * cris-tdep.c: Remove include of symfile.h. Add include of
2237 objfiles.h.
2238 * infcall.c: Ditto.
2239 * mcore-tdep.c: Ditto.
2240 * mn10300-tdep.c: Ditto.
2241 * sh64-tdep.c: Ditto.
2242 * v850-tdep.c: Ditto.
2243 * arm-tdep.c: Remove include of symfile.h.
2244 * blockframe.c: Ditto.
2245 * coffread.c: Ditto.
2246 * dbxread.c: Ditto.
2247 * dwarf2read.c: Ditto.
2248 * dwarfread.c: Ditto.
8a1dac83 2249 * frv-tdep.c: Ditto.
9ab9195f
EZ
2250 * ia64-tdep.c: Ditto.
2251 * mdebugread.c: Ditto.
2252 * mipsread.c: Ditto.
8a1dac83 2253 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
2254 * s390-tdep.c: Ditto.
2255 * sh-tdep.c: Ditto.
8a1dac83 2256 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
2257 * gdbarch.sh: Remove include of symfile.h.
2258 * gdbarch.c: Regenerate.
2259 * solib-irix.c (enable_break): Use entry_point_address().
2260 Add comment about include file.
2261 * xcoffread.c: Add comment about include file.
8a1dac83
RM
2262 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
2263 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
2264 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
2265 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
2266 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
2267
c4c5b7ba
AC
22682004-02-13 Andrew Cagney <cagney@redhat.com>
2269
2270 * corelow.c (core_xfer_partial): Use "struct bfd_section".
2271 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
2272 copyright.
2273 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
2274
3e7879de
FF
22752004-02-12 Fred Fish <fnf@redhat.com>
2276
2277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
2278 set_gdbarch_store_return_value.
2279
6a7760b6
AC
22802004-02-12 Andrew Cagney <cagney@redhat.com>
2281
2282 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
2283 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
2284 (interrupt_query): Ditto.
2285 (ofunc): Delete unused variable.
2286 * cris-tdep.c (cris_abi): Delete unused function.
2287 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
2288 (cris_get_wide_opcode, cris_get_short_size): Ditto.
2289 (cris_get_asr_quick_shift_steps): Ditto.
2290 (cris_skip_prologue_frameless_p): Ditto.
2291 * arm-tdep.c (arm_push_return_address): Delete unused function.
2292 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
2293 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
2294 * s390-tdep.c (s390_function_start): Delete unused function.
2295
31687c3c
AC
22962004-02-12 Andrew Cagney <cagney@redhat.com>
2297
2298 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
2299 gdbarch.h, gdbarch.c: Re-generate.
2300 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
2301 to generic_prologue_frameless_p.
2302 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
2303 * arch-utils.c (generic_prologue_frameless_p): Delete function.
2304
6de918a6
DJ
23052004-02-11 Daniel Jacobowitz <drow@mvista.com>
2306
2307 * mips-linux-tdep.c: Include "frame.h".
2308 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
2309 (mips_linux_skip_resolver): New functions.
2310 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
2311 and set_gdbarch_in_solib_call_trampoline.
2312 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
2313 to after set_gdbarch_in_solib_return_trampoline. Only set the
2314 solib hooks to mips16 functions if the OS ABI is unknown.
2315 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
2316 including "config/tm-linux.h".
2317 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
2318 * Makefile.in (mips-linux-tdep.o): Update.
2319
87b3ede8
DC
23202004-02-11 David Carlton <carlton@kealia.com>
2321
2322 * linespec.c (decode_compound): Only look for a class symbol when
2323 considering all but the rightmost component.
2324
5979bc46
AC
23252004-02-11 Andrew Cagney <cagney@redhat.com>
2326
2327 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
2328 abi code are are separatly grouped.
2329
5867a2fb
AC
23302004-02-11 Andrew Cagney <cagney@redhat.com>
2331
2332 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
2333 * gdbarch.h, gdbarch.c: Re-generate.
2334 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2335 * v850-tdep.c (v850_gdbarch_init): Update.
2336 * sh64-tdep.c (sh64_gdbarch_init): Update.
2337 * sh-tdep.c (sh_gdbarch_init): Update.
2338 * s390-tdep.c (s390_gdbarch_init): Update.
2339 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2340 * mips-tdep.c (mips_gdbarch_init): Update.
2341 * mcore-tdep.c (mcore_gdbarch_init): Update.
2342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2343 * m32r-tdep.c (m32r_gdbarch_init): Update.
2344 * ia64-tdep.c (ia64_gdbarch_init): Update.
2345 * hppa-tdep.c (hppa_gdbarch_init): Update.
2346 * h8300-tdep.c (h8300_gdbarch_init): Update.
2347 * frv-tdep.c (frv_gdbarch_init): Update.
2348 * d10v-tdep.c (d10v_gdbarch_init): Update.
2349 * cris-tdep.c (cris_gdbarch_init): Update.
2350 * avr-tdep.c (avr_gdbarch_init): Update.
2351 * arm-tdep.c (arm_gdbarch_init): Update.
2352 * alpha-tdep.c (alpha_gdbarch_init): Update.
2353
026a72f8
CV
23542004-02-11 Corinna Vinschen <vinschen@redhat.com>
2355
2356 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
2357 comma.
2358 (sh_sh4al_dsp_register_name): Ditto.
2359
3903d437
AC
23602004-02-10 Andrew Cagney <cagney@redhat.com>
2361
2362 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
2363 (mips_init_frame_pc_first): Delete function.
2364 (mips_frame_saved_pc): Delete function.
2365 (mips_frame_chain): Delete function.
2366 (mips_init_extra_frame_info): Delete function.
2367 (mips_xfer_register): Delete unused variable "reg".
2368 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
2369 (mips_n32n64_return_value): Delete unused variable "reg".
2370 (mips_n32n64_return_value): Delete unused variable "pos".
2371 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
2372 (mips_o32_return_value): Delete unused variable "pos".
2373 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
2374 (mips_print_fp_register): Delete unused variable "namelen"
2375 (mips_print_fp_register): Delete unused variable "flt2"
2376 (get_frame_pointer): Delete function.
2377 (cached_proc_desc): Delete static variable.
2378 (mips_pop_frame): Delete function.
2379 (mips_find_saved_regs): Delete function.
2380 (mips_get_saved_register): Delete function.
2381 (mips_saved_pc_after_call): Delete function.
2382 (SIGFRAME_BASE): Delete macro.
2383 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
2384 (SIGFRAME_PC_OFF): Delete macro.
2385 (SIGFRAME_REGSAVE_OFF): Delete macro.
2386 (mips_dump_tdep): Do not print deleted macro definitions.
2387
b9fb98bd
AC
23882004-02-10 Andrew Cagney <cagney@redhat.com>
2389
2390 * Makefile.in (SFILES): Remove explictly listed tui files.
2391 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
2392
78ced177 23932004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 2394
78ced177
JJ
2395 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
2396 to use paddr functions to format ia64 addresses and long values.
2397 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
2398 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
2399 (get_kernel_table, ia64_find_proc_info_x): Ditto.
2400 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
2401 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
2402
6a83354a
AC
24032004-02-10 Andrew Cagney <cagney@redhat.com>
2404
2405 * defs.h: Do not include "tui.h".
2406 * gdb_curses.h: New file.
2407 * tui/tui-hooks.h: New file.
2408 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
2409 (tui_install_hooks, tui_remove_hooks): Delete declarations.
2410 (tui_initialize_io): Delete declaration.
2411 (tui_initialize_readline: Delete redundant declaration.
2412 (struct tui_point): Delete definition.
2413 * tui/tui-data.h (struct tui_point): Define.
2414 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
2415 * utils.c: Include "tui/tui.h".
2416 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
2417 * printcmd.c [TUI]: Include "tui/tui.h".
2418 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
2419 * tui/tui-command.c: Include "gdb_curses.h".
2420 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
2421 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
2422 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
2423 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
2424 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
2425 * Makefile.in: Update all dependencies.
2426 (tui_hooks_h, gdb_curses_h): Define.
2427 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
2428
997470ef
EZ
24292004-02-10 Elena Zannoni <ezannoni@redhat.com>
2430
2431 * objfiles.h (struct objfile): Remove unused fields auxf1 and
2432 auxf2. Add comments about some other rarely used fields.
2433
4ff2cc4d
AC
24342004-02-10 Andrew Cagney <cagney@redhat.com>
2435
2436 * Makefile.in (init.c): Fix script removing duplicates. Problem
2437 reported by Peter Schauer.
2438
1ab21617
EZ
24392004-02-09 Elena Zannoni <ezannoni@redhat.com>
2440
2441 * bcache.c (bcache_xmalloc): Use obstack_init instead of
2442 obstack_specify_allocation.
2443 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 2444 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
2445 (allocate_rt_common_objfile): Ditto.
2446 * symfile.c (reread_symbols): Ditto.
2447 * gdb_obstack.h: Add comment.
2448
17763fd9
EZ
24492004-02-09 Elena Zannoni <ezannoni@redhat.com>
2450
2451 * linespec.c (decode_line_1, locate_first_half)
2452 (decode_compound, lookup_prefix_sym): Update comments. Delete old
2453 commented out code.
2454
ec5cdd75
DJ
24552004-02-09 Daniel Jacobowitz <drow@mvista.com>
2456
2457 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
2458 obstack_free.
2459
43b54b88
AC
24602004-02-09 Andrew Cagney <cagney@redhat.com>
2461
2462 * blockframe.c (find_pc_partial_function): If find_pc_overlay
2463 fails, try find_pc_section. Fix PR c++/1267.
2464 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
2465 instead of find_pc_mapped_section.
2466 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
2467 not default to the section containing PC. Fix PR symtab/1519.
2468
edfae063
AC
24692004-02-09 Andrew Cagney <cagney@redhat.com>
2470
2471 * Makefile.in (mips-tdep.o): Update dependencies.
2472 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
2473 "trad-frame.h".
2474 (mips_unwind_pc): Return the pseudo PC register.
2475 (mips_unwind_dummy_id): New function.
2476 (mips16_fetch_instruction): New function.
2477 (mips32_fetch_instruction): New function.
2478 (struct mips_frame_cache): Define.
2479 (mips_mdebug_frame_cache): New function.
2480 (mips_mdebug_frame_this_id): New function.
2481 (mips_mdebug_frame_prev_register): New function.
2482 (mips_mdebug_frame_unwind): Define.
2483 (mips_mdebug_frame_sniffer): New function.
2484 (mips_mdebug_frame_base_address): New function.
2485 (mips_mdebug_frame_base): Define.
2486 (mips_mdebug_frame_base_sniffer): New function.
2487 (mips_gdbarch_init): Append unwind and base sniffers. Set
2488 unwind_dummy_id.
2489
defc864c
AC
24902004-02-08 Andrew Cagney <cagney@redhat.com>
2491
6764ddad
AC
2492 * frame.c: Print both the register number and name.
2493
defc864c
AC
2494 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
2495 and a sed into a single sed. Make .c and .o patterns more robust.
2496 (OBS): Delete.
2497 (INIT_FILES): Replace OBS with COMMON_OBS.
2498 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
2499
645d6d10
MK
25002004-02-08 Mark Kettenis <kettenis@gnu.org>
2501
2502 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
2503 the PT_WCOOKIE request.
2504
23e3c3fc
AC
25052004-02-08 Andrew Cagney <cagney@redhat.com>
2506
58dfe9ff
AC
2507 * mips-tdep.c (mips_unwind_pc): New function.
2508 (mips_gdbarch_init): Set mips_unwind_pc.
2509
1152e35e
AC
2510 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
2511 (get_frame_id): Allow the UNKNOWN_FRAME.
2512 (frame_register_unwind, get_frame_type): Ditto.
2513
31b75dbf
AC
2514 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
2515 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
2516 unwind_dummy_id indicates a legacy frame.
2517
3483b318
AC
2518 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
2519 * configure: Re-generate.
2520
23e3c3fc
AC
2521 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
2522 methods.
2523
33f8ca73
AC
25242004-02-08 Andrew Cagney <cagney@redhat.com>
2525
2526 * configure.in (CONFIG_ALL): Set to Makefile target, and not
2527 makefile macro.
2528 * configure: Re-generate.
2529 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
2530 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
2531 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
2532 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
2533 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
2534 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
2535 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
2536 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
2537 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
2538 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
2539
6ba8e26f 25402004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 2541
20d286a5
AC
2542 * Makefile.in: Update all dependencies.
2543
d836ee13
AC
2544 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
2545 * configure: Re-generate.
2546 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
2547 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
2548 (COMMON_OBS): Add "main.o" and "annotate.o".
2549 (ANNOTATE_OBS): Delete.
2550 (OBS): Remove ANNOTATE_OBS.
2551 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
2552 CONFIG_INITS.
2553 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
2554 against CONFIG_OBS and "main.o".
2555 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
2556 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
2557
d02c80cd
AC
2558 * tui/tui-command.c: Include "gdb_string.h", delete register
2559 attribute, use ISO-C function signatures.
2560 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
2561 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
2562 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
2563 * tui/tui.c: Ditto.
6ba8e26f
AC
2564
2565 * tui/tui-command.c: Change variable and function names to lower
2566 case.
2567 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
2568 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
2569 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
2570 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
2571 * tui/tui-winsource.c, tui/tui.c: Ditto.
2572
4a146b47
EZ
25732004-02-07 Elena Zannoni <ezannoni@redhat.com>
2574
2575 * buildsym.c (free_pending_blocks, finish_block)
2576 (record_pending_block, make_blockvector, end_symtab): Replace
2577 symbol_obstack with objfile_obstack.
8a1dac83 2578 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 2579 (coff_read_enum_type): Ditto.
8a1dac83 2580 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 2581 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 2582 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
2583 (dwarf2_symbol_mark_computed): Ditto.
2584 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
2585 * elfread.c (elf_symtab_read): Ditto.
2586 * hpread.c (hpread_symfile_init, hpread_symfile_init)
2587 (hpread_read_enum_type, hpread_read_function_type)
2588 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
2589 Ditto.
8a1dac83 2590 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 2591 (java_link_class_type): Ditto.
8a1dac83 2592 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
2593 (new_symbol): Ditto.
2594 * minsyms.c (install_minimal_symbols): Ditto.
2595 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
2596 (terminate_minimal_symbol_table): Replace symbol_obstack with
2597 objfile_obstack.
2598 (free_objfile): Remove freeing of symbol_obstack.
2599 * objfiles.h: Remove symbol_obstack field.
2600 * pa64solib.c (add_to_solist): Replace symbol_obstack with
2601 objfile_obstack.
2602 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
2603 symbol_obstack.
2604 (solib_add_common_symbols): Replace symbol_obstack with
2605 objfile_obstack.
2606 * somsolib.c (som_solib_add): Ditto.
2607 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
2608 (common_block_start, common_block_end): Ditto.
2609 * symfile.c (reread_symbols): Remove freeing and init of
2610 symbol_obstack.
2611 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
2612 * symfile.h: Update comment.
2613 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
2614 stats printing.
2615 * symtab.c (symbol_set_names): Replace symbol_obstack with
2616 objfile_obstack.
2617 * symtab.h (struct general_symbol_info, struct minimal_symbol):
2618 Update comments.
2619 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
2620 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
2621 objfile_obstack.
2622
6d012f14
AC
26232004-02-07 Andrew Cagney <cagney@redhat.com>
2624
2625 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
2626 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
2627 fields and variables.
2628 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
2629 (m_beInvisible): Delete macro.
2630 * tui/tui-data.h: Fix case case fields and variables.
2631 (m_genWinPtrIsNull): Delete macro.
2632 (tui_win_list): Rename winList.
2633 (TUI_SRC_WIN): Rename srcWin.
2634 (TUI_DISASM_WIN): Rename disassemWin.
2635 (TUI_DATA_WIN): Rename dataWin.
2636 (TUI_CMD_WIN): Rename cmdWin.
2637 (m_genWinPtrNotNull): Delete macro.
2638 (m_winPtrIsNull): Delete macro.
2639 (m_winPtrNotNull): Delete macro.
2640 (tui_win_is_source_type): Replace m_winIsSourceType
2641 (tui_win_is_auxillary): Replace m_winIsAuzillary.
2642 (tui_win_has_locator): Replace m_hasLocator.
2643 (tui_set_win_highlight): Replace m_setWinHighlightOn and
2644 m_setWinHighlightOff.
2645 * tui/tui-data.c: Update references.
2646 (tui_win_is_source_type, tui_set_win_highlight): New functions.
2647 (tui_win_has_locator, tui_win_is_auxillary): New functions.
2648 * tui/tui-command.c, tui/tui-disasm.c: Update references.
2649 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
2650 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
2651 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
2652 * tui/tui-winsource.c, tui/tui.c: Ditto.
2653
7d34766b
MK
26542004-02-07 Mark Kettenis <kettenis@gnu.org>
2655
1c800673
MK
2656 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
2657 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
2658 StackGhost.
2659
7d34766b
MK
2660 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
2661 variable `i6' to `i7'.
2662 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
2663
22940a24
AC
26642004-02-07 Andrew Cagney <cagney@redhat.com>
2665
2666 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
2667 (TuiPoint, TuiPointPtr): Ditto.
2668 (TuiStatus, TuiStatusPtr): Ditto.
2669 (TuiWinType, TuiWinTypePtr): Ditto.
2670 (struct tui_point): Rename _TuiPoint.
2671 (tui_get_low_disassembly_address): Rename
2672 tuiGetLowDisassemblyAddress.
2673 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
2674 (tuiFree): Delete declaration.
2675 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
2676 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
2677 * tui/tui.c (tuiFree): Delete function.
2678 * cli/cli-cmds.c (disassemble_command): Update references.
2679 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
2680 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
2681 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
2682 * tui/tui-winsource.c: Ditto.
2683
8b92e4d5
EZ
26842004-02-07 Elena Zannoni <ezannoni@redhat.com>
2685
2686 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
2687 coffstab_build_psymtabs, elfstab_build_psymtabs)
2688 (stabsect_build_psymtabs): Replace psymbol_obstack with
2689 objfile_obstack.
2690 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
2691 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
2692 Ditto.
2693 * dwarfread.c (scan_compilation_units): Ditto.
2694 * elfread.c (elfstab_offset_sections): Ditto.
2695 * hppa-tdep.c (read_unwind_info): Ditto.
2696 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
2697 (hpread_end_psymtab): Ditto.
2698 * mdebugread.c (mdebug_build_psymtabs, add_pending)
2699 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
2700 Ditto.
2701 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 2702 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
2703 (build_objfile_section_table): Ditto.
2704 (allocate_objfile): Remove init of psymbol_obstack.
2705 (free_objfile): Remove freeing of psymbol_obstack.
2706 * objfiles.h (struct objfile): Remove field
2707 psymbol_obstack. Update comments.
2708 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
2709 psymbol_obstack with objfile_obstack.
2710 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
2711 psymbol_obstack.
2712 * somread.c (som_symfile_offsets, init_import_symbols)
2713 (init_export_symbols): Replace psymbol_obstack with
2714 objfile_obstack.
2715 * somsolib.c (som_solib_add_solib_objfile): Ditto.
2716 * symfile.c (default_symfile_offsets, syms_from_objfile)
2717 (reread_symbols): Remove freeing and init of psymbol_obstack.
2718 (cashier_psymtab): Update comment.
2719 * symmisc.c (print_objfile_statistics): Don't report stats for
2720 psymbol obstack.
2721 * symtab.h (struct general_symbol_info, struct partial_symtab):
2722 Update comments.
2723 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
2724 (xcoff_symfile_offsets): Replace psymbol_obstack with
2725 objfile_obstack.
2726
b99607ea
EZ
27272004-02-07 Elena Zannoni <ezannoni@redhat.com>
2728
2729 * objfiles.h (struct objfile): Add objfile_obstack field.
2730 Remove type_obstack field.
2731
2732 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
2733 read_structure_scope read_enumeration, new_symbol): Replace
2734 type_obstack with objfile_obstack.
2735 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 2736 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
2737 (lookup_fundamental_type): Ditto.
2738 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
2739 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
2740 (hpread_read_doc_function_type, hpread_read_struct_type)
2741 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 2742 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 2743 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
2744 (java_link_class_type): Ditto.
2745 * mdebugread.c (parse_type): Ditto.
2746 * objfiles.c (allocate_objfile, free_objfile): Ditto.
2747 * solib-sunos.c (solib_add_common_symbols): Ditto.
2748 * stabsread.c (define_symbol, read_type, read_member_functions,
2749 read_cpp_abbrev, read_one_struct_field): Ditto.
2750 * symfile.c (reread_symbols): Ditto.
2751 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 2752
2a8854a7
AC
27532004-02-07 Andrew Cagney <cagney@redhat.com>
2754
2755 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
2756 (tui_exec_info_content): Rename TuiExecInfoContent.
2757 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
2758 (TuiWinInfo, TuiWinInfoPtr): Ditto.
2759 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
2760 (TuiList, TuiListPtr): Ditto.
2761 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
2762 (TuiDataType, TuiDataTypePtr): Ditto.
2763 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
2764 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
2765 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
2766 (TuiSourceElement, TuiSourceElementPtr): Ditto.
2767 (TuiDataElement, TuiDataElementPtr): Ditto.
2768 (TuiWinElement, TuiWinElementPtr): Ditto.
2769 (TuiDataInfo, TuiDataInfoPtr): Ditto.
2770 (TuiCommandElement, TuiCommandElementPtr): Ditto.
2771 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
2772 (TuiWhichElement, TuiWhichElementPtr): Ditto.
2773 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
2774 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
2775 * tui/tui-command.c, tui/tui-data.c: Update references.
2776 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
2777 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
2778 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
2779 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 2780
05cbe71a
MK
27812004-02-07 Mark Kettenis <kettenis@gnu.org>
2782
2783 * dwarf2-frame.h: Update copyright.
2784 (enum dwarf2_frame_reg_rule): New.
2785 (struct dwarf2_frame_state_reg): New.
2786 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
2787 * dwarf2-frame.c: Update copyright.
2788 (enum dwarf2_reg_rule): Remove.
2789 (struct dwarf2_frame_state): Remove defenition of `struct
2790 dwarf2_frame_state_reg'.
2791 (read_reg): Call get_frame_arch to get the architecture instead of
2792 using CURRENT_GDBARCH.
2793 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
2794 DWARF2_FRAME_.
2795 (dwarf2_frame_init_reg): New function.
2796 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
2797 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
2798 initialize the register state. Prefix old `enum dwarf2_reg_rule'
2799 tags with DWARF2_FRAME_.
2800 (dwarf2_frame_prev_register): Call get_frame_arch to get the
2801 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
2802 dwarf2_reg_rule' tags with DWARF2_FRAME_.
2803
ec7d9e56
AC
28042004-02-06 Andrew Cagney <cagney@redhat.com>
2805
dd1abb8c
AC
2806 * tui/tui-data.h (struct tui_list): Rename _TuiList.
2807 (enum tui_data_type): Rename _TuiDataType.
2808 (struct tui_layout_def): Rename _TuiLayoutDef.
2809 (struct tui_source_element): Rename _TuiSourceElement.
2810 (struct tui_data_element): Rename _TuiDataElement.
2811 (struct tui_command_element): Rename _TuiCommandElement.
2812 (struct tui_locator_element): Rename _TuiLocatorElement.
2813 (union tui_which_element): Define.
2814 (struct tui_win_element): Rename _TuiWinElement.
2815 (struct tui_data_info): Rename _TuiDataInfo.
2816 (struct tui_source_info): Rename _TuiSourceInfo.
2817 (struct tui_command_info): Rename _TuiCommandInfo.
2818 (tui_initialize_static_data): Rename initializeStaticData.
2819 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
2820 (tui_alloc_win_info): Rename allocWinInfo.
2821 (tui_init_generic_part): Rename initGenericPart.
2822 (tui_init_win_info): Rename initWinInfo.
2823 (tui_alloc_content): Rename allocContent.
2824 (tui_add_content_elements): Rename addContentElements.
2825 (tui_init_content_element): Rename initContentElement.
2826 (tui_free_window): Rename freeWindow.
2827 (tui_free_win_content): Rename freeWinContent.
2828 (tui_free_data_content): Rename freeDataContent.
2829 (tui_free_all_source_wins_content): Rename
2830 freeAllSourceWinsContent.
2831 (tui_del_window): Rename tuiDelWindow.
2832 (tui_del_data_windows): Rename tuiDelDataWindows.
2833 (tui_partial_win_by_name): Rename partialWinByName.
2834 (tui_win_name): Rename winName.
2835 (tui_current_layout): Rename currentLayout.
2836 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
2837 (tui_term_height): Rename termHeight.
2838 (tui_set_term_height_to): Rename setTermHeightTo.
2839 (tui_term_width): Rename termWidth.
2840 (tui_set_term_width_to): Rename setTermWidthTo.
2841 (tui_set_gen_win_origin): Rename setGenWinOrigin.
2842 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
2843 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
2844 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
2845 (tui_source_windows): Rename sourceWindows.
2846 (tui_clear_source_windows): Rename clearSourceWindows.
2847 (tui_clear_source_windows_detail): Rename
2848 clearSourceWindowsDetail.
2849 (tui_clear_win_detail): Rename clearWinDetail.
2850 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
2851 (tui_default_tab_len): Rename tuiDefaultTabLen.
2852 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
2853 (tui_win_with_focus): Rename tuiWinWithFocus.
2854 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
2855 (tui_layout_def): Rename tuiLayoutDef.
2856 (tui_win_resized): Rename tuiWinResized.
2857 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
2858 (tui_next_win): Rename tuiNextWin.
2859 (tui_prev_win): Rename tuiPrevWin.
2860 (tui_add_to_source_windows): Rename addToSourceWindows.
2861 * tui/tui-winsource.c, tui/tui-win.c: Update references.
2862 * tui/tui-layout.c, tui/tui-source.c: Ditto.
2863 * tui/tui-stack.c, tui/tui-io.c: Ditto.
2864 * tui/tui.c, tui/tui-data.c: Ditto.
2865 * tui/tui-interp.c, tui/tui-data.c: Ditto.
2866 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
2867
a358af15
AC
2868 * tui/tui-source.h: Update copyright. Include "tui-data.h".
2869 (struct symtab): Declare.
2870 (tui_set_source_content): Rename tuiSetSourceContent.
2871 (tui_show_symtab_source): Rename tuiShowSource.
2872 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
2873 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
2874 * tui/tui-source.c: Update copyright. Update references.
2875 * tui/tui-win.c, tui/tui-winsource.c: Update references.
2876 * tui/tui-stack.c: Update references.
2877
a21fcd8f
AC
2878 * tui/tui-win.h: Update copyright. Include "tui-data.h".
2879 (struct tui_win_info): Declare.
2880 (tui_scroll_forward): Rename tuiScrollForward.
2881 (tui_scroll_backward): Rename tuiScrollBackward.
2882 (tui_scroll_left): Rename tuiScrollLeft.
2883 (tui_scroll_right): Rename tuiScrollRight.
2884 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
2885 (tui_resize_all): Rename tuiResizeAll.
2886 (tui_refresh_all_win): Rename tuiRefreshAll.
2887 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
2888 * tui/tui-layout.c, * tui/tui-io.c: Update references.
2889 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
2890 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
2891
edae1ccf
AC
2892 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
2893 (tui_erase_data_content): Rename tuiEraseDataContent.
2894 (tui_display_all_data): Rename tuiDisplayAllData.
2895 (tui_check_data_values): Rename tuiCheckDataValues.
2896 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
2897 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
2898 (tui_first_data_element_no_in_line): Rename
2899 tuiFirstDataElementNoInLine.
2900 (tui_delete_data_content_windows): Rename
2901 tuiDeleteDataContentWindows.
2902 (tui_refresh_data_win): Rename tuiRefreshDataWin.
2903 (tui_display_data_from): Rename tuiDisplayDataFrom.
2904 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
2905 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
2906 * tui/tui-win.c, tui/tui-regs.c: Update references.
2907 * tui/tui-layout.c, tui/tui.c: Update references.
2908
ec7d9e56
AC
2909 * tui/tui-wingeneral.h: Update copyright.
2910 (m_allBeVisible): Delete macro.
8a1dac83 2911 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
2912 (struct tui_gen_win_info): Declare.
2913 (struct tui_win_info): Declare.
2914 (tui_unhighlight_win): Rename unhighlightWin.
2915 (tui_make_visible, tui_make_invisible): Replace makeVisible.
2916 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
2917 (tui_make_window): Rename makeWindow.
2918 (tui_copy_win): Rename copyWin.
2919 (tui_box_win): Rename boxWin.
2920 (tui_highlight_win): Rename highlightWin.
2921 (tui_check_and_display_highlight_if_needed): Rename
2922 checkAndDisplayHighlightIfNeeded.
2923 (tui_refresh_all): Rename refreshAll.
2924 (tui_delete_win): Rename tuiDelwin.
2925 (tui_refresh_win): Rename tuiRefreshWin.
2926 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
2927 (tui_make_visible, tui_make_invisible): New functions.
2928 (tui_make_all_visible, tui_make_all_invisible): New functions.
2929 (make_all_visible): Rename makeAllVisible.
2930 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
2931 * tui/tui-data.c, tui/tui-winsource.c: Update references.
2932 * tui/tui-windata.c, tui/tui-win.c: Update references.
2933 * tui/tui-regs.c, tui/tui-layout.c: Update references.
2934 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
2935
1e52e2eb
MK
29362004-02-06 Mark Kettenis <kettenis@gnu.org>
2937
2938 * proc-api.c (write_with_trace): Initialize local variable to
2939 silence compiler warning.
2940
f80bda8e
AC
29412004-02-06 Andrew Cagney <cagney@redhat.com>
2942
2943 * tui/tui-source.h: Do not include "defs.h".
2944 (struct tui_win_info): Declare.
2945 (tui_set_source_content_nil): Declare.
2946 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
2947 (union tui_line_or_address): Rename _TuiLineOrAddress.
2948 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
2949 (tui_update_source_window): Rename tuiUpdateSourceWindow.
2950 (tui_update_source_window_as_is): Rename
2951 tuiUpdateSourceWindowAsIs.
2952 (tui_update_source_windows_with_addr): Rename
2953 tuiUpdateSourceWindowsWithAddr.
2954 (tui_update_source_windows_with_line): Rename
2955 tuiUpdateSourceWindowsWithLine.
2956 (tui_clear_source_content): Rename tuiClearSourceContent.
2957 (tui_erase_source_content): Rename tuiEraseSourceContent.
2958 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
2959 (tui_show_source_content): Rename tuiShowSourceContent.
2960 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
2961 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
2962 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
2963 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
2964 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
2965 (tui_update_exec_info): Rename tuiUpdateExecInfo.
2966 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
2967 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
2968 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
2969 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
2970 (struct tui_win_info): Declare.
2971 * tui/tui-stack.c: Update references.
2972 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
2973 * tui/tui-win.c, tui/tui-source.c: Ditto.
2974 * tui/tui.c, tui/tui-disasm.c: Ditto.
2975
9fbfb822
MK
29762004-02-06 Mark Kettenis <kettenis@gnu.org>
2977
2978 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
2979 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
2980
03cebad2
MK
29812004-02-05 Mark Kettenis <kettenis@gnu.org>
2982
2983 * infrun.c (handle_inferior_event): Allow for breakpoint
2984 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
2985 and SIGEMT. Update comments.
2986 * NEWS (Revised SPARC target): Mention support for non-executable
2987 stack.
2988
290281b1
MK
29892004-02-04 Mark Kettenis <kettenis@gnu.org>
2990
2991 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
2992 * inftarg.c: Update copyright year.
2993 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
2994 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
2995 (sparc_xfer_wcookie): New function.
2996 * sparc-tdep.c (sparc_fetch_wcookie): New function.
2997 * Makefile.in (sparc-nat.o): Update dependencies.
2998 * config/sparc/nm-nbsd.h: Include "target.h".
2999 (NATIVE_XFER_WCOOKIE): New define.
3000 (sparc_xfer_wcookie): New prototype.
3001
212161df
AC
30022004-02-04 Andrew Cagney <cagney@redhat.com>
3003
3004 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
3005 SYSCALL_TRAP function.
3006 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
3007
6e4c6c91
DJ
30082004-02-04 Andrew Cagney <cagney@redhat.com>
3009 Daniel Jacobowitz <drow@mvista.com>
3010
3011 * objfiles.h: Delete comments refering to inside_entry_func and
3012 DEPRECATED_FRAME_CHAIN_VALID.
3013 * defs.h (inside_entry_func): Update prototype..
3014 * blockframe.c (inside_entry_func): Rename to
3015 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
3016 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
3017
cae688ec
JJ
30182004-02-03 Jeff Johnston <jjohnstn@redhat.com>
3019
3020 * breakpoint.c (struct captured_parse_breakpoint_args): Move
3021 outside of #ifdef SOLIB_ADD region.
3022 (do_restore_lang_radix_cleanup): Ditto.
3023 (resolve_pending_breakpoint): Ditto.
3024
19217676
AC
30252004-02-03 Andrew Cagney <cagney@redhat.com>
3026
3027 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
3028 (process_note_abi_tag_sections): Delete unused function.
3029 (ia64_read_fp): Delete unused function.
3030 (gdbarch_extract_struct_value_address): Delete declaration.
3031
876753be
AC
30322004-02-02 Andrew Cagney <cagney@redhat.com>
3033
3034 * vax-tdep.c (vax_frame_chain): Delete call to
3035 deprecated_inside_entry_file.
3036 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
3037
d4f10bf2
MK
30382004-02-02 Mark Kettenis <kettenis@gnu.org>
3039
3040 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
3041 column that's "empty" or "same value" when eliminating REG_RA
3042 rules.
3043
cae688ec
JJ
30442004-02-02 Jeff Johnston <jjohnstn@redhat.com>
3045
3046 * NEWS: Add information about new pending breakpoint support.
3047
0101ce28
JJ
30482004-02-02 Jeff Johnston <jjohnstn@redhat.com>
3049
3050 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
3051 and pending fields for pending breakpoint support.
3052 * breakpoint.c (breakpoint_enabled): Add check for not pending.
3053 (condition_command): Only parse condition if not a pending
3054 breakpoint.
3055 (print_one_breakpoint): Add support for pending breakpoints.
3056 (describe_other_breakpoints): Add checks to verify we are not
3057 dealing with pending breakpoints.
3058 (check_duplicates): Don't check pending breakpoints.
3059 (set_raw_breakpoint): Initialize pending flag.
3060 (do_restore_lang_radix_cleanup): New cleanup routine.
3061 (resolve_pending_breakpoint): New function.
3062 (re_enable_breakpoints_in_shlibs): Try and resolve any
3063 pending breakpoints via resolve_pending_breakpoint.
3064 (mention): Add pending breakpoint support.
3065 (parse_breakpoint_sals): Add new parameter to pass to
3066 decode_line_1 to indicate silent errors when files or functions
3067 are not found. Change all callers.
3068 (do_captured_parse_breakpoint): New function.
3069 (break_command_1): Change prototype to return an rc value and to
3070 take an optional pending breakpoint pointer. Support creating
3071 a pending breakpoint if a "not found" form of error occurs when
3072 parsing the breakpoint. Also support resolving an existing pending
3073 breakpoint and be silent if the resolution fails.
3074 (create_breakpoints): Change prototype to take pending breakpoint
3075 pointer. When resolving a pending breakpoint, use the new pointer
3076 to provide a conditional or commands added by the end-user.
3077 (delete_breakpoint): Add appropriate check for pending.
3078 (breakpoint_re_set_one): Ditto.
3079 (do_enable_breakpoint): Ditto.
3080
8d577d32
DC
30812004-02-02 David Carlton <carlton@kealia.com>
3082
3083 * valops.c (enum oload_classification): New.
3084 (find_overload_match): Break implementation into separate
3085 functions; delete #if 0'd code; look for symbols within
3086 namespaces.
3087 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
3088 (find_oload_champ,oload_method_static,classify_oload_match): New.
3089 * cp-support.h: Add declaration for cp_func_name; update
3090 declaration for make_symbol_overload_list.
3091 * cp-support.c (cp_func_name): New.
3092 (overload_list_add_symbol): Fix comment, use
3093 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
3094 (make_symbol_overload_list): Take a function name and a namespace
3095 instead of a symbol; change implementation.
3096 (make_symbol_overload_list_using): New.
3097 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
3098
22e8e3c7
FF
30992004-02-02 Fred Fish <fnf@redhat.com>
3100
3101 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 3102 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
3103 * remote-sim.c (gdb_os_write_stderr): Write output to
3104 gdb_stdtargerr stream instead of gdb_stdtarg stream.
3105 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 3106 gdb_stderr stream and update copyright years.
22e8e3c7 3107
6b753f60
DJ
31082004-02-01 Daniel Jacobowitz <drow@mvista.com>
3109
3110 * Makefile.in (mips-linux-nat.o): Update dependencies.
3111 * mips-linux-nat.c: Include mips-tdep.h.
3112
31132004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
3114
3115 * sol-thread.c (sol_thread_xfer_partial): New function.
3116 (init_sol_thread_ops): Use that for to_xfer_partial hook.
3117 (init_sol_core_ops): Likewise.
3118
3119 * procfs.c (procfs_xfer_partial): New function.
3120 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
3121 * Makefile.in (procfs.o): Add $(auxv_h) dep.
3122
3123 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
3124 procfs_xfer_auxv function.
3125
3126 * procfs.c (procfs_make_note_section): If we can read
3127 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
3128 * linux-proc.c (linux_make_note_section): Likewise.
3129
3130 * auxv.h: New file.
3131 * auxv.c: New file.
3132 * Makefile.in (auxv_h): New variable.
3133 (COMMON_OBS): Add auxv.o here.
3134 (auxv.o): New target.
3135
3136 * corelow.c (core_xfer_partial): New function.
3137 (init_core_ops): Use it for core_ops.to_xfer_partial.
3138
3139 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
3140 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
3141 macro if that is defined.
3142
fa5281d0
DJ
31432004-02-01 Daniel Jacobowitz <drow@mvista.com>
3144
3145 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
3146 and check the specified thread for each breakpoint.
3147 * breakpoint.h (bpstat_stop_status): Update prototype.
3148 * infrun.c (handle_inferior_event): Update calls to
3149 bpstat_stop_status.
3150
26ee262d
DJ
31512004-02-01 Daniel Jacobowitz <drow@mvista.com>
3152
3153 * Makefile.in (cli-cmds.o): Add $(readline_h).
3154
d9b52655
DJ
31552004-02-01 Daniel Jacobowitz <drow@mvista.com>
3156
3157 * cli/cli-cmds.c: Include readline.h.
3158 (complete_command): Pass the start of the last word to
3159 complete_line.
3160
9709f61c
DJ
31612004-01-31 Daniel Jacobowitz <drow@mvista.com>
3162
3163 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
3164 argument, and change first argument to a CORE_ADDR.
3165 * breakpoint.h (bpstat_stop_status): Update prototype.
3166 * infrun.c (adjust_pc_after_break): Add a new comment.
3167 (handle_inferior_event): Update calls to bpstat_stop_status.
3168
4f1280bb
DJ
31692004-01-31 Daniel Jacobowitz <drow@mvista.com>
3170
3171 * breakpoint.h: Update copyright years.
3172
4fa8626c
DJ
31732004-01-31 Daniel Jacobowitz <drow@mvista.com>
3174
3175 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
3176 (bpstat_stop_status): Don't decrement PC.
3177 * breakpoint.h (software_breakpoint_inserted_here_p): Add
3178 prototype.
3179 * infrun.c (adjust_pc_after_break): New function.
3180 (handle_inferior_event): Call it, early. Remove later references
3181 to DECR_PC_AFTER_BREAK.
3182 (normal_stop): Add commentary.
3183
fad0733a
DJ
31842004-01-31 Daniel Jacobowitz <drow@mvista.com>
3185
3186 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
3187 2004-01-27 double-free fix.
3188
42cdca6c
MK
31892004-01-31 Mark Kettenis <kettenis@gnu.org>
3190
3191 * sparc-tdep.c (sparc_fetch_wcookie): New function.
3192 (sparc32_frame_prev_register): Handle StackGhost.
3193 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
3194
932d5416
RM
31952004-01-29 Roland McGrath <roland@redhat.com>
3196
3197 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
3198 * configure: Regenerated.
3199
3200 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
3201 * Makefile.in (procfs.o): Add dep.
3202
47d3492a
AC
32032004-01-28 Andrew Cagney <cagney@redhat.com>
3204
3205 * tui/tui-stack.h: Update copyright.
3206 (struct frame_info): Add opaque declaration.
3207 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
3208 (tui_show_locator_content): Rename tuiShowLocatorContent.
3209 (tui_show_frame_info): Rename tuiShowFrameInfo.
3210 * tui/tui-stack.c: Update copyright. Update references.
3211 * tui/tui-winsource.c: Update references.
3212 * tui/tui-win.c: Update references.
3213 * tui/tui-layout.c: Update references.
3214 * tui/tui-hooks.c: Update copyright, update references.
3215 * tui/tui.c: Update copyright, update references.
3216 * tui/tui-disasm.c: Update references.
3217
5d51ca54
DC
32182004-01-28 David Carlton <carlton@kealia.com>
3219
3220 * dwarf2read.c (add_partial_structure): Use demangled name if
3221 namespace equals "".
3222
086ed43d
JB
32232004-01-27 Jim Blandy <jimb@redhat.com>
3224
3225 Clean up misapplied patch:
3226 * dwarf2read.c (determine_prefix): Change one of the two forward
3227 declarations for 'determine_prefix_aux' to a declaration for this.
3228 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
3229 argument to 'die_specification'.
3230
2a35147e
JB
3231 * dwarf2read.c (read_func_scope): Re-indent comment.
3232
a355c7de 32332004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 3234
a355c7de
AC
3235 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
3236 b->exp to NULL after freeing so that error during re-parsing or
3237 evaluation of expressions associated with breakpoint don't
3238 eventually lead to re-freeing of storage.
3239 Committed by Andrew Cagney.
3240
63ff5125
AC
32412004-01-27 Andrew Cagney <cagney@redhat.com>
3242
3243 * source.c (ambiguous_line_spec): Delete undefined declaration.
3244 * m32r-rom.c (m32r_set_board_address): Delete unused function.
3245 (m32r_set_server_address, m32r_set_download_path): Ditto.
3246 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
3247
e142c38c
DJ
32482004-01-27 Daniel Jacobowitz <drow@mvista.com>
3249
3250 * dwarf2read.c: Update calls to changed and renamed functions, and
3251 references to moved variables.
3252
3253 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
3254 language, language_defn, list_in_scope, and ftypes members.
3255 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
3256 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
3257 (baseaddr): Remove globals.
3258
3259 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
3260 (set_cu_language, die_is_declaration, die_specification)
3261 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
3262 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
3263 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
3264 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
3265
3266 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
3267 cu.list_in_scope. Don't initialize cu_header_offset.
3268 (add_partial_symbol): Add local baseaddr.
3269 (psymtab_to_symtab_1): Add local baseaddr. Use
3270 objfile->section_offsets for consistency. Don't initialize
3271 cu_header_offset; do initialize cu.header.offset and
3272 cu.list_in_scope.
3273 (read_file_scope, read_func_scope, read_lexical_block_scope)
3274 (dwarf_decode_lines, new_symbol): Add local baseaddr.
3275
c6e06ede
MC
32762004-01-27 Michael Chastain <mec.gnu@mindspring.com>
3277
fb328ecc 3278 * PROBLEMS: Add gdb/1516.
c6e06ede 3279
48184fd4
AC
32802003-12-29 Robert Millan <robertmh@gnu.org>
3281
3282 Patch committed by Andrw Cagney.
3283 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
3284 * configure.tgt: Match knetbsd*-gnu.
3285
c1321b30
AC
32862004-01-26 Andrew Cagney <cagney@redhat.com>
3287
f3699be3
AC
3288 * breakpoint.c (catch_command_1): Delete #ifdef code.
3289 (catch_fork_command_1): Delete #ifdef wrapper.
3290 (catch_exec_command_1): Ditto.
3291 (catch_load_command_1): Ditto.
3292 (catch_unload_command_1): Ditto.
3293
c1321b30
AC
3294 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
3295 (catch_breakpoint): Delete #if0ed function.
3296 (disable_catch_breakpoint): Ditto.
3297 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
3298 (disable_catch, enable_catch, delete_catch): Ditto.
3299
b4501125
AC
33002004-01-26 Andrew Cagney <cagney@redhat.com>
3301
3302 * remote.c (echo_check, quit_flag): Delete variables.
3303 (cisco_kernel_mode): Delete variable.
3304 (minitelnet_return, tty_input, escape_count): Delete variables.
3305 (remote_cisco_mode): Delete variable.
3306 (remote_cisco_open, remote_cisco_close): Delete function.
3307 (remote_cisco_mourn, remote_cisco_wait): Delete function.
3308 (init_remote_cisco_ops): Delete function.
3309 (_initialize_remote): Do not install "remote cisco" code.
3310 (read_frame): Delete cisco specific code.
3311 (remote_info_process): Delete function.
3312 (remote_wait): Delete cisco specific code.
3313 (remote_cisco_section_offsets): Delete function.
3314 (remote_cisco_objfile_relocate): Delete function.
3315 (remote_async_wait): Delete cisco specific code.
3316 (minitelnet, readtty, readsocket): Delete function.
3317
74055713
AC
33182004-01-26 Andrew Cagney <cagney@redhat.com>
3319
3320 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
3321 comments mentioning extract_returned_value_address.
3322 * infcmd.c (print_return_value): Update. Add comments on
3323 extract_returned_value_address.
3324 * stack.c (return_command): Add comments on
3325 extract_returned_value_address.
3326 * values.c: Update comment.
3327 * m32r-tdep.c: Update comment.
3328 * sparc-tdep.c: Update comment.
3329 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
3330 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3331 * sh64-tdep.c (sh64_gdbarch_init): Update.
3332 * sh-tdep.c (sh_gdbarch_init): Update.
3333 * s390-tdep.c (s390_gdbarch_init): Update.
3334 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3335 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
3336 * m68k-tdep.c (m68k_gdbarch_init): Update.
3337 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3338 * m32r-tdep.c (m32r_gdbarch_init): Update.
3339 * ia64-tdep.c (ia64_gdbarch_init): Update.
3340 * h8300-tdep.c (h8300_gdbarch_init): Update.
3341 * frv-tdep.c (frv_gdbarch_init): Update.
3342 * arm-tdep.c (arm_gdbarch_init): Update.
3343 * alpha-tdep.c (alpha_gdbarch_init): Update.
3344
a67af2b9
AC
33452004-01-26 Andrew Cagney <cagney@redhat.com>
3346
3347 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
3348 SYMBOL_LOCATION_FUNCS
3349 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
3350 "struct symbol_ops".
3351 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
3352 type to "struct symbol_ops".
3353 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
3354 (struct symbol): Replace ".aux_value.loc.funcs" and
3355 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
3356 (SYMBOL_OBJFILE): Delete macro.
3357 (SYMBOL_LOCATION_FUNCS): Delete macro.
3358 (SYMBOL_LOCATION_BATON): Update.
3359 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
3360 intead of SYMBOL_LOCATION_FUNCS.
3361 * ax-gdb.c (gen_var_ref): Ditto.
3362 * printcmd.c (address_info): Ditto.
3363 * findvar.c (read_var_value): Ditto.
3364 (symbol_read_needs_frame): Ditto.
3365
c034e007
AC
33662004-01-26 Andrew Cagney <cagney@redhat.com>
3367
3368 * dwarf2read.c (read_func_scope): Document frame-base hack.
3369
bb472c1e
MK
33702004-01-25 Mark Kettenis <kettenis@gnu.org>
3371
3372 * infcmd.c (print_return_value): Plug memory leak; delete
3373 ui_stream object. Rename argument `structure_return' to
3374 `struct_return'.
3375
c8e737d5
MK
33762004-01-25 Mark Kettenis <kettenis@gnu.org>
3377
f941662f
MK
3378 * infcmd.c (print_return_value): Wrap long lines.
3379 (finish_command_continuation, finish_command): Remove unused
3380 variable `funcaddr'. Fix some coding-standards problems.
3381
c558d81a
MK
3382 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
3383 SECT_SIZE is large enough, not wheter it's exactly the right size.
3384 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
3385 TDEP->fpregset to zero.
3386
bf1e5861 3387 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
3388 floating-point registers for traditional NetBSD core files.
3389 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
3390 TDEP->sizeof_fpregset here.
3391
4c72d57a
MK
33922004-01-25 Mark Kettenis <kettenis@gnu.org>
3393
566626fa
MK
3394 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
3395 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
3396 function with code split out from
3397 sparc32nbsd_sigcontext_frame_cache.
3398 (sparc32nbsd_sigcontext_frame_cache): Use
3399 sparc32nbsd_sigcontext_saved_regs.
3400 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
3401 OpenBSD.
3402 * sparcobsd-tdep.c: New file.
3403 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
3404 (sparcobsd-tdep.o): New dependency.
3405 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
3406 * config/sparc/obsd.mt: New file.
3407
4c72d57a
MK
3408 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
3409 TDEP->fpregset to be initialized to enable core file register
3410 sets.
3411
7e5e9f88
MK
34122004-01-24 Mark Kettenis <kettenis@gnu.org>
3413
f0f207fd 3414 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
3415 Add opaque declarations.
3416 (sparc64nbsd_sigcontext_saved_regs): New prototype.
3417 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
3418 function with code split out from
3419 sparc64nbsd_sigcontext_frame_cache.
3420 (sparc64nbsd_sigcontext_frame_cache): Use
3421 sparc64nbsd_sigcontext_saved_regs.
3422 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
3423 OpenBSD.
3424 * sparc64obsd-tdep.c: New file.
3425 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
3426 (sparc64obsd-tdep.o): New dependency.
3427 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
3428 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
3429 * config/sparc/obsd64.mt: New file.
3430
690668cc
MK
3431 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
3432 read the instruction at PC.
3433
7e5e9f88
MK
3434 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
3435 value of GDB_OSABI_DEFAULT.
3436 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
3437 instead of GDB_OSABI_NETBSD_AOUT.
3438
68b6dce9
NR
34392004-01-24 Nick Roberts <nick@nick.uklinux.net>
3440
3441 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
3442 copyright.
3443
080ce8c0
AC
34442004-01-23 Andrew Cagney <cagney@redhat.com>
3445
3446 * printcmd.c (display_command): Replace tui_set_display call with
3447 tui_set_layout_for_display_command.
3448 * tui/tui.h (enum tui_win_type): Define.
3449 (tui_set_layout): Delete declaration.
3450 (tui_set_layout_for_display_command): Rename set_tui_layout.
3451 * tui/tui-data.h (enum tui_layout_type): Define.
3452 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
3453 "tui.h".
3454 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
3455 (tui_default_win_height): Rename tuiDefaultWinHeight.
3456 (tui_default_win_viewport_height): Rename
3457 tuiDefaultWinViewportHeight.
3458 (tui_set_layout): RenametuiSetLayout.
3459 * tui/tui-layout.c: Update references.
3460 * tui/tui.c: Update references.
3461 * tui/tui-disasm.c: Update references.
3462
b368761e
DC
34632004-01-23 David Carlton <carlton@kealia.com>
3464
3465 Partial workaround for PR c++/1511:
3466 * cp-namespace.c: Include frame.h.
3467 (cp_lookup_transparent_type): New
3468 (cp_lookup_transparent_type_loop): New.
3469 * cp-support.h: Declare cp_lookup_transparent_type.
3470 * symtab.c (basic_lookup_transparent_type): Renamed from
3471 lookup_transparent_type.
3472 (lookup_transparent_type): Replace old body by a call to
3473 current_language->la_lookup_transparent_type.
3474 * symtab.h: Update copyright. Declare
3475 basic_lookup_transparent_type.
3476 * language.h: Update copyright.
3477 (struct language_defn): Add la_lookup_transparent_type.
3478 * language.c: Update copyright.
3479 (unknown_language_defn): Add basic_lookup_transparent_type.
3480 (auto_language_defn): Add basic_lookup_transparent_type.
3481 (local_language_defn): Add basic_lookup_transparent_type.
3482 * ada-lang.c: Update copyright.
3483 (ada_language_defn): Add basic_lookup_transparent_type.
3484 * c-lang.c: Update copyright.
3485 (c_language_defn): Add basic_lookup_transparent_type.
3486 (cplus_language_defn): Add basic_lookup_transparent_type.
3487 (asm_language_defn): Add basic_lookup_transparent_type.
3488 (minimal_language_defn): Add basic_lookup_transparent_type.
3489 * f-lang.c: Update copyright.
3490 (f_language_defn): Add basic_lookup_transparent_type.
3491 * jv-lang.c: Update copyright.
3492 (java_language_defn): Add basic_lookup_transparent_type.
3493 * m2-lang.c: Update copyright.
3494 (m2_language_defn): Add basic_lookup_transparent_type.
3495 * objc-lang.c: Update copyright.
3496 (objc_language_defn): Add basic_lookup_transparent_type.
3497 * p-lang.c: Update copyright.
3498 (p_language_defn): Add basic_lookup_transparent_type.
3499 * scm-lang.c: Update copyright.
3500 (scm_language_defn): Add basic_lookup_transparent_type.
3501 * Makefile.in (cp-namespace.o): Depend on frame.h.
3502
fdde2d81
DC
35032004-01-23 David Carlton <carlton@kealia.com>
3504
3505 Patch for PR c++/1520:
3506 * dwarf2read.c (read_func_scope): Set processing_current_prefix
3507 properly if we have a specification die.
3508 (determine_prefix_aux): Rename from determine_prefix.
3509 (determine_prefix): Like the old determine_prefix, but never
3510 returns NULL.
3511
5b828b6b
TR
35122004-01-23 Theodore A. Roth <troth@openavr.org>
3513
3514 * avr-tdep.c: Update copyright.
3515 (avr_iaddr_p): Delete unused function.
3516 (avr_saddr_p): Delete unused function.
3517
a1b8c067
DC
35182004-01-23 David Carlton <carlton@kealia.com>
3519
3520 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
3521 Fix for PR symtab/1534.
3522
f2cab569
MK
35232004-01-23 Mark Kettenis <kettenis@gnu.org>
3524
3525 * NEWS (New native configurations): Mention OpenBSD/sparc and
3526 OpenBSD/sparc64.
3527 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
3528 * configure.host: Likewise.
3529 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
3530 handler for OpenBSD.
3531 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
3532
642d8300
MK
35332004-01-22 Mark Kettenis <kettenis@gnu.org>
3534
89aac506
MK
3535 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
3536 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
3537
36662fde
MK
3538 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
3539 * cli/cli-cmds.c (shell_escape): Likewise.
3540
642d8300
MK
3541 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
3542 OpenBSD .note.openbsd.ident sections.
3543
fae299cd
DC
35442004-01-22 David Carlton <carlton@kealia.com>
3545
3546 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
3547 get_scope_pc_bounds.
3548 (read_file_scope): Ditto.
3549 (get_scope_pc_bounds): New function, produced by extracting code
3550 from the above two functions, consolidating it, and adding support
3551 for DW_TAG_namespace.
3552
a49d618c
MK
35532004-01-22 Mark Kettenis <kettenis@gnu.org>
3554
3555 * osabi.c (MAX_NOTESZ): New define.
3556 (check_note): New function.
3557 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
3558 check_note.
3559
fe61caab
RM
35602004-01-21 Roland McGrath <roland@redhat.com>
3561
3562 * MAINTAINERS (write after approval): Add myself.
3563
ec145965
EZ
35642004-01-21 Eli Zaretskii <eliz@gnu.org>
3565
3566 * utils.c (init_page_info): Move declarations of `rows' and
3567 `cols' before the __GO32__-specific code. Move the closing brace
3568 outside the #ifdef __GO32__..#endif block.
3569 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
3570
877522db
PB
35712004-01-21 Paul Brook <paul@codesourcery.com>
3572
3573 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
3574 BPSTAT_WHAT_CHECK_SHLIBS.
3575
dbf5be1c
PB
35762004-01-21 Paul Brook <paul@codesourcery.com>
3577
3578 * MAINTAINERS: Add myself to write-after-approval.
3579
81f08b92
AC
35802004-01-20 Andrew Cagney <cagney@redhat.com>
3581
5a1efed7
AC
3582 * ax-gdb.c (print_axs_value): Delete unused function.
3583 * jv-lang.c (java_lookup_type): Delete unused function.
3584 * cli/cli-dump.c (dump_filetype): Delete unused function.
3585 * remote-mips.c (remote_mips_insert_hw_breakpoint)
3586 (remote_mips_remove_hw_breakpoint): Delete unused functions.
3587 (mips_getstring): Delete unused function.
3588 (pmon_insert_breakpoint): Delete #if0ed function.
3589 (PMON_MAX_BP): Delete #if0ed MACRO.
3590 (mips_pmon_bp_info): Delete #if0ed variable.
3591 (pmon_remove_breakpoint): Delete #if0ed function.
3592 * monitor.c (monitor_write_even_block): Delete unused function.
3593 (monitor_write_memory_block): Delete #if0ed code.
3594 * dink32-rom.c (dink32_load): Delete unused function.
3595 (_initialize_dink32_rom): Delete #if0ed code.
3596 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
3597
b0a30fce
AC
3598 * tui/tui-command.c: Update references.
3599 * tui/tui-io.c: Update references.
3600 * tui/tui-command.h: Update copyright.
3601 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
3602
81f08b92
AC
3603 * source.c (ambiguous_line_spec): Delete never-defined function.
3604 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
3605 * gdbtypes.c (add_name, add_mangled_type): Ditto.
3606 * cli/cli-cmds.c (validate_comname): Ditto.
3607
65f05602
AC
3608 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
3609 "tui-data.h".
3610 (tui_set_disassem_content): Rename tuiSetDisassemContent.
3611 (tui_show_disassem): Rename tuiShowDisassem.
3612 (tui_show_disassem_and_update_source): Rename
3613 tuiVerticalDisassemScroll.
3614 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
3615 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
3616 * tui/tui.h: Update copyright.
3617 (enum tui_status): Define.
3618 * tui/tui-data.h (enum tui_scroll_direction): Define.
3619 * tui/tui-disasm.c: Update copyright. Update references.
3620 * tui/tui-winsource.c: Update copyright. Update references.
3621 * tui/tui-win.c: Update references.
3622 * tui/tui-layout.c: Update references.
3623
6bb0384f
AC
36242004-01-20 Andrew Cagney <cagney@redhat.com>
3625
3626 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
3627 sym2 to start of block.
3628
9175c9a3
MC
36292004-01-19 Michael Chastain <mec.gnu@mindspring.com>
3630
3631 * MAINTAINERS: Delete mmalloc.
3632 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
3633 * NEWS: Mention removal of --with-malloc.
3634 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
3635 * config.in: Regenerate.
3636 * configure: Regenerate.
6bb0384f
AC
3637 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
3638 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
3639 * gdbinit.in: Remove mmalloc.
3640 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
3641 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
3642 * config/i386/go32.mh: Likewise.
3643 * config/i386/interix.mh: Likewise.
3644 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
3645
4fcef00a
JJ
36462004-01-19 Jeff Johnston <jjohnstn@redhat.com>
3647
3648 * linespec.c (decode_variable, symtab_from_filename): Call
3649 error_silent with error message instead of throwing an exception
3650 directly.
3651 * defs.h (error_silent, error_output_message): Add prototypes.
3652 (catch_exceptions_with_msg): Ditto.
3653 * utils.c (error_silent, error_output_message): New functions.
3654 * top.c (catch_exceptions_with_msg): New function.
3655
8e94b928
NR
36562004-01-20 Nick Roberts <nick@nick.uklinux.net>
3657
3658 * mi/mi-cmds.h (enum print_values): Add definition.
3659
3660 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
3661 type and value for simple data types and just the name and type
3662 for complex ones, if required.
3663
3664 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
3665 children, if required.
3666
a02d6af8
KB
36672004-01-19 Kevin Buettner <kevinb@redhat.com>
3668
3669 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
3670 unused declarations.
3671
78a4a9b9
AC
36722004-01-19 Andrew Cagney <cagney@redhat.com>
3673
3674 * top.h (mapped_symbol_files): Delete declaration.
3675 * main.c (captured_main): Delete option "m" and "mapped".
3676 * objfiles.c (mapped_symbol_files): Delete variable.
3677 * symfile.c (symbol_file_command): Delete mmap code.
3678 (symbol_file_add_with_addrs_or_offsets): Ditto.
3679 (add_symbol_file_command, reread_separate_symbols): Ditto.
3680 * objfiles.h (OBJF_MAPPED): Delete.
3681 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
3682 (free_objfile) [USE_MMALLOC]: Ditto.
3683 (open_existing_mapped_file): Delete function.
3684 (open_mapped_file): Delete function.
3685 (map_to_file): Delete function.
3686
2dbd5e30
KB
36872004-01-19 Kevin Buettner <kevinb@redhat.com>
3688
3689 * infrun.c (step_into_function): Account for possible breakpoint
3690 adjustment when computing ``stop_func_start''.
3691
437b434f
KB
36922004-01-19 Kevin Buettner <kevinb@redhat.com>
3693
3694 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
3695 the region size against the size of a pointer, not the size of
3696 a register as given by DEPRECATED_REGISTER_SIZE.
3697
55fb0713
AC
36982004-01-19 Andrew Cagney <cagney@redhat.com>
3699
3700 * tui/tui-regs.h: Include "tui-data.h".
3701 (tuiFirstRegElementNoInLine): Delete declaration.
3702 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
3703 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
3704 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
3705 (tui_calculate_regs_column_count): Rename
3706 tuiCalculateRegsColumnCount.
3707 (tui_check_register_values): Rename tuiCheckRegisterValues.
3708 (tui_show_registers): Rename tuiShowRegisters.
3709 (tui_display_registers_from_line): Rename
3710 tuiDisplayRegistersFromLine.
3711 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
3712 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
3713 (tui_first_reg_element_no_inline): Rename
3714 tuiFirstRegElementNoInLine.
3715 * tui/tui-data.h: Update copyright.
3716 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
3717 * tui/tui-windata.c: Update copyright, update references.
3718 * tui/tui-regs.c: Update copyright, update references.
3719 * tui/tui-win.c: Update copyright, update references.
3720 * tui/tui-layout.c: Update copyright, update references.
fe61caab 3721
cebe9500
AC
37222004-01-18 Andrew Cagney <cagney@redhat.com>
3723
bcdf1568
AC
3724 * tui/tui-io.c: Update copyright.
3725 (key_is_end_sequence, key_is_backspace): New functions.
3726 (key_is_command_char, key_is_start_sequence): New function.
3727 (tui_getc): Update references.
3728 * tui/tui-io.h: Update copyright.
3729 (m_tuiStartNewLine): Delete macro.
3730 (m_isBackspace, m_isDeleteChar): Delete macros.
3731 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
3732 (m_isNextPage, m_isPrevPage): Delete macros.
3733 (m_isLeftArrow, m_isRightArrow): Delete macros.
3734 (m_isXdbStyleCommandChar): Delete macro.
3735 (key_is_start_sequence): Declare, replace m_isStartSequence.
3736 (key_is_end_sequence): Declare, replace m_isEndSequence.
3737 (key_is_backspace): Declare ,replace m_isBackspace.
3738 (key_is_command_char): Declare, replace m_isCommandChar.
3739 * tui/tui-command.c: Update copyright.
3740 (tuiDispatchCtrlChar): Update references.
3741
130d87e6
AC
3742 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
3743 tuiSourceWin.h.
3744
d7b2e967
AC
3745 * tui/tui-command.c: Rename tui/tuiCommand.c.
3746 * tui/tui-command.h: Rename tui/tuiCommand.h.
3747 * tui/tui-data.c: Rename tui/tuiData.c.
3748 * tui/tui-data.h: Rename tui/tuiData.h.
3749 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
3750 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
3751 * tui/tui-io.c: Rename tui/tuiIO.c.
3752 * tui/tui-io.h: Rename tui/tuiIO.h.
3753 * tui/tui-layout.c: Rename tui/tuiLayout.c.
3754 * tui/tui-layout.h: Rename tui/tuiLayout.h.
3755 * tui/tui-regs.c: Rename tui/tuiRegs.c.
3756 * tui/tui-regs.h: Rename tui/tuiRegs.h.
3757 * tui/tui-source.c: Rename tui/tuiSource.c.
3758 * tui/tui-source.h: Rename tui/tuiSource.h.
3759 * tui/tui-stack.c: Rename tui/tuiStack.c.
3760 * tui/tui-stack.h: Rename tui/tuiStack.h.
3761 * tui/tui-win.c: Rename tui/tuiWin.c.
3762 * tui/tui-win.h: Rename tui/tuiWin.h.
3763 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
3764 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
3765 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
3766 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
3767 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
3768 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
3769 * tui/tui-file.c: Update includes.
3770 * tui/tui-hooks.c: Update includes.
3771 * tui/tui-interp.c: Update includes.
3772 * tui/tui.c: Update includes.
3773 * Makefile.in: Update all tui/ dependencies.
3774 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
3775
b2100910
AC
3776 * Makefile.in: Update copyright. Update dependencies.
3777
cebe9500
AC
3778 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
3779 problem.
3780
c6f0559b
AC
37812004-01-18 Andrew Cagney <cagney@redhat.com>
3782
43e9390b
AC
3783 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
3784 instead of register_gdbarch_init.
3785
c6f0559b
AC
3786 * remote-sds.c (tohex): Delete unused function. Update copyright.
3787 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
3788 * v850-tdep.c (v850_register_virtual_size): Ditto.
3789 * target.c (normal_target_post_startup_inferior): Ditto.
3790 * source.c (ambiguous_line_spec): Ditto.
3791 * remote.c (adapt_remote_get_threadinfo): Ditto.
3792 * mi/mi-out.c (out_field_fmt): Ditto.
3793 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
3794 (output_control_change_notification): Ditto.
3795 * m68k-tdep.c (m68k_register_byte): Ditto.
3796 (m68k_remote_breakpoint_from_pc): Ditto.
3797 * ui-out.c (init_ui_out_state): Delete unused declaration.
3798 * stabsread.c (search_value): Ditto.
3799 * mi/mi-cmd-env.c (env_cli_command): Ditto.
3800 * maint.c (print_section_table): Ditto.
3801 * infrun.c (set_follow_fork_mode_command): Ditto.
3802
a8504492
MK
38032004-01-18 Mark Kettenis <kettenis@gnu.org>
3804
3805 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
3806 DW_CFA_def_cfa_exporession. Add support for
3807 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
3808 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
3809
0bd8997e
AC
38102004-01-18 Andrew Cagney <cagney@redhat.com>
3811
3812 * ocd.c: Update copyright.
3813 (bdm_read_register_command): Delete unused function.
3814 (_initialize_remote_ocd): Delete commented out reference.
3815 (get_quoted_char, reset_packet): Delete #if0ed function.
3816 (output_packet, put_quoted_char): Delete #if0ed function.
3817 (stu_put_packet, stu_get_packet): Delete #if0ed function.
3818 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
3819 (BDM_BREAKPOINT): Delete #if0ed macro.
3820 (remote_timeout): Delete #if0ed variable.
3821
31bb40e4
MK
38222004-01-18 Mark Kettenis <kettenis@gnu.org>
3823
3824 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
3825 (core-sol2.o): Remove dependency.
3826 * core-sol2.c: Remove file.
3827
887432a5
AC
38282004-01-17 Andrew Cagney <cagney@redhat.com>
3829
3830 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
3831 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
3832 enums.
3833
29182b13
DJ
38342004-01-17 Daniel Jacobowitz <drow@mvista.com>
3835
3836 * remote.c: Update copyright years.
3837
2963ee1d
DJ
38382004-01-17 Daniel Jacobowitz <drow@mvista.com>
3839
3840 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
3841
79d45cd4
AC
38422004-01-17 Andrew Cagney <cagney@redhat.com>
3843
ee300cd4
AC
3844 * mdebugread.c: Update copyright.
3845 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
3846 (parse_type, parse_procedure): Ditto.
3847 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
3848
fcacc9c2
AC
3849 * cris-tdep.c (cris_store_struct_return): Put back accidently
3850 deleted function.
3851
79d45cd4
AC
3852 * gdbarch.sh: Update copyright year.
3853 * gdbarch.h, gdbarch.c: Re-generate.
3854
b263358a
DJ
38552004-01-17 Daniel Jacobowitz <drow@mvista.com>
3856
3857 Suggested by George Anzinger.
3858 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
3859 correct stack offset. Include unknown opcode numbers in the error
3860 message.
3861
931aecf5
AC
38622004-01-17 Andrew Cagney <cagney@redhat.com>
3863
3864 * x86-64-tdep.c (x86_64_init_abi): No need to clear
3865 extract_struct_value_address, i386 does not set it.
3866 * sparc64-tdep.c (sparc64_init_abi): Do not set
3867 extract_struct_value_address, never called.
3868 (sparc64_extract_struct_value_address): Delete function.
3869 * m68hc11-tdep.c: Update copyright.
3870 (m68hc11_gdbarch_init): Delete redundant assignment of
3871 extract_struct_value_address.
3872 * i386-tdep.c: Update copyright.
3873 (i386_gdbarch_init): Do not set extract_struct_value_address,
3874 never called.
3875 (i386_extract_struct_value_address): Delete function.
3876 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
3877 extract_struct_value_address, never called.
3878 (sparc32_extract_struct_value_address): #if 0 function. Add
3879 comments explaining its future.
3880
756fe439
DJ
38812004-01-17 Daniel Jacobowitz <drow@mvista.com>
3882
3883 * arm-tdep.c (arm_write_pc): New function.
3884 (arm_gdbarch_init): Call set_gdbarch_write_pc.
3885
e74f0f02
DJ
38862004-01-17 Daniel Jacobowitz <drow@mvista.com>
3887
3888 * breakpoint.c (must_shift_inst_regs): Delete.
3889 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
3890 and SHIFT_INST_REGS.
3891 * infcmd.c (step_1, step_1_continuation): Delete references to
3892 SHIFT_INST_REGS.
3893 * infrun.c (keep_going): Likewise.
3894 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
3895 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
3896
b6cb9035
AC
38972004-01-17 Andrew Cagney <cagney@redhat.com>
3898
444a1e2e
AC
3899 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3900 * gdbarch.h, gdbarch.c: Re-generate.
3901 * infcmd.c (print_return_value): Delete reference to
3902 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3903
def7e6ed
AC
3904 * cris-tdep.c (cris_gdbarch_init): Do not set
3905 deprecated_extract_struct_value_address.
3906
07be497a
AC
3907 * xstormy16-tdep.c: Update copyright.
3908 (xstormy16_extract_struct_value_address): Update to current
3909 extract struct value address interface.
3910 (xstormy16_gdbarch_init): Set extract_struct_value_address.
3911 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
3912 current extract struct value address interface.
3913 (sh64_gdbarch_init): Set extract_struct_value_address.
3914
6b4d5c91
AC
3915 * cris-tdep.c: Update copyright.
3916 (cris_extract_struct_value_address): Delete function.
3917 (struct_return_address): Delete variable.
3918 (cris_store_struct_return): Do not set struct_return_address.
3919
464e0365
AC
3920 * mcore-tdep.c: Update copyright.
3921 (mcore_extract_struct_value_address): Delete function. Update
3922 comments.
3923 (mcore_gdbarch_init): Update.
3924 * mn10300-tdep.c: Update copyright.
3925 (mn10300_extract_struct_value_address): Delete function.
3926 (mn10300_gdbarch_init): Update.
3927 * v850-tdep.c: Update copyright.
3928 (v850_extract_struct_value_address): Delete.
3929 (v850_gdbarch_init): Update.
3930 * ns32k-tdep.c: Update copyright.
3931 (ns32k_extract_struct_value_address): Delete.
3932 (ns32k_gdbarch_init): Update.
3933 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
3934 (hppa_gdbarch_init): Update.
3935 * vax-tdep.c: Update copyright.
3936 (vax_extract_struct_value_address): Delete.
3937 (vax_gdbarch_init): Update.
3938
afb18d0f
AC
3939 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
3940 * gdbarch.h, gdbarch.c: Re-generate.
3941 * procfs.c (procfs_fetch_registers): Delete reference to
3942 DEPRECATED_NPC_REGNUM.
3943 (procfs_store_registers): Ditto.
3944 * regcache.c (generic_target_write_pc): Simplify.
3945 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
3946
a698f53e
AC
3947 * core-sol2.c (fetch_core_registers): Replace
3948 DEPRECATED_NPC_REGNUM with equivalent tdep value.
3949
adc11376
AC
3950 * hppa-tdep.c: Update copyright year.
3951 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
3952 NPC_REGNUM.
3953 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
3954
b6cb9035
AC
3955 * mips-tdep.c (mips_write_pc): New function.
3956 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
3957 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
3958 (mips_find_saved_regs, mips_software_single_step: Ditto.
3959 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
3960 mips_init_extra_frame_info, mips_pop_frame): Ditto.
3961
6d82d43b
AC
39622004-01-17 Andrew Cagney <cagney@redhat.com>
3963
3964 * mips-tdep.c: Re-indent. Group functions by ABI.
3965
71bd6bd4
AC
39662004-01-17 Andrew Cagney <cagney@redhat.com>
3967
3968 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
3969 * gdbarch.c: Re-generate.
3970 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3971 DECR_PC_AFTER_BREAK to zero.
3972 * vax-tdep.c (vax_gdbarch_init): Ditto.
3973 * v850-tdep.c (v850_gdbarch_init): Ditto.
3974 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
3975 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3976 * sh-tdep.c (sh_gdbarch_init): Ditto.
3977 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3978 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3979 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3980 * mips-tdep.c (mips_gdbarch_init): Ditto.
3981 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3982 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3983 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3984 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3985 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3986 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3987 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3988 * frv-tdep.c (frv_gdbarch_init): Ditto.
3989 * cris-tdep.c (cris_gdbarch_init): Ditto.
3990 * avr-tdep.c (avr_gdbarch_init): Ditto.
3991 * arm-tdep.c (arm_gdbarch_init): Ditto.
3992 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
3993
a02abb62
JB
39942004-01-17 J. Brobecker <brobecker@gnat.com>
3995
3996 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
3997 Delete, no longer used.
3998 (read_subrange_type): New function, mostly extracted from
3999 read_array_type().
4000 (read_array_type): Replace extracted code by call to
4001 read_subrange_type().
4002 (dwarf2_get_attr_constant_value): New function.
4003 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
4004 (add_partial_symbol): Likewise.
4005 (process_die): Likewise.
4006 (new_symbol): Likewise.
4007 (read_type_die): Likewise.
4008
cf5b2f1b
AC
40092004-01-16 Andrew Cagney <cagney@redhat.com>
4010
4011 * symfile.c: Update copyright year.
4012 (compare_symbols): Delete unused function.
4013 * stabsread.c: Update copyright year.
4014 (lrs_general_complaint): Delete unused function.
4015 (ref_search_value): Ditto.
4016 (get_substring): Delete declaration.
4017 * sh64-tdep.c: Update copyright year.
4018 (sh64_get_gdb_regnum): Delete unused function.
4019 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
4020 Delete unused function.
4021
d33b9831
MK
40222004-01-17 Mark Kettenis <kettenis@gnu.org>
4023
4024 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
4025 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
4026
7aea86e6
AC
40272004-01-16 Andrew Cagney <cagney@redhat.com>
4028
4029 Changes from Peter Schauer.
4030 * rs6000-tdep.c: Update copyright year.
4031 (rs6000_push_dummy_call): Update the stack pointer before
4032 accessing the corresponding stack region.
4033 * rs6000-nat.c: Update copyright year.
4034 (set_host_arch): Set "info.abfd" to "exec_bfd".
4035
26b0da32
MK
40362004-01-15 Mark Kettenis <kettenis@gnu.org>
4037
4038 * blockframe.c: Update copyright year.
4039 (inside_entry_func): Don't treat a zero PC specially.
4040
86fbe6cc
EZ
40412004-01-14 Elena Zannoni <ezannoni@redhat.com>
4042
4043 * gcore.c (gcore_copy_callback): Use paddr_d to print size
4044 variable.
4045 (gcore_create_callback): Ditto. Skip any memory segment that has
4046 no permissions set.
4047
63d06c5c
DC
40482004-01-14 David Carlton <carlton@kealia.com>
4049
4050 Change symbols for C++ nested types to contain the fully qualified
4051 name, if possible. (At least in the DWARF-2 case.) Partial fix
4052 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
4053 c++/895.
4054 * c-exp.y (qualified_type): Handle types nested within classes.
4055 * cp-namespace.c: Update comments.
4056 (cp_set_block_scope): Delete #if 0.
4057 (cp_lookup_nested_type): Handle types nested within classes.
4058 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
4059 when appropriate.
4060 (add_partial_symbol): Add the name of the enclosing namespace to
4061 types.
4062 (pdi_needs_namespace): New.
4063 (add_partial_namespace): Tweak comment.
4064 (add_partial_structure): New.
4065 (psymtab_to_symtab_1): Initialize processing_current_prefix
4066 here...
4067 (process_die): instead of here.
4068 (read_structure_scope): Try to figure out the name of the class or
4069 namespace that the structure might be defined within.
4070 (read_enumeration): Generate fully-qualified names, if possible.
4071 (read_namespace): Don't set name to NULL.
4072 (die_specification): New.
4073 (new_symbol): Generate fully-qualified names for types.
4074 (read_type_die): Determine appropriate prefix.
4075 (determine_prefix): New.
4076 (typename_concat): New.
4077 (class_name): New.
4078 * valops.c (value_aggregate_elt): Pass NOSIDE to
4079 value_struct_elt_for_reference.
4080 (value_struct_elt_for_reference): Make static, add NOSIDE
4081 parameter, call value_maybe_namespace_elt as a last resort.
4082 (value_namespace_elt): Break out code into
4083 value_maybe_namespace_elt.
4084 (value_maybe_namespace_elt): New.
4085
87783b8b
AC
40862004-01-12 Andrew Cagney <cagney@redhat.com>
4087
4088 * mips-tdep.c (mips_convert_register_p): Handle both raw and
4089 cooked floating-point registers.
4090 (mips_gdbarch_init): Set convert_register_p, register_to_value,
4091 and value_to_register.
4092
6503b91e
AC
40932004-01-13 Andrew Cagney <cagney@redhat.com>
4094
4095 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
4096 * gdbarch.c: Re-generate.
4097 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4098 FUNCTION_START_OFFSET.
4099 * v850-tdep.c (v850_gdbarch_init): Ditto.
4100 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
4101 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4102 * sh-tdep.c (sh_gdbarch_init): Ditto.
4103 * s390-tdep.c (s390_gdbarch_init): Ditto.
4104 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4105 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4106 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4107 * mips-tdep.c (mips_gdbarch_init): Ditto.
4108 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4109 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4110 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4111 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4112 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4113 * i386-tdep.c (i386_gdbarch_init): Ditto.
4114 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4115 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4116 * frv-tdep.c (frv_gdbarch_init): Ditto.
4117 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4118 * cris-tdep.c (cris_gdbarch_init): Ditto.
4119 * avr-tdep.c (avr_gdbarch_init): Ditto.
4120 * arm-tdep.c (arm_gdbarch_init): Ditto.
4121 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4122
ea1dd7bc
DJ
41232004-01-13 Daniel Jacobowitz <drow@mvista.com>
4124
4125 * infrun.c (follow_fork_mode_ask): Remove.
4126 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
4127 (follow_fork): Simplify and remove internal error for
4128 follow_fork_mode_ask.
4129 (_initialize_infrun): Update "set follow-fork-mode" help text.
4130
0f0cffd2
AC
41312004-01-13 Andrew Cagney <cagney@redhat.com>
4132
4133 * configure.in: Update copyright year.
4134 (build_warnings): Add -Wunused-label.
4135 * configure: Re-generate.
4136
de38af99
AC
41372004-01-12 Andrew Cagney <cagney@redhat.com>
4138
954a7fba
AC
4139 * exec.h (exec_ops): Make "extern".
4140
de38af99
AC
4141 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
4142 the function is void.
4143 (mips_pseudo_register_write): Ditto.
4144
1a111ce3
AC
41452004-01-12 Andrew Cagney <cagney@redhat.com>
4146
4147 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
4148 call. Never defined.
4149 * sparc-tdep.h (struct frame_info): Add opaque declaration.
4150 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
4151 (struct sparc_gregset, struct regcache): Ditto.
4152 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
4153
48efe704
AC
41542004-01-12 Andrew Cagney <cagney@redhat.com>
4155
4156 * mi/ChangeLog: Delete file. Renamed to ...
4157 * mi/ChangeLog-1999-2003: New file.
4158 * tui/ChangeLog: Delete file. Renamed to ...
4159 * tui/ChangeLog-1998-2003: New file.
fe61caab 4160
a54124c5
MK
41612004-01-11 Mark Kettenis <kettenis@gnu.org>
4162
2ca62865
MK
4163 * sparc64nbsd-tdep.c: Include "regset.h".
4164 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
4165 Remove variables.
4166 (fetch_core_registers): Remove function.
4167 (sparc64nbsd_core_fns): Remove variable.
4168 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
4169 functions.
4170 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
4171 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
4172 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
4173
ca9d58e9
MK
4174 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
4175 sparc_extract_struct_value_address.
4176 (sparc32_gdbarch_init): Set extract_struct_value_address.
4177 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
4178 function.
4179 (sparc64_init_abi): Set extract_struct_value_address. Don't set
4180 return_value_on_stack.
4181
3cc87ec0
MK
4182 * NEWS: Mention that %cs and %ss have been added to the AMD64
4183 configurations
4184
5bf00f29
MK
4185 * frame.c: Update copyright year.
4186 (get_prev_frame): Improve comment.
4187
4f7ec84e
MK
4188 * sparc64fbsd-tdep.c: Include "regset.h".
4189 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
4190 Remove variables.
4191 (fetch_core_registers): Remove function.
4192 (sparc64fbsd_core_fns): Remove variable.
4193 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
4194 functions.
4195 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
4196 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 4197 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 4198
4e7b0cd3
MK
4199 * sparcnbsd-tdep.c: Include "regset.h".
4200 (fetch_core_registers): Remove function.
4201 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
4202 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
4203 functions.
4204 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
4205 TDEP->fpregset.
46b58ce9 4206 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 4207
a54124c5
MK
4208 * sparc-tdep.h (struct regset): Provide opaque declaration.
4209 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
4210 fpregset and sizeof_fpregset members.
4211 * sparc-tdep.c (struct regset): Provide opaque declaration.
4212 (sparc_regset_from_core_section): New function.
4213 (sparc32_gdbarch_init): Initialize TDEP->gregset,
4214 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
4215 Set regset_from_core_section when appropriate.
4216
29ff87c5
MK
42172004-01-10 Mark Kettenis <kettenis@gnu.org>
4218
79b1ab3d
MK
4219 * x86-64-tdep.c (amd64_non_pod_p): New function.
4220 (amd64_classify_aggregate): Return class memory for non-POD
4221 C++ structure types.
4222
6470d250
MK
4223 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
4224 argument. Use it to reserve a register if necessary.
4225 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
4226 amd64_push_arguments.
4227
562c50c2
MK
4228 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
4229
af233647
MK
4230 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
4231 register numbers in comments.
4232 * x86-64-tdep.h: Update copyright year.
4233 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
4234 Adjust for addition of %cs and %ss.
4235 * amd64fbsd-nat.c: Update copyright year.
4236 (reg_offset): Add register offsets for %cs and %ss.
4237 * amd64fbsd-tdep.c: Update copyright year.
4238 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
4239 (amd64fbsd_sc_reg_offset): Likewise.
4240 * x86-64-linux-nat.c: Update copyright year.
4241 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
4242 and %ss.
4243 * amd64nbsd-nat.c: Update copyright year.
4244 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
4245 * amd64nbsd-tdep.c: Update copyright year.
4246 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
4247 * x86-64-linux-tdep.c: Update copyright year.
4248 (user_to_gdb_regmap): Add mapping for %cs and %ss.
4249 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
4250 * regformats/reg-x86-64.dat: Add %cs and %ss.
4251
29ff87c5
MK
4252 * blockframe.c (inside_entry_func): Reformat. Introduce new local
4253 variables to prevent long lines. Update comments to reflect
4254 reality.
4255
38d518c9
EZ
42562004-01-09 David Carlton <carlton@kealia.com>
4257
4258 Checked in by Elena Zannoni <ezannoni@redhat.com>.
4259 * dwarf2read.c (read_namespace): Pull out name-generating code
4260 into namespace_name. Rename previous_namespace to previous_prefix
4261 and processing_current_namespace to processing_current_prefix..
4262 (namespace_name): New function.
4263 (add_partial_symbol): Substitute uses of pdi->name with
4264 actual_name.
4265 * cp-support.h: Rename processing_current_namespace to
4266 processing_current_prefix.
4267 Update copyright year.
4268 * cp-namespace.c: Rename processing_current_namespace to
4269 processing_current_prefix.
4270 Update copyright year.
fe61caab 4271
1e4728e7
AC
42722004-01-09 Andrew Cagney <cagney@redhat.com>
4273
4274 * jv-valprint.c, ser-unix.c: Add missing copyright years.
4275
c77c642a
MK
42762004-01-09 Mark Kettenis <kettenis@gnu.org>
4277
4278 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
4279 complaining.
4280 (process_one_symbol): Deal with N_PATCH stabs.
4281
b44e9041
EZ
42822004-01-09 Elena Zannoni <ezannoni@redhat.com>
4283
4284 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
4285 ifdeffed code.
4286 Update copyright year.
38d518c9 4287
eccfb640
MC
42882004-01-08 Michael Chastain <mec.gnu@mindspring.com>
4289
4290 * config/pa/tm-hppa.h: Update extern declarations for
4291 hppa32_hpux_frame_saved_pc_in_sigtramp,
4292 hppa32_hpux_frame_base_before_sigtramp, and
4293 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
4294
848c5feb
MC
42952004-01-08 Michael Chastain <mec.gnu@mindspring.com>
4296
4297 * config/pa/tm-hppah.h: Update copyright years.
4298
3cc5d663
AC
42992004-01-08 Andrew Cagney <cagney@redhat.com>
4300
4301 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
4302 (mips_o32_reg_struct_has_addr): Delete function.
4303 (mips_gdbarch_init): Update.
4304 (mips_extract_struct_value_address): Delete function.
4305
bfec0b41
JJ
43062004-01-08 David Mosberger <davidm@hpl.hp.com>
4307
4308 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
4309 reality.
4310
16e109ca
AC
43112004-01-07 Andrew Cagney <cagney@redhat.com>
4312
6214a8a1
AC
4313 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
4314 architecture's elf flags (when available).
4315
8d5838b5
AC
4316 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
4317 FPU to the start, check the MIPS FPU when looking for an old
4318 architecture.
4319 (set_mipsfpu_single_command): Update the architecture.
4320 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
4321
480d3dd2
AC
4322 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
4323 (mips_mask_address_p): Add "tdep" parameter.
4324 (show_mask_address, mips_addr_bits_remove): Update.
4325 (mips_dump_tdep): Update.
4326 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
4327 (MIPS_STACK_ARGSIZE): Delete macro.
4328 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
4329 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
4330 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
4331 (mips_dump_tdep): Update.
4332 (MIPS_SAVED_REGSIZE): Delete macro.
4333 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
4334 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
4335 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
4336 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
4337 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
4338 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
4339 (mips_pop_frame, return_value_location): Update.
4340 (mips_n32n64_return_value, mips_dump_tdep): Update.
4341
ec03c1ac
AC
4342 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
4343 MIPS ABI.
4344
16e109ca
AC
4345 * mips-tdep.c: Update copyright.
4346 (mips_gdbarch_init): Merge two code blocks handling the register
4347 name and number layout.
4348
15255275
MS
43492004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
4350
4351 * tracepoint.c (validate_actionline): Fix segv at EOF
4352
9f9057da
MC
43532004-01-07 Michael Chastain <mec.gnu@mindspring.com>
4354
4355 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
4356 properly for static fields.
4357
0127c0d3 43582004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 4359 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
4360
4361 * disasm.c: Update copyright to include 2004.
4362 (do_mixed_source_and_assembly): For uiout asm list
4363 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 4364 NULL and do so prior to loop. Only reset when we close off
0127c0d3 4365 the tuple/list. Move check for whether to close off the
fe61caab 4366 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
4367 on each loop iteration.
4368
5269965e
AC
43692004-01-05 Andrew Cagney <cagney@redhat.com>
4370
54f1137d
AC
4371 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
4372 should be a switch case and not a label.
4373 * mips-tdep.c (mips32_next_pc): Delete unused labels
4374 "greater_equal_branch" and "less_zero_branch".
4375 * jv-valprint.c (java_print_value_fields): Delete unused label
4376 "flush_it".
4377
5269965e
AC
4378 * target.c (unpush_target): Only close a target that is in the
4379 target stack.
4380
dbc22fa1
MK
43812004-01-05 Mark Kettenis <kettenis@gnu.org>
4382
9515395e
MK
4383 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
4384 address from [sp + 64] instead of %o2.
4385
dbc22fa1
MK
4386 * frame.c (get_prev_frame): Don't try to unwind the PC. This
4387 fixes PR backtrace/1476.
4388
5439edaa
AC
43892004-01-05 Andrew Cagney <cagney@redhat.com>
4390
4391 * libunwind-frame.h (struct frame_id): Add opaque declaration,
4392 move to start of file.
4393 * i386-tdep.h (struct regcache): Add opaque declaration.
4394 * config/ia64/nm-linux.h (struct target_ops): Add opaque
4395 declaration.
4396 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
4397 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
4398 * win32-nat.c (fake_create_process): Use ISO C style definition.
4399 * stabsread.c (define_symbol): Delete #ifndef
4400 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
4401 stabs_argument_has_addr call, macro never defined.
4402
19061abe
MC
44032004-01-04 Michael Chastain <mec.gnu@mindspring.com>
4404
4405 * op50-rom.c: Delete.
4406 * w89k-rom.c: Delete.
4407 * Makefile.in: Remove references.
4408
e53bef9f
MK
44092004-01-04 Mark Kettenis <kettenis@gnu.org>
4410
4411 * x86-64-tdep.c: Update copyright year.
4412 (struct amd64_register_info): Rename from x86_64_register_info.
4413 (amd64_register_info): Rename from x86_64_register_info.
4414 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
4415 (amd64_register_name): Rename from x86_64_register_name.
4416 (amd64_register_type): Rename from x86_64_register_type.
4417 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
4418 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
4419 (amd64_dwarf_reg_to_regnum): Rename from
4420 x86_64_dwarf_reg_to_regnum.
4421 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
4422 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
4423 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
4424 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
4425 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
4426 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
4427 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
4428 (amd64_frame_cache): Rename from x86_64_frame_cache.
4429 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
4430 (amd64_frame_prev_register): Rename from
4431 x86_64_frame_prev_register.
4432 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
4433 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
4434 (amd64_sigtramp_frame_cache): Rename from
4435 x86_64_sigtramp_frame_cache.
4436 (amd64_sigtramp_frame_prev_register): Rename from
4437 x86_64_sigtramp_frame_prev_register.
4438 (amd64_sigtramp_frame_unwind): Rename from
4439 x86_64_sigtramp_frame_unwind.
4440 (amd64_sigtramp_frame_sniffer): Rename from
4441 x86_64_sigtramp_frame_sniffer.
4442 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
4443 (amd64_frame_base): Rename from x86_64_frame_base.
4444 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
4445 (amd64_frame_align): Rename from x86_64_frame_align.
4446 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
4447 (amd64_regset_from_core_section): Rename from
4448 x86_64_regset_from_core_section.
4449 (x86_64_init_abi): Update comments.
4450
fca6aa58
NR
44512004-01-04 Nick Roberts <nick@nick.uklinux.net>
4452
4453 * MAINTAINERS (write after approval): Add myself.
4454
8ada74e3
MK
44552004-01-04 Mark Kettenis <kettenis@gnu.org>
4456
4457 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
4458 `float' arguments.
4459
5154b0cd
MK
44602004-01-04 Mark Kettenis <kettenis@gnu.org>
4461
4462 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
4463 such that it mentions a specific version of GCC that exhibits this
4464 bug.
4465
fb316966
MK
44662004-01-03 Mark Kettenis <kettenis@gnu.org>
4467
200cc553
MK
4468 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
4469 structure that has a single `float' member, store it in %f1 in
4470 addition to %f0.
4471
e226a4a0
MK
4472 * sparc-sol2-nat.c: Add missing '\'.
4473
b9d4c5ed
MK
4474 * sparc-tdep.c (sparc32_return_value): New function.
4475 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
4476 Remove functions.
4477 (sparc32_gdbarch_init): Set return_value, don't set
4478 extract_return_value, store_return_value, use_struct_convention
4479 and return_value_on_stack.
4480
fb316966
MK
4481 * sparc-sol2-nat.c: Add missing ')'.
4482
1af510a8
JB
44832004-01-03 J. Brobecker <brobecker@gnat.com>
4484
4485 * infrun.c (handle_step_into_function): New function.
4486 (handle_inferior_event): Extract out some code into the new
4487 function above.
4488
5cf4d23a
JB
44892004-01-03 J. Brobecker <brobecker@gnat.com>
4490
4491 * infrun.c (handle_inferior_event): Move the declaration of
4492 real_stop_pc inside the if blocks where it is used.
4493
60af1db2
MK
44942004-01-03 Mark Kettenis <kettenis@gnu.org>
4495
4496 * sparc64-tdep.c (sparc64_16_byte_align_p)
4497 (sparc64_store_floating_fields, sparc64_store_floating_fields):
4498 Use check_typedef to get subtypes of structures and unions.
4499 (sparc64_store_return_value): Fix calculation of the appropriate
4500 offset into VALBUF when storing a structure or union.
4501 (sparc64_return_value): New function.
4502 (sparc64_use_struct_convention): Remove function.
4503 (sparc64_init_abi): Set return_value, don't set
4504 extract_return_value, store_return_value and
4505 use_struct_convention.
4506
1a901d3f
EZ
45072004-01-03 Eli Zaretskii <eliz@elta.co.il>
4508
4509 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
4510 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
4511 gdb/config/alpha/xm-alphaosf.h,
4512 gdb/config/powerpc/tm-ppcle-eabi.h,
4513 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
4514 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
4515 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
4516 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
4517 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
4518 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
4519 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
4520 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
4521 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
4522 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
4523 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
4524 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
4525 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
4526 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
4527 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
4528 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
4529 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
4530 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
4531 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
4532 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
4533 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
4534 Remove lines for .cvsignore files.
4535
ef52e463
JB
45362004-01-03 J. Brobecker <brobecker@gnat.com>
4537
4538 * infrun.c: Back out the previous change.
4539
cb1bf9dc
MK
45402004-01-03 Mark Kettenis <kettenis@gnu.org>
4541
f0424ef6
MK
4542 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
4543 sparc-*-sunos4* to the list of REMOVED configurations.
4544
cb1bf9dc
MK
4545 * configure.tgt: Add back sparc-*-vxworks*.
4546 * remote-vxsparc.c: Remove all includes except for "defs.h",
4547 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
4548 Include "sparc-tdep.h".
4549 (SPARC_R_G1): New define.
4550 (vxsparc_gregset): New variable.
4551 (ext_format_sparc): Remove extern declaration.
4552 (vx_read_register): Rewrite to use sparc32_supply_gregset and
4553 sparc32_supply_fpregset.
4554 (vx_write_register): Rewrite to use sparc32_collect_gregset,
4555 sparc_collect_rwindow and sparc32_collect_fpregset.
4556 * config/sparc/tm-vxworks.h: New file, based on recently removed
4557 tm-vxsparc.h.
4558 * config/sparc/vxworks.mt: New file, based on recently removed
4559 vxworks.mt.
fe61caab 4560
5e938f9f
JB
45612004-01-03 J. Brobecker <brobecker@gnat.com>
4562
4563 * infrun.c (handle_step_into_function): New function.
4564 (handle_inferior_event): Extract out some code into the new
4565 function above.
4566
386c036b
MK
45672004-01-02 Mark Kettenis <kettenis@gnu.org>
4568
4569 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
4570 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
4571 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
4572 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
4573 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
4574 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
4575 (sparc_nat_h): New variable.
4576 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
4577 (tm-sun4os4.h): Remove dependency.
4578 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
4579 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
4580 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
4581 sparc-tdep.o): Update dependencies.
4582 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
4583 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
4584 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
4585 dependencies.
4586 * configure.host: Remove existing sparc-*-lynxos*,
4587 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
4588 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
4589 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
4590 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
4591 triplets.
4592 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
4593 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
4594 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
4595 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
4596 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
4597 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
4598 sparc64-*-solaris2* and sparc64-*-* triplets.
4599 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
4600 "symtab.h" and "objfiles.h".
4601 (BIAS): Remove define.
4602 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
4603 (X_DISP19): Remove macros.
4604 (sparc_fetch_instruction): Remove function.
4605 (struct gdbarch_tdep): Remove definition.
4606 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
4607 (sparc_breakpoint_from_pc): Remove function.
4608 (struct sparc64_frame_cache): Remove definition.
4609 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
4610 sparc64_unwind_pc): Remove functions.
4611 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
4612 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
4613 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
4614 (sparc64_frame_cache): Change return type to `struct
4615 sparc_frame_cache *'. Simply call sparc_frame_cache.
4616 (sparc64_frame_this_id, sparc64_frame_prev_register,
4617 sparc64_frame_base_address): Use `struct sparc_frame_cache'
4618 instead of `struct sparc64_frame_cache.
4619 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
4620 sparc_analyze_control_transfer, sparc_software_single_step,
4621 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
4622 _initialize_sparc64_tdep): Remove functions.
4623 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
4624 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
4625 macros.
4626 (sparc64_supply_gregset, sparc64_collect_gregset,
4627 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
4628 (sparc64_init_abi): New function.
4629 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
4630 inclusion guard. Include "sparc-tdep.h".
4631 (BIAS): Define.
4632 (r_tstate_offset, r_fprs_offset): New defines.
4633 (enum sparc_regnum): Remove defenition.
4634 (enum sparc64_regnum): Reformat.
4635 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
4636 (sparc64_init_abi, sparc64_supply_gregset,
4637 sparc64_collect_gregset, sparc64_supply_fpregset,
4638 sparc64_collect_fpregset): New prototypes.
4639 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
4640 Add extern declarations.
4641 (sparc64_sol2_init_abi): New prototype.
4642 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
4643 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
4644 prototypes.
4645 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
4646 "sparnbsd-nat.h".
4647 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
4648 functions.
4649 (_initialize_sparc64fbsd_nat): Remove initialization of
4650 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
4651 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 4652 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
4653 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
4654 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
4655 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
4656 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
4657 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
4658 (sparc64fbsd_r_y_offset): Remove variables.
4659 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
4660 Make static and const.
4661 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
4662 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
4663 functions.
4664 (sparc64fbsd_gregset): New variable.
4665 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
4666 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
4667 and sparc64_supply_fpregset.
4668 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
4669 (sparc64fbsd_sigtramp_frame_this_id)
4670 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
4671 (sparc64fbsd_sigtramp_frame_unwind): New variable.
4672 (sparc64fbsd_sigtramp_frame_sniffer): New function.
4673 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
4674 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
4675 * sparcnbsd-tdep.c: Update copyright year. Include
4676 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
4677 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
4678 "value.h" and "sparcnbsd-tdep.h".
4679 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
4680 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
4681 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
4682 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
4683 defines.
4684 (sparcnbsd_gregset): New variable.
4685 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
4686 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
4687 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
4688 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
4689 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
4690 variables.
4691 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
4692 (sparc32nbsd_sigcontext_frame_this_id)
4693 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
4694 (sparc32nbsd_sigcontext_frame_unwind): New variable.
4695 (sparc32nbsd_sigtramp_frame_sniffer): New function.
4696 (sparcnbsd_get_longjmp_target_32,
4697 sparcnbsd_get_longjmp_target_64): Remove functions.
4698 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
4699 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
4700 sparcnbsd_init_elf): Remove.
4701 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
4702 (sparcnbsd_elf_init_abi): New functions.
4703 (_initialize_sparcnbsd_tdep): New prototype.
4704 (_initialize_sparnbsd_tdep): Update.
4705 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
4706 corelow.o. Add sparc64-nat.o and sparc-nat.o.
4707 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
4708 * config/sparc/linux.mh: Update comment.
4709 (XM_FILE, HOST_IPC): Remove variables.
4710 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
4711 sparc-linux-nat.o.
4712 * config/sparc/linux.mt: Update comment.
4713 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
4714 * config/sparc/nbsd.mt: Reformat.
4715 * config/sparc/nbsd64.mh: Update comment.
4716 (NATDEPFILES): Add sparc-nat.o.
4717 * config/sparc/nbsd64.mt: Update comment.
4718 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
4719 (TM_FILE): Set to tm-nbsd.h.
4720 * config/sparc/nbsdelf.mh: Update comment.
4721 (NATDEPFILES): Add sparc-nat.o.
4722 (XM_FILE): Delete.
4723 * config/sparc/nbsdaout.mh: Update comment.
4724 (NATDEPFILES): Add sparc-nat.o
4725 (XM_FILE): Delete.
4726 * config/sparc/nm-linux.h: Update copyright year. Don't include
4727 "config/nm-svr4.h" and "solib.h". Add protection against multiple
4728 inclusion.
4729 (KERNEL_U_SIZE): Remove define.
4730 (kernel_u_size): Remove prototype.
4731 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
4732 * config/sparc/nm-nbsd.h: Update copyright. Don't include
4733 "regcache.h".
4734 (CHILD_PREPARE_TO_STORE): Remove define.
4735 * config/sparc/nm-nbsdaout.h: Tweak some comments.
4736 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
4737 sparcnbsd-nat.c: Rewrite files.
4738 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
4739 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
4740 sparcnbsd-tdep.h: Remove files.
4741 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
4742 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
4743 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
4744 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
4745 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
4746 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
4747 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
4748 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
4749 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
4750 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
4751 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
4752 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
4753 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
4754 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
4755 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
4756 * config/sparc/linux64.mh, config/sparc/linux64.mt,
4757 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
4758 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
4759 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
4760
ee84457a
AC
47612004-01-02 Andrew Cagney <cagney@redhat.com>
4762
4763 From 2003-12-18 Kazuhiro Inaoka:
4764 * configure.host: Add m32r-linux target.
4765
0bc2134e
MC
47662004-01-02 Michael Chastain <mec.gnu@mindspring.com>
4767
4768 * top.c (print_gdb_version): Update year to 2004.
4769
89a72f9c
MM
47702004-01-02 Mark Mitchell <mark@codesourcery.com>
4771
4772 * MAINTAINERS: Add myself to the write-after-approval category.
4773
86b013ed
DJ
47742004-01-02 Daniel Jacobowitz <drow@mvista.com>
4775
4776 From Bernardo Innocenti <bernie@develer.com>:
4777 * configure.tgt: Add uClinux target.
4778
e42c9534
AC
47792004-01-02 Andrew Cagney <cagney@redhat.com>
4780
4781 * utils.c (do_my_cleanups): Make static, add forward declaration.
4782 * defs.h (do_my_cleanups): Delete declaration.
4783
162467d3
EZ
47842004-01-02 Eli Zaretskii <eliz@elta.co.il>
4785
4786 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
4787 bfd/ChangeLog-0203.
4788
78434e59
MK
47892004-01-02 Mark Kettenis <kettenis@gnu.org>
4790
4791 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
4792 in <machine/reg.h>.
4793 * configure, config.in: Regenerate.
4794
48efe704
AC
4795For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
4796tui/ChangeLog-1998-2003.
c906108c
SS
4797\f
4798Local Variables:
4799mode: change-log
4800left-margin: 8
4801fill-column: 74
4802version-control: never
4803End:
This page took 0.775148 seconds and 4 git commands to generate.