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