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