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