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