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