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