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