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