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