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