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