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