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