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