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