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