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