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