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