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