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