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