2004-07-28 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b3f42336
AC
12004-07-28 Andrew Cagney <cagney@gnu.org>
2
3 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4 (add_setshow_cmd_full): Make static.
5 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
6 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
7 * cli/cli-decode.c (add_setshow_filename_cmd)
8 (add_setshow_string_cmd): New functions.
9 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
10 * mips-tdep.c (_initialize_mips_tdep): Update.
11 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
12 * cli/cli-logging.c (_initialize_cli_logging): Update.
13 * complaints.c (_initialize_complaints): Update.
14 * remote.c (_initialize_remote): Update.
15
3b64bf98
AC
162004-07-28 Andrew Cagney <cagney@gnu.org>
17
18 * cli/cli-decode.c (add_setshow_zinteger_cmd)
19 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
20 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
21 print parameters. Make string parameters constant.
22 * command.h: Update. Update copyright.
23 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
24 * observer.c (_initialize_observer): Ditto.
25 * frame.c (_initialize_frame): Ditto.
26 * complaints.c (_initialize_complaints): Ditto.
27 * maint.c (_initialize_maint_cmds): Ditto.
28 * target.c (initialize_targets): Ditto.
29 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
30 * infcall.c (_initialize_infcall): Ditto.
31 * arm-tdep.c (_initialize_arm_tdep): Ditto.
32 * m32r-rom.c (_initialize_m32r_rom): Ditto.
33 * remote-rdi.c (_initialize_remote_rdi): Ditto.
34 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
35 * mips-tdep.c (_initialize_mips_tdep): Ditto.
36
e9667a65
AC
372004-07-28 Andrew Cagney <cagney@gnu.org>
38
54a5b07d
AC
39 * gdbtypes.c (lookup_primitive_typename): Delete function.
40 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
41 * ada-lex.l: Use language_lookup_primitive_type_by_name.
42 * gdbtypes.c (lookup_typename): Ditto.
43 * f-exp.y (yylex): Ditto.
44 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
45
e9667a65
AC
46 * scm-lang.c (c_builtin_types): Delete extern declaration.
47 (scm_language_defn): Replace
48 string_char_type and primitive_type_vector with
49 la_language_arch_info.
50 * jv-lang.c (java_language_defn): Replace
51 string_char_type and primitive_type_vector with
52 la_language_arch_info.
53 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
54 c_builtin_types in comment.
55 * c-lang.h (struct language_arch_info): Declare opaque.
56 (c_language_arch_info): Declare.
57 (c_builtin_types): Delete declaration.
58 * c-lang.c (c_language_arch_info): Set string_char_type to
59 builtin_char, not builtin_true_char. Make global.
60 (c_builtin_types): Delete array.
61 (asm_language_defn, minimal_language_defn): Replace
62 string_char_type and primitive_type_vector with
63 la_language_arch_info.
64
685419e2
AC
652004-07-28 Andrew Cagney <cagney@gnu.org>
66
67 * gdbtypes.h (struct builtin_type): Rename true_char to
68 builtin_true_char.
69 * gdbtypes.c (gdbtypes_post_init): Update.
70 * c-lang.c (arch_info): New function.
71 (enum c_primitive_types): New enum.
72 (c_language_defn): Instead of string_char_type and
73 primitive_type_vector set la_language_arch_info.
74
5a44ea29
AC
752004-07-28 Andrew Cagney <cagney@gnu.org>
76
77 * language.h (struct language_arch_info): Fix typo
78 s/primative/primitive/.
79 * gdbtypes.c (lookup_primitive_typename): Ditto.
80 * language.c (language_lookup_primitive_type_by_name)
81 (unknown_language_arch_info): Ditto.
82
f290d38e
AC
832004-07-27 Andrew Cagney <cagney@gnu.org>
84
85 * defs.h (enum language): Add nr_languages.
86 * language.h (struct language_arch_info): Define.
87 (struct language_defn): Add la_language_arch_info.
88 (language_lookup_primative_type_by_name): Declare.
89 (language_string_char_type): Declare.
90 * language.c (_initialize_language, language_gdbarch_post_init)
91 (struct language_gdbarch, language_gdbarch_data): Implement
92 per-architecture language information.
93 (unknown_language_arch_info, language_string_char_type)
94 (language_lookup_primative_type_by_name): New functions.
95 (unknown_language_defn, auto_language_defn)
96 (local_language_defn): Set la_language_arch_info to
97 unknown_language_arch_info.
98 (unknown_builtin_types): Delete.
99 * gdbtypes.c (lookup_primitive_typename): Use
100 language_lookup_primative_type_by_name.
101 (create_string_type): Use language_string_char_type.
102 * values.c (value_from_string): Use language_string_char_type.
103 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
104 * p-lang.c (pascal_language_defn): Ditto.
105 * m2-lang.c (m2_language_defn): Ditto.
106 * jv-lang.c (java_language_defn): Ditto.
107 * objc-lang.c (objc_language_defn): Ditto.
108 * f-lang.c (f_language_defn): Ditto.
109 * c-lang.c (c_language_defn, cplus_language_defn)
110 (asm_language_defn, minimal_language_defn): Ditto.
111
000177f0
AC
1122004-07-27 Andrew Cagney <cagney@gnu.org>
113
114 * gdbtypes.h (struct builtin_type): Declare.
115 (builtin_type): Declare.
116 * d10v-tdep.c (d10v_register_type): Use builtin_type.
117 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
118 (gdbtypes_post_init): New function.
119 (builtin_type): New function.
120
e22f895c
KI
1212004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
122
123 * remote-m32r-sdi.c: Fix breakpoint bug.
124 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
125 recv_char_data, recv_long_data): New functions to replace communication
126 sequences.
127
536517dd
MC
1282004-07-26 Michael Chastain <mec.gnu@mindspring.com>
129
130 Document PR threads/1650.
131 * PROBLEMS (Threads): Document problem with many threads
132
a0a44d18
AC
1332004-07-26 Andrew Cagney <cagney@gnu.org>
134
135 * gdb-mi.el: Move from here ...
136 * mi/gdb-mi.el: ... to here.
137
7ac4ac06
AC
1382004-07-26 Andrew Cagney <cagney@gnu.org>
139
140 Problem reported by Ashley Pittman <ashley@quadrics.com>.
141 * main.c (captured_main): When in batch mode always detach.
142
a1b461bf
AC
1432004-07-26 Andrew Cagney <cagney@gnu.org>
144
145 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
146 and h8300 as broken.
147 * NEWS: END-OF-LIFE frame compatibility module.
148 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
149 specific comments.
150
cb1a6d5f
AC
1512004-07-26 Andrew Cagney <cagney@gnu.org>
152
153 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
154 * xcoffsolib.c (_initialize_xcoffsolib): Update.
155 * wince.c (_initialize_wince): Update.
156 * win32-nat.c (_initialize_win32_nat): Update.
157 * varobj.c (_initialize_varobj): Update.
158 * valops.c (_initialize_valops): Update.
159 * utils.c (initialize_utils, initialize_utils): Update.
160 * tui/tui-win.c (_initialize_tui_win): Update.
161 * top.c (init_main): Update.
162 * symfile.c (_initialize_symfile): Update.
163 * source.c (_initialize_source): Update.
164 * somsolib.c (_initialize_som_solib): Update.
165 * solib.c (_initialize_solib): Update.
166 * solib-frv.c (_initialize_frv_solib): Update.
167 * serial.c (_initialize_serial): Update.
168 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
169 * remote.c (_initialize_remote, _initialize_remote): Update.
170 * remote-vx.c (_initialize_vx): Update.
171 * remote-utils.c (_initialize_sr_support): Update.
172 * remote-sds.c (_initialize_remote_sds): Update.
173 * remote-mips.c (_initialize_remote_mips): Update.
174 * remote-e7000.c (_initialize_remote_e7000): Update.
175 * proc-api.c (_initialize_proc_api): Update.
176 * printcmd.c: Update.
177 * parse.c (_initialize_parse): Update.
178 * pa64solib.c (_initialize_pa64_solib): Update.
179 * p-valprint.c (_initialize_pascal_valprint): Update.
180 * monitor.c (_initialize_remote_monitors): Update.
181 * mips-tdep.c (_initialize_mips_tdep): Update.
182 * mcore-tdep.c (_initialize_mcore_tdep): Update.
183 * maint.c (_initialize_maint_cmds): Update.
184 * lin-lwp.c (_initialize_lin_lwp): Update.
185 * language.c (_initialize_language): Update.
186 * kod.c (_initialize_kod): Update.
187 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
188 * i386-tdep.c (_initialize_i386_tdep): Update.
189 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
190 * gdbarch.sh: Update.
191 * gdbarch.c: Re-generate.
192 * gdb-events.sh: Update.
193 * gdb-events.c: Re-generate.
194 * frame.c (_initialize_frame): Update.
195 * exec.c: Update.
196 * demangle.c (_initialize_demangler): Update.
197 * dcache.c (_initialize_dcache): Update.
198 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
199 * cp-valprint.c (_initialize_cp_valprint): Update.
200 * corefile.c (_initialize_core): Update.
201 * command.h: Update.
202 * cli/cli-decode.h: Update.
203 * cli/cli-cmds.c (init_cli_cmds): Update.
204 * charset.c (_initialize_charset): Update.
205 * breakpoint.c (_initialize_breakpoint): Update.
206 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
207 * alpha-tdep.c (_initialize_alpha_tdep): Update.
208 * aix-thread.c (_initialize_aix_thread): Update.
209
b4632131
MK
2102004-07-24 Mark Kettenis <kettenis@gnu.org>
211
212 Partial fix for PR backtrace/1718.
213 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
214 that GCC migrates into the prolugue. Don't handle any
215 instructions that clobber %ebx.
216
822c9732
AC
2172004-07-23 Andrew Cagney <cagney@gnu.org>
218
219 Use regcache_raw_collect instead of regcache_collect.
220 * regcache.h (regcache_collect): Delete declaration.
221 * regcache.c (regcache_colect): Delete function.
222 * win32-nat.c (do_child_store_inferior_registers): Update.
223 * sol-thread.c (sol_thread_store_registers): Update.
224 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
225 * rs6000-nat.c (store_register): Update.
226 * remote.c (store_register_using_P, remote_store_registers): Update.
227 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
228 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
229 (fill_vrregset, store_spe_registers, fill_gregset)
230 (fill_gregset): Update.
231 * nto-procfs.c (procfs_store_registers): Update.
232 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
233 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
234 * m68klinux-nat.c (store_register, fill_gregset): Update.
235 * m68k-tdep.c (fill_gregset): Update.
236 * infptrace.c (store_register): Update.
237 * i386-nto-tdep.c (i386nto_regset_fill): Update.
238 * i386-linux-nat.c (store_register, fill_gregset): Update.
239 * hppa-linux-nat.c (fill_gregset): Update.
240 * go32-nat.c (store_register): Update.
241 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
242 (store_fp_regs): Update.
243 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
244 (store_nwfpe_extended, store_fpregister, store_fpregs)
245 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
246 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
247 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
248 (store_regs_user_thread, store_regs_kernel_thread): Update.
249
32b05c07
MK
2502004-07-24 Mark Kettenis <kettenis@gnu.org>
251
252 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
253 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
254 encoding.
255 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
256 member of `struct comp_unit'.
257
8567c30f
AC
2582004-07-23 Andrew Cagney <cagney@gnu.org>
259
260 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
261 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
262
f6da8dd8
MH
2632004-07-23 Martin Hunt <hunt@redhat.com>
264 Kevin Buettner <kevinb@redhat.com>
265
266 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
267 alignment was being added to the offset instead of multiplied.
268
bd921882
MK
2692004-07-23 Mark Kettenis <kettenis@gnu.org>
270
24f033e8
MK
271 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
272 changed signal trampoline in OpenBSD 3.5-current.
273
90f3cecd
MK
274 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
275 <machine/pcb.h> and "bsd-kvm.h".
276 (sparc64nbsd_supply_pcb): New function.
277 (_initialize_sparc64nbsd_nat): Renamed from
278 _initialize_sparcnbsd_nat. Enable libkvm interface.
279 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
280 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
281 (LOADLIBES): New variable.
282
a4954a62
MK
283 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
284
bd921882
MK
285 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
286
23a6d369
AC
2872004-07-21 Andrew Cagney <cagney@gnu.org>
288
289 Use regcache_raw_supply instead of supply_register.
290 * regcache.h (supply_register): Delete declaration.
291 * regcache.c (supply_register): Delete function.
292 * wince.c (do_child_fetch_inferior_registers): Update.
293 * win32-nat.c (do_child_fetch_inferior_registers)
294 (fetch_elf_core_registers): Update.
295 * v850ice.c (v850ice_fetch_registers): Update.
296 * thread-db.c (thread_db_store_registers): Update.
297 * sol-thread.c (sol_thread_store_registers): Update.
298 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
299 * rs6000-nat.c (fetch_register): Update.
300 * rom68k-rom.c (rom68k_supply_one_register): Update.
301 * remote.c (remote_wait, remote_async_wait): Update.
302 * remote-st.c (get_hex_regs): Update.
303 * remote-sim.c (gdbsim_fetch_register): Update.
304 * remote-sds.c (sds_fetch_registers): Update.
305 * remote-rdp.c (remote_rdp_fetch_register): Update.
306 * remote-rdi.c (arm_rdi_fetch_registers): Update.
307 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
308 * remote-m32r-sdi.c (m32r_fetch_register): Update.
309 * remote-hms.c (init_hms_cmds): Update.
310 * remote-est.c (init_est_cmds): Update.
311 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
312 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
313 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
314 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
315 (fetch_register, supply_vrregset, supply_vrregset)
316 (fetch_spe_registers): Update.
317 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
318 * monitor.c (monitor_supply_register): Update.
319 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
320 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
321 (mipsnbsd_supply_fpreg): Update.
322 * mips-nat.c (fetch_inferior_registers)
323 (fetch_core_registers): Update.
324 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
325 (supply_fpregset, mips64_supply_gregset)
326 (mips64_supply_fpregset): Update.
327 * m68klinux-nat.c (fetch_register, supply_gregset)
328 (supply_fpregset): Update.
329 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
330 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
331 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
332 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
333 * infptrace.c (fetch_register): Update.
334 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
335 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
336 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
337 (gnu_fetch_registers, gnu_store_registers): Update.
338 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
339 * i386-linux-nat.c (fetch_register, supply_gregset)
340 (dummy_sse_values): Update.
341 * hpux-thread.c (hpux_thread_fetch_registers): Update.
342 * hppah-nat.c (fetch_register): Update.
343 * hppa-linux-nat.c (fetch_register, supply_gregset)
344 (supply_fpregset): Update.
345 * go32-nat.c (fetch_register): Update.
346 * dve3900-rom.c (fetch_bitmapped_register)
347 (_initialize_r3900_rom): Update.
348 * cris-tdep.c (supply_gregset): Update.
349 * abug-rom.c (init_abug_cmds): Update.
350 * core-aout.c (fetch_core_registers): Update.
351 * armnbsd-nat.c (supply_gregset, supply_fparegset)
352 (fetch_register, fetch_fp_register): Update.
353 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
354 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
355 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
356 * alphanbsd-tdep.c (fetch_core_registers): Update.
357 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
358 * alpha-nat.c (fetch_osf_core_registers)
359 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
360 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
361 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
362
73cc75f3
AC
3632004-07-21 Andrew Cagney <cagney@gnu.org>
364
365 * PROBLEMS: Mention breakpoints/1702.
366 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
367 that is known to work.
368
a53c66de
AC
3692004-07-21 Andrew Cagney <cagney@gnu.org>
370
371 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
372 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
373 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
374 (handle_inferior_event): Wrap call to deprecated
375 IGNORE_HELPER_CALL in #ifdef.
376 * config/mips/tm-nbsd.h: Update.
377
708ff411
JB
3782004-07-20 Jim Blandy <jimb@redhat.com>
379
412b3060
JB
380 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
381 bfd_mach_ppc has no segment registers.
382
13ac140c
JB
383 Include PowerPC SPR numbers for special-purpose registers.
384 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
385 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
386 new member in initializer.
387 (S, S4, SN4, S64): New macros for defining special-purpose
388 registers.
389 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
390 registers_403, registers_403GC, registers_505, registers_860,
391 registers_601, registers_602, registers_603, registers_604,
392 registers_750, registers_e500): Use them.
393
708ff411
JB
394 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
395 replace references with expression used to initialize variable.
396
1f602b35
AC
3972004-07-20 Andrew Cagney <cagney@gnu.org>
398
399 * breakpoint.c (deprecated_read_memory_nobpt): Rename
400 read_memory_nobpt.
401 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
402 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
403 (s390_sigtramp_frame_sniffer): Update.
404 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
405 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
406 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
407 (mips32_fetch_instruction): Update.
408 * mcore-tdep.c (get_insn): Update.
409 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
410 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
411 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
412 * i386-linux-tdep.c (i386_linux_sigtramp_start)
413 (i386_linux_rt_sigtramp_start): Update.
414 * i386-linux-nat.c (child_resume): Update.
415 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
416 * hppa-linux-tdep.c (insns_match_pattern): Update.
417 * gdbcore.h: Update.
418 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
419 * frame.c (safe_frame_unwind_memory): Update.
420 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
421 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
422 * alpha-tdep.c (alpha_read_insn): Update.
423
2cd8546d
AC
4242004-07-20 Andrew Cagney <cagney@gnu.org>
425
426 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
427 containing both bytes and mask. Add "frame_type".
428 * tramp-frame.c (tramp_frame_start): Update.
429 (tramp_frame_prepend_unwinder): Update.
430 * mips-linux-tdep.c (mips_linux_o32_sigframe)
431 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
432 (mips_linux_n64_rt_sigframe): Update. Make "static const".
433 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
434
f928dd62
EZ
4352004-07-19 Eli Zaretskii <eliz@gnu.org>
436
437 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
438 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
439 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
440 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
441
d5c560f7
AC
4422004-07-17 Andrew Cagney <cagney@gnu.org>
443
860660cb
AC
444 * NEWS, PROBLEMS: Update for 6.2.
445
8c266f54
AC
446 * README: Update to 6.2.
447
a552edd9
AC
448 * utils.c (xvasprintf): Call xstrvprintf.
449
c4a172b5
AC
450 * parse.c: Update copyright.
451 (null_post_parser): Eliminate ARGSUSED.
452
da745b36
AC
453 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
454 * tui/tui-win.c (tui_get_cmd_list): Ditto.
455 * symfile-mem.c (_initialize_symfile_mem): Ditto.
456
9cbc6ef0
AC
457 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
458 * ppc-linux-nat.c: Use "Linux kernel".
459 * hppa-linux-tdep.c: Use GNU/Linux.
460 * hppa-linux-nat.c: Use GNU/Linux.
461 * dwarfread.c: Add [sic] to use of Linux.
462
1b89295f
AC
463 * hppa-linux-nat.c: Do not include <string.h>.
464 (supply_fpregset): Remove "register" attribute.
465
d5c560f7
AC
466 * solib-frv.c (fetch_loadmap): Use xfree, not free.
467
7ddd7709
MK
4682004-07-17 Mark Kettenis <kettenis@gnu.org>
469
b1d19a62
MK
470 * configure.in: Define _MSE_INT_H on Solaris 9 too.
471 * configure, config.in: Regenerated.
472
7ddd7709
MK
473 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
474 "bsd-kvm.h".
475 (vaxbsd_supply_pcb): New function.
476 (_initialize_vaxbsd_nat): New prototype and function.
477 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
478 solib-sunos.o.
479 (LOADLIBES): New variable.
480 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
481 (LOADLIBES): New variable.
482 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
483 (LOADLIBES): New variable.
484 * Makefile.in (vaxbsd-nat.o): Update dependencies.
485
2c07db7a
AC
4862004-07-16 Andrew Cagney <cagney@gnu.org>
487
488 * defs.h (event_loop_p): Replace variable declaration with macro,
489 always 1.
490 * main.c (captured_main): Delete options "-async" and "-noasync".
491 (event_loop_p): Delete variable.
492 * NEWS: Mention that "-async" and "-noasync" were removed.
493
717eb1cf
AC
4942004-07-16 Andrew Cagney <cagney@gnu.org>
495
496 * remote-m32r-sdi.c: Re-indent.
497
c101bc14
JB
4982004-07-16 Jim Blandy <jimb@redhat.com>
499
5109a438
JB
500 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
501 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
502 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
503 missing MPC823 SPRs.
504 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
505 incorrect. (This was corrected in GDB's register name tables on
506 2004-07-14.)
507
c101bc14
JB
508 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
509 should be "esasrr" ("ESA Save and Restore Register").
510
7ce450bd
AC
5112004-07-16 Andrew Cagney <cagney@gnu.org>
512
513 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
514 calls, no longer applicable. Update comments and rename parameter
515 "step_frame" to "return_frame".
516
ca73dd9d
AC
5172004-07-16 Andrew Cagney <cagney@gnu.org>
518
519 * frame.c (fprint_field): New function.
520 (fprint_frame_id): Use fprint_field.
521
31941f6d
JB
5222004-07-15 Joel Brobecker <brobecker@gnat.com>
523
524 * ada-lang.c (ada_language_defn): Remove commented out code.
525
f86a7158
JB
5262004-07-15 Jim Blandy <jimb@redhat.com>
527
528 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
529 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
530
c24791ec
JB
5312004-07-14 Jim Blandy <jimb@redhat.com>
532
29bb1356
JB
533 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
534
cc98b5cc
JB
535 * ppc-tdep.h (ppc_num_vrs): New enum constant.
536
8f088af7
JB
537 * ppc-tdep.h (ppc_num_srs): New enum constant.
538
0ea0ec5f
JB
539 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
540 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
541 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
542 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
543 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
544 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
545 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
546 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
547 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
548 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
549 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
550 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
551 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
552 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
553 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
554 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
555 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
556 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
557 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
558 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
559 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
560 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
561 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
562 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
563 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
564 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
565 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
566 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
567 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
568 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
569 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
570 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
571 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
572 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
573 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
574 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
575 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
576 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
577 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
578 special-purpose register numbers.
579
c24791ec
JB
580 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
581 manual mentions 'md_twb', but many mention 'm_twb', and at that
582 point in the register list.)
583
d833db3b
AC
5842004-07-14 Andrew Cagney <cagney@gnu.org>
585
586 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
587 instead of "internal-error".
588
080228b2
JB
5892004-07-10 Joel Brobecker <brobecker@gnat.com>
590
591 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
592 that was inserted inside a comment.
593
c268433a
RC
5942004-07-10 Randolph Chung <tausq@debian.org>
595
596 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
597 function.
598 (hppa_hpux_push_dummy_code): New function.
599 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
600 Set find_global_pointer method.
601
71009278
MK
6022004-07-10 Mark Kettenis <kettenis@gnu.org>
603
604 * NEWS: Mention BSD libkvm interface.
605
b2fa5097
MS
6062004-07-10 Michael Snyder <msnyder@redhat.com>
607
608 * symfile.c (generic_load): Comment typo.
609 * stack.c (get_selected_block): Ditto.
610 * regcache.c (regcache_cooked_read): Ditto.
611 * monitor.c (monitor_debug): Ditto.
612 * mips-tdep.c (mips_read_pc): Ditto.
613 * i386-linux-nat.c (ps_get_thread_area): Ditto.
614 * gdb_mbuild.sh: Ditto.
615 * gdbarch.sh: Ditto.
616 * gdbarch.h: Ditto.
617
c3e5cd34
PH
6182004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
619
8a2225b2
PH
620 * ada-tasks.c: Remove file.
621
c3e5cd34
PH
622 Remove ARI problems:
623
624 * ada-exp.y (write_var_from_sym): Reformat to put operator at
625 beginning of line.
626
627 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
628 Add comment.
629 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
630 (MIN_OF_SIZE): Rename min_of_size. Add comment.
631 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
632 (UMIN_OF_SIZE): Remove.
633 (max_of_type): New function to replace orphan macro in gdbtypes.h
634 (min_of_type): Ditto.
635 (discrete_type_high_bound): Use max_of_type.
636 (discrete_type_low_bound): Use min_of_type.
637 (possible_user_operator_p): Move operator to beginning of line.
638 (ada_is_variant_part): Ditto.
639 (ensure_lval): Rewrite to avoid deprecated operations.
640 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
641 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
642 (ada_enum_name): Remove assignments in 'if' statements.
643 (build_ada_types): Add gdbarch parameter.
644 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
645 with gdbarch_data_register_post_init.
646 Use add_setshow_uinteger_cmd rather than add_set_cmd and
647 add_show_from_set.
648
649 * ada-valprint.c (inspect_it): Remove declaration.
650 (repeat_count_threshold): Remove declaration.
651 (ada_print_floating): Remove assignments in 'if' statements.
652 (print_str): Move operator to beginning of line.
653
61ce229a
JB
6542004-07-08 Jim Blandy <jimb@redhat.com>
655
656 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
657
09bcec80
BR
6582004-07-08 Bob Rossi <bob@brasko.net>
659
660 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
661
31c27f77
JJ
6622004-07-06 Jeff Johnston <jjohnstn@redhat.com>
663
664 * language.h (struct_language_defn): Add new function pointer:
665 la_class_name_from_physname. Also add new prototype for
666 language_class_name_from_physname.
667 * language.c (language_class_name_from_physname): New function.
668 (unk_lang_class_name): Ditto.
669 (unknown_language_defn, auto_language_defn): Change
670 to add unk_lang_class_name function pointer for
671 la_class_name_from_physname.
672 (local_language_defn): Ditto.
673 * dwarf2read.c (guess_structure_name): Change to call
674 language_class_name_from_physname.
675 (determine_class_name): Ditto.
676 * cp-support.c (class_name_from_physname): Renamed.
677 (cp_class_name_from_physname): New name of function.
678 * cp-support.h: Ditto.
679 * c-lang.c (c_language_defn): Change to add NULL
680 for class_name_from_physname function pointer.
681 (cplus_language_defn): Change to add cp_class_name_from_physname.
682 * jv-lang.c (java_class_name_physname): New function.
683 (java_find_last_component): New static routine.
684 (java_language_defn): Add java_class_name_from_physname pointer.
685 * ada-lang.c (ada_language_defn): Change to add NULL
686 for class_name_from_physname function pointer.
687 * f-lang.c (f_language_defn): Ditto.
688 * m2-lang.c (m2_language_defn): Ditto.
689 * objc-lang.c (objc_language_defn): Ditto.
690 * p-lang.c (pascal_language_defn): Ditto.
691 * scm-lang.c (scm_language_defn): Ditto.
692
ee28ca0f
AC
6932004-07-06 Andrew Cagney <cagney@gnu.org>
694
695 Patch from Bart Robinson.
696 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
697 (O_LARGEFILE): Define to 0, if not defined.
698
fdb1bf9d
MK
6992004-07-03 Mark Kettenis <kettenis@gnu.org>
700
cb162ff6
MK
701 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
702 <machine/pcb.h> and "bsd-kvm.h".
703 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
704 (m68kbsd_supply_pcb): New function.
705 (_initialize_m68kbsd_nat): New prototype and function.
706 * Makefile.in (m68kbsd-nat.o): Update dependencies.
707 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
708 (LOADLIBES): New variable.
709 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
710 (LOADLIBES): New variable.
711
fdb1bf9d
MK
712 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
713
963c4174
MK
7142004-07-03 Mark Kettenis <kettenis@gnu.org>
715
716 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
717 <sys/proc.h>.
718 (bsd_kvm_cmdlist): New variable.
719 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
720 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
721 command and "kvm proc" command.
722 * Makefile.in (bsd-kvm.o): Update dependencies.
723
533f1d8f
MK
7242004-07-02 Mark Kettenis <kettenis@gnu.org>
725
726 * osabi.c: Update copyright year.
727 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
728 notes if EI_OSABI is set to ELFOSABI_HPUX.
729
6780dcde
MS
7302004-07-01 Michael Snyder <msnyder@redhat.com>
731
732 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
733 that seems to have gotten whacked out of line.
734
67bebe79
MK
7352004-07-01 Mark Kettenis <kettenis@gnu.org>
736
737 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
738 code.
739
0b5d8877
PH
7402004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
741
742 * ada-lang.c (decode_packed_array): Minor change to comment.
743 (ada_value_slice_ptr): New function.
744 (ada_value_slice): New function.
745 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
746 test. Don't know why it is there.
747 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
748 to avoid dereferencing huge arrays from which one is slicing.
749 (empty_array): Correct to return an array rather than
750 a subrange value.
751 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
752 on empty arrays (let'em use 'FIRST instead).
753
19c1ef65
PH
7542004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
755
756 Address complaints from gdb_ari.sh:
757
758 * ada-exp.y: Include gdb_string.h rather than string.h.
759 (convert_char_literal): Reformat declaration.
760 * ada-lang.h: Include opaque struct declaration for struct frame_info.
761 * ada-lex.l: Change use of free to xfree (the macro would do so
762 anyway, but this is harmless).
763 Include gdb_string.h rather than string.h.
764 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
765
766 * ada-lang.c (parse): Remove K&Rism in parameter list.
767 (is_name_suffix): Correct Linux => GNU/Linux in comment.
768
d81cbc94
MK
7692004-06-30 Mark Kettenis <kettenis@gnu.org>
770
771 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
772 dead code.
773
07681759
MK
7742004-06-30 Mark Kettenis <kettenis@gnu.org>
775
776 * alphabsd-nat.c: Update copyright year.
777 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
778
f7948b5f
JB
7792004-06-29 Joel Brobecker <brobecker@gnat.com>
780
6e0cdd28 781 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
782 (i386_cygwin_in_solib_call_trampoline): New function.
783 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
784 and skip_trampoline_code gdbarch methods.
785
8f113c9a
JB
7862004-06-29 Jim Blandy <jimb@redhat.com>
787
788 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
789 name actually used in the dependency lists.
790
97dc871c
RC
7912004-06-29 Randolph Chung <tausq@debian.org>
792
793 * NEWS (New native configurations): Mention GNU/Linux/hppa.
794
47216e51
CV
7952004-06-29 Corinna Vinschen <vinschen@redhat.com>
796
797 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 798 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
799 functionality.
800
e623b504
AC
8012004-06-28 Andrew Cagney <cagney@gnu.org>
802
803 * defs.h (xstrvprintf): Declare.
804 * utils.c (xstrvprintf): New function.
805 (internal_vproblem, xstrprintf, xasprintf)
806 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
807 * serial.c (serial_printf): Ditto.
808 * complaints.c (vcomplaint): Ditto.
809
79acc9b3
CV
8102004-06-29 Corinna Vinschen <vinschen@redhat.com>
811
812 * infcmd.c (attach_command): Move call to target_terminal_inferior
813 behind loading symbol table.
814
1daf35d9
AC
8152004-06-28 Andrew Cagney <cagney@gnu.org>
816
817 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
818 change - add back extern deprecated_ui_loop_hook declaration.
819
b435e160
AC
8202004-06-28 Andrew Cagney <cagney@gnu.org>
821
822 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
823 xstrprintf.
824 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
825 (c_value_of_variable): Ditto.
826 * utils.c (internal_vproblem): Ditto.
827 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
828 * remote.c (add_packet_config_cmd): Ditto.
829 * remote-rdp.c (rdp_set_command_line): Ditto.
830 * regcache.c (regcache_dump): Ditto.
831 * frv-tdep.c (new_variant, new_variant): Ditto.
832 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
833 (fbsd_find_memory_regions): Ditto.
834 * breakpoint.c (create_thread_event_breakpoint)
835 (create_breakpoints): Ditto.
836 * aix-thread.c (aix_thread_pid_to_str): Ditto.
837 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
838
06d5cf63
JB
8392004-06-28 Joel Brobecker <brobecker@gnat.com>
840
841 * ada-lang.c: Re-indent file, with some massaging to help indent
842 a bit when the result is otherwise really too ugly.
843
35809fad
UW
8442004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
845
846 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
847 code_addr_p and special_addr_p to 'unsigned int'.
848
40e20472
MK
8492004-06-27 Mark Kettenis <kettenis@gnu.org>
850
851 * i386v4-nat.c: Update copyright year and tweak comment.
852 (regmap): Remove trailing comma.
853 (supply_gregset): Rename local variable i to regnum. Call
854 regcache_raw_supply instead of supply_register.
855 (fill_gregset): Rename argument regno to regnum. Call
856 regcache_raw_collect instead of regcache_collect.
857
12b0b6de
UW
8582004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
859
860 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
861 and special_addr_p.
862 (frame_id_build, frame_id_build_special): Update comments.
863 (frame_id_build_wild): New prototype.
864 * frame.c (frame_id_build, frame_id_build_special): Fill in new
865 struct frame_id fields.
866 (frame_id_build_wild): New function.
867 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
868
47b42a3e
MK
8692004-06-27 Mark Kettenis <kettenis@gnu.org>
870
871 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
872 hppabsd-tdep.c.
873
1265e4aa
JB
8742004-06-27 Joel Brobecker <brobecker@gnat.com>
875
876 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
877
76a01679
JB
8782004-06-27 Joel Brobecker <brobecker@gnat.com>
879
880 * ada-lang.c: Re-indent file.
881
7aca490a
JB
8822004-06-27 Joel Brobecker <brobecker@gnat.com>
883
884 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
885 (no_symtab_msg): Likewise.
886
5e987968
AS
8872004-06-27 Andreas Schwab <schwab@suse.de>
888
889 * source.c: Fix whitespace.
890
315c4276
MK
8912004-06-27 Mark Kettenis <kettenis@gnu.org>
892
d15be926
MK
893 * configure.in: Include <sys/param.h> for td_pcb test.
894 * configure: Regenerated.
895
9062529b
MK
896 * i386nbsd-nat.c: New file.
897 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
898 i386obsd-nat.c and i386obsd-tdep.c.
899 (i386nbsd-nat.o): New dependency.
900 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
901 bsd-kvm.o.
902 (LOADLIBES): New variable.
903 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
904 bsd-kvm.o.
905 (LOADLIBES): New variable.
906
8010310e
MK
907 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
908 (LOADLIBES): New variable.
909
efe1d7b9
MK
910 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
911 fetching from BSD_KVM_PADDR. Correctly lookup address for
912 "_thread0".
913
315c4276
MK
914 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
915 "bsd-kvm.h".
916 (amd64fbsd_supply_pcb): New funcion.
917 (_initialize_amd64fbsd_nat): Enable libkvm interface.
918
399cfac6
DL
9192004-06-27 <david@streamline-computing.com>
920
921 Partial fix for PR cli/1056.
922 * valarith.c: Check for zero in division and remainder
923 evaluation.
924
6235f9c8
MK
9252004-06-27 Mark Kettenis <kettenis@gnu.org>
926
927 * i387-tdep.c: Remove excessive whitespace.
928
2726dafc
AC
9292004-06-26 Andrew Cagney <cagney@gnu.org>
930
931 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
932 * gdb-events.h, gdb-events.c: Re-generate.
933 * tui/tui-hooks.c (tui_install_hooks): Update.
934 (tui_remove_hooks): Update.
935 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
936
0e56aeaf
MK
9372004-06-26 Mark Kettenis <kettenis@gnu.org>
938
cb461069
MK
939 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
940 (gregset_t, fpregset_t): Remove typedefs.
941 (REG_OFFSET): Rename argument.
942 (amd64bsd_r_reg_offset): Rename from reg_offset.
943 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
944 Remove functions.
945 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
946 of reg_offset.
947 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
948
ecba89de
MK
949 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
950
4cd80476
MK
951 * vax-tdep.c: Tweak comment.
952
0e56aeaf
MK
953 Add OpenBSD/hppa support.
954 * NEWS (New native configurations): Mention OpenBSD/hppa.
955 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
956 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
957 files.
958 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
959 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
960 * configure.host: Add hppa*-*-openbsd*.
961 * configure.tgt: Add hppa*-*-openbsd*.
962
98bbd631
AC
9632004-06-25 Andrew Cagney <cagney@gnu.org>
964
965 * defs.h (deprecated_ui_loop_hook): Deprecated.
966 * wince.c (child_wait): Update.
967 * win32-nat.c (child_wait): Update.
968 * v850ice.c (v850ice_wait): Update.
969 * top.c (deprecated_ui_loop_hook): Update.
970 * serial.h: Update.
971 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
972 (do_unix_readchar): Update.
973 * ser-tcp.c (net_open): Update.
974 * remote-sim.c (gdb_os_poll_quit): Update.
975 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
976
769d7dc4
AC
9772004-06-24 Andrew Cagney <cagney@gnu.org>
978
979 * defs.h (deprecated_pre_add_symbol_hook)
980 (deprecated_post_add_symbol_hook): Deprecated.
981 * symfile.c (symbol_file_add_with_addrs_or_offsets)
982 (symbol_file_add_with_addrs_or_offsets): Update references.
983
11c949aa
AC
9842004-06-24 Andrew Cagney <cagney@gnu.org>
985
986 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
987 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
988 * wince.c (ui_loop_hook): Delete extern declaration.
989 * win32-nat.c (ui_loop_hook): Delete extern declaration..
990 * v850ice.c (ui_loop_hook): Delete extern declaration..
991 * ser-unix.c (ui_loop_hook): Delete extern declaration..
992 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
993 * remote-sim.c (ui_loop_hook): Delete extern declaration..
994 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
995 ui_loop_hook declaration.
996
eedc19af
AC
9972004-06-24 Andrew Cagney <cagney@gnu.org>
998
999 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
1000 entry_func_highpc fields.
1001 * objfiles.c (init_entry_point_info): Do not clear
1002 entry_func_lowpc and entry_func_highpc.
1003 (objfile_relocate): Do not relocate entry_func_lowpc and
1004 entry_func_highpc.
1005 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
1006 entry_func_highpc.
1007 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
1008 entry_func_highpc.
1009 * blockframe.c (legacy_frame_chain_valid): Replace tests against
1010 entry_func_lowpc and entry_func_highpc with call to
1011 inside_entry_func.
1012
d47079be
MK
10132004-06-24 Mark Kettenis <kettenis@gnu.org>
1014
1015 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
1016 quad-precision floating point arguments in registers.
1017
2107e348
MK
10182004-06-24 Mark Kettenis <kettenis@gnu.org>
1019
1020 From Michael Mueller <m.mueller99@kay-mueller.de>:
1021 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
1022 account.
1023
46587c42
JJ
10242004-06-22 Jeff Johnston <jjohnstn@redhat.com>
1025
1026 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
1027 to -1.
1028 * breakpoint.c (bpstat_stop_status): Move check for ignoring
1029 untriggered watchpoints to a separate if clause. Update function
1030 comment regarding STOPPED_BY_WATCHPOINT argument.
1031
226f5cf4
JB
10322004-06-22 Jim Blandy <jimb@redhat.com>
1033
1034 * gdbarch.sh: Doc fix.
1035
f10683bb
MH
10362004-06-21 Martin Hunt <hunt@redhat.com>
1037 Kevin Buettner <kevinb@redhat.com>
1038
1039 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
1040 * mips-tdep.h (MIPS_SP_REGNUM): Define.
1041 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
1042 to set_gdbarch_sp_regnum(). Use cooked register number.
1043 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
1044
412d5987
AC
10452004-06-21 Andrew Cagney <cagney@gnu.org>
1046
1047 * gdbarch.sh: When the macro field is empty, do not generate a
1048 macro definition. When the macro field is "=", generate the macro
1049 name from the upper-case function name.
1050 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
1051 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
1052 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
1053 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
1054 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
1055 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
1056 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
1057 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
1058 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
1059 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
1060 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
1061 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
1062 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
1063 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
1064 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
1065 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
1066 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
1067 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
1068 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
1069 (DEPRECATED_USE_STRUCT_CONVENTION)
1070 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1071 (DEPRECATED_FRAME_INIT_SAVED_REGS)
1072 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
1073 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
1074 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
1075 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
1076 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
1077 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
1078 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
1079 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
1080 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
1081 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
1082 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
1083 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
1084 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
1085 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
1086 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
1087 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
1088
68908a3e
AC
10892004-06-21 Andrew Cagney <cagney@gnu.org>
1090
48f7351b
AC
1091 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
1092 macro name, and the function rather than macro value. Only wrap
1093 macro print statements in #ifdef. Move format logic to where it
1094 is needed.
1095 * gdbarch.c: Re-generate.
1096
283354d8
AC
1097 * gdbarch.sh (read): Delete "print_p" and "description", add
1098 "garbage_at_eol". Check for non-empty garbage at end-of-line.
1099 Delete references to print_p.
1100 (TARGET_ARCHITECTURE): Delete print predicate.
1101 * gdbarch.c: Re-generate.
1102
68908a3e
AC
1103 * gdbarch.sh: Check that multi-arch methods do not provide a
1104 macro.
1105 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
1106 (print_registers_info, print_float_info, print_vector_info)
1107 (adjust_breakpoint_address, remote_translate_xfer_address)
1108 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
1109 (address_class_type_flags_to_name, unwind_sp): Remove the macro
1110 name from the multi-arch definition.
1111
a2428dbe
AC
11122004-06-20 Andrew Cagney <cagney@gnu.org>
1113
1114 * gdbarch.sh: Sort by the function, instead of macro name.
1115 * gdbarch.c: Re-generate.
1116
750eb019
AC
11172004-06-20 Andrew Cagney <cagney@gnu.org>
1118
66d659b1
AC
1119 * gdbarch.sh: Use the function, instead of macro name in
1120 errors and the log file.
1121 (return_value): Remove stray ":" in spec.
1122
750eb019
AC
1123 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
1124 * gdbarch.h, gdbarch.c: Re-generate.
1125 * Makefile.in (arch-utils.o): Update dependencies.
1126 * values.c (using_struct_return): Move code calling
1127 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
1128 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
1129 to legacy_return_value, simplify.
1130 * infcmd.c (print_return_value): Move code calling
1131 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
1132 to legacy_return_value, simplify.
1133 * infcall.c (call_function_by_hand): Move code calling
1134 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
1135 * arch-utils.c: Update copyright. Include "gdbcore.h".
1136 (legacy_return_value): New function.
1137 * arch-utils.h: Update copyright.
1138 (legacy_return_value): Declare.
1139
b5622e8d
AC
11402004-06-20 Andrew Cagney <cagney@gnu.org>
1141
1142 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
1143 * gdbarch.h, gdbarch.c: Re-generate.
1144 * values.c (using_struct_return): Update call.
1145 * mcore-tdep.c: Update comment.
1146 * infcall.c (call_function_by_hand): Update comment.
1147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1148 * arch-utils.h (always_use_struct_convention): Update.
1149 * v850-tdep.c (v850_gdbarch_init): Update.
1150 * sh64-tdep.c (sh64_gdbarch_init): Update.
1151 * sh-tdep.c (sh_gdbarch_init): Update.
1152 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1153 * mips-tdep.c (mips_gdbarch_init): Update.
1154 * mcore-tdep.c (mcore_gdbarch_init): Update.
1155 * m32r-tdep.c (m32r_gdbarch_init): Update.
1156 * ia64-tdep.c (ia64_gdbarch_init): Update.
1157 * h8300-tdep.c (h8300_gdbarch_init): Update.
1158 * frv-tdep.c (frv_gdbarch_init): Update.
1159 * cris-tdep.c (cris_gdbarch_init): Update.
1160 * arm-tdep.c (arm_gdbarch_init): Update.
1161 * alpha-tdep.c (alpha_gdbarch_init): Update.
1162
5191de37
MC
11632004-06-18 Michael Chastain <mec.gnu@mindspring.com>
1164
1165 * PROBLEMS: Add more specific information, and a work-around,
1166 for PR gdb/1458.
1167
782263ab
AC
11682004-06-18 Andrew Cagney <cagney@gnu.org>
1169
1170 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
1171 * gdbarch.h, gdbarch.c: Re-generate.
1172 * ada-lang.c (ada_finish_decode_line_1): Update.
1173 * infrun.c (handle_inferior_event): Update.
1174 * infcall.c (find_function_addr): Update.
1175 * linespec.c (minsym_found): Update.
1176 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
1177 Update.
1178 * blockframe.c (legacy_frameless_look_for_prologue): Update.
1179 * cli/cli-cmds.c (disassemble_command): Update.
1180 * vax-tdep.c (vax_gdbarch_init): Update.
1181
2f305df1
MK
11822004-06-18 Mark Kettenis <kettenis@gnu.org>
1183
1184 * i386-tdep.c (i386_collect_fpregset): Fix comment.
1185
e5fe55f7
AC
11862004-06-17 Andrew Cagney <cagney@gnu.org>
1187
1188 GDB 6.1.1 released from the GDB 6.1 branch.
1189 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
1190 * PROBLEMS: Ditto.
1191
473b7be6
DJ
11922004-06-16 Daniel Jacobowitz <dan@debian.org>
1193
1194 PR gdb/1658
1195 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
1196 operation as a uleb128. Found by Michael Coulter.
1197
96d887e8
PH
11982004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
1199
1200 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
1201 make it non-static.
1202 * ada-lang.h (task_control_block): declaration moved from ada-task.c
1203 to ada-lang.h; this is needed to be able to implement the kill command
1204 in multi-task mode.
1205 (task_ptid): Ditto.
1206 (task_entry): Ditto.
1207 (task_list): Ditto.
1208 (ada_build_task_list): Ditto.
1209
1210 * ada-lang.c: Conditionalize routines and data structures related
1211 to breakpoints, exceptions, completion, and symbol caching on
1212 GNAT_GDB, since these are not yet used in the submitted public sources.
1213 (ada_main_name): Editorial: Move definition out of exception-related
1214 code.
1215
31eef181
AC
12162004-06-15 Andrew Cagney <cagney@gnu.org>
1217
1218 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
1219 deprecated_pc_in_call_dummy.
1220
2c500098
AM
12212004-06-15 Alan Modra <amodra@bigpond.net.au>
1222
1223 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
1224 bfd_get_section_size_before_reloc or _raw_size.
1225 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1226 * dwarf2read.c (dwarf2_locate_sections): Likewise.
1227 (dwarf2_read_section): Likewise.
1228 * elfread.c (elf_locate_sections): Likewise.
1229 * gcore.c (derive_heap_segment): Likewise.
1230 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1231 * remote-e7000.c (e7000_load): Likewise.
1232 * remote-m32r-sdi.c (m32r_load): Likewise.
1233 * remote-mips.c (mips_load_srec): Likewise.
1234 (pmon_load_fast): Likewise.
1235 * remote.c (compare_sections_command): Likewise.
1236 * symfile.c (add_section_size_callback): Likewise.
1237 (load_section_callback): Likewise.
1238 (pc_in_unmapped_range): Likewise.
1239 (pc_in_mapped_range): Likewise.
1240 (sections_overlap): Likewise.
1241 (list_overlays_command): Likewise.
1242 (simple_overlay_update_1): Likewise.
1243 (simple_overlay_update): Likewise.
1244 * tracepoint.c (remote_set_transparent_ranges): Likewise.
1245 * win32-nat.c (core_section_load_dll_symbols): Likewise.
1246
90f943f1
RC
12472004-06-14 Randolph Chung <tausq@debian.org>
1248
1249 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
1250 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
1251 static.
1252 (hppa_hpux_inferior_created): New function.
1253 (hppa_hpux_init_abi): Register observer.
1254 * symfile.c (hp_cxx_exception_support_initialized)
1255 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
1256 (symbol_file_add_main_1, symbol_file_clear): Likewise.
1257
700c15aa
RC
12582004-06-14 Randolph Chung <tausq@debian.org>
1259
3973a7d3
AC
1260 * MAINTAINERS (Write After Approval): Alphabetize my entry
1261 correctly.
700c15aa 1262
cea4838c
AC
12632004-06-14 Andrew Cagney <cagney@gnu.org>
1264
1265 * MAINTAINERS (testsuite): List Michael Chastain as the lead
1266 testsuite maintainer.
1267
97092415
AC
12682004-06-13 Andrew Cagney <cagney@gnu.org>
1269
e8c3165b
AC
1270 * infcmd.c (print_return_value): Fix logic, allow
1271 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
1272
bceabdd8
AC
1273 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
1274 defining any macros.
1275 * gdbarch.h: Re-generate.
1276
57010b1c
AC
1277 * gdbarch.sh: Delete "level" attribute. Only check for a macro
1278 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
1279 * gdbarch.h: Re-generate.
1280
bc87dfa0
AC
1281 * values.c (generic_use_struct_convention): Don't check gcc_p.
1282
15ac804d
AC
1283 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1284 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
1285 * gdbarch.h, gdbarch.c: Regenerate.
1286 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
1287 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
1288 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1289 deprecated_max_register_raw_size and
1290 deprecated_max_register_virtual_size.
1291 * v850-tdep.c (v850_gdbarch_init): Ditto.
1292 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1293 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1294 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1295 * cris-tdep.c (cris_gdbarch_init): Ditto.
1296
97092415
AC
1297 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
1298 * gdbarch.h, gdbarch.c: Re-generate.
1299 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
1300 (m68hc11_use_struct_convention): Delete function.
1301 (m68hc11_extract_struct_value_address): Delete function.
1302 (m68hc11_return_value): New function.
1303 (m68hc11_gdbarch_init): Instead of store_return_value,
1304 extract_return_value, return_value_on_stack,
1305 deprecated_extract_struct_value_address and use_struct_convention,
1306 set return_value.
1307 * values.c (using_struct_return): Do not call
1308 RETURN_VALUE_ON_STACK.
1309 * arch-utils.h (generic_return_value_on_stack_not): Delete
1310 declaration.
1311 * arch-utils.c (generic_return_value_on_stack_not): Delete
1312 function.
1313
44e5158b
AC
13142004-06-12 Andrew Cagney <cagney@gnu.org>
1315
1316 * values.c (register_value_being_returned): Delete function.
1317 * infcmd.c (legacy_return_value): Delete function.
1318 * infcall.c (call_function_by_hand): Inline
1319 "register_value_being_returned", simplify.
1320 * values.c (using_struct_return): Update comment, refer to
1321 print_return_value instead of register_value_being_returned.
1322 * infcmd.c (print_return_value): Inline calls to
1323 register_value_being_returned and legacy_return_value. Simplify.
1324
b887c273
RC
13252004-06-11 Randolph Chung <tausq@debian.org>
1326
1327 * somread.c (som_symtab_read): Exclude gcc local symbols.
1328
1b2bfbb9
RC
13292004-06-11 Randolph Chung <tausq@debian.org>
1330
3973a7d3
AC
1331 * infrun.c (handle_inferior_event): Handle the case when a
1332 trampoline ends up in the runtime resolver, and if the trampoline
1333 has no name. Rearrange the code so that all the trampoline
1334 processing happens before other step-out-of-range handling.
1b2bfbb9 1335
a9d61c86
MH
13362004-06-11 Martin Hunt <hunt@redhat.com>
1337
1338 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
1339 has no fpu.
1340
2c87cf5a
AC
13412004-06-10 Andrew Cagney <cagney@gnu.org>
1342
1343 * blockframe.c (legacy_inside_entry_func): Delete.
1344 (legacy_frame_chain_valid): Inline call to
1345 legacy_inside_entry_func, simplify.
1346
0b67b468 13472004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
1348
1349 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
1350 * dwarf2read.c (partial_die_info): Add dirname field.
1351 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
1352 (read_partial_die): Save away DW_AT_comp_dir.
1353 * defs.h (symtab_to_filename): Removed.
1354 * source.c (find_and_open_source): Added.
57c22c6c 1355 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
1356 (symtab_to_filename): Removed.
1357 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
1358 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
1359 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
1360 symtab_to_filename.
1361 * symtab.h (partial_symtab): Add dirname field.
1362 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
1363 (mi_cmd_file_list_exec_source_file): Call new function
1364 symtab_to_fullname to find fullname.
57c22c6c 1365 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 1366 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
1367 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
1368
9a1dd1ad
AC
13692004-06-10 Andrew Cagney <cagney@gnu.org>
1370
239ae8c7
AC
1371 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
1372 to generic_use_struct_convention, the default value.
1373
fc720350
AC
1374 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
1375 of abort.
1376
9a1dd1ad
AC
1377 * ns32k-tdep.c (ns32k_push_arguments): New function.
1378 (ns32k_gdbarch_init): Set deprecated_push_arguments.
1379 * infcall.c (call_function_by_hand): Call error instead of
1380 legacy_push_arguments.
1381 * value.h (legacy_push_arguments): Delete declaration.
1382 * valops.c (legacy_push_arguments): Delete function.
1383 (value_push): Delete function.
1384
fea25152
BF
13852004-06-10 Brian Ford <ford@vss.fsi.com>
1386
1387 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
1388 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
1389 info.
1390 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
1391
30a4a8e0
AC
13922004-06-10 Andrew Cagney <cagney@gnu.org>
1393
1394 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
1395 * gdbarch.h, gdbarch.c: Re-generate.
1396 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
1397 parameters.
1398 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
1399 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
1400 deprecated_pc_in_call_dummy instead of
1401 DEPRECATED_PC_IN_CALL_DUMMY.
1402 (arm_skip_prologue): Ditto.
1403 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
1404 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
1405 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
1406 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
1407 Ditto.
1408 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
1409 (sh64_init_extra_frame_info, sh64_get_saved_register)
1410 (sh64_pop_frame): Ditto.
1411 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
1412 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
1413 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
1414 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
1415 (h8300_pop_frame): Ditto.
1416 * blockframe.c (legacy_inside_entry_func)
1417 (legacy_frame_chain_valid): Ditto.
1418 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
1419 to deprecated_pc_in_call_dummy.
1420
81cfbe54
AC
14212004-06-09 Andrew Cagney <cagney@gnu.org>
1422
a1f4a1b6
AC
1423 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
1424 provide a default value.
1425 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
1426 * gdbarch.h, gdbarch.c: Re-generate.
1427 * arch-utils.c (generic_convert_register_p): Rename
1428 legacy_convert_register_p
1429 (legacy_register_to_value, legacy_value_to_register): Delete
1430 functions.
1431 * arch-utils.h (generic_convert_register_p): Rename
1432 legacy_convert_register_p.
1433 (legacy_register_to_value, legacy_value_to_register): Delete
1434 declarations.
1435
9730f241
AC
1436 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
1437 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
1438 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
1439 * gdbarch.h, gdbarch.c: Re-generate.
1440 * infcmd.c (default_print_registers_info): Simplify.
1441 * findvar.c (value_of_register): Simplify.
1442 * mi/mi-main.c (get_register): Simplify.
1443 * arch-utils.c (legacy_convert_register_p): Always return 0.
1444 (legacy_register_to_value, legacy_value_to_register): Always call
1445 internal_error.
1446
8a1bf479
AC
1447 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
1448 #ifdef CLEAR_INSN_CACHE code.
1449 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
1450 Delete #ifdef CLEAR_DEFERRED_STORES code.
1451
4b38d6f1
AC
1452 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
1453
2d62ecc7
AC
1454 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
1455 copyright.
1456 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
1457
be4f7469
AC
1458 * config/mips/mipsv4.mh: Delete file.
1459
81cfbe54
AC
1460 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
1461 unreferenced macro.
1462 (hpread_adjust_stack_address): Delete declaration.
1463
d966f0cb
AC
14642004-06-08 Andrew Cagney <cagney@gnu.org>
1465
1466 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
1467 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
1468 PTRACE_ATTACH / PTRACE_DETACH available call error.
1469 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
1470 * infttrace.c (update_thread_state_after_attach, attach, detach):
1471 Remove #ifdef wrappers.
1472 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
1473 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
1474 * config/nm-bsd.h (ATTACH_DETACH): Delete.
1475 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
1476 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
1477 * config/nm-linux.h (ATTACH_DETACH): Delete.
1478 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
1479 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
1480 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
1481 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
1482 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
1483
d91670b9
CV
14842004-06-08 Corinna Vinschen <vinschen@redhat.com>
1485
1486 * configure.in: Set $configdir to the right OS specific value.
1487 Use value when setting $tcldir and $tkdir.
1488 * configure: Regenerate.
1489
28ba0b33
PB
14902004-06-06 Paul Brook <paul@codesourcery.com>
1491
1492 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
1493 records.
1494
f26caa11
PH
14952004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
1496
1497 * ada-lang.c (lookup_symbol_in_language): New function to allow
1498 re-use of another language's symbol lookup code. (Placed here
1499 temporarily while Ada support is being integrated into the public
1500 tree).
1501 (restore_language): New auxiliary function for
1502 lookup_symbol_in_language.
1503 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
1504 temporarily while Ada support is being integrated into the public
1505 tree).
1506
d560a54b
AO
15072004-06-08 Alexandre Oliva <aoliva@redhat.com>
1508
e75d110c
AO
1509 * Makefile.in (check//%): New.
1510
d560a54b
AO
1511 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
1512 (mn10300_store_return_value): Rewrite.
1513 (mn10300_type_align): New.
1514 (mn10300_use_struct_convention): Rewrite.
1515 (mn10300_return_value): New, using all of the above.
1516 (mn10300_pop_frame_regular): Add saved_regs_size.
1517 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
1518
a72fbdb7
AO
1519 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
1520 regs if PC is on movm.
1521
01904826
JB
15222004-06-07 Jim Blandy <jimb@redhat.com>
1523
1524 Add native Linux support for the PowerPC E500.
1525 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
1526 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
1527 all architectures except the E500.
1528 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
1529 #definitions.
1530 (struct gdb_evrregset_t): New type.
1531 (have_ptrace_getsetevrregs): New variable.
1532 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
1533 fetch_spe_registers): New functions.
1534 (fetch_register): Call fetch_spe_register as appropriate.
1535 Assert that we're only passed raw register numbers.
1536 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
1537 Don't fetch gprs if they're pseudoregisters.
1538 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
1539 store_spe_registers): New functions.
1540 (store_register): Call store_spe_register as appropriate.
1541 Assert that we're only passed raw register numbers.
1542 (store_ppc_registers): Call store_spe_registers as appropriate.
1543 Don't store gprs if they're pseudoregisters.
1544
f90ef764
JJ
15452004-06-07 Jeff Johnston <jjohnstn@redhat.com>
1546
1547 * thread-db.c (thread_get_info_callback): Fill in the thread_info
1548 struct if one exists, even if we are dealing with a zombie thread.
1549
45b75230
AC
15502004-06-07 Andrew Cagney <cagney@gnu.org>
1551
1552 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
1553 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
1554 Rename PC_REQUIRES_RUN_BEFORE_USE.
1555 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
1556 #ifdef.
1557
1658da49
RC
15582004-06-07 Randolph Chung <tausq@debian.org>
1559
1560 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
1561 unwinding after sp has been saved to the stack but before the end
1562 of the prologue, and after the fp has been modified but before it has
1563 been saved to the stack.
1564 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
1565 Remove superfluous definitions.
1566 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
1567
9a727a3c
RC
15682004-06-07 Guy Martin <gmsoft@gentoo.org>
1569
1570 Committed by Randolph Chung.
1571 * hppa-linux-nat.c: Include the correct version of the header file
1572 depending on the kernel version.
1573
9e500012
RC
15742004-06-06 Randolph Chung <tausq@debian.org>
1575
1576 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
1577 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
1578
3388d7ff
RC
15792004-06-06 Randolph Chung <tausq@debian.org>
1580
1581 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
1582 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
1583 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
1584 * hppa-tdep.c (hppa_symbol_address): New function definition.
1585 * hppa-tdep.h (hppa_symbol_address): New function declaration.
1586
d49771ef
RC
15872004-06-06 Randolph Chung <tausq@debian.org>
1588
1589 * hppa-tdep.h (struct value): Forward declaration.
1590 (gdbarch_tdep): Define tdep find_global_pointer method.
1591 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
1592 associated with the function we are trying to call, and write it
1593 to the gp register.
1594 (hppa32_convert_from_funct_ptr_addr): New function.
1595 (hppa_find_global_pointer): New function.
1596 (hppa_gdbarch_init): Set default find_global_pointer method; set
1597 convert_from_func_ptr_addr method.
1598 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
1599 (hppa_linux_init_abi): Set find_global_pointer method.
1600 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
1601
7d9b040b
RC
16022004-06-06 Randolph Chung <tausq@debian.org>
1603
1604 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
1605 to struct value *function.
1606 * gdbarch.c: Regenerate.
1607 * gdbarch.h: Likewise.
1608 * infcall.c (call_function_by_hand): Pass entire function value
1609 to push_dummy_call.
1610
1611 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
1612 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
1613 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
1614 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
1615 * arm-tdep.c (arm_push_dummy_call): Likewise.
1616 * avr-tdep.c (avr_push_dummy_call): Likewise.
1617 * cris-tdep.c (cris_push_dummy_call): Likewise.
1618 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
1619 * frv-tdep.c (frv_push_dummy_call): Likewise.
1620 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1621 * hppa-tdep.c (hppa32_push_dummy_call)
1622 (hppa64_push_dummy_call): Likewise.
1623 * i386-tdep.c (i386_push_dummy_call): Likewise.
1624 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
1625 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
1626 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1627 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
1628 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
1629 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1630 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
1631 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1632 (ppc64_sysv_abi_push_dummy_call): Likewise.
1633 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
1634 (ppc64_sysv_abi_push_dummy_call): Likewise.
1635 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
1636 * s390-tdep.c (s390_push_dummy_call): Likewise.
1637 * sh-tdep.c (sh_push_dummy_call_fpu)
1638 (sh_push_dummy_call_nofpu): Likewise.
1639 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
1640 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
1641 * vax-tdep.c (vax_push_dummy_call): Likewise.
1642
4a19ea35
JB
16432004-06-04 Jim Blandy <jimb@redhat.com>
1644
8327ccee
JB
1645 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
1646 gdbarch argument to register_size.
1647
a3c001ce
JB
1648 * rs6000-tdep.c (rs6000_store_return_value): Use
1649 regcache_cooked_write_part instead of
1650 deprecated_write_register_bytes.
1651 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
1652 not gdbarch_deprecated_store_return_value.
1653
4a19ea35
JB
1654 * ppc-linux-nat.c (store_register, fetch_register): Remove
1655 incorrect assertions. Simplify and generalize handling of
1656 transfers whose sizes are not multiples of, or less than, sizeof
1657 (PTRACE_XFER_TYPE).
1658
b9b5d7ea
JJ
16592004-06-04 Jeff Johnston <jjohnstn@redhat.com>
1660
1661 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
1662 as a new thread event.
720c7d64 1663 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 1664 zombie, return TD_THR_ZOMBIE.
720c7d64 1665 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
1666 TD_THR_ZOMBIE, check if the thread is still on the thread list
1667 and return a -1 ptid if not found.
1668 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
1669 change the status to TARGET_WAITKIND_SPURIOUS.
1670
c8a3b559
CV
16712004-06-03 Corinna Vinschen <vinschen@redhat.com>
1672
1673 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
1674 double values in little endian mode.
1675
20605361
AC
16762004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
1677
1678 Committed by Andrew Cagney.
1679 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
1680 after last enum constant to avoid error from IBM C
1681 compiler.
1682
bc97b3ba
JB
16832004-06-02 Jim Blandy <jimb@redhat.com>
1684
1685 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
1686 to 'message', and make it local to the lone block that uses it.
1687
1da28ab0
JB
1688 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
1689
4c4b4cd2
PH
16902004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
1691
8a2225b2
PH
1692 * ada-exp.y: Update copyright notice.
1693 Include block.h.
1694
1695 Replace REGNAME, LAST, INTERNAL_VARIABLE with
1696 SPECIAL_VARIABLE and unify the treatment of these cases.
1697
1698 (write_attribute_call0): Remove.
1699 (write_attribute_call1): Remove.
1700 (write_attribute_calln): Remove.
1701 (save_qualifier): Add missing semicolon.
1702
1703 (simple_exp,exp): Decomment (i.e., reactivate) code that was
1704 temporarily disabled to allow compilation with FSF head version.
1705
1706 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
1707 use individual operators (OP_*) for all attributes.
1708 (exp syntax): Use write_int.
1709 Handle STRING literals with OP_STRING.
1710 (variable syntax): Add limit parameter to calls to
1711 write_object_renaming.
1712
1713 (temp_parse_space): New definition to hold entities that need
1714 only live until the next call to ada_parse.
1715 (string_to_operator): Rename fields of ada_opname_table entries.
1716
1717 (write_var_from_sym): Record block.
1718 (write_var_from_name): Minor reformatting.
1719 Make sure saved name is properly encoded in the case of multiple
1720 matches, and set its language to Ada.
1721 Update comment.
1722 Modify to indicate unresolved name as symbol in the UNRESOLVED
1723 namespace, allocated in temp_parse_space.
1724 (write_int): New function.
1725
1726 (write_object_renaming): Add max_depth parameter to limit
1727 chains of object renamings.
1728 Handle case where root of renaming expression is itself a renaming.
1729 Use temp_parse_space for temporary name buffer.
1730 Handle renamings to dereferenced pointers (___XEXA suffices).
1731
1732 (ada_parse, yyerror, string_to_operator,
1733 write_var_from_sym, write_var_from_name, write_attribute_call0,
1734 write_attribute_call1, write_attribute_calln,
1735 write_object_renaming): Protoize.
1736
1737 (_initialize_ada_exp): New function.
1738
1739 * ada-lang.c: Update copyright notice.
1740 General terminology change to conform to GNAT compiler usage:
1741 mangle => encode, demangle => decode
1742 Include gdb_obstack.h.
1743 Include gdb_regex.h
1744 Include frame.h
1745 Include hashtab.h
1746 Include completer.h
1747 Include gdb_stat.h
1748 Include block.h
1749 Include infcall.h
1750
1751 (ADA_RETAIN_DOTS): Make sure this is defined.
1752 (TRUNCATION_TOWARDS_ZERO): Define.
1753 (struct string_vector): Define.
1754 (unresolved_names): Remove definition.
1755 (xnew_string_vector): New function.
1756 (string_vector_append): New function.
1757 (extract_string): Make static.
1758 (ada_unqualified_name): New function.
1759 (add_angle_brackets): New function.
1760 (function_name_from_pc): New function.
1761 (place_on_stack): Rename to ensure_lval.
1762
1763 (ensure_lval): Renamed from place_on_stack.
1764 Make identity on lvals.
1765 Update comment.
1766 (is_nonfunction): New interface.
1767 Only symbols in LOC_CONST class can be enumerals.
1768 (fill_in_ada_prototype): Remove; now independent of language.
1769 (add_defn_to_vec): Add obstack and symtab arguments.
1770 Use obstack to hold collected definitions.
1771 (num_defns_collected): New function.
1772 (defns_collected): New function.
1773 (ada_resolve_subexp): Rename to resolve_subexp.
1774 (resolve_subexp): Renamed from ada_resolve_subexp.
1775 (ada_op_name): Return non-const result.
1776 (ada_decoded_op_name): Renamed from ada_op_name, now used for
1777 other purposes.
1778
1779 (to_fixed_array_type): Add declaration.
1780 (coerce_unspec_val_to_type): Remove offset parameter.
1781 (find_sal_from_funcs_and_line): New interface.
1782 (find_line_in_linetable): Ditto.
1783
1784 (all_sals_for_line): Rename to ada_sals_for_line and make
1785 global.
1786 Add new parameter. When set, do not ask the user to choose the
1787 instance, but use the first one found instead.
1788 Use given line number in returned sals.
1789 Fix comment.
1790 Skip the prologue if funfirstline is set.
1791 Correct for memory leak when 0 lines found.
1792
1793 (value_pos_atr): Use pos_atr.
1794 (pos_atr): New function.
1795 (standard_lookup): Add block parameter.
1796
1797 (makeTimeStart): Remove declaration and uses.
1798 (makeTimeStop): Remove declaration and uses.
1799
1800 (ada_completer_word_break_characters): Allow for VMS.
1801 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
1802 (raise_sym_name): New constant.
1803 (raise_unhandled_sym_name): New constant.
1804 (raise_assert_sym_name): New constant.
1805 (process_raise_exception_name): New constant.
1806 (longest_exception_template): New constant.
1807 (warning_limit): New variable to limit warnings during expression
1808 evaluation.
1809 (warnings_issued): New variable to keep track of warnings issued.
1810 (known_runtime_file_name_patterns): New constant.
1811 (known_auxiliary_function_name_patterns): New constant.
1812 (symbol_list_obstack): New variable.
1813
1814 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
1815 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
1816 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
1817 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
1818 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
1819 ada_variant_discrim_name, field_alignment, dynamic_template_type,
1820 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
1821 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
1822 and strcmp.
1823
1824 (ada_get_field_index): New function.
1825 (lim_warning): New function.
1826 (ada_translate_error_message): New function.
1827 (MAX_OF_SIZE): New function.
1828 (MIN_OF_SIZE): New function.
1829 (UMAX_OF_SIZE): New function.
1830 (UMIN_OF_SIZE): New function.
1831 (discrete_type_high_bound): New function.
1832 (discrete_type_low_bound): New function.
1833 (base_type): New function.
1834 (do_command): Remove.
1835
1836 (ada_update_initial_language): Use language_ada, not language_unknown.
1837 (ada_encode): Renamed from ada_mangle.
1838 Obey ADA_RETAIN_DOTS.
1839 (ada_decode): Renamed from ada_demangle.
1840 Update coding conventions.
1841 (decoded_names_store): New hash table.
1842 (ada_decode_symbol): New function.
1843 (ada_la_decode): New function.
1844
1845 (modify_general_field): Correct computations of offset and bit
1846 position.
1847 (desc_base_type): Handle ref types, too.
1848 (ada_is_direct_array_type): New function.
1849
1850 (ada_is_simple_array): Rename to ada_is_simple_array_type.
1851 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
1852 (ada_is_bogus_array_descriptor,ada_type_of_array,
1853 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
1854 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
1855 ada_is_array_descriptor_type.
1856
1857 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
1858 (ada_is_packed_array_type): Handle pointers or
1859 references to packed arrays as well.
1860 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
1861 (decode_packed_array_type): Search for the packed array type
1862 symbol in the currently selected block and associated
1863 superblocks too.
1864 Use lookup_symbol again.
1865
1866 (decode_packed_array): Handle pointers and references.
1867 Update call to coerce_unspec_val_to_type.
1868 (decode_packed_array_type,value_subscript_packed): Limit warnings.
1869 (ada_value_primitive_packed_val): Improve comment.
1870
1871 (ada_index_type): Substitute int type for "undefined".
1872 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
1873 ada_array_langth, ada_is_string_type): Use renamed
1874 ada_is_simple_array_type.
1875 (empty_array): New function.
1876
1877 (ada_resolve): Rename to resolve.
1878 (resolve): Make static.
1879 Call renamed resolve_subexp.
1880 Update comment.
1881 (ada_resolve_subexp): Rename to resolve_subexp.
1882 (resolve_subexp): Update comment.
1883 Decomment disabled code.
1884 Add LOC_COMPUTED* cases.
1885 Modify to use temporary struct symbols (marked as being in
1886 UNDEF_NAMESPACE) to indicate unresolved names, instead of
1887 OP_UNRESOLVED_VALUE.
1888 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
1889 Add OP_STRING case.
1890 Remove OP_ARRAY.
1891 Use SYMBOL_PRINT_NAME instead of ada_demangle.
1892 Use new ada_lookup_symbol_list interface.
1893 Use new ada_resolve_function interface.
1894 Remove OP_TYPE case.
1895
1896 (ada_args_match): Idiot proof against null actuals.
1897 Use intermediate variables to clarify.
1898 (ada_resolve_function): Update comment and interface.
1899 (mangled_ordered_before): Rename to encoded_ordered_before and
1900 update comment.
1901 (sort_choices): Update comment and interface.
1902 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
1903 (user_select_syms): New interface.
1904 Use new sort_choices interface.
1905 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
1906 (possible_user_operator_p): Idiot-proof against null values.
1907 (ada_simple_renamed_entity): Don't make cleanup; rely on
1908 caller to free result string.
1909 Remove const from return type.
1910 (make_array_descriptor): Rename uses of place_on_stack to
1911 ensure_lval.
1912 Make sure that arrays are on stack.
1913
1914 (HASH_SIZE): Define.
1915 (struct cache_entry): Define.
1916 (cache_space): Define.
1917 (cache): Define.
1918 (clear_ada_sym_cache): New function.
1919 (find_entry): New function.
1920 (lookup_cached_symbol): New function.
1921 (defn_vector_size): Define.
1922 (cache_symbol): New function.
1923 (defn_symbols): Remove.
1924
1925 (standard_lookup): Use lookup_symbol_in_language to get effect of
1926 C lookup.
1927 Cache results.
1928
1929 (symbol_completion_match): New function.
1930 (symbol_completion_add): New function.
1931 (ada_make_symbol_completion_list): New function.
1932
1933 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
1934 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
1935 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1936 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
1937
1938 (ada_lookup_simple_minsym): New function.
1939 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
1940
1941 (add_symbols_from_enclosing_procs): New interface.
1942 Conditionalize more helpfully.
1943 Don't bother if program isn't running.
1944 Use new interface to get_frame_block.
1945 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
1946
1947 (remove_extra_symbols): New interface.
1948 (xget_renaming_scope): New function.
1949 (is_package_name): New function.
1950 (renaming_is_visible): New function.
1951 (remove_out_of_scope_renamings): New function.
1952
1953 (ada_lookup_symbol_list): New interface.
1954 Properly reinitialize the symbol list obstack.
1955 Don't call add_symbols_from_enclosing_procs if we start from a
1956 static or global block.
1957 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
1958 add_symbols_from_enclosing_procs.
1959 Add symtab data to cached entries.
1960 Handle symbols prefixed with
1961 "standard__" specially; strip prefix and don't look in local symbols.
1962 Do not include out of scope renaming symbols in list of
1963 symbols returned.
1964 Add const to block parameter.
1965 Move check for non-local, non-global symbols earlier.
1966 Remove timing stuff.
1967 (ada_lookup_symbol): New interface.
1968 Find symtab as well.
1969 (ada_lookup_symbol_nonlocal): New function.
1970
1971 (is_name_suffix): Enhance suffix detection to recognize
1972 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
1973 (is_dot_digits_suffix): New function.
1974 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
1975
1976 (ada_add_block_symbols): New interface. Use obstack to return results
1977 in a vector of struct ada_symbol_infos. Add symtab argument.
1978 Use new interface to add_defn_to_vec.
1979 Remove calls to fill_in_ada_prototype.
1980 Use BLOCK_BUCKETS, BLOCK_BUCKET.
1981
1982 (ada_finish_decode_line_1): Add const qualification to local to fix
1983 warning.
1984 Start looking in static block for functions to avoid attempts
1985 to search frame chain for up-level variables.
1986 Adapt to new ada_sals_for_line interface.
1987 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
1988 Handle quoting of the function name inside the spec string.
1989 Skip prologue when funfirstline is set and update the
1990 function documentation to that effect.
1991
1992 (debug_print_lines, debug_print_block, debug_print_blocks,
1993 debug_print_symtab): Remove.
1994
1995 (ada_main_name): New function.
1996 (ada_exception_breakpoint_type): New function.
1997 (is_known_support_routine): New function.
1998 (ada_find_printable_frame): Renamed from find_printable_frame and made
1999 global.
2000 Remove level parameter.
2001 Use new interface to select_frame.
2002
2003 (begin_command): Remove.
2004 (ada_adjust_exception_stop): New function.
2005 (ada_print_exception_stop): New function.
2006 (exception_name_from_cond): New function.
2007 (ada_report_exception_break): Replace disabled code with
2008 conditionalization on GNAT_GDB.
2009 Get the exception name from the condition string.
2010 Remove and move functionality into new functions
2011 ada_print_exception_breakpoint_task and
2012 ada_print_exception_breakpoint_nontask.
2013 (error_breakpoint_runtime_sym_not_found): New function.
2014 (is_runtime_sym_defined): New function.
2015 (ada_breakpoint_rewrite): Uncomment suppressed code.
2016 Use symbolic error-message and runtime-symbol names.
2017 Surround runtime symbol names in quotes.
2018 Allow non-specific breakpoints on exceptions and assertions before
2019 program starts.
2020
2021 (ada_is_tagged_type): Add parameter.
2022 (ada_is_tag_type): New function.
2023 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
2024 (ada_variant_discrim_type): Ditto.
2025 (value_tag_from_contents_and_address): New function.
2026 (type_from_tag): New function.
2027 (struct tag_args): New structure used to communicate with
2028 ada_tag_name_1.
2029 (ada_tag_name_1): New function.
2030 (ada_tag_name): New function.
2031
2032 (ada_scan_number): Update comment.
2033 (find_struct_field): New function.
2034 (ada_search_struct_field): Make static.
2035 (ada_value_struct_elt): New version that returns references when
2036 given pointers or references to structs.
2037 (ada_lookup_struct_elt_type): Add 'refok' parameter.
2038 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
2039 interface.
2040 (ada_value_ind): Use new ada_to_fixed_value interface.
2041 (ada_coerce_ref): Ditto.
2042 (field_offset): Remove.
2043
2044 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
2045 (ada_find_renaming_symbol): New function.
2046 (ada_prefer_type): Prefer named types over unnamed ones.
2047 (variant_field_index): New function.
2048 (contains_variant_part): Removed: subsumed by variant_field_index.
2049 (ada_template_to_fixed_record_type): New function, mostly from
2050 template_to_fixed_record_type.
2051 (template_to_fixed_record_type):
2052 Do not scan the type fields beyond the last one; prevents a
2053 potential SEGV.
2054 Handle case where variant field is listed BEFORE discriminant it
2055 depends on.
2056 Fix calculation of record length when bit length is
2057 not evenly divisible by char length.
2058 Move code to ada_template_to_fixed_record_type and call it.
2059
2060 (template_to_static_fixed_type): Revise comment.
2061 Modify to work on ordinary record types as well as templates,
2062 so as to handle fields that use ___XVE or ___XVU encodings.
2063 (to_record_with_fixed_variant_part): Fill out comment.
2064 Initialize C++ stuff in right type.
2065 Allow case where DVAL is null.
2066 Handle case where variant field is not last.
2067 Fix typo concerning record length.
2068 (to_fixed_record_type): Decomment disabled code.
2069 (to_fixed_record_type): Use variant_field_index instead of
2070 contains_variant_part.
2071 (to_fixed_variant_branch_type): Ditto.
2072 (to_fixed_array_type): Decomment disabled code.
2073 (ada_to_fixed_type): Convert tagged types to the specific type.
2074 Deactivate the size-check for array types in order to avoid
2075 some false size alarms.
2076 (to_static_fixed_type): Decomment disabled code.
2077 Modify to call template_to_static_fixed_type
2078 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
2079 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
2080 Remove valaddr argument, as it is never really used.
2081 (ada_to_fixed_value): Change interface to act on single struct value*
2082 operand.
2083 (adjust_pc_past_prologue): New function.
2084 (ada_attribute_name): Modify to take enum exp_opcode argument.
2085
2086 (ada_enum_name): Recognize new homonym-distinguishing convention.
2087 Adjust local variable's type to remove compiler warning.
2088 Fix a small problem in the part that unqualifies the enumeration name.
2089 (ada_value_binop): New function.
2090 (ada_value_equal): New function.
2091
2092 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
2093 Don't give error message when not doing normal evaluation
2094 and a tagged type doesn't seem to contain a structure member.
2095 Give error message for packed arrays.
2096 For indexing arrays, handle pointers to packed arrays correctly.
2097 Handle case of 'first and 'last attributes of bare integral type
2098 without encoded subtype info.
2099 Remove some unnecessary casts.
2100 Fix uninitialized value of type in computing 'first, 'last, or 'length
2101 of array object.
2102 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
2103 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
2104 calls.
2105 Attributes are now exp_opcode values.
2106 Correct treatment of 'modulus.
2107 Better error message for taking 'length of wrong kind of type;
2108 improve comment.
2109 Change EVAL_NORMAL to noside for consistency.
2110 Use ada_value_binop for DIV, MOD, REM.
2111 Make special case out of array of length 0, since an argument
2112 of 0 upsets some platforms' malloc.
2113 Use OP_STRING instead of OP_ARRAY.
2114 For slice, add check that we have an array type before extracting
2115 a slice out of it. Avoids a SEGV.
2116 When evaluating an array slice, if the array type is a reference to
2117 an aligner type, then replace the aligner type by the actual type.
2118 Decomment disabled code.
2119 Remove some dead code.
2120 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
2121 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
2122 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
2123 and UNOP_MBR to UNOP_IN_RANGE.
2124 If an array type has a parallel ___XVE type, then use it.
2125 Turn arrays into pointers for lvalue arrays.
2126 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
2127 bounds error and handle 0-length slices.
2128 Use lim_warning.
2129 When selecting fields, apply ada_to_fixed_value (because the fields
2130 might have ___XVU or ___XVE encodings even if not dynamic.)
2131 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
2132 (ada_is_system_address_type): New function.
2133
2134 (get_var_value): Use new interface to ada_lookup_symbol_list.
2135 (get_int_var_value): New interface.
2136 (to_fixed_range_type): Allow unknown bound, with warning.
2137 (ada_is_modular_type): Decomment disabled code.
2138 (ADA_OPERATORS): New definition.
2139 (ada_operator_length): New function.
2140 (ada_expr_op_name): New function.
2141 (ada_forward_operator_length): New function.
2142 (ada_dump_subexp_body): New function.
2143 (ada_print_subexp): New function.
2144 (ada_exp_descriptor): New constant.
2145 (ada_op_print_tab): Add 'size. Remove FIXMEs.
2146 (ada_language_defn): Add ada_exp_descriptor entry.
2147 Change ada_parse => parse.
2148 Add post-parser entry.
2149 Use ada-specific non-local symbol lookup.
2150 Don't use C-style arrays.
2151 String lower-bound is 1.
2152 Decomment disabled code.
2153 (parse): New function.
2154 New fields ada_translate_error_message, ada_lookup_symbol,
2155 ada_lookup_minimal_symbol.
2156
2157 * ada-lang.h: Update copyright dates.
2158 Replace the mangle/demangle terminology throughout by the
2159 more appropriate encode/decode one.
2160 Include breakpoint.h.
2161 Forward declare struct partial_symbol, struct block.
2162 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
2163 (EXTRACT_ADDRESS): Remove.
2164 (EXTRACT_INT): Remove.
2165 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
2166 (MAX_ENCLOSING_FRAME_LEVELS): Define.
2167 (MAX_RENAMING_CHAIN_LENGTH): Define.
2168 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
2169
2170 (enum task_states): Remove.
2171 ada_task_states: Remove.
2172 (fat_string): Remove.
2173 (struct entry_call): Remove.
2174 (struct task_fields): Remove.
2175 (struct task_entry): Remove.
2176
2177 (struct ada_symbol_info): Define.
2178 (enum ada_attribute): Remove.
2179 (enum ada_operator): Define.
2180
2181 (ada_get_field_index): Declare.
2182 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
2183 (ada_is_simple_array): Rename to ada_is_simple_array_type.
2184 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
2185 (ada_lookup_symbol_list): New interface.
2186 (ada_decode_symbol): Declare.
2187 (ada_decode): Declare.
2188 (ada_lookup_symbol): New interface.
2189 (ada_update_initial_language): Declare.
2190 (ada_lookup_simple_minsym): Declare.
2191 (user_select_syms): New interface.
2192 (ada_sals_for_line): Declare.
2193 (ada_is_tagged_type): New interface.
2194 (ada_tag_name): Declare.
2195 (ada_lookup_struct_elt_type): Remove declaration.
2196 (ada_search_struct_field): Remove declaration.
2197 (ada_attribute_name): New interface.
2198 (ada_is_system_address_type): Declare.
2199 (ada_to_fixed_value): Remove declaration.
2200 (ada_template_to_fixed_record_type_1): Declare.
2201 (get_int_var_value): New interface.
2202 (ada_find_any_symbol): Declare.
2203 (ada_find_renaming_symbol): Declare.
2204 (ada_mangle): Rename to ada_encode.
2205 (ada_simple_renamed_entity): Remove const.
2206 (ada_main_name): Declare.
2207 (get_current_task): Rename to ada_get_current_task.
2208 (get_entry_number): Remove declaration.
2209 (ada_report_exception_break): Remove declaration.
2210 (ada_print_exception_breakpoint_nontask): Declare.
2211 (ada_print_exception_breakpoint_task): Declare.
2212 (ada_find_printable_frame): Declare.
2213
2214 * ada-lex.l: Update copyright notices.
2215 Use xmalloc and xfree instead of malloc and free.
2216 Use new interface to name_lookup.
2217 Use new interface to
2218 ada_mangle=>ada_encode.
2219 Redo handling of '$...' variable to parallel current treatment
2220 in c-exp.y.
2221 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
2222 digit_to_int, strtoulst, processInt, processReal, processId,
2223 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
2224 yywrap): Protoize.
2225
2226 (processInt): Use cast to remove harmless warning.
2227 (processReal): Modify to get rid of compiler warning on scan formats.
2228
2229 (processId): Replace xmalloc with obstack_alloc for name and remove
2230 call to ada_name_string_cleanup.
2231 Remove obsolete disabled code.
2232 (name_lookup): Ditto.
2233 New interface.
2234 Use obsavestring on temp_parse_space instead of savestring
2235 on name, and remove call to ada_name_string_cleanup.
2236 Free string returned from ada_simple_renamed_entity.
2237 Use new interface to ada_lookup_symbol_list.
2238 Decomment disabled code.
2239 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
2240 not types.
2241 When a type name lookup succeeds as a result of
2242 lookup_primitive_typename, check for regular type entry that has not
2243 yet been read in.
2244 Limit length of chain of renamed symbols we are willing to follow.
2245 Do not break names beginning with "standard__" into segments.
2246 (block_lookup): Use new interface to ada_lookup_symbol_list.
2247
2248 * ada-typeprint.c: Update copyright notice.
2249 (demangled_type_name): Rename to decoded_type_name.
2250 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
2251 (print_range_bound): Correct handling of negative
2252 bounds that make the index type looked unsigned under STABS.
2253 (print_dynamic_range_bound): Use new interface to get_int_var_value.
2254 (print_range_type_named): Use the builtin int type if no type
2255 corresponding to the given type name could be found.
2256 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
2257 Add some bullet-proofing.
2258 (print_variant_clauses): Allow for variant branches with ___XVU
2259 encodings that are not dynamic fields.
2260 Use new interface to ada_is_tagged_type.
2261 (print_record_type): Allow for fields with ___XVE encodings that
2262 are not dynamic fields.
2263 Use new interface to ada_is_tagged_type.
2264 (ada_print_type): ada_is_array_descriptor =>
2265 ada_is_array_descriptor_type.
2266
2267 * ada-valprint.c: Update copyright notice.
2268 Include gdb_string.h
2269 Include infcall.h
2270 (ui_memcpy): New function.
2271 (ada_print_floating): New function.
2272 (ada_print_str): Order arguments correctly.
2273 Correct handling of empty arrays and arrays of 0-length items.
2274 ada_is_array_descriptor => ada_is_array_descriptor_type
2275 Print values of type System.Address in hexadecimal format.
2276 Use ada_print_floating to print floating-point numbers in Ada format.
2277 Print class tag values with type names.
2278 No longer print the address of reference values. Avoids
2279 a potential confusion.
2280 (ada_value_print): Stop printing the object type for reference
2281 values, but preserve that behavior for access types. Avoids
2282 a potential confusion.
2283 Simplify one conditional expression, as the first part is now
2284 necessarily true.
2285 ada_is_array_descriptor => ada_is_array_descriptor_type
2286 Add check for arrays for null records, and print them by hand.
4c4b4cd2 2287
f65f91b5
JB
22882004-06-01 Jim Blandy <jimb@redhat.com>
2289
2290 * ppc-tdep.h: Delete unused 'regoff' member.
2291 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
2292
d4687fa0
MC
22932004-06-01 Michael Chastain <mec.gnu@mindspring.com>
2294
2295 Fix PR symtab/1661.
2296 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
2297 (hpread_read_struct_type): Likewise.
2298
de169ec9
AC
22992004-06-01 Andrew Cagney <cagney@gnu.org>
2300
c6902d46
AC
2301 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
2302 instead of xasprintf.
2303 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
2304 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
2305 (mi_cmd_data_list_register_names)
2306 (mi_cmd_data_list_changed_registers)
2307 (mi_cmd_data_list_register_values)
2308 (get_register, mi_cmd_data_write_register_values)
2309 (mi_cmd_data_write_register_values)
2310 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
2311 (mi_cmd_target_download, mi_cmd_target_select)
2312 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
2313 (mi_execute_cli_command, mi_execute_async_cli_command)
2314 (mi_execute_async_cli_command): Ditto.
2315 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
2316 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
2317
6085fc2d
AC
2318 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
2319 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
2320 error_last_message instead of mi_error_last_message.
2321 * mi/mi-main.c (mi_error_last_message): Delete function.
2322
de169ec9
AC
2323 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
2324 "invalid number of columns" error. Delete redundant "out of
2325 memory" check.
2326
1fc7d519
MK
23272004-05-31 Mark Kettenis <kettenis@gnu.org>
2328
6cfb2041
MK
2329 * i386bsd-nat.c: Don't include <sys/procfs.h>.
2330 (gregset_t, fpregset_t): Remove typedefs.
2331 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
2332 (REG_OFFSET): Rename argument.
2333 (i386bsd_r_reg_offset): Rename from reg_offset.
2334 (REG_ADDR): Remove macro.
2335 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
2336 functions.
2337 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
2338 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
2339 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
2340 instead of supply_gregset.
2341 (store_inferior_registers): Use `struct reg' and `struct fpreg'
2342 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
2343 instead of fill_gregset.
2344 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
2345
1fc7d519
MK
2346 * i386bsd-nat.c: Don't include "gregset.h".
2347 (supply_gregset, fill_gregset): Make static.
2348 (supply_fpregset, fill_fpregset): Remove.
2349 * Makefile.in (i386bsd-nat.o): Update dependencies.
2350
2c34abbe
MK
23512004-05-30 Mark Kettenis <kettenis@gnu.org>
2352
448724fb
MK
2353 * fbsd-proc.c: Include "regcache.h", "regset.h" and
2354 "gdb_assert.h". Con't include "gregset.h".
2355 (fbsd_make_corefile_notes): Use regset-based core file support
2356 instead off fill_gregset and fill_fpregset.
2357 * Makefile.in (fbsd-proc.o): Update dependencies.
2358
5ca8ca7c
MK
2359 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
2360 instructions.
2361 (m88k_frame_prev_register): Simplify code a bit.
2362
593adc23
MK
2363 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
2364 (amd64_collect_fpregset): New function.
2365 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
2366
8d1b517b
MK
2367 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
2368
7fdafb5a
MK
2369 * i386-tdep.c (i386_supply_gregset): Adjust comment.
2370 (i386_collect_gregset): New function.
2371 (i386_supply_fpregset): Adjust comment.
2372 (i386_collect_fpregset): New function.
2373 (i386_regset_from_core_section): Use i386_collect_gregset and
2374 i386_collect_fpregset.
2375
8693c419
MK
2376 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
2377 handle VALUEP being null.
2378
2c34abbe
MK
2379 * regset.h (collect_regset_ftype): Unconstify fourth argument.
2380
45d134d8
MK
23812004-05-29 Mark Kettenis <kettenis@gnu.org>
2382
1698f4e7
MK
2383 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
2384
45d134d8
MK
2385 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
2386 assembler in OpenBSD 3.5-current.
2387 (amd64obsd_sigcontext_addr): Likewise.
2388
691d145a
JB
23892004-05-28 Jim Blandy <jimb@redhat.com>
2390
2391 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
2392 register set, so our regcache isn't declared "legacy" and our E500
2393 pseudoregister read and write functions aren't ignored.
2394 (rs6000_register_byte, rs6000_register_raw_size,
2395 rs6000_register_virtual_type, rs6000_register_convertible,
2396 rs6000_register_convert_to_virtual,
2397 rs6000_register_convert_to_raw): Deleted.
2398 (rs6000_register_type, rs6000_convert_register_p,
2399 rs6000_register_to_value, rs6000_value_to_register): New
2400 functions.
2401 (rs6000_gdbarch_init): Don't register
2402 gdbarch_deprecated_register_size,
2403 gdbarch_deprecated_register_bytes,
2404 gdbarch_deprecated_register_byte,
2405 gdbarch_deprecated_register_raw_size,
2406 gdbarch_deprecated_register_virtual_type,
2407 gdbarch_deprecated_register_convertible,
2408 gdbarch_deprecated_register_convert_to_virtual, or
2409 gdbarch_deprecated_register_convert_to_raw methods. Instead,
2410 register gdbarch_register_type, gdbarch_convert_register_p,
2411 gdbarch_register_to_value, and gdbarch_value_to_register methods.
2412
18ed0c4e
JB
24132004-05-26 Jim Blandy <jimb@redhat.com>
2414
2415 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
2416 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
2417 functions, updated to match the register numberings used in GCC.
2418 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
2419 rs6000_dwarf2_reg_to_regnum as register number conversions
2420 functions for STABS and Dwarf2.
2421
779af9e3
RC
24222004-05-26 Randolph Chung <tausq@debian.org>
2423
2424 * infttrace.h (target_waitkind): Forward declare type instead of pulling
2425 in header file.
2426
c23968a2
JB
24272004-05-25 Joel Brobecker <brobecker@gnat.com>
2428
2429 * NEWS: Document new "start" command.
2430
3a7d1c27
RC
24312004-05-25 Randolph Chung <tausq@debian.org>
2432
2433 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
2434 hppa-linux.
2435
43613416
RC
24362004-05-25 Randolph Chung <tausq@debian.org>
2437
2438 * hppa-hpux-tdep.c (offsetof): Define.
2439 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
2440 (hppa32_hpux_frame_base_before_sigtramp)
2441 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
2442 (hppa64_hpux_frame_saved_pc_in_sigtramp)
2443 (hppa64_hpux_frame_base_before_sigtramp)
2444 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
2445 functions.
2446 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
2447 (hppa_hpux_sigtramp_frame_unwind_cache)
2448 (hppa_hpux_sigtramp_frame_this_id)
2449 (hppa_hpux_sigtramp_frame_prev_register)
2450 (hppa_hpux_sigtramp_frame_unwind)
2451 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
2452 (hppa_hpux_init_abi): Register sigtramp unwinder.
2453 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
2454
6d1be3f1
RC
24552004-05-25 Randolph Chung <tausq@debian.org>
2456
2457 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
2458 and multiple stack unwinds.
2459 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
2460
97c34f65
AC
24612004-05-25 Andrew Cagney <cagney@gnu.org>
2462
2463 * symfile.h (symbol_file_add_from_memory): Delete declaration.
2464 * symfile-mem.h: Delete file.
2465 * symfile-mem.c: Do not include "symfile-mem.h".
2466 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
2467 "struct bfd_section". When an error do not bother returning NULL.
2468 (add_symbol_file_from_memory_command): Use "struct bfd" and
2469 "struct bfd_section".
2470 * Makefile.in (symfile_mem_h): Delete.
2471 (symfile-mem.o): Update dependencies.
2472
e23cbd82
NR
24732004-05-25 Nick Roberts <nickrob@gnu.org>
2474
2475 * gdb-mi.el: New file.
2476
20d2ca3e
AC
24772004-05-25 Andrew Cagney <cagney@gnu.org>
2478
2479 * inftarg.c: Include "observer.h".
2480 (child_attach, child_create_inferior): Notify inferior_created.
2481 * corelow.c: Include "observer.h".
2482 (core_open): Notify inferior_created.
2483 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
2484
c27cda74
AC
24852004-05-25 Andrew Cagney <cagney@gnu.org>
2486
2487 * target.h (struct target_ops): Add from_tty to
2488 to_create_inferior.
2489 (target_create_inferior, find_default_create_inferior): Update.
2490 * infcmd.c (run_command): Update.
2491 * wince.c (child_create_inferior): Update.
2492 * win32-nat.c (child_create_inferior): Update.
2493 * uw-thread.c (uw_thread_create_inferior): Update.
2494 * thread-db.c (thread_db_create_inferior): Update.
2495 * target.c (debug_to_create_inferior)
2496 (find_default_create_inferior): Update.
2497 (maybe_kill_then_create_inferior): Update.
2498 * sol-thread.c (sol_thread_create_inferior): Update.
2499 * remote.c (extended_remote_async_create_inferior)
2500 (extended_remote_create_inferior): Update.
2501 * remote-vx.c (vx_create_inferior): Update.
2502 * remote-st.c (st2000_create_inferior): Update.
2503 * remote-sim.c (gdbsim_create_inferior): Update.
2504 * remote-sds.c (sds_create_inferior): Update.
2505 * remote-rdp.c (remote_rdp_create_inferior): Update.
2506 * remote-rdi.c (arm_rdi_create_inferior): Update.
2507 * remote-m32r-sdi.c (m32r_create_inferior): Update.
2508 * remote-e7000.c (e7000_create_inferior): Update.
2509 * procfs.c (procfs_create_inferior): Update.
2510 * ocd.c (ocd_create_inferior): Update.
2511 * ocd.h (ocd_create_inferior): Update.
2512 * nto-procfs.c (procfs_create_inferior): Update.
2513 * monitor.c (monitor_create_inferior): Update.
2514 * lin-lwp.c (lin_lwp_create_inferior): Update.
2515 * inftarg.c (child_create_inferior): Update.
2516 * hpux-thread.c (hpux_thread_create_inferior): Update.
2517 * gnu-nat.c (gnu_create_inferior): Update.
2518
1db2a798
AC
25192004-05-25 Andrew Cagney <cagney@gnu.com>
2520
2521 * MAINTAINERS: Update e-mail address.
2522
007d08bb
RC
25232004-05-24 Randolph Chung <tausq@debian.org>
2524
2525 * thread.c (info_threads_command, thread_apply_all_command)
2526 (thread_apply_command, thread_command, do_captured_thread_select):
2527 Remove HPUXHPPA-specific code.
2528
69e7b95e
RC
25292004-05-24 Randolph Chung <tausq@debian.org>
2530
2531 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
2532 unused symbols.
2533 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
2534 references.
2535
a4d5f2e0
JB
25362004-05-24 Joel Brobecker <brobecker@gnat.com>
2537
2538 * infcmd.c (kill_if_already_running): New function, extracted
2539 from run_command().
2540 (run_command): Replace extracted code by call to
2541 kill_if_already_running().
2542 (start_command): New function.
2543 (_initialize_infcmd): Add "start" command.
2544
bf2ca189
MK
25452004-05-24 Mark Kettenis <kettenis@gnu.org>
2546
2547 Add OpenBSD/m88k support.
2548 * NEWS (New native configurations): Mention OpenBSD/m88k.
2549 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
2550 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
2551 * Makefile.in (m88k_tdep_h): New variable.
2552 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
2553 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
2554 * configure.host: Add m88*-*-openbsd*.
2555 * configure.tgt: Add m88*-*-openbsd*.
2556
80fadb11
JB
25572004-05-24 Jim Blandy <jimb@redhat.com>
2558
2559 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
2560 to approve changes.
2561
19e2d14b
KB
25622004-05-24 Kevin Buettner <kevinb@redhat.com>
2563
2564 * symtab.c (fixup_section): Search section table when lookup by
2565 name fails.
2566
1b07b470
RC
25672004-05-24 Randolph Chung <tausq@debian.org>
2568
2569 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
2570 be "small_struct".
2571
368702b1
MK
25722004-05-24 Mark Kettenis <kettenis@gnu.org>
2573
5df97fde
MK
2574 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
2575 register number in regcache_raw_collect call.
2576 (m68kbsd_collect_fpregset): Likewise.
2577 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
2578
368702b1
MK
2579 * regset.h (struct regset): Add back `regset' member.
2580
a770d4ec
MK
25812004-05-23 Mark Kettenis <kettenis@gnu.org>
2582
70f9f479
MK
2583 * configure.in: Check for td_pcb in `struct thread'.
2584 * configure, config.in: Regenerated.
2585
2e16d79e
MK
2586 * dpx2-nat.c: Remove file.
2587 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
2588 (dpx2-nat.o): Remove dependencies.
2589
492cf391
MK
2590 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
2591 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
2592 (amd64obsd_supply_pcb): New function.
2593 (_initialize_amd64obsd_nat): Enable libkvm interface.
2594 * Makefile.in (amd64obsd-nat.o): Update dependencies.
2595 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
2596 (LOADLIBES): New variable.
2597
a770d4ec
MK
2598 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
2599 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
2600 (sparc32nbsd_supply_pcb): New function.
2601 (_initialize_sparcnbsd_nat): Enable libkvm interface.
2602 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
2603 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2604 (LOADLIBES): New variable.
2605
9ea75c57
MK
26062004-05-22 Mark Kettenis <kettenis@gnu.org>
2607
2e0c3539
MK
2608 * bsd-kvm.c, bsd-kvm.h: New files.
2609 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2610 "bsd-kvm.h".
2611 (i386fbsd_supply_pcb): New function.
2612 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
2613 (i386fbsd-nat.o): Update dependencies.
2614 (bsd_kvm_h): New variable.
2615 (bsd-kvm.o): New dependency.
2616 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2617 (LOADLIBES): New variable.
2618
9ea75c57
MK
2619 * regset.c: Tweak comment.
2620 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
2621 macro.
2622 * regset.h: Update copyright year.
2623 (struct regset): Remove `descr' member, add `gdbarch' member.
2624 (regset_alloc): Adjust prototype and comment.
2625 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
2626 (i386_supply_fpregset): Likewise.
2627 (i386_regset_from_core_section): Update call to regset_alloc.
2628 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
2629 REGSET->arch.
2630 (i386obsd_aout_regset_from_core_section): Update call to
2631 regset_alloc.
2632 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
2633 REGSET->arch.
2634 (i386nbsd_aout_regset_from_core_section): Update call to
2635 regset_alloc.
2636 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
2637 REGSET->arch.
2638 (amd64_regset_from_core_section): Update call to regset_alloc.
2639 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
2640 REGSET->arch.
2641 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
2642 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
2643 &sparc32nbsd_gregset in sparc32_supply_gregset call.
2644 (sparc32nbsd_init_abi): Update call to regset_alloc.
2645 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
2646 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
2647 (sparc64obsd_init_abi): Update call to regset_alloc.
2648 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
2649 &sparc64nbsd_gregset in sparc64_supply_gregset call.
2650 (sparc64nbsd_init_abi): Update call to regset_alloc.
2651 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
2652 &sparc64fbsd_gregset in sparc64_supply_gregset call.
2653 (sparc64fbsd_init_abi): Update call to regset_alloc.
2654
867e2dc5
JB
26552004-05-22 Jim Blandy <jimb@redhat.com>
2656
2657 * ppc-tdep.h (spe_register_p): New declaration.
2658 (struct gdbarch_tdep): New members: ppc_acc_regnum and
2659 ppc_spefscr_regnum.
2660 * rs6000-tdep.c (spe_register_p): New function.
2661 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
2662 spefscr.
2663 (rs6000_gdbarch_init): Initialize the new members of the tdep
2664 structure.
2665
617a4cba
JB
26662004-05-21 Jim Blandy <jimb@redhat.com>
2667
0397dee1
JB
2668 * ppc-linux-nat.c (fetch_register): Move code back to be next
2669 to the comment that describes it. (Moved code, instead of
2670 comment, for symmetry with store_register.)
2671
617a4cba
JB
2672 Allocate regset structures in the gdbarch's obstack, not using
2673 xmalloc.
2674 * regset.c (regset_alloc): Renamed from regset_xmalloc.
2675 Add 'arch' argument. Allocate the regset on arch's obstack, not
2676 using xmalloc.
2677 * regset.h (regset_alloc): Update declaration.
2678 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
2679 gdbarch argument.
2680 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
2681 * i386-tdep.c (i386_regset_from_core_section): Same.
2682 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
2683 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
2684 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
2685 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
2686 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
2687 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
2688
9aa3914d
JB
26892004-05-21 Joel Brobecker <brobecker@gnat.com>
2690
2691 * config/djgpp/fnchange.lst: Undo previous change, was useless.
2692
99c87dab
JB
26932004-05-21 Jim Blandy <jimb@redhat.com>
2694
2695 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
2696 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
2697
c2b6b4aa
JB
26982004-05-20 Jim Blandy <jimb@redhat.com>
2699
2700 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
2701
144529d0
MK
27022004-05-20 Mark Kettenis <kettenis@gnu.org>
2703
2704 * regset.h: Make prototype const-correct.
2705 * regset.c (regset_xmalloc): Make const-correct.
2706
4725b721
PH
27072004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
2708
2709 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
2710 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
2711 (symbol_search_name): Declare.
2712
2713 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
2714 (iter_name_next_hashed): Ditto.
2715 (iter_name_next_linear): Ditto.
2716 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
2717
2718 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
2719 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
2720 (symbol_search_name): New function.
2721
2722 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
2723
2724 * minsyms.c (build_minimal_symbol_hash_tables): Change
2725 test for adding to demangled hash table to check for difference
2726 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
2727
be07a590
JB
27282004-05-19 Jim Blandy <jimb@redhat.com>
2729
2730 Use a constructor function to create regset structures.
2731 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
2732 (struct regset): Use supply_regset_ftype. Add new
2733 'collect_regset' member.
2734 (regset_xmalloc): New declaration.
2735 * regset.c: New file.
2736 * am64-tdep.c (amd64_regset_from_core_section): Use
2737 regset_xmalloc to construct regset structures.
2738 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
2739 * i386-tdep.c (i386_regset_from_core_section): Same.
2740 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
2741 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
2742 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
2743 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
2744 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
2745 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
2746 * Makefile.in (COMMON_OBS): Add regset.o.
2747 (regset.o): New rule.
2748
604368f5
JB
27492004-05-19 Joel Brobecker <brobecker@gnat.com>
2750
2751 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
2752 and pthread_cond_wait.c.
2753
82d69f8b
JB
27542004-05-18 Jim Blandy <jimb@redhat.com>
2755
2756 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
2757 before the mach-specific switch, and then let the individual cases
2758 override the defaults, rather than leaving them uninitialized
2759 until the switch and then setting them in each case.
2760
5859efe5
RC
27612004-05-18 Randolph Chung <tausq@debian.org>
2762
2763 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
2764 millicode functions.
2765
9ca80cf8
RC
27662004-05-18 Randolph Chung <tausq@debian.org>
2767
2768 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
2769 references to dld_flags_buffer consistent.
2770
ed70ba00
RC
27712004-05-18 Randolph Chung <tausq@debian.org>
2772
2773 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
2774 it for unwinding the stack.
2775
63100632
RC
27762004-05-18 Randolph Chung <tausq@debian.org>
2777
2778 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
2779 Undefine these so we can overide them using gdbarch.
2780
090ccbb7
RC
27812004-05-18 Randolph Chung <tausq@debian.org>
2782
2783 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
2784 handling for 64-bit HPUX (elf).
2785
594706e6
DJ
27862004-05-18 Daniel Jacobowitz <dan@debian.org>
2787
2788 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
2789 constants.
2790 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2791 * ia64-tdep.c (examine_prologue): Likewise.
2792 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
2793 * v850-tdep.c (v850_fix_call_dummy): Likewise.
2794
e5483145
MK
27952004-05-18 Mark Kettenis <kettenis@gnu.org>
2796
2797 * vax-tdep.c (vax_return_value): Implement
2798 RETURN_VALUE_ABI_RETURNS_ADDRESS.
2799
caed1a45
MK
28002004-05-17 Mark Kettenis <kettenis@gnu.org>
2801
2802 * vax-tdep.c (vax_return_value): Fix typo.
2803
3c0b7db2
AC
28042004-05-17 Andrew Cagney <cagney@redhat.com>
2805
5aae53e5
AC
2806 * MAINTAINERS: Mark Salter was also responsible for
2807 testsuite/config/
2808
3c0b7db2
AC
2809 * NEWS: Mention signal fixes.
2810
22b0923d
RC
28112004-05-17 Randolph Chung <tausq@debian.org>
2812
2813 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
2814 check to see if we are unwinding an export stub. Export stubs clobber
2815 the %rp in the call path and stores the original rp in a stack slot.
2816
22f2b2f3
JB
28172004-05-17 Jim Blandy <jimb@redhat.com>
2818
2819 * MAINTAINERS: Update address for J.T. Conklin.
2820
cea96d64
RC
28212004-05-17 Randolph Chung <tausq@debian.org>
2822
2823 * hppa-tdep.c: Remove superfluous #include's.
2824 * Makefile.in (hppa-tdep.o): Update dependencies.
2825
f08f6a4a
RC
28262004-05-17 Randolph Chung <tausq@debian.org>
2827
2828 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
2829 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
2830 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
2831 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
2832 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
2833 Remove static function declarations.
2834
51da707a
MK
28352004-05-17 Mark Kettenis <kettenis@gnu.org>
2836
caed1a45
MK
2837 * alphabsd-nat.c: Update copyright year.
2838 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
2839
c0c2b0db
MK
2840 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
2841 and M68K_A2_REGNUM.
2842
51da707a
MK
2843 * m68k-tdep.c (m68k_svr4_return_value): Implement
2844 RETURN_VALUE_ABI_RETURNS_ADDRESS.
2845
8d027a04
MK
28462004-05-16 Mark Kettenis <kettenis@gnu.org>
2847
2848 * sol-thread.c Update copyright year. Fix various coding
2849 standards violations. Tweak a few comments.
2850 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
2851 Delete prototypes.
2852
0d99fdb9
RC
28532004-05-15 Randolph Chung <tausq@debian.org>
2854
2855 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
2856 as pointer instead of array reference since HPUX compiler does
2857 not accept unsized array arguments.
2858 * somsolib.c (dld_flags_buffer): Use constant array size.
2859
f7e3843a
MK
28602004-05-15 Mark Kettenis <kettenis@gnu.org>
2861
0fe85704
MK
2862 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
2863 offset with decimal offset.
2864 (amd64obsd_sigcontext_addr): Return correct address for entire
2865 signal trampoline.
2866
a54f9a00
MK
2867 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
2868 instead of get_frame_base.
2869
feae6502
MK
2870 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
2871 (fill_gregset): Use regcache_raw_collect.
2872
0382d099
MK
2873 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
2874 ppcobsd-tdep.c.
2875
f7e3843a
MK
2876 * config/sparc/tm-nbsd64.h: Remove file.
2877 * config/tm-sunos.h: Remove file.
2878
773df3e5
JB
28792004-05-15 Joel Brobecker <brobecker@gnat.com>
2880
2881 * rs6000-tdep.c (store_param_on_stack_p): New function,
2882 an improved version of some code extracted from skip_prologue().
2883 (skip_prologue): Use store_param_on_stack_p() to detect
2884 instructions saving a parameter on the stack. Detect when r0
2885 is used to save a parameter.
2886 Do not mark "li rx, SIMM" instructions as part of the prologue,
2887 unless the following instruction is also part of the prologue.
2888
95918acb
AC
28892004-05-14 Andrew Cagney <cagney@redhat.com>
2890
06f32659
AC
2891 * infrun.c (handle_inferior_event): Simplify
2892 STEP_OVER_UNDEBUGGABLE.
2893
95918acb
AC
2894 * infrun.c (handle_step_into_function): Delete function.
2895 (handle_inferior_event): Inline calls to
2896 handle_step_into_function.
2897
42203e46
JG
28982004-05-14 Jerome Guitton <guitton@rome.act-europe.fr>
2899
2900 * rs6000-nat.c: Fix a comment.
2901
02f60eae
JB
29022004-05-12 David Anderson <davea@sgi.com>
2903
2904 Committed by Jim Blandy <jimb@redhat.com>:
2905 * regcache.c (struct regcache_descr): fix comment spelling.
2906
552e377b
JB
29072004-05-13 J. Brobecker <brobecker@gnat.com>
2908
2909 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
2910 Fixes a link link failure.
2911
349766b2
JB
29122004-05-13 J. Brobecker <brobecker@gnat.com>
2913
2914 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
2915 error that was causing the build to fail.
2916
0d4d5484
JB
29172004-05-13 J. Brobecker <brobecker@gnat.com>
2918
2919 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
2920 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
2921
0b30808c
AC
29222004-05-13 Andrew Cagney <cagney@redhat.com>
2923
2924 * infrun.c (handle_inferior_event): Check for
2925 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
2926 calls. Update comments.
2927
cdf2c5f5
JB
29282004-05-13 Jim Blandy <jimb@redhat.com>
2929
063715bf
JB
2930 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
2931 (fetch_regs_user_thread, fetch_regs_kernel_thread)
2932 (store_regs_user_thread, store_regs_kernel_thread): Use
2933 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
2934 * ppc-linux-nat.c (fill_gregset): Same.
2935 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2936 (ppc_linux_sigtramp_cache): Same.
2937 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
2938 (ppcnbsd_sigtramp_cache_init): Same.
2939 * rs6000-nat.c (fetch_core_registers): Same.
2940 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2941 (rs6000_frame_cache): Same.
2942
cdf2c5f5
JB
2943 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
2944 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
2945 of assuming that the gprs are numbered starting with zero.
2946 * ppc-linux-nat.c (fill_gregset): Same.
2947 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
2948 * ppcnbsd-nat.c (getregs_supplies): Same.
2949 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
2950 * rs6000-nat.c (fetch_core_registers): Same.
2951 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
2952
450bd37b
MS
29532004-05-07 Michael Snyder <msnyder@redhat.com>
2954
2955 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
2956 LOC_COMPUTED_ARG, and LOC_INDIRECT.
2957
4a72a2a6
AC
29582004-05-13 Andrew Cagney <cagney@redhat.com>
2959
2960 * infrun.c (handle_inferior_event): Use frame_unwind_id.
2961
8edfa926
BM
29622004-05-13 Bryce McKinlay <mckinlay@redhat.com>
2963
2964 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
2965 base_address for shared libraries.
2966
723e0e3d
BM
29672004-05-13 Bryce McKinlay <mckinlay@redhat.com>
2968
2969 * MAINTAINERS (write after approval): Add myself.
2970
00d4360e
UW
29712004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2972
2973 * breakpoint.c (bpstat_stop_status): Add new argument
2974 STOPPED_BY_WATCHPOINT. Use it instead of testing
2975 target_stopped_data_address agaist 0 to check whether
2976 or not we stopped due to a hardware watchpoint.
2977 * breakpoint.h (bpstat_stop_status): Adapt prototype.
2978 * infrun.c (handle_inferior_event): Call bpstat_stop_status
2979 with new argument.
2980
ec76baa5
JB
29812004-05-12 Jim Blandy <jimb@redhat.com>
2982
2983 * configure.in: When checking whether we should use the -bbigtoc
2984 option, don't forget to restore the original value of LDFLAGS.
2985 * configure: Regenerated.
2986
f2c9ca08
AC
29872004-05-12 Andrew Cagney <cagney@redhat.com>
2988
2989 * thread.c (load_infrun_state): Delete step_sp.
2990 * infrun.c (context_switch): Ditto.
2991 * inferior.h (step_sp): Ditto.
2992 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
2993 * gdbthread.h (struct thread_info, save_infrun_state)
2994 (restore_infrun_state): Ditto.
2995
090ddb2a
UW
29962004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
2997
2998 * MAINTAINERS (write after approval): Add myself.
2999
8aad930b
AC
30002004-05-12 Andrew Cagney <cagney@redhat.com>
3001
3002 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
3003 eliminate reference to step_sp.
3004 (struct execution_control_state, init_execution_control_state)
3005 (handle_inferior_event, keep_going): Delete update_step_sp and
3006 step_sp.
3007 * infcmd.c (step_sp): Note that variable is unused.
3008
922d5ae0
AC
30092004-05-11 Andrew Cagney <cagney@redhat.com>
3010
3011 * infrun.c (step_over_function): Delete function.
3012 (handle_step_into_function): Use insert_step_resume_breakpoint.
3013 (insert_step_resume_breakpoint): Fix assertion.
3014
017c5ca5
NR
30152004-05-11 Nick Roberts <nickrob@gnu.org>
3016
3017 * utils.c (defaulted_query): Just use the normal query input type
3018 when printing the annotations.
3019
42edda50
AC
30202004-05-11 Andrew Cagney <cagney@redhat.com>
3021
3022 * infrun.c (handle_inferior_event): Simplify code handling
3023 step-into or return-from a signal trampoline.
3024
d28b44a7
AC
30252004-05-11 Andrew Cagney <cagney@redhat.com>
3026
3027 * ppcnbsd-tdep.c: Include "gdb_assert.h".
3028 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
3029
383f0f5b
JB
30302004-05-10 Jim Blandy <jimb@redhat.com>
3031
d0b57c3a
JB
3032 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
3033 with a call to internal_error.
3034
383f0f5b
JB
3035 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
3036 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
3037 processor variant lacks those registers.
3038 (ppc_floating_point_unit_p): Change description to make it clear
3039 that this returns info about the ISA, not the ABI.
3040 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
3041 return true or false by checking tdep->ppc_fp0_regnum and
3042 tdep->ppc_fpscr_regnum. The original code replicated the BFD
3043 arch/mach switching done in rs6000_gdbarch_init; it's better to
3044 keep that logic there, and just check the results here.
3045 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
3046 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
3047 floating-point registers.
3048 (ppc_supply_fpregset, ppc_collect_fpregset)
3049 (rs6000_push_dummy_call, rs6000_extract_return_value)
3050 (rs6000_store_return_value): Assert that we have floating-point
3051 registers.
3052 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
3053 (rs6000_frame_cache): Don't note the locations at which
3054 floating-point registers were saved if we have no fprs.
3055 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
3056 registers.
3057 (fetch_regs_user_thread, fetch_regs_kernel_thread)
3058 (store_regs_user_thread, store_regs_kernel_thread): Only call
3059 supply_fprs / fill_fprs if we actually have floating-point
3060 registers.
3061 (special_register_p): Check ppc_fpscr_regnum before matching
3062 against it.
3063 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
3064 supply / collect fpscr if we don't have it.
3065 * ppc-bdm.c: #include "gdb_assert.h".
3066 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
3067 have floating-point registers, since I can't test this code on
3068 FP-free systems to adapt it.
3069 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
3070 fpscr and floating point register numbers if they don't exist.
3071 (fetch_register): Assert that we have floating-point registers
3072 before we reach the code that handles them.
3073 (store_register): Same. And use tdep instead of calling
3074 gdbarch_tdep again.
3075 (fill_fpregset): Don't try to collect FP registers and fpscr if we
3076 don't have them.
3077 (ppc_linux_sigtramp_cache): Don't record the saved locations of
3078 fprs and fpscr if we don't have them.
3079 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
3080 don't have them.
3081 * ppcnbsd-nat.c: #include "gdb_assert.h".
3082 (getfpregs_supplies): Assert that we have floating-point registers.
3083 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
3084 * ppcobsd-tdep.c: #include "gdb_assert.h".
3085 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
3086 have floating-point registers.
3087 * rs6000-nat.c (regmap): Don't match against the fpscr and
3088 floating point register numbers if they don't exist.
3089 (fetch_inferior_registers, store_inferior_registers,
3090 fetch_core_registers): Only fetch / store / supply the
3091 floating-point registers and the fpscr if we have them.
3092 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
3093 (ppcobsd-tdep.o): Update dependencies.
3094
15960608
AC
30952004-05-10 Andrew Cagney <cagney@redhat.com>
3096
3097 * infrun.c (through_sigtramp_breakpoint): Delete variable.
3098 (context_switch): Do not switch through_sigtramp_breakpoint.
3099 * gdbthread.h (save_infrun_state, load_infrun_state)
3100 (struct thread_info): Delete through_sigtramp_breakpoint parameter
3101 and structure member.
3102 * thread.c (load_infrun_state, save_infrun_state): Update.
3103
5ab5aa0f
MK
31042004-05-10 Mark Kettenis <kettenis@gnu.org>
3105
3106 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
3107
da78b0e7
DJ
31082004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3109
3110 * acinclude.m4: Quote macro names being defined by AC_DEFUN
3111 throughout.
3112 * aclocal.m4: Regenerate.
3113
cca0d3b0
NW
31142004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
3115
3116 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
3117
d303a6c7
AC
31182004-05-10 Andrew Cagney <cagney@redhat.com>
3119
3120 * infrun.c (check_sigtramp2): Delete function.
3121 (handle_inferior_event): When single stepping, and taking a
3122 signal, set a breakpoint at the signal return address. Delete
3123 redundant calls to check_sigtramp2.
3124 (insert_step_resume_breakpoint): New function.
3125 (through_sigtramp_breakpoint, handle_inferior_event)
3126 (follow_exec, wait_for_inferior, fetch_inferior_event)
3127 (currently_stepping, keep_going): Delete most uses of
3128 through_sigtramp_breakpoint, not that it should be deleted.
3129 (delete_breakpoint_current_contents): Delete function.
3130
03f4cc20
RC
31312004-05-10 Randolph Chung <tausq@debian.org>
3132
3133 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
3134 target.
3135 * config/pa/tm-linux.h: New file.
3136
37fc812e
DJ
31372004-05-10 Daniel Jacobowitz <drow@mvista.com>
3138
3139 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
3140 of prefixes. Don't print the prefix twice in the CLI.
3141
26c0b942
JB
31422004-05-10 Jim Blandy <jimb@redhat.com>
3143
2e56e9c1
JB
3144 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
3145 collect all the gprs.
3146
26c0b942
JB
3147 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
3148 loop collecting gprs.
3149
dc497459
AC
31502004-05-09 Andrew Cagney <cagney@redhat.com>
3151
3152 * remote-vx.c (net_step): Delete step-range code.
3153 * remote.c (remote_resume, init_all_packet_configs)
3154 (set_remote_protocol_E_packet_cmd)
3155 (show_remote_protocol_E_packet_cmd)
3156 (remote_protocol_E, show_remote_cmd, _initialize_remote)
3157 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
3158 (show_remote_protocol_e_packet_cmd): Ditto.
3159
0543f387
MK
31602004-05-09 Mark Kettenis <kettenis@gnu.org>
3161
c481d1ca
MK
3162 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
3163
f626a069
MK
3164 * hppa-tdep.h: Update copyright year.
3165 (struct trad_frame_saved_reg): Add opaque declaration.
3166
6fa57a7d
MK
3167 * amd64-tdep.c (amd64_return_value): Implement
3168 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3169
e47577ab
MK
3170 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
3171 (m68k_value_to_register): New functions.
3172 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
3173 value_to_register.
3174
31db7b6c
MK
3175 * defs.h (enum return_value_convention): Add
3176 RETURN_VALUE_ABI_RETURNS_ADDRESS and
3177 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
3178 * infcmd.c (legacy_return_value): New function.
3179 (print_return_value): Rwerite to implement
3180 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3181 * values.c (using_struct_return): Check for inequality to
3182 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
3183 RETURN_VALUE_STRUCT_CONVENTION.
3184 * i386-tdep.c (i386_return_value): Implement
3185 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3186
0543f387
MK
3187 * vax-tdep.c: Tweak comments. Reorder include files. Don't
3188 include "symtab.h", "opcode/vax.h" and "inferior.h".
3189 (vax_skip_prologue): Replace calls to read_memory_integer by calls
3190 to read_memory_unsigned_integer.
3191 (vax_gdbarch_init): Reorder.
3192 (_initialize_vax_tdep): Spell out prototype.
3193 * Makefile.in (vax-tdep.o): Update dependencies.
3194
0c93b7b6
AC
31952004-05-08 Andrew Cagney <cagney@redhat.com>
3196
e6b55ae2
AC
3197 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
3198 * target.c (target_detach, target_disconnect): Ditto.
3199
1ac839b8
AC
3200 * infcall.c (call_function_by_hand): When no
3201 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
3202 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
3203 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
3204 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3205 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3206
28954179
AC
3207 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
3208 * gdbarch.h, gdbarch.c: Re-generate.
3209 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
3210 deprecated_fix_call_dummy.
3211 * v850-tdep.c (v850_gdbarch_init): Ditto.
3212 * infcall.c (call_function_by_hand): Do not call
3213 DEPRECATED_FIX_CALL_DUMMY.
3214
434b87dd
AC
3215 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
3216 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
3217 * gdbarch.h, gdbarch.c: Re-generate.
3218 * arm-linux-tdep.c (arm_linux_call_dummy_words)
3219 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
3220 deprecated_sizeof_call_dummy_words.
3221 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
3222 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3223 * v850-tdep.c (v850_gdbarch_init): Ditto.
3224 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3225 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
3226 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3227 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3228 * arch-utils.h (legacy_call_dummy_words)
3229 (legacy_sizeof_call_dummy_words): Delete declarations.
3230 * arch-utils.c (legacy_call_dummy_words)
3231 (legacy_sizeof_call_dummy_words): Delete variables.
3232
58d28df8
AC
3233 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
3234 * gdbarch.h, gdbarch.c: Re-generate.
3235 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
3236 * infcall.c (call_function_by_hand): Eliminate call to
3237 DEPRECATED_PUSH_DUMMY_FRAME.
3238 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
3239 push_dummy_frame.
3240 (ns32k_push_dummy_frame): Delete function.
3241
e4a2df64
AC
3242 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
3243 deprecated_call_dummy_breakpoint_offset or
3244 deprecated_call_dummy_start_offset.
3245 * dummy-frame.c, arm-tdep.c: Update comments.
3246 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
3247 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
3248 * gdbarch.h, gdbarch.c: Re-generate.
3249
d3712828
AC
3250 * infcall.c (legacy_push_dummy_code): Delete function.
3251 (push_dummy_code): Delete call.
3252
7a882905
AC
3253 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
3254 * gdbarch.h, gdbarch.c: Re-generate.
3255 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
3256 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
3257 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
3258 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
3259
0ec5872b
AC
3260 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
3261 (struct frame_info): Delete opaque declaration.
3262 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
3263 * frame.c (get_frame_type): Delete call.
3264
0c93b7b6
AC
3265 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
3266 pc_in_call_dummy.
3267 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
3268 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
3269
75536971
MK
32702004-05-08 Mark Kettenis <kettenis@gnu.org>
3271
527ca6bb
MK
3272 * alphanbsd-tdep.c: Include "gdb_string.h".
3273 * armnbsd-tdep.c: Update copyright year.
3274 Include "gdb_string.h".
3275 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
3276 dependencies.
3277
d39fdc61
MK
3278 * delta68-nat.c: Remove file.
3279 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
3280 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
3281 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
3282 (delta68-nat.o): Remove dependency.
3283
75536971
MK
3284 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
3285 function.
3286 (m68k_gdbarch_init): Don't set
3287 deprecated_frameless_function_invocation.
3288
f4ca1d1f
RC
32892004-05-07 Randolph Chung <tausq@debian.org>
3290
3291 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
3292 read_memory_nobpt for code reading when doing frame unwinding.
3293 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
3294
2f0e8c7a
RC
32952004-05-07 Randolph Chung <tausq@debian.org>
3296
3297 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
3298 instead of sp, handle sigaltstack case.
3299 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
3300 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
3301 signal handler and not that of the caller.
3302 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
3303 hppa_linux_sigtramp_find_sigcontext.
3304
959464ff
RC
33052004-05-07 Randolph Chung <tausq@debian.org>
3306
3307 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
3308 hppa-linux-nat.c.
3309 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
3310 * hppa-linux-nat.c (fetch_register, store_register): Define.
3311 (fetch_inferior_registers, store_inferior_registers): Define.
3312 (supply_gregset): Add comment and clean up some unneeded code.
3313 (fill_gregset): Add comment and fix so that it saves registers in
3314 the right place in the gregset.
3315 (fill_fpregset): Fix buffer overrun problem.
3316 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3317
0da28f8a
RC
33182004-05-07 Randolph Chung <tausq@debian.org>
3319
3320 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
3321 do common handling of the pcoqt register.
3322 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
3323 to use helper function.
3324 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
3325 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
3326 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
3327 generic fallback unwinder when all else fails.
3328 (hppa_gdbarch_init): Add fallback sniffer.
3329 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
3330 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
3331 to use helper function.
3332
b9ec757a
JB
33332004-05-08 Joel Brobecker <brobecker@gnat.com>
3334
3335 * config/djgpp/fnchange.lst: Add translation rules for
3336 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
3337
756e95f1
MK
33382004-05-08 Mark Kettenis <kettenis@gnu.org>
3339
3340 * frame.c (get_prev_frame_1): Work around GCC bug.
3341 * frame.h: Add comment about GCC bug.
3342
2b4855ab
AC
33432004-05-07 Andrew Cagney <cagney@redhat.com>
3344
3345 * observer.c: Include "commands.h" and "gdbcmd.h".
3346 (observer_debug, _initialize_observer): Add the
3347 command "set/show debug observer".
3348 * observer.sh: When observer debugging, log notify calls.
3349 * Makefile.in (observer.o): Update dependencies.
3350
ba3e8e46
JM
33512004-05-07 Jason Molenda (jmolenda@apple.com)
3352
3353 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
3354
16796152
JB
33552004-05-07 Jim Blandy <jimb@redhat.com>
3356
daf6dc85
JB
3357 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
3358 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
3359 to recognize gpr regnums, instead of assuming that
3360 tdep->ppc_fp0_regnum marks the end of the general-purpose
3361 registers.
3362
16796152
JB
3363 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
3364 the given architecture has floating-point registers.
3365
c69b8bfc
AC
33662004-05-07 Andrew Cagney <cagney@redhat.com>
3367
3368 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
3369 macro defined to 1.
3370 * gdbarch.h, gdbarch.c: Re-generate.
3371 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
3372 deprecated_use_generic_dummy_frames.
3373
7243600a
BF
33742004-05-07 Brian Ford <ford@vss.fsi.com>
3375
3376 * NEWS: Mention Cygwin DWARF 2 support.
3377
73c1e0a1
AC
33782004-05-07 Andrew Cagney <cagney@redhat.com>
3379
3380 * objfiles.h (struct entry_info): Delete unused fields
3381 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
3382 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
3383 * mipsread.c (mipscoff_symfile_read): Update.
3384 * mdebugread.c (parse_partial_symbols): Update.
3385 * dwarfread.c (read_file_scope): Update.
3386 * dwarf2read.c (read_file_scope): Update.
3387 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
3388 * coffread.c (complete_symtab): Update.
3389
1d3056ac
MK
33902004-05-07 Mark Kettenis <kettenis@gnu.org>
3391
3392 * infcall.c (_initialize_infcall): Fix typo.
3393
15170568
AC
33942004-05-07 Andrew Cagney <cagney@redhat.com>
3395
3396 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
3397 * command.h (add_setshow_zinteger_cmd): Declare.
3398
34f75cc1
RC
33992004-05-06 Randolph Chung <tausq@debian.org>
3400
3401 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
3402 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
3403 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
3404 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
3405 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
3406 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
3407 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
3408 definitions ...
3409 * hppa-tdep.h: ... to here, with HPPA_ prefix.
3410 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
3411 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
3412 (hppa64_hpux_frame_find_saved_regs_in_sig)
3413 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
3414 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
3415 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
3416 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
3417 (hppa_linux_sigtramp_frame_prev_register): Likewise.
3418 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
3419 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
3420 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
3421 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
3422 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
3423 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
3424 (hppa32_register_type, hppa_cannot_store_register)
3425 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
3426 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
3427 * hpread.c (hpread_process_one_debug_symbol): Likewise.
3428 * pa64solib.c (pa64_solib_have_load_event)
3429 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
3430 (pa64_solib_unloaded_library_pathname): Likewise.
3431 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
3432 (som_solib_library_pathname): Likewise.
3433
0a5e7efe
JI
34342004-05-05 Jim Ingham <jingham@apple.com>
3435
3436 * breakpoint.c (create_breakpoints): Copy the ignore count and
3437 thread id over from the pended breakpoint to the actual
3438 breakpoint.
3439
10a4b113
AC
34402004-05-05 Andrew Cagney <cagney@redhat.com>
3441
3442 * gdbarch.sh (PARM_BOUNDARY): Delete.
3443 gdbarch.h, gdbarch.c: Re-generate.
3444 * valops.c (PARM_BOUNDARY): Delete macro.
3445 (value_push): Delete PARM_BOUNDARY code.
3446 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
3447
366f009f
JB
34482004-05-04 Jim Blandy <jimb@redhat.com>
3449
32b99774
JB
3450 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
3451 Don't assume that the gprs, fprs, and UISA sprs are
3452 contiguous, start at register number zero, and end with fpscr.
3453 Instead, use the numbers from the tdep structure.
3454
366f009f
JB
3455 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
3456 should no longer be used in code specific to the RS6000 and its
3457 derivatives.
3458 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
3459 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
3460 tdep->ppc_fp0_regnum.
3461 (ppc_supply_fpregset, ppc_collect_fpregset)
3462 (rs6000_push_dummy_call, rs6000_extract_return_value)
3463 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
3464 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
3465 FP0_REGNUM.
3466 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
3467 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
3468 Same.
3469 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
3470 bdm_ppc_store_registers): Same.
3471 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
3472 (store_register, fill_fpregset): Same.
3473 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
3474 (ppc_linux_supply_fpregset): Same.
3475 * ppcnbsd-nat.c (getfpregs_supplies): Same.
3476 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
3477 Same.
3478 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
3479 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
3480 ppc64_sysv_abi_return_value): Same.
3481 * rs6000-nat.c (regmap, fetch_inferior_registers)
3482 (store_inferior_registers, fetch_core_registers): Same.
3483
827f338d
MK
34842004-05-01 Mark Kettenis <kettenis@gnu.org>
3485
3486 * m68knbsd-nat.c: Remove file.
3487 * m68knbsd-tdep.c: Remove file.
3488 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
3489 dependencies.
3490 * configure.host: Add m68k-*-netbsdelf*.
3491 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
3492 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
3493 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
3494 (XM_FILE): Remove.
3495 * config/m68k/nbsdelf.mh: New file.
3496 * config/m68k/nbsd.mt: New file.
3497 * config/m68k/nbsdaout.mt: Remove file.
3498 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
3499 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
3500 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
3501 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
3502 (use_struct_convention): Remove prototype.
3503 (USE_STRUCT_CONVENTION): Remove define.
3504 * config/m68k/xm-nbsd.h: Remove file.
3505
66894781
MS
35062004-05-04 Michael Snyder <msnyder@redhat.com>
3507
3508 * m68k-tdep.c (m68k_gdbarch_init): Default to using
3509 reg_struct_return method (as gcc usually does for cross targets).
3510
f0f63663
AC
35112004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3512
3513 Committed by Andrew Cagney.
3514 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
3515 alignment padding when accessing ucontext struct members.
3516
edf61169
JB
35172004-05-04 Jim Blandy <jimb@redhat.com>
3518
8bf659e8
JB
3519 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
3520 'ppc_gplast_regnum' member.
3521 (ppc_num_gprs): New enum constant.
3522 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
3523 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
3524 * rs6000-nat.c (regmap, fetch_inferior_registers,
3525 store_inferior_registers): Same.
3526 * rs6000-tdep.c (e500_pseudo_register_read)
3527 (e500_pseudo_register_write): Same.
3528 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
3529
b967e06f
JB
3530 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
3531 * ppc-tdep.h (ppc_num_fprs): New enum constant.
3532 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
3533 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
3534 FPLAST_REGNUM.
3535 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
3536 Same.
3537 * ppc-linux-nat.c (ppc_register_u_addr): Same.
3538 * rs6000-nat.c (regmap, fetch_inferior_registers)
3539 (store_inferior_registers): Same.
3540
edf61169
JB
3541 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
3542 with FPLAST_REGNUM.
3543
58a9656e
JB
35442004-05-03 Joel Brobecker <brobecker@gnat.com>
3545
3546 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
3547 failure detected by recent versions of GCC.
3548 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
3549 to be consistent with the usage in dwarf2_create_include_psymtab.
3550
dc305454
MS
35512004-05-03 Michael Snyder <msnyder@redhat.com>
3552
3553 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
3554 (heuristic_proc_start): Whitespace cleanup.
3555
29972665
MK
35562004-05-04 Mark Kettenis <kettenis@gnu.org>
3557
6b57680d
MK
3558 * sun3-nat.c: Remove file.
3559 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
3560 dependencies.
3561 (ALLDEPFILES): Remove sun3-nat.c.
3562 (sun3-nat.o): Remove dependencies.
3563
29972665
MK
3564 * i386-interix-nat.c, i386-interix-tdep.c,
3565 config/i386/nm-interix.h, config/i386/interix.mh,
3566 config/i386/interix.mt: Remove files.
3567 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
3568 dependencies.
3569
f595cb19
MK
35702004-05-03 Mark Kettenis <kettenis@gnu.org>
3571
3572 * m68k-tdep.h (struct gdbarch_tdep): Add member
3573 struct_value_regnum.
3574 (m68k_svr4_init_abi): New prototype.
3575 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
3576 different calling conventions.
3577 (m68k_extract_return_value): Remove code dealing with single-field
3578 structs.
3579 (m68k_store_return_value): Remove code dealing with single-field
3580 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
3581 (m68k_extract_struct_value_address): Remove function.
3582 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
3583 (m68k_reg_struct_return_p, m68k_return_value)
3584 (m68k_svr4_return_value): New functions.
3585 (m68k_use_struct_convention): Remove function.
3586 (m68k_push_dummy_call): Use new struct_value_regnum member of
3587 `struct gdbarch_tdep' instead of hardcoded register number to
3588 store STRUCT_ADDR.
3589 (m68k_svr4_init_abi): New function.
3590 (m68k_gdbarch_init): Don't set extract_return_value,
3591 store_return_values, deprecated_extract_struct_value_address and
3592 use_struct_convention. Set return_value instead. Initialize new
3593 struct_value_regnum member of `struct gdbarch_tdep'.
3594 * m68klinux-tdep.c: Update copyright year.
3595 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
3596 (m68k_linux_extract_struct_value_address): Remove function.
3597 (m68k_linux_init_abi): Don't set extract_return_value,
3598 store_return_values, deprecated_extract_struct_value_address and
3599 use_struct_convention. Call m68k_svr4_init_abi but override the
3600 new struct_value_regnum member of `struct gdbarch_tdep'.
3601 * Makefile.in (m68k-tdep.o): Update dependencies.
3602
aaa75496
JB
36032004-05-03 J. Brobecker <brobecker@gnat.com>
3604
3605 * dwarf2read.c (line_header): Add new included_p field in
3606 field file_names.
3607 (partial_die_info): New field has_stmt_list. New field line_offset.
3608 (dwarf2_create_include_psymtab): New function.
3609 (dwarf2_build_include_psymtabs): New function.
3610 (add_file_name): Add forward declaration. Initialize new field.
3611 (dwarf_decode_lines): Add new parameter. Enhance this procedure
3612 to be able to determine the list of files included by the
3613 given unit, and build their associated psymtabs.
3614 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
3615 files as well.
3616 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
3617 (read_file_scope): Update call to dwarf_decode_lines.
3618 (read_partial_die): Handle DW_AT_stmt_list attributes.
3619
c848556f
MC
36202004-05-02 Michael Chastain <mec.gnu@mindspring.com>
3621
3622 Unfix PR gdb/1626.
3623 * configure.in: Revert special case for osf5.*.
3624 * configure: Regenerate.
3625
eb4556d7
JB
36262004-05-02 Jim Blandy <jimb@redhat.com>
3627
3628 Move the symbol-file-from-memory functions into their own file.
3629 * symfile-mem.c, symfile-mem.h: New files.
3630 * symfile.c (symbol_file_add_from_bfd): New function.
3631 (symbol_file_add): Call symbol_file_add_from_bfd.
3632 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
3633 Moved to symfile-mem.c.
3634 (_initialize_symfile): Move definition of
3635 add-symbol-file-from-memory command to symfile-mem.c.
3636 * symfile.h (symbol_file_add_from_bfd): New declaration.
3637 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
3638 * config/powerpc/linux.mt (TDEPFILES): Same.
3639 * Makefile.in (SFILES): Add symfile-mem.c.
3640 (symfile_mem_h): New variable.
3641 (HFILES_NO_SRCDIR): Add symfile-mem.h.
3642 (symfile-mem.o): New rule.
3643
80bb239e
AC
36442004-05-01 Andrew Cagney <cagney@redhat.com>
3645
7789d0fa
AC
3646 * breakpoint.c (insert_bp_location): Use get_frame_id, and
3647 frame_find_by_id instead of frame_relative_level.
3648 (do_enable_breakpoint): Ditto.
3649 * thread.c: Update copyright.
3650 (info_threads_command): Ditto, simplify.
3651
80bb239e
AC
3652 * frame.c (deprecated_generic_get_saved_register): Delete
3653 function, moved to "xstormy16-tdep.c".
3654 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
3655 deprecated_generic_get_saved_register from "frame.c".
3656 (xstormy16_frame_saved_register): Call
3657 xstormy16_get_saved_register.
3658 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
3659 static.
3660 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
3661 * frame.h (deprecated_generic_get_saved_register): Delete.
3662
b2a871dd
MC
36632004-05-01 Michael Chastain <mec.gnu@mindspring.com>
3664
3665 * dwarfread.c: Update documentation on the state of dwarf-1.
3666
0e100dab
AC
36672004-05-01 Andrew Cagney <cagney@redhat.com>
3668
acd8056e
AC
3669 * stack.c (select_frame_command): Delete call to
3670 frame_relative_level.
3671 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
3672 Delete #if0 code.
3673 (frame_info): Do not print FRAMELESS.
3674 (print_block_frame_labels): Replace DEPRECATED_STREQ.
3675 (catch_info): Delete #if0 code.
3676
0e100dab
AC
3677 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
3678 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
3679 of frame_relative_level.
3680 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
3681 to SENTINEL_FRAME.
3682 * frame.h (enum frame_type): Add SENTINEL_FRAME.
3683 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
3684 frame_relative_level.
3685
55699d59
AC
3686 * frame.h (deprecated_set_frame_type): Delete declaration.
3687 * frame.c (deprecated_set_frame_type): Delete function, update
3688 comments.
3689
fcf70625
AC
3690 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
3691 * gdbarch.h, gdbarch.c: Re-generate.
3692 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
3693 (shnbsd_pc_in_sigtramp): Delete.
3694 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
3695 pc_in_sigtramp.
3696 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
3697 pc_in_sigtramp.
3698 * frame.h: Update comments.
3699 * ppc-linux-tdep.c: Update comments.
3700 * breakpoint.c (bpstat_what): Update comments.
3701
ac5eccb7
AC
3702 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
3703 m68klinux-tdep.o's dependencies, were previously added to
3704 m68klinux-nat.o.
3705
f2524b93
AC
3706 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
3707 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
3708 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
3709 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
3710 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
3711
17e20bce
AC
3712 * Makefile.in (m68klinux-nat.o): Update dependencies.
3713 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
3714 (m68k_linux_sigtramp_frame_cache)
3715 (m68k_linux_sigtramp_frame_this_id)
3716 (m68k_linux_sigtramp_frame_prev_register)
3717 (m68k_linux_sigtramp_frame_unwind)
3718 (m68k_linux_sigtramp_frame_sniffer)
3719 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
3720 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
3721 names, use trad-frame.h.
3722 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
3723 (struct m68k_sigtramp_info): Delete.
3724 * m68k-tdep.c (m68k_sigtramp_frame_cache)
3725 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
3726 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
3727 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
3728 "m68klinux-tdep.c".
3729
c8864fa2
AC
3730 * infrun.c (check_sigtramp2): Delete check for
3731 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
3732
511dd2cd
MK
37332004-05-01 Mark Kettenis <kettenis@gnu.org>
3734
3735 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
3736
8c6b0e06
AC
37372004-05-01 Andrew Cagney <cagney@redhat.com>
3738
9df0bb3f
AC
3739 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
3740 (frv_linux_sigtramp_frame_cache)
3741 (frv_linux_sigtramp_frame_this_id)
3742 (frv_linux_sigtramp_frame_prev_register)
3743 (frv_linux_sigtramp_frame_unwind)
3744 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
3745 include "linux" in function and variable names, directly call
3746 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
3747 the latest trad-frame code.
3748 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
3749 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
3750 * Makefile.in (frv-linux-tdep.o): Update dependencies.
3751 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
3752 * frv-tdep.c (frv_sigtramp_frame_cache)
3753 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
3754 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
3755 frv-linux-tdep.c.
3756 (frv_gdbarch_init): Do not append a sigtramp sniffer.
3757 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
3758 (frv_set_sigcontext_reg_addr): Delete function.
3759
8c6b0e06
AC
3760 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
3761 (DEPRECATED_SIGTRAMP_END): Delete.
3762 * gdbarch.h, gdbarch.c: Re-generate.
3763 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
3764 * config/vax/tm-vaxbsd.h: Update copyright.
3765 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
3766 (DEPRECATED_IN_SIGTRAMP): Define.
3767 * config/m68k/tm-nbsd.h: Update copyright.
3768 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
3769 (DEPRECATED_IN_SIGTRAMP): Define.
3770
50ea7769
MK
37712004-05-01 Mark Kettenis <kettenis@gnu.org>
3772
03ac2a74
MK
3773 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
3774 encondings. Fixes PR gdb/1628.
3775
50ea7769
MK
3776 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
3777 DW_CFA_restore state without a matching DW_CFA_remember_state
3778 instead of aborting. Fixes PR backtrace/1589.
3779
9a5d7be1
JB
37802004-04-30 Joel Brobecker <brobecker@gnat.com>
3781
3782 * MAINTAINERS: Add self as AIX maintainer.
3783 Update my e-mail address in write-after-approval section.
3784
2593d1cd
AC
37852004-04-30 Andrew Cagney <cagney@redhat.com>
3786
ce12bbf9
AC
3787 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
3788 (legacy_get_prev_frame): Ditto.
3789
36710c63
AC
3790 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
3791 (mips_gdbarch_init): Do not set pc_in_sigtramp.
3792 * mipsread.c (sigtramp_address): Delete extern variable.
3793 (mipscoff_new_init): Delete reference.
3794 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
3795 (fixup_sigtramp): Delete function.
3796 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
3797 (fixup_sigtramp): Delete declarations.
3798
2593d1cd
AC
3799 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
3800 deprecated_pc_in_sigtramp.
3801 (ppcnbsd_pc_in_sigtramp): Delete function.
3802
2a25f91c
MK
38032004-05-01 Mark Kettenis <kettenis@gnu.org>
3804
3805 * config/m68k/nm-nbsd.h: Tweak comments.
3806 * config/m68k/nm-nbsdaout.h: Likewise.
3807
0b281939
AC
38082004-04-30 Andrew Cagney <cagney@redhat.com>
3809
3810 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
3811 legacy_pc_in_sigtramp.
3812 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
3813
8f2d3ea0
MK
38142004-05-01 Mark Kettenis <kettenis@gnu.org>
3815
3816 Add OpenBSD/m68k support.
3817 * NEWS (New native configurations): Mention OpenBSD/m68k.
3818 * m68kbsd-tdep.c: New file.
3819 * m68kbsd-nat.c: New file.
3820 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
3821 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
3822 * configure.host: Add m68k-*-openbsd.
3823 * configure.tgt: Add m68k-*-openbsd.
3824 * config/m68k/tm-obsd.h: New file.
3825 * config/m68k/obsd.mt: New file.
3826 * config/m68k/obsd.mh: New file.
3827 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
3828 m68kbsd-tdep.c.
3829
c40f49a4
AC
38302004-04-30 Andrew Cagney <cagney@redhat.com>
3831
3832 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
3833 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
3834
e81554cd
MK
38352004-04-30 Mark Kettenis <kettenis@gnu.org>
3836
3837 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
3838 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
3839
d4dc1a91
BF
38402004-04-30 Brian Ford <ford@vss.fsi.com>
3841
3842 Revert 2004-04-16 change.
3843 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
3844 (i386_coff_init_abi): Remove.
3845 * i386-tdep.h (i386_coff_init_abi): Remove.
3846 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
3847
2f72f850
AC
38482004-04-30 Andrew Cagney <cagney@redhat.com>
3849
e492f9d6
AC
3850 * blockframe.c (find_pc_partial_function): Delete use of
3851 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
3852 DEPRECATED_SIGTRAMP_END.
3853
7b7adad0
AC
3854 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
3855 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
3856 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
3857 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
3858 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
3859
2f72f850
AC
3860 * defs.h (deprecated_inside_entry_file): Delete declaration.
3861 * blockframe.c (deprecated_inside_entry_file): Delete function.
3862 (legacy_frame_chain_valid): Delete call.
3863 * sh64-tdep.c (sh64_frame_chain): Delete call.
3864 * objfiles.h: Update comments.
3865 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
3866 call.
3867 * frame.c (get_prev_frame): Delete call, update comments.
3868
283f90a7
BF
38692004-04-30 Brian Ford <ford@vss.fsi.com>
3870
3871 * MAINTAINERS (Write After Approval): Add myself.
3872
8ee56bcf
AC
38732004-04-30 Andrew Cagney <cagney@redhat.com>
3874
3875 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
3876 * gdbarch.h, gdbarch.c: Re-generate.
3877 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
3878 code.
3879
ee27e1b6
AC
38802004-04-30 Andrew Cagney <cagney@redhat.com>
3881
3882 * gdb-events.sh (selected_thread_changed)
3883 (selected_frame_level_changed, target_changed): Delete.
3884 * gdb-events.h, gdb-events.c: Re-generate.
3885 * valops.c (value_assign): Update.
3886 * stack.c (select_frame_command, up_silently_base)
3887 (down_silently_base): Update.
3888
d5ac5a39
AC
38892004-04-29 Andrew Cagney <cagney@redhat.com>
3890
3891 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
3892 registers correctly.
3893 (print_gp_register_row, mips32_heuristic_proc_desc)
3894 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
3895 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
3896 references to mips_isa_regsize.
3897
ceae6e75
AC
38982004-04-29 Andrew Cagney <cagney@redhat.com>
3899
3900 * mips-tdep.c (struct gdbarch_tdep): Delete
3901 mips_fp_register_double.
3902 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
3903 mips_abi_regsize.
3904 (mips_gdbarch_init): Do not set mips_fp_register_double.
3905 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
3906
a587af0b
AC
39072004-04-29 Joel Brobecker <brobecker@gnat.com>
3908
3909 Committed by Andrew Cagney.
3910 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
3911 function calls.
3912
13326b4e
AC
39132004-04-29 Andrew Cagney <cagney@redhat.com>
3914
3915 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
3916 gdbarch, use mips_abi, update callers.
3917 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
3918 mips_abi_regsize, update callers.
3919 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
3920 mips_default_abi_regsize.
3921 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
3922 mips_default_abi_regsize.
3923
711cc5cd
AC
39242004-04-29 Andrew Cagney <cagney@redhat.com>
3925
1b13c4f6
AC
3926 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
3927 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
3928 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
3929 mips_default_abi_regsize.
3930 (mips_isa_regsize): Rename mips_regisze.
3931 * mipsnbsd-tdep.c: Update.
3932 * mips-linux-tdep.c: Update.
3933 * irix5-nat.c: Update.
3934 * mips-tdep.h (mips_isa_regsize): Update.
3935
711cc5cd
AC
3936 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
3937 Delete all disabled code.
3938 * gdb-events.h, gdb-events.c: Re-generate.
3939
e63bbc88
MK
39402004-04-19 Jerome Guitton <guitton@gnat.com>
3941 Mark Kettenis <kettenis@gnu.org>
3942
3943 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
3944 the function begins with a branch instruction.
3945
fd35795f
MK
39462004-04-29 Mark Kettenis <kettenis@gnu.org>
3947
3948 * i386-tdep.c: Fix spelling mistakes.
3949
c960c18f
AC
39502004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3951 Andrew Cagney <cagney@redhat.com>
3952
3953 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
3954 <sys/proc.h>.
3955 * acconfig.h: Provide default _KMEMUSER value.
3956 * config.in, configure: Re-generate.
3957 * NEWS: Mention fix.
3958
50306a9d
RC
39592004-04-24 Randolph Chung <tausq@debian.org>
3960
3961 * configure.host (hppa*-*-linux*): New target.
3962 * configure.tgt (hppa*-*-linux*): Likewise.
3963 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
3964 gdbarch_init_osabi() call earlier so that osabi-specific frame
3965 unwinders can be registered first.
3966 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
3967 hppa-linux-nat.c.
3968 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
3969 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
3970 * config/pa/linux.mh: New file.
3971 * config/pa/linux.mt: New file.
3972 * config/pa/nm-linux.h: New file.
3973 * config/pa/xm-linux.h: New file.
3974 * hppa-linux-nat.c: New file.
3975 * hppa-linux-tdep.c: New file.
3976
2a6228ef
RC
39772004-04-28 Randolph Chung <tausq@debian.org>
3978
3979 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
3980 return values.
3981 (hppa32_push_dummy_call): Fix small struct and floating point argument
3982 passing, and make sure the stack frame is properly aligned.
3983
82c10df6
AC
39842004-04-28 Andrew Cagney <cagney@redhat.com>
3985
d762c46a
AC
3986 * stack.c (print_stack_frame): Fix description.
3987
82c10df6
AC
3988 * NEWS: Mention gdb/gdbserver/configure execute permission
3989 changed. PR server/519.
3990
0faf0076
AC
39912004-04-28 Andrew Cagney <cagney@redhat.com>
3992
3993 * stack.c (print_stack_frame_stub): Delete declaration.
3994 (struct print_stack_frame_args, print_stack_frame)
3995 (print_frame_info, print_frame): Replace "source" with print what.
3996 Replace "print" with "print_level". Replace "args" with
3997 "print_args".
3998 * frame.h (show_and_print_stack_frame, print_stack_frame)
3999 (print_frame_info): Update declarations.
4000 * stack.c (select_and_print_frame, frame_command)
4001 (current_frame_command, up_command, down_command): Update calls -
4002 use get_selected_frame, pass "enum print_what" for source, do not
4003 call frame_relative_level.
4004 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
4005 * remote-rdp.c (remote_rdp_open): Ditto.
4006 * remote-mips.c (common_open): Ditto.
4007 * remote-e7000.c (e7000_start_remote): Ditto.
4008 * ocd.c (ocd_start_remote): Ditto.
4009 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
4010 * infrun.c (normal_stop): Ditto.
4011 * inflow.c (kill_command): Ditto.
4012 * infcmd.c (finish_command): Ditto.
4013 * corelow.c (core_open): Ditto.
4014 * tracepoint.c (finish_tfind_command): Ditto.
4015 * thread.c (info_threads_command, info_threads_command)
4016 (restore_current_thread, do_captured_thread_select): Ditto.
4017 * ada-tasks.c (task_command): Ditto.
4018
f4c5303c
OF
40192004-04-26 Orjan Friberg <orjanf@axis.com>
4020
4021 * frame.c: Include "observer.h".
4022 (frame_observer_target_changed): New function.
4023 (_initialize_frame): Attach target_changed observer.
4024 * regcache.c: Include "observer.h".
4025 (regcache_observer_target_changed): New function.
4026 (_initialize_regcache): Attach target_changed observer.
4027 * valops.c: Include "observer.h".
4028 (value_assign): Notify target_changed event when modifying register.
4029 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
4030
7270d8f2
OF
40312004-04-26 Orjan Friberg <orjanf@axis.com>
4032
4033 From Paul Koning <pkoning@equallogic.com>:
4034 * breakpoint.c (free_valchain): New function.
4035 (insert_bp_location, delete_breakpoint): Use free_valchain.
4036 (remove_breakpoint): Do not remove the valchain.
4037 (bpstat_stop_status): If not stopped by watchpoint, skip
4038 watchpoints when generating stop status list.
4039 * infrun.c (handle_inferior_event): Make
4040 stepped_after_stopped_by_watchpoint a global variable.
4041 * remote.c (remote_stopped_data_address): Return watch data
4042 address rather than zero if stepped_after_stopped_by_watchpoint is
4043 set.
4044
02d62932
MC
40452004-04-25 Michael Chastain <mec.gnu@mindspring.com>
4046
4047 Fix PR gdb/1626.
4048 * configure.in: Check for curses after termcap.
4049 On osf5.*, do not check for ncurses.
4050 * configure: Regenerate.
4051
3e9a183c
MK
40522004-04-25 Mark Kettenis <kettenis@gnu.org>
4053
c79ac407
MK
4054 * ppcobsd-nat.c: Include "ppc-tdep.h".
4055 * Makefile.in (ppcobsd-nat.o): Update dependencies.
4056
3e9a183c
MK
4057 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
4058 Fixes PR tdep/1623 and PR tdep/1624.
4059
38cc9c28
MC
40602004-04-24 Michael Chastain <mec.gnu@mindspring.com>
4061
4062 * xmodem.h, xmodem.c: Remove files.
4063 * Makefile.in: Remove references to xmodem.h, xmodem.c.
4064
7f07c5b6
RC
40652004-04-23 Randolph Chung <tausq@debian.org>
4066
4067 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
4068 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
4069 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
4070 for handling stackless frames.
4071 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
4072
9f7194c3
RC
40732004-04-23 Randolph Chung <tausq@debian.org>
4074
4075 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
4076 starts at a pc before the frame is created.
4077
dcff6009
JB
40782004-04-23 Joel Brobecker <brobecker@gnat.com>
4079
4080 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
4081
65951cd9
JG
40822004-04-23 Jerome Guitton <guitton@gnat.fr>
4083
4084 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
4085 use convert_typed_floating to get the appropriate format.
4086
abc485a1
RC
40872004-04-22 Randolph Chung <tausq@debian.org>
4088
4089 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
4090 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
4091 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
4092 (hppa_sign_extend): Add prototype.
4093 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
4094 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
4095 (sign_extend): Rename with hppa_ prefix and make non-static. Other
4096 hppa targets will also use these functions.
4097 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
4098 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
4099 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
4100 (hppa_gdbarch_init): Remove gdbarch setting of
4101 skip_trampoline_code, in_solib_call_trampoline and
4102 in_solib_return_trampoline.
4103 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4104 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
4105 hppa_in_solib_call_trampoline.
4106 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
4107 Moved from hppa-tdep.c.
4108 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
4109 in_solib_call_trampoline and in_solib_return_trampoline.
4110
369aa520
RC
41112004-04-22 Randolph Chung <tausq@debian.org>
4112
4113 * hppa-tdep.c (hppa_debug): New variable.
4114 (find_unwind_entry, hppa_frame_cache): Add debug output.
4115 (_initialize_hppa_tdep): Add command to set debug flag.
4116
476be15e
AC
41172004-04-22 Andrew Cagney <cagney@redhat.com>
4118
4119 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
4120 "trad-frame.h".
4121 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
4122 signal trampoline unwinder.
4123 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
4124
d195bc9f
MK
41252004-04-22 Mark Kettenis <kettenis@gnu.org>
4126
4127 Add OpenBSD/powerpc support.
4128 * NEWS (New native configurations): Mention OpenBSD/powerpc.
4129 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
4130 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
4131 (ppc_collect_fpregset): New prototypes.
4132 * ppcobsd-nat.c: New file.
4133 * ppcobsd-tdep.c: New file.
4134 * ppcobsd-tdep.h: New file.
4135 * rs6000-tdep.c: Include "regset.h".
4136 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
4137 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
4138 New functions.
4139 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
4140 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
4141 (rs6000-tdep.o): Update dependencies.
4142 * configure.host: Add powerpc-*-openbsd.
4143 * configure.tgt: Add powerpc-*-openbsd.
4144 * config/powerpc/obsd.mh: New file.
4145 * config/powerpc/nm-obsd.h: New file.
4146 * config/powerpc/obsd.mt: New file.
4147
6f14cc33
AC
41482004-04-22 Andrew Cagney <cagney@redhat.com>
4149
fcf29e5f
AC
4150 * frame.h (show_frame_info): Delete declaration.
4151
6f14cc33
AC
4152 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
4153 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
4154 * m32r-tdep.c (m32r_frame_this_id): Ditto.
4155 * frv-tdep.c (frv_frame_this_id): Ditto.
4156 * avr-tdep.c (avr_frame_this_id): Ditto.
4157
e5786a5c
EZ
41582004-04-22 Elena Zannoni <ezannoni@redhat.com>
4159
4160 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
4161
26e75e5c
JB
41622004-04-22 Jim Blandy <jimb@redhat.com>
4163
4164 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
4165 register number zero.
4166
d8d65dd3
MS
41672004-04-21 Michael Snyder <msnyder@redhat.com>
4168
4169 * mips-tdep.c (heuristic_proc_start):
4170 Warning() already prefixes "Warning: ".
4171
9a4105ab
AC
41722004-04-21 Andrew Cagney <cagney@redhat.com>
4173
4174 * annotate.h (deprecated_annotate_starting_hook)
4175 (deprecated_annotate_stopped_hook)
4176 (deprecated_annotate_exited_hook)
4177 (deprecated_annotate_signal_hook)
4178 (deprecated_annotate_signalled_hook): Deprecate.
4179 * tracepoint.h (deprecated_create_tracepoint_hook)
4180 (deprecated_delete_tracepoint_hook)
4181 (deprecated_modify_tracepoint_hook)
4182 (deprecated_trace_find_hook)
4183 (deprecated_trace_start_stop_hook): Deprecate.
4184 * target.h (deprecated_target_new_objfile_hook): Deprecate.
4185 * remote.h (deprecated_target_resume_hook)
4186 (deprecated_target_wait_loop_hook): Deprecate.
4187 * gdbcore.h (deprecated_exec_file_display_hook)
4188 (deprecated_file_changed_hook): Deprecate.
4189 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
4190 * defs.h (deprecated_modify_breakpoint_hook)
4191 (deprecated_command_loop_hook, deprecated_show_load_progress)
4192 (deprecated_print_frame_info_listing_hook)
4193 (deprecated_query_hook, deprecated_warning_hook)
4194 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
4195 (deprecated_delete_breakpoint_hook)
4196 (deprecated_interactive_hook, deprecated_registers_changed_hook)
4197 (deprecated_readline_begin_hook, deprecated_readline_hook)
4198 (deprecated_readline_end_hook, deprecated_register_changed_hook)
4199 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
4200 (deprecated_context_hook, deprecated_target_wait_hook)
4201 (deprecated_attach_hook, deprecated_detach_hook)
4202 (deprecated_call_command_hook, deprecated_set_hook)
4203 (deprecated_error_hook, deprecated_error_begin_hook)
4204 (deprecated_ui_load_progress_hook): Deprecate.
4205 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
4206 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
4207 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
4208 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
4209 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
4210 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
4211 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
4212 * annotate.c, aix-thread.c: Update.
4213
62cf13cc
AC
42142004-04-21 Andrew Cagney <cagney@redhat.com>
4215
b2e31a62
AC
4216 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
4217 * vaxnbsd-tdep.c: Include "gdb_string.h".
4218
62cf13cc
AC
4219 * symfile.c (symbol_file_add_from_memory): #if 0 function.
4220 (add_symbol_file_from_memory_command): #if 0 function body, call
4221 error instead.
4222
00e32a35
AC
42232004-04-21 Andrew Cagney <cagney@redhat.com>
4224
4225 * gdbcore.h: Update copyright.
4226 (deprecated_add_core_fns): Rename add_core_fns.
4227 * win32-nat.c (_initialize_core_win32): Update.
4228 * sun3-nat.c (_initialize_core_sun3): Update.
4229 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
4230 * rs6000-nat.c (_initialize_core_rs6000): Update.
4231 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
4232 * nto-tdep.c (_initialize_nto_tdep): Update.
4233 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
4234 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
4235 * mips-nat.c (_initialize_core_mips): Update.
4236 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
4237 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
4238 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
4239 * lynx-nat.c (_initialize_core_lynx): Update.
4240 * irix5-nat.c (_initialize_core_irix5): Update.
4241 * i386-interix-nat.c (_initialize_core_interix): Update.
4242 * cris-tdep.c (_initialize_cris_tdep): Update.
4243 * corelow.c (deprecated_add_core_fns): Update.
4244 * core-regset.c (_initialize_core_regset): Update.
4245 * core-aout.c (_initialize_core_aout): Update.
4246 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
4247 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
4248 * alpha-nat.c (_initialize_core_alpha): Update.
4249
13c7b1ca
JB
42502004-04-21 Jim Blandy <jimb@redhat.com>
4251
4252 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
4253
7b5a2f43
DJ
42542004-04-19 Daniel Jacobowitz <drow@mvista.com>
4255
4256 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
4257 Delete.
4258 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
4259 (read_attribute_value): Update calls to dwarf_alloc_block.
4260 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
4261 dwarf2_tmp_obstack.
4262 (psymtab_to_symtab_1): Likewise. Clean up using
4263 free_stack_comp_unit.
4264 (add_to_cu_func_list): Use the comp_unit_obstack.
4265
05cf31d1
JB
42662004-04-19 Joel Brobecker <brobecker@gnat.com>
4267
4268 * dwarf2read.c (dwarf2_flag_true_p): New function.
4269 (die_is_declaration): Use the function above. Add some comments.
4270
adf93a2f
MK
42712004-04-19 Mark Kettenis <kettenis@gnu.org>
4272
4273 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
4274 architecture when registering sparcnbsd_core_osabi_sniffer.
4275 Adjust comment.
4276
748894bf
MK
42772004-04-18 Mark Kettenis <kettenis@gnu.org>
4278
f622ad42
MK
4279 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
4280 return value.
4281
c4fc7f1b
MK
4282 Based on a patch from Brian Ford <ford@vss.fsi.com>:
4283 * i386-tdep.c: Correct register numbering scheme comments
4284 throughout.
4285 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
4286 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
4287 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
4288 (i386_gdb_arch_init): Likewise.
4289
b4ead1bd
MK
4290 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
4291 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
4292 ppcnbsd-tdep.o.
4293
748894bf
MK
4294 * m68k-tdep.h: Tweak comments.
4295 * m68k-tdep.c: Tweak comment.
4296
fdd72f95
RC
42972004-04-17 Randolph Chung <tausq@debian.org>
4298
4299 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
4300 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
4301 (hppa_hpux_som_init_abi): Set is_elf to 0.
4302 (hppa_hpux_elf_init_abi): Set is_elf to 1.
4303 * hppa-tdep.c (low_text_segment_address): Remove global.
4304 (record_text_segment_lowaddr): Pass in low address as parameter. Use
4305 section offset to calculate segment address.
4306 (internalize_unwinds): Define low_text_segment_address as local and
4307 pass to record_text_segment_lowaddr for ELF targets.
4308 (hppa_gdbarch_init): Zero fill tdep structure.
4309 (hppa_dump_tdep): Print tdep structure.
4310 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
4311
0f8d9d59
RC
43122004-04-17 Randolph Chung <tausq@debian.org>
4313
4314 * hppa-tdep.c (hppa_pseudo_register_read): Define.
4315 (hppa_gdbarch_init): Set pseudo_register_read.
4316 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
4317 * regcache.c (supply_register): Remove check for
4318 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
4319
7c46b9fb
RC
43202004-04-17 Randolph Chung <tausq@debian.org>
4321
4322 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
4323 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
4324 (hpread_adjust_stack_address): Move to hpread.c.
4325 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
4326 obj_private_struct): Move from tm-hppa.h.
4327 * hpread.c (hppa-tdep.h): Include.
4328 (hpread_adjust_stack_address): Move from hppa-tdep.c.
4329 (hpread_read_function_type, hpread_read_doc_function_type)
4330 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
4331 directly.
4332 * pa64solib.c (hppa-tdep.h): Include.
4333 * somsolib.c (hppa-tdep.h): Include.
4334 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
4335 inferior_status): Remove unused forward declarations.
4336 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
4337 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
4338 obj_private_struct): Move to hppa-tdep.h.
4339 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
4340
8d153463
RC
43412004-04-17 Randolph Chung <tausq@debian.org>
4342
4343 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
4344 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
4345 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
4346 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
4347 Remove forward declaration and make static.
4348 (hppa_reg_struct_has_addr): Remove.
4349
350c2e5b
JB
43502004-04-16 Joel Brobecker <brobecker@gnat.com>
4351
4352 * observer.sh: Move comments in sed command to first column.
4353
bbde78fa
JM
43542004-04-16 Jason Molenda (jmolenda@apple.com)
4355
4356 * frame.c: Minor typeo corrections in comments.
4357
e0270fd9
JB
43582004-04-16 Joel Brobecker <brobecker@gnat.com>
4359
4360 * observer.c (observer_test_first_notification_function): Update
4361 function profile.
4362 (observer_test_second_notification_function): Likewise.
4363 (observer_test_third_notification_function): Likewise.
4364
3d049254
MK
43652004-04-16 Mark Kettenis <kettenis@gnu.org>
4366
4367 From Brian Ford <ford@vss.fsi.com>:
4368 * i386-tdep.c (i386_coff_init_abi): New function.
4369 * i386-tdep.h (i386_coff_init_abi): New prototype.
4370 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
4371 register number translation functions for DWARF and DWARF 2.
4372
7867684d
JB
43732004-04-16 Joel Brobecker <brobecker@gnat.com>
4374
4375 * dwarf2read.c: Back out my previous change, it was incorrect.
4376
72bf9492
DJ
43772004-04-16 Daniel Jacobowitz <drow@mvista.com>
4378
4379 * dwarf2read.c: Include "hashtab.h".
4380 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
4381 has_namespace_info.
4382 (struct partial_die_info): Add comments. Use bitfields to reduce
4383 memory footprint. Add scope, scope_set, has_specification,
4384 spec_offset, die_parent, die_child, and die_sibling.
4385 (peek_die_abbrev): Add prototype.
4386 (partial_read_comp_unit_head): New function, broken out from
4387 dwarf2_build_psymtabs_hard.
4388 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
4389 Use partial_read_comp_unit_head. Initialize the CU and
4390 comp_unit_obstack. Update calls to read_partial_die and
4391 scan_partial_symbols. Use free_stack_comp_unit and
4392 load_partial_dies.
4393 (scan_partial_symbols): Change PDI to a pointer. Use the child and
4394 sibling pointers to walk partial DIEs. Call fixup_partial_die.
4395 Update calls to helper functions. Remove NAMESPACE argument.
4396 Update comments.
4397 (partial_die_parent_scope, partial_die_full_name): New functions.
4398 (add_partial_symbol): Remove namespace argument. Update call to
4399 pdi_needs_namespace. Use partial_die_full_name. Handle
4400 DW_TAG_namespace. Check has_namespace_info flag.
4401 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
4402 tag. Handle namespaces.
4403 (add_partial_namespace, add_partial_enumeration): Simplify.
4404 (guess_structure_name): New function, derived from
4405 add_partial_structure.
4406 (add_partial_structure): Remove.
4407 (determine_class_name): Update comment.
4408 (dwarf2_read_abbrevs): Set has_namespace_info flag.
4409 (is_type_tag_for_partial, load_partial_dies): New functions.
4410 (read_partial_die): Pass abbrev and abbrev_len as arguments.
4411 Record specifications instead of following them immediately.
4412 (find_partial_die_in_comp_unit, find_partial_die)
4413 (fixup_partial_die, free_stack_comp_unit)
4414 (hashtab_obstack_allocate, dummy_obstack_deallocate)
4415 (partial_die_hash, partial_die_eq): New functions.
4416 * Makefile.in (hashtab_h): Define.
4417 (dwarf2read.o): Update dependencies.
4418 (observer_inc, observer_h): Move to the correct section.
4419
fdc860a3
JB
44202004-04-15 Joel Brobecker <brobecker@gnat.com>
4421
4422 * dwarf2read.c (dwarf2_attribute_true_p): New function.
4423 (die_is_declaration): Use the function above. Add comment.
4424
dc718098
JB
44252004-04-15 Joel Brobecker <brobecker@gnat.com>
4426
4427 * dwarf2read.c (read_structure_scope): Identify stub types
4428 using die_is_declaration() only.
4429
8718a420
RM
44302004-04-15 Roland McGrath <roland@redhat.com>
4431
4432 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
4433 argument instead of NAME.
4434 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
4435 in call to symbol_file_add_with_addrs_or_offsets.
4436 (build_addr_info): New function, helper for ...
4437 (symbol_file_add_from_memory): New function.
4438 (add_symbol_file_from_memory_command): New function using that.
4439 (_initialize_symfile): Register it for add-symbol-file-from-memory.
4440 (pre_add_symbol_hook): Add const to argument type.
4441 * symfile.h (symbol_file_add_from_memory): Declare it.
4442
8b910bab
MK
44432004-04-15 Mark Kettenis <kettenis@gnu.org>
4444
9f076e7a
MK
4445 * NEWS (New native configurations): Mention OpenBSD/vax.
4446 * configure.host: Add vax-*-openbsd*.
4447 * config/vax/obsd.mh: New file.
4448 * config/vax/nm-obsd.h: New file.
4449
8b910bab
MK
4450 * vax-tdep.c: Include "regset.h".
4451 (vax_supply_gregset): New function.
4452 (vax_gregset): New variable.
4453 (vax_regset_from_core_section): New function.
4454 (vax_gdbarch_init): Set regset_from_core_section.
4455 * Makefile.in (vax-tdep.o): Update dependencies.
4456
7a464420
AC
44572004-04-15 Andrew Cagney <cagney@redhat.com>
4458
4459 * observer.c (normal_stop_subject, observer_notify_normal_stop)
4460 (observer_normal_stop_notification_stub)
4461 (observer_attach_normal_stop, observer_detach_normal_stop):
4462 Delete, replaced by #include "observer.inc".
4463 * infrun.c (normal_stop): Pass "stop_bpstat" to
4464 observer_notify_normal_stop.
4465 * Makefile.in (observer_inc): Define.
4466 (observer.o): Update dependencies.
4467 (observer.h, observer.inc): New rules.
4468 * observer.h: Delete file.
4469 * observer.sh: New file.
4470
e36ad527
MK
44712004-04-15 Mark Kettenis <kettenis@gnu.org>
4472
4473 * vax-tdep.c (vax_frame_cache): Fix typo.
4474
67b441e1
MK
44752004-04-14 Mark Kettenis <kettenis@gnu.org>
4476
6f606e1c
MK
4477 * NEWS (New native configurations): Mention NetBSD/vax.
4478 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
4479 * config/vax/nbsdelf.mh: New file.
4480 * config/vax/nbsdaout.mh: New file.
4481 * config/vax/nm-nbsd.h: New file.
4482 * config/vax/nm-nbsdaout.h: New file.
4483
9c5519a5
MK
4484 * vaxnbsd-tdep.c: New file.
4485 * Makefile.in (vaxnbsd-tdep.o): New dependency.
4486 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
4487 * config/vax/nbsd.mt: New file.
4488 * config/vax/tm-nbsd.h: New file.
4489
4844a614
MK
4490 * Makefile.in (vaxbsd-nat.o): New dependency.
4491
67b441e1
MK
4492 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
4493 * vax-tdep.c (vax_store_arguments): Remove struct_return and
4494 struct_addr arguments. Don't push return value address.
4495 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
4496 arguments to vax_store_arguments. Store return value address in
4497 R1.
4498 (vax_store_struct_return, vax_extract_return_value)
4499 (vax_store_return_value): Remove functions.
4500 (vax_return_value): New function.
4501 (vax_gdbarch_init): Set return value. Don't set
4502 deprecated_store_struct_return, deprecated_extract_struct_return
4503 and deprecated_store_return_value.
4504
6672f2ae
AS
45052004-04-14 Andreas Schwab <schwab@suse.de>
4506
4507 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
4508 value buffer.
4509 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
4510
7346c184
MK
45112004-04-14 Mark Kettenis <kettenis@gnu.org>
4512
4513 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
4514 (vax_unwind_dummy_id): New functions.
4515 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
4516 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
4517 variables.
4518 (vax_fix_call_dummy): Remove function.
4519 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
4520 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
4521 call_dummy_location, deprecated_call_dummy_words,
4522 deprecated_sizeof_call_dummy_words,
4523 deprecated_call_dummy_breakpoint_offset,
4524 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
4525 and deprecated_dummy_write_sp.
4526
58e23df4
DC
45272004-04-13 David Carlton <carlton@kealia.com>
4528
4529 * MAINTAINERS: Move myself to "paper trail" section.
4530
5e6b39ff
MK
45312004-04-12 Mark Kettenis <kettenis@gnu.org>
4532
7def7fef
MK
4533 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
4534 "trad-frame.h".
4535 (vax_frame_init_saved_regs): Remove function.
4536 (vax_sigtramp_saved_pc): Remove function.
4537 (vax_frame_saved_pc): Remove function.
4538 (vax_frame_args_address): Remove function.
4539 (vax_frame_num_args): Rewrite.
4540 (vax_frame_chain): Remove function.
4541 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
4542 VAX_FP_REGNUM.
4543 (vax_pop_frame): Likewise.
4544 (vax_saved_pc_after_call): Remove function.
4545 (struct vax_frame_cache): New structure.
4546 (vax_frame_cache): New function.
4547 (vax_frame_this_id): New function.
4548 (vax_frame_prev_register): New function.
4549 (vax_frame_unwind): New variable.
4550 (vax_frame_sniffer): New function.
4551 (vax_frame_base_address): New function.
4552 (vax_frame_args_address): New function.
4553 (vax_frame_base): New variable.
4554 (vax_unwind_pc): New function.
4555 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
4556 deprecated_fp_regnum, deprecated_saved_pc_after_call,
4557 deprecated_frame_chain, deprecated_frame_saved_pc,
4558 deprecated_frame_args_address and
4559 deprecated_frame_init_saved_regs.
4560 * Makefile.in (vax-tdep.o): Update dependencies.
4561
53284fc1
MK
4562 * vaxbsd-nat.c: New file.
4563
5e6b39ff
MK
4564 * vax-tdep.h: Update copyright year. Adjust comments.
4565 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
4566 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
4567 (vax_regnum): New enum. Replacing...
4568 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
4569 (VAX_PS_REGNUM): ... these removed macros.
4570 * vax-tdep.c (vax_register_name): Remove prototype.
4571 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
4572 (vax_register_byte, vax_register_raw_size,
4573 vax_register_virtual_size, vax_register_virtual_type): Remove
4574 functions.
4575 (vax_register_type): New function.
4576 (vax_breakpoint_from_pc): Reorganize.
4577 (vax_gdbarch_init): Set register_type. Don't set
4578 deprecated_register_size, deprecated_register_bytes,
4579 deprecated_register_byte, deprecated_register_raw_size,
4580 deprecated_max_register_raw_size,
4581 deprecated_register_virtual_size,
4582 deprecated_max_register_virtual_size and
4583 deprecated_register_virtual_type. Add comment on stack direction.
4584
e9c71e9f
MK
45852004-04-11 Mark Kettenis <kettenis@gnu.org>
4586
4587 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
4588 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 4589 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 4590
d46f1176 45912004-04-10 Randolph Chung <tausq@debian.org>
8718a420 4592
d46f1176
RC
4593 * MAINTAINERS (write after approval): Add myself.
4594
a2a84a72
RC
45952004-04-07 Randolph Chung <tausq@debian.org>
4596
4597 * hppa-tdep.c (hppa_inner_than): Remove.
4598 (is_pa_2): Remove unused static variable.
8718a420 4599 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 4600
e85c3284
PH
46012004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
4602
4603 * language.h (language_defn): Add new la_post_parser field.
4604 * parser-defs.h (null_post_parser): New declaration (default for
4605 la_post_parser).
8718a420 4606
e85c3284
PH
4607 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
4608 insert call to that function.
4609 (parse_exp_in_context): New function, including code formerly in
8718a420 4610 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
4611 prefixification.
4612 (parse_expression_in_context): New exported function.
4613 (null_post_parser): New definition.
4614 * expression.h (parse_expression_in_context): Add declaration.
8718a420 4615
e85c3284
PH
4616 * p-lang.c (pascal_language_defn): Add trivial post-parser.
4617 * c-lang.c (c_language_defn): Ditto.
4618 (cplus_language_defn): Ditto.
4619 (asm_language_defn): Ditto.
4620 (minimal_language_defn): Ditto.
4621 * f-lang.c (f_language_defn): Ditto.
4622 * jv-lang.c (java_language_defn): Ditto.
4623 * language.c (unknown_language_defn): Ditto.
4624 (auto_language_defn): Ditto.
4625 (local_language_defn): Ditto.
4626 * m2-lang.c (m2_language_defn): Ditto.
4627 * scm-lang.c (scm_language_defn): Ditto.
4628 * obj-lang.c (objc_language_defn): Ditto.
8718a420 4629
d9f8c85b
MK
46302004-04-10 Mark Kettenis <kettenis@gnu.org>
4631
fa34704a
MK
4632 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
4633 (amd64nbsd_mcontext_addr): New function.
4634 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
4635 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
4636 with amd64nbsd_r_reg_offset, instead of building it on the fly.
4637
403e1656
MK
4638 * corelow.c (core_xfer_partial): Fix coding standards violation.
4639 Add support for TARGET_OBJECT_WCOOKIE.
4640
a57e5a95
MK
4641 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
4642 deprecated_pc_in_sigtramp.
4643 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
4644 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
4645 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
4646 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
4647 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
4648 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
4649 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
4650
377d9ebd
MK
4651 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
4652 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
4653 Fix typo.
4654
f0ef85a5
MK
4655 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
4656 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
4657 (amd64_collect_fxsave): Likewise.
4658
d9f8c85b
MK
4659 * i386-sol2-tdep.c: Include "gdb_string.h".
4660 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
4661 name.
4662 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
4663
75f501b5
MK
46642004-04-10 Mark Kettenis <kettenis@gnu.org>
4665
4666 * i386-sol2-tdep.c: Include "solib-svr4.h".
4667 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
4668 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
4669 * config/i386/tm-i386sol2.h: Include :solib.h".
4670 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
4671 solib-svr4.o and solib-legacy.o.
4672 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
4673 solib-svr4.o.
4674
b31bc724
MK
46752004-04-09 Mark Kettenis <kettenis@gnu.org>
4676
18bbbd9e
MK
4677 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
4678 whether a register is supplied by PTRACE_GETFPREGS.
4679 (store_inferior_registers): Likewise.
4680 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
4681 whether a register is supplied by PT_GETFPREGS.
4682 (store_inferior_registers): Likewise.
4683
3c30bf1b
MK
4684 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
4685 * config/i386/linux64.mt (TDEPFILES): Likewise.
4686
a4194092
MK
4687 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
4688
911bc6ee
MK
4689 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
4690 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
4691 the program counter is in the range specified by `struct
4692 gdbarch_tdep'.
4693 * amd64-linux-tdep.c: Include "symtab.h".
4694 (amd64_linux_pc_in_sigtramp): Remove function.
4695 (amd64_linux_sigtramp_p): New function.
4696 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
4697 deprecated_pc_in_sigtramp.
4698 * amd64nbsd-tdep.c: Include "symtab.h".
4699 (amd64nbsd_sigtramp_p): New function.
4700 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
4701 deprecated_pc_in_sigtramp.
4702 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
4703 few comments.
4704 (amd64obsd_pc_in_sigtramp): Remove function.
4705 (amd64obsd_sigtramp_p): New function.
4706 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
4707 deprecated_pc_in_sigtramp.
4708 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
4709 (i386bsd_pc_ins_sigtramp): Remove prototype.
4710 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
4711 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
4712 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
4713 the program counter is in the range specified by `struct
4714 gdbarch_tdep'.
4715 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
4716 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
4717 (i386_go32_pc_in_sigtramp): Remove function.
4718 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
4719 Initialize TDEP->sigtramp_p.
4720 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
4721 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
4722 deprecated_pc_in_sigtramp.
4723 * i386-linux-tdep.c: Adjust comments.
4724 (i386_linux_pc_in_sigtramp): Remove function.
4725 (i386_linux_sigtramp_p): New function.
4726 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
4727 deprecated_pc_in_sigtramp.
4728 * i386-nto-tdep.c: Update copyright year.
4729 (i386nto_pc_in_sigtramp): Remove function.
4730 (i386nto_sigtramp_p): New function.
4731 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
4732 SP_REGNUM.
4733 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
4734 deprecated_pc_in_sigtramp.
4735 * i386-sol2-tdep.c: Update copyright year.
4736 (i386_sol2_pc_in_sigtramp): Remove function.
4737 (i386_sol2_sigtramp_p): New function.
4738 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
4739 deprecated_pc_in_sigtramp.
4740 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
4741 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
4742 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
4743 deprecated_sigtramp_start and deprecated_sigtramp_end.
4744 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
4745 (i386nbsd_pc_in_sigtramp): Remove function.
4746 (i386nbsd_sigtramp_p): New function.
4747 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
4748 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
4749 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
4750 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
4751 (i386obsd_pc_in_sigtramp): Remove function.
4752 (i386obsd_sigtramp_p): New function.
4753 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
4754 functions.
4755 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
4756 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
4757 TDEP->sigtramp_p.
4758 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
4759 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
4760 dependencies.
4761
e083e6ec
MK
4762 * config/i386/i386aout.mt: Remove file.
4763
bd153b94
MK
4764 * configure.tgt: Remove i[34567]86-*-go32*,
4765 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
4766 and i[34567]86-*-isc*. Set gdb_target to i386 for
4767 i[34567]86-*-netware* and i[34567]86-*-*.
4768 * config/i386/i386.mt: New file.
4769 * config/i386/embed.mt: Remove file.
4770 * config/i386/go32.mt: Remove file.
4771 * config/i386/i386nw.mt: Remove file.
4772 * config/i386/i386v.mt: Remove file.
4773 * config/i386/tm-go32.h: Remove file.
4774
4a1bcc8c
MK
4775 * tui/tui-hooks.c: Include "readline/readline.h" after
4776 "gdb_curses.h" instead of before.
4777 * tui/tui-io.c: Likewise.
4778
f9a79064
MK
4779 * tui/tui.c: Fix typo in comment.
4780
b31bc724
MK
4781 * sparc64-tdep.c (sparc_address_from_register): Remove function.
4782
f83f82bc
AC
47832004-04-08 Andrew Cagney <cagney@redhat.com>
4784
4785 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
4786 (deprecated_exception_support_initialized): Declare.
8718a420 4787 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
4788 (initialize_hp_cxx_exception_support)
4789 (child_enable_exception_callback): Update.
4790 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
4791 (deprecated_exception_support_initialized): Rename
4792 deprecated_exception_catchpoints_are_fragile and
4793 deprecated_exception_support_initialized.
4794 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
4795
4796 * symtab.c (deprecated_hp_som_som_object_present): Rename
4797 hp_som_som_object_present.
4798 * symtab.h (deprecated_hp_som_som_object_present): Declare.
4799 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
4800 Update. Delete extern declaration.
4801 * valops.c (hp_som_som_object_present): Ditto.
8718a420 4802 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
4803 (parse_nested_classes_for_hpacc): Ditto.
4804 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 4805 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
4806 (initialize_hp_cxx_exception_support): Ditto.
4807 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 4808 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 4809 (cp_print_class_method): Ditto.
8718a420 4810 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
4811 (c_type_print_base): Ditto.
4812 * c-exp.y (hp_som_som_object_present): Ditto.
4813
fb2be677
AC
48142004-04-08 Andrew Cagney <cagney@redhat.com>
4815
4816 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
4817 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
4818 (frame_unwind_find_by_frame): Re-implement the unwind code so
4819 that it can both prepend and append sniffers. Replace
4820 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
4821 * tramp-frame.c (tramp_frame_append): Use
4822 frame_unwind_prepend_unwinder.
4823 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
4824 frame_unwind_register_unwinder.
4825 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
4826 tramp_frame_append.
4827 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 4828 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
4829 (mips_linux_init_abi): Update.
4830
67faf007
KB
48312004-04-08 Kevin Buettner <kevinb@redhat.com>
4832
4833 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
4834 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
4835 file support.
4836
8973ff21
KB
48372004-04-07 Kevin Buettner <kevinb@redhat.com>
4838
4839 * ia64-tdep.c (elf.h): Don't include.
4840 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
4841
4a0e2f88
JM
48422004-04-07 Jason Molenda (jmolenda@apple.com)
4843
4844 * frame.h: Typeo corrections in comments.
4845
9872ad24
JB
48462004-04-07 Jim Blandy <jimb@redhat.com>
4847
4848 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
4849 %esp and %ebp
4850
70b216c8
MK
48512004-04-07 Mark Kettenis <kettenis@gnu.org>
4852
11d5789c
MK
4853 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
4854 * config/sparc/linux64.mt (TDEPFILES): Likewise.
4855 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4856 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
4857 and solib-legacy.o.
4858 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
4859 solib-svr4.o.
4860 * config/sparc/tm-sol2.h: Update copyright year. Include
4861 "solib.h".
4862
70b216c8
MK
4863 * sparc-sol2-tdep.c: Update copyright year. Include
4864 "solib-svr4.h".
4865 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
4866 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
4867 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 4868 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
4869 dependencies.
4870
6339dc9e
AC
48712004-04-06 Andrew Cagney <cagney@redhat.com>
4872
4873 * infttrace.c: Include "infttrace.h".
4874 * infttrace.h: Include "target.h".
4875 * Makefile.in (infttrace_h): Update.
4876 (infttrace.o): Update.
8718a420 4877
93449403
AC
48782004-04-06 Andrew Cagney <cagney@redhat.com>
4879
6d518969
AC
4880 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
4881 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
4882 move extern declarations from here ...
4883 * infttrace.h: ... to here.
4884 * Makefile.in (hppah-nat.o): Update dependencies.
4885
85f4f2d8
AC
4886 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
4887 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 4888 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
4889 (hppa_breakpoint_from_pc): Delete.
4890
93449403
AC
4891 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
4892
71456ec6
AC
48932004-04-05 Andrew Cagney <cagney@redhat.com>
4894
4895 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
4896 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
4897 <sys/file.h>.
8718a420 4898
4c02c60c
AC
48992004-04-06 Randolph Chung <tausq@debian.org>
4900
4901 Committed by Andrew Cagney (mechanical change).
4902 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
4903 exception_catchpoints_are_fragile, find_stub_with_shl_get,
4904 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
4905 child_enable_exception_callback, current_ex_event,
4906 null_symtab_and_line, child_get_current_exception_event,
4907 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
4908 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
4909 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
4910 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
4911 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
4912 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
4913 Move hpux-specific definitions ...
4914 * hppa-hpux-tdep.c: ... to here.
4915
3a515653
AC
49162004-04-05 Andrew Cagney <cagney@redhat.com>
4917
4918 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
4919 skip_prologue_using_sal.
4920
c1730d02
AC
49212004-04-05 Andrew Cagney <cagney@redhat.com>
4922
4923 * config/i386/tm-i386.h: Delete file.
4924 * config/i386/tm-vxworks.h: Update copyright, do not include
4925 "tm-i386.h".
4926 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
4927 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
4928 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
4929 * config/i386/ncr3000.mt (TM_FILE): Delete.
4930 * config/i386/interix.mt (TM_FILE): Delete.
4931 * config/i386/i386v.mt (TM_FILE): Delete.
4932 * config/i386/i386nw.mt (TM_FILE): Delete.
4933 * config/i386/i386gnu.mt (TM_FILE): Delete.
4934 * config/i386/i386aout.mt (TM_FILE): Delete.
4935 * config/i386/embed.mt (TM_FILE): Delete.
4936
8b67aa36
KB
49372004-04-05 Kevin Buettner <kevinb@redhat.com>
4938
4939 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
4940 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
4941 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
4942 (accg7_regnum): New constants.
4943 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
4944 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
4945 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
4946 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
4947 for accg registers.
4948 (frv_register_sim_regno): Update spr_map[].
4949
3c7012f5
AC
49502004-04-04 Andrew Cagney <cagney@redhat.com>
4951
4952 * config/mips/xm-riscos.h: Delete.
4953 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
4954 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
4955 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
4956 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
4957 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
4958 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
4959 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
4960 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
4961 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
4962 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
4963 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
4964 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
4965 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
4966 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
4967 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
4968 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
4969 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
4970 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
4971 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
4972 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
4973 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
4974 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
4975 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
4976 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
4977 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
4978 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 4979
3c7012f5
AC
4980 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
4981 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
4982 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
4983 * configure.host: Remove m680[01]0-sun-sunos3*,
4984 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
4985 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
4986 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
4987 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
4988 mips-*-riscos*.
4989 * NEWS: Mention removed systems.
4990
99d16a21
AC
49912004-04-04 Andrew Cagney <cagney@redhat.com>
4992
4993 GDB 6.1 release created from 6.1 branch.
4994
6cdf9d98
AC
49952004-04-04 Andrew Cagney <cagney@redhat.com>
4996
98d346c3
AC
4997 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
4998 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4999 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
5000
6cdf9d98
AC
5001 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
5002 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
5003 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
5004
859a326d
JB
50052004-04-03 Jim Blandy <jimb@redhat.com>
5006
5007 * MAINTAINERS: Chris Faylor has changed employers; add him to
5008 "paper trail" section, and update his E-mail address.
5009
b87178c3
AC
50102004-04-03 Andrew Cagney <cagney@redhat.com>
5011
4ea2acf0
AC
5012 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
5013 generic dummy frames.
5014 * dummy-frame.c: Update copyright.
5015 (dummy_frame_sniffer): Delete check for generic dummy frames.
5016
d0bd2d18 5017 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 5018 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
5019 (REG_PARM_STACK_SPACE): Delete.
5020 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
5021 Inline reference to REG_PARM_STACK_SPACE.
5022
b87178c3
AC
5023 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
5024 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
5025 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5026 (FRAME_BASE_BEFORE_SIGTRAMP)
5027 (hppa32_hpux_frame_base_before_sigtramp)
5028 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
5029 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
5030 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
5031 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
5032 (FRAME_BASE_BEFORE_SIGTRAMP)
5033 (hppa64_hpux_frame_base_before_sigtramp)
5034 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
5035
43e2e1a0
AC
50362004-04-03 Andrew Cagney <cagney@redhat.com>
5037
5038 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
5039
ddc135a4
AC
50402004-04-02 Andrew Cagney <cagney@redhat.com>
5041
5042 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
5043 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
5044 * dummy-frame.h: Delete out-of-date comments.
5045 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
5046 * gdbarch.h, gdbarch.c: Re-generate.
5047
d15bfd3a 50482004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 5049
d15bfd3a
AC
5050 Committed by Andrew Cagney <cagney@redhat.com>.
5051 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
5052 into account an instruction saving a register if we have already
5053 seen an earlier instruction saving that same register.
5054
f04ceafa
AC
50552004-04-02 Andrew Cagney <cagney@redhat.com>
5056
08be3abd
AC
5057 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
5058 * gdbarch.h, gdbarch.c: Re-generate.
5059 * frame.c (legacy_get_prev_frame): Delete references to
5060 DEPRECATED_INIT_FRAME_PC_FIRST.
5061
f04ceafa
AC
5062 * infrun.c (pc_in_sigtramp): Delete function.
5063 (check_sigtramp2): Inline call to pc_in_sigtramp, use
5064 get_frame_type.
5065
08e69816
AC
50662004-04-02 Andrew Cagney <cagney@redhat.com>
5067
5068 * infrun.c (handle_step_into_function): Delete code conditional on
5069 legacy_frame_p.
5070 (handle_inferior_event, step_over_function): Ditto.
5071
adb54772
AC
50722004-04-02 Andrew Cagney <cagney@redhat.com>
5073
5074 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
5075 "previous frame inner to this frame" test.
5076
304396fb
AC
50772004-04-02 Andrew Cagney <cagney@redhat.com>
5078
5079 * frame.c (safe_frame_unwind_memory): New function.
5080 * frame.h (safe_frame_unwind_memory): Declare. Update description
5081 of /safe_/ methods.
5082 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
5083 "next_frame". Use safe_frame_unwind_memory.
5084 (tramp_frame_sniffer): Update call to tramp_frame_start.
5085
6502dd73
DJ
50862004-04-01 Daniel Jacobowitz <drow@mvista.com>
5087
5088 * dwarf2read.c (dwarf2_objfile_data_key): New.
5089 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
5090 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
5091 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
5092 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
5093 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
5094 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
5095 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
5096 Remove variables.
5097 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
5098 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
5099 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
5100 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
5101 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
5102 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
5103 Remove macros.
5104 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
5105 data.
5106 (dwarf2_locate_sections, dwarf2_build_psymtabs)
5107 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
5108 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
5109 (read_partial_die, read_full_die, read_indirect_string)
5110 (dwarf_decode_line_header, dwarf_decode_macros)
5111 (dwarf2_symbol_mark_computed): Remove use of removed macros.
5112 Update uses of removed variables.
5113 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
5114 of removed macros.
5115 (_initialize_dwarf2_read): New function.
5116 * symfile.h (dwarf2_has_info): Update prototype.
5117 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
5118 * elfread.c (elf_symfile_read): Likewise.
5119
408752b0
JB
51202004-04-01 Jim Blandy <jimb@redhat.com>
5121
9f744501
JB
5122 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
5123 function for register numbers on all the rs6000-derived targets.
5124 (rs6000_gdbarch_init): Don't register a separate
5125 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
5126 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
5127 variants.
5128
408752b0
JB
5129 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
5130 numbering.
5131
2de41bce
PH
51322004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5133
5134 * valarith.c: Update copyright notice.
5135 (value_add): Handle range types.
5136 (value_sub): Ditto.
5137 (value_equal): Ditto.
5138 (value_less): Ditto.
5139 (value_neg): Ditto.
5140 (value_complement): Ditto.
8718a420 5141 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 5142 eliminiating unnecessary COERCE_ENUMs.
8718a420 5143
5613d8d3
AC
51442004-03-31 Andrew Cagney <cagney@redhat.com>
5145
5146 * frame.h (frame_unwind_id): Declare.
5147 * frame.c (frame_unwind_id): New function.
5148 (get_prev_frame_1): New function.
5149 (frame_debug_got_null_frame): New function.
5150 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
5151 code proper to prev_frame, update description.
5152 * infrun.c (step_over_function): Use frame_unwind_id.
5153
c4557624
JB
51542004-04-31 J. Brobecker <brobecker@gnat.com>
5155
5156 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
5157 (hppa64_push_dummy_call): Likewise.
5158
3e6bb910
JB
51592004-03-30 Jim Blandy <jimb@redhat.com>
5160
5161 From Ulrich Weigand:
5162 * utils.c (query): Do not use a va_list variable multiple times.
5163
a2f23071
DJ
51642004-03-29 Daniel Jacobowitz <drow@mvista.com>
5165
5166 * Makefile.in (linux_nat_h): Update dependencies.
5167 * configure.in: Check for <gnu/libc-version.h>.
5168 * configure: Regenerate.
5169 * config.in: Regenerate.
5170 * linux-nat.h: Include "target.h". Add waitstatus field to
5171 struct lwp_info.
5172 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
5173 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
5174 to.
5175 (lin_lwp_handle_extended): New function. Handle clone events.
5176 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
5177 thread exit events.
5178 (child_wait): Handle clone events.
5179 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
5180 * linux-nat.c (linux_enable_event_reporting): Turn on
5181 PTRACE_O_TRACECLONE.
5182 (linux_handle_extended_wait): Handle clone events.
5183 * thread-db.c: Include <gnu/libc-version.h>.
5184 (struct private_thread_info): Add dying flag.
5185 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
5186 higher.
5187 (attach_thread): Update comments. Handle dying threads.
5188 (detach_thread): Set the dying flag.
5189 (check_event): Always call attach_thread.
5190
8d5f9dcb
DJ
51912004-03-29 Daniel Jacobowitz <drow@mvista.com>
5192
5193 * mips-tdep.c (mips_pdr_data): New.
5194 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
5195 (_initialize_mips_tdep): Initialize mips_pdr_data.
5196
66337bb1
CV
51972004-03-29 Corinna Vinschen <vinschen@redhat.com>
5198
5199 * minsyms.c (install_minimal_symbols): Move dropping leading
5200 char from linkage name from here...
5201 (prim_record_minimal_symbol_and_info): ...to here. Simplify
5202 test for "__gnu_compiled*" symbols.
5203
e802b915
JB
52042004-03-28 Jim Blandy <jimb@redhat.com>
5205
5206 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
5207 registers to temp register r0 and byte stores as prologue
5208 instructions.
5209
72b56458
AC
52102004-03-28 Andrew Cagney <cagney@redhat.com>
5211
5212 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
5213 arm*-*-*.
5214
0bfbda3b
SC
52152004-03-28 Stephane Carrez <stcarrez@nerim.fr>
5216
5217 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
5218 and switch the layout to force a display of register window.
5219
5a7225ed
JB
52202004-02-26 J. Brobecker <brobecker@gnat.com>
5221
5222 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
5223 of the INTEGER class.
5224
81a07a45
JB
52252004-03-26 Jim Blandy <jimb@redhat.com>
5226
5227 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
5228 bytes long on PPC GNU/Linux.
5229
8c691c7a
DC
52302004-03-26 David Carlton <carlton@kealia.com>
5231
5232 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
5233
103a0089
AC
52342004-03-25 Andrew Cagney <cagney@redhat.com>
5235
5236 * PROBLEMS: Add general section titles, remove references to
5237 specific releases.
5238
7a5ea0d4
DJ
52392004-03-25 Daniel Jacobowitz <drow@mvista.com>
5240
5241 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
5242 INT_REGISTER_SIZE.
5243 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
5244 FP_REGISTER_VIRTUAL_SIZE.
5245 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
5246 of DEPRECATED_REGISTER_RAW_SIZE.
5247 (arm_register_type): Add gdbarch argument.
5248 (arm_register_raw_size, arm_register_virtual_size): Delete.
5249 (arm_register_byte, arm_extract_return_value)
5250 (arm_store_return_value, arm_get_longjmp_target): Update references
5251 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
5252 (arm_gdbarch_init): Likewise. Don't set
5253 deprecated_register_raw_size, deprecated_register_virtual_size,
5254 deprecated_max_register_raw_size,
5255 deprecated_max_register_virtual_size, or
5256 deprecated_max_register_virtual_type. Do set register_type.
5257 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
5258 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
5259 (FP_REGISTER_VIRTUAL_SIZE): Delete.
5260 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
5261 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
5262 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
5263 INT_REGISTER_SIZE.
5264 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
5265 (remote_rdp_store_register): Likewise.
5266
5792a79b
DJ
52672004-03-24 Daniel Jacobowitz <drow@mvista.com>
5268
5269 * Makefile.in (mips-linux-tdep.o): Update dependencies.
5270 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
5271 to after osabi initialization.
5272 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
5273 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
5274 functions.
5275 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
5276 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
5277 variables.
5278 (mips_linux_init_abi): Append signal trampoline unwinders.
5279
1196bfda
AC
52802004-03-24 Andrew Cagney <cagney@redhat.com>
5281
5282 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
5283 * tramp-frame.c: Include "gdb_assert.h".
5284 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
5285 correct sizeof.
5286 (tramp_frame_append): Validate the tramp frame's instructions.
5287 * Makefile.in (tramp-frame.o): Update dependencies.
5288
4be282b4
AC
52892004-03-23 Andrew Cagney <cagney@redhat.com>
5290
5291 * trad-frame.h (trad_frame_set_reg_addr): Declare.
5292
69aec09b
AC
52932004-03-23 Andrew Cagney <cagney@redhat.com>
5294
5295 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
5296 Nasser as past testsuite/lib/ (and other) maintainers.
5297
63ed89b4
DJ
52982004-03-23 Daniel Jacobowitz <drow@mvista.com>
5299
5300 * infcmd.c (attach_command): Reread symbols if we already have
5301 an exec file.
5302
f3b36427
AC
53032004-03-23 Andrew Cagney <cagney@redhat.com>
5304
5305 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
5306
aa2a3f87
AC
53072004-03-23 Andrew Cagney <cagney@redhat.com>
5308
5309 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
5310 * gdbarch.h, gdbarch.c: Re-generate.
5311 * i386obsd-tdep.c (i386obsd_init_abi): Update.
5312 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
5313 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 5314 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 5315 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 5316 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
5317 (DEPRECATED_SIGTRAMP_START): Update.
5318 * blockframe.c (find_pc_sect_partial_function): Update.
5319 * arch-utils.c (legacy_pc_in_sigtramp): Update.
5320
00cac895
DJ
53212004-03-23 Daniel Jacobowitz <drow@mvista.com>
5322
5323 * remote.c (remote_open_1): Reopen the exec file and reread symbols
5324 if necessary.
5325
f561f026
AC
53262004-03-23 Andrew Cagney <cagney@redhat.com>
5327
5328 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
5329 predicate, deprecate.
5330 * gdbarch.h, gdbarch.c: Re-generate.
5331 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5332 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5333 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
5334 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5335 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
5336 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
5337 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
5338 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
5339 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
5340 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
5341 * blockframe.c (find_pc_partial_function): Update.
5342 * breakpoint.c (bpstat_what): Update.
5343 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
5344 * frv-linux-tdep.c (frv_linux_init_abi): Update.
5345 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
5346 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
5347 * i386-interix-tdep.c (i386_interix_init_abi): Update.
5348 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5349 * i386-nto-tdep.c (i386nto_init_abi): Update.
5350 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
5351 * i386-tdep.c (i386_sigtramp_frame_sniffer)
5352 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
5353 * i386bsd-tdep.c (i386bsd_init_abi): Update.
5354 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
5355 * i386obsd-tdep.c (i386obsd_init_abi): Update.
5356 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
5357 * infrun.c (pc_in_sigtramp): Update.
5358 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
5359 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
5360 * mips-tdep.c (mips_gdbarch_init): Update.
5361 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
5362 * ppc-linux-tdep.c: Update comment.
5363 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
5364 * shnbsd-tdep.c (shnbsd_init_abi): Update.
5365 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
5366 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
5367 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
5368 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
5369 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
5370 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
5371 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
5372 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 5373
8050c72f
AC
53742004-03-23 Andrew Cagney <cagney@redhat.com>
5375
d2259dd3
AC
5376 * tramp-frame.h, tramp-frame.h: New files.
5377 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
5378 Update rules to include "tramp-frame.h" and "tramp-frame.c".
5379
8050c72f
AC
5380 * Makefile.in: Update all dependencies.
5381
0db9b4b7
AC
53822004-03-23 Andrew Cagney <cagney@redhat.com>
5383
5384 * Makefile.in (trad_frame_h): Add $(frame_h).
5385 * trad-frame.h: Update copyright. Include "frame.h".
5386 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
5387 (trad_frame_set_id, trad_frame_get_id): Declare.
5388 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
5389 * trad-frame.c: Update copyright.
5390 (struct trad_frame_cache): Define.
5391 (trad_frame_cache_zalloc): New function.
5392 (trad_frame_set_id, trad_frame_get_id): New functions.
5393 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 5394
8e645ae7
AC
53952004-03-22 Andrew Cagney <cagney@redhat.com>
5396
5397 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
5398 s390_pltstub_unwind_cache.
5399 (s390_stub_frame_unwind_cache): Rename
5400 s390_pltstub_frame_unwind_cache.
5401 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
5402 (s390_stub_frame_prev_register): Rename
5403 s390_pltstub_frame_prev_register.
5404 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
5405 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
5406
5407 From Ulrich Weigand:
5408 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
5409 pointer calls like PLT calls.
5410
34fcf120
DJ
54112004-03-22 Daniel Jacobowitz <drow@mvista.com>
5412
5413 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
5414 PC rather than the partial function start address. Use the start
5415 address to sanity check the found PDR.
5416
5b917078
DJ
54172004-03-22 Daniel Jacobowitz <drow@mvista.com>
5418
5419 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
5420 linux_handle_extended_wait.
5421
8adf9e78
AC
54222004-03-22 Andrew Cagney <cagney@redhat.com>
5423
c3122434
AC
5424 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
5425 function.
5426
8adf9e78
AC
5427 * frame.h (generic_pop_current_frame): Delete declaration.
5428 (deprecate_pop_dummy_frame): Deprecate
5429 generic_pop_dummy_frame.
5430 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
5431 (generic_pop_current_frame): Delete function.
5432 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
5433 generic_pop_current_frame.
5434 * v850-tdep.c (v850_pop_frame): Update.
5435 * mcore-tdep.c (mcore_pop_frame): Update.
5436 * sh64-tdep.c (sh64_pop_frame): Update.
5437 * h8300-tdep.c (h8300_pop_frame): Update.
5438
90ba813f
AC
54392004-03-22 Andrew Cagney <cagney@redhat.com>
5440
5441 * frame.h (deprecated_pc_in_call_dummy): Rename
5442 generic_pc_in_call_dummy.
5443 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
5444 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
5445 generic_pc_in_call_dummy.
5446 (pc_in_dummy_frame): Make static.
5447 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
5448 * gdbarch.h, gdbarch.c: Re-generate.
5449 * dummy-frame.c (dummy_frame_sniffer): Simplify.
5450 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
5451 (legacy_get_prev_frame): Ditto.
5452 * inferior.h: Delete reference to generic_pc_in_call_dummy in
5453 comment.
8718a420 5454
ca4bb888
AC
54552004-03-21 Andrew Cagney <cagney@redhat.com>
5456
244675f9
AC
5457 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
5458 declaration and out-of-date comment.
5459 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
5460 Delete function.
5461 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
5462 deprecated_pc_in_call_dummy.
5463
ca4bb888
AC
5464 * infrun.c (handle_inferior_event): For non legacy frames, use the
5465 frame ID and frame type to identify a signal trampoline. Update
5466 comments.
5467
1777c7b4
NW
54682004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
5469
5470 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
5471 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
5472
82417da5
AC
54732004-03-21 Andrew Cagney <cagney@redhat.com>
5474
5475 * frame-unwind.h: Update copyright.
5476 (struct frame_data): Add opaque declaration.
5477 (frame_sniffer_ftype): Declare.
5478 (struct frame_unwind): Add "unwind_data" and "sniffer".
5479 (frame_unwind_register_unwinder): Declare.
5480 (frame_unwind_find_by_frame): Add parameter "this_cache".
5481 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
5482 (legacy_get_prev_frame, legacy_get_prev_frame)
5483 (get_frame_type): Pass the prologue_cache to
5484 frame_unwind_find_by_frame.
5485 * frame-unwind.c (struct frame_unwind_table_entry): Add field
5486 "unwinder".
5487 (frame_unwind_register_unwinder): New function.
5488 (frame_unwind_find_by_frame): Handle an unwind sniffer.
5489
b2ba182e
PH
54902004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
5491
5492 * bcache.c (print_percentage): Use floating point to avoid
5493 incorrect results when portion*100 overflows.
5494
81332287
KB
54952004-03-19 Kevin Buettner <kevinb@redhat.com>
5496
5497 * ppc_tdep.h (ppc_linux_frame_saved_pc)
5498 (ppc_linux_init_extra_frame_info)
5499 (ppc_linux_frameless_function_invocation)
5500 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
5501 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
5502 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
5503 (rs6000_frame_chain): Delete declarations.
5504 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
5505 (ppc_linux_init_extra_frame_info)
5506 (ppc_linux_frameless_function_invocation)
5507 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
5508 (ppc_linux_init_abi): Remove registration of above deleted functions.
5509 * rs6000-tdep.c (rs6000_init_extra_frame_info)
5510 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
5511 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
5512 (rs6000_pop_frame, rs6000_frameless_function_invocation)
5513 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
5514 (rs6000_gdbarch_init): Remove registration of above deleted functions.
5515 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
5516 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
5517 frame management for all OSABIs.
5518
61a65099
KB
55192004-03-19 Andrew Cagney <cagney@redhat.com>
5520
5521 Committed by Kevin Buettner <kevinb@redhat.com>.
5522
5523 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
5524 Update copyright.
5525 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
5526 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
5527 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
5528 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
5529 unwinders. #ifdef legacy frame code.
5530 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
5531 "frame-base.h".
5532 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
5533 (struct rs6000_frame_cache, rs6000_frame_cache)
5534 (rs6000_frame_this_id, rs6000_frame_prev_register)
5535 (rs6000_frame_sniffer, rs6000_frame_unwind)
5536 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
5537 (rs6000_frame_base): Implement a traditional frame unwinder.
5538 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
5539 frame unwinder.
5540
88f7da05
KB
55412004-03-19 Kevin Buettner <kevinb@redhat.com>
5542
5543 * breakpoint.c (adjust_breakpoint_address): Don't adjust
5544 breakpoint address for watchpoints or the catch eventpoints.
5545 Add new paramter ``bptype''. Adjust all callers.
5546
f826dce1
AC
55472004-03-19 Andrew Cagney <cagney@redhat.com>
5548
33cb8b0f
AC
5549 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
5550
f826dce1
AC
5551 * PROBLEMS: Delete note that ARM does not use frame code, problem
5552 fixed.
5553
43b1ab88
AC
55542004-03-18 Andrew Cagney <cagney@redhat.com>
5555
292ab034
AC
5556 * stack.c (return_command): Delete code wrapped in #ifdef
5557 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
5558
43b1ab88
AC
5559 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
5560
dbfe4626
AC
55612004-03-18 Andrew Cagney <cagney@redhat.com>
5562
5563 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
5564 DEPRECATED_IN_SIGTRAMP.
5565 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5566 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
5567 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5568 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5569 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5570 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5571 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5572 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5573 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
5574 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
5575
0cad6aec
AC
55762004-03-18 Andrew Cagney <cagney@redhat.com>
5577
5578 * frame-base.c: Update copyright. Include "gdb_obstack.h".
5579 (struct frame_base_table_entry): Define.
5580 (struct frame_base_table): Re-implement as a linked list.
5581 (frame_base_init): Re-implement.
5582 (frame_base_table): Delete function.
5583 (append_predicate): Delete function.
5584 (frame_base_append_sniffer): Update.
5585 (frame_base_set_default): Update.
5586 (frame_base_find_by_frame): Update.
5587 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
5588 * Makefile.in (frame-base.o): Update dependencies.
5589
9982c2e7
AC
55902004-03-17 Andrew Cagney <cagney@redhat.com>
5591
5592 * frame.c (legacy_get_prev_frame): Pass correct frame to
5593 frame_unwind_find_by_frame.
5594
8dfe8985
DC
55952004-03-17 David Carlton <carlton@kealia.com>
5596
5597 * NEWS: Mention C++ nested types and namespaces
5598
ed47347a
MC
55992004-03-16 Michael Chastain <mec.gnu@mindspring.com>
5600
5601 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
5602 and "Regressions since gdb 5.3.". Add known regressions since
5603 gdb 6.0.
5604
90aeadfc
DC
56052004-03-16 David Carlton <carlton@kealia.com>
5606
5607 * dwarf2read.c (process_structure_scope): Process children even
5608 when we're a declaration.
5609
73912b9b
AC
56102004-03-16 Andrew Cagney <cagney@redhat.com>
5611
5612 * symtab.h (find_pc_sect_partial_function): Delete declaration.
5613 * blockframe.c (find_pc_partial_function)
5614 (find_pc_sect_partial_function): Merge into a single
5615 find_pc_partial_function.
5616
283accbc
MK
56172004-03-16 Mark Kettenis <kettenis@gnu.org>
5618
5619 * i386bsd-nat.c: s/regno/regnum/g.
5620 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
5621 FP0_REGNUM.
5622 (store_inferior_registers): Likewise.
5623
f5b1afdf
MK
56242004-03-16 Mark Kettenis <kettenis@gnu.org>
5625
5626 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
5627 of i387_fill_fsave.
5628 (store_inferior_registers): Call i387_collect_fsave and
5629 i387_collect_fxsave instead of i387_fill_fsave and
5630 i387_fill_fxsave.
5631
41fe5eb3
AC
56322004-03-15 Andrew Cagney <cagney@redhat.com>
5633
5634 * Makefile.in (frame-unwind.o): Update dependencies.
5635 * frame-unwind.c: Include "gdb_obstack.h".
5636 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
5637 parameter.
5638 (append_predicate): Delete function.
5639 (struct frame_unwind_table_entry): New structure.
5640 (struct frame_unwind_table): Replace "sniffer" with "head" and
5641 "tail".
5642 (frame_unwind_append_sniffer): Update.
5643 (frame_unwind_find_by_frame): Update.
5644 (_initialize_frame_unwind): Registe frame_unwind_init using
5645 gdbarch_data_register_pre_init.
5646
3f63813d
MK
56472004-03-15 Mark Kettenis <kettenis@gnu.org>
5648
5649 * i386bsd-nat.c: Update copyright year.
5650 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
5651 define unconditionally.
5652
3248c325 56532004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
5654
5655 * i387-tdep.h (i387_collect_fsave): New prototype.
5656 * i387-tdep.c (i387_collect_fsave): New function containing most
5657 of the code from i387_fill_fsave.
3248c325 5658 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 5659
871fbe6a
MK
56602004-03-15 Mark Kettenis <kettenis@gnu.org>
5661
5662 * i386-linux-tdep.c: Update copyright year.
5663 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
5664 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
5665 svr4_ilp32_link_map_offsets instead of
5666 i386_linux_svr4_fetch_link_map_offsets.
5667
8176b9b8
DC
56682004-03-15 David Carlton <carlton@kealia.com>
5669
5670 Fix for PR c++/1553:
5671 * dwarf2read.c (read_structure_type): Determine type name by
5672 calling determine_class_name.
5673 (determine_class_name): New.
5674 (determine_prefix): Look at TYPE_TAG_NAME and call
5675 determine_class_name when appropriate.
5676 (determine_prefix_aux, class_name): Delete.
9d58e29d 5677 (read_namespace): Set die->type.
8176b9b8 5678
fe8bf7d7
KB
56792004-03-15 Kevin Buettner <kevinb@redhat.com>
5680
5681 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
5682 unused macro definition. The definition in target.h (or perhaps
5683 elsewhere) takes precedence.
5684
ed6edd9b
AC
56852004-03-15 Andrew Cagney <cagney@redhat.com>
5686
f9be684a
AC
5687 * ppc-tdep.h: Update copyright.
5688 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
5689 function signatures to match "regsets.h".
5690 * ppc-linux-tdep.c: Include "regset.h".
5691 (ELF_GREGSET_SIZE): Delete.
5692 (right_supply_register): New function.
5693 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
5694 using right_supply_register.
5695 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
5696 functions.
5697 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
5698 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
5699 (_initialize_ppc_linux_tdep): Do not register
5700 ppc_linux_regset_core_fns.
5701 (ppc_linux_regset_from_core_section): Replace
5702 fetch_core_registers.
5703 (ppc_linux_regset_core_fns): Delete.
5704 * ppc-linux-nat.c: (right_fill_reg): New function.
5705 (supply_gregset): Update call to ppc_linux_supply_gregset.
5706 (fill_gregset): Clear the register set, use right_fill_reg.
5707 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
5708 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
5709
ed6edd9b
AC
5710 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
5711 unsigned.
5712
030f20e1
AC
57132004-03-15 Andrew Cagney <cagney@redhat.com>
5714
5715 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
5716 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
5717 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
5718 and register_gdbarch_data.
5719 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
5720 (struct gdbarch_data): Replace "init" by "pre_init" and
5721 "post_init".
5722 * gdbarch.h, gdbarch.c: Re-generate.
5723 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
5724 with"obstack", use OBSTACK_ZALLOC.
5725 (dwarf2_frame_ops): Delete.
5726 (dwarf2_frame_set_init_reg): Use gdbarch_data.
5727 (dwarf2_frame_init_reg): Use gdbarch_data.
5728 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 5729 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
5730 (_initialize_svr4_solib): Update.
5731 * user-regs.c (_initialize_user_regs): Update.
5732 * reggroups.c (_initialize_reggroup): Update.
5733 * regcache.c (_initialize_regcache): Update.
5734 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5735 * libunwind-frame.c (_initialize_libunwind_frame): Update.
5736 * gnu-v3-abi.c (init_gnuv3_ops): Update.
5737 * frame-unwind.c (_initialize_frame_unwind): Update.
5738 * frame-base.c (_initialize_frame_base): Update.
5739 * user-regs.c (user_reg_add): Update.
5740 * reggroups.c (reggroup_add): Update.
5741 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
5742 * libunwind-frame.c (libunwind_frame_set_descr): Update.
5743 * frame-unwind.c (frame_unwind_append_sniffer): Update.
5744 * frame-base.c (frame_base_table): Update.
5745 * remote.c (_initialize_remote): Update.
5746 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 5747
3111a3fc
AC
57482004-03-15 Andrew Cagney <cagney@redhat.com>
5749
5750 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
5751
5ecb7103
KB
57522004-03-15 Kevin Buettner <kevinb@redhat.com>
5753
5754 * Makefile.in (frv-linux-tdep.o): Add dependencies.
5755 * frv-linux-tdep.c: New file.
5756 * frv-tdep.c (struct gdbarch_tdep): Add new field
5757 ``sigcontext_reg_addr''.
5758 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
5759 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5760 (frv_sigramp_frame_sniffer): New functions.
5761 (frv_sigtramp_frame_unwind): New static global.
5762 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
5763 sniffers.
5764 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
5765 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
5766
1ccda5e9
KB
57672004-03-15 Kevin Buettner <kevinb@redhat.com>
5768
5769 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
5770 but not via a call to error(), when unable to read memory.
5771
b375a0a5
KB
57722004-03-15 Kevin Buettner <kevinb@redhat.com>
5773
5774 * frv-tdep.c (frv_call_dummy_words): Delete.
5775 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
5776
4fdf6121
AC
57772004-03-15 Andrew Cagney <cagney@redhat.com>
5778
5779 * infrun.c (handle_step_into_function, step_over_function): Only
5780 update and use STEP_FRAME_ID when the system is using legacy
5781 frames. Update comments.
5782
34021503
MK
57832004-03-14 Mark Kettenis <kettenis@gnu.org>
5784
187e21d1
MK
5785 * amd64-linux-tdep.h: Remove file.
5786 * amd64-linux-tdep.c: Don't include "inferior.h" and
5787 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
5788 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
5789 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
5790 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
5791 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
5792 macros.
5793 (user_to_gdb_regmap): Remove variable.
5794 (amd64_linux_gregset_reg_offset): New variable.
5795 (amd64_core_fns): Remove variable.
5796 (fetch_core_registers): Remove function.
5797 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
5798 functions.
5799 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
5800 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
5801 * Makefile.in (amd64_linux_tdep_h): Remove.
5802 (amd64-linux-nat.o): Update dependencies.
5803 (amd64-linux-tdep.o): Update dependencies.
5804
99679982
MK
5805 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
5806 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
5807 functions.
5808 (fetch_inferior_registers, store_inferior_registers): Rewrite.
5809
34021503
MK
5810 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
5811 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
5812
134d01f1
DJ
58132004-03-14 Daniel Jacobowitz <drow@mvista.com>
5814
5815 * dwarf2read.c (read_structure_type): Rename from
8718a420 5816 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
5817 Return immediately if die->type is set. Call read_type_die before
5818 dwarf2_add_member_fn.
5819 (process_structure_scope): New function.
5820 (read_enumeration_type, process_enumeration_scope): New functions,
5821 broken out from read_enumeration. Don't create the enumeration
5822 type if it has already been created.
5823 (read_enumeration): Removed.
5824 (process_die): Call read_structure_type, process_structure_scope,
5825 read_enumeration_type, and process_enumeration_scope. Just call
5826 new_symbol for base and subrange types. Add a comment about other
5827 type dies.
5828 (read_type_die): Call read_enumeration_type.
5829 (add_partial_structure, new_symbol): Update comments.
5830
65760afb
SC
58312004-03-13 Stephane Carrez <stcarrez@nerim.fr>
5832
5833 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
5834
10f59415
SC
58352004-03-13 Stephane Carrez <stcarrez@nerim.fr>
5836
5837 * tui/tui-win.h (tui_get_cmd_list): Declare.
5838 * tui/tui-win.c (tui_command): New function.
5839 (tui_get_cmd_list): New function.
5840 (_initialize_tui_win): Moved initialization of tui command in
5841 tui_get_cmd_list.
5842
5843 * tui/tui-data.c (init_content_element): Setup new data members.
5844 (init_win_info): Likewise.
5845 (free_content_elements): Free it.
5846 * tui/tui-data.h (struct tui_data_element): Store the register
5847 content to print.
5848 (struct tui_data_info): Keep the current register group.
5849
5850 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
5851
5852 * tui/tui-regs.h (tui_show_registers): Update prototype.
5853 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
5854 (tui_resize_all): No need to calculate anything for register window.
5855 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
5856 (tui_set_register_element, tui_set_general_regs_content): Remove.
5857 (tui_set_special_regs_content): Remove.
5858 (tui_set_general_and_special_regs_content): Remove.
5859 (tui_set_float_regs_content): Remove.
5860 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
5861 (tui_set_regs_content): Remove.
5862 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
5863 (tui_v_show_registers_command_support): Remove.
5864 (tui_show_registers): Use a reggroup to specify the registers to show.
5865 (tui_show_register_group): New function.
5866 (tui_display_registers_from): Compute the layout of register window
5867 and refresh with new API; be sure to delete old register windows.
5868 (tui_check_register_values): Update to use tui_get_register and
5869 tui_display_data.
5870 (tui_display_register): Just refresh the register window part.
5871 (tui_register_format): Format registers and save in tui_data_element.
5872 (tui_get_register): New to combine tui_reg_value_has_changed and
5873 tui_get_register_raw_value; fix to use the new gdb API.
5874 (tui_show_float_command): Renamed tui_reg_float_command.
5875 (tui_show_general_command): Renamed tui_reg_general_command.
5876 (tui_show_special_command): Renamed tui_reg_system_command.
5877 (_initialize_tui_regs): Remove unused commands.
5878
c3364ea4
MK
58792004-03-13 Mark Kettenis <kettenis@gnu.org>
5880
27d1e716
MK
5881 * NEWS (New native configurations): Mention OpenBSD/amd64.
5882
c3364ea4
MK
5883 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
5884 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
5885 Remove defines.
5886 * config/i386/nm-fbsd64.h: Likewise.
5887 * config/i386/nm-obsd.h: Likewise.
5888 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
5889 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
5890
b2d6d697
KB
58912004-03-12 Kevin Buettner <kevinb@redhat.com>
5892
5893 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
5894 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
5895 New constants.
5896
76e43199
KB
5897 From Richard Sandiford <rsandifo@redhat.com>:
5898 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
5899
34ce532e
KB
59002004-03-12 Kevin Buettner <kevinb@redhat.com>
5901
5902 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
5903 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
5904 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
5905 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
5906 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
5907 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
5908 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
5909 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
5910 definitions from frv-tdep.c to frv-tdep.h.
5911
c4d10515
KB
59122004-03-12 Kevin Buettner <kevinb@redhat.com>
5913
5914 Add shared library support for FR-V FDPIC ABI:
5915 * Makefile.in (solib-frv.o): Add dependencies.
5916 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
5917 New functions.
5918 (frv_push_dummy_call): Add support for FDPIC ABI.
5919 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
5920 for FDPIC ABI.
5921 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
5922 (frv_fdpic_find_canonical_descriptor): Declare.
5923 * solib-frv.c: New file.
5924 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
5925 * config/frv/tm-frv.h (solib.h): Include.
5926
ed1bd989
KB
59272004-03-12 Kevin Buettner <kevinb@redhat.com>
5928
5929 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
5930 (frv-tdep.o): Update dependencies.
5931 * frv-tdep.h: New file.
5932 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
5933 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
5934 constants.
5935 (struct gdbarch_tdep): Add new member ``frv_abi''.
5936 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
5937 functions.
5938 (new_variant): Set ``frv_abi'' field.
5939 (gdb_arch_init): Detect FDPIC executables.
5940
82b38f72
MK
59412004-03-12 Mark Kettenis <kettenis@gnu.org>
5942
5943 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
5944 wrapper.
5945
db1ea9ba
AC
59462004-03-11 Andrew Cagney <cagney@redhat.com>
5947
5948 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
5949
f8766ec1
KB
59502004-03-11 Kevin Buettner <kevinb@redhat.com>
5951
5952 * solist.h (master_so_list): New function.
5953 * solib.c (master_so_list): Likewise.
5954 * solib-svr4.c (enable_break): Iterate over so_list entries
5955 obtained from master list instead of entries obtained directly
5956 via svr4_current_sos().
5957
523f6a27
BE
59582004-03-10 Ben Elliston <bje@gnu.org>
5959
5960 * MAINTAINERS: Update my mail address.
5961
37814c18
KI
59622004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
5963
5964 * remote-m32r-sdi.c: Support hardware watchpoint.
5965
8b9740d8
DJ
59662004-03-09 Daniel Jacobowitz <drow@mvista.com>
5967
5968 * user-regs.c: Update copyright years.
5969 (struct user_regs): Rename to gdb_user_regs.
5970 (append_user_reg, builtin_user_regs, user_regs_init)
5971 (user_reg_add, user_reg_map_name_to_regnum)
5972 (usernum_to_user_reg): Update.
5973
4bb7a0a7
DJ
59742004-03-09 Daniel Jacobowitz <drow@mvista.com>
5975
5976 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
5977 (skip_children): New functions.
5978 (locate_pdi_sibling): Call skip_children.
5979
44e1a9eb
DJ
59802004-03-09 Daniel Jacobowitz <drow@mvista.com>
5981
5982 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
5983 * gdbtypes.c (check_typedef): Update comments.
5984
f3dd6933
DJ
59852004-03-09 Daniel Jacobowitz <drow@mvista.com>
5986
5987 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
5988 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
5989 pointer. Update comment about comp_unit_head.
5990 (struct abbrev_info): Shorten two int flags.
5991 (dwarf_alloc_abbrev): Take a CU argument.
5992 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
5993 each time through the loop. Update cleanup argument.
5994 (psymtab_to_symtab_1): Update cleanup call.
5995 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
5996 abbrev_obstack.
5997 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
5998 Just call obstack_free and clear the pointer.
5999
b40c7d58
DJ
60002004-03-09 Daniel Jacobowitz <drow@mvista.com>
6001
6002 * infrun.c (handle_inferior_event): Remove short-circuit code for
6003 events in a different thread.
6004
333dabeb
DJ
60052004-03-09 Daniel Jacobowitz <drow@mvista.com>
6006
6007 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
6008 print the whole transfer.
6009 (initialize_targets): Update description of "set debug target".
6010
aa17d93e
DJ
60112004-03-09 Daniel Jacobowitz <drow@mvista.com>
6012
6013 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
6014
0b71f08f
NW
60152004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
6016
6017 * MAINTAINERS (write after approval): Add myself.
6018
3930f270
CV
60192004-03-08 Corinna Vinschen <vinschen@redhat.com>
6020
6021 * sh-tdep.c (sh_print_registers_info): Use for loop.
6022 Don't skip multiple registers when a float register is encountered.
6023
a2b4a96c
CV
60242004-03-08 Corinna Vinschen <vinschen@redhat.com>
6025
6026 Fix PR tdep/1291.
6027 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
6028 to official SH documentation.
6029
f15a4bc0
AC
60302004-03-07 Andrew Cagney <cagney@redhat.com>
6031
6032 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
6033 unused function.
6034
9498281f
DJ
60352004-03-07 Daniel Jacobowitz <drow@mvista.com>
6036
6037 * arm-tdep.c (thumb_get_next_pc): Handle BX.
6038 (arm_get_next_pc): Handle BX and BLX.
6039
449e1137
AC
60402004-03-07 Andrew Cagney <cagney@redhat.com>
6041
eded0a31
AC
6042 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
6043 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
6044 HPPA_SP_REGNUM.
6045 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
6046 (hppa_target_read_fp): Delete.
6047 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
6048 register_virtual_size, max_register_raw_size,
6049 max_register_virtual_size, register_byte, register_size,
6050 target_read_fp, fp_regnum, and register_bytes. Set register_type
6051 instead of register_virtual_type.
6052 (hppa32_register_type, hppa64_register_type): Replace
6053 hppa32_register_virtual_type and hppa64_register_virtual_type.
6054 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
6055 (HPPA_FP_REGNUM): Define.
6056
f5f907e2
AC
6057 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
6058
69b4bbe4
AC
6059 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
6060 (pa_do_registers_info): Delete.
6061 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 6062 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 6063 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 6064
78161e48
AC
6065 * infcall.c (legacy_push_dummy_code): Delete #ifdef
6066 GDB_TARGET_IS_HPPA code.
6067 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 6068 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
6069 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
6070 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
6071 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
6072 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
6073 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 6074 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
6075 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
6076 (hppa_frameless_function_invocation, hppa64_store_return_value)
6077 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 6078 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 6079 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 6080 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
6081 (find_proc_framesize, deposit_21, restore_pc_queue)
6082 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 6083 (rp_saved, pc_in_linker_stub): Delete.
78161e48 6084
782eae8b
AC
6085 Unconditionally enable 64-bit frame and ABI code.
6086 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
6087 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
6088 push_dummy_frame, fix_call_dummy, push_arguments,
6089 call_dummy_location, extract_return_value, use_struct_convention,
6090 store_return_value, store_struct_return, saved_pc_after_call,
6091 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
6092 frame_chain, frame_chain_valid, frameless_function_invocation,
6093 frame_saved_pc, and pop_frame.
78161e48 6094
449e1137
AC
6095 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
6096 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
6097 (hppa_gdbarch_init): Do not set PC_REGNUM.
6098
12507572
MK
60992004-03-06 Mark Kettenis <kettenis@gnu.org>
6100
6101 * config/alpha/tm-fbsd.h: Remove file.
6102 * config/alpha/fbsd.mt: Tweak comment.
6103 (TM_FILE): Set to tm-alpha.h.
6104
c107cc1b
AC
61052004-03-05 Andrew Cagney <cagney@redhat.com>
6106
6107 * infrun.c (step_over_function): When non-legacy code, and no
6108 step_frame_id, use the unwinder to get the caller's frame ID.
6109
f2e7c15d
MK
61102004-03-05 Mark Kettenis <kettenis@gnu.org>
6111
8b0c3633
MK
6112 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
6113 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
6114 bfd_arch_unknown. Adjust comment.
6115
f2e7c15d
MK
6116 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
6117 * i386obsd-tdep.c: Correct spelling in comment.
6118 * i386nbsd-tdep.c: Correct spelling in comment.
6119 * sparc-tdep.c: Correct spelling in comments.
6120
1198ecbe
DC
61212004-03-05 David Carlton <carlton@kealia.com>
6122
6123 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
6124 bug.
6125
9eb42ed1
MK
61262004-03-05 Mark Kettenis <kettenis@gnu.org>
6127
6128 * sparc-tdep.c: Fix typo in comment.
6129
52b5e991
JB
61302004-03-04 J. Brobecker <brobecker@gnat.com>
6131
6132 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
6133
d8151005
DJ
61342004-03-04 Daniel Jacobowitz <drow@mvista.com>
6135
6136 * dwarf2read.c: Add comment describing memory lifetimes.
6137 (struct dwarf2_pinfo): Update comment.
6138 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
6139 (read_enumeration, new_symbol): Don't use obsavestring.
6140
cbeae229
MK
61412004-03-04 Mark Kettenis <kettenis@gnu.org>
6142
722d18c2
MK
6143 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
6144 instead of amd64_fill_fxsave.
6145 * amd64bsd-nat.c (store_inferior_registers): Likewise.
6146 * amd64fbsd-nat.c (fill_fpregset): Likewise.
6147
cbeae229
MK
6148 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
6149 Reorganize code a bit.
6150
b4206d25
OF
61512004-03-04 Orjan Friberg <orjanf@axis.com>
6152
6153 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
6154 when the frame pointer is pushed. Don't set the frame pointer's
6155 address on the stack unless it's actually located there.
b4206d25
OF
6156 Set the SRP's address on the stack correctly when the PC is still in
6157 the prologue.
6158 (cris_return_value): New function.
6159 (cris_gdbarch_init): Clear deprecated store_return_value,
6160 extract_return_value.
6161
49b0b195
JB
61622004-03-02 Jim Blandy <jimb@redhat.com>
6163
6164 * stabsread.c (reg_value_complaint): The maximum register number
6165 is one less than the number of registers.
6166
e9ff708b
AC
61672004-03-02 Andrew Cagney <cagney@redhat.com>
6168
6169 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
6170 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
6171 trailing comma and redundant assignment of I386_ST0_REGNUM.
6172 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
6173 32-bit segment registers.
6174
d4715e41
AC
61752004-03-01 Andrew Cagney <cagney@redhat.com>
6176
6177 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
6178 use frame_relative_level and get_next_frame.
6179
3ce2bf18
AC
61802004-02-29 Andrew Cagney <cagney@redhat.com>
6181
6182 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
6183 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
6184 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
6185 Delete macro.
6186
2da6aac3
DJ
61872004-02-29 Daniel Jacobowitz <drow@mvista.com>
6188
6189 * inflow.c (terminal_inferior): Don't give up the terminal if we
6190 previously couldn't get the inferior's terminal state.
6191
6ba34a8d
DJ
61922004-02-29 Daniel Jacobowitz <drow@mvista.com>
6193
6194 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
6195 PC_REGNUM.
6196
faae5abe
AC
61972004-02-28 Andrew Cagney <cagney@redhat.com>
6198
6199 * NEWS: Refer to GDB 6.1.
6200 * README: Refer to GDB 6.1.
6201 * PROBLEMS: Refer to GDB 6.1.
6202
2227a3c5
DJ
62032004-02-28 Daniel Jacobowitz <drow@mvista.com>
6204
6205 * thread-db.c (disable_thread_signals): Remove unused function.
6206
80571bff
MK
62072004-02-28 Mark Kettenis <kettenis@gnu.org>
6208
041bd74b
MK
6209 * amd64-nat.c: Include "gdb_string.h".
6210 (amd64_collect_native_gregset): Zero-extend the 32-bit
6211 general-purpose registers and %eip.
6212
3c017e40
MK
6213 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
6214 * amd64-tdep.c (amd64_collect_fxsave): New function.
6215 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
6216
80571bff
MK
6217 * i387-tdep.h: Update copyright year.
6218 (i387_collect_fxsave): New prototype.
6219 * i387-tdep.c: Update copyright year.
6220 (i387_collect_fxsave): New function containing most of the code
6221 from i387_fill_fxsave.
6222 (i387_fill_fxsave): Call i387_collect_fxsave.
6223
50d71875
AC
62242004-02-28 Andrew Cagney <cagney@redhat.com>
6225
6226 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
6227 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
6228
4a28816e
MK
62292004-02-28 Mark Kettenis <kettenis@gnu.org>
6230
6231 * amd64-tdep.c (amd64_frame_cache): Fix comment.
6232
dbda9972
AC
62332004-02-28 Andrew Cagney <cagney@redhat.com>
6234
6235 * utils.c: Use "", instead of <>, to include readline.
6236 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
6237 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
6238 * source.c, solib.c, exec.c, event-top.c: Ditto.
6239 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
6240 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
6241 * Makefile.in: Update all dependencies.
6242 (readline_tilde_h, readline_history_h): Define.
6243 (readline_headers): Delete.
6244
83277a99
MK
62452004-02-28 Mark Kettenis <kettenis@gnu.org>
6246
91ae4303
MK
6247 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
6248 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
6249 "config/i386/tm-lx64.h".
6250
83277a99
MK
6251 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
6252 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
6253 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
6254
6e1d7d6c
AC
62552004-02-28 Andrew Cagney <cagney@redhat.com>
6256
ecc9ac84
AC
6257 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
6258
6e1d7d6c
AC
6259 * breakpoint.c (_initialize_breakpoint): Use
6260 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
6261 Add help to show command.
6262
9671aeef
MK
62632004-02-28 Mark Kettenis <kettenis@gnu.org>
6264
7fa2737c
MK
6265 * i386-nat.c: Reformat to be closer to coding standards.
6266 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
6267 `retval'. Make variables `align' and `size' local to while-loop.
6268 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
6269 (_initialize_i386_nat): New prototype.
6270
9671aeef
MK
6271 * tui/tui.c: Include <readline/readline.h> instead of
6272 "readline/readline.h". Include it after <term.h> and
6273 "gdb_curses.h".
6274
fca7aa43
AC
62752004-02-27 Andrew Cagney <cagney@redhat.com>
6276
412275d5
AC
6277 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
6278 the new frame unwind code.
6279 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
6280 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
6281 PCOQ_HEAD_REGNUM.
6282
fca7aa43
AC
6283 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
6284 "return_value" and "push_dummy_call".
6285 (hppa32_use_struct_convention): Delete unused function.
6286 (hppa32_store_return_value): Delete unused function.
6287 (hppa32_extract_return_value): Delete unused function.
6288 (hppa32_stack_align): Delete function.
6289
e6a8a7d2
EZ
62902004-02-27 Eli Zaretskii <eliz@elta.co.il>
6291
6292 * coffread.c (enter_linenos): Don't let rawptr reference memory
6293 outside linetab[]'s limits.
6294
1797a8f6
AC
62952004-02-27 Andrew Cagney <cagney@redhat.com>
6296
6297 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
6298 inferior stack space - the stack needs to grow upwards.
6299 (hppa32_frame_align): New function.
6300 (hppa64_frame_align): Replace hppa_frame_align.
6301 (hppa_gdbarch_init): Update.
6302
2e4b5889
OF
63032004-02-26 Orjan Friberg <orjanf@axis.com>
6304
6305 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
6306 (dwarf2-frame.h): Include.
6307 (enum cris_regnums): New enum CRIS_FP_REGNUM.
6308 Remove static variables related to ABI setting.
6309 (struct gdbarch_tdep): Remove cris_abi member.
6310 (struct frame_extra_info): Remove.
6311 (cris_unwind_cache, stack_item): New structs.
6312 (cris_frame_unwind, cris_frame_base): New variables.
6313 (push_stack_item, pop_stack_item)
6314 (cris_frame_unwind_cache, cris_frame_this_id)
6315 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
6316 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
6317 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
6318 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
6319 (cris_reg_struct_has_addr): New functions.
6320 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 6321 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
6322 (cris_store_struct_return, cris_frameless_function_invocation)
6323 (cris_pop_frame, cris_skip_prologue_main)
6324 (cris_abi_original_store_return_value)
6325 (cris_abi_v2_store_return_value)
6326 (cris_abi_original_extract_return_value)
6327 (cris_abi_v2_extract_return_value)
6328 (cris_abi_original_reg_struct_has_addr)
6329 (cris_abi_v2_reg_struct_has_addr)
6330 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
6331 (cris_push_return_address, cris_abi_update): Remove.
6332 (_initialize_cris_tdep): Remove ABI command.
6333 (cris_dump_tdep): Ditto.
8718a420 6334 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
6335 Set store_return_value, extract_return_value, push_dummy_code,
6336 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
6337 frame_unwind_append_sniffer, frame_base_set_default.
6338 Clear deprecated init_frame_pc, push_arguments, store_return_value,
6339 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
6340 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 6341 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
6342 init_extra_frame_info, frameless_function_invocation, frame_chain,
6343 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
6344 dummy_write_sp.
8718a420 6345
6b9acc27
JJ
63462004-02-26 Jeff Johnston <jjohnstn@redhat.com>
6347
6348 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
6349 * valprint.c (print_hex_chars): Change from static to external.
6350 (print_char_chars): New function.
6351 * printcmd.c (print_scalar_formatted): For integer and enum types
6352 that are longer than LONGEST, perform processing via appropriate
6353 print_*_chars routines.
6354
a431654a
AC
63552004-02-26 Andrew Cagney <cagney@redhat.com>
6356
6357 * Makefile.in: Update dependencies.
6358 Changes from Ulrich Weigand,
6359 * s390-tdep.c: Include "dwarf2-frame.h".
6360 (s390_dwarf2_frame_init_reg): New function.
6361 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
6362 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
6363
fa8d40ab
JJ
63642004-02-26 Jeff Johnston <jjohnstn@redhat.com>
6365
6366 * breakpoint.c (pending_break_support): New setting variable.
6367 (break_command_1): Account for pending_break_support setting
6368 when creating pending breakpoints.
6369 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
6370 (_initialize_breakpoint): Add "set breakpoint pending" and
6371 "show breakpoint pending" commands.
6372
0dcd613f
AC
63732004-02-26 Andrew Cagney <cagney@redhat.com>
6374
6375 Fix PR i18n/1570.
6376 * charset.c (backslashable, backslashed, represented): Remove 'e'
6377 from list of escaped characters, not part of ISO-C.
6378
479272a3
JB
63792004-02-25 J. Brobecker <brobecker@gnat.com>
6380
6381 From Peter Schauer <schauer@pdf.de>:
6382 * tui/tui.c: Move system header includes after local includes.
6383 Fixes a build failure on solaris systems.
6384
7613d933
JB
63852004-02-25 J. Brobecker <brobecker@gnat.com>
6386
6387 * configure.in: Refine the previous change.
6388 * configure: Regenerate.
6389
9c1488cb
MK
63902004-02-25 Mark Kettenis <kettenis@gnu.org>
6391
6392 * amd64-tdep.h: Renamed from x86-64-tdep.h.
6393 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
6394 "amd64-tdep.h" instead of "x86-64-tdep.h".
6395 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
6396 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
6397 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
6398 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
6399 and "x86-64-tdep.c".
6400 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
6401 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
6402 and "x86-64-tdep.c".
6403 * amd64bsd-nat.c: Update copyright year.
6404 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
6405 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
6406 "x86-64-tdep.h".
6407 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
6408 "x86-64-tdep.h".
6409 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
6410 "x86-64-tdep.h".
6411 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
6412 "x86-64-tdep.h".
6413 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
6414 "x86-64-tdep.h".
6415 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
6416 "x86-64-tdep.h".
8718a420 6417 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
6418 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
6419 * Makefile.in (amd64_linux_tdep_h): Renamed from
6420 x86_64_linux_tdep_h.
6421 (amd64_tdep_h): Renamed from x86_64_tdep_h.
6422 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
6423 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
6424 (amd64obsd-tdep.o): Update dependencies.
6425 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
6426 dependencies.
6427 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
6428 dependencies.
6429 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
6430 amd64-linux-nat.c amd64-linux-tdep.c.
6431 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
6432 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
6433 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
6434 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
6435 amd64-tdep.o and amd64-linux-tdep.o.
6436 (TM_FILE): Set to tm-linux64.h.
6437 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
6438 (NAT_FILE): Set to nm-linux64.h.
6439 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
6440 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
6441 amd64-tdep.o.
6442 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
6443 amd64-tdep.o.
6444 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
6445 amd64-tdep.o.
6446
4b8dad4a
RM
64472004-02-25 Roland McGrath <roland@redhat.com>
6448
6449 * remote.c (remote_protocol_qPart_auxv): New variable.
6450 (init_all_packet_configs): Initialize it.
6451 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
6452 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
6453 (show_remote_cmd): Call it.
6454 (_initialize_remote): Initialize commands.
6455 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
6456 service TARGET_OBJECT_AUXV requests.
6457
66745969
JB
64582004-02-25 J. Brobecker <brobecker@gnat.com>
6459
6460 * configure.in: Make sure that the wborder function is available.
6461 Otherwise, search for it in the cur_colr library.
6462 * configure: Regenerate.
6463
79508e1e
AC
64642004-02-25 Andrew Cagney <cagney@redhat.com>
6465
6466 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
6467
571ee600
MK
64682004-02-25 Mark Kettenis <kettenis@gnu.org>
6469
6470 * config/i386/tm-x86-64linux.h: Tweak comments.
6471
2b1b322f 64722004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
6473
6474 * MAINTAINERS: Add self to write-after-approval list.
6475
4d2acc65
AC
64762004-02-25 Andrew Cagney <cagney@redhat.com>
6477
4b8dad4a 6478 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
6479 * cli/cli-script.c (execute_control_command): Unconditionally
6480 install a cleanup. Default "ret" to "invalid_control". Use
6481 "break" instead of "return" to escape from the switch.
6482
4cfcaf21
JB
64832004-02-24 J. Brobecker <brobecker@gnat.com>
6484
6485 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
6486 with the lines macro defined in term.h on AiX.
6487 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
6488 a collision with the label_width macro defined in term.h on AiX.
6489
54a5c8d8
KB
64902004-02-23 David Mosberger <davidm@hpl.hp.com>
6491
6492 Committed by Kevin Buettner <kevinb@redhat.com>.
6493
6494 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
6495 * ia64-tdep.c (ia64_write_pc): Make it a global function.
6496 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
6497 instead of ia64_write_pc().
6498 * ia64-linux-tdep.c (regcache.h): Include.
6499 (ia64_linux_write_pc): New function.
4b8dad4a 6500
8a1dac83
RM
65012004-02-23 Roland McGrath <roland@redhat.com>
6502
6503 * auxv.c (info_auxv_command): Fix typos in error messages.
6504
90f90721
MK
65052004-02-23 Mark Kettenis <kettenis@gnu.org>
6506
8a1dac83 6507 * x86-64-tdep.h: Tweak comment.
90f90721
MK
6508 (enum amd64_regnum): New.
6509 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
6510 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
6511 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
6512 (X86_64_XMM1_REGNUM): Removed.
6513 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
6514 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
6515 prototypes for renamed functions.
6516 * x86-64-tdep.c: Fix typo.
6517 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
6518 register numbers.
6519 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
6520 Use constants from `enum amd64_regnum' for register numbers.
6521 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
6522 (amd64_analyze_prologue, amd64_frame_cache,
6523 amd64_sigtramp_frame_cache): Use constants from `enum
6524 amd64_regnum' for register numbers.
6525 (amd64_supply_fpregset): Adjust for renamed functions.
6526 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
6527 `enum amd64_regnum' for register numbers.
6528 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
6529 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
6530 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
6531 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
6532 (amd64_linux_fill_gregset): Adjust for renamed macros.
6533 (fetch_core_registers): Adjust for renamed functions.
6534 (amd64_linux_init_abi): Adjust for renamed functions.
6535 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
6536 renamed functions.
6537 * amd64-nat.c: Adjust for renamed macros.
6538 * amd64bsd-nat.c (fetch_inferior_registers)
6539 (store_inferior_registers): Use constants from `enum amd64_regnum'
6540 for register numbers. Adjust for renamed variables.
6541 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
6542 renamed variables.
6543 (_initialize_amd64fbsd_nat): Use constants from `enum
6544 amd64_regnum' for register numbers.
6545 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
6546 `enum amd64_regnum' for register numbers.
6547 (amd64fbsd_init_abi): Adjust for renamed functions.
6548 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
6549 `enum amd64_regnum' for register numbers.
6550 (amd64nbsd_init_abi): Adjust for renamed functions.
6551 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
6552 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
6553 `enum amd64_regnum' for register numbers.
6554 (amd64obsd_init_abi): Adjust for renamed functions.
6555 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
6556
d5479188
JJ
65572004-02-23 Jeff Johnston <jjohnstn@redhat.com>
6558
6559 * breakpoint.c (print_one_breakpoint): Do not output spaces
6560 after printing <PENDING> for a pending breakpoint.
6561
81cb7cc9
JJ
65622004-02-23 Jeff Johnston <jjohnstn@redhat.com>
6563
6564 * printcmd.c (print_scalar_formatted): Initialize val_long
6565 to remove compiler warning message.
6566
cbdeadca
JJ
65672004-02-23 Jeff Johnston <jjohnstn@redhat.com>
6568
6569 * defs.h (nquery, yquery): New prototypes.
6570 * breakpoint.c (break_command_1): Use new nquery interface.
6571 * utils.c (defaulted_query, nquery, yquery): New functions.
6572
da6bab63
AC
65732004-02-23 Andrew Cagney <cagney@redhat.com>
6574
2f690297
AC
6575 * hppa-tdep.c (hppa_frame_align): New function.
6576 (hppa32_push_dummy_call): New function.
6577 (hppa64_push_dummy_call): New function.
6578 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
6579 disabled.
8a1dac83 6580
da6bab63
AC
6581 * infcall.c (legacy_push_dummy_code): Don't call deprecated
6582 FIX_CALL_DUMMY when push_dummy_call is available.
6583 (call_function_by_hand, push_dummy_code): Ditto.
6584
abf9b42d
AC
65852004-02-22 Andrew Cagney <cagney@redhat.com>
6586
6587 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
6588 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
6589 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
6590 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
6591 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
6592 call_dummy_location to ON_STACK.
6593
10fc94a4
MK
65942004-02-22 Mark Kettenis <kettenis@gnu.org>
6595
51433e4b
MK
6596 * x86-64-linux-tdep.c: Tweak comment.
6597 (amd64_linux_supply_gregset): Renamed from
6598 x86_64_linux_supply_gresget.
6599 (amd64_linux_fill_gregset): Renamed from
6600 x86_64_linux_fill_gregset.
6601 (fetch_core_registers): Adjust for renamed functions.
6602 (amd64_core_fns): Renamed from x86_64_core_fns.
6603 (amd64_linux_sigtramp_start): Renamed from
6604 x86_64_linux_sigtramp_start.
6605 (amd64_linux_pc_in_sigtramp): Renamed from
6606 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
6607 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
6608 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
6609 (amd64_linux_sigcontext_addr): Renamed from
6610 x86_64_linux_sigcontext_addr.
6611 (amd64_linux_sc_reg_offset): Renamed from
6612 x86_64_linux_sc_reg_offset.
6613 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
6614 Adjust for renamed functions and variables.
6615 (_initialize_amd64_linux_tdep): Renamed from
6616 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
6617 variables.
6618 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
6619 Adjust for renamed functions.
6620
430eaf2e
MK
6621 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
6622 from x86_64_linux_gregset64_reg_offset.
6623 (amd64_linux_gregset32_reg_offset): Rename from
6624 x86_64_linux_gregset64_reg_offset.
6625 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
6626 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
6627 (amd64_linux_dr_set_control): Renamed from
6628 x86_64_linux_dr_set_control. Adjust for renamed functions.
6629 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
6630 Adjust for renamed functions.
6631 (amd64_linux_dr_reset_addr): Renamed from
6632 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
6633 (amd64_linux_dr_get_status): Renamed from
6634 x86_64_linux_dr_get_status. Adjust for renamed functions.
6635 (_initialize_amd64_linux_nat): Renamed from
6636 _initialize_x86_64_linux_nat. Adjust for renamed variables and
6637 functions.
6638 * config/i386/nm-x86-64linux.h: Update copyright year.
6639 Adjust for renamed functions.
6640
10fc94a4
MK
6641 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
6642 amd64fbsd_sigtramp_start.
6643 (amd64fbsd_sigtramp_end_addr): Renamed from
6644 amd64fbsd_sigtramp_end.
6645 (amd64fbsd_init_abi): Adjust for renamed variables.
6646 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
6647 variables.
6648 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
6649 amd64fbsd_sigtramp_start.
6650 (amd64fbsd_sigtramp_end_addr): Renamed from
6651 amd64fbsd_sigtramp_end.
6652
343af405
AC
66532004-02-22 Andrew Cagney <cagney@redhat.com>
6654
537987fc
AC
6655 * hppa-tdep.c (hppa32_return_value): New function.
6656 (hppa64_return_value): New function.
6657 (hppa_gdbarch_init): Set return_value; keep disabled.
6658
fad850b2
AC
6659 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
6660 struct-return and inferior function call methods.
6661
26d08f08
AC
6662 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6663 "frame-base.h".
6664 (struct hppa_frame_cache): Define.
6665 (hppa_frame_cache, hppa_frame_this_id): New functions.
6666 (hppa_frame_prev_register): New function.
6667 (hppa_frame_unwind, hppa_frame_base): New variables.
6668 (hppa_frame_unwind_sniffer): New function.
6669 (hppa_frame_base_address, hppa_unwind_pc): New function.
6670 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
6671 sniffer, and frame base sniffer; keep disabled.
6672 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
6673 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
6674
e7d7bd65
AC
6675 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
6676 to predicates for "seriously old code".
6677
e963316f
AC
6678 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
6679 runtime if(0).
6680
56132691
AC
6681 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
6682 unsigned.
6683 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 6684
343af405
AC
6685 * config/pa/tm-hppa.h: Update copyright.
6686 (DEPRECATED_INIT_FRAME_PC): Delete macro.
6687 (deprecated_init_frame_pc_default): Delete declaration.
6688 (hppa_frame_init_saved_regs): Delete declaration.
6689 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6690 * hppa-tdep.c: Include "arch-utils.h".
6691 (hppa_gdbarch_init): Set deprecated init_frame_pc
6692 and deprecated frame_init_saved_regs.
6693 (hppa_frame_init_saved_regs): Make static.
6694
f5859b4d
MK
66952004-02-22 Mark Kettenis <kettenis@gnu.org>
6696
86f6f8e7 6697 Remove old 386BSD support.
cf7c5c23 6698 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
6699 * configure.host: Remove i[34567]86-*-bsd*.
6700 * configure.tgt: Remove i[34567]86-*-bsd*.
6701 * i386b-nat.c: Removed.
6702 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
6703 (i386b-nat.o): Remove dependencies.
6704
86f6f8e7
MK
6705 * config/i386/i386bsd.mh: Removed.
6706 * config/i386/i386bsd.mt: Removed.
6707 * config/i386/nm-i386bsd.h: Removed.
6708 * config/i386/tm-i386bsd.h: Removed.
6709 * config/i386/xm-i386bsd.h: Removed.
6710
971218cd
MK
6711 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
6712
7e654c37
MK
6713 * amd64fbsd-tdep.c: Include "solib-svr4.h".
6714 (amd64fbsd_init_abi): Set link map offsets.
6715 * amd64nbsd-tdep.c: Include "slib-svr4.h".
6716 (amd64nbsd_init_abi): Set link map offsets.
6717 * amd64obsd-tdep.c: Include "solib-svr4.h".
6718 (amd64obsd_init_abi): Set link map offsets.
6719 * i386fbsd-tdep.c: Include "solib-svr4.h".
6720 (i386fbsd_init_abi): Set link map offsets.
6721 * i386nbsd-tdep.c: Include "solib-svr4.h".
6722 (i386nbsdelf_init_abi): Set link map offsets.
6723 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
6724 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
6725 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
6726 solib-legacy.o and core-aout.o. Reformat.
6727 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
6728 solib-svr4.o, solib-legacy.o. Reformat.
6729 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
6730 * config/i386/nbsdelf.mh: Reformat.
6731 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
6732 solib-svr4.o, solib-legacy.o and corelow.o.
6733 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
6734 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
6735 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
6736 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
6737 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
6738 (TM_FILE): Set to tm-fbsd.h.
6739 * config/i386/nbsd.mt (TDEPFILES): Reformat.
6740 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
6741 solib-svr4.o.
6742 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
6743 solib-svr4.o.
6744 (TM_FILE): Set to nm-nbsd.h.
6745 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
6746 Simplify shared library support. Don't include "elf/common.h".
6747 (SVR4_SHARED_LIBS): Don't define.
6748 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
6749 "solib.h".
6750 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
6751 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
6752 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
6753 Don't include "i386/tm-i386.h". Include "solib.h".
6754 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
6755 Don't include "i386/tm-i386.h".
6756 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
6757 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
6758 Include "i386/xm-i386.h".
6759 (HOST_LONG_DOUBLE_FORMAT): Remove.
6760
5d93ae8c
MK
6761 Fix OpenBSD/i386 sigtramp recognition.
6762 * i386-tdep.h: Update copyright year.
6763 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
6764 (i386bsd_sigtramp_end): New prototypes.
6765 (i386fbsd_sigtramp_start_addr): Renamed from
6766 i386fbsd_sigtramp_start.
6767 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
6768 (i386obsd_sigtramp_start_addr): Renamed from
6769 i386obsd_sigtramp_start.
6770 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
6771 * i386bsd-tdep.c: Update copyright year.
6772 (i386bsd_pc_in_sigtramp): Make public.
6773 * i386fbsd-nat.c: Update copyright year.
6774 (_initialize_i386fbsd_nat): Adjust for renamed variables.
6775 * i386fbsd-tdep.c: Update copyright year.
6776 (i386fbsd_sigtramp_start_addr): Renamed from
6777 i386fbsd_sigtramp_start.
6778 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
6779 (i386fbsdaout_init_abi): Adjust for renamed variables.
6780 * i386obsd-nat.c: Update copyright year.
6781 (_initialize_i386obsd_nat): Adjust for renamed variables.
6782 * i386obsd-tdep.c: Include "target.h".
6783 (i386obsd_page_size): New variable.
6784 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
6785 (i386obsd_sigtramp_end): New functions.
6786 (i386obsd_sigtramp_start_addr): Renamed from
6787 i386obsd_sigtramp_start.
6788 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
6789 (i386obsd_init_abi): Adjust for renamed variables. Set
6790 pc_in_sigtramp, sigtramp_start and sigtramp_end.
6791 * Makefile.in (i386obsd-tdep.o): Update dependencies.
6792
84d04465
MK
6793 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
6794 trampoline change in OpenBSD kernel.
6795
b053aceb
MK
6796 * amd64-nat.c: Update copyright year.
6797 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
6798 architecture from REGCACHE.
6799
f5859b4d
MK
6800 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
6801 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
6802
e4bbbda8
MK
68032004-02-21 Mark Kettenis <kettenis@gnu.org>
6804
ba361932
MK
6805 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
6806 i[34567]86-*-openbsd3.[0-3].
6807 * config/i386/obsdaout.mh: New file.
6808
d3e48264
MK
6809 * config/i386/obsd.mh (MH_FLAGS): Remove.
6810
60a6eeb6
MK
6811 Fix PR build/1549.
6812 * i386obsd-tdep.c: Update copyright years. Include
6813 "solib-svr4.h".
6814 (i386obsd_init_abi): Don't set regset_from_core_section here.
6815 (i386obsd_aout_init_abi): New function. Set
6816 regset_from_core_section here.
6817 (i386obsd_elf_init_abi): New function.
6818 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
6819 * Makefile.in (i386obsd-tdep.o): Update dependecies.
6820 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6821 (TM_FILE): Set to tm-nbsd.h.
6822
6823 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
6824 solib-sunos.o.
6825
e4bbbda8
MK
6826 * solib-svr4.h: Update copyright year.
6827 (svr4_ilp32_fetch_link_map_offsets)
6828 (svr4_lp64_fetch_link_map_offsets): New prototype.
6829 * solib-svr4.c: Update copyright year.
6830 (svr4_ilp32_fetch_link_map_offsets)
6831 (svr4_lp64_fetch_link_map_offsets): New function.
6832
f6fe98ef
DJ
68332004-02-20 Daniel Jacobowitz <drow@mvista.com>
6834
6835 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
6836 to the partial symbol table.
6837
589ca796
JB
68382004-02-20 J. brobecker <brobecker@gnat.com>
6839
6840 * PROBLEMS: Add description of problem documented under gdb/1560.
6841
2031c21a
MK
68422004-02-20 Mark Kettenis <kettenis@gnu.org>
6843
30b344b1
MK
6844 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
6845 comments.
6846 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
6847 functions.
6848 (amd64obsd_init_abi): Reorder initializations. Use
6849 amd64obsd_r_reg_offset to initialize the general-purpose register
6850 set details. Set regset_from_core_section.
6851 (_initialize_amd64obsd_tdep): Rename from
6852 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
6853 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
6854 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
6855
2031c21a
MK
6856 * NEWS (New native configurations): Mention OpenBSD/alpha.
6857 * configure.tgt: Add alpha*-*-openbsd*.
6858 * configure.host: Add alpha*-*-openbsd*.
6859 * alphanbsd-tdep.c: Update copyright year.
6860 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
6861
42471775
AC
68622004-02-20 Andrew Cagney <cagney@redhat.com>
6863
6864 Fix PR tdep/1372.
6865 * configure.tgt: Delete target "none-*-*".
6866 * configure.host: Delete host "none-*-*".
6867 * config/none/none.mh: Delete file.
6868 * config/none/none.mt: Delete file.
6869 * config/none/xm-none.h: Delete file.
6870 * config/none/tm-none.h: Delete file.
6871 * config/none/nm-none.h: Delete file.
6872
960ccd7d
FF
68732004-02-19 Fred Fish <fnf@redhat.com>
6874
6875 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
6876 cache->uses_fp prior to setting it.
6877
5f883edd
FF
68782004-02-19 Fred Fish <fnf@redhat.com>
6879
6880 Fix for PR breakpoint/1558.
6881 * sh-tdep.c (IS_JSR): New macro.
6882 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
6883
f98c22d5
JB
68842004-02-19 Jim Blandy <jimb@redhat.com>
6885
6886 * findvar.c (value_from_register): Doc fix.
6887
95051d27
JJ
68882004-02-19 Jeff Johnston <jjohnstn@redhat.com>
6889
6890 * printcmd.c (print_scalar_formatted): Do not check for sizeof
6891 type being greater than sizeof of host's LONGEST. Always use
6892 unpack_long() unless format 'f' chosen.
6893
ccefbec3
EZ
68942004-02-19 Joel Brobecker <brobecker@gnat.com>
6895
6896 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 6897
ccefbec3
EZ
6898 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
6899 contains a symbol wich is the best, non-exact match for the given
6900 pc. Update comments.
6901
69022004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 6903
2ede629f
EZ
6904 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
6905 macro, which was part of the now removed Mach 3 port.
6906 * utils.c (request_quit): Ditto.
6907
567ee972
MK
69082004-02-18 Mark Kettenis <kettenis@gnu.org>
6909
6910 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
6911 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
6912
50cca7bb
MK
69132004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6914
6915 Committed by Mark Kettenis <kettenis@gnu.org>.
6916
6917 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
6918 Define.
6919
226361c4
AC
69202004-02-18 Andrew Cagney <cagney@redhat.com>
6921
6922 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
6923 CONFIG_INSTALL and CONFIG_UNINSTALL.
6924 * configure: Re-generate.
6925 * interps.h (INTERP_TUI): Define.
6926 * Makefile.in: Update dependencies.
6927 (TUI): New macro.
6928 (tui-main.o): Specify dependencies.
6929 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
6930 * tui/tui-main.c: New file.
6931
49cfa46f
MK
69322004-02-18 Mark Kettenis <kettenis@gnu.org>
6933
e2879ccb
MK
6934 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
6935 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
6936 dependencies.
6937 * configure.host: Add x86_64-*-openbsd*.
6938 * configure.tgt: Add x86_64-*-openbsd*.
6939 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
6940
c43f4bec
MK
6941 * tui/tui.c: Don't include <malloc.h>.
6942
09ae75b6
MK
6943 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
6944 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
6945 amd64nbsd-tdep.c.
6946
49cfa46f 6947 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 6948 static. Remove extraneous whitespace.
49cfa46f
MK
6949 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
6950 static.
6951
05957fdb
JB
69522004-02-17 Jim Blandy <jimb@redhat.com>
6953
6954 * findvar.c (value_from_register): Doc fix.
6955
d0f54f9d
JB
69562004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6957
6958 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 6959
8a1dac83 6960 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
6961 CORE_ADDR as type for selectors. Correct types for GNU run time
6962 message lookup function to use double indirection.
6963 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
6964 * objc-lang.h (lookup_child_selector): Adapt prototype.
6965
9cbd5950
JB
6966 * s390-nat.c (SUBOFF): New macro.
6967 (supply_gregset, fill_gregset): Use it to handle debugging
6968 of 32-bit exectuables running under a 64-bit kernel.
6969 * s390-tdep.c: Include "solib-svr4.h".
6970 (s390_svr4_fetch_link_map_offset): New function.
6971 (s390x_svr_fetch_link_map_offset): Likewise.
6972 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
6973 * Makefile.in (s390-tdep.o): Update dependencies.
6974
a8c99f38
JB
6975 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
6976 "frame-unwind.h".
6977 (s390_readinstruction): Reformat. Use read_memory_nobpt.
6978 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
6979 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
6980 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
6981 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
6982 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 6983 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
6984 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
6985 (struct frame_extra_info): Remove.
6986 (s390_memset_extra_info): Remove.
f73b1eff
JB
6987 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
6988 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
6989 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
6990 (is_rse): Renamed to ...
6991 (is_rsy): ... this. Support long displacements.
6992 (is_rxe): Renamed to ...
6993 (is_rxy): ... this. Support long displacements.
6994 (compute_x_addr): Support long displacements.
6995 (struct s390_prologue_data): New data type.
6996 (s390_on_stack): Change API to use struct s390_prologue_data.
6997 (s390_store): Reimplement.
6998 (s390_load): New function.
6999 (s390_get_signal_frame_info): Remove.
7000 (s390_get_frame_info): Remove, replace by ...
7001 (s390_analyze_prolog): ... this new function.
7002 (s390_check_function_end): Remove.
7003 (s390_function_start): Remove.
7004 (s390_frameless_function_invokation): Remove.
7005 (s390_is_sigreturn): Remove.
7006 (s390_init_frame_pc_first): Remove.
7007 (s390_init_frame_extra_info): Remove.
7008 (s390_frame_init_saved_regs): Remove.
7009 (s390_frame_saved_pc_nofix): Remove.
7010 (s390_frame_saved_pc): Remove.
7011 (s390_frame_chain): Remove.
7012 (s390_fp_regnum, s390_read_fp): Remove.
7013 (s390_pop_frame_regular, s390_pop_frame): Remove.
7014 (s390_saved_pc_after_call): Remove.
7015 (s390_skip_prologue): Reimplement.
7016 (s390_in_function_epilogue_p): Support long displacements.
7017 (struct s390_unwind_cache): New data structure.
7018 (s390_frame_unwind_cache): New function.
7019 (s390_prologue_frame_unwind_cache): Likewise.
7020 (s390_backchain_frame_unwind_cache): Likewise.
7021 (s390_frame_this_id, s390_frame_prev_register): Likewise.
7022 (s390_frame_unwind): Define.
7023 (s390_frame_sniffer): New function.
7024 (struct s390_pltstub_unwind_cache): New data structure.
7025 (s390_pltstub_frame_unwind_cache): New function.
7026 (s390_pltstub_frame_this_id): Likewise.
7027 (s390_pltstub_frame_prev_register): Likewise.
7028 (s390_pltstub_frame_unwind): Define.
7029 (s390_pltstub_frame_sniffer): New function.
7030 (struct s390_sigtramp_unwind_cache): New data structure.
7031 (s390_sigtramp_frame_unwind_cache): New function.
7032 (s390_sigtramp_frame_this_id): Likewise.
7033 (s390_sigtramp_frame_prev_register): Likewise.
7034 (s390_sigtramp_frame_unwind): Define.
7035 (s390_sigtramp_frame_sniffer): New function.
7036 (s390_frame_base_address, s390_local_base_address): New functions.
7037 (s390_frame_base): Define.
7038 (s390_unwind_pc, s390_unwind_sp): New function.
7039 (s390_push_dummy_call): Use new frame base location.
7040 (s390_unwind_dummy_id): Likewise.
7041 (s390_gdbarch_init): Remove calls to:
7042 set_gdbarch_frameless_function_invocation,
7043 set_gdbarch_deprecated_init_frame_pc,
7044 set_gdbarch_deprecated_frame_chain,
7045 set_gdbarch_deprecated_frame_init_saved_regs,
7046 set_gdbarch_deprecated_pop_frame,
7047 set_gdbarch_deprecated_init_extra_frame_info,
7048 set_gdbarch_deprecated_init_frame_pc_first,
7049 set_gdbarch_deprecated_target_read_fp,
7050 set_gdbarch_deprecated_frame_saved_pc,
7051 set_gdbarch_deprecated_saved_pc_after_call,
7052 set_gdbarch_deprecated_fp_regnum.
7053 Add calls to:
7054 set_gdbarch_in_solib_call_trampoline,
7055 frame_unwind_append_sniffer,
7056 frame_base_set_default,
7057 set_gdbarch_unwind_pc,
7058 set_gdbarch_unwind_sp.
7059 * Makefile.in (s390-tdep.o): Update dependencies.
7060
b0cf273e
JB
7061 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
7062 (S390_STACK_FRAME_OVERHEAD): Remove.
7063 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
7064 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
7065 (s390_promote_integer_argument): Remove.
7066 (s390_cannot_extract_struct_value_address): Remove.
7067 (s390_use_struct_convention, s390_store_struct_return): Remove.
7068 (s390_extract_return_value, s390_store_return_value): Remove.
7069 (s390_return_value_convention, s390_return_value): New functions.
7070 (is_float_singleton): Handle typedefs.
8a1dac83 7071 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
7072 Remove, replace by ...
7073 (s390_function_arg_pass_by_reference, s390_function_arg_float,
7074 s390_function_arg_integer): ... these new functions.
7075 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
7076 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
7077 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
7078 Fill in tdep->abi.
7079 Remove calls to:
7080 set_gdbarch_deprecated_store_struct_return,
7081 set_gdbarch_deprecated_extract_return_value,
7082 set_gdbarch_deprecated_store_return_value,
7083 set_gdbarch_use_struct_convention,
7084 set_gdbarch_extract_struct_value_address,
7085 set_gdbarch_deprecated_pc_in_call_dummy,
7086 set_gdbarch_deprecated_push_arguments,
7087 set_gdbarch_deprecated_save_dummy_frame_tos,
7088 set_gdbarch_deprecated_push_return_address,
7089 set_gdbarch_deprecated_sizeof_call_dummy_words,
7090 set_gdbarch_deprecated_call_dummy_words,
7091 set_gdbarch_deprecated_dummy_write_sp.
7092 Add calls to:
7093 set_gdbarch_push_dummy_call,
7094 set_gdbarch_unwind_dummy_id,
7095 set_gdbarch_return_value.
8a1dac83 7096
e1457d83
JB
7097 * config/s390/nm-linux.h: Update comments.
7098 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
7099 (STOPPED_BY_WATCHPOINT): Redefine.
7100 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
7101 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
7102 (s390_stopped_by_watchpoint): Likewise.
7103 (watch_area_cnt): Remove.
7104 * s390-nat.c: Update comments.
7105 (watch_area): Remove typedef.
7106 Global replace watch_area by struct watch_area.
7107 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 7108 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
7109 use s390_inferior_tid. Add short-cut for the no watchpoint case.
7110 (s390_fix_watch_points): Remove pid argument,
7111 use s390_inferior_tid. Recompute area spanned by watchpoints.
7112 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
7113 argument. Reimplement.
7114
d0f54f9d
JB
7115 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
7116 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
7117 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 7118 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
7119 core-regset.o.
7120 * config/s390/s390x.mt: Remove.
7121 * config/s390/tm-s390.h: Remove.
7122 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
7123 (TARGET_ELF64): Remove.
7124 (SKIP_TRAMPOLINE_CODE): Do not undefine.
7125 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
7126 s390*-*-* case; always set gdb_target to s390.
7127 * regformats/reg-s390.dat: Remove control registers.
7128 * regformats/reg-s390x.dat: Likewise.
7129 * s390-tdep.h: New file.
8a1dac83 7130 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
7131 Include "inferior.h" and "s390-tdep.h".
7132 Remove private definition of offsetof.
7133 (s390_register_u_addr): Remove.
7134 (regmap_gregset, regmap_fpregset): Define.
7135 (supply_gregset, fill_gregset): Reimplement.
7136 (supply_fpregset, fill_fpregset): Likewise.
7137 (s390_inferior_tid): New function.
7138 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
7139 (fetch_inferior_registers, store_inferior_registers): Likewise.
7140 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
7141 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
7142 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
7143 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
7144 (struct gdbarch_tdep): Define.
7145 (struct s390_register_info): Define.
7146 (s390_register_info): New variable.
7147 (s390_register_name): Reimplement.
7148 (s390_register_type): New function.
7149 (s390_register_raw_size, s390x_register_raw_size): Remove.
7150 (s390_cannot_fetch_register): Remove.
7151 (s390_register_byte): Remove.
7152 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
7153 (s390_dwarf_regmap): New variable.
7154 (s390_dwarf_reg_to_regnum): New function.
7155 (s390_stab_reg_to_regnum): Remove.
7156 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
7157 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
7158 (s390_convert_register_p): Likewise.
7159 (s390_register_to_value, s390_value_to_register): Likewise.
7160 (s390_register_reggroup_p): Likewise.
7161 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
7162 s390_gregset, s390x_gregset, s390_fpregset): New variables.
7163 (s390_supply_regset, s390_regset_from_core_section): New functions.
7164 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
7165 (S390_FPR_SIZE): Likewise.
7166 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
7167 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
7168 (S390_NUM_GPRS): Move here from tm-s390.h.
7169 (S390_NUM_FPRS): Likewise.
7170 (s390_in_function_epilogue_p): New function.
7171 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
7172 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
7173 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
7174 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
7175 Replace S390_FP_REGNUM by S390_SP_REGNUM.
7176 Remove calls to:
7177 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
7178 set_gdbarch_deprecated_max_register_virtual_size,
7179 set_gdbarch_deprecated_register_byte,
d0f54f9d 7180 set_gdbarch_cannot_fetch_register,
8a1dac83 7181 set_gdbarch_cannot_store_register,
d0f54f9d
JB
7182 set_gdbarch_deprecated_register_size,
7183 set_gdbarch_deprecated_register_raw_size,
7184 set_gdbarch_deprecated_register_virtual_size,
7185 set_gdbarch_deprecated_register_virtual_type,
7186 set_gdbarch_deprecated_register_bytes.
7187 Add calls to:
7188 set_gdbarch_num_pseudo_regs,
7189 set_gdbarch_register_type,
7190 set_gdbarch_convert_register_p,
7191 set_gdbarch_register_to_value,
7192 set_gdbarch_value_to_register,
7193 set_gdbarch_register_reggroup_p,
7194 set_gdbarch_regset_from_core_section,
7195 set_gdbarch_pseudo_register_read,
7196 set_gdbarch_pseudo_register_write,
7197 set_gdbarch_in_function_epilogue_p.
7198 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
7199 (s390_tdep_h): New variable.
7200
8cfe231d
JB
72012004-02-17 Jim Blandy <jimb@redhat.com>
7202
4589a601
JB
7203 * findvar.c (value_from_register): If the type has no length, just
7204 return an acceptable value --- don't report an internal error.
7205
8cfe231d
JB
7206 * stabsread.c (read_type): If we find any type numbers that are
7207 forward references, complain if the references aren't resolved by
7208 the time we're finished reading.
7209 (cleanup_undefined_types): Make error message more appropriate for
7210 a complaint.
7211
5bf0017e
EZ
72122004-02-17 Elena Zannoni <ezannoni@redhat.com>
7213
9d62932d
EZ
7214 * Makefile.in (defs_h): Remove dependency on progress_h.
7215 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
7216 progress.h.
7217 * main.c (captured_main): Delete use of START_PROGRESS and
7218 END_PROGRESS.
7219
72202004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 7221
5bf0017e
EZ
7222 * objfiles.c (terminate_minimal_symbol_table): Add back
7223 initialization of MSYMBOL_TYPE.
7224
9fc9f5e2
AC
72252004-02-17 David Mosberger <davidm@hpl.hp.com>
7226
7227 Committed by Andrew Cagney.
7228 * Makefile.in (ia64_tdep_h): New macro.
7229 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
7230 (ia64-tdep.o): Likewise.
7231 * ia64-tdep.h: New file.
7232 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
7233 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
7234 (ia64_aix_sigcontext_register_address): Likewise.
7235 (ia64_linux_getunwind_table): Delete declaration.
7236 * ia64-linux-tdep.c: Likewise.
7237
76cd2bd9
CV
72382004-02-17 Corinna Vinschen <vinschen@redhat.com>
7239
7240 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
7241 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
7242 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
7243
634aa483
AC
72442004-02-17 Andrew Cagney <cagney@redhat.com>
7245
7246 * symtab.c (skip_prologue_using_sal): New function.
7247 * symtab.h (skip_prologue_using_sal): Declare.
7248 * frv-tdep.c: Include "symtab.h".
7249 (skip_prologue_using_sal): Delete function.
7250 * mips-tdep.c (skip_prologue_using_sal): Delete function.
7251 * rs6000-tdep.c (refine_prologue_limit): Mention
7252 skip_prologue_using_sal.
7253 * ia64-tdep.c (refine_prologue_limit): Ditto.
7254 * Makefile.in: Update dependencies.
7255
72562004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 7257
39ce7b3f
AC
7258 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
7259 START_INFERIOR_TRAPS_EXPECTED.
7260 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
7261 START_INFERIOR_TRAPS_EXPECTED.
7262 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
7263 Delete macro.
7264 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
7265 macro, moved to "nm-osf.h". Update copyright.
7266 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
7267 update copyright.
7268
19772a2c
AC
7269 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
7270 and function replacing FRAMELESS_FUNCTION_INVOCATION.
7271 * blockframe.c (legacy_frameless_look_for_prologue): Rename
7272 frameless_look_for_prologue.
7273 * frame.h (legacy_frameless_look_for_prologue): Rename
7274 frameless_look_for_prologue.
7275 * gdbarch.h, gdbarch.c: Re-generate.
7276 * sh64-tdep.c (sh64_gdbarch_init): Update.
7277 * sh-tdep.c (sh_gdbarch_init): Update.
7278 * s390-tdep.c (s390_gdbarch_init): Update.
7279 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7280 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7281 * m68k-tdep.c (m68k_gdbarch_init): Update.
7282 (delta68_frame_args_address): Update.
7283 * m32r-tdep.c (m32r_gdbarch_init): Update.
7284 * hppa-tdep.c (hppa_gdbarch_init): Update.
7285 * h8300-tdep.c (h8300_gdbarch_init): Update.
7286 * frv-tdep.c (frv_gdbarch_init): Update.
7287 (frv_frameless_function_invocation): Update.
7288 * cris-tdep.c (cris_gdbarch_init): Update.
7289 (cris_frameless_function_invocation): Update.
7290 * avr-tdep.c (avr_gdbarch_init): Update.
7291 * arm-tdep.c (arm_gdbarch_init): Update.
7292 * stack.c (frame_info): Update, call predicate.
7293 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
7294 * frame.c (legacy_get_prev_frame): Update, call predicate..
7295 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
7296 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
7297 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
7298 invocation.
7299 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7300 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7301 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
7302
7303 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
7304 function.
7305
7dcaac91
DJ
73062004-02-16 Daniel Jacobowitz <drow@mvista.com>
7307
7308 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
7309 initializations.
7310
88289b6e
AC
73112004-02-16 Andrew Cagney <cagney@redhat.com>
7312
7313 * tui/tui-windata.c: Include "gdb_string.h".
7314 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
7315 * tui/tui-layout.c, tui/tui-command.c: Ditto.
7316 * Makefile.in: Update dependencies.
7317
9f976b41
DJ
73182004-02-16 Daniel Jacobowitz <drow@mvista.com>
7319
7320 * Makefile.in (infrun.o): Add $(gdb_assert_h).
7321 * infrun.c: Include "gdb_assert.h".
7322 (singlestep_ptid, saved_singlestep_ptid)
7323 (stepping_past_singlestep_breakpoint): New variables.
7324 (resume): Set singlestep_ptid. Check for singlestep thread
7325 hop.
7326 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
7327 (handle_inferior_event): Handle singlestep thread hop.
7328
c324d747
AC
73292004-02-16 Andrew Cagney <cagney@redhat.com>
7330
f090b9b1
AC
7331 * dwarf2-frame.c (dwarf2_frame_ops): New function.
7332 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
7333 (dwarf2_frame_init_reg): Ditto.
7334
fd33e6cb
AC
7335 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
7336 suggested by Joshua Neuheisel
7337
c324d747
AC
7338 * configure.in: Always check for curses, including pdcurses.
7339 Warn, instead of error, when no curses are found. Enable TUI when
7340 curses is available.
7341 * configure: Re-generate.
7342
b66ba949
CV
73432004-02-16 Corinna Vinschen <vinschen@redhat.com>
7344
7345 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
7346 sh_sh4_register_convert_to_virtual.
7347 (sh_register_convert_to_raw): Rename from
7348 sh_sh4_register_convert_to_raw.
7349 (sh_pseudo_register_read): Accomodate above name change.
7350 (sh_pseudo_register_write): Ditto.
7351
b58cbbf2
CV
73522004-02-16 Corinna Vinschen <vinschen@redhat.com>
7353
7354 * sh-tdep.c (sh_generic_register_name): Remove.
7355 (sh_gdbarch_init): Use sh_sh_register_name in default case.
7356
5929a910
AC
73572004-02-15 Andrew Cagney <cagney@redhat.com>
7358
4566dfcf
AC
7359 * configure.in (build_warnings): Add -Wunused-function.
7360 * configure: Re-generate.
7361
db11ed55
AC
7362 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
7363 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
7364
46ac7a5d
AC
7365 * procfs.c (procfs_init_inferior): Assume that
7366 START_INFERIOR_TRAPS_EXPECTED is defined.
7367 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
7368 * config/ns32k/tm-nbsd.h: Delete file,
7369 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
7370
ba801595
AC
7371 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
7372 * config/vax/tm-vax.h: Delete file.
7373
5929a910
AC
7374 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7375 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7376 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7377 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7378 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
7379 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7380 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
7381
8f22cb90
MK
73822004-02-15 Mark Kettenis <kettenis@gnu.org>
7383
7384 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
7385 * dwarf2-frame.c (dwarf2_frame_data): New variable.
7386 (struct dwarf2_frame_ops): New.
7387 (dwarf2_frame_default_init_reg): New function, based on
7388 dwarf2_frame_init_reg.
7389 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
7390 (dwarf2_frame_init_reg): Call architecture-specific function.
7391 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
7392 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
7393 instead of dwarf2_frame_data.
7394 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
7395 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
7396
8132723e
AC
73972004-02-15 Andrew Cagney <cagney@redhat.com>
7398
046a4708
AC
7399 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
7400 register_gdbarch_swap.
7401 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
7402 * f-lang.c (_initialize_f_language): Update, use
7403 DEPRECATED_REGISTER_GDBARCH_SWAP.
7404 * remote.c (_initialize_remote): Ditto.
7405 * regcache.c (_initialize_regcache): Ditto.
7406 * parse.c (_initialize_parse): Ditto.
7407 * infrun.c (_initialize_infrun): Ditto.
7408 * mi/mi-main.c (_initialize_mi_main): Ditto.
7409 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 7410
549c1eea
AC
7411 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
7412 poking .cacheable directly.
7413 * symfile.c (symfile_bfd_open): Ditto.
7414
0c0b39de
AC
7415 * Makefile.in: Update all dependencies.
7416
8132723e
AC
7417 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
7418 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
7419 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
7420 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
7421 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 7422
b9d26eb9
AC
74232004-02-14 Andrew Cagney <cagney@redhat.com>
7424
8e1f669a
AC
7425 * arch-utils.c (legacy_convert_register_p): Check
7426 DEPRECATED_REGISTER_CONVERTIBLE_P.
7427 * findvar.c (value_of_register): Ditto.
7428
cd0bfa36
AC
7429 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
7430 * gdbarch.h, gdbarch.c: Re-generate.
7431 * arch-utils.c (deprecated_register_convertible_not): Delete.
7432 * arch-utils.h (deprecated_register_convertible_not): Delete.
7433 * mi/mi-main.c (get_register): Update. Update copyright.
7434 * infcmd.c (default_print_registers_info): Update.
7435
b9d26eb9
AC
7436 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7437 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
7438 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 7439 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
7440 * frame.c (deprecated_get_next_frame_hack): Delete function.
7441 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
7442 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7443 Update.
7444 * infcall.c (call_function_by_hand): Update.
7445
9ab9195f
EZ
74462004-02-14 Elena Zannoni <ezannoni@redhat.com>
7447
7448 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 7449 from here...
9ab9195f
EZ
7450 * objfiles.c (init_entry_point_info, entry_point_address):..to
7451 here.
7452 * symfile.h (init_entry_point_info, entry_point_address): Remove
7453 prototypes.
7454 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 7455 prototypes.
9ab9195f
EZ
7456 * cris-tdep.c: Remove include of symfile.h. Add include of
7457 objfiles.h.
7458 * infcall.c: Ditto.
7459 * mcore-tdep.c: Ditto.
7460 * mn10300-tdep.c: Ditto.
7461 * sh64-tdep.c: Ditto.
7462 * v850-tdep.c: Ditto.
7463 * arm-tdep.c: Remove include of symfile.h.
7464 * blockframe.c: Ditto.
7465 * coffread.c: Ditto.
7466 * dbxread.c: Ditto.
7467 * dwarf2read.c: Ditto.
7468 * dwarfread.c: Ditto.
8a1dac83 7469 * frv-tdep.c: Ditto.
9ab9195f
EZ
7470 * ia64-tdep.c: Ditto.
7471 * mdebugread.c: Ditto.
7472 * mipsread.c: Ditto.
8a1dac83 7473 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
7474 * s390-tdep.c: Ditto.
7475 * sh-tdep.c: Ditto.
8a1dac83 7476 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
7477 * gdbarch.sh: Remove include of symfile.h.
7478 * gdbarch.c: Regenerate.
7479 * solib-irix.c (enable_break): Use entry_point_address().
7480 Add comment about include file.
7481 * xcoffread.c: Add comment about include file.
8a1dac83
RM
7482 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
7483 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
7484 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
7485 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
7486 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
7487
c4c5b7ba
AC
74882004-02-13 Andrew Cagney <cagney@redhat.com>
7489
7490 * corelow.c (core_xfer_partial): Use "struct bfd_section".
7491 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
7492 copyright.
7493 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
7494
3e7879de
FF
74952004-02-12 Fred Fish <fnf@redhat.com>
7496
7497 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
7498 set_gdbarch_store_return_value.
7499
6a7760b6
AC
75002004-02-12 Andrew Cagney <cagney@redhat.com>
7501
7502 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
7503 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
7504 (interrupt_query): Ditto.
7505 (ofunc): Delete unused variable.
7506 * cris-tdep.c (cris_abi): Delete unused function.
7507 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
7508 (cris_get_wide_opcode, cris_get_short_size): Ditto.
7509 (cris_get_asr_quick_shift_steps): Ditto.
7510 (cris_skip_prologue_frameless_p): Ditto.
7511 * arm-tdep.c (arm_push_return_address): Delete unused function.
7512 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
7513 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
7514 * s390-tdep.c (s390_function_start): Delete unused function.
7515
31687c3c
AC
75162004-02-12 Andrew Cagney <cagney@redhat.com>
7517
7518 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
7519 gdbarch.h, gdbarch.c: Re-generate.
7520 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
7521 to generic_prologue_frameless_p.
7522 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
7523 * arch-utils.c (generic_prologue_frameless_p): Delete function.
7524
6de918a6
DJ
75252004-02-11 Daniel Jacobowitz <drow@mvista.com>
7526
7527 * mips-linux-tdep.c: Include "frame.h".
7528 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
7529 (mips_linux_skip_resolver): New functions.
7530 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
7531 and set_gdbarch_in_solib_call_trampoline.
7532 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
7533 to after set_gdbarch_in_solib_return_trampoline. Only set the
7534 solib hooks to mips16 functions if the OS ABI is unknown.
7535 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
7536 including "config/tm-linux.h".
7537 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
7538 * Makefile.in (mips-linux-tdep.o): Update.
7539
87b3ede8
DC
75402004-02-11 David Carlton <carlton@kealia.com>
7541
7542 * linespec.c (decode_compound): Only look for a class symbol when
7543 considering all but the rightmost component.
7544
5979bc46
AC
75452004-02-11 Andrew Cagney <cagney@redhat.com>
7546
7547 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
7548 abi code are are separatly grouped.
7549
5867a2fb
AC
75502004-02-11 Andrew Cagney <cagney@redhat.com>
7551
7552 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
7553 * gdbarch.h, gdbarch.c: Re-generate.
7554 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7555 * v850-tdep.c (v850_gdbarch_init): Update.
7556 * sh64-tdep.c (sh64_gdbarch_init): Update.
7557 * sh-tdep.c (sh_gdbarch_init): Update.
7558 * s390-tdep.c (s390_gdbarch_init): Update.
7559 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7560 * mips-tdep.c (mips_gdbarch_init): Update.
7561 * mcore-tdep.c (mcore_gdbarch_init): Update.
7562 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7563 * m32r-tdep.c (m32r_gdbarch_init): Update.
7564 * ia64-tdep.c (ia64_gdbarch_init): Update.
7565 * hppa-tdep.c (hppa_gdbarch_init): Update.
7566 * h8300-tdep.c (h8300_gdbarch_init): Update.
7567 * frv-tdep.c (frv_gdbarch_init): Update.
7568 * d10v-tdep.c (d10v_gdbarch_init): Update.
7569 * cris-tdep.c (cris_gdbarch_init): Update.
7570 * avr-tdep.c (avr_gdbarch_init): Update.
7571 * arm-tdep.c (arm_gdbarch_init): Update.
7572 * alpha-tdep.c (alpha_gdbarch_init): Update.
7573
026a72f8
CV
75742004-02-11 Corinna Vinschen <vinschen@redhat.com>
7575
7576 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
7577 comma.
7578 (sh_sh4al_dsp_register_name): Ditto.
7579
3903d437
AC
75802004-02-10 Andrew Cagney <cagney@redhat.com>
7581
7582 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
7583 (mips_init_frame_pc_first): Delete function.
7584 (mips_frame_saved_pc): Delete function.
7585 (mips_frame_chain): Delete function.
7586 (mips_init_extra_frame_info): Delete function.
7587 (mips_xfer_register): Delete unused variable "reg".
7588 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
7589 (mips_n32n64_return_value): Delete unused variable "reg".
7590 (mips_n32n64_return_value): Delete unused variable "pos".
7591 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
7592 (mips_o32_return_value): Delete unused variable "pos".
7593 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
7594 (mips_print_fp_register): Delete unused variable "namelen"
7595 (mips_print_fp_register): Delete unused variable "flt2"
7596 (get_frame_pointer): Delete function.
7597 (cached_proc_desc): Delete static variable.
7598 (mips_pop_frame): Delete function.
7599 (mips_find_saved_regs): Delete function.
7600 (mips_get_saved_register): Delete function.
7601 (mips_saved_pc_after_call): Delete function.
7602 (SIGFRAME_BASE): Delete macro.
7603 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
7604 (SIGFRAME_PC_OFF): Delete macro.
7605 (SIGFRAME_REGSAVE_OFF): Delete macro.
7606 (mips_dump_tdep): Do not print deleted macro definitions.
7607
b9fb98bd
AC
76082004-02-10 Andrew Cagney <cagney@redhat.com>
7609
7610 * Makefile.in (SFILES): Remove explictly listed tui files.
7611 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
7612
78ced177 76132004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 7614
78ced177
JJ
7615 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
7616 to use paddr functions to format ia64 addresses and long values.
7617 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
7618 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
7619 (get_kernel_table, ia64_find_proc_info_x): Ditto.
7620 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
7621 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
7622
6a83354a
AC
76232004-02-10 Andrew Cagney <cagney@redhat.com>
7624
7625 * defs.h: Do not include "tui.h".
7626 * gdb_curses.h: New file.
7627 * tui/tui-hooks.h: New file.
7628 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
7629 (tui_install_hooks, tui_remove_hooks): Delete declarations.
7630 (tui_initialize_io): Delete declaration.
7631 (tui_initialize_readline: Delete redundant declaration.
7632 (struct tui_point): Delete definition.
7633 * tui/tui-data.h (struct tui_point): Define.
7634 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
7635 * utils.c: Include "tui/tui.h".
7636 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
7637 * printcmd.c [TUI]: Include "tui/tui.h".
7638 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
7639 * tui/tui-command.c: Include "gdb_curses.h".
7640 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
7641 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
7642 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
7643 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
7644 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
7645 * Makefile.in: Update all dependencies.
7646 (tui_hooks_h, gdb_curses_h): Define.
7647 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
7648
997470ef
EZ
76492004-02-10 Elena Zannoni <ezannoni@redhat.com>
7650
7651 * objfiles.h (struct objfile): Remove unused fields auxf1 and
7652 auxf2. Add comments about some other rarely used fields.
7653
4ff2cc4d
AC
76542004-02-10 Andrew Cagney <cagney@redhat.com>
7655
7656 * Makefile.in (init.c): Fix script removing duplicates. Problem
7657 reported by Peter Schauer.
7658
1ab21617
EZ
76592004-02-09 Elena Zannoni <ezannoni@redhat.com>
7660
7661 * bcache.c (bcache_xmalloc): Use obstack_init instead of
7662 obstack_specify_allocation.
7663 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 7664 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
7665 (allocate_rt_common_objfile): Ditto.
7666 * symfile.c (reread_symbols): Ditto.
7667 * gdb_obstack.h: Add comment.
7668
17763fd9
EZ
76692004-02-09 Elena Zannoni <ezannoni@redhat.com>
7670
7671 * linespec.c (decode_line_1, locate_first_half)
7672 (decode_compound, lookup_prefix_sym): Update comments. Delete old
7673 commented out code.
7674
ec5cdd75
DJ
76752004-02-09 Daniel Jacobowitz <drow@mvista.com>
7676
7677 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
7678 obstack_free.
7679
43b54b88
AC
76802004-02-09 Andrew Cagney <cagney@redhat.com>
7681
7682 * blockframe.c (find_pc_partial_function): If find_pc_overlay
7683 fails, try find_pc_section. Fix PR c++/1267.
7684 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
7685 instead of find_pc_mapped_section.
7686 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
7687 not default to the section containing PC. Fix PR symtab/1519.
7688
edfae063
AC
76892004-02-09 Andrew Cagney <cagney@redhat.com>
7690
7691 * Makefile.in (mips-tdep.o): Update dependencies.
7692 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
7693 "trad-frame.h".
7694 (mips_unwind_pc): Return the pseudo PC register.
7695 (mips_unwind_dummy_id): New function.
7696 (mips16_fetch_instruction): New function.
7697 (mips32_fetch_instruction): New function.
7698 (struct mips_frame_cache): Define.
7699 (mips_mdebug_frame_cache): New function.
7700 (mips_mdebug_frame_this_id): New function.
7701 (mips_mdebug_frame_prev_register): New function.
7702 (mips_mdebug_frame_unwind): Define.
7703 (mips_mdebug_frame_sniffer): New function.
7704 (mips_mdebug_frame_base_address): New function.
7705 (mips_mdebug_frame_base): Define.
7706 (mips_mdebug_frame_base_sniffer): New function.
7707 (mips_gdbarch_init): Append unwind and base sniffers. Set
7708 unwind_dummy_id.
7709
defc864c
AC
77102004-02-08 Andrew Cagney <cagney@redhat.com>
7711
6764ddad
AC
7712 * frame.c: Print both the register number and name.
7713
defc864c
AC
7714 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
7715 and a sed into a single sed. Make .c and .o patterns more robust.
7716 (OBS): Delete.
7717 (INIT_FILES): Replace OBS with COMMON_OBS.
7718 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
7719
645d6d10
MK
77202004-02-08 Mark Kettenis <kettenis@gnu.org>
7721
7722 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
7723 the PT_WCOOKIE request.
7724
23e3c3fc
AC
77252004-02-08 Andrew Cagney <cagney@redhat.com>
7726
58dfe9ff
AC
7727 * mips-tdep.c (mips_unwind_pc): New function.
7728 (mips_gdbarch_init): Set mips_unwind_pc.
7729
1152e35e
AC
7730 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
7731 (get_frame_id): Allow the UNKNOWN_FRAME.
7732 (frame_register_unwind, get_frame_type): Ditto.
7733
31b75dbf
AC
7734 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
7735 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
7736 unwind_dummy_id indicates a legacy frame.
7737
3483b318
AC
7738 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
7739 * configure: Re-generate.
7740
23e3c3fc
AC
7741 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
7742 methods.
7743
33f8ca73
AC
77442004-02-08 Andrew Cagney <cagney@redhat.com>
7745
7746 * configure.in (CONFIG_ALL): Set to Makefile target, and not
7747 makefile macro.
7748 * configure: Re-generate.
7749 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
7750 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
7751 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
7752 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
7753 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
7754 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
7755 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
7756 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
7757 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
7758 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
7759
6ba8e26f 77602004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 7761
20d286a5
AC
7762 * Makefile.in: Update all dependencies.
7763
d836ee13
AC
7764 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
7765 * configure: Re-generate.
7766 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
7767 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
7768 (COMMON_OBS): Add "main.o" and "annotate.o".
7769 (ANNOTATE_OBS): Delete.
7770 (OBS): Remove ANNOTATE_OBS.
7771 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
7772 CONFIG_INITS.
7773 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
7774 against CONFIG_OBS and "main.o".
7775 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
7776 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
7777
d02c80cd
AC
7778 * tui/tui-command.c: Include "gdb_string.h", delete register
7779 attribute, use ISO-C function signatures.
7780 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
7781 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
7782 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
7783 * tui/tui.c: Ditto.
6ba8e26f
AC
7784
7785 * tui/tui-command.c: Change variable and function names to lower
7786 case.
7787 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
7788 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
7789 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
7790 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
7791 * tui/tui-winsource.c, tui/tui.c: Ditto.
7792
4a146b47
EZ
77932004-02-07 Elena Zannoni <ezannoni@redhat.com>
7794
7795 * buildsym.c (free_pending_blocks, finish_block)
7796 (record_pending_block, make_blockvector, end_symtab): Replace
7797 symbol_obstack with objfile_obstack.
8a1dac83 7798 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 7799 (coff_read_enum_type): Ditto.
8a1dac83 7800 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 7801 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 7802 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
7803 (dwarf2_symbol_mark_computed): Ditto.
7804 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
7805 * elfread.c (elf_symtab_read): Ditto.
7806 * hpread.c (hpread_symfile_init, hpread_symfile_init)
7807 (hpread_read_enum_type, hpread_read_function_type)
7808 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
7809 Ditto.
8a1dac83 7810 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 7811 (java_link_class_type): Ditto.
8a1dac83 7812 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
7813 (new_symbol): Ditto.
7814 * minsyms.c (install_minimal_symbols): Ditto.
7815 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
7816 (terminate_minimal_symbol_table): Replace symbol_obstack with
7817 objfile_obstack.
7818 (free_objfile): Remove freeing of symbol_obstack.
7819 * objfiles.h: Remove symbol_obstack field.
7820 * pa64solib.c (add_to_solist): Replace symbol_obstack with
7821 objfile_obstack.
7822 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
7823 symbol_obstack.
7824 (solib_add_common_symbols): Replace symbol_obstack with
7825 objfile_obstack.
7826 * somsolib.c (som_solib_add): Ditto.
7827 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7828 (common_block_start, common_block_end): Ditto.
7829 * symfile.c (reread_symbols): Remove freeing and init of
7830 symbol_obstack.
7831 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
7832 * symfile.h: Update comment.
7833 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
7834 stats printing.
7835 * symtab.c (symbol_set_names): Replace symbol_obstack with
7836 objfile_obstack.
7837 * symtab.h (struct general_symbol_info, struct minimal_symbol):
7838 Update comments.
7839 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
7840 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
7841 objfile_obstack.
7842
6d012f14
AC
78432004-02-07 Andrew Cagney <cagney@redhat.com>
7844
7845 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
7846 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
7847 fields and variables.
7848 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
7849 (m_beInvisible): Delete macro.
7850 * tui/tui-data.h: Fix case case fields and variables.
7851 (m_genWinPtrIsNull): Delete macro.
7852 (tui_win_list): Rename winList.
7853 (TUI_SRC_WIN): Rename srcWin.
7854 (TUI_DISASM_WIN): Rename disassemWin.
7855 (TUI_DATA_WIN): Rename dataWin.
7856 (TUI_CMD_WIN): Rename cmdWin.
7857 (m_genWinPtrNotNull): Delete macro.
7858 (m_winPtrIsNull): Delete macro.
7859 (m_winPtrNotNull): Delete macro.
7860 (tui_win_is_source_type): Replace m_winIsSourceType
7861 (tui_win_is_auxillary): Replace m_winIsAuzillary.
7862 (tui_win_has_locator): Replace m_hasLocator.
7863 (tui_set_win_highlight): Replace m_setWinHighlightOn and
7864 m_setWinHighlightOff.
7865 * tui/tui-data.c: Update references.
7866 (tui_win_is_source_type, tui_set_win_highlight): New functions.
7867 (tui_win_has_locator, tui_win_is_auxillary): New functions.
7868 * tui/tui-command.c, tui/tui-disasm.c: Update references.
7869 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
7870 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
7871 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
7872 * tui/tui-winsource.c, tui/tui.c: Ditto.
7873
7d34766b
MK
78742004-02-07 Mark Kettenis <kettenis@gnu.org>
7875
1c800673
MK
7876 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
7877 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
7878 StackGhost.
7879
7d34766b
MK
7880 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
7881 variable `i6' to `i7'.
7882 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
7883
22940a24
AC
78842004-02-07 Andrew Cagney <cagney@redhat.com>
7885
7886 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
7887 (TuiPoint, TuiPointPtr): Ditto.
7888 (TuiStatus, TuiStatusPtr): Ditto.
7889 (TuiWinType, TuiWinTypePtr): Ditto.
7890 (struct tui_point): Rename _TuiPoint.
7891 (tui_get_low_disassembly_address): Rename
7892 tuiGetLowDisassemblyAddress.
7893 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
7894 (tuiFree): Delete declaration.
7895 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
7896 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
7897 * tui/tui.c (tuiFree): Delete function.
7898 * cli/cli-cmds.c (disassemble_command): Update references.
7899 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
7900 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
7901 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
7902 * tui/tui-winsource.c: Ditto.
7903
8b92e4d5
EZ
79042004-02-07 Elena Zannoni <ezannoni@redhat.com>
7905
7906 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
7907 coffstab_build_psymtabs, elfstab_build_psymtabs)
7908 (stabsect_build_psymtabs): Replace psymbol_obstack with
7909 objfile_obstack.
7910 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
7911 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
7912 Ditto.
7913 * dwarfread.c (scan_compilation_units): Ditto.
7914 * elfread.c (elfstab_offset_sections): Ditto.
7915 * hppa-tdep.c (read_unwind_info): Ditto.
7916 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
7917 (hpread_end_psymtab): Ditto.
7918 * mdebugread.c (mdebug_build_psymtabs, add_pending)
7919 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
7920 Ditto.
7921 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 7922 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
7923 (build_objfile_section_table): Ditto.
7924 (allocate_objfile): Remove init of psymbol_obstack.
7925 (free_objfile): Remove freeing of psymbol_obstack.
7926 * objfiles.h (struct objfile): Remove field
7927 psymbol_obstack. Update comments.
7928 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
7929 psymbol_obstack with objfile_obstack.
7930 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
7931 psymbol_obstack.
7932 * somread.c (som_symfile_offsets, init_import_symbols)
7933 (init_export_symbols): Replace psymbol_obstack with
7934 objfile_obstack.
7935 * somsolib.c (som_solib_add_solib_objfile): Ditto.
7936 * symfile.c (default_symfile_offsets, syms_from_objfile)
7937 (reread_symbols): Remove freeing and init of psymbol_obstack.
7938 (cashier_psymtab): Update comment.
7939 * symmisc.c (print_objfile_statistics): Don't report stats for
7940 psymbol obstack.
7941 * symtab.h (struct general_symbol_info, struct partial_symtab):
7942 Update comments.
7943 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
7944 (xcoff_symfile_offsets): Replace psymbol_obstack with
7945 objfile_obstack.
7946
b99607ea
EZ
79472004-02-07 Elena Zannoni <ezannoni@redhat.com>
7948
7949 * objfiles.h (struct objfile): Add objfile_obstack field.
7950 Remove type_obstack field.
7951
7952 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
7953 read_structure_scope read_enumeration, new_symbol): Replace
7954 type_obstack with objfile_obstack.
7955 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 7956 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
7957 (lookup_fundamental_type): Ditto.
7958 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
7959 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
7960 (hpread_read_doc_function_type, hpread_read_struct_type)
7961 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 7962 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 7963 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
7964 (java_link_class_type): Ditto.
7965 * mdebugread.c (parse_type): Ditto.
7966 * objfiles.c (allocate_objfile, free_objfile): Ditto.
7967 * solib-sunos.c (solib_add_common_symbols): Ditto.
7968 * stabsread.c (define_symbol, read_type, read_member_functions,
7969 read_cpp_abbrev, read_one_struct_field): Ditto.
7970 * symfile.c (reread_symbols): Ditto.
7971 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 7972
2a8854a7
AC
79732004-02-07 Andrew Cagney <cagney@redhat.com>
7974
7975 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
7976 (tui_exec_info_content): Rename TuiExecInfoContent.
7977 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
7978 (TuiWinInfo, TuiWinInfoPtr): Ditto.
7979 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
7980 (TuiList, TuiListPtr): Ditto.
7981 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
7982 (TuiDataType, TuiDataTypePtr): Ditto.
7983 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
7984 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
7985 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
7986 (TuiSourceElement, TuiSourceElementPtr): Ditto.
7987 (TuiDataElement, TuiDataElementPtr): Ditto.
7988 (TuiWinElement, TuiWinElementPtr): Ditto.
7989 (TuiDataInfo, TuiDataInfoPtr): Ditto.
7990 (TuiCommandElement, TuiCommandElementPtr): Ditto.
7991 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
7992 (TuiWhichElement, TuiWhichElementPtr): Ditto.
7993 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
7994 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
7995 * tui/tui-command.c, tui/tui-data.c: Update references.
7996 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
7997 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
7998 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
7999 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 8000
05cbe71a
MK
80012004-02-07 Mark Kettenis <kettenis@gnu.org>
8002
8003 * dwarf2-frame.h: Update copyright.
8004 (enum dwarf2_frame_reg_rule): New.
8005 (struct dwarf2_frame_state_reg): New.
8006 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
8007 * dwarf2-frame.c: Update copyright.
8008 (enum dwarf2_reg_rule): Remove.
8009 (struct dwarf2_frame_state): Remove defenition of `struct
8010 dwarf2_frame_state_reg'.
8011 (read_reg): Call get_frame_arch to get the architecture instead of
8012 using CURRENT_GDBARCH.
8013 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
8014 DWARF2_FRAME_.
8015 (dwarf2_frame_init_reg): New function.
8016 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
8017 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
8018 initialize the register state. Prefix old `enum dwarf2_reg_rule'
8019 tags with DWARF2_FRAME_.
8020 (dwarf2_frame_prev_register): Call get_frame_arch to get the
8021 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
8022 dwarf2_reg_rule' tags with DWARF2_FRAME_.
8023
ec7d9e56
AC
80242004-02-06 Andrew Cagney <cagney@redhat.com>
8025
dd1abb8c
AC
8026 * tui/tui-data.h (struct tui_list): Rename _TuiList.
8027 (enum tui_data_type): Rename _TuiDataType.
8028 (struct tui_layout_def): Rename _TuiLayoutDef.
8029 (struct tui_source_element): Rename _TuiSourceElement.
8030 (struct tui_data_element): Rename _TuiDataElement.
8031 (struct tui_command_element): Rename _TuiCommandElement.
8032 (struct tui_locator_element): Rename _TuiLocatorElement.
8033 (union tui_which_element): Define.
8034 (struct tui_win_element): Rename _TuiWinElement.
8035 (struct tui_data_info): Rename _TuiDataInfo.
8036 (struct tui_source_info): Rename _TuiSourceInfo.
8037 (struct tui_command_info): Rename _TuiCommandInfo.
8038 (tui_initialize_static_data): Rename initializeStaticData.
8039 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
8040 (tui_alloc_win_info): Rename allocWinInfo.
8041 (tui_init_generic_part): Rename initGenericPart.
8042 (tui_init_win_info): Rename initWinInfo.
8043 (tui_alloc_content): Rename allocContent.
8044 (tui_add_content_elements): Rename addContentElements.
8045 (tui_init_content_element): Rename initContentElement.
8046 (tui_free_window): Rename freeWindow.
8047 (tui_free_win_content): Rename freeWinContent.
8048 (tui_free_data_content): Rename freeDataContent.
8049 (tui_free_all_source_wins_content): Rename
8050 freeAllSourceWinsContent.
8051 (tui_del_window): Rename tuiDelWindow.
8052 (tui_del_data_windows): Rename tuiDelDataWindows.
8053 (tui_partial_win_by_name): Rename partialWinByName.
8054 (tui_win_name): Rename winName.
8055 (tui_current_layout): Rename currentLayout.
8056 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
8057 (tui_term_height): Rename termHeight.
8058 (tui_set_term_height_to): Rename setTermHeightTo.
8059 (tui_term_width): Rename termWidth.
8060 (tui_set_term_width_to): Rename setTermWidthTo.
8061 (tui_set_gen_win_origin): Rename setGenWinOrigin.
8062 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
8063 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
8064 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
8065 (tui_source_windows): Rename sourceWindows.
8066 (tui_clear_source_windows): Rename clearSourceWindows.
8067 (tui_clear_source_windows_detail): Rename
8068 clearSourceWindowsDetail.
8069 (tui_clear_win_detail): Rename clearWinDetail.
8070 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
8071 (tui_default_tab_len): Rename tuiDefaultTabLen.
8072 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
8073 (tui_win_with_focus): Rename tuiWinWithFocus.
8074 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
8075 (tui_layout_def): Rename tuiLayoutDef.
8076 (tui_win_resized): Rename tuiWinResized.
8077 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
8078 (tui_next_win): Rename tuiNextWin.
8079 (tui_prev_win): Rename tuiPrevWin.
8080 (tui_add_to_source_windows): Rename addToSourceWindows.
8081 * tui/tui-winsource.c, tui/tui-win.c: Update references.
8082 * tui/tui-layout.c, tui/tui-source.c: Ditto.
8083 * tui/tui-stack.c, tui/tui-io.c: Ditto.
8084 * tui/tui.c, tui/tui-data.c: Ditto.
8085 * tui/tui-interp.c, tui/tui-data.c: Ditto.
8086 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
8087
a358af15
AC
8088 * tui/tui-source.h: Update copyright. Include "tui-data.h".
8089 (struct symtab): Declare.
8090 (tui_set_source_content): Rename tuiSetSourceContent.
8091 (tui_show_symtab_source): Rename tuiShowSource.
8092 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
8093 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
8094 * tui/tui-source.c: Update copyright. Update references.
8095 * tui/tui-win.c, tui/tui-winsource.c: Update references.
8096 * tui/tui-stack.c: Update references.
8097
a21fcd8f
AC
8098 * tui/tui-win.h: Update copyright. Include "tui-data.h".
8099 (struct tui_win_info): Declare.
8100 (tui_scroll_forward): Rename tuiScrollForward.
8101 (tui_scroll_backward): Rename tuiScrollBackward.
8102 (tui_scroll_left): Rename tuiScrollLeft.
8103 (tui_scroll_right): Rename tuiScrollRight.
8104 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
8105 (tui_resize_all): Rename tuiResizeAll.
8106 (tui_refresh_all_win): Rename tuiRefreshAll.
8107 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
8108 * tui/tui-layout.c, * tui/tui-io.c: Update references.
8109 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
8110 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
8111
edae1ccf
AC
8112 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
8113 (tui_erase_data_content): Rename tuiEraseDataContent.
8114 (tui_display_all_data): Rename tuiDisplayAllData.
8115 (tui_check_data_values): Rename tuiCheckDataValues.
8116 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
8117 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
8118 (tui_first_data_element_no_in_line): Rename
8119 tuiFirstDataElementNoInLine.
8120 (tui_delete_data_content_windows): Rename
8121 tuiDeleteDataContentWindows.
8122 (tui_refresh_data_win): Rename tuiRefreshDataWin.
8123 (tui_display_data_from): Rename tuiDisplayDataFrom.
8124 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
8125 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
8126 * tui/tui-win.c, tui/tui-regs.c: Update references.
8127 * tui/tui-layout.c, tui/tui.c: Update references.
8128
ec7d9e56
AC
8129 * tui/tui-wingeneral.h: Update copyright.
8130 (m_allBeVisible): Delete macro.
8a1dac83 8131 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
8132 (struct tui_gen_win_info): Declare.
8133 (struct tui_win_info): Declare.
8134 (tui_unhighlight_win): Rename unhighlightWin.
8135 (tui_make_visible, tui_make_invisible): Replace makeVisible.
8136 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
8137 (tui_make_window): Rename makeWindow.
8138 (tui_copy_win): Rename copyWin.
8139 (tui_box_win): Rename boxWin.
8140 (tui_highlight_win): Rename highlightWin.
8141 (tui_check_and_display_highlight_if_needed): Rename
8142 checkAndDisplayHighlightIfNeeded.
8143 (tui_refresh_all): Rename refreshAll.
8144 (tui_delete_win): Rename tuiDelwin.
8145 (tui_refresh_win): Rename tuiRefreshWin.
8146 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
8147 (tui_make_visible, tui_make_invisible): New functions.
8148 (tui_make_all_visible, tui_make_all_invisible): New functions.
8149 (make_all_visible): Rename makeAllVisible.
8150 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
8151 * tui/tui-data.c, tui/tui-winsource.c: Update references.
8152 * tui/tui-windata.c, tui/tui-win.c: Update references.
8153 * tui/tui-regs.c, tui/tui-layout.c: Update references.
8154 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
8155
1e52e2eb
MK
81562004-02-06 Mark Kettenis <kettenis@gnu.org>
8157
8158 * proc-api.c (write_with_trace): Initialize local variable to
8159 silence compiler warning.
8160
f80bda8e
AC
81612004-02-06 Andrew Cagney <cagney@redhat.com>
8162
8163 * tui/tui-source.h: Do not include "defs.h".
8164 (struct tui_win_info): Declare.
8165 (tui_set_source_content_nil): Declare.
8166 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
8167 (union tui_line_or_address): Rename _TuiLineOrAddress.
8168 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
8169 (tui_update_source_window): Rename tuiUpdateSourceWindow.
8170 (tui_update_source_window_as_is): Rename
8171 tuiUpdateSourceWindowAsIs.
8172 (tui_update_source_windows_with_addr): Rename
8173 tuiUpdateSourceWindowsWithAddr.
8174 (tui_update_source_windows_with_line): Rename
8175 tuiUpdateSourceWindowsWithLine.
8176 (tui_clear_source_content): Rename tuiClearSourceContent.
8177 (tui_erase_source_content): Rename tuiEraseSourceContent.
8178 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
8179 (tui_show_source_content): Rename tuiShowSourceContent.
8180 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
8181 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
8182 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
8183 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
8184 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
8185 (tui_update_exec_info): Rename tuiUpdateExecInfo.
8186 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
8187 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
8188 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
8189 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
8190 (struct tui_win_info): Declare.
8191 * tui/tui-stack.c: Update references.
8192 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
8193 * tui/tui-win.c, tui/tui-source.c: Ditto.
8194 * tui/tui.c, tui/tui-disasm.c: Ditto.
8195
9fbfb822
MK
81962004-02-06 Mark Kettenis <kettenis@gnu.org>
8197
8198 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
8199 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
8200
03cebad2
MK
82012004-02-05 Mark Kettenis <kettenis@gnu.org>
8202
8203 * infrun.c (handle_inferior_event): Allow for breakpoint
8204 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
8205 and SIGEMT. Update comments.
8206 * NEWS (Revised SPARC target): Mention support for non-executable
8207 stack.
8208
290281b1
MK
82092004-02-04 Mark Kettenis <kettenis@gnu.org>
8210
8211 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
8212 * inftarg.c: Update copyright year.
8213 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
8214 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
8215 (sparc_xfer_wcookie): New function.
8216 * sparc-tdep.c (sparc_fetch_wcookie): New function.
8217 * Makefile.in (sparc-nat.o): Update dependencies.
8218 * config/sparc/nm-nbsd.h: Include "target.h".
8219 (NATIVE_XFER_WCOOKIE): New define.
8220 (sparc_xfer_wcookie): New prototype.
8221
212161df
AC
82222004-02-04 Andrew Cagney <cagney@redhat.com>
8223
8224 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
8225 SYSCALL_TRAP function.
8226 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
8227
6e4c6c91
DJ
82282004-02-04 Andrew Cagney <cagney@redhat.com>
8229 Daniel Jacobowitz <drow@mvista.com>
8230
8231 * objfiles.h: Delete comments refering to inside_entry_func and
8232 DEPRECATED_FRAME_CHAIN_VALID.
8233 * defs.h (inside_entry_func): Update prototype..
8234 * blockframe.c (inside_entry_func): Rename to
8235 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
8236 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
8237
cae688ec
JJ
82382004-02-03 Jeff Johnston <jjohnstn@redhat.com>
8239
8240 * breakpoint.c (struct captured_parse_breakpoint_args): Move
8241 outside of #ifdef SOLIB_ADD region.
8242 (do_restore_lang_radix_cleanup): Ditto.
8243 (resolve_pending_breakpoint): Ditto.
8244
19217676
AC
82452004-02-03 Andrew Cagney <cagney@redhat.com>
8246
8247 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
8248 (process_note_abi_tag_sections): Delete unused function.
8249 (ia64_read_fp): Delete unused function.
8250 (gdbarch_extract_struct_value_address): Delete declaration.
8251
876753be
AC
82522004-02-02 Andrew Cagney <cagney@redhat.com>
8253
8254 * vax-tdep.c (vax_frame_chain): Delete call to
8255 deprecated_inside_entry_file.
8256 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
8257
d4f10bf2
MK
82582004-02-02 Mark Kettenis <kettenis@gnu.org>
8259
8260 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
8261 column that's "empty" or "same value" when eliminating REG_RA
8262 rules.
8263
cae688ec
JJ
82642004-02-02 Jeff Johnston <jjohnstn@redhat.com>
8265
8266 * NEWS: Add information about new pending breakpoint support.
8267
0101ce28
JJ
82682004-02-02 Jeff Johnston <jjohnstn@redhat.com>
8269
8270 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
8271 and pending fields for pending breakpoint support.
8272 * breakpoint.c (breakpoint_enabled): Add check for not pending.
8273 (condition_command): Only parse condition if not a pending
8274 breakpoint.
8275 (print_one_breakpoint): Add support for pending breakpoints.
8276 (describe_other_breakpoints): Add checks to verify we are not
8277 dealing with pending breakpoints.
8278 (check_duplicates): Don't check pending breakpoints.
8279 (set_raw_breakpoint): Initialize pending flag.
8280 (do_restore_lang_radix_cleanup): New cleanup routine.
8281 (resolve_pending_breakpoint): New function.
8282 (re_enable_breakpoints_in_shlibs): Try and resolve any
8283 pending breakpoints via resolve_pending_breakpoint.
8284 (mention): Add pending breakpoint support.
8285 (parse_breakpoint_sals): Add new parameter to pass to
8286 decode_line_1 to indicate silent errors when files or functions
8287 are not found. Change all callers.
8288 (do_captured_parse_breakpoint): New function.
8289 (break_command_1): Change prototype to return an rc value and to
8290 take an optional pending breakpoint pointer. Support creating
8291 a pending breakpoint if a "not found" form of error occurs when
8292 parsing the breakpoint. Also support resolving an existing pending
8293 breakpoint and be silent if the resolution fails.
8294 (create_breakpoints): Change prototype to take pending breakpoint
8295 pointer. When resolving a pending breakpoint, use the new pointer
8296 to provide a conditional or commands added by the end-user.
8297 (delete_breakpoint): Add appropriate check for pending.
8298 (breakpoint_re_set_one): Ditto.
8299 (do_enable_breakpoint): Ditto.
8300
8d577d32
DC
83012004-02-02 David Carlton <carlton@kealia.com>
8302
8303 * valops.c (enum oload_classification): New.
8304 (find_overload_match): Break implementation into separate
8305 functions; delete #if 0'd code; look for symbols within
8306 namespaces.
8307 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
8308 (find_oload_champ,oload_method_static,classify_oload_match): New.
8309 * cp-support.h: Add declaration for cp_func_name; update
8310 declaration for make_symbol_overload_list.
8311 * cp-support.c (cp_func_name): New.
8312 (overload_list_add_symbol): Fix comment, use
8313 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
8314 (make_symbol_overload_list): Take a function name and a namespace
8315 instead of a symbol; change implementation.
8316 (make_symbol_overload_list_using): New.
8317 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
8318
22e8e3c7
FF
83192004-02-02 Fred Fish <fnf@redhat.com>
8320
8321 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 8322 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
8323 * remote-sim.c (gdb_os_write_stderr): Write output to
8324 gdb_stdtargerr stream instead of gdb_stdtarg stream.
8325 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 8326 gdb_stderr stream and update copyright years.
22e8e3c7 8327
6b753f60
DJ
83282004-02-01 Daniel Jacobowitz <drow@mvista.com>
8329
8330 * Makefile.in (mips-linux-nat.o): Update dependencies.
8331 * mips-linux-nat.c: Include mips-tdep.h.
8332
83332004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
8334
8335 * sol-thread.c (sol_thread_xfer_partial): New function.
8336 (init_sol_thread_ops): Use that for to_xfer_partial hook.
8337 (init_sol_core_ops): Likewise.
8338
8339 * procfs.c (procfs_xfer_partial): New function.
8340 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
8341 * Makefile.in (procfs.o): Add $(auxv_h) dep.
8342
8343 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
8344 procfs_xfer_auxv function.
8345
8346 * procfs.c (procfs_make_note_section): If we can read
8347 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
8348 * linux-proc.c (linux_make_note_section): Likewise.
8349
8350 * auxv.h: New file.
8351 * auxv.c: New file.
8352 * Makefile.in (auxv_h): New variable.
8353 (COMMON_OBS): Add auxv.o here.
8354 (auxv.o): New target.
8355
8356 * corelow.c (core_xfer_partial): New function.
8357 (init_core_ops): Use it for core_ops.to_xfer_partial.
8358
8359 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
8360 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
8361 macro if that is defined.
8362
fa5281d0
DJ
83632004-02-01 Daniel Jacobowitz <drow@mvista.com>
8364
8365 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
8366 and check the specified thread for each breakpoint.
8367 * breakpoint.h (bpstat_stop_status): Update prototype.
8368 * infrun.c (handle_inferior_event): Update calls to
8369 bpstat_stop_status.
8370
26ee262d
DJ
83712004-02-01 Daniel Jacobowitz <drow@mvista.com>
8372
8373 * Makefile.in (cli-cmds.o): Add $(readline_h).
8374
d9b52655
DJ
83752004-02-01 Daniel Jacobowitz <drow@mvista.com>
8376
8377 * cli/cli-cmds.c: Include readline.h.
8378 (complete_command): Pass the start of the last word to
8379 complete_line.
8380
9709f61c
DJ
83812004-01-31 Daniel Jacobowitz <drow@mvista.com>
8382
8383 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
8384 argument, and change first argument to a CORE_ADDR.
8385 * breakpoint.h (bpstat_stop_status): Update prototype.
8386 * infrun.c (adjust_pc_after_break): Add a new comment.
8387 (handle_inferior_event): Update calls to bpstat_stop_status.
8388
4f1280bb
DJ
83892004-01-31 Daniel Jacobowitz <drow@mvista.com>
8390
8391 * breakpoint.h: Update copyright years.
8392
4fa8626c
DJ
83932004-01-31 Daniel Jacobowitz <drow@mvista.com>
8394
8395 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
8396 (bpstat_stop_status): Don't decrement PC.
8397 * breakpoint.h (software_breakpoint_inserted_here_p): Add
8398 prototype.
8399 * infrun.c (adjust_pc_after_break): New function.
8400 (handle_inferior_event): Call it, early. Remove later references
8401 to DECR_PC_AFTER_BREAK.
8402 (normal_stop): Add commentary.
8403
fad0733a
DJ
84042004-01-31 Daniel Jacobowitz <drow@mvista.com>
8405
8406 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
8407 2004-01-27 double-free fix.
8408
42cdca6c
MK
84092004-01-31 Mark Kettenis <kettenis@gnu.org>
8410
8411 * sparc-tdep.c (sparc_fetch_wcookie): New function.
8412 (sparc32_frame_prev_register): Handle StackGhost.
8413 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
8414
932d5416
RM
84152004-01-29 Roland McGrath <roland@redhat.com>
8416
8417 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
8418 * configure: Regenerated.
8419
8420 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
8421 * Makefile.in (procfs.o): Add dep.
8422
47d3492a
AC
84232004-01-28 Andrew Cagney <cagney@redhat.com>
8424
8425 * tui/tui-stack.h: Update copyright.
8426 (struct frame_info): Add opaque declaration.
8427 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
8428 (tui_show_locator_content): Rename tuiShowLocatorContent.
8429 (tui_show_frame_info): Rename tuiShowFrameInfo.
8430 * tui/tui-stack.c: Update copyright. Update references.
8431 * tui/tui-winsource.c: Update references.
8432 * tui/tui-win.c: Update references.
8433 * tui/tui-layout.c: Update references.
8434 * tui/tui-hooks.c: Update copyright, update references.
8435 * tui/tui.c: Update copyright, update references.
8436 * tui/tui-disasm.c: Update references.
8437
5d51ca54
DC
84382004-01-28 David Carlton <carlton@kealia.com>
8439
8440 * dwarf2read.c (add_partial_structure): Use demangled name if
8441 namespace equals "".
8442
086ed43d
JB
84432004-01-27 Jim Blandy <jimb@redhat.com>
8444
8445 Clean up misapplied patch:
8446 * dwarf2read.c (determine_prefix): Change one of the two forward
8447 declarations for 'determine_prefix_aux' to a declaration for this.
8448 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
8449 argument to 'die_specification'.
8450
2a35147e
JB
8451 * dwarf2read.c (read_func_scope): Re-indent comment.
8452
a355c7de 84532004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 8454
a355c7de
AC
8455 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
8456 b->exp to NULL after freeing so that error during re-parsing or
8457 evaluation of expressions associated with breakpoint don't
8458 eventually lead to re-freeing of storage.
8459 Committed by Andrew Cagney.
8460
63ff5125
AC
84612004-01-27 Andrew Cagney <cagney@redhat.com>
8462
8463 * source.c (ambiguous_line_spec): Delete undefined declaration.
8464 * m32r-rom.c (m32r_set_board_address): Delete unused function.
8465 (m32r_set_server_address, m32r_set_download_path): Ditto.
8466 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
8467
e142c38c
DJ
84682004-01-27 Daniel Jacobowitz <drow@mvista.com>
8469
8470 * dwarf2read.c: Update calls to changed and renamed functions, and
8471 references to moved variables.
8472
8473 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
8474 language, language_defn, list_in_scope, and ftypes members.
8475 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
8476 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
8477 (baseaddr): Remove globals.
8478
8479 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
8480 (set_cu_language, die_is_declaration, die_specification)
8481 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
8482 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
8483 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
8484 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
8485
8486 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
8487 cu.list_in_scope. Don't initialize cu_header_offset.
8488 (add_partial_symbol): Add local baseaddr.
8489 (psymtab_to_symtab_1): Add local baseaddr. Use
8490 objfile->section_offsets for consistency. Don't initialize
8491 cu_header_offset; do initialize cu.header.offset and
8492 cu.list_in_scope.
8493 (read_file_scope, read_func_scope, read_lexical_block_scope)
8494 (dwarf_decode_lines, new_symbol): Add local baseaddr.
8495
c6e06ede
MC
84962004-01-27 Michael Chastain <mec.gnu@mindspring.com>
8497
fb328ecc 8498 * PROBLEMS: Add gdb/1516.
c6e06ede 8499
48184fd4
AC
85002003-12-29 Robert Millan <robertmh@gnu.org>
8501
8502 Patch committed by Andrw Cagney.
8503 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
8504 * configure.tgt: Match knetbsd*-gnu.
8505
c1321b30
AC
85062004-01-26 Andrew Cagney <cagney@redhat.com>
8507
f3699be3
AC
8508 * breakpoint.c (catch_command_1): Delete #ifdef code.
8509 (catch_fork_command_1): Delete #ifdef wrapper.
8510 (catch_exec_command_1): Ditto.
8511 (catch_load_command_1): Ditto.
8512 (catch_unload_command_1): Ditto.
8513
c1321b30
AC
8514 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
8515 (catch_breakpoint): Delete #if0ed function.
8516 (disable_catch_breakpoint): Ditto.
8517 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
8518 (disable_catch, enable_catch, delete_catch): Ditto.
8519
b4501125
AC
85202004-01-26 Andrew Cagney <cagney@redhat.com>
8521
8522 * remote.c (echo_check, quit_flag): Delete variables.
8523 (cisco_kernel_mode): Delete variable.
8524 (minitelnet_return, tty_input, escape_count): Delete variables.
8525 (remote_cisco_mode): Delete variable.
8526 (remote_cisco_open, remote_cisco_close): Delete function.
8527 (remote_cisco_mourn, remote_cisco_wait): Delete function.
8528 (init_remote_cisco_ops): Delete function.
8529 (_initialize_remote): Do not install "remote cisco" code.
8530 (read_frame): Delete cisco specific code.
8531 (remote_info_process): Delete function.
8532 (remote_wait): Delete cisco specific code.
8533 (remote_cisco_section_offsets): Delete function.
8534 (remote_cisco_objfile_relocate): Delete function.
8535 (remote_async_wait): Delete cisco specific code.
8536 (minitelnet, readtty, readsocket): Delete function.
8537
74055713
AC
85382004-01-26 Andrew Cagney <cagney@redhat.com>
8539
8540 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
8541 comments mentioning extract_returned_value_address.
8542 * infcmd.c (print_return_value): Update. Add comments on
8543 extract_returned_value_address.
8544 * stack.c (return_command): Add comments on
8545 extract_returned_value_address.
8546 * values.c: Update comment.
8547 * m32r-tdep.c: Update comment.
8548 * sparc-tdep.c: Update comment.
8549 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
8550 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8551 * sh64-tdep.c (sh64_gdbarch_init): Update.
8552 * sh-tdep.c (sh_gdbarch_init): Update.
8553 * s390-tdep.c (s390_gdbarch_init): Update.
8554 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8555 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8556 * m68k-tdep.c (m68k_gdbarch_init): Update.
8557 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8558 * m32r-tdep.c (m32r_gdbarch_init): Update.
8559 * ia64-tdep.c (ia64_gdbarch_init): Update.
8560 * h8300-tdep.c (h8300_gdbarch_init): Update.
8561 * frv-tdep.c (frv_gdbarch_init): Update.
8562 * arm-tdep.c (arm_gdbarch_init): Update.
8563 * alpha-tdep.c (alpha_gdbarch_init): Update.
8564
a67af2b9
AC
85652004-01-26 Andrew Cagney <cagney@redhat.com>
8566
8567 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
8568 SYMBOL_LOCATION_FUNCS
8569 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
8570 "struct symbol_ops".
8571 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
8572 type to "struct symbol_ops".
8573 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
8574 (struct symbol): Replace ".aux_value.loc.funcs" and
8575 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
8576 (SYMBOL_OBJFILE): Delete macro.
8577 (SYMBOL_LOCATION_FUNCS): Delete macro.
8578 (SYMBOL_LOCATION_BATON): Update.
8579 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
8580 intead of SYMBOL_LOCATION_FUNCS.
8581 * ax-gdb.c (gen_var_ref): Ditto.
8582 * printcmd.c (address_info): Ditto.
8583 * findvar.c (read_var_value): Ditto.
8584 (symbol_read_needs_frame): Ditto.
8585
c034e007
AC
85862004-01-26 Andrew Cagney <cagney@redhat.com>
8587
8588 * dwarf2read.c (read_func_scope): Document frame-base hack.
8589
bb472c1e
MK
85902004-01-25 Mark Kettenis <kettenis@gnu.org>
8591
8592 * infcmd.c (print_return_value): Plug memory leak; delete
8593 ui_stream object. Rename argument `structure_return' to
8594 `struct_return'.
8595
c8e737d5
MK
85962004-01-25 Mark Kettenis <kettenis@gnu.org>
8597
f941662f
MK
8598 * infcmd.c (print_return_value): Wrap long lines.
8599 (finish_command_continuation, finish_command): Remove unused
8600 variable `funcaddr'. Fix some coding-standards problems.
8601
c558d81a 8602 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 8603 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
8604 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
8605 TDEP->fpregset to zero.
8606
bf1e5861 8607 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
8608 floating-point registers for traditional NetBSD core files.
8609 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
8610 TDEP->sizeof_fpregset here.
8611
4c72d57a
MK
86122004-01-25 Mark Kettenis <kettenis@gnu.org>
8613
566626fa
MK
8614 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
8615 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
8616 function with code split out from
8617 sparc32nbsd_sigcontext_frame_cache.
8618 (sparc32nbsd_sigcontext_frame_cache): Use
8619 sparc32nbsd_sigcontext_saved_regs.
8620 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
8621 OpenBSD.
8622 * sparcobsd-tdep.c: New file.
8623 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
8624 (sparcobsd-tdep.o): New dependency.
8625 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
8626 * config/sparc/obsd.mt: New file.
8627
4c72d57a
MK
8628 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
8629 TDEP->fpregset to be initialized to enable core file register
8630 sets.
8631
7e5e9f88
MK
86322004-01-24 Mark Kettenis <kettenis@gnu.org>
8633
f0f207fd 8634 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
8635 Add opaque declarations.
8636 (sparc64nbsd_sigcontext_saved_regs): New prototype.
8637 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
8638 function with code split out from
8639 sparc64nbsd_sigcontext_frame_cache.
8640 (sparc64nbsd_sigcontext_frame_cache): Use
8641 sparc64nbsd_sigcontext_saved_regs.
8642 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
8643 OpenBSD.
8644 * sparc64obsd-tdep.c: New file.
8645 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
8646 (sparc64obsd-tdep.o): New dependency.
8647 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
8648 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
8649 * config/sparc/obsd64.mt: New file.
8650
690668cc
MK
8651 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
8652 read the instruction at PC.
8653
7e5e9f88
MK
8654 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
8655 value of GDB_OSABI_DEFAULT.
8656 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
8657 instead of GDB_OSABI_NETBSD_AOUT.
8658
68b6dce9
NR
86592004-01-24 Nick Roberts <nick@nick.uklinux.net>
8660
8661 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
8662 copyright.
8663
080ce8c0
AC
86642004-01-23 Andrew Cagney <cagney@redhat.com>
8665
8666 * printcmd.c (display_command): Replace tui_set_display call with
8667 tui_set_layout_for_display_command.
8668 * tui/tui.h (enum tui_win_type): Define.
8669 (tui_set_layout): Delete declaration.
8670 (tui_set_layout_for_display_command): Rename set_tui_layout.
8671 * tui/tui-data.h (enum tui_layout_type): Define.
8672 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
8673 "tui.h".
8674 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
8675 (tui_default_win_height): Rename tuiDefaultWinHeight.
8676 (tui_default_win_viewport_height): Rename
8677 tuiDefaultWinViewportHeight.
8678 (tui_set_layout): RenametuiSetLayout.
8679 * tui/tui-layout.c: Update references.
8680 * tui/tui.c: Update references.
8681 * tui/tui-disasm.c: Update references.
8682
b368761e
DC
86832004-01-23 David Carlton <carlton@kealia.com>
8684
8685 Partial workaround for PR c++/1511:
8686 * cp-namespace.c: Include frame.h.
8687 (cp_lookup_transparent_type): New
8688 (cp_lookup_transparent_type_loop): New.
8689 * cp-support.h: Declare cp_lookup_transparent_type.
8690 * symtab.c (basic_lookup_transparent_type): Renamed from
8691 lookup_transparent_type.
8692 (lookup_transparent_type): Replace old body by a call to
8693 current_language->la_lookup_transparent_type.
8694 * symtab.h: Update copyright. Declare
8695 basic_lookup_transparent_type.
8696 * language.h: Update copyright.
8697 (struct language_defn): Add la_lookup_transparent_type.
8698 * language.c: Update copyright.
8699 (unknown_language_defn): Add basic_lookup_transparent_type.
8700 (auto_language_defn): Add basic_lookup_transparent_type.
8701 (local_language_defn): Add basic_lookup_transparent_type.
8702 * ada-lang.c: Update copyright.
8703 (ada_language_defn): Add basic_lookup_transparent_type.
8704 * c-lang.c: Update copyright.
8705 (c_language_defn): Add basic_lookup_transparent_type.
8706 (cplus_language_defn): Add basic_lookup_transparent_type.
8707 (asm_language_defn): Add basic_lookup_transparent_type.
8708 (minimal_language_defn): Add basic_lookup_transparent_type.
8709 * f-lang.c: Update copyright.
8710 (f_language_defn): Add basic_lookup_transparent_type.
8711 * jv-lang.c: Update copyright.
8712 (java_language_defn): Add basic_lookup_transparent_type.
8713 * m2-lang.c: Update copyright.
8714 (m2_language_defn): Add basic_lookup_transparent_type.
8715 * objc-lang.c: Update copyright.
8716 (objc_language_defn): Add basic_lookup_transparent_type.
8717 * p-lang.c: Update copyright.
8718 (p_language_defn): Add basic_lookup_transparent_type.
8719 * scm-lang.c: Update copyright.
8720 (scm_language_defn): Add basic_lookup_transparent_type.
8721 * Makefile.in (cp-namespace.o): Depend on frame.h.
8722
fdde2d81
DC
87232004-01-23 David Carlton <carlton@kealia.com>
8724
8725 Patch for PR c++/1520:
8726 * dwarf2read.c (read_func_scope): Set processing_current_prefix
8727 properly if we have a specification die.
8728 (determine_prefix_aux): Rename from determine_prefix.
8729 (determine_prefix): Like the old determine_prefix, but never
8730 returns NULL.
8731
5b828b6b
TR
87322004-01-23 Theodore A. Roth <troth@openavr.org>
8733
8734 * avr-tdep.c: Update copyright.
8735 (avr_iaddr_p): Delete unused function.
8736 (avr_saddr_p): Delete unused function.
8737
a1b8c067
DC
87382004-01-23 David Carlton <carlton@kealia.com>
8739
8740 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
8741 Fix for PR symtab/1534.
8742
f2cab569
MK
87432004-01-23 Mark Kettenis <kettenis@gnu.org>
8744
8745 * NEWS (New native configurations): Mention OpenBSD/sparc and
8746 OpenBSD/sparc64.
8747 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
8748 * configure.host: Likewise.
8749 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
8750 handler for OpenBSD.
8751 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
8752
642d8300
MK
87532004-01-22 Mark Kettenis <kettenis@gnu.org>
8754
89aac506
MK
8755 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
8756 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
8757
36662fde
MK
8758 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
8759 * cli/cli-cmds.c (shell_escape): Likewise.
8760
642d8300
MK
8761 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
8762 OpenBSD .note.openbsd.ident sections.
8763
fae299cd
DC
87642004-01-22 David Carlton <carlton@kealia.com>
8765
8766 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
8767 get_scope_pc_bounds.
8768 (read_file_scope): Ditto.
8769 (get_scope_pc_bounds): New function, produced by extracting code
8770 from the above two functions, consolidating it, and adding support
8771 for DW_TAG_namespace.
8772
a49d618c
MK
87732004-01-22 Mark Kettenis <kettenis@gnu.org>
8774
8775 * osabi.c (MAX_NOTESZ): New define.
8776 (check_note): New function.
8777 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
8778 check_note.
8779
fe61caab
RM
87802004-01-21 Roland McGrath <roland@redhat.com>
8781
8782 * MAINTAINERS (write after approval): Add myself.
8783
ec145965
EZ
87842004-01-21 Eli Zaretskii <eliz@gnu.org>
8785
8786 * utils.c (init_page_info): Move declarations of `rows' and
8787 `cols' before the __GO32__-specific code. Move the closing brace
8788 outside the #ifdef __GO32__..#endif block.
8789 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
8790
877522db
PB
87912004-01-21 Paul Brook <paul@codesourcery.com>
8792
8793 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
8794 BPSTAT_WHAT_CHECK_SHLIBS.
8795
dbf5be1c
PB
87962004-01-21 Paul Brook <paul@codesourcery.com>
8797
8798 * MAINTAINERS: Add myself to write-after-approval.
8799
81f08b92
AC
88002004-01-20 Andrew Cagney <cagney@redhat.com>
8801
5a1efed7
AC
8802 * ax-gdb.c (print_axs_value): Delete unused function.
8803 * jv-lang.c (java_lookup_type): Delete unused function.
8804 * cli/cli-dump.c (dump_filetype): Delete unused function.
8805 * remote-mips.c (remote_mips_insert_hw_breakpoint)
8806 (remote_mips_remove_hw_breakpoint): Delete unused functions.
8807 (mips_getstring): Delete unused function.
8808 (pmon_insert_breakpoint): Delete #if0ed function.
8809 (PMON_MAX_BP): Delete #if0ed MACRO.
8810 (mips_pmon_bp_info): Delete #if0ed variable.
8811 (pmon_remove_breakpoint): Delete #if0ed function.
8812 * monitor.c (monitor_write_even_block): Delete unused function.
8813 (monitor_write_memory_block): Delete #if0ed code.
8814 * dink32-rom.c (dink32_load): Delete unused function.
8815 (_initialize_dink32_rom): Delete #if0ed code.
8816 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
8817
b0a30fce
AC
8818 * tui/tui-command.c: Update references.
8819 * tui/tui-io.c: Update references.
8820 * tui/tui-command.h: Update copyright.
8821 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
8822
81f08b92
AC
8823 * source.c (ambiguous_line_spec): Delete never-defined function.
8824 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
8825 * gdbtypes.c (add_name, add_mangled_type): Ditto.
8826 * cli/cli-cmds.c (validate_comname): Ditto.
8827
65f05602
AC
8828 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
8829 "tui-data.h".
8830 (tui_set_disassem_content): Rename tuiSetDisassemContent.
8831 (tui_show_disassem): Rename tuiShowDisassem.
8832 (tui_show_disassem_and_update_source): Rename
8833 tuiVerticalDisassemScroll.
8834 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
8835 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
8836 * tui/tui.h: Update copyright.
8837 (enum tui_status): Define.
8838 * tui/tui-data.h (enum tui_scroll_direction): Define.
8839 * tui/tui-disasm.c: Update copyright. Update references.
8840 * tui/tui-winsource.c: Update copyright. Update references.
8841 * tui/tui-win.c: Update references.
8842 * tui/tui-layout.c: Update references.
8843
6bb0384f
AC
88442004-01-20 Andrew Cagney <cagney@redhat.com>
8845
8846 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
8847 sym2 to start of block.
8848
9175c9a3
MC
88492004-01-19 Michael Chastain <mec.gnu@mindspring.com>
8850
8851 * MAINTAINERS: Delete mmalloc.
8852 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
8853 * NEWS: Mention removal of --with-malloc.
8854 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
8855 * config.in: Regenerate.
8856 * configure: Regenerate.
6bb0384f
AC
8857 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
8858 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
8859 * gdbinit.in: Remove mmalloc.
8860 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
8861 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
8862 * config/i386/go32.mh: Likewise.
8863 * config/i386/interix.mh: Likewise.
8864 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
8865
4fcef00a
JJ
88662004-01-19 Jeff Johnston <jjohnstn@redhat.com>
8867
8868 * linespec.c (decode_variable, symtab_from_filename): Call
8869 error_silent with error message instead of throwing an exception
8870 directly.
8871 * defs.h (error_silent, error_output_message): Add prototypes.
8872 (catch_exceptions_with_msg): Ditto.
8873 * utils.c (error_silent, error_output_message): New functions.
8874 * top.c (catch_exceptions_with_msg): New function.
8875
8e94b928
NR
88762004-01-20 Nick Roberts <nick@nick.uklinux.net>
8877
8878 * mi/mi-cmds.h (enum print_values): Add definition.
8879
8880 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
8881 type and value for simple data types and just the name and type
8882 for complex ones, if required.
8883
8884 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
8885 children, if required.
8886
a02d6af8
KB
88872004-01-19 Kevin Buettner <kevinb@redhat.com>
8888
8889 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
8890 unused declarations.
8891
78a4a9b9
AC
88922004-01-19 Andrew Cagney <cagney@redhat.com>
8893
8894 * top.h (mapped_symbol_files): Delete declaration.
8895 * main.c (captured_main): Delete option "m" and "mapped".
8896 * objfiles.c (mapped_symbol_files): Delete variable.
8897 * symfile.c (symbol_file_command): Delete mmap code.
8898 (symbol_file_add_with_addrs_or_offsets): Ditto.
8899 (add_symbol_file_command, reread_separate_symbols): Ditto.
8900 * objfiles.h (OBJF_MAPPED): Delete.
8901 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
8902 (free_objfile) [USE_MMALLOC]: Ditto.
8903 (open_existing_mapped_file): Delete function.
8904 (open_mapped_file): Delete function.
8905 (map_to_file): Delete function.
8906
2dbd5e30
KB
89072004-01-19 Kevin Buettner <kevinb@redhat.com>
8908
8909 * infrun.c (step_into_function): Account for possible breakpoint
8910 adjustment when computing ``stop_func_start''.
8911
437b434f
KB
89122004-01-19 Kevin Buettner <kevinb@redhat.com>
8913
8914 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
8915 the region size against the size of a pointer, not the size of
8916 a register as given by DEPRECATED_REGISTER_SIZE.
8917
55fb0713
AC
89182004-01-19 Andrew Cagney <cagney@redhat.com>
8919
8920 * tui/tui-regs.h: Include "tui-data.h".
8921 (tuiFirstRegElementNoInLine): Delete declaration.
8922 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
8923 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
8924 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
8925 (tui_calculate_regs_column_count): Rename
8926 tuiCalculateRegsColumnCount.
8927 (tui_check_register_values): Rename tuiCheckRegisterValues.
8928 (tui_show_registers): Rename tuiShowRegisters.
8929 (tui_display_registers_from_line): Rename
8930 tuiDisplayRegistersFromLine.
8931 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
8932 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
8933 (tui_first_reg_element_no_inline): Rename
8934 tuiFirstRegElementNoInLine.
8935 * tui/tui-data.h: Update copyright.
8936 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
8937 * tui/tui-windata.c: Update copyright, update references.
8938 * tui/tui-regs.c: Update copyright, update references.
8939 * tui/tui-win.c: Update copyright, update references.
8940 * tui/tui-layout.c: Update copyright, update references.
fe61caab 8941
cebe9500
AC
89422004-01-18 Andrew Cagney <cagney@redhat.com>
8943
bcdf1568
AC
8944 * tui/tui-io.c: Update copyright.
8945 (key_is_end_sequence, key_is_backspace): New functions.
8946 (key_is_command_char, key_is_start_sequence): New function.
8947 (tui_getc): Update references.
8948 * tui/tui-io.h: Update copyright.
8949 (m_tuiStartNewLine): Delete macro.
8950 (m_isBackspace, m_isDeleteChar): Delete macros.
8951 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
8952 (m_isNextPage, m_isPrevPage): Delete macros.
8953 (m_isLeftArrow, m_isRightArrow): Delete macros.
8954 (m_isXdbStyleCommandChar): Delete macro.
8955 (key_is_start_sequence): Declare, replace m_isStartSequence.
8956 (key_is_end_sequence): Declare, replace m_isEndSequence.
8957 (key_is_backspace): Declare ,replace m_isBackspace.
8958 (key_is_command_char): Declare, replace m_isCommandChar.
8959 * tui/tui-command.c: Update copyright.
8960 (tuiDispatchCtrlChar): Update references.
8961
130d87e6
AC
8962 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
8963 tuiSourceWin.h.
8964
d7b2e967
AC
8965 * tui/tui-command.c: Rename tui/tuiCommand.c.
8966 * tui/tui-command.h: Rename tui/tuiCommand.h.
8967 * tui/tui-data.c: Rename tui/tuiData.c.
8968 * tui/tui-data.h: Rename tui/tuiData.h.
8969 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
8970 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
8971 * tui/tui-io.c: Rename tui/tuiIO.c.
8972 * tui/tui-io.h: Rename tui/tuiIO.h.
8973 * tui/tui-layout.c: Rename tui/tuiLayout.c.
8974 * tui/tui-layout.h: Rename tui/tuiLayout.h.
8975 * tui/tui-regs.c: Rename tui/tuiRegs.c.
8976 * tui/tui-regs.h: Rename tui/tuiRegs.h.
8977 * tui/tui-source.c: Rename tui/tuiSource.c.
8978 * tui/tui-source.h: Rename tui/tuiSource.h.
8979 * tui/tui-stack.c: Rename tui/tuiStack.c.
8980 * tui/tui-stack.h: Rename tui/tuiStack.h.
8981 * tui/tui-win.c: Rename tui/tuiWin.c.
8982 * tui/tui-win.h: Rename tui/tuiWin.h.
8983 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
8984 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
8985 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
8986 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
8987 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
8988 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
8989 * tui/tui-file.c: Update includes.
8990 * tui/tui-hooks.c: Update includes.
8991 * tui/tui-interp.c: Update includes.
8992 * tui/tui.c: Update includes.
8993 * Makefile.in: Update all tui/ dependencies.
8994 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
8995
b2100910
AC
8996 * Makefile.in: Update copyright. Update dependencies.
8997
cebe9500
AC
8998 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
8999 problem.
9000
c6f0559b
AC
90012004-01-18 Andrew Cagney <cagney@redhat.com>
9002
43e9390b
AC
9003 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
9004 instead of register_gdbarch_init.
9005
c6f0559b
AC
9006 * remote-sds.c (tohex): Delete unused function. Update copyright.
9007 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
9008 * v850-tdep.c (v850_register_virtual_size): Ditto.
9009 * target.c (normal_target_post_startup_inferior): Ditto.
9010 * source.c (ambiguous_line_spec): Ditto.
9011 * remote.c (adapt_remote_get_threadinfo): Ditto.
9012 * mi/mi-out.c (out_field_fmt): Ditto.
9013 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
9014 (output_control_change_notification): Ditto.
9015 * m68k-tdep.c (m68k_register_byte): Ditto.
9016 (m68k_remote_breakpoint_from_pc): Ditto.
9017 * ui-out.c (init_ui_out_state): Delete unused declaration.
9018 * stabsread.c (search_value): Ditto.
9019 * mi/mi-cmd-env.c (env_cli_command): Ditto.
9020 * maint.c (print_section_table): Ditto.
9021 * infrun.c (set_follow_fork_mode_command): Ditto.
9022
a8504492
MK
90232004-01-18 Mark Kettenis <kettenis@gnu.org>
9024
9025 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
9026 DW_CFA_def_cfa_exporession. Add support for
9027 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
9028 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
9029
0bd8997e
AC
90302004-01-18 Andrew Cagney <cagney@redhat.com>
9031
9032 * ocd.c: Update copyright.
9033 (bdm_read_register_command): Delete unused function.
9034 (_initialize_remote_ocd): Delete commented out reference.
9035 (get_quoted_char, reset_packet): Delete #if0ed function.
9036 (output_packet, put_quoted_char): Delete #if0ed function.
9037 (stu_put_packet, stu_get_packet): Delete #if0ed function.
9038 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
9039 (BDM_BREAKPOINT): Delete #if0ed macro.
9040 (remote_timeout): Delete #if0ed variable.
9041
31bb40e4
MK
90422004-01-18 Mark Kettenis <kettenis@gnu.org>
9043
9044 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
9045 (core-sol2.o): Remove dependency.
9046 * core-sol2.c: Remove file.
9047
887432a5
AC
90482004-01-17 Andrew Cagney <cagney@redhat.com>
9049
9050 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
9051 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
9052 enums.
9053
29182b13
DJ
90542004-01-17 Daniel Jacobowitz <drow@mvista.com>
9055
9056 * remote.c: Update copyright years.
9057
2963ee1d
DJ
90582004-01-17 Daniel Jacobowitz <drow@mvista.com>
9059
9060 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
9061
79d45cd4
AC
90622004-01-17 Andrew Cagney <cagney@redhat.com>
9063
ee300cd4
AC
9064 * mdebugread.c: Update copyright.
9065 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
9066 (parse_type, parse_procedure): Ditto.
9067 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
9068
fcacc9c2
AC
9069 * cris-tdep.c (cris_store_struct_return): Put back accidently
9070 deleted function.
9071
79d45cd4
AC
9072 * gdbarch.sh: Update copyright year.
9073 * gdbarch.h, gdbarch.c: Re-generate.
9074
b263358a
DJ
90752004-01-17 Daniel Jacobowitz <drow@mvista.com>
9076
9077 Suggested by George Anzinger.
9078 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
9079 correct stack offset. Include unknown opcode numbers in the error
9080 message.
9081
931aecf5
AC
90822004-01-17 Andrew Cagney <cagney@redhat.com>
9083
9084 * x86-64-tdep.c (x86_64_init_abi): No need to clear
9085 extract_struct_value_address, i386 does not set it.
9086 * sparc64-tdep.c (sparc64_init_abi): Do not set
9087 extract_struct_value_address, never called.
9088 (sparc64_extract_struct_value_address): Delete function.
9089 * m68hc11-tdep.c: Update copyright.
9090 (m68hc11_gdbarch_init): Delete redundant assignment of
9091 extract_struct_value_address.
9092 * i386-tdep.c: Update copyright.
9093 (i386_gdbarch_init): Do not set extract_struct_value_address,
9094 never called.
9095 (i386_extract_struct_value_address): Delete function.
9096 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
9097 extract_struct_value_address, never called.
9098 (sparc32_extract_struct_value_address): #if 0 function. Add
9099 comments explaining its future.
9100
756fe439
DJ
91012004-01-17 Daniel Jacobowitz <drow@mvista.com>
9102
9103 * arm-tdep.c (arm_write_pc): New function.
9104 (arm_gdbarch_init): Call set_gdbarch_write_pc.
9105
e74f0f02
DJ
91062004-01-17 Daniel Jacobowitz <drow@mvista.com>
9107
9108 * breakpoint.c (must_shift_inst_regs): Delete.
9109 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
9110 and SHIFT_INST_REGS.
9111 * infcmd.c (step_1, step_1_continuation): Delete references to
9112 SHIFT_INST_REGS.
9113 * infrun.c (keep_going): Likewise.
9114 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
9115 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
9116
b6cb9035
AC
91172004-01-17 Andrew Cagney <cagney@redhat.com>
9118
444a1e2e
AC
9119 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9120 * gdbarch.h, gdbarch.c: Re-generate.
9121 * infcmd.c (print_return_value): Delete reference to
9122 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
9123
def7e6ed
AC
9124 * cris-tdep.c (cris_gdbarch_init): Do not set
9125 deprecated_extract_struct_value_address.
9126
07be497a
AC
9127 * xstormy16-tdep.c: Update copyright.
9128 (xstormy16_extract_struct_value_address): Update to current
9129 extract struct value address interface.
9130 (xstormy16_gdbarch_init): Set extract_struct_value_address.
9131 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
9132 current extract struct value address interface.
9133 (sh64_gdbarch_init): Set extract_struct_value_address.
9134
6b4d5c91
AC
9135 * cris-tdep.c: Update copyright.
9136 (cris_extract_struct_value_address): Delete function.
9137 (struct_return_address): Delete variable.
9138 (cris_store_struct_return): Do not set struct_return_address.
9139
464e0365
AC
9140 * mcore-tdep.c: Update copyright.
9141 (mcore_extract_struct_value_address): Delete function. Update
9142 comments.
9143 (mcore_gdbarch_init): Update.
9144 * mn10300-tdep.c: Update copyright.
9145 (mn10300_extract_struct_value_address): Delete function.
9146 (mn10300_gdbarch_init): Update.
9147 * v850-tdep.c: Update copyright.
9148 (v850_extract_struct_value_address): Delete.
9149 (v850_gdbarch_init): Update.
9150 * ns32k-tdep.c: Update copyright.
9151 (ns32k_extract_struct_value_address): Delete.
9152 (ns32k_gdbarch_init): Update.
9153 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
9154 (hppa_gdbarch_init): Update.
9155 * vax-tdep.c: Update copyright.
9156 (vax_extract_struct_value_address): Delete.
9157 (vax_gdbarch_init): Update.
9158
afb18d0f
AC
9159 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
9160 * gdbarch.h, gdbarch.c: Re-generate.
9161 * procfs.c (procfs_fetch_registers): Delete reference to
9162 DEPRECATED_NPC_REGNUM.
9163 (procfs_store_registers): Ditto.
9164 * regcache.c (generic_target_write_pc): Simplify.
9165 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
9166
a698f53e
AC
9167 * core-sol2.c (fetch_core_registers): Replace
9168 DEPRECATED_NPC_REGNUM with equivalent tdep value.
9169
adc11376
AC
9170 * hppa-tdep.c: Update copyright year.
9171 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
9172 NPC_REGNUM.
9173 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
9174
b6cb9035
AC
9175 * mips-tdep.c (mips_write_pc): New function.
9176 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
9177 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
9178 (mips_find_saved_regs, mips_software_single_step: Ditto.
9179 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
9180 mips_init_extra_frame_info, mips_pop_frame): Ditto.
9181
6d82d43b
AC
91822004-01-17 Andrew Cagney <cagney@redhat.com>
9183
9184 * mips-tdep.c: Re-indent. Group functions by ABI.
9185
71bd6bd4
AC
91862004-01-17 Andrew Cagney <cagney@redhat.com>
9187
9188 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
9189 * gdbarch.c: Re-generate.
9190 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9191 DECR_PC_AFTER_BREAK to zero.
9192 * vax-tdep.c (vax_gdbarch_init): Ditto.
9193 * v850-tdep.c (v850_gdbarch_init): Ditto.
9194 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
9195 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
9196 * sh-tdep.c (sh_gdbarch_init): Ditto.
9197 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9198 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9199 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9200 * mips-tdep.c (mips_gdbarch_init): Ditto.
9201 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9203 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
9204 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9205 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9206 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9207 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9208 * frv-tdep.c (frv_gdbarch_init): Ditto.
9209 * cris-tdep.c (cris_gdbarch_init): Ditto.
9210 * avr-tdep.c (avr_gdbarch_init): Ditto.
9211 * arm-tdep.c (arm_gdbarch_init): Ditto.
9212 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
9213
a02abb62
JB
92142004-01-17 J. Brobecker <brobecker@gnat.com>
9215
9216 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
9217 Delete, no longer used.
9218 (read_subrange_type): New function, mostly extracted from
9219 read_array_type().
9220 (read_array_type): Replace extracted code by call to
9221 read_subrange_type().
9222 (dwarf2_get_attr_constant_value): New function.
9223 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
9224 (add_partial_symbol): Likewise.
9225 (process_die): Likewise.
9226 (new_symbol): Likewise.
9227 (read_type_die): Likewise.
9228
cf5b2f1b
AC
92292004-01-16 Andrew Cagney <cagney@redhat.com>
9230
9231 * symfile.c: Update copyright year.
9232 (compare_symbols): Delete unused function.
9233 * stabsread.c: Update copyright year.
9234 (lrs_general_complaint): Delete unused function.
9235 (ref_search_value): Ditto.
9236 (get_substring): Delete declaration.
9237 * sh64-tdep.c: Update copyright year.
9238 (sh64_get_gdb_regnum): Delete unused function.
9239 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
9240 Delete unused function.
9241
d33b9831
MK
92422004-01-17 Mark Kettenis <kettenis@gnu.org>
9243
9244 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
9245 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
9246
7aea86e6
AC
92472004-01-16 Andrew Cagney <cagney@redhat.com>
9248
9249 Changes from Peter Schauer.
9250 * rs6000-tdep.c: Update copyright year.
9251 (rs6000_push_dummy_call): Update the stack pointer before
9252 accessing the corresponding stack region.
9253 * rs6000-nat.c: Update copyright year.
9254 (set_host_arch): Set "info.abfd" to "exec_bfd".
9255
26b0da32
MK
92562004-01-15 Mark Kettenis <kettenis@gnu.org>
9257
9258 * blockframe.c: Update copyright year.
9259 (inside_entry_func): Don't treat a zero PC specially.
9260
86fbe6cc
EZ
92612004-01-14 Elena Zannoni <ezannoni@redhat.com>
9262
9263 * gcore.c (gcore_copy_callback): Use paddr_d to print size
9264 variable.
9265 (gcore_create_callback): Ditto. Skip any memory segment that has
9266 no permissions set.
9267
63d06c5c
DC
92682004-01-14 David Carlton <carlton@kealia.com>
9269
9270 Change symbols for C++ nested types to contain the fully qualified
9271 name, if possible. (At least in the DWARF-2 case.) Partial fix
9272 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
9273 c++/895.
9274 * c-exp.y (qualified_type): Handle types nested within classes.
9275 * cp-namespace.c: Update comments.
9276 (cp_set_block_scope): Delete #if 0.
9277 (cp_lookup_nested_type): Handle types nested within classes.
9278 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
9279 when appropriate.
9280 (add_partial_symbol): Add the name of the enclosing namespace to
9281 types.
9282 (pdi_needs_namespace): New.
9283 (add_partial_namespace): Tweak comment.
9284 (add_partial_structure): New.
9285 (psymtab_to_symtab_1): Initialize processing_current_prefix
9286 here...
9287 (process_die): instead of here.
9288 (read_structure_scope): Try to figure out the name of the class or
9289 namespace that the structure might be defined within.
9290 (read_enumeration): Generate fully-qualified names, if possible.
9291 (read_namespace): Don't set name to NULL.
9292 (die_specification): New.
9293 (new_symbol): Generate fully-qualified names for types.
9294 (read_type_die): Determine appropriate prefix.
9295 (determine_prefix): New.
9296 (typename_concat): New.
9297 (class_name): New.
9298 * valops.c (value_aggregate_elt): Pass NOSIDE to
9299 value_struct_elt_for_reference.
9300 (value_struct_elt_for_reference): Make static, add NOSIDE
9301 parameter, call value_maybe_namespace_elt as a last resort.
9302 (value_namespace_elt): Break out code into
9303 value_maybe_namespace_elt.
9304 (value_maybe_namespace_elt): New.
9305
87783b8b
AC
93062004-01-12 Andrew Cagney <cagney@redhat.com>
9307
9308 * mips-tdep.c (mips_convert_register_p): Handle both raw and
9309 cooked floating-point registers.
9310 (mips_gdbarch_init): Set convert_register_p, register_to_value,
9311 and value_to_register.
9312
6503b91e
AC
93132004-01-13 Andrew Cagney <cagney@redhat.com>
9314
9315 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
9316 * gdbarch.c: Re-generate.
9317 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9318 FUNCTION_START_OFFSET.
9319 * v850-tdep.c (v850_gdbarch_init): Ditto.
9320 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
9321 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
9322 * sh-tdep.c (sh_gdbarch_init): Ditto.
9323 * s390-tdep.c (s390_gdbarch_init): Ditto.
9324 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9325 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9326 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9327 * mips-tdep.c (mips_gdbarch_init): Ditto.
9328 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9329 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9330 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9331 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
9332 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9333 * i386-tdep.c (i386_gdbarch_init): Ditto.
9334 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9335 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9336 * frv-tdep.c (frv_gdbarch_init): Ditto.
9337 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9338 * cris-tdep.c (cris_gdbarch_init): Ditto.
9339 * avr-tdep.c (avr_gdbarch_init): Ditto.
9340 * arm-tdep.c (arm_gdbarch_init): Ditto.
9341 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9342
ea1dd7bc
DJ
93432004-01-13 Daniel Jacobowitz <drow@mvista.com>
9344
9345 * infrun.c (follow_fork_mode_ask): Remove.
9346 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
9347 (follow_fork): Simplify and remove internal error for
9348 follow_fork_mode_ask.
9349 (_initialize_infrun): Update "set follow-fork-mode" help text.
9350
0f0cffd2
AC
93512004-01-13 Andrew Cagney <cagney@redhat.com>
9352
9353 * configure.in: Update copyright year.
9354 (build_warnings): Add -Wunused-label.
9355 * configure: Re-generate.
9356
de38af99
AC
93572004-01-12 Andrew Cagney <cagney@redhat.com>
9358
954a7fba
AC
9359 * exec.h (exec_ops): Make "extern".
9360
de38af99
AC
9361 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
9362 the function is void.
9363 (mips_pseudo_register_write): Ditto.
9364
1a111ce3
AC
93652004-01-12 Andrew Cagney <cagney@redhat.com>
9366
9367 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
9368 call. Never defined.
9369 * sparc-tdep.h (struct frame_info): Add opaque declaration.
9370 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
9371 (struct sparc_gregset, struct regcache): Ditto.
9372 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
9373
48efe704
AC
93742004-01-12 Andrew Cagney <cagney@redhat.com>
9375
9376 * mi/ChangeLog: Delete file. Renamed to ...
9377 * mi/ChangeLog-1999-2003: New file.
9378 * tui/ChangeLog: Delete file. Renamed to ...
9379 * tui/ChangeLog-1998-2003: New file.
fe61caab 9380
a54124c5
MK
93812004-01-11 Mark Kettenis <kettenis@gnu.org>
9382
2ca62865
MK
9383 * sparc64nbsd-tdep.c: Include "regset.h".
9384 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
9385 Remove variables.
9386 (fetch_core_registers): Remove function.
9387 (sparc64nbsd_core_fns): Remove variable.
9388 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
9389 functions.
9390 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
9391 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
9392 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
9393
ca9d58e9
MK
9394 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
9395 sparc_extract_struct_value_address.
9396 (sparc32_gdbarch_init): Set extract_struct_value_address.
9397 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
9398 function.
9399 (sparc64_init_abi): Set extract_struct_value_address. Don't set
9400 return_value_on_stack.
9401
3cc87ec0
MK
9402 * NEWS: Mention that %cs and %ss have been added to the AMD64
9403 configurations
9404
5bf00f29
MK
9405 * frame.c: Update copyright year.
9406 (get_prev_frame): Improve comment.
9407
4f7ec84e
MK
9408 * sparc64fbsd-tdep.c: Include "regset.h".
9409 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
9410 Remove variables.
9411 (fetch_core_registers): Remove function.
9412 (sparc64fbsd_core_fns): Remove variable.
9413 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
9414 functions.
9415 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
9416 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 9417 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 9418
4e7b0cd3
MK
9419 * sparcnbsd-tdep.c: Include "regset.h".
9420 (fetch_core_registers): Remove function.
9421 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
9422 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
9423 functions.
9424 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
9425 TDEP->fpregset.
46b58ce9 9426 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 9427
a54124c5
MK
9428 * sparc-tdep.h (struct regset): Provide opaque declaration.
9429 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
9430 fpregset and sizeof_fpregset members.
9431 * sparc-tdep.c (struct regset): Provide opaque declaration.
9432 (sparc_regset_from_core_section): New function.
9433 (sparc32_gdbarch_init): Initialize TDEP->gregset,
9434 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
9435 Set regset_from_core_section when appropriate.
9436
29ff87c5
MK
94372004-01-10 Mark Kettenis <kettenis@gnu.org>
9438
79b1ab3d
MK
9439 * x86-64-tdep.c (amd64_non_pod_p): New function.
9440 (amd64_classify_aggregate): Return class memory for non-POD
9441 C++ structure types.
9442
6470d250
MK
9443 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
9444 argument. Use it to reserve a register if necessary.
9445 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
9446 amd64_push_arguments.
9447
562c50c2
MK
9448 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
9449
af233647
MK
9450 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
9451 register numbers in comments.
9452 * x86-64-tdep.h: Update copyright year.
9453 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
9454 Adjust for addition of %cs and %ss.
9455 * amd64fbsd-nat.c: Update copyright year.
9456 (reg_offset): Add register offsets for %cs and %ss.
9457 * amd64fbsd-tdep.c: Update copyright year.
9458 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
9459 (amd64fbsd_sc_reg_offset): Likewise.
9460 * x86-64-linux-nat.c: Update copyright year.
9461 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
9462 and %ss.
9463 * amd64nbsd-nat.c: Update copyright year.
9464 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
9465 * amd64nbsd-tdep.c: Update copyright year.
9466 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
9467 * x86-64-linux-tdep.c: Update copyright year.
9468 (user_to_gdb_regmap): Add mapping for %cs and %ss.
9469 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
9470 * regformats/reg-x86-64.dat: Add %cs and %ss.
9471
29ff87c5
MK
9472 * blockframe.c (inside_entry_func): Reformat. Introduce new local
9473 variables to prevent long lines. Update comments to reflect
9474 reality.
9475
38d518c9
EZ
94762004-01-09 David Carlton <carlton@kealia.com>
9477
9478 Checked in by Elena Zannoni <ezannoni@redhat.com>.
9479 * dwarf2read.c (read_namespace): Pull out name-generating code
9480 into namespace_name. Rename previous_namespace to previous_prefix
9481 and processing_current_namespace to processing_current_prefix..
9482 (namespace_name): New function.
9483 (add_partial_symbol): Substitute uses of pdi->name with
9484 actual_name.
9485 * cp-support.h: Rename processing_current_namespace to
9486 processing_current_prefix.
9487 Update copyright year.
9488 * cp-namespace.c: Rename processing_current_namespace to
9489 processing_current_prefix.
9490 Update copyright year.
fe61caab 9491
1e4728e7
AC
94922004-01-09 Andrew Cagney <cagney@redhat.com>
9493
9494 * jv-valprint.c, ser-unix.c: Add missing copyright years.
9495
c77c642a
MK
94962004-01-09 Mark Kettenis <kettenis@gnu.org>
9497
9498 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
9499 complaining.
9500 (process_one_symbol): Deal with N_PATCH stabs.
9501
b44e9041
EZ
95022004-01-09 Elena Zannoni <ezannoni@redhat.com>
9503
9504 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
9505 ifdeffed code.
9506 Update copyright year.
38d518c9 9507
eccfb640
MC
95082004-01-08 Michael Chastain <mec.gnu@mindspring.com>
9509
9510 * config/pa/tm-hppa.h: Update extern declarations for
9511 hppa32_hpux_frame_saved_pc_in_sigtramp,
9512 hppa32_hpux_frame_base_before_sigtramp, and
9513 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
9514
848c5feb
MC
95152004-01-08 Michael Chastain <mec.gnu@mindspring.com>
9516
9517 * config/pa/tm-hppah.h: Update copyright years.
9518
3cc5d663
AC
95192004-01-08 Andrew Cagney <cagney@redhat.com>
9520
9521 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
9522 (mips_o32_reg_struct_has_addr): Delete function.
9523 (mips_gdbarch_init): Update.
9524 (mips_extract_struct_value_address): Delete function.
9525
bfec0b41
JJ
95262004-01-08 David Mosberger <davidm@hpl.hp.com>
9527
9528 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
9529 reality.
9530
16e109ca
AC
95312004-01-07 Andrew Cagney <cagney@redhat.com>
9532
6214a8a1
AC
9533 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
9534 architecture's elf flags (when available).
9535
8d5838b5
AC
9536 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
9537 FPU to the start, check the MIPS FPU when looking for an old
9538 architecture.
9539 (set_mipsfpu_single_command): Update the architecture.
9540 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
9541
480d3dd2
AC
9542 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
9543 (mips_mask_address_p): Add "tdep" parameter.
9544 (show_mask_address, mips_addr_bits_remove): Update.
9545 (mips_dump_tdep): Update.
9546 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
9547 (MIPS_STACK_ARGSIZE): Delete macro.
9548 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
9549 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
9550 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
9551 (mips_dump_tdep): Update.
9552 (MIPS_SAVED_REGSIZE): Delete macro.
9553 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
9554 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
9555 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
9556 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
9557 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
9558 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
9559 (mips_pop_frame, return_value_location): Update.
9560 (mips_n32n64_return_value, mips_dump_tdep): Update.
9561
ec03c1ac
AC
9562 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
9563 MIPS ABI.
9564
16e109ca
AC
9565 * mips-tdep.c: Update copyright.
9566 (mips_gdbarch_init): Merge two code blocks handling the register
9567 name and number layout.
9568
15255275
MS
95692004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
9570
9571 * tracepoint.c (validate_actionline): Fix segv at EOF
9572
9f9057da
MC
95732004-01-07 Michael Chastain <mec.gnu@mindspring.com>
9574
9575 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
9576 properly for static fields.
9577
0127c0d3 95782004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 9579 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
9580
9581 * disasm.c: Update copyright to include 2004.
9582 (do_mixed_source_and_assembly): For uiout asm list
9583 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 9584 NULL and do so prior to loop. Only reset when we close off
0127c0d3 9585 the tuple/list. Move check for whether to close off the
fe61caab 9586 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
9587 on each loop iteration.
9588
5269965e
AC
95892004-01-05 Andrew Cagney <cagney@redhat.com>
9590
54f1137d
AC
9591 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
9592 should be a switch case and not a label.
9593 * mips-tdep.c (mips32_next_pc): Delete unused labels
9594 "greater_equal_branch" and "less_zero_branch".
9595 * jv-valprint.c (java_print_value_fields): Delete unused label
9596 "flush_it".
9597
5269965e
AC
9598 * target.c (unpush_target): Only close a target that is in the
9599 target stack.
9600
dbc22fa1
MK
96012004-01-05 Mark Kettenis <kettenis@gnu.org>
9602
9515395e
MK
9603 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
9604 address from [sp + 64] instead of %o2.
9605
dbc22fa1
MK
9606 * frame.c (get_prev_frame): Don't try to unwind the PC. This
9607 fixes PR backtrace/1476.
9608
5439edaa
AC
96092004-01-05 Andrew Cagney <cagney@redhat.com>
9610
9611 * libunwind-frame.h (struct frame_id): Add opaque declaration,
9612 move to start of file.
9613 * i386-tdep.h (struct regcache): Add opaque declaration.
9614 * config/ia64/nm-linux.h (struct target_ops): Add opaque
9615 declaration.
9616 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
9617 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
9618 * win32-nat.c (fake_create_process): Use ISO C style definition.
9619 * stabsread.c (define_symbol): Delete #ifndef
9620 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
9621 stabs_argument_has_addr call, macro never defined.
9622
19061abe
MC
96232004-01-04 Michael Chastain <mec.gnu@mindspring.com>
9624
9625 * op50-rom.c: Delete.
9626 * w89k-rom.c: Delete.
9627 * Makefile.in: Remove references.
9628
e53bef9f
MK
96292004-01-04 Mark Kettenis <kettenis@gnu.org>
9630
9631 * x86-64-tdep.c: Update copyright year.
9632 (struct amd64_register_info): Rename from x86_64_register_info.
9633 (amd64_register_info): Rename from x86_64_register_info.
9634 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
9635 (amd64_register_name): Rename from x86_64_register_name.
9636 (amd64_register_type): Rename from x86_64_register_type.
9637 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
9638 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
9639 (amd64_dwarf_reg_to_regnum): Rename from
9640 x86_64_dwarf_reg_to_regnum.
9641 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
9642 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
9643 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
9644 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
9645 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
9646 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
9647 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
9648 (amd64_frame_cache): Rename from x86_64_frame_cache.
9649 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
9650 (amd64_frame_prev_register): Rename from
9651 x86_64_frame_prev_register.
9652 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
9653 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
9654 (amd64_sigtramp_frame_cache): Rename from
9655 x86_64_sigtramp_frame_cache.
9656 (amd64_sigtramp_frame_prev_register): Rename from
9657 x86_64_sigtramp_frame_prev_register.
9658 (amd64_sigtramp_frame_unwind): Rename from
9659 x86_64_sigtramp_frame_unwind.
9660 (amd64_sigtramp_frame_sniffer): Rename from
9661 x86_64_sigtramp_frame_sniffer.
9662 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
9663 (amd64_frame_base): Rename from x86_64_frame_base.
9664 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
9665 (amd64_frame_align): Rename from x86_64_frame_align.
9666 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
9667 (amd64_regset_from_core_section): Rename from
9668 x86_64_regset_from_core_section.
9669 (x86_64_init_abi): Update comments.
9670
fca6aa58
NR
96712004-01-04 Nick Roberts <nick@nick.uklinux.net>
9672
9673 * MAINTAINERS (write after approval): Add myself.
9674
8ada74e3
MK
96752004-01-04 Mark Kettenis <kettenis@gnu.org>
9676
9677 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9678 `float' arguments.
9679
5154b0cd
MK
96802004-01-04 Mark Kettenis <kettenis@gnu.org>
9681
9682 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
9683 such that it mentions a specific version of GCC that exhibits this
9684 bug.
9685
fb316966
MK
96862004-01-03 Mark Kettenis <kettenis@gnu.org>
9687
200cc553
MK
9688 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
9689 structure that has a single `float' member, store it in %f1 in
9690 addition to %f0.
9691
e226a4a0
MK
9692 * sparc-sol2-nat.c: Add missing '\'.
9693
b9d4c5ed
MK
9694 * sparc-tdep.c (sparc32_return_value): New function.
9695 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
9696 Remove functions.
9697 (sparc32_gdbarch_init): Set return_value, don't set
9698 extract_return_value, store_return_value, use_struct_convention
9699 and return_value_on_stack.
9700
fb316966
MK
9701 * sparc-sol2-nat.c: Add missing ')'.
9702
1af510a8
JB
97032004-01-03 J. Brobecker <brobecker@gnat.com>
9704
9705 * infrun.c (handle_step_into_function): New function.
9706 (handle_inferior_event): Extract out some code into the new
9707 function above.
9708
5cf4d23a
JB
97092004-01-03 J. Brobecker <brobecker@gnat.com>
9710
9711 * infrun.c (handle_inferior_event): Move the declaration of
9712 real_stop_pc inside the if blocks where it is used.
9713
60af1db2
MK
97142004-01-03 Mark Kettenis <kettenis@gnu.org>
9715
9716 * sparc64-tdep.c (sparc64_16_byte_align_p)
9717 (sparc64_store_floating_fields, sparc64_store_floating_fields):
9718 Use check_typedef to get subtypes of structures and unions.
9719 (sparc64_store_return_value): Fix calculation of the appropriate
9720 offset into VALBUF when storing a structure or union.
9721 (sparc64_return_value): New function.
9722 (sparc64_use_struct_convention): Remove function.
9723 (sparc64_init_abi): Set return_value, don't set
9724 extract_return_value, store_return_value and
9725 use_struct_convention.
9726
1a901d3f
EZ
97272004-01-03 Eli Zaretskii <eliz@elta.co.il>
9728
9729 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
9730 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
9731 gdb/config/alpha/xm-alphaosf.h,
9732 gdb/config/powerpc/tm-ppcle-eabi.h,
9733 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
9734 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
9735 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
9736 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
9737 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
9738 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
9739 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
9740 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
9741 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
9742 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
9743 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
9744 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
9745 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
9746 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
9747 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
9748 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
9749 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
9750 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
9751 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
9752 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
9753 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
9754 Remove lines for .cvsignore files.
9755
ef52e463
JB
97562004-01-03 J. Brobecker <brobecker@gnat.com>
9757
9758 * infrun.c: Back out the previous change.
9759
cb1bf9dc
MK
97602004-01-03 Mark Kettenis <kettenis@gnu.org>
9761
f0424ef6
MK
9762 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
9763 sparc-*-sunos4* to the list of REMOVED configurations.
9764
cb1bf9dc
MK
9765 * configure.tgt: Add back sparc-*-vxworks*.
9766 * remote-vxsparc.c: Remove all includes except for "defs.h",
9767 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
9768 Include "sparc-tdep.h".
9769 (SPARC_R_G1): New define.
9770 (vxsparc_gregset): New variable.
9771 (ext_format_sparc): Remove extern declaration.
9772 (vx_read_register): Rewrite to use sparc32_supply_gregset and
9773 sparc32_supply_fpregset.
9774 (vx_write_register): Rewrite to use sparc32_collect_gregset,
9775 sparc_collect_rwindow and sparc32_collect_fpregset.
9776 * config/sparc/tm-vxworks.h: New file, based on recently removed
9777 tm-vxsparc.h.
9778 * config/sparc/vxworks.mt: New file, based on recently removed
9779 vxworks.mt.
fe61caab 9780
5e938f9f
JB
97812004-01-03 J. Brobecker <brobecker@gnat.com>
9782
9783 * infrun.c (handle_step_into_function): New function.
9784 (handle_inferior_event): Extract out some code into the new
9785 function above.
9786
386c036b
MK
97872004-01-02 Mark Kettenis <kettenis@gnu.org>
9788
9789 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
9790 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
9791 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
9792 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
9793 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
9794 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
9795 (sparc_nat_h): New variable.
9796 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
9797 (tm-sun4os4.h): Remove dependency.
9798 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
9799 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
9800 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
9801 sparc-tdep.o): Update dependencies.
9802 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
9803 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
9804 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
9805 dependencies.
9806 * configure.host: Remove existing sparc-*-lynxos*,
9807 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
9808 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
9809 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
9810 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
9811 triplets.
9812 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
9813 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
9814 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
9815 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
9816 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
9817 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
9818 sparc64-*-solaris2* and sparc64-*-* triplets.
9819 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
9820 "symtab.h" and "objfiles.h".
9821 (BIAS): Remove define.
9822 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
9823 (X_DISP19): Remove macros.
9824 (sparc_fetch_instruction): Remove function.
9825 (struct gdbarch_tdep): Remove definition.
9826 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
9827 (sparc_breakpoint_from_pc): Remove function.
9828 (struct sparc64_frame_cache): Remove definition.
9829 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
9830 sparc64_unwind_pc): Remove functions.
9831 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
9832 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
9833 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
9834 (sparc64_frame_cache): Change return type to `struct
9835 sparc_frame_cache *'. Simply call sparc_frame_cache.
9836 (sparc64_frame_this_id, sparc64_frame_prev_register,
9837 sparc64_frame_base_address): Use `struct sparc_frame_cache'
9838 instead of `struct sparc64_frame_cache.
9839 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
9840 sparc_analyze_control_transfer, sparc_software_single_step,
9841 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
9842 _initialize_sparc64_tdep): Remove functions.
9843 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
9844 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
9845 macros.
9846 (sparc64_supply_gregset, sparc64_collect_gregset,
9847 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
9848 (sparc64_init_abi): New function.
9849 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
9850 inclusion guard. Include "sparc-tdep.h".
9851 (BIAS): Define.
9852 (r_tstate_offset, r_fprs_offset): New defines.
9853 (enum sparc_regnum): Remove defenition.
9854 (enum sparc64_regnum): Reformat.
9855 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
9856 (sparc64_init_abi, sparc64_supply_gregset,
9857 sparc64_collect_gregset, sparc64_supply_fpregset,
9858 sparc64_collect_fpregset): New prototypes.
9859 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
9860 Add extern declarations.
9861 (sparc64_sol2_init_abi): New prototype.
9862 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
9863 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
9864 prototypes.
9865 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
9866 "sparnbsd-nat.h".
9867 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
9868 functions.
9869 (_initialize_sparc64fbsd_nat): Remove initialization of
9870 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
9871 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 9872 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
9873 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
9874 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
9875 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
9876 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
9877 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
9878 (sparc64fbsd_r_y_offset): Remove variables.
9879 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
9880 Make static and const.
9881 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
9882 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
9883 functions.
9884 (sparc64fbsd_gregset): New variable.
9885 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
9886 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
9887 and sparc64_supply_fpregset.
9888 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
9889 (sparc64fbsd_sigtramp_frame_this_id)
9890 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
9891 (sparc64fbsd_sigtramp_frame_unwind): New variable.
9892 (sparc64fbsd_sigtramp_frame_sniffer): New function.
9893 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
9894 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
9895 * sparcnbsd-tdep.c: Update copyright year. Include
9896 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
9897 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
9898 "value.h" and "sparcnbsd-tdep.h".
9899 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
9900 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
9901 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
9902 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
9903 defines.
9904 (sparcnbsd_gregset): New variable.
9905 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
9906 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
9907 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
9908 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
9909 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
9910 variables.
9911 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
9912 (sparc32nbsd_sigcontext_frame_this_id)
9913 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
9914 (sparc32nbsd_sigcontext_frame_unwind): New variable.
9915 (sparc32nbsd_sigtramp_frame_sniffer): New function.
9916 (sparcnbsd_get_longjmp_target_32,
9917 sparcnbsd_get_longjmp_target_64): Remove functions.
9918 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
9919 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
9920 sparcnbsd_init_elf): Remove.
9921 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
9922 (sparcnbsd_elf_init_abi): New functions.
9923 (_initialize_sparcnbsd_tdep): New prototype.
9924 (_initialize_sparnbsd_tdep): Update.
9925 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
9926 corelow.o. Add sparc64-nat.o and sparc-nat.o.
9927 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
9928 * config/sparc/linux.mh: Update comment.
9929 (XM_FILE, HOST_IPC): Remove variables.
9930 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
9931 sparc-linux-nat.o.
9932 * config/sparc/linux.mt: Update comment.
9933 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
9934 * config/sparc/nbsd.mt: Reformat.
9935 * config/sparc/nbsd64.mh: Update comment.
9936 (NATDEPFILES): Add sparc-nat.o.
9937 * config/sparc/nbsd64.mt: Update comment.
9938 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
9939 (TM_FILE): Set to tm-nbsd.h.
9940 * config/sparc/nbsdelf.mh: Update comment.
9941 (NATDEPFILES): Add sparc-nat.o.
9942 (XM_FILE): Delete.
9943 * config/sparc/nbsdaout.mh: Update comment.
9944 (NATDEPFILES): Add sparc-nat.o
9945 (XM_FILE): Delete.
9946 * config/sparc/nm-linux.h: Update copyright year. Don't include
9947 "config/nm-svr4.h" and "solib.h". Add protection against multiple
9948 inclusion.
9949 (KERNEL_U_SIZE): Remove define.
9950 (kernel_u_size): Remove prototype.
9951 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
9952 * config/sparc/nm-nbsd.h: Update copyright. Don't include
9953 "regcache.h".
9954 (CHILD_PREPARE_TO_STORE): Remove define.
9955 * config/sparc/nm-nbsdaout.h: Tweak some comments.
9956 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
9957 sparcnbsd-nat.c: Rewrite files.
9958 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
9959 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
9960 sparcnbsd-tdep.h: Remove files.
9961 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
9962 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
9963 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
9964 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
9965 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
9966 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
9967 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
9968 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
9969 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
9970 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
9971 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
9972 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
9973 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
9974 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
9975 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
9976 * config/sparc/linux64.mh, config/sparc/linux64.mt,
9977 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
9978 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
9979 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
9980
ee84457a
AC
99812004-01-02 Andrew Cagney <cagney@redhat.com>
9982
9983 From 2003-12-18 Kazuhiro Inaoka:
9984 * configure.host: Add m32r-linux target.
9985
0bc2134e
MC
99862004-01-02 Michael Chastain <mec.gnu@mindspring.com>
9987
9988 * top.c (print_gdb_version): Update year to 2004.
9989
89a72f9c
MM
99902004-01-02 Mark Mitchell <mark@codesourcery.com>
9991
9992 * MAINTAINERS: Add myself to the write-after-approval category.
9993
86b013ed
DJ
99942004-01-02 Daniel Jacobowitz <drow@mvista.com>
9995
9996 From Bernardo Innocenti <bernie@develer.com>:
9997 * configure.tgt: Add uClinux target.
9998
e42c9534
AC
99992004-01-02 Andrew Cagney <cagney@redhat.com>
10000
10001 * utils.c (do_my_cleanups): Make static, add forward declaration.
10002 * defs.h (do_my_cleanups): Delete declaration.
10003
162467d3
EZ
100042004-01-02 Eli Zaretskii <eliz@elta.co.il>
10005
10006 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
10007 bfd/ChangeLog-0203.
10008
78434e59
MK
100092004-01-02 Mark Kettenis <kettenis@gnu.org>
10010
10011 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
10012 in <machine/reg.h>.
10013 * configure, config.in: Regenerate.
10014
48efe704
AC
10015For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
10016tui/ChangeLog-1998-2003.
c906108c
SS
10017\f
10018Local Variables:
10019mode: change-log
10020left-margin: 8
10021fill-column: 74
10022version-control: never
10023End:
This page took 1.107111 seconds and 4 git commands to generate.