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