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