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