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