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