4eebde2d456ba1faf2c8369499efc3ff978f8a1c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2
3 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4 * disasm.c (dump_insns, gdb_print_insn): Likewise.
5 * gdbarch.c, gdbarch.h: Regenerate.
6
7 2007-06-19 Markus Deuling <deuling@de.ibm.com>
8
9 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
10 gdbarch_believe_pcc_promotion.
11 * stabsread.c (define_symbol): Likewise.
12 Remove unnecessary definition.
13 * coffread.c (process_coff_symbol): Remove unnecessary code.
14 * gdbarch.c, gdbarch.h: Regenerate.
15
16 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
17
18 * configure.ac: Do not use ${objdir}.
19 * configure: Regenerated.
20
21 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
22
23 * gdbarch.sh (deprecated_register_size): Remove.
24 * gdbarch.h, gdbarch.c: Regenerate.
25
26 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
27 by INT_REGISTER_SIZE.
28 (thumb_get_next_pc, arm_return_in_memory): Likewise.
29 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
30 * ia64-tdep.c (ia64_gdbarch_init): Do not call
31 set_gdbarch_deprecated_register_size.
32
33 2007-06-18 Markus Deuling <deuling@de.ibm.com>
34
35 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
36 gdbarch_deprecated_fp_regnum.
37 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
38 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
39 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
40 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
41 (comment).
42 * gdbarch.c, gdbarch.h: Regenerate.
43
44 2007-06-18 Markus Deuling <deuling@de.ibm.com>
45
46 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
47 gdbarch_extract_return_value.
48 * value.c (generic_use_struct_convention): Likewise (comment).
49 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
50 * arch-utils.c (legacy_return_value): Likewise.
51 * arch-utils.h (legacy_return_value): Likewise (comment).
52 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
53 gdbarch_store_return_value.
54 * stack.c (return_command): Likewise (comment).
55 * arch-utils.h (legacy_return_value): Likewise (comment).
56 * arch-utils.c (legacy_return_value): Likewise.
57 * gdbarch.c, gdbarch.h: Regenerate.
58
59 2007-06-18 Markus Deuling <deuling@de.ibm.com>
60
61 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
62 gdbarch_deprecated_use_struct_convention.
63 * arch-utils.c (legacy_return_value): Likewise.
64 * gdbarch.c, gdbarch.h: Regenerate.
65
66 2007-06-18 Markus Deuling <deuling@de.ibm.com>
67
68 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
69 gdbarch_deprecated_function_start_offset.
70 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
71 * linespec.c (minsym_found): Likewise.
72 * infrun.c (handle_inferior_event): Likewise.
73 * infcall.c (find_function_addr): Likewise.
74 * cli/cli-cmds.c (disassemble_command): Likewise.
75 * gdbarch.c, gdbarch.h: Regenerate.
76
77 2007-06-18 Markus Deuling <deuling@de.ibm.com>
78
79 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
80 gdbarch_deprecated_reg_struct_has_addr.
81 * infcall.c (call_function_by_hand): Likewise.
82 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
83 * gdbarch_deprecated_reg_struct_has_addr_p.
84 * infcall.c (call_function_by_hand): Likewise.
85 * gdbarch.c, gdbarch.h: Regenerate.
86
87 2007-06-18 Markus Deuling <deuling@de.ibm.com>
88
89 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
90 * sh-tdep.c (sh_extract_struct_value_address): Remove.
91 (sh_gdbarch_init): Remove
92 set_gdbarch_deprecated_extract_struct_value_address.
93 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
94 (sh64_gdbarch_init): Remove
95 set_gdbarch_deprecated_extract_struct_value_address.
96 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
97 (ia64_gdbarch_init): Remove
98 set_gdbarch_deprecated_extract_struct_value_address.
99 * frv-tdep.c (frv_extract_struct_value_address): Remove.
100 (frv_gdbarch_init): Remove
101 set_gdbarch_deprecated_extract_struct_value_address.
102 * gdbarch.c, gdbarch.h: Regenerate.
103
104 2007-06-18 Markus Deuling <deuling@de.ibm.com>
105
106 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
107 * v850-tdep.c (v850_unwind_sp): Likewise.
108 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
109 * stack.c (frame_info): Likewise.
110 * stabsread.c (define_symbol): Likewise.
111 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
112 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
113 (sh_unwind_sp): Likewise.
114 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
115 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
116 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
117 (rs6000_frame_cache): Likewise.
118 * rs6000-nat.c (store_register): Likewise.
119 * remote-mips.c (mips_wait): Likewise.
120 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
121 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
122 (ppc64_sysv_abi_push_dummy_call): Likewise.
123 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
124 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
125 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
126 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
127 * m32r-rom.c (m32r_supply_register): Likewise.
128 * frame.c (frame_sp_unwind): Likewise.
129 * mips-tdep.c (mips_insn16_frame_cache)
130 (mips_insn32_frame_cache): Likewise (comment).
131 * m68klinux-nat.c (supply_gregset): Likewise.
132 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
133 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
134 * i386-tdep.c (i386_get_longjmp_target): Likewise.
135 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
136 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
137 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
138 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
139 (cris_register_type, crisv32_register_type)
140 (cris_dwarf2_frame_init_reg): Likewise.
141 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
142 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
143 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
144 * libunwind-frame.c (libunwind_frame_cache): Likewise.
145
146 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
147 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
148 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
149 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
150 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
151 * v850-tdep.c (v850_unwind_pc): Likewise.
152 * stack.c (frame_info): Likewise.
153 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
154 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
155 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
156 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
157 (sh_dsp_show_regs): Likewise.
158 * shnbsd-tdep.c (shnbsd_supply_gregset)
159 (shnbsd_collect_gregset): Likewise.
160 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
161 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
162 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
163 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
164 (6000_register_reggroup_p, rs6000_unwind_pc)
165 (rs6000_frame_cache): Likewise.
166 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
167 (rs6000_store_inferior_registers): Likewise.
168 * remote-mips.c (mips_wait, mips_load): Likewise.
169 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
170 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
171 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
172 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
173 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
174 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
175 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
176 (store_ppc_registers, fill_gregset): Likewise.
177 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
178 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
179 * mipsnbsd-nat.c (getregs_supplies): Likewise.
180 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
181 * m68klinux-nat.c (supply_gregset): Likewise.
182 * irix5-nat.c (fill_gregset): Likewise.
183 * i386-tdep.c (i386_unwind_pc): Likewise.
184 * i386-linux-nat.c (i386_linux_resume): Likewise.
185 * frame.c (get_prev_frame_1): Likewise.
186 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
187 * dbug-rom.c (dbug_supply_register): Likewise.
188 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
189 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
190 (cris_register_type, crisv32_register_type, crisv32_register_name)
191 (cris_dwarf2_frame_init_reg, find_step_target)
192 (cris_software_single_step, cris_supply_gregset)
193 (cris_regnums): Likewise.
194 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
195 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
196 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
197 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
198 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
199
200 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
201 * dbug-rom.c (dbug_supply_register): Likewise.
202 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
203 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
204 * win32-nat.c (win32_resume): Likewise.
205 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
206 * m68k-tdep.c (m68k_register_type): Likewise.
207 * m68klinux-nat.c (supply_gregset): Likewise.
208
209 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
210 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
211 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
212 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
213 (fv_reg_base_num, dr_reg_base_num): Likewise.
214 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
215 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
216 (sh64_extract_return_value, sh64_store_return_value)
217 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
218 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
219 * procfs.c (procfs_fetch_registers, procfs_store_registers)
220 (invalidate_cache): Likewise.
221 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
222 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
223 (mipsnbsd_fill_fpreg): Likewise.
224 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
225 (mipsnbsd_store_inferior_registers): Likewise.
226 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
227 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
228 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
229 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
230 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
231 (fill_fpregset): Likewise.
232 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
233 * i386-tdep.h (struct_return): Likewise (comment).
234 * i386-nto-tdep.c (i386nto_register_area): Likewise.
235 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
236 (go32_store_registers): Likewise.
237 * alpha-tdep.c (alpha_next_pc): Likewise.
238 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
239 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
240 (alphabsd_store_inferior_registers): Likewise.
241 * core-regset.c (fetch_core_registers): Likewise.
242 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
243
244 * gdbarch.c, gdbarch.h: Regenerate.
245
246 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
247
248 * coffread.c (coff_sym_fns): Add default_symfile_segments.
249 * dbxread.c (start_psymtab): Check HAVE_ELF.
250 (aout_sym_fns): Likewise.
251 * elfread.c (elf_symfile_segments): New.
252 (elf_sym_fns): Add elf_symfile_segments.
253 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
254 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
255 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
256 * somread.c (som_sym_fns): Use default_symfile_segments.
257 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
258 (init_objfile_sect_indices): Call symfile_find_segment_sections.
259 (default_symfile_segments): New function.
260 (syms_from_objfile): Update call to find_sym_fns.
261 (symfile_get_segment_data, free_symfile_segment_data): New.
262 (symfile_map_offsets_to_segments): New.
263 (symfile_find_segment_sections): New.
264 * symfile.h (struct symfile_segment_data): New.
265 (struct sym_fns): Add sym_segments.
266 (default_symfile_segments, symfile_get_segment_data)
267 (free_symfile_segment_data): New prototypes.
268 (symfile_map_offsets_to_segments): Likewise.
269 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
270 * Makefile.in (COMMON_OBS): Remove elfread.o.
271 (elf_internal_h): New.
272 (elfread.o): Update.
273 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
274 compiled.
275 * config.in, configure: Regenerated.
276 * NEWS: Mention qOffsets changes.
277
278 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
279
280 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
281 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
282 Replace global variable declaration with compatibility macro.
283 (struct builtin_m2_type): New data type.
284 (builtin_m2_type): Add prototype.
285 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
286 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
287 Remove global variables.
288 (m2_language_arch_info): Use builtin_m2_type instead of variables.
289 (build_m2_types): New function.
290 (m2_type_data): New variable.
291 (builtin_m2_type): New function.
292 (_initialize_m2_language): Do not build data types. Register
293 m2_type_data per-gdbarch data.
294
295 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
296
297 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
298 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
299 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
300 builtin_type_f_real_s8, builtin_type_f_real_s16,
301 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
302 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
303 variable declaration with compatibility macro.
304 (struct builtin_f_type): New data type.
305 (builtin_f_type): Add prototype.
306 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
307 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
308 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
309 builtin_type_f_real_s8, builtin_type_f_real_s16,
310 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
311 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
312 (f_language_arch_info): Use builtin_f_type instead of variables.
313 (build_fortran_types): Build builtin_f_type structure instead of
314 setting global type variables.
315 (f_type_data): New variable.
316 (builtin_f_type): New function.
317 (_initialize_f_language): Do not call build_fortran_types. Do not
318 swap global type variables. Register f_type_data per-gdbarch data.
319
320 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
321
322 * f-lang.c (_initialize_f_language): Do not initialize or
323 swap builtin_type_string.
324
325 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
326
327 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
328 value_of_builtin_frame_reg): Remove.
329 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
330 inactive call to value_of_builtin_frame_reg.
331
332 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
333
334 * gdbarch.sh (bfd_vma_bit): Remove.
335 * gdbarch.c, gdbarch.h: Regenerate.
336
337 * gdbtypes.h (builtin_bfd_vma_type): Remove.
338 * gdbtypes.h (builtin_bfd_vma_type): Remove.
339 (build_gdbtypes): Do not initialize it.
340 (_initialize_gdbtypes): Do not swap it.
341
342 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
343
344 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
345 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
346 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
347 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
348 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
349 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
350 builtin_type_vec64, builtin_type_vec128): Remove.
351 (init_simd_type): Remove.
352 (init_vector_type): Make global.
353 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
354 (build_gdbtypes): Do not build vector types.
355 (_initialize_gdbtypes): Do not swap vector types.
356 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
357 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
358 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
359 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
360 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
361 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
362 builtin_type_vec64, builtin_type_vec128): Remove declarations.
363 (init_vector_type): Add prototype.
364
365 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
366 i386_sse_type members.
367 (i386_mmx_type, i386_sse_type): Change from variables to functions.
368 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
369 (i386_init_types): Do not build vector types.
370 (i386_mmx_type, i386_sse_type): New functions.
371 (i386_register_type): Call them instead of using global variables.
372 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
373 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
374 of using global variable.
375
376 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
377 and ppc_builtin_type_vec128 members.
378 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
379 (rs6000_builtin_type_vec128): Likewise.
380 (rs6000_register_type): Call them instead of using builtin_type_vec64
381 and builtin_type_vec128.
382 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
383
384 * spu-tdep.c (struct gdbarch_tdep): New data type.
385 (spu_builtin_type_vec128): Remove variable.
386 (spu_builtin_type_vec128): New function.
387 (spu_register_type): Call it instead of using global variable.
388 (spu_gdbarch_init): Allocate tdep structure.
389 (spu_init_vector_type): Remove function.
390 (_initialize_spu_tdep): Do not call it.
391
392 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
393
394 * amd64-tdep.c (struct amd64_register_info): Remove.
395 (amd64_register_info): Remove.
396 (amd64_register_names): New static variable.
397 (AMD64_NUM_REGS): Use amd64_register_names instead of
398 amd64_register_info.
399 (amd64_register_name): Likewise.
400 (amd64_register_type): Do not refer to amd64_register_info.
401
402 * s390-tdep.c (struct s390_register_info): Remove.
403 (s390_register_info): Remove.
404 (s390_register_name): Do not refer to s390_register_info.
405 (s390_register_type): Likewise.
406
407 * sparc64-tdep.c (struct sparc64_register_info): Remove.
408 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
409 (sparc64_register_names, sparc64_pseudo_register_names): New.
410 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
411 sparc64_register_names and sparc64_pseudo_register_names instead of
412 sparc64_register_info and sparc64_pseudo_register_info.
413 (sparc64_register_name): Likewise.
414 (sparc64_register_type): Do not refer to sparc64_register_info
415 and sparc64_pseudo_register_info.
416
417 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
418
419 * c-lang.c (cplus_builtin_types): Remove.
420 (enum cplus_primitive_types): New data type.
421 (cplus_language_arch_info): New function.
422 (cplus_language_defn): Set la_language_arch_info member. Do not set
423 la_builtin_type_vector and string_char_type members.
424
425 * f-lang.c (f_builtin_types): Remove.
426 (enum f_primitive_types): New data type.
427 (f_language_arch_info): New function.
428 (f_language_de): Set la_language_arch_info member. Do not set
429 la_builtin_type_vector and string_char_type members.
430
431 * m2-lang.c (m2_builtin_types): Remove.
432 (enum m2_primitive_types): New data type.
433 (m2_language_arch_info): New function.
434 (m2_language_defn): Set la_language_arch_info member. Do not set
435 la_builtin_type_vector and string_char_type members.
436
437 * objc-lang.c (objc_builtin_types): Remove.
438 (objc_language): Set la_language_arch_info member. Do not set
439 la_builtin_type_vector and string_char_type members.
440
441 * p-lang.c (pascal_builtin_types): Remove.
442 (enum pascal_primitive_types): New data type.
443 (pascal_language_arch_info): New function.
444 (pascal_language_defn): Set la_language_arch_info member. Do not set
445 la_builtin_type_vector and string_char_type members.
446
447 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
448
449 * regcache.c (struct regcache): Add ptid_t member.
450 (regcache_xmalloc): Initialize it.
451 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
452 (regcache_dup): Likewise.
453 (regcache_dup_no_passthrough): Likewise.
454 (current_regcache): Make static.
455 (registers_ptid): Remove variable.
456 (get_thread_regcache): New function.
457 (get_current_regcache): New function.
458 (registers_changed): Implement by freeing current regcache.
459 (regcache_raw_read): Do not refer to current_regcache. Set
460 inferior_ptid to regcache->ptid while calling target routines.
461 (regcache_raw_write): Likewise.
462 (regcache_raw_supply): Do not refer to current_regcache.
463 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
464 (write_pc_pid): Likewise.
465 (build_regcache): Remove.
466 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
467 or deprecated_register_gdbarch_swap. Do not initialize
468 registers_ptid.
469 * regcache.h (get_current_regcache): Add prototype.
470 (get_thread_regcache): Likewise.
471 (current_regcache): Remove declaration.
472
473 * corelow.c (core_open): Replace current_regcache by
474 get_current_regcache ().
475 * frame.c (frame_pop): Likewise.
476 (put_frame_register): Likewise.
477 (get_current_frame, create_new_frame): Likewise.
478 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
479 * stack.c (return_command): Likewise.
480 * infcall.c (call_function_by_hand): Likewise.
481 * infrun.c (resume): Likewise.
482 (save_inferior_status, restore_inferior_status): Likewise.
483 * linux-fork.c (fork_load_infrun_state): Likewise.
484 (fork_save_infrun_state): Likewise.
485 * win32-nat.c (win32_resume): Likewise.
486 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
487 * monitor.c (monitor_wait): Likewise.
488 * remote.c (remote_wait): Likewise.
489 * remote-mips.c (mips_wait): Likewise.
490
491 * bsd-kvm.c (bsd_kvm_open): Likewise
492 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
493 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
494 * i386-linux-nat.c (i386_linux_resume): Likewise.
495 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
496 (ia64_linux_stopped_data_address): Likewise.
497
498 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
499 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
500 * mep-tdep.c (current_me_module, current_options): Likewise.
501 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
502
503 * linux-nat.c (linux_nat_do_thread_registers): Use thread
504 regcache instead of current_regcache. Call target_fetch_registers.
505 (linux_nat_corefile_thread_callback): Update call site.
506 (linux_nat_do_registers): Likewise.
507 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
508 of current_regcache.
509 (procfs_make_note_section): Likewise.
510 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
511 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
512 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
513 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
514
515 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
516
517 * regcache.c (read_register, read_register_pid): Remove.
518 (write_register, write_register_pid): Likewise.
519 * regcache.h (read_register, read_register_pid): Remove prototype.
520 (write_register, write_register_pid): Likewise.
521
522 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
523
524 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
525 (write_pc): Likewise. Remove default implementation, add predicate.
526 * gdbarch.c, gdbarch.h: Regenerate.
527 * regcache.c (read_pc_pid): Use current regcache instead of calling
528 read_register_pid.
529 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
530 case inline.
531 (generic_target_write_pc): Remove.
532 * inferior.h (generic_target_write_pc): Remove.
533 * frv-tdep.c (frv_gdbarch_init): Do not install it.
534 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
535 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
536 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
537 * sh-tdep.c (sh_gdbarch_init): Likewise.
538 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
539
540 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
541 argument. Use REGCACHE instead of calling read_register_pid.
542 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
543 * hppa-tdep.c (hppa_read_pc): Likewise.
544 * hppa-tdep.h (hppa_read_pc): Likewise.
545 * ia64-tdep.c (ia64_read_pc): Likewise.
546 * m32r-tdep.c (m32r_read_pc): Likewise.
547 * mep-tdep.c (mep_read_pc): Likewise.
548 * mn10300-tdep.c (mn10300_read_pc): Likewise.
549 * spu-tdep.c (spu_read_pc): Likewise.
550
551 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
552 argument. Use REGCACHE instead of calling write_register_pid.
553 * avr-tdep.c (avr_write_pc): Likewise.
554 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
555 * hppa-tdep.c (hppa_write_pc): Likewise.
556 * hppa-tdep.h (hppa_write_pc): Likewise.
557 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
558 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
559 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
560 * ia64-tdep.c (ia64_write_pc): Likewise.
561 * ia64-tdep.h (ia64_write_pc): Likewise.
562 * m32r-tdep.c (m32r_write_pc): Likewise.
563 * m88k-tdep.c (m88k_write_pc): Likewise.
564 * mep-tdep.c (mep_write_pc): Likewise.
565 * mips-tdep.c (mips_write_pc): Likewise.
566 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
567 * mn10300-tdep.c (mn10300_write_pc): Likewise.
568 * sparc-tdep.c (sparc_write_pc): Likewise.
569 * spu-tdep.c (spu_write_pc): Likewise.
570
571 * mips-tdep.c (read_signed_register): Remove.
572 (read_signed_register_pid): Likewise.
573 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
574 Use REGCACHE instead of calling read_signed_register_pid.
575
576 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
577
578 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
579 * gdbarch.c, gdbarch.h: Regenerate.
580 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
581 (push_dummy_code): Likewise. Pass it to callee.
582 (call_function_by_hand): Pass current regcache to push_dummy_code.
583
584 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
585 argument. Use it instead of current_regcache.
586
587 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
588 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
589
590 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
591
592 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
593 * gdbarch.c, gdbarch.h: Regenerate.
594 * infrun.c (handle_inferior_event): Pass current frame to
595 gdbarch_get_longjmp_target.
596
597 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
598 Read registers from FRAME instead of using read_register.
599 Use get_frame_arch instead of current_gdbarch.
600 * arm-tdep.c (arm_get_longjmp_target): Likewise.
601 * i386-tdep.c (i386_get_longjmp_target): Likewise.
602 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
603 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
604 (mips64_linux_get_longjmp_target): Likewise.
605 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
606
607 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
608
609 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
610 * gdbarch.c, gdbarch.h: Regenerate.
611 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
612 * arch-utils.h (generic_skip_trampoline_code): Likewise.
613 * infrun.c (handle_inferior_event): Pass current frame to
614 gdbarch_skip_trampoline_code and skip_language_trampoline.
615
616 * language.c (unk_lang_trampoline): Add FRAME argument.
617 (skip_language_trampoline): Add FRAME argument. Pass it to
618 skip_trampoline callback.
619 * language.h: Add forward declaration of struct frame_info.
620 (struct language_defn): Add FRAME argument to skip_trampoline.
621 (skip_language_trampoline): Add FRAME argument.
622 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
623 to skip_trampoline callback.
624 * cp-abi.h: Add forward declaration of struct frame_info.
625 (cplus_skip_trampoline): Add FRAME argument.
626 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
627 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
628 to gdbarch_skip_trampoline_code.
629 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
630 to gdbarch_skip_trampoline_code.
631
632 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
633 * symtab.h (find_solib_trampoline_target): Likewise.
634 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
635 find_solib_trampoline_target.
636
637 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
638 from FRAME instead of calling read_register.
639
640 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
641 argument. Read registers from FRAME instead of using read_register.
642 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
643 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
644
645 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
646 argument.
647
648 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
649
650 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
651 registers from FRAME instead of using read_signed_register.
652
653 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
654 argument.
655 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
656 instead of using read_register.
657 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
658 ppc64_standard_linkage_target.
659 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
660 Pass it to find_solib_trampoline_target. Read registers from FRAME
661 instead of using read_register.
662
663 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
664 argument.
665
666 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
667
668 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
669 FRAME argument.
670 * gdbarch.c, gdbarch.h: Regenerate.
671 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
672
673 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
674 registers from FRAME instead of using read_register.
675 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
676 to alpha_next_pc. Use get_frame_pc instead of read_pc.
677 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
678 argument by FRAME.
679
680 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
681 from FRAME instead of using read_register.
682 (thumb_get_next_pc): Likewise.
683 (arm_get_next_pc): Likewise.
684 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
685 to arm_get_next_pc. Use get_frame_pc instead of read_register.
686 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
687 argument by FRAME.
688
689 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
690 from FRAME instead of using read_register.
691 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
692 to find_step_target.
693
694 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
695 from FRAME instead of using read_register / read_signed_register.
696 (extended_mips16_next_pc): Likewise.
697 (mips16_next_pc): Likewise.
698 (mips_next_pc): Likewise.
699 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
700 to mips_next_pc. Use get_frame_pc instead of read_pc.
701 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
702 argument by FRAME.
703
704 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
705 of current frame. Read registers from FRAME.
706 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
707 branch_dest. Use get_frame_pc instead of read_pc.
708 (rs6000_software_single_step): Likewise.
709 (bl_to_blrl_insn_p): Do not call branch_dest.
710 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
711 argument by FRAME.
712
713 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
714 Read registers from FRAME instead of current regcache.
715 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
716 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
717 * sparc-tdep.c (sparc_address_from_register): Remove.
718 (sparc_analyze_control_transfer): Pass FRAME argument instead of
719 GDBARCH. Pass FRAME to step_trap callback.
720 (sparc_step_trap): Add FRAME argument.
721 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
722 to sparc_analyze_control_transfer. Read registers from FRAME instead
723 of calling sparc_address_from_register.
724 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
725 step_trap callback.
726 (sparc_address_from_register): Remove prototype.
727 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
728 (sparcnbsd_step_trap): Add FRAME argument.
729
730 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
731 by FRAME. Read registers from FRAME instead of REGCACHE.
732
733 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
734
735 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
736 instead of calling read_register.
737
738 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
739 calling write_register.
740
741 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
742 calling write_register.
743
744 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
745 instead of calling read_register.
746 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
747 instead of calling read_register and write_register.
748
749 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
750 instead of current_regcache.
751
752 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
753 of calling write_register.
754 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
755 parameter instead of current_regcache.
756
757 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
758 instead of calling read_register.
759 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
760 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
761 (mips_n32n64_push_dummy_call): Likewise.
762 (mips_o32_push_dummy_call): Likewise.
763 (mips_o64_push_dummy_call): Likewise.
764
765 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
766 parameter instead of current_regcache.
767
768 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
769 Use it instead of read_register and write_register.
770 (xtensa_register_read_masked): Likewise.
771 (xtensa_pseudo_register_read): Update call.
772 (xtensa_pseudo_register_write): Likewise.
773 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
774 instead of calling read_register.
775 (xtensa_push_dummy_call): Update comment.
776
777 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
778
779 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
780 by frame_unwind_register_signed calls.
781 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
782 frame allocations when called with NULL NEXT_FRAME parameter.
783 (read_next_frame_reg): Remove.
784
785 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
786 instead of reading the FPSCR register.
787 (sh_frame_cache): Pass unwound FPSCR register value to
788 sh_analyze_prologue.
789 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
790
791 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
792 instead of reading the CTBP register.
793 (v850_frame_cache): Pass unwound CTBP register value to
794 v850_analyze_prologue.
795
796 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
797
798 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
799 * sh-tdep.c (sh_show_regs): Likewise.
800 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
801 (sh_generic_show_regs): Add FRAME parameter. Use register
802 values from that frame instead of calling read_register.
803 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
804 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
805 sh_dsp_show_regs): Likewise.
806 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
807 sh64_show_regs): Likewise.
808
809 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
810
811 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
812 current regcache instead of calling read_register.
813
814 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
815
816 * mep-tdep.c (current_me_module): Read from current regcache
817 instead of calling read_register.
818 (current_options): Likewise.
819
820 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
821
822 * cris-tdep.c (cris_stopped_data_address): Read register values
823 from current frame instead of calling read_register.
824 * frv-tdep.c (frv_stopped_data_address): Likewise.
825
826 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
827
828 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
829 instead of write_register (PC_REGNUM, ...).
830
831 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
832
833 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
834 explaining why the PC adjustment code is necessary.
835
836 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
837
838 * m68k-tdep.h (enum m68k_flavour): New.
839 (struct gdbarch_tdep): New fields
840 float_return, flavour and fpregs_present.
841 * m68k-tdep.c (m68k_register_type): Use
842 fpregs_present and conditionalize floating
843 registers type on flavour.
844 (m68k_register_names): New.
845 (m68k_register_name): Use the above.
846 (m68k_convert_register_p): Consult fpregs_present.
847 (m68k_register_to_value, m68k_value_to_register):
848 Use register_type to obtain the type of floating
849 point registers.
850 (m68k_svr4_extract_return_value): Check tdep->float_return.
851 Use register_type to get the type of floating
852 point regiters.
853 (m68k_svr4_store_return_value): Likewise.
854 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
855 (m68k_analyze_register_saves): Likewise.
856 (m68k_gdbarch_init): Extract infromation
857 from XML description, if present. Guess coldfire by
858 looking at the file, if present. Conditionalize
859 setting of long double format. Set decr_pc_after_break
860 to 2 on coldfire and fido. Enable XML-driven
861 register description.
862 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
863 size of tdep->fpreg_type, as opposed to hardcoded value.
864 * Makefile.in (m68k-tdep.o): Update dependencies.
865
866 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
867
868 * NEWS: Mention "info spu" commands and qXfer:spu:read and
869 qXfer:spu:write remote packet types.
870
871 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
872
873 * xml-tdesc.c (tdesc_start_target): New.
874 (target_attributes): New.
875 (tdesc_elements): Use it.
876 * features/gdb-target.dtd: Add #FIXED version attribute for
877 <target>.
878
879 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
880
881 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
882
883 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
884
885 * fork-child.c (fork_inferior): Update comment.
886
887 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
888
889 * features/Makefile: Generate regformats for mips-linux and
890 mips64-linux.
891 * features/sort-regs.xsl: Correct typo.
892 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
893 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
894 files.
895
896 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
897
898 * config/mips/linux.mh (TDEP_XML): New.
899 * features/mips-linux.xml, features/mips64-linux.xml: New files.
900 * mips-linux-nat.c (mips_linux_register_addr): Handle
901 MIPS_RESTART_REGNUM.
902 (mips64_linux_register_addr): Likewise.
903 (super_xfer_partial, mips_linux_xfer_partial): New.
904 (_initialize_mips_linux_nat): Add them to the target_ops.
905 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
906 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
907 (mips_linux_o32_sigframe_init)
908 (mips_linux_n32n64_sigframe_init): Likewise.
909 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
910 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
911 "org.gnu.gdb.mips.linux" feature.
912 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
913 (mips_linux_restart_reg_p): New prototype.
914 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
915 initialization routine.
916 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
917
918 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
919
920 * Makefile.in (mips-tdep.o): Update.
921 * mips-tdep.c (struct register_alias, mips_o32_aliases)
922 (mips_n32_n64_aliases, mips_register_aliases): New.
923 (mips_register_name): Call tdesc_register_name.
924 (mips_tdesc_register_reggroup_p): New.
925 (mips_pseudo_register_type, value_of_mips_user_reg): New.
926 (mips_gdbarch_init): Add target-described register support.
927 Register aliases for register names.
928 * target-descriptions.c (tdesc_register_name): Make global.
929 (tdesc_register_in_reggroup_p): New function, broken out from
930 tdesc_register_reggroup_p.
931 (tdesc_register_reggroup_p): Use it.
932 * target-descriptions.h (tdesc_register_name)
933 (tdesc_register_in_reggroup_p): New prototypes.
934 * NEWS: Correct formatting. Mention MIPS register support.
935 * features/mips-cp0.xml, features/mips-fpu.xml,
936 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
937 features/mips64-cpu.xml: New files.
938
939 2007-06-13 Markus Deuling <deuling@de.ibm.com>
940
941 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
942 * valops.c (value_cast): Likewise.
943 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
944 * ui-out.c (ui_out_field_core_addr): Likewise.
945 * tracepoint.c (tracepoints_info): Likewise.
946 * symtab.c (print_msymbol_info): Likewise.
947 * solib-irix.c (irix_current_sos)
948 (irix_open_symbol_file_object): Likewise.
949 * remote.c (build_remote_gdbarch_data): Likewise.
950 * prologue-value.c (make_pv_area): Likewise.
951 * procfs.c (info_mappings_callback): Likewise.
952 * printcmd.c (print_scalar_formatted)
953 (deprecated_print_address_numeric): Likewise.
954 * memattr.c (mem_info_command): Likewise.
955 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
956 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
957 * exec.c (print_section_info): Likewise.
958 * dwarf2read.c (read_subrange_type): Likewise.
959 * dwarf2loc.c (find_location_expression): Likewise.
960 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
961 (signed_address_type, execute_stack_op): Likewise.
962 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
963 * gdbarch.c, gdbarch.h: Regenerate.
964
965 2007-06-13 Markus Deuling <deuling@de.ibm.com>
966
967 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
968 * arch-utils.c (show_architecture): Likewise.
969 * remote-mips.c (mips_open): Likewise
970 * nto-tdep.c (nto_find_and_open_solib)
971 (nto_init_solib_absolute_prefix): Likewise.
972 * nto-procfs (procfs_open): Likewise.
973 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
974 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
975 * gdbarch.c, gdbarch.h: Regenerate.
976
977 2007-06-13 Markus Deuling <deuling@de.ibm.com>
978
979 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
980 * gdbtypes.c (build_flt): Likewise.
981 * gdbarch.c, gdbarch.h: Regenerate.
982
983 2007-06-13 Markus Deuling <deuling@de.ibm.com>
984
985 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
986 gdbarch_breakpoint_from_pc.
987 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
988 * remote.c (remote_insert_breakpoint)
989 (remote_insert_hw_breakpoint): Likewise.
990 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
991 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
992 * breakpoint.h (bp_target_info): Likewise (comment).
993 * breakpoint.c (read_memory_nobpt): Likewise.
994 * mem-break.c (default_memory_insert_breakpoint): Likewise.
995 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
996 * gdbarch.c, gdbarch.h: Regenerate.
997
998 2007-06-13 Markus Deuling <deuling@de.ibm.com>
999
1000 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
1001 * solib-svr4.c (svr4_truncate_ptr): Likewise.
1002 * solib-pa64.c (read_dynamic_info): Likewise.
1003 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
1004 * solib.c (info_sharedlibrary_command): Likewise.
1005 * s390-nat.c (SUBOFF): Likewise.
1006 * p-valprint.c (pascal_val_print): Likewise.
1007 * procfs.c (info_proc_mappings): Likewise.
1008 * printcmd.c (decode_format): Likewise.
1009 * nto-tdep.c (nto_truncate_ptr): Likewise.
1010 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
1011 (mips64_linux_get_longjmp_target): Likewise.
1012 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1013 * jv-valprint.c (java_value_print): Likewise.
1014 * jv-lang.c (get_java_object_header_size): Likewise.
1015 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
1016 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
1017 (hppa_hpux_unwind_adjust_stub): Likewise.
1018 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1019 * gdbtypes.c (make_pointer_type, make_reference_type)
1020 (smash_to_memberptr_type): Likewise.
1021 * gdbarch.c, gdbarch.h: Regenerate.
1022
1023 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1024
1025 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
1026 (print_gp_register_row): Stop before printing a register bigger
1027 than the ABI register size.
1028 (mips_print_registers_info): Update call to mips_print_register.
1029
1030 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1031
1032 * expression.h (enum exp_opcode): Document a register name for
1033 OP_REGISTER.
1034 * parse.c (write_dollar_variable): Write the register name for
1035 OP_REGISTER.
1036 (operator_length_standard): Expect the register name following
1037 OP_REGISTER.
1038 * ada-lang.c (resolve_subexp): Likewise.
1039 * ax-gdb.c (gen_expr): Likewise.
1040 * eval.c (evaluate_subexp_standard): Likewise.
1041 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1042 Likewise.
1043 * tracepoint.c (encode_actions): Likewise.
1044
1045 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1046
1047 * utils.c (set_screen_size): Use INT_MAX for default columns.
1048
1049 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
1050
1051 * remote.c (remote_protocol_features): Add qXfer:spu:read and
1052 qXfer:spu:write packet types.
1053
1054 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1055
1056 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
1057 * gdbarch.c, gdbarch.h: Regenerate.
1058
1059 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1060
1061 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
1062 gdbarch_stab_reg_to_regnum.
1063 * stabsread.c (define_symbol): Likewise.
1064 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
1065 gdbarch_ecoff_reg_to_regnum.
1066 * mdebugread.c (parse_symbol): Likewise.
1067 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
1068 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
1069 gdbarch_dwarf_reg_to_regnum.
1070 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
1071 * coffread.c (process_coff_symbol): Likewise.
1072 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
1073 gdbarch_dwarf2_reg_to_regnum.
1074 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
1075 (locexpr_describe_location): Likewise.
1076 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
1077 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
1078 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
1079 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
1080 * gdbarch.c, gdbarch.h: Regenerate.
1081
1082 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1083
1084 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
1085 gdbarch_smash_text_address.
1086 * somread.c (som_symtab_read): Likewise.
1087 * elfread.c (record_minimal_symbol): Likewise.
1088 * dbxread.c (process_one_symbol): Likewise.
1089 * coffread.c (coff_symtab_read): Likewise.
1090 * gdbarch.c, gdbarch.h: Regenerate.
1091
1092 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1093
1094 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
1095 * findvar.c (value_from_register): Likewise.
1096 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
1097 * valops.c (value_assign): Likewise.
1098 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
1099 gdbarch_convert_register_p.
1100 * findvar.c (value_from_register): Likewise.
1101 * valops.c (value_assign): Likewise.
1102 * gdbarch.c, gdbarch.h: Regenerate.
1103
1104 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1105
1106 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
1107 gdbarch_register_sim_regno.
1108 * sim-regno.h (sim_regno): Likewise (comment).
1109 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1110 * gdbarch.c, gdbarch.h: Regenerate.
1111
1112 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1113
1114 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
1115 gdbarch_virtual_frame_pointer.
1116 * tracepoint.c (encode_actions): Likewise.
1117 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
1118 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
1119 * gdbarch.c, gdbarch.h: Regenerate.
1120
1121 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1122
1123 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
1124 * p-lang.c (pascal_create_fundamental_type): Likewise.
1125 * objc-lang.c (objc_create_fundamental_type): Likewise.
1126 * mdebugread.c (_initialize_mdebugread): Likewise.
1127 * m2-lang.c (m2_create_fundamental_type)
1128 (_initialize_m2_language): Likewise.
1129 * gdbtypes.c (build_gdbtypes): Likewise.
1130 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1131 * doublest.c (floatformat_from_length): Likewise.
1132 * c-lang.c (c_create_fundamental_type): Likewise.
1133 * ada-lang.c (ada_create_fundamental_type)
1134 (ada_language_arch_info): Likewise.
1135 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
1136 * value.c (unpack_double): Likewise (comment).
1137 * gdbtypes.c (build_gdbtypes): Likewise.
1138 * doublest.c (floatformat_from_length): Likewise.
1139 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
1140 * valarith.c (value_binop): Likewise.
1141 * p-lang.c (pascal_create_fundamental_type): Likewise.
1142 * objc-lang.c (objc_create_fundamental_type): Likewise.
1143 * mdebugread.c (_initialize_mdebugread): Likewise.
1144 * m2-lang.c (m2_create_fundamental_type): Likewise.
1145 * gdbtypes.c (build_gdbtypes): Likewise.
1146 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1147 * doublest.c (floatformat_from_length): Likewise.
1148 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
1149 * c-lang.c (c_create_fundamental_type): Likewise.
1150 * ada-lex.l (processReal): Likewise.
1151 * ada-lang.c (ada_create_fundamental_type)
1152 (ada_language_arch_info): Likewise.
1153 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
1154 * value.c (unpack_double): Likewise (comment).
1155 * gdbtypes.c (build_gdbtypes): Likewise.
1156 * doublest.c (floatformat_from_length): Likewise.
1157 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
1158 gdbarch_long_double_bit.
1159 * p-lang.c (pascal_create_fundamental_type): Likewise.
1160 * objc-lang.c (objc_create_fundamental_type): Likewise.
1161 * m2-lang.c (m2_create_fundamental_type): Likewise.
1162 * gdbtypes.c (build_gdbtypes): Likewise.
1163 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1164 * doublest.c (floatformat_from_length): Likewise.
1165 * c-lang.c (c_create_fundamental_type): Likewise.
1166 * ada-lex.l (processReal): Likewise.
1167 * ada-lang.c (ada_create_fundamental_type)
1168 (ada_language_arch_info): Likewise.
1169 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
1170 gdbarch_long_double_format.
1171 * gdbtypes.c (build_gdbtypes): Likewise.
1172 * doublest.c (floatformat_from_length): Likewise.
1173 * gdbarch.c, gdbarch.h: Regenerate.
1174
1175 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1176
1177 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
1178 * ada-lang.c (ada_create_fundamental_type)
1179 (ada_language_arch_info): Likewise.
1180 * c-lang.c (c_create_fundamental_type): Likewise.
1181 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1182 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
1183 * m2-lang.c (m2_create_fundamental_type): Likewise.
1184 * objc-lang.c (objc_create_fundamental_type): Likewise.
1185 * p-lang.c (pascal_create_fundamental_type): Likewise.
1186 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
1187 * c-exp.y (parse_number): Likewise.
1188 * objc-exp.y (parse_number): Likewise.
1189 * ada-lex.l (processInt): Likewise.
1190 * f-exp.y (parse_number): Likewise.
1191 * p-exp.y (parse_number): Likewise.
1192 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
1193 (gdbtypes_post_init, build_gdbtypes): Likewise.
1194 * p-lang.c (pascal_create_fundamental_type): Likewise.
1195 * parse.c (build_parse): Likewise.
1196 * xcoffread.c (_initialize_xcoffread): Likewise.
1197 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
1198 (read_range_type): Likewise.
1199 * objc-lang.c (objc_create_fundamental_type): Likewise.
1200 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
1201 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
1202 (m2_create_fundamental_type): Likewise.
1203 * c-lang.c (c_create_fundamental_type): Likewise.
1204 * coffread.c (coff_read_enum_type): Likewise.
1205 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
1206 * dwarf2read.c (new_symbol): Likewise.
1207 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
1208 * c-exp.y (parse_number): Likewise.
1209 * objc-exp.y (parse_number): Likewise.
1210 * ada-lex.l (processInt): Likewise.
1211 * f-exp.y (parse_number): Likewise.
1212 * p-exp.y (parse_number): Likewise.
1213 * valarith.c (value_binop): Likewise.
1214 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
1215 * ada-lang.c (ada_create_fundamental_type)
1216 (ada_language_arch_info): Likewise.
1217 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
1218 * symfile.c (TARGET_LONG_BYTES): Likewise.
1219 * p-lang.c (pascal_create_fundamental_type): Likewise.
1220 * objc-lang.c (objc_create_fundamental_type): Likewise.
1221 * m2-lang.c (m2_create_fundamental_type): Likewise.
1222 * f-lang.c (f_create_fundamental_type): Likewise.
1223 * c-lang.c (c_create_fundamental_type): Likewise.
1224 * coffread.c (decode_base_type): Likewise.
1225 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
1226 * c-exp.y (parse_number): Likewise.
1227 * objc-exp.y (parse_number): Likewise.
1228 * p-exp.y (parse_number): Likewise.
1229 * ada-lang.c (ada_create_fundamental_type)
1230 (ada_language_arch_info): Likewise.
1231 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
1232 * stabsread.c (read_range_type): Likewise.
1233 * p-lang.c (pascal_create_fundamental_type): Likewise.
1234 * objc-lang.c (objc_create_fundamental_type): Likewise.
1235 * m2-lang.c (m2_create_fundamental_type): Likewise.
1236 * f-lang.c (f_create_fundamental_type): Likewise.
1237 * c-lang.c (c_create_fundamental_type): Likewise.
1238 * gdbarch.c, gdbarch.h: Regenerate.
1239
1240 2007-06-12 Andreas Schwab <schwab@suse.de>
1241
1242 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
1243 (struct frame_unwind): Add dealloc_cache.
1244 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
1245
1246 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
1247 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
1248 (libunwind_frame_unwind): Set dealloc_cache.
1249 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
1250
1251 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
1252 Markus Deuling <deuling@de.ibm.com>
1253
1254 * remote.c (remote_write_qxfer): New function.
1255 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
1256 (remote_read_qxfer): Do not cache empty objects.
1257 (_initialize_remote): Add PACKET_qXfer_spu_read and
1258 PACKET_qXfer_spu_write.
1259
1260 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
1261
1262 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
1263 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
1264
1265 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
1266 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
1267 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
1268 * spu-tdep.c (infospucmdlist): New variable.
1269 (spu_register_name): Handle additional pseudo registers.
1270 (spu_register_type): Likewise.
1271 (spu_pseudo_register_read): Likewise.
1272 (spu_pseudo_register_write): Likewise.
1273 (spu_pseudo_register_read_spu): New function.
1274 (spu_pseudo_register_write_spu): Likewise.
1275 (info_spu_event_command): New function.
1276 (info_spu_signal_command): Likewise.
1277 (info_spu_mailbox_list): Likewise.
1278 (info_spu_mailbox_command): Likewise.
1279 (spu_mfc_get_bitfield): Likewise.
1280 (info_spu_dma_cmdlist): Likewise.
1281 (info_spu_dma_command): Likewise.
1282 (info_spu_proxydma_command): Likewise.
1283 (info_spu_command): Likewise.
1284 (_initialize_spu_tdep): Install "info spu" commands.
1285
1286 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
1287
1288 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
1289 accessing non-seekable spufs files.
1290
1291 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1292
1293 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
1294 gdbarch_skip_trampoline_code.
1295 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
1296 * objc-lang.c (objc_skip_trampoline)
1297 (objc_submethod_helper_data): Likewise.
1298 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
1299 * infrun.c (handle_inferior_event): Likewise.
1300 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
1301 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
1302 gdbarch_in_solib_return_trampoline.
1303 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
1304 * infrun.c (handle_inferior_event): Likewise.
1305 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
1306 * gdbarch.c, gdbarch.h: Regenerate.
1307
1308 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1309
1310 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
1311 * symtab.c (find_function_start_sal, in_prologue): Likewise.
1312 * linespec.c (minsym_found): Likewise.
1313 * infrun.c (step_into_function): Likewise.
1314 * gdbarch.c, gdbarch.h: Regenerate.
1315
1316 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1317
1318 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
1319 * valops.c (value_allocate_space_in_inferior): Likewise.
1320 * gdbarch.c, gdbarch.h: Regenerate.
1321
1322 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1323
1324 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
1325 gdbarch_memory_insert_breakpoint.
1326 * mem-break.c (memory_insert_breakpoint): Likewise.
1327 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
1328 gdbarch_memory_remove_breakpoint.
1329 * mem-break.c (memory_remove_breakpoint): Likewise.
1330 * gdbarch.c, gdbarch.h: Regenerate.
1331
1332 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1333
1334 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
1335 gdbarch_fetch_tls_load_module_address.
1336 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
1337 gdbarch_fetch_tls_load_module_address_p.
1338 * gdbarch.c, gdbarch.h: Regenerate.
1339
1340 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1341
1342 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
1343 gdbarch_decr_pc_after_break.
1344 * tracepoint.c (trace_dump_command): Likewise.
1345 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
1346 * linux-thread-db.c (check_event): Likewise.
1347 * linux-nat.c (cancel_breakpoints_callback): Likewise.
1348 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
1349 * frame.h: Likewise (comment).
1350 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
1351 * aix-thread.c (aix_thread_wait): Likewise.
1352 * gdbarch.c, gdbarch.h: Regenerate.
1353
1354 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1355
1356 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
1357 gdbarch_address_class_type_flags.
1358 * dwarf2read.c (read_tag_pointer_type): Likewise.
1359 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
1360 gdbarch_address_class_type_flags_p.
1361 * dwarf2read.c (read_tag_pointer_type): Likewise.
1362 * gdbarch.c, gdbarch.h: Regenerate.
1363
1364 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1365
1366 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
1367 * value.c (value_as_address): Likewise (comment).
1368 * remote-mips.c (common_breakpoint): Likewise.
1369 * regcache.c (read_pc_pid): Likewise.
1370 * printcmd.c (do_one_display): Likewise.
1371 * monitor.c (monitor_write_memory, monitor_read_memory)
1372 (monitor_insert_breakpoint): Likewise.
1373 * mips-tdep.c (heuristic_proc_start): Likewise.
1374 * infrun.c (insert_step_resume_breakpoint_at_frame)
1375 (insert_step_resume_breakpoint_at_caller): Likewise.
1376 * buildsym.c (record_line): Likewise.
1377 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
1378 (arm_get_next_pc): Likewise.
1379 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1380 (store_regs): Likewise.
1381 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1382 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
1383 * gdbarch.c, gdbarch.h: Regenerate.
1384
1385 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1386
1387 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
1388 * tracepoint.c (scope_info): Likewise.
1389 * target.c (debug_print_register): Likewise.
1390 * stack.c (frame_info): Likewise.
1391 * sh-tdep.c (sh_register_reggroup_p): Likewise.
1392 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
1393 (sh64_media_print_registers_info)
1394 (sh64_compact_print_registers_info): Likewise.
1395 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
1396 * remote-sim.c (gdbsim_fetch_register): Likewise.
1397 * remote.c (packet_reg): Likewise (comment).
1398 * reggroups.c (default_register_reggroup_p): Likewise.
1399 * regcache.c (regcache_dump): Likewise.
1400 * printcmd.c (address_info): Likewise.
1401 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
1402 * mt-dep.c (mt_registers_info): Likewise.
1403 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
1404 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
1405 (mips_read_fp_register_double, mips_print_fp_register)
1406 (mips_print_register, print_gp_register_row, mips_print_registers_info)
1407 (mips_register_sim_regno): Likewise.
1408 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
1409 * inf-ptrace.c (inf_ptrace_fetch_register)
1410 (inf_ptrace_store_register): Likewise.
1411 * infcmd.c (default_print_registers_info): Likewise.
1412 * ia64-linux-nat.c (ia64_linux_fetch_register)
1413 (ia64_linux_store_register): Likewise.
1414 * i386-linux-nat.c (fetch_register, store_register): Likewise.
1415 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
1416 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
1417 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
1418 (hppa_hpux_store_register): Likewise.
1419 * findvar.c (locate_var_value): Likewise.
1420 * dwarf2loc.c (locexpr_describe_location): Likewise.
1421 * dwarf2-frame.c (execute_cfa_program): Likewise.
1422 * arm-tdep.c (arm_push_dummy_call): Likewise.
1423 * arch-utils.c (legacy_register_sim_regno): Likewise.
1424 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
1425 * alpha-nat.c (fetch_osf_core_registers): Likewise.
1426 * mi/mi-main.c (mi_cmd_data_list_register_names)
1427 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
1428 (mi_cmd_data_write_register_values): Likewise.
1429 * gdbarch.c, gdbarch.h: Regenerate.
1430
1431 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
1432
1433 * target-memory.c (blocks_to_erase): Correct off-by-one error.
1434
1435 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
1436
1437 * remote.c (process_g_packet): Don't check size.
1438 * gdbarch.sh: Remove register_bytes_ok.
1439 * gdbarch.c: Regenerated.
1440 * gdbarch.h: Regenerated.
1441 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
1442 (m68k_register_bytes_ok): Remove.
1443 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
1444
1445 2007-06-06 Andreas Schwab <schwab@suse.de>
1446
1447 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
1448 (destroy_addr_space_name): Define.
1449 (libunwind_load): Get address of destroy_addr_space function.
1450 (libunwind_frame_cache): Destroy unw_addr_space_t object before
1451 returning unsuccessfully.
1452 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
1453 returning.
1454 (libunwind_sigtramp_frame_sniffer): Likewise.
1455 (libunwind_get_reg_special): Likewise.
1456
1457 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1458
1459 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
1460 gdbarch_fetch_pointer_argument.
1461 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
1462 * gdbarch.c, gdbarch.h: Regenerate.
1463
1464 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1465
1466 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
1467 gdbarch_have_nonsteppable_watchpoint.
1468 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
1469 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
1470 gdbarch_cannot_step_breakpoint.
1471 * infrun.c (resume): Likewise.
1472 * gdbarch.c, gdbarch.h: Regenerate.
1473
1474 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1475
1476 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
1477 * stack.c (print_frame_args): Likewise.
1478 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
1479 * stack.c (print_args_stub, frame_info): Likewise.
1480 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
1481 * stack.c (print_args_stub, frame_info): Likewise.
1482 * gdbarch.c, gdbarch.h: Regenerate.
1483
1484 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1485
1486 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
1487 gdbarch_coff_make_msymbol_special.
1488 * coffread.c (coff_symtab_read): Likewise.
1489 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
1490 gdbarch_elf_make_msymbol_special.
1491 * elfread.c (elf_symtab_read): Likewise.
1492 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
1493 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
1494 * gdbarch.c, gdbarch.h: Regenerate.
1495
1496 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1497
1498 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
1499 gdbarch_frame_red_zone_size.
1500 * gdbarch.c, gdbarch.h: Regenerate.
1501
1502 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1503
1504 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
1505 * infcall.c (call_function_by_hand): Likewise.
1506 * gcore.c (derive_stack_segment): Likewise.
1507 * frame.c (frame_id_inner): Likewise.
1508 * arch-utils.c (core_addr_lessthan): Likewise (comment).
1509 * ada-lang.c (ensure_lval): Likewise.
1510 * gdbarch.c, gdbarch.h: Regenerate.
1511
1512 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1513
1514 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
1515 gdbarch_address_to_pointer.
1516 * findvar.c (store_typed_address): Likewise.
1517 * gdbtypes.c (make_pointer_type): Likewise (comment).
1518 * procfs.c (procfs_address_to_host_pointer): Likewise.
1519 * std-regs.c (value_of_builtin_frame_reg): Likewise.
1520 (value_of_builtin_frame_fp_reg): Likewise.
1521 (value_of_builtin_frame_pc_reg): Likewise.
1522 * utils.c (paddress): Likewise (comment).
1523 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
1524 gdbarch_pointer_to_address.
1525 * findvar.c (extract_typed_address): Likewise.
1526 * gdbtypes.c (make_pointer_type): Likewise (comment).
1527 * valops.c (value_cast): Likewise (comment).
1528 * gdbarch.c, gdbarch.h: Regenerate.
1529
1530 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1531
1532 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
1533 * infrun.c (handle_inferior_event): Likewise.
1534 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
1535 gdbarch_get_longjmp_target_p.
1536 * breakpoint.c (breakpoint_re_set): Likewise.
1537 * infrun.c (handle_inferior_event): Likewise.
1538 * gdbarch.c, gdbarch.h: Regenerate.
1539
1540 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1541
1542 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
1543 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
1544 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
1545 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
1546 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
1547 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
1548 find_stub_with_shl_get, cover_find_stub_with_shl_get,
1549 initialize_hp_cxx_exception_support, child_enable_exception_callback,
1550 current_ex_event, child_get_current_exception_event): Remove.
1551 (hppa_hpux_inferior_created): Remove.
1552 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
1553
1554 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
1555 (deprecated_exception_support_initialized): Remove.
1556 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
1557 (deprecated_exception_support_initialized): Remove.
1558 (breakpoint_init_inferior): Remove handling of non-zero
1559 deprecated_exception_catchpoints_are_fragile.
1560
1561 * symtab.h (deprecated_hp_som_som_object_present): Remove.
1562 * symtab.c (deprecated_hp_som_som_object_present): Remove.
1563 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
1564 deprecated_hp_som_som_object_present.
1565 * eval.c (evaluate_subexp_standard): Likewise.
1566 * valops.c (value_cast): Likewise.
1567
1568 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
1569 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
1570 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
1571
1572 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1573
1574 * objfiles.h (ImportEntry, ExportEntry): Remove types.
1575 (struct objfile): Remove import_list, import_list_size,
1576 export_list, export_list_size members.
1577 (is_in_import_list): Remove prototype.
1578 * objfiles.c (is_in_import_list): Remove.
1579 * somread.c (init_import_symbols, init_export_symbols): Remove.
1580 (som_symfile_read): Do not call init_import_symbols. Do not
1581 set objfile->export_list and objfile->export_list_size.
1582
1583 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
1584
1585 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
1586 Use the original objfile if necessary.
1587
1588 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
1589
1590 * defs.h (ldirname): New prototype.
1591 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
1592 missing.
1593 * utils.c (ldirname): New function.
1594 * xml-tdesc.c (file_read_description_xml): Use ldirname.
1595
1596 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1597
1598 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
1599
1600 2007-06-01 Joel Brobecker <brobecker@adacore.com>
1601
1602 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
1603
1604 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1605
1606 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
1607
1608 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1609
1610 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
1611 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
1612 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
1613 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
1614 (ppc_linux_in_sigtramp, insn_is_sigreturn,
1615 ppc_linux_at_sigtramp_return_path): Remove.
1616
1617 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1618
1619 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
1620 (xtensa_register_write_masked, xtensa_register_read_masked)
1621 (xtensa_extract_return_value, xtensa_store_return_value
1622 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
1623 TARGET_BYTE_ORDER by gdbarch_byte_order.
1624 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
1625 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
1626 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
1627 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
1628 (sh64_push_dummy_call, sh64_extract_return_value)
1629 (sh64_store_return_value, sh64_register_convert_to_virtual)
1630 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
1631 (sh64_pseudo_register_write, sh64_do_fp_register)
1632 (sh64_frame_prev_register): Likewise.
1633 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
1634 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
1635 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
1636 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
1637 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
1638 * ppc-linux-nat.c (store_register): Likewise.
1639 * nto-tdep.c (nto_find_and_open_solib)
1640 (nto_init_solib_absolute_prefix): Likewise.
1641 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
1642 (mips_convert_register_p, mips_eabi_push_dummy_call)
1643 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
1644 (mips_o32_push_dummy_call, mips_o32_return_value)
1645 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
1646 (mips_read_fp_register_single, mips_read_fp_register_double)
1647 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
1648 (mips_breakpoint_from_pc): Likewise.
1649 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
1650 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
1651 (mips_linux_o32_sigframe_init): Likewise.
1652 * m32r-tdep.c (m32r_memory_insert_breakpoint)
1653 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
1654 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
1655 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
1656 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1657 * coffread.c (process_coff_symbol): Likewise.
1658 * arm-tdep.c (convert_from_extended, convert_to_extended)
1659 (gdb_print_insn_arm): Likewise.
1660
1661 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1662
1663 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
1664 * i386-tdep.c (i386_dbx_reg_to_regnum)
1665 (i386_svr4_reg_to_regnum): Likewise.
1666 * inf-ptrace.c (inf_ptrace_fetch_registers)
1667 (inf_ptrace_store_registers): Likewise.
1668 * corelow.c (get_core_registers): Likewise.
1669 * i386-linux-nat.c (supply_gregset, fill_gregset)
1670 (i386_linux_fetch_inferior_registers)
1671 (i386_linux_store_inferior_registers): Likewise.
1672 * remote.c (init_remote_state,packet_reg_from_regnum)
1673 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
1674 (remote_prepare_to_store,store_registers_using_G)
1675 (remote_store_registers,remote_arch_state): Likewise.
1676 * tracepoint.c (encode_actions): Likewise.
1677 * mi/mi-main.c (mi_cmd_data_list_register_names)
1678 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
1679 (mi_cmd_data_write_register_values): Likewise.
1680 * tui/tui-regs.c (tui_show_register_group)
1681 (tui_show_register_group): Likewise.
1682 * xtensa-tdep.h (FP_ALIAS): Likewise.
1683 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
1684 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
1685 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
1686 * win32-nat.c (do_win32_fetch_inferior_registers)
1687 (do_win32_store_inferior_registers,fetch_elf_core_registers
1688 * user-regs.h: Likewise (comment).
1689 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
1690 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1691 * target-descriptions.h: Likewise (comment).
1692 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
1693 * target.c (debug_print_register): Likewise.
1694 * stack.c (frame_info): Likewise.
1695 * stabsread.c (define_symbol): Likewise.
1696 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
1697 (sh64_media_print_registers_info)
1698 (sh64_compact_print_registers_info): Likewise.
1699 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1700 * rs6000-nat.c (fetch_register,store_register): Likewise.
1701 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
1702 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
1703 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
1704 * remote-m32r-sdi.c (m32r_fetch_registers)
1705 (m32r_store_registers): Likewise.
1706 * reggroups.c (default_register_reggroup_p): Likewise.
1707 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
1708 (regcache_restore,regcache_dump): Likewise.
1709 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
1710 * mips-tdep.c (mips_xfer_register,mips_register_name)
1711 (mips_register_reggroup_p,mips_pseudo_register_read)
1712 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
1713 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
1714 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
1715 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
1716 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
1717 (print_gp_register_row,mips_print_registers_info)
1718 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1719 (mips_register_sim_regno): Likewise.
1720 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1721 (mips_linux_n32n64_sigframe_init): Likewise.
1722 * mips-linux-nat.c (mips_linux_register_addr)
1723 (mips64_linux_register_addr): Likewise.
1724 * findvar.c (value_of_register): Likewise.
1725 * infcmd.c (default_print_registers_info,registers_info)
1726 (print_vector_info,print_float_info): Likewise.
1727 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
1728 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1729 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
1730 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
1731 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1732 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
1733 (ia64_cannot_store_register,ia64_linux_fetch_registers)
1734 (ia64_linux_store_registers): Likewise.
1735 * hpux-thread.c (hpux_thread_fetch_registers)
1736 (hpux_thread_store_registers): Likewise.
1737 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
1738 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
1739 (h8300_register_type): Likewise.
1740 * dwarf2-frame.c (dwarf2_frame_cache)
1741 (dwarf2_frame_state_alloc_regs): Likewise.
1742 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
1743 (cris_cannot_store_register,crisv32_cannot_fetch_register)
1744 (crisv32_cannot_store_register,cris_register_name): Likewise.
1745 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1746 * arch-utils.c (legacy_register_sim_regno)
1747 (legacy_virtual_frame_pointer): Likewise.
1748 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
1749 * arm-tdep.h: Likewise (comment).
1750 * frv-tdep.c (frv_register_sim_regno): Likewise.
1751 * m68klinux-nat.c (old_fetch_inferior_registers)
1752 (old_store_inferior_registers): Likewise.
1753 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1754 * irix5-nat.c (fetch_core_registers): Likewise.
1755 * hppa-tdep.c (hppa_frame_cache): Likewise.
1756 * hppa-linux-nat.c (hppa_linux_register_addr)
1757 (hppa_linux_fetch_inferior_registers)
1758 (hppa_linux_store_inferior_registers): Likewise.
1759 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
1760 (hppa_hpux_store_inferior_registers): Likewise.
1761 * amd64-nat.c (amd64_native_gregset_reg_offset)
1762 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
1763 * dbug-rom.c (dbug_regname): Likewise.
1764 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
1765 (HARD_PAGE_REGNUM (comment)): Likewise.
1766 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
1767 * i386-tdep.c (i386_dbx_reg_to_regnum)
1768 (i386_svr4_reg_to_regnum): Likewise.
1769 * mi/mi-main.c (mi_cmd_data_list_register_names)
1770 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
1771 (mi_cmd_data_write_register_values): Likewise.
1772 * gdbarch.c, gdbarch.h: Regenerate.
1773 * tui/tui-regs.c (tui_show_register_group): Likewise.
1774 * xtensa-tdep.h (FP_ALIAS): Likewise.
1775 * user-regs.h: Likewise (comment).
1776 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
1777 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1778 * target-descriptions.h: Likewise (comment).
1779 * target.c (debug_print_register): Likewise.
1780 * stack.c (frame_info): Likewise.
1781 * stabsread.c (define_symbol): Likewise.
1782 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
1783 (sh64_compact_print_registers_info): Likewise.
1784 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1785 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
1786 (regcache_restore,regcache_dump): Likewise.
1787 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
1788 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1789 (mips_stab_reg_to_regnum): Likewise.
1790 * findvar.c (value_of_register): Likewise.
1791 * infcmd.c (default_print_registers_info,registers_info)
1792 (print_vector_info,print_float_info): Likewise.
1793 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
1794 * h8300-tdep.c (h8300_register_type): Likewise.
1795 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1796 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
1797 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
1798 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
1799 * parse.c: Remove comment.
1800 * gdbarch.c, gdbarch.h: Regenerate
1801
1802 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1803
1804 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
1805 gdbarch_cannot_fetch_register.
1806 * alpha-nat.c (fetch_osf_core_registers): Likewise.
1807 * hppa-linux-nat.c (fetch_register): Likewise.
1808 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1809 * m68klinux-nat.c (fetch_register): Likewise.
1810 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
1811 Likewise.
1812 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
1813 gdbarch_cannot_store_register.
1814 * hppa-linux-nat.c (store_register): Likewise.
1815 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
1816 * regcache.c (regcache_raw_write): Likewise.
1817 * m68klinux-nat.c (store_register): Likewise.
1818 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
1819 * gdbarch.c, gdbarch.h: Regenerate.
1820
1821 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1822
1823 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
1824 * gdbarch.c, gdbarch.h: Regenerate.
1825
1826 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1827
1828 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
1829 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
1830 * gdbarch.c, gdbarch.h: Regenerate.
1831
1832 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1833
1834 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
1835 * ax-gdb.c (gen_bitfield_ref): Likewise.
1836 * mi/mi-main.c (get_register): Likewise.
1837 * findvar.c (default_value_from_register, extract_signed_integer)
1838 (extract_unsigned_integer, extract_long_unsigned_integer)
1839 (store_signed_integer, store_unsigned_integer): Likewise.
1840 * regcache.c (regcache_dump): Likewise.
1841 * value.c (lookup_internalvar, value_of_internalvar)
1842 (set_internalvar): Likewise.
1843 * defs.h: Likewise.
1844 * valprint.c (print_binary_chars, print_octal_chars)
1845 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
1846 * infcmd.c (default_print_registers_info): Likewise.
1847 * arch-utils.c (selected_byte_order, show_endian): Likewise.
1848 * stabsread.c (define_symbol): Likewise.
1849 * doublest.c (floatformat_from_length, floatformat_from_type)
1850 (extract_typed_floating, store_typed_floating): Likewise.
1851 * gdbarch.c, gdbarch.h: Regenerate.
1852
1853 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1854
1855 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
1856 gdbarch_call_dummy_location.
1857 * infcall.c (call_function_by_hand): Likewise.
1858 * inferior.h: Change comment.
1859 * arch-utils.c: Change comment.
1860 * gdbarch.c, gdbarch.h: Regenerate.
1861
1862 2007-05-28 Joel Brobecker <brobecker@adacore.com>
1863
1864 * solib-aix5.c: Delete.
1865 * Makefile.in (solib-aix5.o): Delete rule.
1866
1867 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
1868
1869 * breakpoint.h (enum bpstat_what_main_action): Remove
1870 BPSTAT_WHAT_THROUGH_SIGTRAMP.
1871 * infrun.c (process_event_stop_test): Do not check for it.
1872
1873 2007-05-22 Chris Dearman <chris@mips.com>
1874 Maciej W. Rozycki <macro@mips.com>
1875
1876 * ser-unix.c (show_serial_hwflow): New function.
1877 (hardwire_raw): Add hardware flow control support.
1878 (_initialize_ser_hardwire): Add "set/show remoteflow".
1879 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
1880 * NEWS: Document the new command.
1881
1882 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
1883
1884 * config/i386/tm-linux.h (sys_quotactl): Do not define.
1885 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
1886 define for i[[3456]]86-*-linux* native configurations.
1887 * config.in, configure: Regenerate.
1888
1889 2007-05-19 Joel Brobecker <brobecker@adacore.com>
1890
1891 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
1892 a core file. Add comment in the function description.
1893
1894 2007-05-18 Caroline Tice <ctice@apple.com>
1895
1896 * c-valprint.c (c_value_print): If the initialized field of the
1897 value struct is 0, print out "[uninitialized]" before the value.
1898 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
1899 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
1900 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
1901 ctx->initialized appropriately. Verify no location op follows
1902 DW_OP_GNU_uninit.
1903 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
1904 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
1905 set_value_initialized.
1906 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
1907 (decode_locdesc): Add case for DW_OP_GNU_uninit.
1908 * value.c (struct value): New field, initialized.
1909 (allocate_value): Initialize new field.
1910 (set_value_initialized): New function.
1911 (value_initialized): New function.
1912 * value.h (value_initialized): New extern declaration.
1913 (set_value_initialized): Likewise.
1914
1915 2007-05-18 Caroline Tice <ctice@apple.com>
1916
1917 * MAINTAINERS (Write After Approval): Add self.
1918
1919 2007-05-17 Joel Brobecker <brobecker@adacore.com>
1920
1921 * gdbtypes.c (make_reference_type): Preserve the type chain
1922 and set the length of all the variants of the pointer type.
1923
1924 2007-05-17 Joel Brobecker <brobecker@adacore.com>
1925
1926 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
1927 and set the length of all the variants of the pointer type.
1928
1929 2007-05-17 Maciej W. Rozycki <macro@mips.com>
1930
1931 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
1932 comment.
1933 (mips_o64_push_dummy_call): Reformat a comment.
1934
1935 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
1936
1937 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
1938 (score_prologue_frame_base_address): Return fp to keep gdb print
1939 local variables correctly when debugging information is stabs.
1940
1941 (score_analyze_prologue): For software watchpoint, fetch all the
1942 instructions from range [startaddr, pc] once and identify them locally
1943 to reduce memory access.
1944 (score_malloc_and_get_memblock, score_free_memblock)
1945 (score_adjust_memblock_ptr): New functions.
1946 (score_fetch_inst): Fetch single instruction or mutiple instructions.
1947
1948 (score_target_can_use_watch, score_stopped_by_watch)
1949 (score_target_insert_watchpoint, score_target_remove_watchpoint)
1950 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
1951 New functions for remote & local hw-watchpoint and hw-breakpoint.
1952
1953 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
1954
1955 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
1956 declarations as well.
1957
1958 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1959
1960 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
1961 * config/arm/tm-embed.h: Delete file.
1962
1963 * arm-tdep.h (arm_software_single_step): Declare.
1964 * arm-tdep.c (arm_software_single_step): Make global.
1965 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
1966 from here to ...
1967 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
1968 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
1969 * armobsd-tdep.c (armobsd_init_abi): ... here ...
1970 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
1971
1972 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
1973 allow defines to be overriden by TM file.
1974 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
1975 change default to {0xbe,0xbe}.
1976 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
1977 arm_obsd_thumb_be_breakpoint): New global variables.
1978 (armobsd_init_abi): Override tdep->thumb_breakpoint and
1979 tdep->thumb_breakpoint_size.
1980 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
1981 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
1982 tdep->thumb_breakpoint_size.
1983
1984 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
1985
1986 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
1987
1988 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
1989 saved-gpreg-size".
1990
1991 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
1992 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
1993 (mips_stack_argsize_string, mips_stack_argsize): Delete.
1994 (mips_abi_regsize): Simplify.
1995 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1996 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1997 (mips_o32_return_value, mips_o64_push_dummy_call)
1998 (mips_o64_return_value): Propogate constant register sizes. Use the
1999 ABI register size instead of mips_stack_argsize.
2000 (mips_dump_tdep): Don't print mips_stack_argsize.
2001 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
2002 settings.
2003
2004 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
2005
2006 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
2007 * config/mips/tm-linux.h: Delete.
2008 * mips-linux-tdep.c (mips_svr4_so_ops): New.
2009 (mips_linux_in_dynsym_resolve_code): Make static. Use
2010 svr4_in_dynsym_resolve_code.
2011 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
2012 set_solib_ops.
2013 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
2014 global.
2015 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
2016 * Makefile.in (mips-linux-tdep.o): Update.
2017 * solib.c (set_solib_ops): New.
2018 (current_target_so_ops): Update comment.
2019 * solib.h (set_solib_ops): New prototype.
2020
2021 2007-05-16 Chris Dearman <chris@mips.com>
2022
2023 * printcmd.c (do_examine): Fix typos in a comment.
2024
2025 2007-05-16 Richard Sandiford <richard@codesourcery.com>
2026
2027 * configure.ac: Allow sysroots to be relocated under $prefix as
2028 well as $exec_prefix.
2029 * configure: Regenerate.
2030
2031 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
2032
2033 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
2034 (offsetof): Do not define.
2035 (find_stub_with_shl_get): Use numerical value 3 instead of
2036 symbolic value TYPE_PROCEDURE.
2037
2038 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2039
2040 * gdb_proc_service.h (paddr_t): Delete typedef.
2041 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
2042 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
2043 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
2044 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
2045 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
2046 * Makefile.in (proc-service.o): Update.
2047
2048 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2049
2050 * Makefile.in (mips-tdep.o): Update.
2051 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
2052 unwinder.
2053
2054 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2055
2056 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
2057 instead of store_typed_address.
2058 * value.c (pack_long): New.
2059 (value_from_longest): Use it.
2060 * value.h (pack_long): New prototype.
2061
2062 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2063
2064 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
2065 DW_EH_PE_signed if appropriate.
2066
2067 2007-05-14 Paul Brook <paul@codesourcery.com>
2068 Daniel Jacobowitz <dan@codesourcery.com>
2069
2070 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
2071 function.
2072 (dwarf_decode_lines): Check for line info without a file.
2073
2074 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2075
2076 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
2077 as hexadecimal.
2078
2079 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2080
2081 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
2082 STRUCTOP_STRUCT.
2083 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
2084 STRUCTOP_STRUCT.
2085 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
2086
2087 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
2088
2089 * gdbarch.sh (read_sp): Remove.
2090 * gdbarch.c, gdbarch.h: Regenerate.
2091 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
2092
2093 * avr-tdep.c (avr_read_sp): Remove.
2094 (avr_unwind_sp): New function.
2095 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
2096 * mips-tdep.c (mips_read_sp): Remove.
2097 (mips_unwind_sp): New function.
2098 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
2099 * score-tdep.c (score_read_unsigned_register): Remove.
2100 (score_read_sp): Remove.
2101 (score_unwind_sp): New function.
2102 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
2103
2104 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
2105
2106 * buildsym.c (start_subfile): Handle absolute pathnames
2107 while comparing subfile names.
2108
2109 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2110
2111 * hppa-hpux-tdep.c: Include "regcache.h".
2112 * hppa-linux-tdep.c: Likewise.
2113 * hppa-tdep.c: Include "gdb_stdint.h".
2114 (find_unwind_entry): Cast host pointer to uintptr_t before passing
2115 it to paddr_nz.
2116 * Makefile.in: Update dependencies.
2117
2118 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2119
2120 * blockframe.c: Remove obsolete comments.
2121 * alpha-nat.c (fetch_osf_core_registers): Update comment.
2122 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
2123 * hppa-tdep.h (enum hppa_regnum): Likewise.
2124 * mips-tdep.h: Likewise.
2125 * m68hc11-tdep.c: Likewise.
2126
2127 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2128
2129 * inferior.h (read_sp): Remove prototype.
2130 * regcache.c (read_sp): Remove.
2131 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
2132 * infcall.c (call_function_by_hand): Likewise.
2133 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
2134 of calling read_sp.
2135 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2136
2137 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2138
2139 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
2140 instead of read_register and read_register_pid.
2141
2142 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
2143 argument instead of PTID. Use regcache functions instead of
2144 read_register_pid.
2145 (ia64_linux_insert_watchpoint): Update call.
2146 (ia64_linux_stopped_data_address): Use regcache functions
2147 instead of read_register_pid and write_register_pid.
2148
2149 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2150
2151 * libunwind-frame.h (struct regcache): Add forward declaration.
2152 (libunwind_get_reg_special): Add REGCACHE argument.
2153 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
2154 argument. Pass it to unw_init_remote_p.
2155
2156 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
2157 libunwind_get_reg_special.
2158 (ia64_access_reg): Remove "write" case.
2159 (ia64_access_fpreg): Likewise. Read from next_frame passed
2160 as callback argument instead of from current_regcache.
2161 (ia64_access_rse_reg): Remove "write" case. Read from regcache
2162 passed as callback argument instead of from current_regcache.
2163 (ia64_access_rse_fpreg): New function.
2164 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
2165
2166 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2167
2168 * NEWS: Mention SPU overlay support.
2169
2170 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2171
2172 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
2173
2174 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2175
2176 * breakpoint.c (remove_breakpoint): Do not remove software
2177 breakpoints in unmapped overlay sections.
2178
2179 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2180
2181 * spu-tdep.c: Include "observer.h".
2182 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
2183 (spu_overlay_data): New variable.
2184 (struct spu_overlay_table): New type.
2185 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
2186 spu_overlay_new_objfile): New functions.
2187 (spu_gdbarch_init): Install spu_overlay_update.
2188 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
2189 allocate spu_overlay_data objfile data.
2190
2191 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2192
2193 * gdbarch.sh (overlay_update): New gdbarch function.
2194 (struct obj_section): Add forward declaration.
2195 * gdbarch.c, gdbarch.h: Regenerate.
2196
2197 * symfile.c (simple_overlay_update): Make global.
2198 (target_overlay_update): Remove variable.
2199 (overlay_is_mapped): Call gdbarch_overlay_update instead of
2200 target_overlay_update.
2201 (overlay_load_command): Likewise.
2202 * symfile.h (struct obj_section): Add forward declaration.
2203 (simple_overlay_update): Add prototype.
2204
2205 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
2206
2207 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2208
2209 * observer.sh: Add "struct objfile" forward declaration.
2210 * target.h (deprecated_target_new_objfile_hook): Remove.
2211 * symfile.c (deprecated_target_new_objfile_hook): Remove.
2212 (clear_symtab_users): Call observer_notify_new_objfile.
2213 (symbol_file_add_with_addrs_or_offsets): Likewise.
2214 * rs6000-nat.c: Include "observer.h".
2215 (vmap_ldinfo): Call observer_notify_new_objfile.
2216 (xcoff_relocate_core): Likewise.
2217 * remote.c (remote_new_objfile_chain): Remove.
2218 (remote_new_objfile): Do not call remote_new_objfile_chain.
2219 (_initialize_remote): Use observer_attach_new_objfile.
2220 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
2221 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
2222 (_initialize_tui_hooks): Use observer_attach_new_objfile.
2223 * aix-thread.c: Include "observer.h".
2224 (target_new_objfile_chain): Remove.
2225 (new_objfile): Do not call target_new_objfile_chain.
2226 (_initialize_aix_thread): Use observer_attach_new_objfile.
2227 * hpux-thread.c: Include "observer.h"
2228 (target_new_objfile_chain): Remove.
2229 (hpux_thread_new_objfile): Make static. Do not call
2230 target_new_objfile_chain.
2231 (_initialize_hpux_thread): Use observer_attach_new_objfile.
2232 * linux-thread-db.c: Include "observer.h".
2233 (target_new_objfile_chain): Remove.
2234 (thread_db_new_objfile): Do not call target_new_objfile_chain.
2235 (_initialize_thread_db): Use observer_attach_new_objfile.
2236 * sol-thread.c: Include "observer.h".
2237 (target_new_objfile_chain): Remove.
2238 (sol_thread_new_objfile): Make static. Do not call
2239 target_new_objfile_chain.
2240 (_initialize_sol_thread): Use observer_attach_new_objfile.
2241 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
2242 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
2243 $(observer_h).
2244
2245 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2246
2247 * gdbarch.sh (remote_translate_xfer_address): Remove.
2248 * gdbarch.h, gdbarch.c: Regenerate.
2249 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
2250 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
2251 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
2252 call gdbarch_remote_translate_xfer_address.
2253 * frv-tdep.c (frv_gdbarch_init): Do not call
2254 set_gdbarch_remote_translate_xfer_address.
2255 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
2256 (ia64_gdbarch_init): Do not install it.
2257
2258 2007-05-11 Bob Wilson <bob.wilson@acm.org>
2259
2260 * NEWS: Mention change in handling the -tui option.
2261
2262 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
2263
2264 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
2265 typo.
2266
2267 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2268
2269 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
2270 (breakpoint_inserted_here_p): Call it.
2271 (software_breakpoint_inserted_here_p): Likewise.
2272
2273 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
2274
2275 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
2276 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
2277 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
2278 (inf_ptrace_store_register): Likewise.
2279 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
2280 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
2281
2282 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
2283
2284 * linux-nat.c (linux_trad_target): Adapt parameter list.
2285 * linux-nat.h (linux_trad_target): Likewise.
2286
2287 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
2288
2289 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
2290 (mips_linux_cannot_store_register): Likewise.
2291 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
2292 Return (CORE_ADDR) -1 for registers that cannot be fetched or
2293 stored via ptrace. Use GDBARCH instead of current_gdbarch.
2294 (mips64_linux_register_addr): Likewise.
2295 (mips_linux_register_u_offset): Adapt parameter list. Pass
2296 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
2297
2298 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2299 * config/mips/nm-linux.h: Delete file.
2300
2301 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
2302
2303 * remote.c (remote_detach): Error out if remote can't detach.
2304
2305 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
2306
2307 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
2308 instruction's opcode in the "opcode" variable and declares new
2309 variable "closing_insn".
2310
2311 2007-05-10 Chris Dearman <chris@mips.com>
2312 Maciej W. Rozycki <macro@mips.com>
2313
2314 * cli/cli-setshow.c (do_setshow_command): Remove trailing
2315 whitespace when setting a var_filename.
2316
2317 2007-05-09 Bob Wilson <bob.wilson@acm.org>
2318
2319 * main.c (captured_main): Recognize -tui option and print an error
2320 message when the TUI is not configured.
2321
2322 2007-05-09 Andreas Schwab <schwab@suse.de>
2323
2324 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
2325 set removed members.
2326 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2327
2328 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2329
2330 * gdbarch.sh (deprecated_store_struct_return): Remove.
2331 * gdbarch.c, gdbarch.h: Regenerate.
2332 * frv-tdep.c (frv_store_struct_return): Remove.
2333 (frv_gdbarch_init): Do not install it.
2334
2335 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2336
2337 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
2338 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
2339 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
2340
2341 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2342
2343 * spu-linux-nat.c: Include "gdb_stdint.h".
2344 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
2345 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
2346 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
2347 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
2348 (spu_child_wait): Mark up string for translation.
2349
2350 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
2351 Luis Machado <luisgpm@br.ibm.com>
2352
2353 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
2354 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
2355 BC_INSTRUCTION): Define.
2356 (deal_with_atomic_sequence): New function.
2357 (rs6000_software_single_step): Call deal_with_atomic_sequence.
2358 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
2359 gdbarch_software_single_step routine.
2360
2361 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
2362
2363 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
2364 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
2365 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
2366 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
2367 spu_child_post_attach, spu_fetch_inferior_registers,
2368 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
2369 memory addresses as ULONGEST, not CORE_ADDR.
2370
2371 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
2372
2373 * gdbarch.sh: Add skip_permanent_breakpoint callback.
2374 * gdbarch.h, gdbarch.c: Regenerate.
2375
2376 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
2377 (resume): Call gdbarch_skip_permanent_breakpoint instead of
2378 SKIP_PERMANENT_BREAKPOINT. Inline default case.
2379
2380 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
2381 Add REGCACHE argument. Use it instead of read/write_register.
2382 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
2383
2384 * config/pa/tm-hppah.h: Delete file.
2385 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
2386 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
2387
2388 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
2389
2390 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
2391 * NEWS: Mention improved C++ thunk support.
2392 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
2393 * cp-abi.c (cplus_skip_trampoline): New.
2394 * cp-abi.h (cplus_skip_trampoline): New prototype.
2395 (struct cp_abi_ops): Add skip_trampoline member.
2396 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
2397 (init_gnuv3_ops): Set skip_trampoline.
2398
2399 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
2400
2401 * rs6000-tdep.c (struct frame_extra_info): Delete.
2402
2403 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
2404
2405 * linux-thread-db.c: Update some FIXME comments.
2406 (thread_db_xfer_partial): Delete.
2407 (init_thread_db_ops): Do not set to_xfer_partial.
2408
2409 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2410
2411 * inftarg.c, infptrace.c: Remove files.
2412 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
2413 (inftarg.o, infptrace.o): Remove rules.
2414 * gdbcore.h (register_addr): Remove prototype.
2415 * inferior.h (kill_inferior, store_inferior_registers,
2416 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
2417 call_ptrace, pre_fork_inferior): Remove prototypes.
2418 * target.h (child_xfer_memory, child_pid_to_exec_file,
2419 child_core_file_to_sym_file, child_post_attach,
2420 child_post_startup_inferior, child_acknowledge_created_inferior,
2421 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
2422 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
2423 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
2424 child_follow_fork, child_reported_exec_events_per_exec_call,
2425 child_has_exited, child_thread_alive): Remove prototypes.
2426
2427 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2428
2429 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
2430 (sparc_store_inferior_registers): Likewise.
2431 * sparc-nat.c (fetch_inferior_registers): Rename to ...
2432 (sparc_fetch_inferior_registers): ... this.
2433 (store_inferior_registers): Rename to ...
2434 (sparc_store_inferior_registers): ... this.
2435 (sparc_target): Update callback names.
2436 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
2437 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
2438
2439 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2440
2441 * linux-nat.c (child_post_attach): Rename to ...
2442 (linux_child_post_attach): ... this. Make static.
2443 (child_follow_fork): Rename to ...
2444 (linux_child_follow_fork): ... this. Make static.
2445 (child_insert_fork_catchpoint): Rename to ...
2446 (linux_child_insert_fork_catchpoint): ... this. Make static.
2447 (child_insert_vfork_catchpoint): Rename to ...
2448 (linux_child_insert_vfork_catchpoint): ... this. Make static.
2449 (child_insert_exec_catchpoint): Rename to ...
2450 (linux_child_insert_exec_catchpoint): ... this. Make static.
2451 (child_pid_to_exec_file): Rename to ...
2452 (linux_child_pid_to_exec_file): ... this. Make static.
2453 Add prototype.
2454 (linux_handle_extended_wait): Update call.
2455 (linux_xfer_partial): Update callback routine names.
2456
2457 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2458
2459 * configure.host (alpha*-*-osf[12]*): Remove support.
2460 * NEWS: Mention removed configurations.
2461
2462 * config/alpha/alpha-osf1.mh: Delete file.
2463 * config/alpha/alpha-osf2.mh: Delete file.
2464 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
2465 and infptrace.o.
2466 * config/alpha/nm-osf.h: Delete file.
2467 * config/alpha/nm-osf2.h: Delete file.
2468 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
2469 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
2470 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
2471
2472 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
2473 (register_addr, kernel_u_size): Remove.
2474 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
2475
2476 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2477
2478 * regcache.c (regcache_invalidate): New function.
2479 (register_cached): Remove.
2480 (set_register_cached): Remove.
2481 (deprecated_registers_fetched): Remove.
2482 (registers_changed): Use regcache_invalidate instead
2483 of set_register_cached.
2484 (regcache_raw_read): Update comment.
2485
2486 * regcache.h (regcache_invalidate): Add prototype.
2487 (register_cached): Remove.
2488 (set_register_cached): Remove.
2489 (deprecated_registers_fetched): Remove.
2490
2491 * findvar.c (value_of_register): Do not call register_cached.
2492 * frame.c (frame_register): Likewise.
2493 * tui/tui-regs.c (tui_get_register): Likewise.
2494
2495 * remote.c (fetch_register_using_p): Do not call set_register_cached.
2496 (process_g_packet): Likewise.
2497 (remote_fetch_registers): Likewise.
2498 * remote-sim.c (gdbsim_fetch_register): Likewise.
2499 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
2500 by regcache_invalidate.
2501 (mt_pseudo_register_write): Likewise.
2502 * sh-tdep.c (sh_pseudo_register_write): Likewise.
2503
2504 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
2505 call by loop over regcache_raw_supply (..., NULL).
2506
2507 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2508
2509 * target.h (struct target_ops): Add REGCACHE parameter to
2510 to_prepare_to_store.
2511 (target_prepare_to_store): Likewise.
2512 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
2513 (update_current_target): Adapt prepare_to_store de_fault rule.
2514
2515 * regcache.c (regcache_raw_write): Pass regcache to
2516 target_prepare_to_store.
2517
2518 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
2519 Do not call CHILD_PREPARE_TO_STORE.
2520 * gnu-nat.c (gnu_prepare_to_store): Likewise.
2521 * procfs.c (procfs_prepare_to_store): Likewise.
2522
2523 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
2524 * go32-nat.c (go32_prepare_to_store): Likewise.
2525 * monitor.c (monitor_prepare_to_store): Likewise.
2526 * nto-procfs.c (procfs_prepare_to_store): Likewise.
2527 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
2528 * remote-mips.c (mips_prepare_to_store): Likewise.
2529 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
2530 * win32-nat.c (win32_prepare_to_store): Likewise.
2531
2532 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
2533 Use it instead of current_regcache.
2534
2535 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
2536 parameter. Pass it on to next target.
2537 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
2538
2539 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2540
2541 * target.h (struct regcache): Add forward declaration.
2542 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
2543 and to_store_registers target operations.
2544 (target_fetch_registers, target_store_registers): Update.
2545
2546 * regcache.c (regcache_raw_read): Replace register_cached by
2547 regcache_valid_p. Pass regcache to target_fetch_registers.
2548 (regcache_raw_write): Pass regcache to target_store_registers.
2549
2550 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
2551 store_regs, store_wmmx_regs): Replace register_cached by
2552 regcache_valid_p.
2553
2554 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
2555 to target_fetch_registers calls.
2556 * corelow.c (core_open): Likewise.
2557 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
2558 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2559 ps_lsetfpregs): Likewise.
2560 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2561 ps_lsetfpregs): Likewise.
2562 * win32-nat.c (win32_resume): Likewise.
2563 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
2564 to target_store_registers call.
2565 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2566
2567 * inferior.h (store_inferior_registers): Update prototype.
2568 (fetch_inferior_registers): Likewise.
2569 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
2570 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
2571 Update function pointer signatures.
2572
2573 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
2574 use it instead of current_regcache, update calls.
2575 (aix_thread_store_registers): Likewise.
2576 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
2577 (alphabsd_store_inferior_registers): Likewise.
2578 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
2579 (amd64bsd_store_inferior_registers): Likewise.
2580 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
2581 (amd64_linux_store_inferior_registers): Likewise.
2582 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
2583 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
2584 fetch_wmmx_regs, store_wmmx_regs): Likewise.
2585 (arm_linux_fetch_inferior_registers): Likewise.
2586 (arm_linux_store_inferior_registers): Likewise.
2587 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
2588 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
2589 (store_register, store_regs, store_fp_register, store_fp_regs,
2590 armnbsd_store_registers): Likewise.
2591 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
2592 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
2593 (bsd_uthread_store_registers): Likewise.
2594 * corelow.c (get_core_registers): Likewise.
2595 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
2596 go32_store_registers): Likewise.
2597 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
2598 (hppabsd_store_registers): Likewise.
2599 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
2600 (hppa_hpux_fetch_inferior_registers): Likewise.
2601 (hppa_hpux_store_register): Likewise.
2602 (hppa_hpux_store_inferior_registers): Likewise.
2603 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
2604 (hppa_linux_fetch_inferior_registers): Likewise.
2605 (hppa_linux_store_inferior_registers): Likewise.
2606 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
2607 (hpux_thread_store_registers): Likewise.
2608 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
2609 (i386bsd_store_inferior_registers): Likewise.
2610 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
2611 gnu_store_registers): Likewise.
2612 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
2613 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
2614 Likewise.
2615 (i386_linux_fetch_inferior_registers): Likewise.
2616 (i386_linux_store_inferior_registers): Likewise.
2617 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
2618 (ia64_linux_fetch_registers): Likewise.
2619 (ia64_linux_store_register): Likewise.
2620 (ia64_linux_store_registers): Likewise.
2621 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2622 (inf_child_store_inferior_registers): Likewise.
2623 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2624 (inf_ptrace_fetch_registers): Likewise.
2625 (inf_ptrace_store_register): Likewise.
2626 (inf_ptrace_store_registers): Likewise.
2627 * infptrace.c (fetch_register, store_register): Likewise.
2628 (fetch_inferior_registers, store_inferior_registers): Likewise.
2629 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
2630 (m32r_linux_fetch_inferior_registers): Likewise.
2631 (m32r_linux_store_inferior_registers): Likewise.
2632 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
2633 (m68kbsd_store_inferior_registers): Likewise.
2634 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
2635 store_register, old_store_inferior_registers, fetch_regs, store_regs,
2636 fetch_fpregs, store_fpregs): Likewise.
2637 (m68k_linux_fetch_inferior_registers): Likewise.
2638 (m68k_linux_store_inferior_registers): Likewise.
2639 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
2640 (m88kbsd_store_inferior_registers): Likewise.
2641 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
2642 (mips64obsd_store_inferior_registers): Likewise.
2643 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
2644 (mips64_linux_regsets_store_registers): Likewise.
2645 (mips64_linux_fetch_registers): Likewise.
2646 (mips64_linux_store_registers): Likewise.
2647 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
2648 (mipsnbsd_store_inferior_registers): Likewise.
2649 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
2650 (monitor_fetch_registers, monitor_store_registers): Likewise.
2651 * nto-procfs.c (procfs_fetch_registers): Likewise.
2652 (procfs_store_registers): Likewise.
2653 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
2654 fetch_register, supply_vrregset, fetch_altivec_registers,
2655 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
2656 (store_altivec_register, store_spe_register, store_register,
2657 fill_vrregset, store_altivec_registers, store_ppc_registers,
2658 ppc_linux_store_inferior_registers): Likewise.
2659 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
2660 (ppcnbsd_store_inferior_registers): Likewise.
2661 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
2662 (ppcobsd_store_registers): Likewise.
2663 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2664 * remote.c (fetch_register_using_p, process_g_packet,
2665 fetch_registers_using_g, remote_fetch_registers): Likewise.
2666 (store_register_using_P, store_registers_using_G,
2667 remote_store_registers): Likewise.
2668 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
2669 m32r_store_register, m32r_store_register): Likewise.
2670 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
2671 * remote-sim.c (gdbsim_fetch_register): Likewise.
2672 (gdbsim_store_register): Likewise.
2673 * rs6000-nat.c (fetch_register, store_register): Likewise.
2674 (rs6000_fetch_inferior_registers): Likewise.
2675 (rs6000_store_inferior_registers): Likewise.
2676 * s390-nat.c (fetch_regs, store_regs): Likewise.
2677 (fetch_fpregs, store_fpregs): Likewise.
2678 (s390_linux_fetch_inferior_registers): Likewise.
2679 (s390_linux_store_inferior_registers): Likewise.
2680 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
2681 (shnbsd_store_inferior_registers): Likewise.
2682 * sol-thread.c (sol_thread_fetch_registers): Likewise.
2683 (sol_thread_store_registers): Likewise.
2684 * sparc-nat.c (fetch_inferior_registers): Likewise.
2685 (store_inferior_registers): Likewise.
2686 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2687 (spu_store_inferior_registers): Likewise.
2688 * target.c (debug_print_register): Likewise.
2689 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
2690 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
2691 (vaxbsd_store_inferior_registers): Likewise.
2692 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
2693 (win32_fetch_inferior_registers): Likewise.
2694 (win32_store_inferior_registers): Likewise.
2695
2696 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2697
2698 * gdbcore.h (struct regcache): Add forward declaration.
2699 (struct core_fns): Add REGCACHE argument to core_read_registers
2700 callback.
2701 * corelow.c (get_core_register_section): Add REGCACHE argument,
2702 use it instead of current_regcache, pass it to core_read_registers
2703 callback.
2704 (get_core_registers): Add current_regcache as parameter to
2705 get_core_register_section calls.
2706
2707 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
2708 use it instead of current_regcache.
2709 * armnbsd-nat.c (fetch_core_registers): Likewise.
2710 (fetch_elfcore_registers): Likewise.
2711 * core-regset.c (fetch_core_registers): Likewise.
2712 * cris-tdep.c (fetch_core_registers): Likewise.
2713 * irix5-nat.c (fetch_core_registers): Likewise.
2714 * m68klinux-nat.c (fetch_core_registers): Likewise.
2715 * mips-linux-tdep.c (fetch_core_registers): Likewise.
2716 * win32-nat.c (fetch_elf_core_registers): Likewise.
2717
2718 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2719
2720 * gregset.h (struct regcache): Add forward declaration.
2721 (supply_gregset): Add REGCACHE parameter, make GREGS const.
2722 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
2723 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
2724 (fill_gregset): Add REGCACHE parameter.
2725 (fill_fpregset): Likewise.
2726 (fill_fpxregset): Likewise.
2727
2728 Update all definitions accordingly:
2729 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
2730 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
2731 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
2732 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
2733 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
2734 (supply_gregset): Add REGCACHE parameter, use it instead of
2735 current_regcache. Make GREGSETP parameter const, adapt casts.
2736 (supply_fpregset): Add REGCACHE parameter, use it instead of
2737 current_regcache. Make FPREGSETP parameter const, adapt casts.
2738 (fill_gregset): Add REGCACHE parameter, use it instead of
2739 current_regcache.
2740 (fill_fpregset): Likewise.
2741
2742 Update all callers to pass in current_regcache as the new argument:
2743 * core-regset.c: Include "regcache.h".
2744 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
2745 * procfs.c: Include "regcache.h".
2746 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
2747 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
2748 (procfs_do_thread_registers): Likewise.
2749 (procfs_make_note_section): Likewise.
2750 * proc-service.c: Include "regcache.h".
2751 (ps_lgetregs): Update fill_gregset call.
2752 (ps_lsetregs): Update supply_gregset call.
2753 (ps_lgetfpregs): Update fill_fpregset call.
2754 (ps_lsetfpregs): Update supply_fpregset call.
2755 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
2756 supply_fpregset calls.
2757 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
2758 (ps_lgetregs): Update fill_gregset call.
2759 (ps_lsetregs): Update supply_gregset call.
2760 (ps_lgetfpregs): Update fill_fpregset call.
2761 (ps_lsetfpregs): Update supply_fpregset call.
2762
2763 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
2764 fill_fpregset, and fill_fpxregset calls.
2765 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
2766 (store_regs): Update fill_gregset call.
2767 (fetch_fpregs): Update supply_fpregset call.
2768 (store_fpregs): Update fill_fpregset call.
2769 (fetch_fpxregs): Update supply_fpxregset call.
2770 (store_fpxregs): Update fill_fpxregset call.
2771 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
2772 (store_regs): Update fill_gregset call.
2773 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
2774 (store_regs): Update fill_gregset call.
2775 (fetch_fpregs): Update supply_fpregset call.
2776 (store_fpregs): Update fill_fpregset call.
2777 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
2778 * s390-nat.c (fetch_regs): Update supply_gregset call.
2779 (store_regs): Update fill_gregset call.
2780 (fetch_fpregs): Update supply_fpregset call.
2781 (store_fpregs): Update fill_fpregset call.
2782
2783 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
2784 dependencies.
2785
2786 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2787
2788 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
2789 it instead of current_regcache.
2790 (parse_register_dump): Add REGCACHE parameter, pass it to
2791 supply_register callback.
2792 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
2793 parse_register_dump.
2794 (monitor_dump_regs): Add REGCACHE parameter, pass it to
2795 parse_register_dump and dumpregs callback.
2796 (monitor_wait): Pass current_regcache to parse_register_dump and
2797 monitor_dump_regs.
2798 (monitor_fetch_register): Pass current_regcache to
2799 monitor_supply_register.
2800 (monitor_fetch_registers): Pass current_regcache to
2801 monitor_dump_regs.
2802 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
2803 supply_register and dumpregs callbacks.
2804 (monitor_supply_register, monitor_dump_reg_block): Update
2805 prototypes.
2806 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
2807 it to monitor_supply_register.
2808 * dink32-rom.c (dink32_supply_register): Likewise.
2809 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
2810 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
2811 instead of current_regcache.
2812
2813 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2814
2815 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
2816 Add REGCACHE parameter. Use it instead of current_regcache.
2817 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
2818 i386nto_supply_gregset and i386nto_supply_fpregset.
2819 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
2820 of current_regcache.
2821
2822 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
2823 nto_supply_ helper functions.
2824 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
2825
2826 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
2827
2828 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
2829 supply_greget, supply_fpregset, supply_altregset, supply_regset,
2830 and regset_fill member function pointers.
2831 (nto_dummy_supply_regset): Adapt prototype.
2832
2833 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2834
2835 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
2836 instead of current_regcache. Make REGS const.
2837 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
2838 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
2839 prototypes.
2840 * shnbsd-nat.c: Include "regcache.h".
2841 (shnbsd_fetch_inferior_registers): Pass current_regcache to
2842 shnbsd_supply_reg.
2843 (shnbsd_store_inferior_registers): Pass current_regcache to
2844 shnbsd_fill_reg.
2845 * Makefile.in (shbsd-nat.o): Update dependencies.
2846
2847 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2848
2849 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
2850 instead of current_regcache.
2851 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
2852 Make GREGSETP const, remove superfluous casts.
2853 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
2854 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
2855 superfluous casts.
2856 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
2857 (supply_64bit_reg): Likewise
2858 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
2859 Make GREGSETP const, adapt casts accordingly.
2860 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
2861 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
2862 casts accordingly.
2863 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
2864 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
2865 helper routines.
2866 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
2867 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
2868 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
2869 Adapt prototypes.
2870 * mips-linux-nat.c: Include "regcache.h".
2871 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
2872 current_regcache to mips{64}_(supply|fill)_ helper routines.
2873 (mips64_linux_regsets_fetch_registers): Likewise.
2874 (mips64_linux_regsets_store_registers): Likewise.
2875
2876 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
2877 REGCACHE argument; replace current_regcache. Make REGS const.
2878 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
2879 replace current_regcache.
2880 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
2881 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
2882 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
2883 mipsnbsd_store_inferior_registers): Pass current_regcache to
2884 mipsnbsd_(supply|fill)_... helper routines.
2885
2886 * Makefile.in (mips-linux-nat.o): Update dependencies.
2887
2888 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2889
2890 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
2891 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
2892 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
2893 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
2894 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
2895 * i386gnu-nat.c (store_fpregs): Likewise.
2896 * i386v4-nat.c (fill_fpregset): Likewise.
2897 * go32-nat.c (store_register, go32_store_registers): Likewise.
2898
2899 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2900
2901 * cris-tdep.c (supply_gregset): Rename to ...
2902 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
2903 instead of current_regcache.
2904 (fetch_core_registers): Update call. Pass current_regcache.
2905
2906 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2907
2908 * arnmnbsd-nat.c (supply_gregset): Rename to ...
2909 (arm_supply_gregset): ... this. Add REGCACHE parameter.
2910 Use it instead of current_regcache.
2911 (supply_fparegset): Rename to ...
2912 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
2913 Use it instead of current_regcache.
2914 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
2915 (fetch_core_registers, fetch_elfcore_registers): Likewise.
2916
2917 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2918
2919 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
2920 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
2921 use it instead of current_regcache.
2922 * alpha-tdep.h (struct regcache): Add forward declaration.
2923 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
2924 alpha_fill_fp_regs): Update prototypes.
2925
2926 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
2927 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
2928 * alpha-linux-nat.c: Include "regcache.h".
2929 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
2930 current_regcache to alpha_supply/fill_ routines.
2931
2932 * alphabsd-tdep.c: Include "regcache.h".
2933 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
2934 pass it to alpha_supply_ routines. Make REGS const.
2935 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
2936 pass it to alpha_fill_ routines.
2937 * alphabsd-tdep.h (struct regcache): Add forward declaration.
2938 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
2939 alphabsd_fill_fpreg): Update prototypes.
2940
2941 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
2942 fill_fpregset, alphabsd_fetch_inferior_registers,
2943 alphabsd_store_inferior_registers): Pass current_regcache to
2944 alphabsd_supply/fill_ routines.
2945
2946 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
2947 dependencies.
2948
2949 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2950
2951 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
2952 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
2953 instead of current_regcache.
2954 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
2955 REGCACHE parameter, pass it to supply_ routines.
2956 (aix_thread_fetch_registers): Pass current_regcache to
2957 fetch_regs_user_thread and fetch_regs_kernel_thread.
2958
2959 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
2960 Add REGCACHE parameter, use it instead of current_regcache.
2961 Call regcache_valid_p instead of register_cached.
2962 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
2963 Also, pass REGCACHE to fill_ routines.
2964 (aix_thread_store_registers): Pass current_regcache to
2965 store_regs_user_thread and store_regs_kernel_thread.
2966
2967 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2968
2969 * m32r-linux-nat.c (supply_gregset): Do not modify contents
2970 pointed to by GREGSETP.
2971
2972 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2973
2974 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
2975 of regcache_raw_read_signed.
2976 (fill_fpregset): Use regcache_raw_collect instead of
2977 regcache_raw_read.
2978
2979 2007-05-03 Kevin Buettner <kevinb@redhat.com>
2980
2981 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
2982 point arguments, test explicitly for use of the EABI32 ABI
2983 instead of inferring this condition from tests on register
2984 sizes.
2985
2986 2007-05-03 Kevin Buettner <kevinb@redhat.com>
2987
2988 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
2989 prior to allocating its location.
2990
2991 2007-05-02 Maciej W. Rozycki <macro@mips.com>
2992
2993 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
2994 based on mips_abi_regsize() whose result is known in advance.
2995 (mips_o64_push_dummy_call): Likewise.
2996
2997 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
2998
2999 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
3000 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
3001
3002 * mips-linux-nat.c: Include "gregset.h".
3003 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
3004 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
3005 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
3006 fill_fpregset): Move to mips-linux-nat.c.
3007
3008 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
3009
3010 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3011
3012 * regcache.c (deprecated_read_register_gen): Remove, inline ...
3013 (read_register): ... here.
3014 (deprecated_write_register_gen): Remove, inline ...
3015 (write_register): ... here.
3016 * regcache.h (deprecated_read_register_gen): Remove prototype.
3017 (deprecated_write_register_gen): Likewise.
3018
3019 * remote-sim.c (gdbsim_store_register): Replace call to
3020 deprecated_read_register_gen with regcache_cooked_read.
3021 * target.c (debug_print_register): Replace calls to
3022 deprecated_read_register_gen and read_register with
3023 regcache_cooked_read.
3024
3025 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3026
3027 * hpux-thread.c (hpux_thread_store_registers): Use
3028 regcache_raw_collect, not regcache_raw_read.
3029 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
3030 not regcache_raw_write.
3031
3032 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3033
3034 * gdbarch.sh: Remove deprecated_register_byte.
3035 * gdbarch.c, gdbarch.h: Regenerate.
3036 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
3037 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
3038
3039 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
3040 * regcache.c (regcache_valid_p): Allow to query cooked registers in
3041 read-only register caches. Make REGCACHE parameter const.
3042 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
3043
3044 * mi/mi-main.c (old_regs): Remove.
3045 (mi_setup_architecture_data, _initialize_mi_main): Remove.
3046 (register_changed_p): Reimplement to compare two register caches.
3047 (mi_cmd_data_list_changed_registers): Update caller.
3048 * mi/mi-main.h (mi_setup_architecture_data): Remove.
3049 * mi/mi-interp.c (mi_interpreter_init): Do not call
3050 mi_setup_architecture_data.
3051
3052 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3053
3054 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
3055 inline definition at the places the macros are used.
3056 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
3057
3058 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3059
3060 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
3061 "gdb_string.h".
3062 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
3063 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
3064 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
3065 (rs6000_aix_regset_from_core_section): New function.
3066 (rs6000_aix_init_osabi): Register it.
3067 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
3068 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
3069 * rs6000-nat.c (CoreRegs): Do not define type.
3070 (fetch_core_registers, rs6000_core_fns): Remove.
3071 (_initialize_core_rs6000): Do not register it. Rename to ...
3072 (_initialize_rs6000_nat): ... this.
3073 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
3074
3075 2007-04-27 Kevin Buettner <kevinb@redhat.com>
3076
3077 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
3078 (dwarf2_read_address): Sign extend return address as required by
3079 target architecture.
3080
3081 2007-04-27 Kevin Buettner <kevinb@redhat.com>
3082
3083 * solib-frv.c (lm_base): Bail out if the main executable has
3084 not been relocated.
3085
3086 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3087
3088 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
3089 of FPCR register in fpregset.
3090
3091 2007-04-27 Maciej W. Rozycki <macro@mips.com>
3092
3093 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
3094 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
3095
3096 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3097
3098 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
3099 * rs6000-nat.c (rs6000_wait): New function.
3100 (_initialize_core_rs6000): Install it as to_wait target method.
3101 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
3102
3103 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3104
3105 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
3106 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
3107 * rs6000-nat.c (super_create_inferior): New variable.
3108 (rs6000_create_inferior): Make static. Adapt argument list. Call
3109 original version of create_inferior via super_create_inferior.
3110 (_initialize_core_rs6000): Install to_create_inferior target method.
3111
3112 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3113
3114 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
3115 (aix_thread_xfer_partial): ... this.
3116 (init_aix_thread_ops): Install to_xfer_partial instead
3117 of deprecated_xfer_memory target method.
3118
3119 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
3120 and inftarg.o, add inf-ptrace.o.
3121 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
3122 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
3123 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
3124 (fetch_inferior_registers): Rename to ...
3125 (rs6000_fetch_inferior_registers): ... this. Make static.
3126 (store_inferior_registers): Rename to ...
3127 (rs6000_store_inferior_registers): ... this. Make static.
3128 (read_word, child_xfer_memory): Remove.
3129 (rs6000_xfer_partial): New function.
3130 (kernel_u_size): Remove.
3131 (_initialize_core_rs6000): Add inf_ptrace-based target.
3132 * Makefile.in (rs6000-nat.o): Update dependencies.
3133
3134 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3135
3136 * inf-ptrace.c: Include "gdb_stdint.h".
3137 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
3138 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
3139 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
3140 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
3141 (inf_ptrace_store_register): Likewise.
3142 * Makefile.in (inf-ptrace.o): Update dependencies.
3143
3144 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3145
3146 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
3147 * configure.tgt (rs6000-*-*): Likewise.
3148 * config/rs6000/aix4.mh: Delete file.
3149 * config/rs6000/aix4.mt: Delete file.
3150 * config/rs6000/rs6000.mh: Delete file.
3151 * config/rs6000/rs6000.mt: Delete file.
3152
3153 * config/powerpc/nm-aix.h: Delete file.
3154 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
3155
3156 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3157
3158 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
3159 Remove obsolete part of comment.
3160 (store_regs_user_thread): Use uint32_t temporaries when calling
3161 fill_sprs32.
3162 (store_regs_kernel_thread): Likewise. Add assertion to verify
3163 correct size of struct ptsprs members.
3164 (aix_thread_xfer_memory): Fix type of myaddr.
3165 (aix_thread_extra_thread_info): Fix compiler warning.
3166 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
3167 (fetch_register, store_register): Adapt callers.
3168
3169 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3170
3171 * vec.h (vec_free): Rename to vec_free_. Adapt users.
3172
3173 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3174
3175 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
3176 and "regcache.h".
3177 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
3178 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
3179 (alpha_linux_regset_from_core_section): New function.
3180 (alpha_linux_init_abi): Install it.
3181 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
3182 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
3183 <sys/procfs.h>, and "gregset.h".
3184 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
3185 Move from config/alpha/nm-linux.h.
3186 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
3187 from alpha-nat.c.
3188 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
3189 * alpha-nat.c: Remove #ifdef __linux__ section.
3190 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
3191 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
3192 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
3193 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
3194 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
3195 (NATDEPFILES): Remove alpha-nat.o.
3196 * config/alpha/nm-linux.h: Delete file.
3197 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
3198 * Makefile.in (alpha-linux-nat.o): Update dependencies.
3199 (alpha-linux-tdep.o): Likewise.
3200
3201 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3202
3203 * mips-linux-nat.c: No longer include "gdbcore.h".
3204 (mips_linux_register_addr): Move from mips-linux-tdep.c.
3205 (mips64_linux_register_addr): Likewise.
3206 (mips_linux_register_u_offset): Call mips_linux_register_addr or
3207 mips64_linux_register_addr instead of register_addr.
3208 * mips-linux-tdep.c (mips_linux_register_addr,
3209 mips64_linux_register_addr): Move to mips-linux-nat.c.
3210 (register_addr): Remove.
3211 (register_addr_data, init_register_addr_data): Remove.
3212 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
3213 (set_mips_linux_register_addr): Remove.
3214 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
3215 * Makefile.in (mips-linux-nat.o): Update dependencies.
3216
3217 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3218
3219 * linux-nat.c (linux_register_u_offset): Remove.
3220 (linux_target_install_ops): New function.
3221 (linux_target): Use it.
3222 (linux_trad_target): New function.
3223 * linux-nat.h (linux_trad_target): Declare.
3224
3225 * alpha-linux-nat.c: Include "gdbcore.h".
3226 (alpha_linux_register_u_offset): New function.
3227 (_initialize_alpha_linux_nat): Use linux_trad_target.
3228
3229 * mips-linux-nat.c: Include "gdbcore.h".
3230 (mips_linux_register_u_offset): New function.
3231 (_initialize_mips_linux_nat): Use linux_trad_target.
3232
3233 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3234 * config/arm/nm-linux.h: Delete file.
3235
3236 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
3237 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
3238
3239 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3240 * config/ia64/nm-linux.h: Delete file.
3241
3242 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3243 * config/m32r/nm-linux.h: Delete file.
3244
3245 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3246 * config/m68k/nm-linux.h: Delete file.
3247
3248 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3249 * config/pa/nm-linux.h: Delete file.
3250
3251 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3252 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
3253 * config/powerpc/nm-linux.h: Delete file.
3254
3255 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
3256 * config/s390/nm-linux.h: Delete file.
3257
3258 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3259 * config/sparc/linux64.mh (NAT_FILE): Likewise.
3260 * config/sparc/nm-linux.h: Delete file.
3261
3262 * Makefile.in (alpha-linux-nat.o): Update dependencies.
3263 (mips-linux-nat.o): Likewise.
3264
3265 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3266
3267 * core-aout.c: Delete file.
3268 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
3269 (core-aout.o): Delete rule.
3270 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
3271
3272 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
3273
3274 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
3275 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
3276 KERNEL_U_ADDR): Remove.
3277
3278 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
3279 (cannot_fetch_register, cannot_store_register): Remove.
3280 (fetch_register): Inline cannot_fetch_register and register_addr.
3281 (store_register): Inline cannot_store_register and register_addr.
3282 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
3283 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
3284 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
3285 Remove.
3286
3287 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
3288 (fetch_register): Inline register_addr.
3289 (store_register): Inline register_addr.
3290 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
3291 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
3292 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
3293
3294 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
3295 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
3296 REGISTER_U_ADDR): Remove.
3297
3298 * hppa-linux-nat.c (register_addr): Rename to ...
3299 (hppa_linux_register_addr): ... this. Make static.
3300 (fetch_register, store_register): Adapt callers.
3301 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
3302
3303 * ppc-linux-nat.c (kernel_u_size): Remove.
3304 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
3305
3306 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
3307 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
3308 (NAT_FILE): Remove.
3309 * config/vax/nm-vax.h: Delete file.
3310
3311 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
3312
3313 * MAINTAINERS (Write After Approval): Add myself.
3314
3315 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
3316
3317 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
3318 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
3319 (m68k_linux_sigcontext_reg_offset): Fix typo.
3320 (target_is_uclinux): New.
3321 (m68k_linux_inferior_created): New.
3322 (m68k_linux_get_sigtramp_info): Check for uClinux or
3323 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
3324 uClinux.
3325 (_initialize_m68k_linux_tdep): Register
3326 m68k_linux_inferior_created.
3327
3328 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
3329
3330 * win32-nat.c (win32_detach): Remove delete_command call.
3331 Resume inferior with win32_resume instead of win32_continue.
3332
3333 2007-04-19 Jerome Guitton <guitton@adacore.com>
3334
3335 * ser-mingw.c (fd_is_file): New function.
3336 (file_select_thread): New function.
3337 (ser_console_wait_handle): Add special handling for files.
3338
3339 2007-04-18 Denis Pilat <denis.pilat@st.com>
3340
3341 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
3342 when missing from DW_TAG_subrange_type. Remove the handling of null
3343 return from die_type.
3344
3345 2007-04-18 Maciej W. Rozycki <macro@mips.com>
3346
3347 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
3348 change to rearrange some brackets.
3349 (mips_n32n64_push_dummy_call): Likewise.
3350 (mips_o32_push_dummy_call): Likewise.
3351 (mips_o64_push_dummy_call): Likewise.
3352
3353 2007-04-18 Denis Pilat <denis.pilat@st.com>
3354
3355 * infcmd.c (post_create_inferior): Start with a call to
3356 target_terminal_ours.
3357
3358 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3359
3360 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
3361 brackets.
3362 (mips_n32n64_push_dummy_call): Likewise. Reformat some
3363 expressions.
3364 (mips_o32_push_dummy_call): Likewise.
3365 (mips_o64_push_dummy_call): Likewise.
3366
3367 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3368
3369 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
3370 comment.
3371
3372 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3373
3374 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
3375 comment.
3376 (mips_o32_push_dummy_call): Likewise.
3377
3378 2007-04-17 Andreas Schwab <schwab@suse.de>
3379
3380 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
3381 sal to be bigger than the end of the function.
3382
3383 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3384 Nigel Stephens <nigel@mips.com>
3385
3386 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
3387 argument alignment requirements when calculating stack space
3388 required. When aligning an arg register to eight bytes
3389 boundary, align stack_offset too. Write floating-point
3390 arguments to the appropriate integer register if need go there.
3391 (mips_o64_push_dummy_call): Likewise.
3392
3393 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
3394
3395 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
3396 "sig" arguments, add "regcache" argument.
3397 * gdbarch.c, gdbarch.h: Regenerate.
3398
3399 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
3400 (handle_inferior_event): Call remove_single_step_breakpoints directly
3401 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
3402
3403 * alpha-tdep.c (alpha_software_single_step): Update argument list.
3404 Remove handling of !insert_breakpoints_p case.
3405 * arm-tdep.c (arm_software_single_step): Likewise.
3406 * cris-tdep.c (cris_software_single_step): Likewise.
3407 * mips-tdep.c (mips_software_single_step): Likewise.
3408 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3409 * sparc-tdep.c (sparc_software_single_step): Likewise.
3410 * spu-tdep.c (spu_software_single_step): Likewise.
3411
3412 * alpha-tdep.h (alpha_software_single_step): Update prototype.
3413 * mips-tdep.h (mips_software_single_step): Likewise.
3414 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3415 * sparc-tdep.h (sparc_software_single_step): Likewise.
3416
3417 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
3418
3419 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
3420 when removing single-step breakpoints.
3421
3422 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
3423
3424 * varobj.h (varobj_set_frozen): New
3425 (varobj_get_frozen): New.
3426 (varobj_update): New parameter explicit.
3427 * varobj.c (struct varobj): New fields frozen
3428 and not_fetched.
3429 (varobj_set_frozen, varobj_get_frozen): New.
3430 (install_new_value): Don't fetch values for
3431 frozen variable object, or children thereof. Allow
3432 a frozen variable object to have non-fetched value.
3433 (varobj_update): Allow updating child variables.
3434 Don't traverse frozen children.
3435 (new_variable): Initialize the frozen field.
3436 (c_value_of_variable): Return NULL for frozen
3437 variable without any value yet.
3438 * mi/mi-cmd-var.c (varobj_update_one): New parameter
3439 'explicit'.
3440 (mi_cmd_var_create): Output the 'frozen' field,
3441 as soon as testsuite is adjusted to expect that field.
3442 (mi_cmd_var_set_frozen): New.
3443 (mi_cmd_var_update): Pass the 'explicit' parameter to
3444 varobj_update_one.
3445 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
3446 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
3447
3448 2007-04-13 Paul Brook <paul@codesourcery.com>
3449
3450 * target-descriptions.c (tdesc_named_type): Add ieee_single and
3451 ieee_double.
3452 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
3453
3454 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3455
3456 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
3457 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
3458 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
3459 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
3460 * Makefile.in: Remove references to deleted files.
3461 * README: Do not mention deleted ROM monitor interfaces.
3462 * defs.h (enum language): Delete language_scm.
3463 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
3464 (dump_subexp_body_standard): Likewise.
3465 * parse.c (operator_length_standard): Likewise.
3466 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
3467 * remote-mips.c: Do not include remote-utils.h.
3468 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
3469 throughout.
3470 * value.c: Do not include scm-lang.h.
3471 (unpack_long): Delete scm_unpack call.
3472 * config/h8300/h8300.mt, config/mips/embed.mt,
3473 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
3474 config/sh/embed.mt, config/sh/linux.mt: Remove references to
3475 deleted files.
3476 * NEWS: Mention removed files.
3477
3478 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3479
3480 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
3481 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
3482
3483 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3484
3485 * NEWS: Mention removal of HP aCC support.
3486
3487 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3488
3489 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
3490 first entry for static executables.
3491 (breakpoint_addr): Delete unused variable.
3492 (elf_locate_base): Search for _r_debug in static executables.
3493 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
3494 also.
3495
3496 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3497
3498 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
3499 (bpstat_what, print_one_breakpoint, allocate_bp_location)
3500 (mention): Remove bp_through_sigtramp support.
3501 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
3502
3503 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3504
3505 * breakpoint.c (bpstat_what): Give step-resume higher priority than
3506 shlib events.
3507
3508 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3509
3510 * infrun.c: Doc fixes.
3511 (handle_inferior_event): Clarify debug message.
3512 (insert_step_resume_breakpoint_at_sal): Print a debug message.
3513
3514 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
3515
3516 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
3517
3518 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
3519
3520 * config/m68k/tm-monitor.h: Delete file.
3521 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
3522 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
3523 call moved to ...
3524 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
3525 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
3526
3527 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
3528
3529 * gdbarch.sh (software_single_step): Change the return type
3530 from void to int and reformatted some comments to <= 80
3531 columns.
3532 * gdbarch.c, gdbarch.h: Regenerated.
3533 * alpha-tdep.c (alpha_software_single_step): Likewise.
3534 * alpha-tdep.h (alpha_software_single_step): Likewise.
3535 * arm-tdep.c (arm_software_single_step): Likewise.
3536 * cris-tdep.c (cris_software_single_step): Likewise.
3537 * mips-tdep.c (mips_software_single_step): Likewise.
3538 * mips-tdep.h (mips_software_single_step): Likewise.
3539 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3540 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3541 * sparc-tdep.c (sparc_software_single_step): Likewise.
3542 * sparc-tdep.h (sparc_software_single_step): Likewise.
3543 * spu-tdep.c (spu_software_single_step): Likewise.
3544 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
3545 and act accordingly.
3546
3547 2007-04-11 Steve Ellcey <sje@cup.hp.com>
3548
3549 * configure.ac (build_warnings): Add -Wno-char-subscripts.
3550 * configure: Regenerate.
3551 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
3552
3553 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3554
3555 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
3556
3557 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3558
3559 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
3560 macros.
3561 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
3562 distinct on the TYPE_STUB_SUPPORTED debug targets.
3563 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
3564
3565 2007-04-11 Joel Brobecker <brobecker@adacore.com>
3566
3567 * sparc-tdep.c (X_RS2): New macro.
3568 (sparc_skip_stack_check): New function.
3569 (sparc_analyze_prologue): Adjust PC past stack probing
3570 sequence if necessary.
3571
3572 2007-04-10 Andreas Schwab <schwab@suse.de>
3573
3574 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
3575 register.
3576
3577 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3578
3579 * breakpoint.c (gdb_breakpoint_query): Really return an
3580 enum gdb_rc.
3581 (gdb_breakpoint): Likewise.
3582 * thread.c (gdb_list_thread_ids): Likewise.
3583 (gdb_thread_select): Likewise.
3584 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
3585 (mi_cmd_thread_list_ids): Remove bogus initialization.
3586
3587 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3588
3589 * Makefile.in (SFILES): Remove hpacc-abi.c.
3590 (COMMON_OBS): Remove hpacc-abi.o.
3591 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
3592 (hpacc-abi.o, hpread.o): Delete rules.
3593 * somread.c: Delete extern declarations from hpread.c.
3594 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
3595 (som_symfile_finish): Do not call hpread_symfile_finish.
3596 (som_symfile_init): Do not call hpread_symfile_init.
3597 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
3598 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
3599 * hpacc-abi.c, hpread.c: Deleted.
3600
3601 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3602
3603 * solib-svr4.c (enable_break): Simplify return value.
3604 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
3605
3606 2007-04-10 Andreas Schwab <schwab@suse.de>
3607
3608 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
3609 l_ld_size, l_next_size, l_prev_size, l_name_size.
3610
3611 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
3612 to extract addresses from link map.
3613 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
3614 (LM_NEXT): Likewise.
3615 (LM_NAME): Likewise.
3616 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
3617 (elf_locate_base): Likewise.
3618 (open_symbol_file_object): Likewise.
3619 (svr4_fetch_objfile_link_map): Likewise.
3620 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
3621 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
3622 l_ld_size.
3623 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
3624 (svr4_lp64_fetch_link_map_offsets): Likewise.
3625
3626 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
3627 removed members. Set l_ld_offset to -1 if not present.
3628
3629 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
3630
3631 Pass stderr of program run with "target remote |"
3632 via gdb_stderr.
3633 * serial.c (serial_open): Set error_fd to -1.
3634 * serial.h (struct serial): New field error_fd.
3635 (struct serial_opts): New field avail.
3636 * ser-pipe.c (pipe_open): Create another pair
3637 of sockets. Pass stderr to gdb.
3638 * ser-mingw.c (pipe_windows_open): Pass
3639 PEX_STDERR_TO_PIPE to pex_run. Initialize
3640 sd->error_fd.
3641 (pipe_avail): New.
3642 (_initialize_ser_windows): Hook pipe_avail.
3643 * ser-base.c (generic_readchar): Check if there's
3644 anything in stderr channel and route that to gdb_stderr.
3645
3646 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
3647
3648 * dbxread.c (read_ofile_symtab): Move current_objfile
3649 clearing to after end_stabs.
3650
3651 2007-04-01 Andreas Schwab <schwab@suse.de>
3652
3653 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
3654 gdbarch instead of current_gdbarch.
3655
3656 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
3657
3658 * varobj.c (varobj_create): Keep varobj value
3659 NULL when evaluating the type.
3660
3661 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
3662
3663 * NEWS: Mention new Windows CE support.
3664
3665 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
3666
3667 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
3668 the obsoletion stanza.
3669 * NEWS: Mention deleted targets.
3670
3671 * config/sh/tm-wince.h: Remove.
3672 * config/sh/wince.mt: Remove.
3673 * config/mips/tm-wince.h: Remove.
3674 * config/mips/wince.mt: Remove.
3675
3676 * wince.c: Remove.
3677 * wince-stub.c: Remove.
3678 * wince-stub.h: Remove.
3679 * Makefile.in (wince.o): Remove rule.
3680 (wince-stub.o): Likewise.
3681
3682 * mips-tdep.c (mips_next_pc): Make static.
3683 * mips-tdep.h (mips_next_pc): Remove declaration.
3684 * arm-tdep.c (arm_pc_is_thumb): Make static.
3685 (thumb_get_next_pc): Likewise.
3686 (arm_get_next_pc): Likewise.
3687 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
3688 (arm_pc_is_thumb): Likewise.
3689 (thumb_get_next_pc): Likewise.
3690 (arm_get_next_pc): Likewise.
3691
3692 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3693
3694 * MAINTAINERS: Remove d10v entry.
3695 * Makefile.in (SFILES): Remove dwarfread.c.
3696 (COMMON_OBS): Remove dwarfread.o.
3697 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
3698 (remote-est.o, rom68k-rom.o): Delete.
3699 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
3700 target est, target rom68k, and DWARF 1.
3701 * configure.tgt: Mark d10v as removed.
3702 * dwarf2read.c: Doc update.
3703 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
3704 and lnsize.
3705 (elf_locate_sections): Do not set them.
3706 (elf_symfile_read): Do not call dwarf_build_psymtabs.
3707 * symfile.h (dwarf_build_psymtabs): Delete prototype.
3708 * config/m68k/monitor.mt (TDEPFILES): Prune.
3709 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
3710 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
3711
3712 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3713
3714 * doublest.c (convert_floatformat_to_doublest): Use
3715 floatformat_classify.
3716 (floatformat_is_nan): Rename to...
3717 (floatformat_classify): ...this. Return more information.
3718 * doublest.h (enum float_kind): New.
3719 (floatformat_is_nan): Replace prototype...
3720 (floatformat_classify): ...with this one.
3721 * valprint.c (print_floating): Use floatformat_classify. Handle
3722 infinity.
3723
3724 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3725
3726 * README: Mention ISO C library requirement.
3727
3728 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3729
3730 * Makefile.in (SFILES): Remove nlmread.c.
3731 (COMMON_OBS): Remove nlmread.o.
3732 (nlmread.o): Delete rule.
3733 * README: Delete reference to remote-st.c.
3734 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
3735 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
3736 GDB_OSABI_LYNXOS.
3737 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
3738 (_initialize_i386_tdep): Do not reference them.
3739 * nlmread.c: Delete file.
3740 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
3741 * target.c: Doc update.
3742 * thread.c: Delete commented include.
3743 * config/alpha/tm-alpha.h: Doc update.
3744
3745 2007-03-30 Chris Dearman <chris@mips.com>
3746
3747 * utils.c (string_to_core_addr): Comment typo.
3748
3749 2007-03-30 Chris Dearman <chris@mips.com>
3750
3751 * mips-tdep.c: Comment typo.
3752
3753 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
3754
3755 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
3756 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
3757 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
3758 * config/powerpc/nm-ppc64-linux.h: Remove file.
3759 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
3760 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
3761 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
3762 * infptrace.c (call_ptrace): Likewise.
3763 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
3764 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
3765 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
3766 (store_register): Likewise.
3767
3768 2007-03-29 Joel Brobecker <brobecker@adacore.com>
3769
3770 * Makefile.in (varobj.o): Add missing dependency.
3771
3772 2007-03-29 Michael Snyder <msnyder@access-company.com>
3773
3774 * MAINTAINERS: Update my email address.
3775
3776 2007-03-29 Joel Brobecker <brobecker@adacore.com>
3777
3778 Add support for exception handling with multiple versions of
3779 the Ada runtime:
3780 * ada-lang.c: Update general comments on how Ada exception catchpoints
3781 are implemented.
3782 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
3783 (__gnat_raise_nodefer_with_msg): Delete.
3784 (ada_unhandled_exception_name_addr_ftype): New type.
3785 (exception_support_info): New type.
3786 (ada_unhandled_exception_name_addr): Add forward declaration.
3787 (ada_unhandled_exception_name_addr_from_raise): Likewise.
3788 (default_exception_support_info): New constant.
3789 (exception_support_info_fallback): Likewise.
3790 (exception_info): New global variable.
3791 (ada_exception_support_info_sniffer): New function.
3792 (ada_executable_changed_observer): Likewise.
3793 (ada_unhandled_exception_name_addr_from_raise): Renamed from
3794 ada_unhandled_exception_name_addr.
3795 (ada_unhandled_exception_name_addr): Reimplement to match the
3796 latest Ada runtime implementation.
3797 (error_breakpoint_runtime_sym_not_found): Delete.
3798 (ada_exception_sym_name): Get the exception sym name from
3799 exception_info rather than hardcoding it.
3800 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
3801 Update error handling.
3802 * Makefile.in (ada-lang.o): Add dependency on observer.h.
3803
3804 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
3805
3806 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
3807 (remote-st.o, uw-thread.o): Delete.
3808 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
3809 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
3810 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
3811 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
3812 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
3813 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
3814 rs6000-*-lynxos* to an obsoletion stanza.
3815 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
3816 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
3817 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
3818 i[34567]86-*-netware*.
3819 * NEWS: Mention deleted targets.
3820
3821 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
3822 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
3823 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
3824 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
3825 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
3826 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
3827 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
3828 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
3829 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
3830 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
3831 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
3832 config/rs6000/tm-rs6000ly.h: Delete files.
3833
3834 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
3835
3836 * defs.h (deprecated_registers_changed_hook): Delete declaration.
3837 * interps.c (clear_interpreter_hooks): Do not clear
3838 deprecated_registers_changed_hook.
3839 * regcache.c (registers_changed): Do not call it.
3840 * top.c (deprecated_registers_changed_hook): Do not define it.
3841 * mi/mi-interp.c (mi_command_loop): Do not clear it.
3842 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
3843 (tui_remove_hooks): Do not remove it.
3844 (tui_selected_frame_level_changed_hook): Check for negative level.
3845 Use get_selected_frame.
3846 (tui_registers_changed_hook): Deleted.
3847
3848 2007-03-29 Joel Brobecker <brobecker@adacore.com>
3849
3850 * stabsread.c (add_undefined_type): Add extra parameter.
3851 Now handles nameless types separately.
3852 (struct nat): New type.
3853 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
3854 New static variables.
3855 (read_type): Update calls to add_undefined_type.
3856 (add_undefined_type_noname): New function.
3857 (add_undefined_type_1): Renames from add_undefined_type.
3858 (cleanup_undefined_types_noname): New function.
3859 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
3860 (cleanup_undefined_types): New handles nameless types separately.
3861 (_initialize_stabsread): Initialize our new static constants.
3862
3863 2007-03-29 Denis Pilat <denis.pilat@st.com>
3864
3865 * configure.ac: Test for signal.h.
3866 * configure, config.in: Regenerate.
3867
3868 2007-03-29 Denis Pilat <denis.pilat@st.com>
3869
3870 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
3871 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
3872
3873 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
3874
3875 * arm-wince-tdep.c: New.
3876 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
3877 (MT_CFLAGS): Delete.
3878 (TM_CLIBS): Delete.
3879 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
3880 solib-legacy.o, solib-svr4.o, and remove wince.o.
3881 * configure.tgt (arm*-*-mingw32ce*): Add.
3882 * signals/signals.c [HAVE_SIGNAL_H]: Check.
3883 (do_target_signal_to_host): Silence 'not used' warning.
3884 * config/arm/tm-wince.h: Remove.
3885
3886 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
3887
3888 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
3889 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
3890
3891 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
3892 * config/ia64/tm-linux.h: Remove file.
3893 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
3894 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
3895 legacy_pc_in_sigtramp.
3896 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
3897 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
3898 Remove func_name argument.
3899 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
3900
3901 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
3902 * target.c (update_current_target): Add to_have_steppable_watchpoint.
3903 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
3904 (HAVE_STEPPABLE_WATCHPOINT): Define.
3905
3906 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
3907 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
3908 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
3909 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
3910 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
3911 target_insert_watchpoint, target_remove_watchpoint): Remove.
3912 (FETCH_INFERIOR_REGISTERS): Define.
3913 * ia64-linux-nat.c (ia64_register_addr): Make static.
3914 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
3915 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
3916 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
3917 (ia64_linux_stopped_data_address): Make static. Add target_ops.
3918 (ia64_linux_stopped_by_watchpoint): Make static.
3919 (ia64_linux_can_use_hw_breakpoint): New function.
3920 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
3921 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
3922 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
3923
3924 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
3925
3926 * linespec.c: Include language.h.
3927 (find_methods): Add language parameter. Call
3928 lookup_symbol_in_language. Pass language down.
3929 (add_matching_methods): Likewise. Call
3930 lookup_symbol_in_language.
3931 (add_constructors): Likewise.
3932 (find_method): Pass sym_class to collect_methods.
3933 (collect_methods): Add sym_class parameter. Pass language
3934 down.
3935 * symtab.c (lookup_symbol): Rename to ...
3936 (lookup_symbol_in_language): ... this. Add language
3937 parameter. Use passed language instead of current_language.
3938 (lookup_symbol): New as wrapper around
3939 lookup_symbol_in_language.
3940 (lookup_symbol_aux): Add language parameter. Use passed
3941 language instead of current_language.
3942 (search_symbols): Indent.
3943 * symtab.h (enum language): Forward declare.
3944 (lookup_symbol_in_language): Declare.
3945 (lookup_symbol): Update description.
3946 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
3947 * ada-lang.c (restore_language): Remove.
3948 (lookup_symbol_in_language): Remove.
3949
3950 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
3951
3952 * breakpoint.c (bpstat_num): Add int *num parameter.
3953 * breakpoint.h (bpstat_num): Likewise.
3954 * infcmd.c (continue_command): Adjust to new bpstat_num
3955 interface.
3956 (program_info): Likewise.
3957
3958 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
3959
3960 * config/sh/tm-sh.h: Remove file.
3961 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
3962 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
3963 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
3964 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
3965
3966 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
3967
3968 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
3969 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
3970 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
3971 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
3972 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
3973 sequence if target_shortname is "remote".
3974
3975 2007-03-27 Anton Blanchard <anton@samba.org>
3976
3977 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
3978 instead of wordsize when looking for the LR in a stack frame.
3979
3980 2007-03-27 Andreas Schwab <schwab@suse.de>
3981 Daniel Jacobowitz <dan@codesourcery.com>
3982
3983 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
3984 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
3985 argument. Update all callers.
3986 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
3987 (dwarf2_frame_set_eh_frame_regnum): Rename to...
3988 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
3989 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
3990 (dwarf2_frame_set_adjust_regnum): ...this.
3991 (dwarf2_frame_eh_frame_regnum): Delete prototype.
3992 * rs6000-tdep.c: Include "dwarf2-frame.h".
3993 (rs6000_adjust_frame_regnum): Define.
3994 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
3995 Register rs6000_adjust_frame_regnum.
3996
3997 * Makefile.in (rs6000-tdep.o): Update dependencies.
3998
3999 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
4000
4001 * Makefile.in: Add support for a "pdf" target.
4002
4003 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
4004
4005 * amd64-tdep.c (amd64_init_frame_cache): New function.
4006 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
4007
4008 2007-03-26 Nigel Stephens <nigel@mips.com>
4009 Maciej W. Rozycki <macro@mips.com>
4010
4011 * ui-out.c (ui_out_field_core_addr): Truncate address to
4012 TARGET_ADDR_BIT size before printing.
4013
4014 2007-03-22 Nigel Stephens <nigel@mips.com>
4015 Maciej W. Rozycki <macro@mips.com>
4016
4017 * remote-mips.c (mips_xfer_memory): Update prototype.
4018
4019 2007-03-22 Joel Brobecker <brobecker@adacore.com>
4020
4021 * symfile.h: #include "symtab.h"
4022
4023 2007-03-22 Denis Pilat <denis.pilat@st.com>
4024
4025 * utils.c (pagination_on_command, pagination_off_command):
4026 Remove useless prototypes.
4027
4028 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
4029
4030 Fix PR pascal/2232.
4031 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
4032 instead of TYPE_NAME for object base class name.
4033
4034
4035 2007-03-19 Kevin Buettner <kevinb@redhat.com>
4036
4037 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
4038 Specify frame type in calls to frame_func_unwind().
4039
4040 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
4041
4042 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
4043 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
4044 (refine_prologue_limit): Delete.
4045 (skip_prologue): Don't call it. Use extract_unsigned_integer.
4046 Assume lim_pc is set. Correct check for incomplete prologues.
4047 Do not skip clobbers of the frame pointer.
4048 * symtab.c (skip_prologue_using_sal): Fail if there is only one
4049 sal.
4050
4051 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
4052
4053 * frame.c (frame_pop): Check to see whether there's a frame to
4054 which we can pop first.
4055
4056 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
4057
4058 * MAINTAINERS (Write After Approval): Add myself.
4059
4060 2007-03-09 Markus Deuling <deuling@de.ibm.com>
4061
4062 * infrun.c (breakpoints_failed): Remove unnecessary variable.
4063 (handle_inferior_event): Remove unnecessary braces.
4064 * breakpoint.c (bpstat_what): Remove wrong comment.
4065
4066 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
4067
4068 * spu-tdep.c (spu_in_function_epilogue_p): New function.
4069 (spu_gdbarch_init): Install it.
4070
4071 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4072
4073 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
4074 object types, not 0.
4075
4076 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4077
4078 * spu-tdep.c (spu_frame_align): New function.
4079 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
4080
4081 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4082
4083 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
4084 (spu_software_single_step): Likewise.
4085 (spu_read_pc, spu_write_pc): New functions.
4086 (spu_gdbarch_init): Install them.
4087
4088 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4089
4090 * cli/cli-dump.c (struct callback_data): load_offset needs to
4091 have signed long type.
4092
4093 2007-03-07 Joel Brobecker <brobecker@adacore.com>
4094
4095 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
4096 Revert the previous change that had some unexpected side-effects
4097 on mips32.
4098 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
4099 function to get the address of the calling instruction.
4100
4101 2007-03-07 Denis Pilat <denis.pilat@st.com>
4102
4103 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
4104 get_selected_frame by deprecated_safe_get_selected_frame.
4105
4106 2007-03-02 Mark Kettenis <kettenis@gnu.org>
4107
4108 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
4109 "gdb_string.h". Don't include "nbsd-tdep.h".
4110 (SIZEOF_STRUCT_REG): Remove.
4111 (SHNBSD_SIZEOF_GREGS): New.
4112 (shnbsd_supply_gregset, shnbsd_collect_gregset)
4113 (shnbsd_regset_from_core_section): New functions.
4114 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
4115 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
4116 shnbsd_supply_gregset, shnbsd_collect_gregset.
4117 (shnbsd_gregset): New variable.
4118 (shnbsd_init_abi): Set regset_from_core_section.
4119 (GDB_OSABI_NETBSD_CORE): New define.
4120 (shnbsd_core_osabi_sniffer): New function.
4121 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
4122 * Makefile.in (shnbsd-tdep.o): Update dependencies.
4123 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
4124 nbsd-tdep.o.
4125 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
4126
4127 2007-02-28 Joel Brobecker <brobecker@adacore.com>
4128
4129 * gdbtypes.c (replace_type): Fix typo that caused us to not update
4130 length of the types referenced by the new type CV ring.
4131
4132 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4133
4134 * frame.c (frame_pop, frame_observer_target_changed): Call
4135 reinit_frame_cache.
4136 (flush_cached_frames): Rename to reinit_frame_cache and delete
4137 old implementation.
4138 * frame.h (flush_cached_frames): Delete prototype and update comment.
4139
4140 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
4141 reinit_frame_cache instead of flush_cached_frames. Do not call
4142 select_frame after reinit_frame_cache.
4143 * corelow.c (core_open): Likewise.
4144 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
4145 * infrun.c (prepare_to_proceed, context_switch)
4146 (handle_inferior_event): Likewise.
4147 * linux-fork.c (fork_load_infrun_state): Likewise.
4148 * ocd.c (ocd_start_remote): Likewise.
4149 * remote-e7000.c (e7000_start_remote): Likewise.
4150 * remote-mips.c (device): Likewise.
4151 * thread.c (switch_to_thread): Likewise.
4152 * tracepoint.c (finish_tfind_command): Likewise.
4153 * gdbarch.c: Regenerated.
4154
4155 2007-02-28 Jerome Guitton <guitton@adacore.com>
4156 Joel Brobecker <brobecker@adacore.com>
4157
4158 * gdbtypes.c (check_typedef): Do not replace stub type if
4159 the resolved type is not defined in the same objfile.
4160
4161 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4162
4163 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
4164
4165 2007-02-28 Joel Brobecker <brobecker@adacore.com>
4166
4167 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
4168 symbol for Ada units when the symbol is defined using 't' rather
4169 than 'Tt' as symbol descriptor.
4170
4171 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4172
4173 * config/mips/tm-nbsd.h: Delete file.
4174 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
4175 * config/sh/tm-nbsd.h: Delete file.
4176 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
4177
4178 2007-02-28 Joel Brobecker <brobecker@adacore.com>
4179
4180 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
4181 unused WRONG_PARAM value since it was recently deleted.
4182
4183 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
4184
4185 * varobj.c (varobj_update): Free temporary vectors.
4186
4187 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4188
4189 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
4190 * config/powerpc/tm-linux.h: Delete file.
4191 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
4192 (PROCESS_LINENUMBER_HOOK): Do not undefine.
4193 (TEXT_SEGMENT_BASE): Do not redefine.
4194 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
4195 from config/rs6000/tm-rs6000.h.
4196 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
4197 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
4198 (TEXT_SEGMENT_BASE): Remove.
4199 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
4200 (rs6000_in_solib_return_trampoline): Remove.
4201 (SKIP_TRAMPOLINE_CODE): Remove.
4202 (rs6000_skip_trampoline_code): Remove.
4203 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
4204 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
4205 (FP0_REGNUM): Remove.
4206 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
4207 (rs6000_set_host_arch_hook): Remove.
4208 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
4209 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
4210 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
4211 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
4212 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
4213 * rs6000-nat.c: Include "rs6000-tdep.h".
4214 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
4215 (set_host_arch): Rename to ...
4216 (rs6000_create_inferior): ... this. Make public.
4217 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
4218 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
4219 (rs6000_create_inferior): Remove.
4220 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
4221 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
4222 set_gdbarch_in_solib_return_trampoline, and
4223 set_gdbarch_skip_trampoline_code.
4224 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
4225 from config/rs6000/tm-rs6000.h.
4226
4227 2007-02-27 Joel Brobecker <brobecker@adacore.com>
4228
4229 * buildsym.c (record_producer): Do nothing if no producer is provided.
4230
4231 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
4232
4233 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
4234 to check changelist is non-NULL. Call error if the frontend tries
4235 to update a non-root variable.
4236
4237 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
4238
4239 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4240
4241 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
4242 (dwarf2_frame_sniffer): Update.
4243 (dwarf2_signal_frame_this_id): New function.
4244 (dwarf2_signal_frame_unwind): Use it.
4245 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
4246 * frame.c (frame_func_unwind): Add this_type argument.
4247 (get_frame_func): Update.
4248 (frame_unwind_address_in_block): Add this_type argument and check it.
4249 Fix a typo.
4250 (get_frame_address_in_block): Update.
4251 * frame.h (enum frame_type): Move higher in the file.
4252 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
4253 argument.
4254
4255 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
4256 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
4257 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
4258 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
4259 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
4260 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
4261 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
4262 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
4263 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
4264 frame_func_unwind and frame_unwind_address_in_block to specify
4265 the frame type. Use frame_unwind_address_in_block instead of
4266 frame_pc_unwind in sniffers.
4267
4268 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4269
4270 * frame.c (deprecated_selected_frame): Rename to...
4271 (selected_frame): ...this. Make static.
4272 (get_selected_frame, select_frame): Update.
4273 * frame.h (deprected_select_frame): Delete.
4274 (deprecated_safe_get_selected_frame): Update comments.
4275
4276 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
4277 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
4278 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
4279 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
4280 tui/tui.c: Replace references to deprecated_selected_frame.
4281
4282 2007-02-27 Fred Fish <fnf@specifix.com>
4283
4284 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
4285 directly decrement the stack pointer, accumulate their operand into
4286 the stack offset, and mark the function as not being frameless.
4287
4288 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4289
4290 * arch-utils.c (selected_byte_order): New.
4291 * arch-utils.h (selected_byte_order): New prototype.
4292 * remote-sim.c (gdbsim_open): Use selected_byte_order.
4293
4294 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4295
4296 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
4297 (default_symfile_offsets): Check VMA here. Update section VMAs.
4298
4299 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4300
4301 * remote.c (init_remote_state): Add special handling for placeholder
4302 registers.
4303
4304 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4305
4306 * Makefile.in (XMLFILES): Include $(TDEP_XML).
4307 (filenames_h): New variable.
4308 (clean): Clean up xml-builtin.c and stamp-xml.
4309 (arm-linux-nat.o): Update.
4310 * config/arm/linux.mh (TDEP_XML): Define.
4311 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
4312 (arm_linux_has_wmmx_registers): New.
4313 (GET_THREAD_ID): Fix typo.
4314 (IWMMXT_REGS_SIZE): Define.
4315 (fetch_wmmx_regs, store_wmmx_regs): New.
4316 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
4317 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
4318 (super_xfer_partial, arm_linux_xfer_partial): New.
4319 (_initialize_arm_linux_nat): Use them.
4320 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
4321 (xml_builtin_xfer_partial): New function.
4322 * xml-support.h (xml_builtin_xfer_partial): New prototype.
4323 * NEWS: Update mention of iWMMXt support.
4324
4325 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4326
4327 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
4328 if there are no FPA registers.
4329 (arm_dwarf_reg_to_regnum): New function.
4330 (arm_register_type, arm_register_name): Return minimal values for
4331 unsupported registers.
4332 (arm_register_sim_regno): Handle iWMMXt registers.
4333 (arm_gdbarch_init): Record missing FPA registers if indicated by
4334 a target description. Recognize iWMMXt registers. Only register
4335 "info float" for FPA. Use ARM_NUM_REGS. Register
4336 arm_dwarf_reg_to_regnum.
4337 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
4338 constants.
4339 (struct gdbarch_tdep): Add have_fpa_registers.
4340 * features/xscale-iwmmxt.xml: Update capitalization.
4341 * regformats/arm-with-iwmmxt.dat: Regenerated.
4342
4343 2007-02-24 Kevin Buettner <kevinb@redhat.com>
4344
4345 * NEWS (New targets): Add entry for the Toshiba Media Processor.
4346
4347 2007-02-23 Kevin Buettner <kevinb@redhat.com>
4348
4349 * MAINTAINERS (mep): New target.
4350
4351 2007-02-23 Kevin Buettner <kevinb@redhat.com>
4352
4353 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
4354 Richard Sandiford:
4355 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
4356 (mep-tdep.o): New rule.
4357 * configure.tgt (mep-*-*): New target.
4358 * mep-tdep.c: New file.
4359 * config/mep/mep.mt: New file.
4360
4361 2007-02-22 Markus Deuling <deuling@de.ibm.com>
4362
4363 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
4364 BREAKPOINT_HIT and STOP_UNKNOWN.
4365
4366 2007-02-22 Markus Deuling <deuling@de.ibm.com>
4367
4368 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
4369
4370 2007-02-20 Joel Brobecker <brobecker@adacore.com>
4371
4372 * gdb_expat.h (XMLCALL): Define if not already defined.
4373
4374 2007-02-20 Andreas Schwab <schwab@suse.de>
4375
4376 * Makefile.in (symfile.o): Update dependencies.
4377
4378 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
4379
4380 * MAINTAINERS: Disable -Werror for cris simulator. Build
4381 sparc64-solaris2.10 instead of the broken sparc-elf.
4382 * solib-frv.c: Include "solib.h".
4383 * Makefile.in (solib-frv.o): Update.
4384 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
4385 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
4386 (xtensa_frame_this_id, xtensa_frame_prev_register)
4387 (xtensa_push_dummy_call): Use %p.
4388
4389 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
4390
4391 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
4392 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
4393 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4394 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
4395 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
4396 (sparc-linux-tdep.o): Update.
4397
4398 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
4399
4400 * xtensa-tdep.h (xtensa_reg_mask_t): New.
4401 (xtensa_mask_t): Change mask field to be a separate array.
4402 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
4403 (xtensa_pseudo_register_write, xtensa_unwind_pc)
4404 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
4405 (xtensa_breakpoint_from_pc): Remove implicit type casting.
4406 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
4407 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
4408 (mask14, mask15): Rename to
4409 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
4410 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
4411 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
4412 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
4413 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
4414 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
4415 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
4416 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
4417 (xtensa_submask14, xtensa_submask15): New.
4418 (rmap): Follow strict aliasing rules doing static initialization.
4419
4420 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
4421
4422 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
4423 handling from here...
4424 (tdesc_register_type): ...to here.
4425 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
4426 * features/arm-core.xml: Use code_ptr and data_ptr.
4427
4428 2007-02-13 Denis Pilat <denis.pilat@st.com>
4429
4430 * varobj.h (enum varobj_update_error): New enum.
4431 * varobj.c (struct varobj_root): Add is_valid member.
4432 (varobj_get_type): Check for invalid varobj.
4433 (varobj_get_attributes): Likewise.
4434 (variable_editable):Likewise.
4435 (varobj_update): Likewise. Use varobj_update_error.
4436 (new_root_variable): Set root varobj as valid by default.
4437 (varobj_invalidate): New function.
4438 * symfile.c (clear_symtab_users): Use varobj_invalidate.
4439 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
4440 Use varobj_update_error.
4441
4442 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
4443
4444 Fix PR pascal/2223.
4445 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
4446 Pascal language marker.
4447 * dwarf2read.c (set_cu_language): Likewise.
4448
4449 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
4450
4451 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
4452 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
4453 instead of target_terminal_init since inferior_ptid isn't set yet.
4454
4455 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
4456
4457 * MAINTAINERS (Write After Approval): Add myself.
4458
4459 2007-02-09 Fred Fish <fnf@specifix.com>
4460
4461 Based on work by Apple Computer, Inc.
4462 * event-top.c (async_request_quit): Call quit() whenever either
4463 quit_flag is set or immediate_quit is set.
4464
4465 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
4466
4467 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
4468 type to a pointer to const struct block.
4469 (ada_lookup_symbol_list): Don't cast away constness when calling
4470 remove_out_of_scope_renamings.
4471
4472 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
4473
4474 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
4475 address of 'filename'; it is always non null.
4476
4477 2007-02-09 Joel Brobecker <brobecker@adacore.com>
4478
4479 * exec.c (add_to_section_table): Do not discard empty sections.
4480
4481 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4482
4483 * features/Makefile, features/arm-with-iwmmxt.xml,
4484 features/gdbserver-regs.xsl, features/number-regs.xsl,
4485 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
4486 * regformats/arm-with-iwmmxt.dat: Generate.
4487 * NEWS: Mention iWMMXt.
4488
4489 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4490
4491 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
4492 (xml-tdesc.o): Update.
4493 * xml-support.c: Add a comment.
4494 (gdb_xml_enums_boolean): New variable.
4495 (gdb_xml_parse_attr_enum): Use strcasecmp.
4496 * xml-support.h (gdb_xml_enums_boolean): Declare.
4497 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
4498 next_regnum, and current_union.
4499 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
4500 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
4501 (field_attributes, union_children, reg_attributes, union_attributes)
4502 (vector_attributes, feature_attributes, feature_children): New.
4503 (target_children): Make static. Add <feature>.
4504 (tdesc_elements): Make static.
4505 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
4506 (struct tdesc_feature, tdesc_feature_p): New types.
4507 (struct target_desc): Add features member.
4508 (struct tdesc_arch_data, tdesc_data): New.
4509 (target_find_description): Clarify error message. Warn about
4510 ignored register descriptions.
4511 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4512 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
4513 (tdesc_data_cleanup, tdesc_numbered_register)
4514 (tdesc_numbered_register_choices, tdesc_find_register)
4515 (tdesc_register_name, tdesc_register_type)
4516 (tdesc_remote_register_number, tdesc_register_reggroup_p)
4517 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
4518 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
4519 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
4520 (tdesc_create_feature, tdesc_record_type): New.
4521 (free_target_description): Free features.
4522 (_initialize_target_descriptions): Initialize tdesc_data.
4523 * arch-utils.c (default_remote_register_number): New.
4524 * arch-utils.h (default_remote_register_number): New prototype.
4525 * target-descriptions.h (set_tdesc_pseudo_register_name)
4526 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
4527 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
4528 (tdesc_numbered_register, tdesc_numbered_register_choices)
4529 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4530 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
4531 (tdesc_create_reg): Declare.
4532 * gdbarch.sh (remote_register_number): New entry.
4533 * gdbarch.c, gdbarch.h: Regenerate.
4534 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
4535 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
4536
4537 * arm-tdep.c (arm_register_aliases): New.
4538 (arm_register_name_strings): Rename to...
4539 (arm_register_names): ...this. Make const. Delete the old version.
4540 (current_option, arm_register_byte): Delete.
4541 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
4542 (value_of_arm_user_reg): New.
4543 (arm_gdbarch_init): Verify any described registers. Call
4544 tdesc_use_registers. Don't use arm_register_byte. Create aliases
4545 for standard register names.
4546 (_initialize_arm_tdep): Do not adjust arm_register_names.
4547 * user-regs.c (struct user_reg): Add baton member.
4548 (append_user_reg, user_reg_add_builtin, user_regs_init)
4549 (user_reg_add, value_of_user_reg): Use a baton for user
4550 register functions.
4551 * std-regs.c: Update.
4552 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
4553 (user_reg_add): Add baton argument.
4554 * NEWS: Mention target description register support.
4555 * features/arm-core.xml, features/arm-fpa.xml: New.
4556 * eval.c (evaluate_subexp_standard): Allow ptype $register
4557 when the program is not running.
4558
4559 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
4560
4561 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
4562
4563 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
4564
4565 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
4566 info->disassembler_options to "any".
4567
4568 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4569
4570 * varobj.c (install_new_value): Only call value_get_print_value
4571 if changeable.
4572
4573 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4574
4575 Reported by timeless@gmail.com:
4576 * gdb/target.c (target_flash_erase): Do not return void value.
4577 (target_flash_done): Likewise.
4578 * gdb/cli/cli-cmds.c (source_command): Likewise.
4579
4580 2007-02-08 Fred Fish <fnf@specifix.com>
4581
4582 Based on work by Apple Computer, Inc.
4583 * event-top.c (handle_sigint): Set quit_flag.
4584 (async_request_quit): Don't set quit_flag. Avoid calling quit()
4585 if quit_flag has already been reset.
4586
4587 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4588
4589 * ser-mingw.c (pipe_windows_close): Move variable initialization back
4590 up.
4591
4592 2007-02-08 Fred Fish <fnf@specifix.com>
4593
4594 * defs.h (request_quit): Remove declaration.
4595 * utils.c (request_quit): Remove definition.
4596
4597 2007-02-08 Joel Brobecker <brobecker@gnat.com>
4598 Jan Kratochvil <jan.kratochvil@redhat.com>
4599 Daniel Jacobowitz <dan@codesourcery.com>
4600
4601 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
4602 (skip_prologue): Allow bl->blrl used by PIC code.
4603
4604 2007-02-08 Mark Kettenis <kettenis@gnu.org>
4605 Daniel Jacobowitz <dan@codesourcery.com>
4606
4607 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
4608 initialize tmp_obstack.
4609 * p-valprint.c (pascal_object_print_value_fields)
4610 (pascal_object_print_value): Likewise.
4611
4612 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4613
4614 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
4615
4616 2007-02-08 Mark Kettenis <kettenis@gnu.org>
4617
4618 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4619 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
4620
4621 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
4622
4623 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
4624 (xml_cache): New.
4625 (tdesc_parse_xml): Cache expanded descriptions.
4626
4627 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
4628
4629 * Makefile.in (XMLFILES): New.
4630 (COMMON_OBS): Add xml-builtin.o.
4631 (xml-builtin.c, stamp-xml): New rules.
4632 (xml-tdesc.o): Update.
4633 * features/feature_to_c.sh: New file.
4634 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
4635 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
4636 (gdb_xml_start_element): Initialize scope after possibly reallocating
4637 scopes. Move cleanup later. Handle the XInclude description
4638 specially.
4639 (gdb_xml_end_element): Only parse the body if there is a current element.
4640 Call XML_DefaultCurrent if there is no element.
4641 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
4642 (struct xinclude_parsing_data, xinclude_start_include)
4643 (xinclude_end_include, xml_xinclude_default)
4644 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
4645 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
4646 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
4647 * xml-support.h (xml_fetch_another, xml_process_xincludes)
4648 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
4649 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
4650 XInclude directives. Use the compiled in DTD.
4651 (fetch_xml_from_file): Add baton argument. Treat it as a containing
4652 directory name. Do not warn here.
4653 (file_read_description_xml): Update call. Warn here instead. Pass
4654 a dirname as baton.
4655 (fetch_available_features_from_target): New.
4656 (target_read_description_xml): Use it.
4657 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
4658 to handle XInclude.
4659 * features/xinclude.dtd: New file.
4660
4661 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
4662
4663 * linux-thread-db.c (check_for_thread_db): Return early if we have
4664 no libthread_db support.
4665
4666 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
4667
4668 * mi/mi-parse.h: Include <sys/time.h>.
4669
4670 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
4671
4672 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
4673 instead of print_variable_value to print values.
4674
4675 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
4676
4677 * mi/mi-main.c: Numerous formatting changes.
4678 (mi_cmd_data_write_register_values): Replace clause inadvertantly
4679 removed in my previous change.
4680
4681 2007-02-03 Eli Zaretskii <eliz@gnu.org>
4682
4683 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
4684 Use 1000000L instead of 1000000.
4685
4686 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
4687
4688 Based on work by Apple Computer, Inc.
4689
4690 * configure.ac: Test for sys/resource.h and getrusage.
4691 * configure, config.in: Regenerate.
4692
4693 * mi/mi-main.c: Include <sys/resource.h> if present.
4694 (rusage): Declare if HAVE_GETRUSAGE.
4695 (current_command_ts, do_timings): New static variables.
4696 (timestamp, print_diff_now, print_diff, timeval_diff):
4697 New static timing functions.
4698 (mi_cmd_enable_timings): New function for new MI command.
4699 (captured_mi_execute_command, mi_execute_async_cli_command):
4700 Call timing functions.
4701
4702 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
4703 -enable-timings.
4704
4705 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
4706
4707 * mi/mi-parse.h: (mi_timestamp): New structure.
4708 (mi_parse): Add mi_timestamp* member.
4709
4710 2007-02-02 Denis Pilat <denis.pilat@st.com>
4711
4712 * thread.c (make_cleanup_restore_current_thread): New function.
4713 (info_threads_command): Use of make_cleanup_restore_current_thread
4714 to restore the current thread and the selected frame.
4715 (restore_selected_frame): New function.
4716 (struct current_thread_cleanup): Add frame_id field.
4717 (do_restore_current_thread_cleanup): Add restoring of the selected
4718 frame.
4719 (make_cleanup_restore_current_thread): Likewise.
4720 (thread_apply_all_command): backup the selected frame while
4721 entering the function and restore it at exit.
4722 (thread_apply_command): Likewise.
4723
4724 2007-02-02 Denis Pilat <denis.pilat@st.com>
4725
4726 * MAINTAINERS (Write After Approval): Add myself to the list.
4727
4728 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4729
4730 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
4731 (m32r_store_register): Ditto.
4732
4733 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
4734
4735 * ser-mingw.c (pipe_windows_open)
4736 (pipe_windows_read, pipe_windows_write): Declare
4737 variables at the top of the function.
4738
4739 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
4740
4741 * doublest.c (floatformat_from_length): Use the right element from
4742 gdbarch floatformats.
4743 (floatformat_from_type, extract_typed_floating)
4744 (store_typed_floating): Likewise.
4745 * doublest.h: Remove declarations for undefined floatformat arrays.
4746 * gdbarch.sh (float_format, double_format, long_double_format): Change
4747 to pairs.
4748 (pformat): Update for pairs.
4749 * gdbarch.c, gdbarch.h: Regenerated.
4750 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
4751 (floatformats_ieee_double_littlebyte_bigword)
4752 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
4753 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
4754 (floatformats_vax_d): New variables.
4755 (builtin_type_ieee_single, builtin_type_ieee_double)
4756 (builtin_type_arm_ext, builtin_type_ia64_spill)
4757 (builtin_type_ia64_quad): Replace arrays with individual types.
4758 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
4759 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
4760 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
4761 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
4762 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
4763 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
4764 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
4765 unused and endian-specific types.
4766 (recursive_dump_type): Update for floatformat pairs.
4767 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
4768 (build_gdbtypes): Use build_flt.
4769 (_initialize_gdbtypes): Update set of initialized types.
4770 * gdbtypes.h: Update declarations to match gdbtypes.c.
4771 (struct main_type): Store a pointer to two floatformats.
4772 * arch-utils.c (default_float_format, default_double_format): Delete.
4773 * arch-utils.h (default_float_format, default_double_format): Delete.
4774
4775 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
4776 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
4777 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
4778 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
4779 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
4780
4781 2007-01-29 Joel Brobecker <brobecker@adacore.com>
4782
4783 * target.c (maintenance_print_target_stack): New function.
4784 (initialize_targets): Add new "maintenance print target-stack"
4785 command.
4786
4787 2007-01-28 Mark Kettenis <kettenis@gnu.org>
4788
4789 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
4790
4791 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
4792
4793 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
4794 (struct dwarf2_loclist_baton): Likewise.
4795
4796 2007-01-27 Eli Zaretskii <eliz@gnu.org>
4797
4798 * cli/cli-script.c: Include breakpoint.h.
4799 (build_command_line): Require arguments only for if and while
4800 commands.
4801 (get_command_line, execute_user_command, execute_control_command):
4802 Fix wording of warning messages.
4803 (print_command_lines): Print breakpoint commands.
4804 (execute_control_command): Call commands_from_control_command to
4805 handle the `commands' command inside a body of a flow-control
4806 command.
4807 (read_next_line): Recognize the `commands' command and build a
4808 command line structure for it.
4809 (recurse_read_control_structure, read_command_lines): Handle
4810 `commands' similarly to `if' and `while'.
4811
4812 * breakpoint.c (get_number_trailer): Document the special meaning
4813 of NULL as the first argument PP.
4814 (commands_from_control_command): New function.
4815
4816 * breakpoint.h (commands_from_control_command): Add prototype.
4817
4818 * defs.h (commands_control): New enumerated value for enum
4819 command_control_type.
4820
4821 2007-01-26 Joel Brobecker <brobecker@adacore.com>
4822
4823 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
4824 (ada_exception_sal): Update accordingly.
4825
4826 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4827
4828 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
4829 * NEWS: Describe CHAR array vs. string identifcation rules.
4830
4831 2007-01-25 Paul Brook <paul@codesourcery.com>
4832
4833 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
4834
4835 2007-01-24 Jim Blandy <jimb@codesourcery.com>
4836
4837 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
4838 expression is empty, bother to return the 'optimized out' value we
4839 construct. (Thanks to Carl Burch.)
4840
4841 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
4842
4843 * varobj.c (c_value_of_root, c_value_of_child)
4844 (cplus_describe_child): Don't call release_value.
4845
4846 2007-01-24 Thiemo Seufer <ths@mips.com>
4847
4848 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
4849 initialization.
4850
4851 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
4852
4853 Refactor getting children name, value and type access
4854 for varobjs in C++.
4855 * varobj.c (get_type_deref): Remove.
4856 (adjust_value_for_child_access): New.
4857 (c_number_of_children): Use the above.
4858 (c_describe_child): Likewise.
4859 (enum accessibility): New.
4860 (match_accessibility): New function.
4861 (cplus_describe_child): New function.
4862 (cplus_name_of_child, cplus_value_of_child)
4863 (cplus_type_of_child): Reimplement in terms
4864 of cplus_describe_child.
4865 (cplus_number_of_children): Use
4866 adjust_value_for_child_access.
4867
4868 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
4869
4870 Fix computation of the 'editable' attribute and
4871 value changeability for for references.
4872 * varobj.c (get_value_type): New function.
4873 (c_variable_editable): Use get_value_type.
4874 (varobj_value_is_changeable): Likewise.
4875
4876 2007-01-24 Joel Brobecker <brobecker@adacore.com>
4877
4878 * source.c (find_and_open_source): Try rewriting the source
4879 path inside filename if dirname is NULL.
4880
4881 2007-01-24 Joel Brobecker <brobecker@adacore.com>
4882
4883 * dwarf2read.c (add_partial_symbol): Create an extra partial
4884 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
4885 (new_symbol): Likewise for symbols.
4886
4887 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
4888
4889 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
4890
4891 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
4892
4893 * value.c (value_primitive_field): Copy the full 'location'
4894 contents, instead of assuming that copying ADDRESS will
4895 bring over everything in the union. Remove obsolete comment.
4896
4897 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
4898
4899 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
4900 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
4901 (m32c_m16c_pointer_to_address): Separate code from declarations.
4902
4903 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
4904
4905 * target.c (update_current_target): Correct typo.
4906
4907 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
4908
4909 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
4910 declaration.
4911
4912 2007-01-11 Andrew Cagney <cagney@redhat.com>
4913 Daniel Jacobowitz <dan@codesourcery.com>
4914 Jan Kratochvil <jan.kratochvil@redhat.com>
4915
4916 * dwarf2-frame.c (execute_cfa_program): New support of
4917 `DW_CFA_GNU_negative_offset_extended'.
4918
4919 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
4920
4921 * NEWS: Mention flash support for "load" and new remote packets.
4922
4923 2007-01-21 Markus Deuling <deuling@de.ibm.com>
4924
4925 * breakpoint.c (delete_command): Skip redundant loop iterations.
4926
4927 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
4928
4929 * gdbarch.sh (register_type): Update comment.
4930 * gdbarch.h: Regenerated.
4931 * arch-utils.c (generic_register_size): Call register_type.
4932 * ia64-tdep.c (ia64_extract_return_value): Likewise.
4933 * m32c-tdep.c (check_for_saved): Likewise.
4934 * mips-tdep.c (mips_print_register, print_gp_register_row)
4935 (mips_print_registers_info): Likewise.
4936 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
4937 Likewise.
4938 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
4939 (sh64_do_register, sh64_print_register)
4940 (sh64_media_print_registers_info): Likewise.
4941 * tui/tui-regs.c (tui_register_format): Likewise.
4942
4943 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
4944
4945 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
4946
4947 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
4948 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
4949 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
4950 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4951 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
4952 (make_symbol_completion_list): Likewise.
4953
4954 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4955 Daniel Jacobowitz <dan@codesourcery.com>
4956
4957 * buildsym.c (end_symtab): Use preallocated symtab if available.
4958 Fill in SYMBOL_SYMTAB.
4959 * buildsym.h (struct subfile): Add symtab member.
4960 * dwarf2read.c (struct dwarf2_cu): Add line_header.
4961 (struct file_entry): Add symtab.
4962 (free_cu_line_header): New function.
4963 (read_file_scope): Use it. Save line_header in the cu. Process
4964 lines before DIEs.
4965 (add_file_name): Initialize new symtab member.
4966 (dwarf_decode_lines): Create symtabs for included files.
4967 (new_symbol): Set SYMBOL_SYMTAB.
4968 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
4969 (search_symbols): Likewise.
4970 * symtab.h (struct symbol): Add symtab member.
4971 (SYMBOL_SYMTAB): Define.
4972
4973 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
4974
4975 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
4976
4977 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
4978
4979 * arch-utils.c (show_endian): Correct reversed condition.
4980
4981 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4982
4983 * MAINTAINERS (Write After Approval): Add myself.
4984
4985 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
4986 Vladimir Prus <vladimir@codesourcery.com>
4987
4988 Fix 'selected frame' varobjs.
4989 * varobj.c (struct varobj): Remove the error field.
4990 (varobj_set_value): Don't check var->error.
4991 (install_new_value): Don't set var->error.
4992 (varobj_update): Always pass the new value
4993 of the root via install_new_value.
4994 (create_child): Don't set error field.
4995 (new_variable): Likewise.
4996 (c_value_of_root): Always reevaluate the value
4997 of selected frame varobjs in the selected frame.
4998 Don't call reinit_frame_cache.
4999
5000 2007-01-15 Joel Brobecker <brobecker@adacore.com>
5001
5002 * source.c (_initialize_source): Improve the help text of
5003 the substitute-path commands.
5004
5005 2007-01-14 Mark Kettenis <kettenis@gnu.org>
5006
5007 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
5008 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
5009 (frv_skip_prologue): Remove prototypes.
5010 (frv_adjust_breakpoint_address): Renamed from
5011 frv_gdbarch_adjust_breakpoint_address.
5012 (frv_gdbarch_init): Adjust.
5013
5014 2007-01-13 Mark Kettenis <kettenis@gnu.org>
5015
5016 * gdbarch.sh (deprecated_extract_return_value)
5017 (deprecated_store_return_value): Remove.
5018 (extract_return_value, store_return_value): Remove default values.
5019 * gdbarch.c, gdbarch.h: Regenerate.
5020 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
5021 (legacy_store_return_value): Remove.
5022 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
5023 Remove.
5024
5025 * mi/mi-main.c: Remove obsolete comment.
5026
5027 * regcache.c, regcache.h (deprecated_register_bytes)
5028 (deprecated_read_register_bytes)
5029 (deprecated_write_register_bytes): Remove.
5030
5031 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
5032 Don't forget to move destination pointer.
5033
5034 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5035
5036 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
5037
5038 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
5039
5040 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
5041 past entry function with recent newlib.
5042
5043 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
5044
5045 * gdb.texinfo (GDB/MI Variable Objects): Improve the
5046 introduction. Specify -var-update more exactly.
5047
5048 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
5049
5050 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
5051
5052 2007-01-10 Jim Blandy <jimb@codesourcery.com>
5053
5054 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
5055 the Global Maintainers' invitation to be a global maintainer.
5056
5057 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
5058
5059 * infrun.c (singlestep_pc): New variable.
5060 (resume): Set singlestep_pc.
5061 (context_switch): Add a debugging message. Flush the frame cache.
5062 (handle_inferior_event): Add debugging messages. Handle thread
5063 hops when a software single step has completed. Let context_switch
5064 handle flushing the frame cache.
5065
5066 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5067
5068 * NEWS: Mention target descriptions, "set tdesc filename",
5069 "unset tdesc filename", "show tdesc filename", and
5070 qXfer:features:read.
5071 * arch-utils.c (choose_architecture_for_target): New function.
5072 (gdbarch_info_fill): Call it.
5073 * target-descriptions.c (struct property): Make members non-const.
5074 (struct target_desc): Add arch member.
5075 (target_description_filename): New variable.
5076 (target_find_description): Try via XML first.
5077 (tdesc_architecture): New.
5078 (free_target_description, make_cleanup_free_target_description): New.
5079 (set_tdesc_property): Call xstrdup.
5080 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
5081 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
5082 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
5083 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
5084 * target-descriptions.h (tdesc_architecture)
5085 (make_cleanup_free_target_description, set_tdesc_architecture): New
5086 prototypes.
5087 * Makefile.in (SFILES): Add xml-tdesc.c.
5088 (COMMON_OBS): Add xml-tdesc.o.
5089 (target-descriptions.o): Update.
5090 (xml-tdesc.o): New rule.
5091 * xml-tdesc.c, xml-tdesc.h: New files.
5092 * remote.c (PACKET_qXfer_features): New enum.
5093 (remote_protocol_features): Add qXfer:features:read.
5094 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
5095 (_initialize_remote): Register qXfer:features:read.
5096 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
5097 * features/gdb-target.dtd: New file.
5098
5099 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5100
5101 * copyright.sh: Clarify error.
5102
5103 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5104
5105 * symtab.c (matching_bfd_sections): Fix VMA matching for
5106 prelinked objects.
5107
5108 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5109
5110 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
5111 nested symbols.
5112
5113 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5114
5115 Updated copyright notices for most files.
5116
5117 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5118
5119 * copyright.sh (prunes): Add step-line.inp and step-line.c.
5120
5121 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5122
5123 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
5124 exec_prefix.
5125 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
5126 '${prefix}'.
5127 * configure, config.in: Regenerate.
5128 * defs.h (debug_file_directory): Declare.
5129 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
5130 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
5131 relocate it if DEBUGDIR_RELOCATABLE.
5132 * symfile.c (debug_file_directory): Make non-static.
5133 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
5134 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
5135 (_initialize_symfile): Don't initialize debug_file_directory here.
5136
5137 2007-01-09 Jim Blandy <jimb@codesourcery.com>
5138
5139 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
5140 statements.
5141
5142 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5143
5144 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
5145 frame_unwind_register to recurse.
5146 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
5147 (alpha_heuristic_frame_prev_register): Likewise.
5148 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
5149 * m32c-tdep.c (m32c_prev_register): Likewise.
5150 * frame.c (frame_register_unwind_location): Remove FIXME.
5151
5152 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5153 Eli Zaretskii <eliz@gnu.org>
5154
5155 * copyright.sh: New file.
5156
5157 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5158
5159 * configure.ac: Check for XML_StopParser.
5160 * xml-support.c (gdb_xml_body_text): Check for an error.
5161 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
5162 (gdb_xml_end_element_wrapper): Likewise.
5163 * config.in, configure: Regenerated.
5164
5165 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
5166
5167 * varobj.c (install_new_value): Always update print_value.
5168 (value_get_print_value): Immediately return NULL for missing
5169 values.
5170
5171 2007-01-08 Jim Blandy <jimb@codesourcery.com>
5172
5173 * configure.ac: Tighten pattern for extracting value of
5174 DEPRECATED_TM_FILE from the target makefile fragment.
5175 * configure: Regenerated.
5176
5177 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
5178
5179 * linux-nat.c (struct simple_pid_list): Add status.
5180 (add_to_pid_list): Record the PID's status.
5181 (linux_record_stopped_pid): Likewise. Make static.
5182 (pull_pid_from_list): Return the saved status.
5183 (linux_nat_handle_extended): Deleted.
5184 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
5185 Make static. Handle non-SIGSTOP for a new thread's first signal.
5186 (flush_callback): Handle unexpected pending signals.
5187 (linux_nat_wait): Update calls to changed functions.
5188 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
5189 Remove prototypes for newly static functions.
5190
5191 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5192
5193 * gdbarch.sh (value_from_register): New gdbarch function.
5194 * gdbarch.c, gdbarch.h: Regenerate.
5195 * findvar.c (default_value_from_register): New function.
5196 (value_from_register): Use gdbarch_value_from_register.
5197 * value.h (default_value_from_register): Declare.
5198 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
5199 spu_value_to_register): Remove.
5200 (spu_value_from_register): New function.
5201 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
5202 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
5203 Call set_gdbarch_value_from_register.
5204 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
5205 s390_value_to_register): Remove.
5206 (s390_value_from_register): New function.
5207 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
5208 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
5209 Call set_gdbarch_value_from_register.
5210
5211 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
5212
5213 * NEWS: Add "set sysroot" and "show sysroot".
5214 * solib.c (solib_absolute_prefix): Delete. Replace
5215 all uses with gdb_sysroot.
5216 (_initialize_solib): Add "set sysroot" and "show sysroot".
5217 Make "solib-absolute-prefix" an alias to it.
5218
5219 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5220
5221 * frame.c (get_frame_register_bytes): New function.
5222 (put_frame_register_bytes): Likewise.
5223 * frame.h (get_frame_register_bytes): Declare.
5224 (put_frame_register_bytes): Likewise.
5225 * findvar.c (value_from_register): Always construct lval_register
5226 values. Use get_frame_register_bytes.
5227 * valops.c (value_assign): Use get_frame_register_bytes and
5228 put_frame_register_bytes.
5229
5230 2007-01-08 Jim Blandy <jimb@codesourcery.com>
5231
5232 * MAINTAINERS: Update Stan Shebs' email address.
5233
5234 2007-01-07 Joel Brobecker <brobecker@adacore.com>
5235
5236 * ada-lang.c (is_known_support_routine): Improve the implementation.
5237
5238 2007-01-06 Joel Brobecker <brobecker@adacore.com>
5239
5240 * ada-lang.c: Add include of source.h.
5241 (is_known_support_routine): Improve the check verifying that the file
5242 associated to this frame exists.
5243 * Makefile.in (ada-lang.o): Add dependency on source.h.
5244
5245 2007-01-07 Jim Blandy <jimb@codesourcery.com>
5246
5247 * ax-general.c (ax_const_l): Select proper opcode for the given
5248 value.
5249
5250 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
5251
5252 * varobj.c (c_value_of_root): Don't select frame if variable
5253 object is out of scope.
5254
5255 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
5256
5257 * varobj.c (struct varobj): New member print_value.
5258 (install_new_value): Compare last printed value with current one
5259 instead of contents.
5260 (new_variable): Initialize var->print_value to NULL.
5261 (free_variable): Free var->print_value.
5262 (value_get_print_value): New function derived from
5263 c_value_of_variable.
5264 (c_value_of_variable): Use value_get_print_value.
5265
5266 2007-01-05 Joel Brobecker <brobecker@adacore.com>
5267
5268 * i386-tdep.c (i386_analyze_stack_align): Add comment.
5269
5270 2007-01-05 Joel Brobecker <brobecker@adacore.com>
5271
5272 * NEWS: Add entries for new catch commands.
5273
5274 2007-01-05 Joel Brobecker <brobecker@adacore.com>
5275
5276 * dwarf2read.c (partial_die_info): Add field has_byte_size.
5277 (add_partial_symbol): Correct identification of external references.
5278 (process_structure_scope): Likewise.
5279 (read_partial_die): Handle DW_AT_byte_size attribute.
5280
5281 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
5282
5283 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
5284
5285 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
5286
5287 * varobj.c (get_type_deref): Fix variable objects for references to
5288 pointers.
5289
5290 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5291
5292 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
5293 with no symbols.
5294
5295 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5296
5297 * memory-map.c (struct_memory_map_parsing_data): Remove most
5298 members. Make property_name an array.
5299 (free_memory_map_parsing_data, memory_map_start_element)
5300 (memory_map_end_element, memory_map_character_data): Delete.
5301 (memory_map_start_memory, memory_map_end_memory)
5302 (memory_map_start_property, memory_map_end_property): New functions.
5303 (property_attributes, memory_children, memory_type_enum)
5304 (memory_attributes, memory_map_children, memory_map_elements): New.
5305 (parse_memory_map): Rewrite.
5306 * xml-support.c (debug_xml): New.
5307 (xml_get_required_attribute, xml_get_integer_attribute)
5308 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
5309 Delete.
5310 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
5311 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
5312 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
5313 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
5314 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
5315 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
5316 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
5317 New.
5318 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
5319 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
5320 (enum gdb_xml_element_flag, struct gdb_xml_element)
5321 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
5322 (struct gdb_xml_enum): New.
5323 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
5324 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
5325 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
5326 (xml_get_required_attribute, xml_get_integer_attribute)
5327 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
5328 * Makefile.in (xml_support_h, xml-support.o): Update.
5329
5330 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5331
5332 * Makefile.in (eval.o): Update dependencies.
5333 * eval.c: Include "ui-out.h" and "exceptions.h".
5334 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
5335 Use value_zero if an error occurs when avoiding side effects.
5336 * varobj.c (c_value_of_root): Initialize new_val.
5337
5338 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5339
5340 * varobj.c (varobj_list_children): Stop if the number of children is
5341 unknown.
5342 (c_number_of_children):
5343
5344 2007-01-04 Mark Kettenis <kettenis@gnu.org>
5345
5346 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
5347 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
5348 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
5349 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
5350 sizeof, instead of hardcoded constants.
5351
5352 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5353
5354 * CONTRIBUTE: Use sourceware.org.
5355
5356 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5357
5358 * buildsym.c (start_subfile): Handle producer.
5359 (record_producer): New function.
5360 * buildsym.h (struct subfile): Include producer.
5361 (record_producer): New prototype.
5362 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
5363 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
5364 armcc_cfa_offsets_reversed.
5365 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
5366 (dwarf2_frame_find_quirks): New function.
5367 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
5368 (decode_frame_entry_1): Record the CIE version. Record the
5369 augmentation. Skip armcc augmentations.
5370 * dwarf2read.c (read_file_scope): Save the producer.
5371 * symtab.h (struct symtab): Rename unused version member to
5372 producer.
5373
5374 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5375
5376 * configure.ac (build_warnings): Use -Wall and
5377 -Wdeclaration-after-statement.
5378 * configure: Regenerated.
5379
5380 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
5381
5382 Simplify access to variours properties of child
5383 variable objects in C.
5384 * varobj.c (value_struct_element_index): New function.
5385 (c_describe_child): New function.
5386 (c_name_of_child, c_value_of_child)
5387 (c_type_of_child): Rewrite to use c_describe_child.
5388
5389 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
5390
5391 gdb/
5392 * varobj.c: Include "vec.h".
5393 (varobj_p): New typedef, declare vector of those.
5394 (struct varobj): Use vector for the 'children' member.
5395 (child_exists): Remove.
5396 (save_child_in_parent): Remove.
5397 (remove_child_from_parent): Remove.
5398 (struct varobj_child): Remove.
5399 (struct vstack): Remove.
5400 (vpush, vpop): Remove.
5401 (varobj_list_children): Adjust to work work vector.
5402 (varobj_update): Likewise. Use vectors for
5403 working stack and result.
5404 (delete_variable_1): Likewise.
5405 * Makefile.in (varobj.o): Update dependencies.
5406
5407 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
5408
5409 Port from Apple's version.
5410 gdb/
5411 * varobj.c (type_changeable): Rename to...
5412 (varobj_value_is_changeable_p): ...this. Adjust all callers.
5413 (is_root_p): New function. Use it everywhere.
5414
5415 2007-01-04 Jim Blandy <jimb@codesourcery.com>
5416
5417 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
5418 then plain 'fixup'.
5419
5420 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5421
5422 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
5423
5424 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5425
5426 * hpread.c (hpread_type_lookup): Fix compilation failure.
5427
5428 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
5429
5430 * NEWS: New port to S+core.
5431 * MAINTAINERS (Write After Approval, Responsible Maintainers):
5432 Add myself.
5433
5434 * Makefile.in: Add dependencies for S+core files.
5435 * configure.tgt (score*, score-*-*): Add S+core target.
5436 * config/score/embed.mt: New file.
5437 * score-tdep.c: New file.
5438 * score-tdep.h: New file.
5439
5440 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5441
5442 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
5443 the appropriate type rather than a bogus void type.
5444
5445 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5446
5447 * ada-lang.h (ada_find_printable_frame): Remove.
5448 (ada_exception_catchpoint_p, ada_decode_exception_location)
5449 (ada_decode_assert_location): Add declaration.
5450 * ada-lang.c: Add include of annotate.h and valprint.h.
5451 (exception_catchpoint_kind): New enum.
5452 (function_name_from_pc, is_known_support_routine)
5453 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
5454 (ada_exception_name_addr_1, ada_exception_name_addr)
5455 (print_it_exception, print_one_exception, print_mention_exception)
5456 (print_it_catch_exception, print_one_catch_exception)
5457 (print_mention_catch_exception, catch_exception_breakpoint_ops)
5458 (print_it_catch_exception_unhandled)
5459 (print_one_catch_exception_unhandled)
5460 (print_mention_catch_exception_unhandled, print_it_catch_assert)
5461 (print_one_catch_assert, print_mention_catch_assert)
5462 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
5463 (ada_get_next_arg, catch_ada_exception_command_split)
5464 (ada_exception_sym_name, ada_exception_sym_name)
5465 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
5466 (ada_parse_catchpoint_condition, ada_exception_sal)
5467 (ada_decode_exception_location)
5468 (ada_decode_assert_location): New function.
5469 (catch_exception_unhandled_breakpoint_ops): New global variable.
5470 (catch_assert_breakpoint_ops): New global variable.
5471 * breakpoint.c: Add include of ada-lang.h.
5472 (print_one_breakpoint): Do not print the condition for Ada
5473 exception catchpoints.
5474 (create_ada_exception_breakpoint): New function.
5475 (catch_ada_exception_command, catch_assert_command): New function.
5476 (catch_command_1): Add support for the new "catch exception" and
5477 "catch assert" commands.
5478 (_initialize_breakpoint): Add help description for the new catch
5479 commands.
5480 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
5481 valprint.h.
5482 (breakpoint.o): Add dependency on ada-lang.h.
5483
5484 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
5485
5486 * coffread.c (cs_to_section): If bfd_section is found, always
5487 return its section index.
5488 (coff_symtab_read): Determine the minimal_symbol_type using the
5489 bfd_section flags.
5490
5491 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5492 Daniel Jacobowitz <dan@codesourcery.com>
5493
5494 * Makefile.in (top.o): Update.
5495 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
5496 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
5497 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
5498 New.
5499 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
5500
5501 2007-01-03 Mark Kettenis <kettenis@gnu.org>
5502
5503 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
5504 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
5505
5506 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
5507
5508 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
5509 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
5510 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
5511 greater than or equal to zero.
5512 * m2-typeprint.c (m2_array): Likewise.
5513 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5514 * gdbtypes.c (copy_type_recursive): Correct == typo.
5515 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
5516 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
5517 greater than zero.
5518 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
5519 (default_macro_scope): Remove unused variable.
5520 * prologue-value.h (pv_area_find_reg): Don't name an argument
5521 "register".
5522 * remote-fileio.c (remote_fio_func_map): Add missing braces.
5523 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
5524 type.
5525 (cleanup_sigint_signal_handler): Remove casts.
5526 * valprint.c (val_print): Use a volatile local for the modified
5527 argument.
5528 * varobj.c (languages): Remove extra array dimension.
5529 (varobj_create): Correct access to languages array.
5530 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
5531 missing braces.
5532 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
5533 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
5534 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
5535 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
5536 (mi_cmd_data_write_memory): Likewise.
5537 * signals/signals.c (target_signal_to_string): Cast to int before
5538 comparing.
5539 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
5540 Update all callers.
5541
5542 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
5543
5544 * NEWS: Mention pointer to member improvements.
5545 * Makefile.in (gnu-v3-abi.o): Delete special rule.
5546 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
5547 * ada-valprint.c (ada_print_scalar): Update for new type codes.
5548 * c-typeprint.c (c_print_type): Update for new type codes.
5549 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
5550 (c_type_print_base): Likewise.
5551 (c_type_print_args): Rewrite.
5552 * c-valprint.c (c_val_print): Update for new type codes. Remove
5553 support for references to members. Treat methods like functions.
5554 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
5555 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
5556 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
5557 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
5558 (struct cp_abi_ops): Add corresponding members.
5559 * cp-valprint.c (cp_print_class_method): Delete.
5560 (cp_find_class_member): New function.
5561 (cp_print_class_member): Use it. Simplify support for bogus
5562 member pointers.
5563 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
5564 lookup_methodptr_type.
5565 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
5566 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
5567 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
5568 pointer support.
5569 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
5570 references returned by user defined operators.
5571 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
5572 (f_type_print_varspec_suffix): Remove support for member pointers.
5573 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
5574 and adjusted.
5575 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
5576 (lookup_methodptr_type): New.
5577 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
5578 (recursive_dump_type): Update for new types.
5579 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
5580 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
5581 (lookup_memberptr_type, lookup_methodptr_type)
5582 (smash_to_memberptr_type): New prototypes.
5583 (smash_to_method_type): Formatting fix.
5584 (lookup_member_type, smash_to_member_type): Delete prototypes.
5585 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
5586 Do not rely on debug information for the vptr or the method's
5587 enclosing type. Handle function descriptors for IA64.
5588 (gnuv3_virtual_fn_field): Rewrite using the new functions.
5589 (gnuv3_find_method_in, gnuv3_print_method_ptr)
5590 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
5591 (gnuv3_method_ptr_to_value): New.
5592 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
5593 * hpread.c (hpread_type_lookup): Update for new types.
5594 * infcall.c (value_arg_coerce): Likewise.
5595 * m2-typeprint.c (m2_print_type): Remove explicit support
5596 for member pointers.
5597 * m2-valprint.c (m2_val_print): Likewise.
5598 * p-typeprint.c (pascal_type_print_varspec_prefix)
5599 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
5600 * p-valprint.c (pascal_val_print): Likewise.
5601 (pascal_object_print_class_method, pascal_object_print_class_member):
5602 Delete.
5603 * p-lang.h (pascal_object_print_class_method)
5604 (pascal_object_print_class_member): Delete prototypes.
5605 * stabsread.c (read_type): Update for new types.
5606 * typeprint.c (print_type_scalar): Likewise.
5607 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
5608 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
5609 argument. Construct a pointer to member if the address of a
5610 function or data member is requested.
5611 (value_cast_pointers): Don't modify the input value.
5612 (value_cast): Adjust pointer to member handling for new types.
5613 Allow null pointer to member constants. Don't modify the input
5614 value.
5615 (value_ind): Remove pointer to member check. Handle function
5616 descriptors for function pointers.
5617 (value_struct_elt, value_find_oload_method_list, check_field):
5618 Remove pointer to member checks.
5619 * value.c (unpack_long): Allow pointers to data members.
5620 (value_from_longest): Allow member pointers.
5621 * value.h (value_aggregate_elt): Add want_address.
5622 * varobj.c (c_variable_editable): Remove check for members.
5623 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
5624 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
5625 in virtual tables.
5626 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
5627 * c-lang.h (cp_print_class_method): Delete prototype.
5628 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
5629 * mips-tdep.c (mips_gdbarch_init): Likewise.
5630 * gdbarch.c, gdbarch.h: Regenerated.
5631
5632 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5633
5634 * rs6000-tdep.c (rs6000_use_struct_convention)
5635 (rs6000_extract_return_value, rs6000_store_return_value)
5636 (rs6000_extract_struct_value_address): Remove.
5637 (rs6000_return_value): New function.
5638 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
5639 store_return_value, deprecated_extract_struct_value_address and
5640 deprecated_use_struct_convention. Use rs6000_return_value
5641 instead.
5642
5643 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
5644
5645 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
5646 -display-disable, -display-enable, -display-insert and
5647 -display-list.
5648
5649 2007-01-01 Joel Brobecker <brobecker@adacore.com>
5650
5651 * breakpoint.c (remove_breakpoint): Remove dead code.
5652
5653 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
5654
5655 * varobj.c: Include block.h.
5656 (c_value_of_root): Check scope within nested statements.
5657
5658 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5659
5660 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
5661 regcache_cooked_write_signed instead of
5662 deprecated_write_register_bytes.
5663
5664 2007-01-01 Joel Brobecker <brobecker@adacore.com>
5665
5666 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
5667
5668 2007-01-01 Joel Brobecker <brobecker@adacore.com>
5669
5670 Followed the Start of New Year Procedure:
5671 * ChangeLog-2006: New file, containing all the entries for 2006.
5672 * ChangeLog: Removed all 2006 entries, and changed the reference
5673 to the previous ChangeLog to point to ChangeLog 2006.
5674 * top.c (print_gdb_version): Update copyright year.
5675
5676 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5677
5678 * Makefile.in (remote-sds.o): Remove.
5679 * remote-sds.c: Delete.
5680
5681 For older changes see ChangeLog-2006.
5682 \f
5683 Local Variables:
5684 mode: change-log
5685 left-margin: 8
5686 fill-column: 74
5687 version-control: never
5688 End:
This page took 0.151051 seconds and 4 git commands to generate.