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