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