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