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