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