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