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