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