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