OSDN Git Service

* mi/mi-main.c (mi_cmd_list_features): Announce
[pf3gnuchains/pf3gnuchains3x.git] / gdb / ChangeLog
1 2007-12-18  Vladimir Prus  <vladimir@codesourcery.com>
2
3         * mi/mi-main.c (mi_cmd_list_features): Announce
4         the 'pending-breakpoints' feature.
5
6 2007-12-17  Jim Blandy  <jimb@codesourcery.com>
7
8         * dwarf2read.c (dwarf2_add_field): Correctly scale all byte
9         offsets obtained from DW_AT_data_member_location before recording
10         them in FIELD_BITPOS (*fp).
11
12         * dwarf2read.c (attr_form_is_section_offset): Doc fixes.
13
14 2007-12-17  Nigel Stephens  <nigel@mips.com>
15             Maciej W. Rozycki  <macro@mips.com>
16
17         * utils.c (string_to_core_addr): If the executable format
18         indicates that addresses should be sign-extended and there are
19         only 8 hex digits in the address, then do so.
20         * Makefile.in (utils.o): Depend on $(gdbcore_h).
21
22 2007-12-17  Chris Dearman  <chris@mips.com>
23
24         * symfile.c (init_filename_language_table): Recognise .sx as
25         an assembler file.
26
27 2007-12-17  Joel Brobecker  <brobecker@adacore.com>
28
29         * language.h (enum exp_opcode): Comment out this declaration,
30         undoing the previous change.
31
32 2007-12-17  Luis Machado  <luisgpm@br.ibm.com>
33
34         * breakpoint.c: (watch_command_1): Parse additional optional
35         "thread" parameter to the watchpoint command and set the
36         "thread" member of the breakpoint struct.
37
38 2007-12-17  Luis Machado  <luisgpm@br.ibm.com>
39
40         * breakpoint.c (bpstat_stop_status): Check an additional
41         condition before evaluating an expression value.
42
43 2007-12-17  Joel Brobecker  <brobecker@adacore.com>
44
45         * language.h (enum exp_opcode): Add forward declaration.
46         (language_string_char_type, language_lookup_primitive_type_by_name):
47         Move declaration past declaration of language_defn.
48
49 2007-12-16  Daniel Jacobowitz  <dan@codesourcery.com>
50             Joseph Myers  <joseph@codesourcery.com>
51
52         * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
53         *-*-solaris2.1[[0-9]].
54         * configure: Regenerate.
55         * procfs.c (proc_set_current_signal): If redelivering a signal,
56         reuse the current siginfo if possible.
57
58 2007-12-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
59
60         * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
61         (f_type_print_base): Output the type names directly for real and
62         complex types.
63
64 2007-12-16  Vladimir Prus  <vladimir@codesourcery.com>
65
66         * breakpoint.c (bpstat_have_active_hw_watchpoints):
67         Remove
68         (bpstat_stop_status): Remove unused variable
69         real_breakpoint.
70         * breakpoint.h (bpstat_have_active_hw_watchpoints):
71         Remove prototype.
72
73 2007-12-16  Vladimir Prus  <vladimir@codesourcery.com>
74
75         * target.h (target_pid_or_tid_to_str): Remove.
76         * infrun.c (handle_inferior_event):
77         Use target_pid_to_str instead of 
78         target_pid_or_tid_to_str.
79         (normal_stop): Likewise.
80
81 2007-12-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
82
83         * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
84         DWARF3 equivalent `DW_AT_bit_stride'.
85         Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
86
87 2007-12-16  Joel Brobecker  <brobecker@adacore.com>
88
89         * mi/mi-main.c: Remove code that was commented out in 1999.
90
91 2007-12-16  Joel Brobecker  <brobecker@adacore.com>
92
93         * expression.h (parse_expression_in_context): Delete prototype.
94         * parse.c (parse_expression_in_context): Delete.
95
96 2007-12-14  Vladimir Prus  <vladimir@codesourcery.com>
97
98         Add support for pending breakpoints in MI.
99         * gdb.h (gdb_breakpoint): Add parameter pending.
100         * breakpoint.c (gdb_breakpoint): Add parameter pending.
101         * mi/mi-cmd-break.c (mi_break_insert): Change
102         comment to refer to manual.  Add support for
103         the -f flag, for pending breakpoint.
104
105 2007-12-14  Vladimir Prus  <vladimir@codesourcery.com>
106         
107         * breakpoint.c (break_command_really): New, copied
108         from break_command_1. New parameters COND_STRING, THREAD
109         PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
110         The previous FLAG parameter split into TEMPFLAG and
111         HARDWAREFLAG.
112         When PARSE_CONDITION_AND_THREAD is not set, duplicate
113         the passed condition string.
114         (struct captured_breakpoint_args): Remove
115         (do_captured_breakpoint): Remove.
116         (break_command_1): Relay to break_command_really.
117         (gdb_breakpoint): Relay to break_command_really.
118         
119 2007-12-13  Michael Snyder  <msnyder@specifix.com>
120
121         * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
122
123 2007-12-13  Jim Blandy  <jimb@codesourcery.com>
124
125         * dwarf2read.c (attr_form_is_constant): New function.
126         (dwarf2_add_field): Use it and attr_form_is_section_offset to
127         recognize DW_AT_data_member_location attributes.  Use
128         dwarf2_get_attr_constant_value when the attribute is a constant.
129
130         * dwarf2read.c (attr_form_is_section_offset): New function.
131         (dwarf_add_member_fn, read_common_block, read_partial_die)
132         (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
133
134 2007-12-12  Jim Blandy  <jimb@codesourcery.com>
135
136         Remove unused support for target-based exception catching.
137         * target.h (struct target_ops): Delete
138         to_enable_exception_callback and to_get_current_exception_event
139         members.
140         (target_enable_exception_callback)
141         (target_get_current_exception_event): Delete macros.
142         * target.c (update_current_target): Remove code to inherit and
143         default those members.
144         (debug_to_enable_exception_callback)
145         (debug_to_get_current_exception_event): Delete functions.
146         (setup_target_debug): Don't install those methods.
147         * inf-child.c (inf_child_enable_exception_callback)
148         (inf_child_get_current_exception_event): Delete dummy functions.
149         (inf_child_target): Don't install them in the target vector.
150         * breakpoint.h (enum bptype): Delete bp_catch_catch,
151         bp_catch_throw.
152         * breakpoint.c (cover_target_enable_exception_callback)
153         (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
154         functions.
155         (insert_bp_location, update_breakpoints_after_exec)
156         (remove_breakpoint, ep_is_catchpoint, print_it_typical)
157         (bpstat_stop_status, bpstat_what)
158         (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
159         (user_settable_breakpoint, allocate_bp_location)
160         (disable_watchpoints_before_interactive_call_start)
161         (enable_watchpoints_after_interactive_call_stop, mention)
162         (delete_breakpoint, breakpoint_re_set_one, disable_command)
163         (enable_command): Remove exception catchpoint cases.
164         (catch_exception_command_1): Don't try target-based exception
165         handling.
166         * stack.c (catch_info): Call print_frame_label_vars
167         unconditionally.
168         
169 2007-12-12  Nigel Stephens  <nigel@mips.com>
170             Maciej W. Rozycki  <macro@mips.com>
171
172         * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
173         of setting deprecated_register_valid array directly.
174
175 2007-12-07  Maciej W. Rozycki  <macro@mips.com>
176
177         * mips-tdep.c (extended_offset): Fix a comment.
178
179 2007-12-07  Maciej W. Rozycki  <macro@mips.com>
180
181         * target.c (update_current_target): Inherit to_log_command.
182         * target.h (struct target_ops). Add to_log_command.
183         (target_log_command): New macro.
184         * top.c (execute_command): Call target_log_command() rather than
185         serial_log_command().
186         * monitor.c (init_base_monitor_ops): Initialize to_log_command.
187         * remote-m32r-sdi.c (init_m32r_ops): Likewise.
188         * remote-mips.c (_initialize_remote_mips): Likewise.
189         * remote.c (init_remote_ops): Likewise.
190
191 2007-12-06  Daniel Jacobowitz  <dan@codesourcery.com>
192
193         * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
194         (handle_inferior_event): Clear stop_stack_dummy earlier.
195
196 2007-12-06  Jim Blandy  <jimb@codesourcery.com>
197
198         * addrmap.c (addrmap_splay_tree_remove): New function.
199         (addrmap_mutable_set_empty): Use it.
200
201         * addrmap.c, addrmap.h: Update to GPLv3.
202
203         * addrmap.c (struct addrmap): Make the referenced function table
204         const.
205         (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
206         Don't use designated initializers.
207
208         * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
209         (addrmap_mutable_relocate): Use internal_error, not abort.
210
211         * NEWS: Mention support for non-contiguous lexical blocks and
212         function bodies.
213
214 2007-12-06  Markus Deuling  <deuling@de.ibm.com>
215
216         * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
217         ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
218         gdbarch as parameter.
219         * gdbarch.{c,h}: Regenerate.
220
221         * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
222         Replace current_gdbarch by gdbarch.
223         * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
224         * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
225         (rs6000_dwarf2_reg_to_regnum): Likewise.
226         * mips-tdep.c (mips_stab_reg_to_regnum)
227         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
228         * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
229         * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
230         * i386-tdep.c (i386_dbx_reg_to_regnum)
231         (i386_svr4_reg_to_regnum): Likewise
232         * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
233         (h8300_dbg_reg_to_regnum): Likewise.
234         * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
235         * arch-utils.c (no_op_reg_to_regnum): Likewise.
236         * arch-utils.h (no_op_reg_to_regnum): Likewise.
237         * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
238         * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
239         * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
240         * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
241         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
242
243 2007-12-06  Vladimir Prus  <vladimir@codesourcery.com>
244
245         Localize infrun use of remove_breakpoints.
246         * infrun.c (handle_inferior_event): Remove
247         calls to remove_breakpoints, except where needed to
248         communicate change of breakpoint locations to inferior.
249         (keep_going): If steppping over breakpoint, remove
250         breakpoints.
251
252 2007-12-06  Vladimir Prus  <vladimir@codesourcery.com>  
253         
254         Clarify infrun variable naming.
255         * infrun.c (trap_expected): Rename
256         to stepping_over_breakpoint.  Document.
257         (stepping_past_breakpoint): Remove.
258         (stepping_past_breakpoint_ptdi): Renamed
259         to deferred_step_ptid.
260         (struct execution_control_state): Rename
261         the another_trap field to stepping_over_breakpoint.
262         (struct inferior_status): Rename the trap_expected
263         field to stepping_over_breakpoint.
264         (clear_proceed_status, proceed)
265         (init_execution_control_state, context_switch)
266         (handle_inferior_event, currently_stepping)
267         (keep_going, save_inferior_status)
268         (restore_inferior_status, prepare_to_proceed): Adjust.
269         * gdbthread.h (struct thread_info): Rename the
270         trap_expected field to stepping_over_breakpoint.
271         * thread.c (load_infrun_state, save_infrun_state):
272         Adjust.
273
274 2007-12-06  Pierre Muller  <muller@ics.u-strasbg.fr>
275
276         * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
277         Add "gdb_stdint.h" dependency required for uintptr_t type use.
278         (handle_output_debug_string): Use uintptr_t typecast.
279         (handle_exception): Ditto.
280         (win32_xfer_memory): Ditto.
281         * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
282
283 2007-12-04  Jim Blandy  <jimb@codesourcery.com>
284
285         Support lexical blocks and function bodies that occupy
286         non-contiguous address ranges.
287         * addrmap.c, addrmap.h: New files.
288         * block.h (struct addrmap): New forward declaration.
289         (struct blockvector): New member, 'map'.
290         (BLOCKVECTOR_MAP): New accessor macro.
291         * block.c: #include "addrmap.h"
292         (blockvector_for_pc_sect): If the blockvector we've found has
293         an address map, use it instead of searching the blocks.
294         * buildsym.c: #include "addrmap.h"
295         (pending_addrmap_obstack, pending_addrmap_interesting): New static
296         variables.
297         (really_free_pendings): If we have a pending addrmap, free it too.
298         (record_block_range): New function.
299         (make_blockvector): If we have an interesting pending addrmap,
300         record it in the new blockvector.
301         (start_symtab, buildsym_init): Assert that there is no pending
302         addrmap now; we should have cleaned up any addrmaps we'd built
303         previously.
304         (end_symtab): If there is a pending addrmap left over that didn't
305         get included in the blockvector, free it.
306         * buildsym.h (struct addrmap): New forward declaration.
307         (record_block_range): New prototype.
308         * objfiles.c: #include "addrmap.h".
309         (objfile_relocate): Relocate the blockvector's address map, if
310         present.
311         * dwarf2read.c (dwarf2_record_block_ranges): New function.
312         (read_func_scope, read_lexical_block_scope): Call it.
313         * Makefile.in (SFILES): Add addrmap.c.
314         (addrmap_h): New header dependency variable.
315         (COMMON_OBS): Add addrmap.o.
316         (addrmap.o): New rule.l
317         (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
318
319         * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
320         pointer to the block, not its index in the blockvector.
321         (block_for_pc_sect): Use the returned block, instead of looking it
322         up ourselves.
323         * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
324         declarations.
325         * breakpoint.c (resolve_sal_pc): Use returned block, instead of
326         looking it up ourselves.
327         * stack.c (print_frame_label_vars): Disable function, which
328         depends on the block's index.
329
330         * buildsym.c (finish_block): Return the block we've built.
331         * buildsym.h (finish_block): Update prototype.
332
333         * defs.h (CORE_ADDR_MAX): New constant.
334
335 2007-12-04  Ulrich Weigand  <uweigand@de.ibm.com>
336
337         * coffread.c (decode_type): Use builtin_type_int32 instead
338         of FT_INTEGER fundamental type for array range index type.
339         (decode_base_type): Use builtin types of current_gdbarch
340         instead of fundamental types.
341
342         * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
343         (read_file_scope): Do not initialize ftypes member.
344         (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
345         (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
346         fundamental type for array range index type.
347         (read_tag_string_type): Likewise for string range index type.
348         Also, do not overwrite FT_CHAR type with new string type.
349         (read_base_type): If DW_AT_name is missing, create unnamed type
350         with given properties instead of looking for a fundamental type.
351         Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
352         DW_ATE_complex_float types.
353         (read_subrange_type): Create new type to represent missing
354         DW_AT_type instead of looking for a fundamental type.
355         (die_type): Use builtin type to represent "void" instead of
356         looking for a fundamental type.
357
358         * stabsread.c (define_symbol): Use builtin types to represent
359         'r' and 'i' floating-point and integer constants.
360
361         * gdbtypes.c (lookup_fundamental_type): Remove.
362         * gdbtypes.h (lookup_fundamental_type): Remove prototype.
363         (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
364         FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
365         FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
366         FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
367         FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
368         FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
369         FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
370         FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
371         FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
372         * objfiles.c (struct objfile): Remove fundamental_types member.
373         * symfile.c (reread_symbols): Do not clear fundamental_types.
374
375         * language.h (struct language_defn): Remove la_fund_type member.
376         (create_fundamental_type): Remove.
377         * language.c (unk_lang_create_fundamental_type): Remove.
378         (unknown_language_defn, auto_language_defn,
379         local_language_defn): Adapt initializer.
380         * ada-lang.c (ada_create_fundamental_type): Remove.
381         (ada_language_defn): Adapt initializer.
382         * c-lang.h (c_create_fundamental_type): Remove prototype.
383         * c-lang.c (c_create_fundamental_type): Remove.
384         (c_language_defn, cplus_language_defn, asm_language_defn,
385         minimal_language_defn): Adapt initializer.
386         * f-lang.c (f_create_fundamental_type): Remove.
387         (f_language_defn): Adapt initializer.
388         * jv-lang.c (java_create_fundamental_type): Remove.
389         (java_language_defn): Adapt initializer.
390         * m2-lang.c (m2_create_fundamental_type): Remove.
391         (m2_language_defn): Adapt initializer.
392         * objc-lang.c (objc_create_fundamental_type): Remove.
393         (objc_language_defn): Adapt initializer.
394         * p-lang.h (pascal_create_fundamental_type): Remove prototype.
395         * p-lang.c (pascal_create_fundamental_type): Remove.
396         (pascal_language_defn): Adapt initializer.
397         * scm-lang.c (scm_language_defn): Adapt initializer.
398
399 2007-12-04  Maciej W. Rozycki  <macro@mips.com>
400
401         * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
402         * features/mips64-cpu.xml: Likewise.
403         * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
404         * features/mips64-fpu.xml: Likewise.
405         * features/mips-linux.c: Regenerate.
406         * features/mips64-linux.c: Regenerate.
407
408 2007-12-04  Maciej W. Rozycki  <macro@mips.com>
409
410         * target.h (target_find_new_threads): Fix definition.
411
412 2007-12-02  Pierre Muller  <muller@ics.u-strasbg.fr>
413
414         * win32-nat.c (win32_resume): Set the trace bit
415         in the thread identified by inferior_ptid.
416
417
418 2007-12-02  Pierre Muller  <muller@ics.u-strasbg.fr>
419
420         * win32-nat.c (open_process_used): New static variable.
421         (win32_init_thread_list): Remove call to CloseHandle for thread.
422         (win32_delete_thread): Ditto.
423         (fake_create_process): Set open_process_used if OpenProcess call is
424         successful.
425         (get_win32_debug_event): Do not close process handle.
426         (do_initial_win32_stuff): Set open_process_used to zero.
427         (win32_mourn_inferior): Call CloseHandle for current_process_handle if
428         open_process_used is set.
429         (win32_kill_inferior): Do not close process and main_thread handles.
430
431 2007-11-30  Daniel Jacobowitz  <dan@codesourcery.com>
432
433         * remote.c (remote_cmdlist): New variable.
434         (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
435         (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
436         (remote_buffer_add_string, remote_buffer_add_bytes)
437         (remote_buffer_add_int, remote_hostio_parse_result)
438         (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
439         (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
440         (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
441         (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
442         (remote_file_delete, remote_put_command, remote_get_command)
443         (remote_delete_command, remote_command): New functions.
444         (_initialize_remote): Register new packets and commands.
445         * Makefile.in (gdb_fileio_h): New variable.
446         (remote.o): Update.
447         (SUBDIR_MI_OBS): Add mi-cmd-target.o.
448         (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
449         (mi-cmd-target.o): New rule.
450         * mi/mi-cmd-target.c: New file.
451         * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
452         and target-file-put.
453         * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
454         (mi_cmd_target_file_delete): Declare.
455         * remote.h (remote_file_put, remote_file_get, remote_file_delete):
456         Declare.
457         * NEWS: Describe new file transfer support.
458
459 2007-11-30  Vladimir Prus  <vladimir@codesourcery.com>
460
461         * infrun.c (handle_inferior_event): Don't
462         ignore beakpoints if trap_expected is set.
463
464 2007-11-30  Vladimir Prus  <vladimir@codesourcery.com>
465
466         Make insert_breakpoints return void.    
467         * breakpoint.h (insert_breakpoints): Change
468         return type to void.
469         * breakpoint.c (insert_breakpoints): Change
470         return type to void.  Rename local return_val
471         variable to error.
472         * infrun.c (keep_going): Instead of checking
473         return value from insert_breakpoints, catch exception.
474
475 2007-11-29  Vladimir Prus  <vladimir@codesourcery.com>
476
477         Stop infrun from tracking breakpoint insertion status.
478
479         The checks of breakpoints_inserted before calling
480         remove_breakpoints are removed, as remove_breakpoint 
481         won't touch uninserted breakpoints. In a number of places,
482         we're interested if a breakpoint is inserted at particular 
483         PC, and we now use breakpoint_inserted_here_p.  In a few
484         places, insert_breakpoints can be called unconditionally, 
485         since it won't try to insert already inserted breakpoint.
486
487         * breakpoint.h (regular_breakpoint_inserted_here_p): New
488         declaration.
489         * breakpoint.c (regular_breakpoint_inserted_here_p): New.
490         (breakpoint_inserted_here_p): Use
491         regular_breakpoint_inserted_here_p.
492         * infrun.c (breakpoints_inserted): Remove.
493         (resume): Don't check for breakpoints_inserted before
494         remove_hw_watchpoints. Use breakpoint_inserted_here_p.
495         (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
496         (handle_inferior_event): Don't use breakpoints_inserted.
497         Use breakpoints_meant_to_be_inserted and
498         breakpoints_inserted_here_p.
499         (insert_step_resume_breakpoint_at_sal, keep_going): Use
500         breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
501         (normal_stop): Don't check for breakpoints_inserted.  Don't
502         set breakpoints_inserted.
503         (keep_going): Don't check for breakpoints_inserted.
504         (insert_step_resume_breakpoint_at_sal): Don't insert
505         breakpoints
506
507 2007-11-28  Jim Blandy  <jimb@codesourcery.com>
508
509         * breakpoint.c (watch_command_1): When the watchpoint isn't local
510         to any frame, initialize watchpoint_frame using null_frame_id, not
511         a memset.
512
513 2007-11-28  Vladimir Prus  <vladimir@codesourcery.com>
514
515         * infrun.c (resume): Set right thread even if 
516         stepping over breakpoint using software single step.
517
518 2007-11-28  Nick Roberts  <nickrob@snap.net.nz>
519
520         * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
521         (mi_print_value_p): Guard against type = NULL.
522
523 2007-11-27  Thiago Jung Bauermann  <bauerman@br.ibm.com>
524
525         * dfp.c (decimal_from_string): Remove superfluous newline from
526         error string.
527         (decimal_to_string): Likewise.
528         * printcmd.c (printf_command): Change string buffer to use
529         MAX_DECIMAL_STRING constant.
530         * value.c (value_from_decfloat): Likewise.
531
532 2007-11-27  Ulrich Weigand  <uweigand@de.ibm.com>
533
534         * Makefile.in (ALL_TARGET_OBS): Remove object files that require
535         64-bit CORE_ADDR and BFD support, move them to ...
536         (ALL_64_TARGET_OBS): ... this new variable.
537         * configure.ac: Check for --enable-64-bit-bfd option.  Only add
538         64-bit targets with --enable-targets=all if BFD supports 64-bit.
539         * configure: Regenerate.
540
541         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
542         all elf32-i386 executables, only cygwin core files.
543
544 2007-11-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
545
546         * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
547         code with its variables OBJFILE, CU_HEADER and OBFD into ...
548         (dwarf2_ranges_read): ... a new function.
549         (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
550
551 2007-11-24  Pedro Alves  <pedro_alves@portugalmail.pt>
552
553         * win32-nat.c (DR6_CLEAR_VALUE): New define.
554         (thread_info_struct): Rename suspend_count to suspended, to be
555         used as a flag.
556         (thread_rec): Only suspend the thread if it wasn't suspended by
557         gdb before.  Warn if suspending failed.
558         (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
559         (win32_continue): Set Dr6 to DR6_CLEAR_VALUE.  Update usage of the
560         `suspended' flag.  Do ContinueDebugEvent after resuming the
561         suspended threads, not before.  Set threads' contexts before
562         resuming them, not after.
563         (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
564
565 2007-11-23  Vladimir Prus  <vladimir@codesourcery.com>
566
567         * breakpoint.c (insert_breakpoints)
568         (insert_bp_location): Remove stale comments.
569         
570 2007-11-23  Maciej W. Rozycki  <macro@mips.com>
571
572         * mips-linux-tdep.h: Fix some formatting.
573
574 2007-11-21  Markus Deuling  <deuling@de.ibm.com>
575
576         * stack.c (print_args_stub): Use get_frame_arch to get at the current
577         architecture and replace current_gdbarch.
578         (frame_info): Likewise.
579
580 2007-11-21  Nick Roberts  <nickrob@snap.net.nz>
581
582         * varobj.c (c_variable_editable, cplus_variable_editable)
583         (java_variable_editable, variable_editable): Delete.
584         (varobj_editable_p): Replace above functions with one language
585         independent function.  Check for an lvalue.
586         (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
587         (struct language_specific): Delete variable_editable field.
588
589         * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
590
591         * varobj.h: Add extern for varobj_editable_p.
592
593 2007-11-20  Vladimir Prus  <vladimir@codesourcery.com>
594
595         Remove unused breakpoint fields.
596         * breakpoint.h (struct breakpoint): Remove
597         from_tty and flag fields.
598         * breakpoint.c (break_command_1): Don't set
599         from_tty and flag field set of breakpoint.
600         (create_ada_exception_breakpoint): Don't set
601         the from_tty field.
602
603 2007-11-20  David Ung  <davidu@mips.com>
604             Maciej W. Rozycki  <macro@mips.com>
605
606         * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
607         instruction.
608
609 2007-11-20  Vladimir Prus  <vladimir@codesourcery.com>
610
611         * infrun.c (resume): Clarify logic that
612         decides if a single thread must be resumed. Add
613         comments.
614
615 2007-11-20  Vladimir Prus  <vladimir@codesourcery.com>
616
617         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
618         Make static.
619
620 2007-11-19  Markus Deuling  <deuling@de.ibm.com>
621
622         * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
623         * gdbarch.{c,h}: Regenerate.
624
625         * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
626         * score-tdep.c (score_register_sim_regno): Likewise.
627         * sim-regno.h (one2one_register_sim_regno): Likewise.
628
629         * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
630         Replace current_gdbarch by gdbarch. 
631         * sh-tdep.c (sh_sh2a_register_sim_regno)
632         (sh_dsp_register_sim_regno): Likewise.
633         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
634         * mips-tdep.c (mips_register_sim_regno): Likewise.
635         * m32c-tdep.c (m32c_register_sim_regno): Likewise.
636         * frv-tdep.c (frv_register_sim_regno): Likewise.
637         * arm-tdep.c (arm_register_sim_regno): Likewise.
638         * remote-sim.c (one2one_register_sim_regno): Likewise.
639
640 2007-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
641
642         * configure.ac (--enable-targets): New configure option.
643         Collect gdb_target_obs of multiple targets into TARGET_OBS.
644         Call configure.tgt multiple times, using $targ as operand.
645         * configure.tgt: Operate on $targ instead of $target.
646         * configure: Regenerate.
647         * Makefile.in (ALL_TARGET_OBS): Define.
648
649         * NEWS: Mention --enable-targets option.
650
651 2007-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
652
653         * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
654         current architecture is not MIPS.
655
656 2007-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
657
658         * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
659         to construct error message if no argument was supplied.
660
661 2007-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
662
663         * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
664         (i386nbsd_aout_regset_from_core_section): Likewise.
665         (i386nbsd_aout_init_abi): Likewise.
666         (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
667
668         * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
669         (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
670
671 2007-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
672
673         * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
674         (amd64fbsd_sigtramp_end_addr): Likewise.
675
676         * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
677         (iq2000_address_to_pointer): Likewise.
678         (iq2000_frame_prev_register): Likewise.
679         (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
680         instead of regcache_cooked_read into CORE_ADDR variable.
681         (iq2000_return_value): Fix argument types.
682
683         * m32r-rom.c (m32r_load_section): Fix printf argument type.
684         (m32r_load): Likewise.
685
686         * m68kbsd-tdep.c: Include "gdbtypes.h".
687         * Makefile.in: Update dependencies.
688
689         * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
690
691         * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
692         lmo->l_addr_size element.
693
694         * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
695         (m32r_insert_breakpoint): Likewise.
696         (m32r_remove_breakpoint): Likewise.
697         (m32r_insert_watchpoint): Likewise.
698         (m32r_remove_watchpoint): Likewise.
699         (m32r_load): Fix printf argument type.
700
701         * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
702         argument type.
703         (xtensa_frame_this_id): Do not cast pointers to "int" for output.
704         (xtensa_frame_prev_register): Likewise.
705         (xtensa_push_dummy_call): Likewise.
706
707 2007-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
708
709         * config/alpha/alpha-linux.mt: Remove file.
710         * config/alpha/alpha.mt: Remove file.
711         * config/alpha/alpha-osf1.mt: Remove file.
712         * config/alpha/fbsd.mt: Remove file.
713         * config/alpha/nbsd.mt: Remove file.
714         * config/alpha/obsd.mt: Remove file.
715         * config/arm/embed.mt: Remove file.
716         * config/arm/linux.mt: Remove file.
717         * config/arm/nbsd.mt: Remove file.
718         * config/arm/obsd.mt: Remove file.
719         * config/arm/wince.mt: Remove file.
720         * config/avr/avr.mt: Remove file.
721         * config/cris/cris.mt: Remove file.
722         * config/frv/frv.mt: Remove file.
723         * config/h8300/h8300.mt: Remove file.
724         * config/i386/cygwin.mt: Remove file.
725         * config/i386/fbsd64.mt: Remove file.
726         * config/i386/fbsd.mt: Remove file.
727         * config/i386/i386gnu.mt: Remove file.
728         * config/i386/i386.mt: Remove file.
729         * config/i386/i386sol2.mt: Remove file.
730         * config/i386/linux64.mt: Remove file.
731         * config/i386/linux.mt: Remove file.
732         * config/i386/mingw.mt: Remove file.
733         * config/i386/nbsd64.mt: Remove file.
734         * config/i386/nbsd.mt: Remove file.
735         * config/i386/nto.mt: Remove file.
736         * config/i386/obsd64.mt: Remove file.
737         * config/i386/obsd.mt: Remove file.
738         * config/i386/sol2-64.mt: Remove file.
739         * config/ia64/ia64.mt: Remove file.
740         * config/ia64/linux.mt: Remove file.
741         * config/iq2000/iq2000.mt: Remove file.
742         * config/m32c/m32c.mt: Remove file.
743         * config/m32r/linux.mt: Remove file.
744         * config/m32r/m32r.mt: Remove file.
745         * config/m68hc11/m68hc11.mt: Remove file.
746         * config/m68k/linux.mt: Remove file.
747         * config/m68k/monitor.mt: Remove file.
748         * config/m68k/nbsd.mt: Remove file.
749         * config/m68k/obsd.mt: Remove file.
750         * config/m88k/obsd.mt: Remove file.
751         * config/mep/mep.mt: Remove file.
752         * config/mips/embed.mt: Remove file.
753         * config/mips/irix5.mt: Remove file.
754         * config/mips/irix6.mt: Remove file.
755         * config/mips/linux.mt: Remove file.
756         * config/mips/nbsd.mt: Remove file.
757         * config/mips/obsd64.mt: Remove file.
758         * config/mn10300/linux.mt: Remove file.
759         * config/mn10300/mn10300.mt: Remove file.
760         * config/mt/mt.mt: Remove file.
761         * config/pa/hppahpux.mt: Remove file.
762         * config/pa/hppa.mt: Remove file.
763         * config/pa/linux.mt: Remove file.
764         * config/pa/obsd.mt: Remove file.
765         * config/powerpc/aix.mt: Remove file.
766         * config/powerpc/linux.mt: Remove file.
767         * config/powerpc/nbsd.mt: Remove file.
768         * config/powerpc/obsd.mt: Remove file.
769         * config/powerpc/ppc-eabi.mt: Remove file.
770         * config/s390/s390.mt: Remove file.
771         * config/score/embed.mt: Remove file.
772         * config/sh/embed.mt: Remove file.
773         * config/sh/linux.mt: Remove file.
774         * config/sh/nbsd.mt: Remove file.
775         * config/sh/obsd.mt: Remove file.
776         * config/sh/sh64.mt: Remove file.
777         * config/sparc/embed.mt: Remove file.
778         * config/sparc/fbsd.mt: Remove file.
779         * config/sparc/linux64.mt: Remove file.
780         * config/sparc/linux.mt: Remove file.
781         * config/sparc/nbsd64.mt: Remove file.
782         * config/sparc/nbsd.mt: Remove file.
783         * config/sparc/obsd64.mt: Remove file.
784         * config/sparc/obsd.mt: Remove file.
785         * config/sparc/sol2-64.mt: Remove file.
786         * config/sparc/sol2.mt: Remove file.
787         * config/sparc/sparc64.mt: Remove file.
788         * config/sparc/sparc.mt: Remove file.
789         * config/spu/spu.mt: Remove file.
790         * config/v850/v850.mt: Remove file.
791         * config/vax/nbsd.mt: Remove file.
792         * config/vax/obsd.mt: Remove file.
793         * config/vax/vax.mt: Remove file.
794         * config/xstormy16/xstormy16.mt: Remove file.
795         * config/xtensa/xtensa.mt: Remove file.
796
797         * configure.tgt (gdb_target_cpu): Remove.  Do not set anywhere.
798         (gdb_target): Likewise.
799         (gdb_target_obs): Document.  Set for every target to contents
800         of TDEPFILES in former .mt makefile fragment.
801
802         * configure.ac (TARGET_OBS): Define.
803         (target_makefile_frag, gdb_target_cpu): Do not define.
804         * configure: Regenerate.
805
806         * Makefile.in (MT_FLAGS): Remove.
807         (GLOBAL_CFLAGS): Update.
808         (TARGET_OBS): Substitute from configure.
809         (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
810         (@target_makefile_frag@): Remove.
811
812 2007-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
813
814         * config/arm/embed.mt (SIM_OBS, SIM): Remove.
815         * config/avr/avr.mt (SIM_OBS, SIM): Remove.
816         * config/frv/frv.mt (SIM_OBS, SIM): Remove.
817         * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
818         * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
819         * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
820         * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
821         * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
822         * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
823         * config/mips/embed.mt (SIM_OBS, SIM): Remove.
824         * config/mips/linux.mt (SIM_OBS, SIM): Remove.
825         * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
826         * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
827         * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
828         * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
829         * config/powerpc/ppc-sim.mt: Remove file.
830         * config/sh/embed.mt (SIM_OBS, SIM): Remove.
831         * config/sh/linux.mt (SIM_OBS, SIM): Remove.
832         * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
833         * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
834         * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
835         * config/v850/v850.mt (SIM_OBS, SIM): Remove.
836         * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
837
838         * configure.tgt (gdb_sim): Document variable.
839         (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
840         (avr-*-*): Likewise.
841         (frv-*-*): Likewise.
842         (h8300-*-*): Likewise.
843         (iq2000-*-*): Likewise.
844         (m32c-*-*): Likewise.
845         (m32r*-*-linux*): Likewise.
846         (m32r*-*-*): Likewise.
847         (m68hc11*-*-*|m6811*-*-*): Likewise.
848         (mips*-*-*): Likewise.
849         (mips*-*-linux*): Likewise.
850         (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
851         (mn10300-*-*): Likewise.
852         (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
853         (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
854         (powerpc*-*-*): Use ppc-eabi target.  Conditionally set gdb_sim.
855         (sh*): Set gdb_sim.
856         (sh-*-linux*): Likewise.
857         (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
858         (sh64-*-elf*): Likewise.
859         (sparc-*-rtems*): Likewise.
860         (v850*-*-elf): Likewise.
861         (xstormy16-*-*): Likewise.
862
863         * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
864         (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
865         * configure: Regenerate.
866         * Makefile.in (SIM, SIM_OBS): Substitute from configure.
867         (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
868
869 2007-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
870
871         * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
872         (arm*-*-*): Do not set obsolete build_rdi_share variable.
873
874         (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
875         (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
876         (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
877         (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
878         (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
879
880         (xscale-*-*): Merge into arm*-*-* case.
881         (fido-*-elf*): Merge into m68*-*-elf* case.
882         (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
883         m68*-*-uclinux*): Merge cases.
884         (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
885         (sh-*-coff*, sh-*-elf*): Merge into sh* case. 
886
887 2007-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
888
889         * configure.tgt: Reformat main case statement.
890
891 2007-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
892
893         * configure.ac (hostfile, targetfile): Remove.
894         (GDB_XM_FILE, GDB_TM_FILE): Do not define.
895         (xm_h, tm_h): Likewise.
896         (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
897         * configure, config.in: Regenerate.
898
899         * Makefile.in (xm_h, tm_h): Remove.  Update dependencies.
900         (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
901         (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
902         * defs.h: Do not include "xm.h" or "tm.h".
903
904         * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
905         * gdbarch.c: Regenerate.
906
907         * config/score/embed.mt: Remove obsolete comment.
908
909 2007-11-16  Markus Deuling  <deuling@de.ibm.com>
910
911         * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
912         as parameter.
913         * gdbarch.{c,h}: Regenerate.
914
915         * alpha-tdep.c (alpha_cannot_fetch_register)
916         (alpha_cannot_store_register): Add gdbarch as parameter. Replace 
917         current_gdbarch by gdbarch.
918         * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
919         (crisv32_cannot_fetch_register)
920         (crisv32_cannot_store_register): Likewise.
921         * arch-utils.c (cannot_register_not): Likewise.
922         * arch-utils.h (cannot_register_not): Likewise.
923         * hppa-tdep.c (hppa32_cannot_store_register)
924         (hppa32_cannot_store_register, hppa64_cannot_store_register)
925         (hppa64_cannot_fetch_register): Likewise.
926         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
927         (mipsnbsd_cannot_store_register): Likewise.
928
929 2007-11-16  Markus Deuling  <deuling@de.ibm.com>
930
931         * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
932         the current architecture by regcache.
933         * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
934         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
935         (fetch_register, supply_vrregset, fetch_ppc_registers)
936         (store_altivec_register, store_spe_register, store_register)
937         (fill_vrregset, store_ppc_registers): Likewise.
938         * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
939         * win32-nat.c (do_win32_fetch_inferior_registers)
940         (do_win32_store_inferior_registers): Likewise.
941         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
942         * remote-m32r-sdi.c (m32r_fetch_registers)
943         (m32r_store_registers): Likewise.
944         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
945
946         * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
947         gdbarch.
948         * user-regs.c (user_reg_map_name_to_regnum): Likewise.
949         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
950         (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
951         (ppc64_sysv_abi_return_value): Likewise.
952         * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
953         * m2-lang.c (build_m2_types): Likewise.
954         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
955         * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
956         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
957         * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
958
959         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
960         get at the current architecture by frame_info.
961         * gcore.c (derive_stack_segment): Likewise.
962
963         * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
964         (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
965         gdbarch to GETREGS_SUPPLIES call.
966
967 2007-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
968
969         * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
970         (elf_symtab_read): Rename DYNAMIC argument to TYPE.  Do not access
971         ELF-private symbol data when processing synthetic symbols.  Use
972         udata.p to get at size of ppc64 synthetic 'dot' symbols.
973         (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
974
975 2007-11-15  Doug Evans  <dje@google.com>
976
977         * buildsym.h (subfiles): Move ...
978         * buildsym.c (subfiles): ... to here and make static.
979
980         * symmisc.c (maintenance_info_symtabs): Print linetable info.
981
982 2007-11-15  Markus Deuling  <deuling@de.ibm.com>
983
984         * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
985
986 2007-11-15  Markus Deuling  <deuling@de.ibm.com>
987
988         * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
989         expression and use get_frame_arch to replace current_gdbarch by frame's
990         architecture.
991         * arm-tdep.h (LOWEST_PC): Remove
992
993 2007-11-15  Vladimir Prus  <vladimir@codesourcery.com>
994
995         Apply const qualifier to some users of bp_location.
996         * breakpoint.h (struct bpstats): Make
997         the breakpoint_at field point at const bp_location.
998         * breakpoint.c (bpstat_alloc): Accept const
999         bp_location.
1000         (breakpoint_here_p, breakpoint_inserted_here_p)
1001         (software_breakpoint_inserted_here_p)
1002         (breakpoint_thread_match, bpstat_stop_status)
1003         (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
1004         const bp_location for iteration.
1005         (print_it_typical, print_bp_stop_message): Use
1006         const bp_location variable.
1007
1008 2007-11-15  Vladimir Prus  <vladimir@codesourcery.com>
1009
1010         Make mark_breakpoints_out static.
1011         * breakpoint.h (mark_breakpoints_out): Remove
1012         declaration.
1013         * breakpoint.c (mark_breakpoints_out): Make static.
1014
1015 2007-11-15  Vladimir Prus  <vladimir@codesourcery.com>
1016
1017         Prevent clear_command from directly modifying breakpoint list.
1018         * Makefile.in (breakpoint_h): Update dependency.
1019         * breakpoint.c (clear_command): Do not remove
1020         breakpoints from breakpoint_chain.  Collect breakpoints
1021         to delete in a vector.
1022         * breakpoint.h (breakpoint_p): New typedef for pointer to
1023         breakpoint.  Register vector of breakpoint_p.
1024
1025 2007-11-15  Vladimir Prus  <vladimir@codesourcery.com>
1026
1027         Remove 'run_cleanup'.
1028         * defs.h (do_run_cleanups, make_run_cleanup): Remove
1029         declarations.
1030         * infcmd.c (run_command_1): Call clear_solib instead
1031         of do_run_cleanups.
1032         * jv-lang.c (java_rerun_cleanup): Remove, for lack of
1033         any use.
1034         * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
1035         (update_solib_lib): Don't setup run cleanup.
1036         (no_shared_libraries): Call clear_solib, not do_clear_solib.
1037         * utils.c (run_cleanup_chain, make_run_cleanup)
1038         (do_run_cleanups): Remove.
1039                 
1040 2007-11-15  Vladimir Prus  <vladimir@codesourcery.com>
1041
1042         Remove CLEAR_SOLIB use.
1043         * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1044         * infcmd.c (attach_command): Likewise.
1045         
1046 2007-11-14  Doug Evans  <dje@google.com>
1047
1048         * buildsym.c (start_subfile,start_symtab): Doc fixes.
1049
1050 2007-11-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1051
1052         * tui/tui-data.c (tui_prev_win): Guard against NULL.
1053
1054 2007-11-12  Markus Deuling  <deuling@de.ibm.com>
1055
1056         * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1057         obsolete comment.
1058         (verify_gdbarch, gdbarch_dump): Likewise.
1059         (do_read): Update comment.
1060         (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1061         (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1062         * gdbarch.{c,h}: Regenerate.
1063
1064 2007-11-12  Markus Deuling  <deuling@de.ibm.com>
1065
1066         * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1067         (ARGS_FIRST_REG): Remove.
1068         (areg_numer): New function.
1069         (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1070         (xtensa_extract_return_value, xtensa_store_return_value)
1071         (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1072         (AREG_NUMBER): Remove.
1073         (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1074         (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1075         (xtensa_push_dummy_call): Update use of ARG_NOF.
1076         (extract_call_winsize): Add gdbarch as parameter. Replace
1077         current_gdbarch by gdbarch.
1078         (xtensa_extract_return_value, xtensa_store_return_value): Update call
1079         of extract_call_winsize.
1080
1081 2007-11-10  Joel Brobecker  <brobecker@adacore.com>
1082
1083         * NEWS: Add entry for new set/show print frame-args command.
1084
1085 2007-11-09  Kevin Buettner  <kevinb@redhat.com>
1086
1087         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1088         register number to map.  Adjust warning check and error/warning
1089         return value code to match expectations of this function's callers.
1090
1091 2007-11-09  Joel Brobecker  <brobecker@adacore.com>
1092
1093         * stack.c (print_this_frame_argument_p): Handle arguments passed
1094         by reference properly.
1095
1096 2007-11-09  Joel Brobecker  <brobecker@adacore.com>
1097
1098         * stack.c (print_frame_arguments_choices): New static global.
1099         (print_frame_arguments): Likewise.
1100         (print_this_frame_argument_p): New function.
1101         (print_frame_args): Print the argument value only when appropriate.
1102         (_initialize_task): Add new "set/show print frame-arguments" command.
1103
1104 2007-11-09  Luis Machado  <luisgpm@br.ibm.com>
1105
1106         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1107         saved_dabr_value assignment to the correct position.
1108                 
1109 2007-11-09  Markus Deuling  <deuling@de.ibm.com>
1110
1111         * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1112         * arch-utils.h (generic_convert_register_p): Likewise.
1113
1114 2007-11-09  Markus Deuling  <deuling@de.ibm.com>
1115
1116         * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1117         * ia64-tdep.c (ia64_convert_register_p): Likewise.
1118         * i387-tdep.c (i387_convert_register_p): Likewise.
1119         * i387-tdep.h (i387_convert_register_p): Likewise.
1120         * alpha-tdep.c (alpha_convert_register_p): Likewise.
1121         * gdbarch.{c,h}: Regenerate.
1122
1123         * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1124         Replace current_gdbarch by gdbarch.
1125         * mips-tdep.c (mips_convert_register_p): Likewise.
1126         * m68k-tdep.c (m68k_convert_register_p): Likewise.
1127         * i386-tdep.c (i386_convert_register_p): Likewise.
1128
1129 2007-11-08  Aleksandar Ristovski  <aristovski@qnx.com>
1130
1131         * gdb_string.h: Include <strings.h>.
1132
1133 2007-11-08  Vladimir Prus  <vladimir@codesourcery.com>
1134
1135         * breakpoint.c (break_command_1): Remove
1136         pending_bp parameter.
1137         (create_breakpoint): Likewise.
1138         (create_breakpoints): Likewise. Adjust call to
1139         create_breakpoint.
1140         (break_command_1): Likewise. Adjust call to
1141         create_breakpoints.
1142         (do_captured_breakpoint): Adjust call to
1143         create_breakpoints.
1144         (break_command, tbreak_command, hbreak_command)
1145         (stopin_command, stopat_command): Adjust call
1146         to break_command_1.
1147                         
1148 2007-11-07  Joseph Myers  <joseph@codesourcery.com>
1149             Daniel Jacobowitz  <dan@codesourcery.com>
1150
1151         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1152         struct values smaller than one doubleword; left-align those
1153         larger.  Pass structs containing a single floating-point value in
1154         registers.
1155
1156 2007-11-07  Joseph Myers  <joseph@codesourcery.com>
1157             Daniel Jacobowitz  <dan@codesourcery.com>
1158
1159         * gdbtypes.c (floatformats_ibm_long_double): New.
1160         * gdbtypes.h (floatformats_ibm_long_double): Declare.
1161         * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1162         split_half field.
1163         * mips-tdep.c (n32n64_floatformat_always_valid,
1164         floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1165         Remove.
1166         (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1167         floatformats_n32n64_long.
1168         * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1169         double.
1170         * doublest.c (convert_floatformat_to_doublest,
1171         convert_doublest_to_floatformat): Handle split floating-point
1172         formats.
1173         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1174         double arguments.
1175         (ppc64_sysv_abi_push_dummy_call): Likewise.
1176         (do_ppc_sysv_return_value): Handle IBM long double return.
1177
1178 2007-11-07  Vladimir Prus  <vladimir@codesourcery.com>
1179
1180         Fix crash when a variable object being deleted
1181         has any of its children deleted previously.
1182         
1183         * varobj.c (delete_variable_1): Don't recurse
1184         into deleted children.
1185         
1186 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
1187
1188         * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1189         * gdbarch.{c,h}: Regenerate.
1190         * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1191         Replace current_gdbarch by gdbarch.
1192         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1193         * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1194         * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1195
1196 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
1197
1198         * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1199         get_regcache_arch to get at the current architecture by regcache.
1200         * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1201         to get at the current architecture by frame_info.
1202         * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1203         at the current architecture by regcache.
1204         * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1205         the current architecture by frame_info.
1206         (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1207         * aix-thread.c (special_register_p): Add gdbarch as parameter.
1208         (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1209         caller of special_register_p.
1210
1211 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
1212
1213         * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1214         current architecture by frame_info.
1215
1216 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
1217
1218         * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1219
1220 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
1221
1222         * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1223         get at the current architecture by regcache.
1224         (SUBOFF): Add gdbarch to macro definition.
1225
1226 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
1227
1228         * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1229         * gdbarch.{c,h}: Regenerate.
1230
1231         * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1232         Replace current_gdbarch by gdbarch.
1233         * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1234         * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1235         * score-tdep.c (score_breakpoint_from_pc): Likewise.
1236         * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1237         * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1238         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1239         * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1240
1241         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1242         parameter.
1243         * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1244         * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1245         * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1246         * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1247         * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1248         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1249         * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1250         * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1251         * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1252         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1253         * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1254         * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1255         * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1256         * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1257         * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1258         * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1259         * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1260         * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1261         * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1262         * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1263
1264         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1265         Replace current_gdbarch by gdbarch.
1266         (rs6000_software_single_step): Use get_frame_arch to get at the
1267         current architecture by frame_info. Add gdbarch to
1268         rs6000_breakpoint_from_pc call.
1269
1270 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
1271
1272         * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1273         macro CURRENT_VARIANT by its expression.
1274         (CURRENT_VARIANT): Remove.
1275         (frv_check_watch_resources): Add gdbarch parameter.
1276
1277 2007-11-07  Markus Deuling  <deuling@de.ibm.com>
1278
1279         * MAINTAINERS (Write After Approval): Add self.
1280
1281 2007-11-05  Ulrich Weigand  <uweigand@de.ibm.com>
1282
1283         * features/rs6000/power-core.xml: Use uint32 as register type.
1284         * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1285         * features/rs6000/powerpc-32.c: Regenerate.
1286         * features/rs6000/powerpc-403.c: Regenerate.
1287         * features/rs6000/powerpc-403gc.c: Regenerate.
1288         * features/rs6000/powerpc-505.c: Regenerate.
1289         * features/rs6000/powerpc-602.c: Regenerate.
1290         * features/rs6000/powerpc-603.c: Regenerate.
1291         * features/rs6000/powerpc-604.c: Regenerate.
1292         * features/rs6000/powerpc-64.c: Regenerate.
1293         * features/rs6000/powerpc-7400.c: Regenerate.
1294         * features/rs6000/powerpc-750.c: Regenerate.
1295         * features/rs6000/powerpc-860.c: Regenerate.
1296         * features/rs6000/powerpc-e500.c: Regenerate.
1297
1298 2007-11-05  Joel Brobecker  <brobecker@adacore.com>
1299
1300         * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1301
1302 2007-11-05  Joel Brobecker  <brobecker@adacore.com>
1303
1304         * breakpoint.h (create_solib_load_event_breakpoint)
1305         (create_solib_unload_event_breakpoint)
1306         (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1307         (create_exec_event_catchpoint): Delete declaration.
1308         * breakpoint.c (create_solib_load_event_breakpoint)
1309         (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1310         (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1311         (create_exec_event_catchpoint): Make static.
1312
1313 2007-11-05  Joel Brobecker  <brobecker@adacore.com>
1314
1315         * breakpoint.h (set_breakpoint_sal): Remove declaration.
1316         * breakpoint.c (set_breakpoint_sal): Delete.
1317
1318 2007-11-05  Joel Brobecker  <brobecker@adacore.com>
1319
1320         * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1321         (make_blockvector): Likewise. Remove FIXME comment.
1322
1323 2007-11-05  Luis Machado  <luisgpm@br.ibm.com>
1324
1325         * printcmd.c: (printf_command): Add support for new DFP
1326         modifiers %H, %D and %DD.
1327         * configure.ac: Add check for DECFLOAT printf support.
1328         * configure: Regenerated.
1329
1330 2007-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
1331
1332         * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1333         (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1334         TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1335         (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1336         HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1337         (has_vtable, primary_base_class, virtual_base_list_length,
1338         virtual_base_list_length_skip_primaries, virtual_base_index,
1339         virtual_base_index_skip_primaries, class_index_in_primary_list,
1340         count_virtual_fns): Remove prototypes.
1341         * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1342         virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1343         virtual_base_list_length_skip_primaries, virtual_base_index,
1344         virtual_base_index_skip_primaries, class_index_in_primary_list,
1345         count_virtual_fns): Remove.
1346
1347         * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1348         (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1349         (cp_print_value_fields): Remove support for HP aCC vtables.
1350         (cp_print_value): Likewise.
1351         * c-typeprint.c (c_type_print_base): Likewise.
1352
1353         * value.h (find_rt_vbase_offset): Remove prototype.
1354         * valops.c (find_rt_vbase_offset): Remove.
1355         (search_struct_method): Remove support for HP aCC vtables.
1356         (find_method_list): Likewise.
1357
1358 2007-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
1359
1360         * language.h (struct language_defn): Remove la_builtin_type_vector
1361         and string_char_type members.
1362         * language.c (language_string_char_type): No longer consult
1363         la->string_char_type.
1364         (language_lookup_primitive_type_by_name): No longer consult
1365         current_language->la_builtin_type_vector.
1366
1367         * language.c (unknown_language_defn, auto_language_defn,
1368         local_language_defn): Adapt initializer.
1369         * ada-lang.c (ada_language_defn): Likewise.
1370         * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1371         minimal_language_defn): Likewise.
1372         * f-lang.c (f_language_defn): Likewise.
1373         * jv-lang.c (java_language_defn): Likewise.
1374         * m2-lang.c (m2_language_defn): Likewise.
1375         * objc-lang.c (objc_language_defn): Likewise.
1376         * p-lang.c (pascal_language_defn): Likewise.
1377         * scm-lang.c (scm_language_defn): Likewise.
1378
1379 2007-11-02  Markus Deuling  <deuling@de.ibm.com>
1380
1381         * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1382         current_gdbarch by gdbarch.
1383         (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1384         current architecture by frame_info.
1385         * frame.h (frame_id_inner): Add gdbarch parameter.
1386         * stack.c (return_command): Use get_frame_arch to get at the current
1387         architecture by frame_info. Update call of frame_id_inner.
1388         * infrun.c (handle_inferior_event): Likewise.
1389         * dummy-frame.c (dummy_frame_push):  Use get_regcache_arch to get at the
1390         current architecture by regcache. Update call of frame_id_inner.
1391
1392 2007-11-02  Markus Deuling  <deuling@de.ibm.com>
1393
1394         * gdbarch.sh (register_name): Add gdbarch parameter.
1395         * gdbarch.{c,h}: Regenerate.
1396
1397         * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1398         (tdesc_register_name): Replace current_gdbarch by gdbarch.
1399         * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1400
1401         * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1402         * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1403         * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1404         * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1405         * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1406         (mt_registers_info): Replace current_gdbarch by gdbarch.
1407         (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1408         * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1409         current_gdbarch by gdbarch.
1410         (mips_register_name): Add gdbarch to tdesc_register_name call.
1411         * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1412         current_gdbarch by gdbarch.
1413         (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1414         * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1415         current_gdbarch by gdbarch.
1416         * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1417         * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1418         * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1419         (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1420         architecture by frame_info.
1421         * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1422         * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1423         * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1424         parameter.
1425         * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1426         (h8300sx_register_name): Add gdbarch parameter.
1427         * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1428         gdbarch parameter. Replace current_gdbarch by gdbarch.
1429         (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1430         * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1431         * arm-tdep.c (arm_register_name): Add gdbarch paramete
1432         * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1433         caller.
1434         * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1435         * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1436         * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1437         (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1438         of alpha_register_name.
1439         * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1440         * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1441         current_gdbarch by gdbarch.
1442         (i386_register_type): Replace ?current_gdbarch by gdbarch.
1443         * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1444         * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1445
1446         * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1447         (m68hc11_register_reggroup_p): Add gdbarch to call of
1448         m68hc11_register_name.
1449         * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1450         (am33_2_register_name): Add gdbarch parameter.
1451         (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1452         architecture by frame_info.
1453         (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1454         * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1455         current_gdbarch by gdbarch.
1456         * score-tdep.c (score_register_name): Add gdbarch parameter.
1457         (score_return_value, score_push_dummy_call): Replace current_gdbarch
1458         by gdbarch.
1459         * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1460         (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1461         (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1462         (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1463         and update caller. Replace current_gdbarch by gdbarch.
1464         (sh64_extract_return_value, sh64_store_return_value): Use
1465         get_regcache_arch to get at the current architecture by regcache.
1466         * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1467         (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1468         (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1469         (sh_sh3_dsp_register_name, sh_sh4_register_name)
1470         (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1471         parameter.
1472         (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1473         (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1474         current_gdbarch by gdbarch.
1475         (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1476         get_regcache_arch to get at the current architecture by regcache.
1477         * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1478         * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1479         * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1480         parameter.
1481         (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1482         * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1483         current_gdbarch by gdbarch.
1484         (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1485         (xtensa_frame_prev_register): Add gdbarch parameter to
1486         xtensa_register_name call.
1487
1488 2007-10-31  Ulrich Weigand  <uweigand@de.ibm.com>
1489
1490         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1491         find_solib_trampoline_target if PC is not in .plt section.
1492
1493 2007-10-31  Ulrich Weigand  <uweigand@de.ibm.com>
1494
1495         * elfread.c (elf_symtab_read): When constructing a solib trampoline
1496         minimal symbol from an undefined dynamic symbol, use proper section.
1497
1498 2007-10-31  Markus Deuling  <deuling@de.ibm.com>
1499
1500         * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1501         to get at the current architecture by regcache.
1502
1503 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1504
1505         * libunwind-frame.c (libunwind_frame_sniffer)
1506         libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1507         (libunwind_frame_cache): Use get_frame_arch to get at the current
1508         architecture by frame_info.
1509         (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1510
1511 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1512
1513         * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1514         at the current architecture by frame_info.
1515
1516 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1517
1518         * inf-child.c (inf_child_fetch_inferior_registers): Use 
1519         get_regcache_arch to get at the current architecture by regcache.
1520
1521 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1522
1523         * inf-ptrace.c (inf_ptrace_fetch_registers)
1524         (inf_ptrace_fetch_register, inf_ptrace_store_register)
1525         (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1526         current architecture by regcache.
1527
1528 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1529
1530         * hpux-thread.c (hpux_thread_fetch_registers)
1531         (hpux_thread_store_registers): Use get_regcache_arch to get at the
1532         current architecture by regcache.
1533
1534 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1535
1536         * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1537         current architecture by frame_info.
1538
1539 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1540
1541         * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1542         (go32_store_registers): Use get_regcache_arch to get at the current
1543         architecture by regcache.
1544
1545 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1546
1547         * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1548
1549 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1550
1551         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1552         to get at the current architecture by frame_info.
1553
1554 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1555
1556         * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1557
1558 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1559
1560         * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1561         the current architecture by regcache.
1562
1563 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1564
1565         * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1566         current architecture by regcache.
1567
1568 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1569
1570         * bsd-uthread.c (bsd_uthread_fetch_registers)
1571         (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1572         current architecture by regcache.
1573
1574 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1575
1576         * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1577         get_frame_arch to get at the current architecture by frame_info.
1578
1579 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1580
1581         * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1582
1583 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1584
1585         * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1586         (store_regs): Use get_regcache_arch to get at the current architecture
1587         by regcache.
1588
1589 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1590
1591         * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1592         to get at the current architecture by regcache.
1593
1594 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1595
1596         * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1597         (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1598         the current architecture by regcache.
1599
1600 2007-10-30  Markus Deuling  <deuling@de.ibm.com>
1601
1602         * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1603         gdbarch.
1604
1605 2007-10-30  Daniel Jacobowitz  <dan@codesourcery.com>
1606
1607         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1608         soft float and vector ABIs.  Support the generic vector ABI for
1609         AltiVec types.
1610         (do_ppc_sysv_return_value): Likewise.  Correct argument types and
1611         casts.
1612         (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1613         supported.
1614         * ppc-tdep.h (enum powerpc_vector_abi): New.
1615         (struct gdbarch_tdep): Add soft_float and vector_abi.
1616         * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1617         (powerpc_soft_float_global, powerpc_vector_strings)
1618         (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1619         (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1620         (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1621         (powerpc_set_vector_abi): New.
1622         (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1623         commands.
1624         * Makefile.in (elf_ppc_h): New.
1625         (rs6000-tdep.o): Update.
1626
1627 2007-10-29  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1628
1629         * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1630         swapped offsets and VRSAVE offset.
1631         (ppc64_linux_reg_offsets): Corrected swapped offsets.
1632         (ppc32_linux_vrregset): Added.
1633         (ppc_linux_regset_from_core_section): Added support for
1634         .reg-ppc-vmx section.
1635         * ppc-tdep.h (ppc_altivec_support_p): Declare.
1636         (ppc_supply_vrregset): Declare.
1637         (ppc_collect_vrregset): Declare.
1638         * rs6000-tdep.c (ppc_altivec_support_p): Added.
1639         (ppc_supply_vrregset): Added.
1640         (ppc_collect_vrregset): Added.
1641         * corelow.c (get_core_registers): Added support for
1642         .reg-ppc-vmx section.
1643
1644 2007-10-29  Joel Brobecker  <brobecker@adacore.com>
1645
1646         GDB 6.7.1 released.
1647
1648 2007-10-26  Jim Blandy  <jimb@codesourcery.com>
1649
1650         * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1651         deleted function.
1652
1653         * tracepoint.c (tracepoint_operation): Report the deletion event
1654         after we have unlinked the tracepoint from the list, and use the
1655         proper tracepoint number.
1656
1657         * ax-gdb.c (expr_to_agent): Delete unused function.
1658         (expr_to_address_and_size): Delete #if 0'd function.
1659         * ax-gdb.h (expr_to_agent): Delete declaration.
1660
1661         * ax-gdb.c (gen_cast): Remove redundant assignment to
1662         value->type.  Doc fix.
1663
1664         * ax-general.c (gen_traced_pop, gen_int_literal)
1665         (gen_usual_arithmetic): Check for typedefs.
1666
1667 2007-10-26  Joel Brobecker  <brobecker@adacore.com>
1668
1669         * parse.c (prefixify_expression): Minor reformatting.
1670
1671 2007-10-25  Daniel Jacobowitz  <dan@codesourcery.com>
1672
1673         * version.in: Use dot instead of dash.
1674
1675 2007-10-25  Daniel Jacobowitz  <dan@codesourcery.com>
1676
1677         * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1678
1679 2007-10-25  Pedro Alves  <pedro_alves@portugalmail.pt>
1680
1681         * memory-map.c (parse_memory_map): Don't use an empty struct
1682         initializer.
1683
1684 2007-10-25  Pedro Alves  <pedro_alves@portugalmail.pt>
1685
1686         * signals/signals.c (signals): Update pointer to enum
1687         target_signal declaration.
1688
1689 2007-10-25  Wu Zhou  <woodzltc@cn.ibm.com>
1690             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1691             Jim Blandy  <jimb@codesourcery.com>
1692
1693         * dwarf2read.c (read_partial_die): check the value
1694         of DW_AT_calling_convention in Fortran programs.
1695
1696 2007-10-25  Wu Zhou  <woodzltc@cn.ibm.com> 
1697             Thiago Jung Bauermann  <bauerman@br.ibm.com>
1698
1699         * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1700         floating point in YYSTYPE union.
1701         (DECFLOAT) Add token and expression element handling code.
1702         (parse_number): Parse DFP constants, which end with suffix 'df',
1703         'dd' or 'dl'.  Return DECFLOAT.
1704         * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1705         handle OP_DECFLOAT.
1706         * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1707         for DFP constants.
1708         (union exp_element): Add decfloatconst to represent DFP
1709         elements, which is 16 bytes by default.
1710         * parse.c (write_exp_elt_decfloatcst): New function to write a
1711         decimal float const into the expression.
1712         (operator_length_standard): Set operator length for OP_DECFLOAT
1713         to 4.
1714         * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1715         * valarith.c (value_neg): Add code to handle the negation
1716         operation of DFP values.
1717         * value.c (value_from_decfloat): New function to get the value
1718         from a decimal floating point.
1719         * value.h (value_from_decfloat): Prototype.
1720
1721 2007-10-25  Wu Zhou  <woodzltc@cn.ibm.com> 
1722             Thiago Jung Bauermann  <bauerman@br.ibm.com>
1723
1724         * c-lang.c (c_create_fundamental_type): Create fundamental
1725         types for DFP.
1726         * c-typeprint.c (c_type_print_varspec_prefix): Add
1727         TYPE_CODE_DECFLOAT to no prefix needed case.
1728         (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1729         suffix needed case.
1730         * c-valprint.c (c_val_print): Call print_decimal_floating to
1731         print DFP values.
1732         * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1733         attribute code and return TYPE_CODE_DECFLOAT.
1734         (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1735         * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1736         builtin_decdouble and builtin_declong. 
1737         * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1738         type code for DFP.
1739         (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1740         types, for decimal floating point.
1741         (FT_NUM_MEMBERS):  Increment, new types added.
1742         (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1743         and builtin_declong.
1744         * valprint.c (print_decimal_floating): New function to print DFP
1745         values.
1746         * value.h (print_decimal_floating): Prototype.
1747
1748 2007-10-25  Wu Zhou  <woodzltc@cn.ibm.com> 
1749             Thiago Jung Bauermann  <bauerman@br.ibm.com>
1750
1751         * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1752         LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1753         (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1754         (INSTALLED_LIBS): Add -ldecnumber in.
1755         (CLIBS): Add LIBDECNUMBER in.
1756         (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1757         headers.
1758         (dfp_h): New macros for decimal floating point.
1759         (dfp.o): New target.
1760         (COMMON_OBS): Add dfp.o in.
1761         (c-exp.o): Add dfp_h as dependency.
1762         (valprint.o): Add dfp_h as dependency.
1763         (value.o): Add dfp_h as dependency.
1764         * dfp.h: New header file for decimal floating point support in
1765         GDB.
1766         * dfp.c: New source file for decimal floating point support in
1767         GDB.  Implement decimal_from_string and decimal_to_string based
1768         on libdecnumber API.
1769         * configure.ac: Add AC_C_BIGENDIAN test.
1770         * config.in, configure: Regenerate.
1771
1772 2007-10-25  David Ung  <davidu@mips.com>
1773             Maciej W. Rozycki  <macro@mips.com>
1774
1775         PR exp/1926
1776         * infcmd.c (registers_info): Check for a user register before
1777         calling target's gdbarch_print_registers_info().  If found to be
1778         so, extract the implicit value of user register and call
1779         print_scalar_formatted().
1780         * Makefile.in: (infcmd.o): Add $(user_regs_h).
1781
1782 2007-10-25  Joel Brobecker  <brobecker@adacore.com>
1783
1784         * NEWS: Document status of hppa64-hpux support.
1785
1786 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
1787
1788         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1789         set_solib_ops to install SVR4 operations.
1790         (_initialize_svr4_solib): Do not set current_target_so_ops.
1791
1792         * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1793         * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1794
1795 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
1796
1797         * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1798         (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1799         * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1800         * solib-legacy.c: Remove file.
1801
1802         * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1803         * config/arm/linux.mt (TDEPFILES): Likewise.
1804         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1805         * config/ia64/linux.mt (TDEPFILES): Likewise.
1806         * config/m32r/linux.mt (TDEPFILES): Likewise.
1807         * config/powerpc/linux.mt (TDEPFILES): Likewise.
1808         * config/s390/s390.mt (TDEPFILES): Likewise.
1809
1810         * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1811         set_solib_svr4_fetch_link_map_offsets.
1812         * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1813         * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1814
1815         * i386gnu-tdep.c: Include "solib-svr4.h".
1816         * Makefile.in: Update dependencies.
1817
1818 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
1819
1820         * i386-nto-tdep.c: Include "solib.h".
1821         (i386nto_init_abi): Use set_solib_ops instead of overwriting
1822         current_target_so_ops members.
1823         * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1824         (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1825         (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1826         * Makefile.in: Update dependencies.
1827
1828 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
1829
1830         * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1831         (arm_wince_init_abi): Call set_solib_ops.
1832         * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1833         (i386_cygwin_init_abi): Call set_solib_ops.
1834         * solib-target.c: Include "solib-target.h".
1835         (solib_target_so_ops): Make global.
1836         (_initialize_solib_target): Do not set current_target_so_ops.
1837         * solib-target.h: New file.
1838         * Makefile.in: Update dependencies.
1839
1840 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
1841
1842         * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1843         (mips_irix_init_abi): Call set_solib_ops.
1844         * solib-irix.c: Include "solib.h" and "solib-irix.h".
1845         (irix_so_ops): Make global.
1846         (_initialize_irix_solib): Do not set current_target_so_ops.
1847         * solib-irix.h: New file.
1848         * Makefile.in: Update dependencies.
1849
1850 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
1851
1852         * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1853         * config/pa/hppa64.mt: Delete file.
1854         * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1855         (TDEPFILES): Move somread.o to ...
1856         * config/pa/hpux.mh (NATDEPFILES): ... here.
1857
1858         * configure.ac: Add check for elf_hp.h header.
1859         Search libdl and libxpdl for dlgetmodinfo.
1860         * config.in, configure: Regenerate.
1861         * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1862         instead of #ifndef PA_SOM_ONLY.  Include "solib.h".
1863         (pa64_solib_select): Take gdbarch instead of tdep argument.  Call
1864         set_solib_ops instead of modifying current_target_so_ops.
1865         * solib-pa64.h (pa64_solib_select): Update prototype.
1866         * solib-som.c: Remove include of "som.h".  Include "solib.h".
1867         (som_solib_select): Take gdbarch instead of tdep argument.  Call
1868         set_solib_ops instead of modifying current_target_so_ops.
1869         * solib-som.h (som_solib_select): Update prototype.
1870         * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1871         of tdep to som_solib_select call.
1872         (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1873         pa64_solib_select call.
1874         * Makefile.in: Update dependencies.
1875
1876 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
1877
1878         * frv-tdep.c: Include "solib.h".
1879         (frv_gdbarch_init): Call set_solib_ops.
1880         * frv-tdep.h (struct target_so_ops): Add forward reference.
1881         (frv_so_ops): Add extern declaration.
1882         * solib-frv.c (frv_so_ops): Make global.
1883         (_initialize_frv_solib): Do not set current_target_so_ops.
1884         * Makefile.in: Update dependencies.
1885
1886 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
1887
1888         * solib.c (solib_global_lookup): Use solib_ops instead of global
1889         current_target_so_ops.
1890
1891 2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
1892
1893         * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1894         * config/frv-tm-frv.h: Delete file.
1895
1896 2007-10-24  Daniel Jacobowitz  <dan@codesourcery.com>
1897
1898         * NEWS: Mention gdbserver support for non-libthread_db operation.
1899
1900 2007-10-24  Daniel Jacobowitz  <dan@codesourcery.com>
1901
1902         * amd64-tdep.c (amd64_convert_register_p): Delete.
1903         (amd64_init_abi): Use i387_convert_register_p.
1904         * alpha-tdep.c (alpha_convert_register_p): Return zero for
1905         eight byte types.
1906         (alpha_register_to_value, alpha_value_to_register): Do not handle
1907         eight byte types.
1908         * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1909         * i387-tdep.c (i387_convert_register_p): New.
1910         (i387_register_to_value, i387_value_to_register): Update comments.
1911         * i387-tdep.h (i387_convert_register_p): Declare.
1912         * ia64-tdep.c (ia64_convert_register_p): Return zero for
1913         builtin_type_ia64_ext.
1914         (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1915         (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1916         * m68k-tdep.c (m68k_convert_register_p): Return zero for
1917         builtin_type_m68881_ext.
1918         (m68k_register_to_value, m68k_value_to_register): Update comments.
1919
1920 2007-10-24  Nathan Sidwell  <nathan@codesourcery.com>
1921
1922         * target-memory.c (claim_memory): Propagate baton for split memory
1923         requests.
1924
1925 2007-10-24  Pedro Alves  <pedro_alves@portugalmail.pt>
1926
1927         PR gdb/2341
1928         * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1929         alias warning bug.
1930
1931 2007-10-24  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1932
1933         * symtab.c (find_line_symtab): scan through psymtabs
1934         when exact_match is zero.
1935
1936 2007-10-23  Atsushi Nemoto  <anemo@mba.ocn.ne.jp>
1937
1938         * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1939         (deal_with_atomic_sequence): New.
1940         (mips_software_single_step): Use it.
1941
1942 2007-10-23  Daniel Jacobowitz  <dan@codesourcery.com>
1943
1944         PR gdb/2336
1945         * configure.ac: Modify $LIBINTL before the BFD check.
1946         * configure: Regenerated.
1947
1948 2007-10-23  Joel Brobecker  <brobecker@adacore.com>
1949
1950         * buildsym.c (free_pending_blocks): Remove commented-out code.
1951         (make_blockvector): Likewise. Re-use free_pending_blocks.
1952         (end_symtab): Remove commented-out code.
1953
1954 2007-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
1955
1956         * top.c (command_loop): Fix output for shrinkage.
1957
1958 2007-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
1959
1960         * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1961         (exp): Remove and document function-like casts.
1962
1963 2007-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
1964
1965         * cp-support.c: Include "safe-ctype.h".
1966         (cp_already_canonical): New function.
1967         (cp_canonicalize_string): Use it.  Return NULL for already canonical
1968         strings.
1969         (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1970         (cp_func_name, remove_params): Likewise.
1971         (cp_find_first_component_aux): Use ISSPACE.
1972         * cp-support.h (cp_demangled_name_to_comp): Correct comment.  Remove
1973         MEMORY_P argument.
1974         * cp-name-parser.y (ALLOC_CHUNK): Define.
1975         (struct demangle_info): Add PREV and NEXT.  Increase the size of
1976         COMPS.
1977         (d_grab): Convert to a function.
1978         (allocate_info): Rewrite.
1979         (cp_demangled_name_to_comp): Remove MEMORY argument.  Do not use
1980         strlen.  Update call to allocate_info.  Do not free it on failure.
1981         (main): Update calls to cp_demangled_name_to_comp.
1982         * Makefile.in (cp-support.o): Update.
1983
1984 2007-10-22  Markus Deuling  <deuling@de.ibm.com>
1985
1986         * std-regs.c (value_of_builtin_frame_fp_reg)
1987         value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1988         value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1989         current architecture by frame_info.
1990
1991 2007-10-22  Markus Deuling  <deuling@de.ibm.com>
1992
1993         * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1994         by gdbarch.
1995
1996 2007-10-22  Markus Deuling  <deuling@de.ibm.com>
1997
1998         * infcmd.c (default_print_registers_info, print_return_value)
1999         (print_vector_info, print_float_info): Replace current_gdbarch by
2000         gdbarch.
2001         (registers_info): Use get_frame_arch to get at the current 
2002         architecture by frame_info.
2003
2004 2007-10-22  Markus Deuling  <deuling@de.ibm.com>
2005
2006         * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
2007         get_regcache_arch to get at the current architecture by regcache.
2008
2009 2007-10-22  Markus Deuling  <deuling@de.ibm.com>
2010
2011         * target.c (debug_print_register): Use get_regcache_arch to get at the
2012         current architecture by regcache. 
2013
2014 2007-10-21  Daniel Jacobowitz  <dan@codesourcery.com>
2015
2016         * dwarf2read.c (read_file_scope): Add a comment.
2017         (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
2018         (read_enumeration_type, process_enumeration_scope, read_array_type)
2019         (read_typedef, read_base_type, read_subrange_type)
2020         (read_unspecified_type): Use dwarf2_name.
2021
2022 2007-10-21  Daniel Jacobowitz  <dan@codesourcery.com>
2023
2024         * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
2025         * dwarf2read.c (dwarf2_free_objfile): New.
2026         * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
2027         * symfile.h (dwarf2_free_objfile): Declare.
2028
2029 2007-10-21  Joel Brobecker  <brobecker@adacore.com>
2030
2031         * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
2032
2033 2007-10-21  Luis Machado  <luisgpm@br.ibm.com>
2034
2035         * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
2036         * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2037         default dwarf2_frame_set_init_reg function.
2038                 
2039 2007-10-21  Pedro Alves  <pedro_alves@portugalmail.pt>
2040
2041         * NEWS: Mention native MinGW configuration.
2042
2043 2007-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
2044
2045         * gdbarch.sh: Remove "macro" column of input table.  Remove handling
2046         of "macro" column throughout the file.  Remove (empty) "macro" entry
2047         of all gdbarch functions.
2048
2049 2007-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
2050
2051         * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2052         * gdbarch.c, gdbarch.h: Regenerate.
2053         * dbxread.c (find_stab_function_addr): Define unconditionally.
2054         (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2055         instead of SOFUN_ADDRESS_MAYBE_MISSING.
2056         (end_psymtab): Likewise.
2057         (process_one_symbol): Likewise.
2058         * mdebugread.c (parse_partial_symbols): Likewise.
2059
2060         * symtab.h (struct minimal_symbol): Always define "filename" member.
2061         * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2062         * minsyms.c (lookup_minimal_symbol): Likewise.
2063         * symmisc.c (dump_msymbols): Likewise.
2064
2065         * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2066         * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2067         * config/i386/tm-i386sol2.h: Remove file.
2068         * config/i386/tm-linux.h: Remove file.
2069         * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2070         set_gdbarch_sofun_address_maybe_missing.
2071         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2072
2073         * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2074         * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2075         * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2076         * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2077         * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2078         * config/powerpc/tm-ppc-eabi.h: Remove file.
2079         * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2080         set_gdbarch_sofun_address_maybe_missing.
2081
2082         * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2083         * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2084         * config/sparc/tm-sol2.h: Remove file.
2085         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2086         set_gdbarch_sofun_address_maybe_missing.
2087         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2088
2089 2007-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
2090
2091         * gdbarch.sh (static_transform_name): New gdbarch callback.
2092         * gdbarch.c, gdbarch.h: Regenerate.
2093         * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2094         instead of STATIC_TRANSFORM_NAME.
2095         * mdebugread.c (parse_partial_symbols): Likewise.
2096         * stabsread.c (define_symbol): Likewise.
2097         * xcoffread.c (scan_xcoff_symtab): Likewise.
2098
2099         * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2100         (IS_STATIC_TRANSFORM_NAME): Remove.
2101         * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2102         * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2103         (i386_sol2_init_abi): Install it.
2104
2105         * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2106         (IS_STATIC_TRANSFORM_NAME): Remove.
2107         * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2108         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2109         (sparc32_sol2_init_abi): Install it.
2110         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2111         * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2112
2113 2007-10-18  Daniel Jacobowitz  <dan@codesourcery.com>
2114
2115         * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2116         (mips_n32n64_return_value, mips_o32_return_value)
2117         (mips_o64_return_value): Update calls to mips_xfer_register.
2118
2119 2007-10-17  Daniel Jacobowitz  <dan@codesourcery.com>
2120
2121         * frame.c (frame_unwind_unsigned_register): Delete.
2122         (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2123         * frame.h (frame_unwind_unsigned_register): Delete prototype.
2124
2125         * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2126         avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2127         mt-tdep.c: Replace frame_unwind_unsigned_register with
2128         frame_unwind_register_unsigned.
2129
2130 2007-10-16  Pedro Alves  <pedro_alves@portugalmail.pt>
2131
2132         * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2133         * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2134         * win32-nat.c: Only include cygwin.h on Cygwin host.  Don't
2135         include procfs.h.
2136         (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2137         if not building on Cygwin.
2138         (win32_make_so, handle_output_debug_string, handle_exception)
2139         (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2140         (win32_attach): Only fallback to Cygwin pids if building on
2141         Cygwin.
2142         (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2143         building on Cygwin.
2144         (win32_create_inferior): Disable starting the inferior through a
2145         shell, environment var processing and tty handling if not building
2146         on Cygwin.
2147         (cygwin_pid_to_str): Rename to ...
2148         (win32_pid_to_str): ... this.
2149         (init_win32_ops): Update use of win32_pid_to_str.  Disable "shell"
2150         and "cygwin-exceptions" commands if not building on Cygwin.
2151
2152 2007-10-16  Gaius Mulley  <gaius@glam.ac.uk>
2153
2154         * doc/gdb.texinfo:  Add TSIZE definition, removed
2155         statement about unbounded arrays being unimplemented.
2156         * m2-valprint.c (m2_print_array_contents):  New function.
2157         (m2_print_unbounded_array):  New function.
2158         (m2_print_array_contents):  New function.
2159         * m2-typeprint.c (m2_unbounded_array):  New function.
2160         (m2_is_unbounded_array):  New function.
2161         (m2_print_type):  Test for unbounded array when walking
2162         across structs.
2163         * m2-lang.h:  Added extern m2_is_unbounded_array.
2164         * m2-lang.c (evaluate_subexp_modula2):  New function.
2165         (exp_descriptor_modula2):  New structure.
2166         (m2_language_defn):  Use exp_descriptor_modula2.
2167         * m2-exp.y:  Added TSIZE and binary subscript.
2168
2169 2007-10-16  Daniel Jacobowitz  <dan@codesourcery.com>
2170
2171         * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2172         after freeing it.
2173
2174 2007-10-16  Kevin Buettner  <kevinb@redhat.com>
2175
2176         * m32r-tdep.c (decode_prologue): Sign extend offset for
2177         "addi sp, xx" case.
2178         (m32r_frame_unwind_cache): Likewise.
2179
2180 2007-10-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2181
2182         * rs6000-tdep.c (skip_prologue): Restore comment with
2183         function description to its proper place.
2184
2185 2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
2186
2187         * NEWS: Mention gdbserver PowerPC improvements.
2188
2189 2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
2190
2191         * features/Makefile (WHICH): Add PowerPC register definitions.
2192         (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2193         (rs6000/powerpc-64-expedite): New macros.
2194         ($(outdir)/%.dat): Handle subdirectories.
2195         * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2196         regformats/rs6000/powerpc-e500.dat: New generated files.
2197
2198 2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
2199
2200         * ppc-linux-nat.c (ppc_linux_read_description): New.
2201         (_initialize_ppc_linux_nat): Set to_read_description.
2202         * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2203
2204 2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
2205
2206         * NEWS: Document target described register support for PowerPC.
2207         * ppc-tdep.h: Remove ppc_spr constants.
2208         (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2209         ppc_builtin_type_vec128 members.
2210         (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2211         (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2212         (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2213         (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2214         (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2215         * rs6000-tdep.c: Include preparsed descriptions.
2216         (init_sim_regno_table): Do not iterate over pseudo registers.
2217         Look up segment registers by name.  Use sim_spr_register_name
2218         for SPRs.
2219         (rs6000_register_sim_regno): Call init_sim_regno_table here.
2220         (rs6000_builtin_type_vec128): Delete.
2221         (rs6000_register_name): Only handle SPE pseudo registers and upper
2222         halves.  Call tdesc_register_name for everything else.
2223         (rs6000_register_type): Delete.  Replace with...
2224         (rs6000_pseudo_register_type): ...this new function.  Only handle
2225         SPE pseudo registers.
2226         (rs6000_register_reggroup_p): Delete.  Replace with...
2227         (rs6000_pseudo_register_reggroup_p): ...this new function.  Only
2228         handle SPE pseudo registers.
2229         (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2230         "struct reg".
2231         (rs6000_register_to_value, rs6000_value_to_register): Remove check
2232         of reg->fpr.
2233         (e500_register_reggroup_p): Delete.
2234         (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2235         (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2236         (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2237         (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2238         (registers_powerpc, registers_403, registers_403GC, registers_505)
2239         (registers_860, registers_601, registers_602, registers_603)
2240         (registers_604, registers_750, registers_7400, registers_e500): Delete
2241         variables.
2242         (struct variant): Delete nregs, npregs, num_tot_regs, and regs.  Add
2243         tdesc.
2244         (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2245         (variants): Delete outdated comment.  Use standard target descriptions
2246         instead of "struct reg" arrays.
2247         (init_variants): Delete.
2248         (rs6000_gdbarch_init): Do not guess word size from the BFD
2249         architecture if we have a target description.  Select a variant
2250         before creating a new architecture.  Use the variant's target
2251         description if the target did not define a register layout.
2252         Validate target-supplied registers.  Reject mismatches.  Use
2253         fixed register numbers and new constants instead of magic
2254         numbers.  Call set_gdbarch_ps_regnum.  Call tdesc_use_registers.
2255         (_initialize_rs6000_tdep): Initialize the preparsed target
2256         descriptions.
2257         * target-descriptions.c (tdesc_predefined_types): Add int128 and
2258         uint128.
2259         (tdesc_find_register_early): New function.
2260         (tdesc_numbered_register): Use it.
2261         (tdesc_register_size): New function.
2262         (tdesc_use_registers): Take a target_desc argument.  Do not use
2263         gdbarch_target_desc.
2264         * target-descriptions.h (tdesc_use_registers): Update prototype
2265         and comment.
2266         (tdesc_register_size): New prototype.
2267         * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2268         (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2269         (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2270         (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2271         (rs6000-tdep.o): Update.
2272         * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2273         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2274         * mips-tdep.c (mips_gdbarch_init): Likewise.
2275
2276 2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
2277
2278         * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2279         features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2280         features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2281         features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2282         features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2283         features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2284         features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2285         generated files.
2286
2287 2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
2288
2289         * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2290         features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2291         features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2292         feature descriptions for standard PowerPC register sets.
2293
2294         * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2295         features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2296         features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2297         features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2298         features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2299         features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2300         features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2301         target descriptions for PowerPC processors.
2302
2303 2007-10-15  Daniel Jacobowitz  <dan@codesourcery.com>
2304
2305         * target-descriptions.c (tdesc_predefined_types): New.
2306         (tdesc_named_type): Use it.
2307         (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2308         (_intialize_target_descriptions): Register "maint print c-tdesc".
2309         * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2310         (cfiles, %.c): New rules.
2311         * features/arm-with-iwmmxt.c, features/mips-linux.c,
2312         features/mips64-linux.c: New generated files.
2313
2314         * arm-linux-nat.c: Include preparsed description instead of
2315         "xml-support.h".
2316         (super_xfer_partial, arm_linux_xfer_partial): Remove.
2317         (arm_linux_read_description): New function.
2318         (_initialize_arm_linux_nat): Set to_read_description instead of
2319         to_xfer_partial.  Initialize preparsed description.
2320         * config/arm/linux.mh (TDEP_XML): Delete.
2321         * mips-linux-nat.c: Include preparsed descriptions instead of
2322         "xml-support.h".
2323         (super_xfer_partial, mips_linux_xfer_partial): Remove.
2324         (mips_linux_read_description): New function.
2325         (_initialize_mips_linux_nat): Set to_read_description instead of
2326         to_xfer_partial.  Initialize preparsed description.
2327         * config/mips/linux.mh (TDEP_XML): Delete.
2328         * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2329         (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2330         (mips64_linux_c): New macros.
2331         (arm-linux-nat.o, mips-linux-nat.o): Update.
2332
2333 2007-10-15  Pierre Muller  <muller@ics.u-strasbg.fr>
2334
2335         * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2336         Replace xasprintf by xstrprintf.
2337         symfile-mem.c (add_vsyscall_page): Ditto.
2338
2339 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
2340
2341         * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2342         replacing use of global current_gdbarch.
2343         (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2344         (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2345
2346         * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2347         (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2348         replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2349         (ia64_sigtramp_frame_cache): Update caller.
2350
2351 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
2352
2353         * gdbarch.sh (deprecated_use_struct_convention): Remove.
2354         (extract_return_value, store_return_value): Remove.
2355         (return_value): Remove default implementation.
2356         * gdbarch.c, gdbarch.h: Regenerate.
2357
2358         * stack.c (return_command): Remove compatibility hack.
2359         * arch-utils.c (legacy_return_value): Remove.
2360         * arch-utils.h (legacy_return_value): Likewise.
2361
2362         * arch-utils.c (always_use_struct_convention): Remove.
2363         * arch-utils.h (always_use_struct_convention): Likewise.
2364         * value.c (generic_use_struct_convention): Remove.
2365         * defs.h (generic_use_struct_convention): Likewise.
2366
2367 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
2368
2369         * avr-tdep.c (avr_return_value): New function.
2370         (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2371         set_gdbarch_extract_return_value.
2372
2373         * fvr-tdep.c (frv_return_value): New function.
2374         (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2375         set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2376         and set_gdbarch_deprecated_use_struct_convention.
2377
2378         * ia64-tdep.c (ia64_use_struct_convention): Make static.
2379         Add check for structure, union, or array types.
2380         (ia64_extract_return_value): Make static.
2381         (ia64_store_return_value): Make static.  Support multi-word values.
2382         (ia64_return_value): New function.
2383         (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2384         set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2385         and set_gdbarch_deprecated_use_struct_convention.
2386
2387 2007-10-12  Joel Brobecker  <brobecker@adacore.com>
2388
2389         * solib-target.c (solib_target_parse_libraries)
2390         [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2391
2392 2007-10-12  Jim Blandy  <jimb@codesourcery.com>
2393
2394         * serial.h (struct serial_ops): Document read_prim to return zero
2395         at EOF.
2396         * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2397         read_prim returns zero, not SERIAL_TIMEOUT.
2398
2399 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
2400
2401         * alpha-mdebug-tdep.c: Include "gdb_string.h".
2402         (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2403         * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2404         * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2405
2406         * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2407         * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2408         * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2409         * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2410         * config/alpha/tm-alpha.h: Remove file.
2411
2412 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
2413
2414         * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2415         DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2416
2417         * config/pa/tm-hppa.h: Delete file.
2418         * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2419         * config/pa/hppahpux.mt: Likewise.
2420         * config/pa/hppa.mt: Likewise.
2421         * config/pa/linux.mt: Likewise.
2422         * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2423
2424 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
2425
2426         * config/arm/nm-nbsdaout.h: Remove file.
2427         * config/nm-nbsdaout.h: Likewise.
2428         * config/nm-nbsd.h: Likewise.
2429
2430 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
2431
2432         * block.h (struct block): Remove "gcc_compile_flag" member.
2433         (BLOCK_GCC_COMPILED): Remove.
2434         * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2435         * buildsym.c (finish_block): Do not set it.
2436         * symmisc.c (dump_symtab_1): Do not dump it.
2437
2438         * value.h (using_struct_return): Remove "gcc_p" argument.
2439         * value.c (using_struct_return): Likewise.
2440         * eval.c (evaluate_subexp_standard): Adapt callers.
2441         * infcall.c (call_function_by_hand): Likewise.
2442         * stack.c (return_command): Likewise.
2443         * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2444
2445         * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2446         * gdbarch.c, gdbarch.h: Regenerate.
2447         * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2448         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2449         * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2450         * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2451         (push_dummy_code, call_function_by_hand): Adapt callers.
2452
2453 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
2454
2455         * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2456         (finish_command_continuation, finish_command): Adapt callers.
2457
2458 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
2459
2460         * infcall.c (call_function_by_hand): Remove special handling
2461         for HP aCC compiled code.
2462
2463 2007-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
2464
2465         * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2466         reference.  Fix endianness bugs.
2467         (cris_reg_struct_has_address): Remove.
2468         (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2469         and set_gdbarch_deprecated_use_struct_convention calls.
2470
2471         * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2472         * gdbarch.c, gdbarch.h: Regenerate.
2473         * infcall.c (call_function_by_hand): Remove handling of
2474         deprecated_reg_struct_has_addr.
2475
2476 2007-10-11  Daniel Jacobowitz  <dan@codesourcery.com>
2477             Kazu Hirata  <kazu@codesourcery.com>
2478
2479         * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2480         checking watchpoint resources.
2481
2482 2007-10-11  Kazu Hirata  <kazu@codesourcery.com>
2483
2484         * memattr.c (inaccessible_by_default): Change the initial
2485         value to 1.
2486
2487 2007-10-11  Daniel Jacobowitz  <dan@codesourcery.com>
2488
2489         PR gdb/2280
2490         * coffread.c (read_one_sym): Check for read errors.
2491
2492 2007-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
2493
2494         * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2495         instead of "Linux 2.6.19" in comment.
2496         (linux_xfer_partial): Use "GNU/Linux target" instead of 
2497         "Linux target" in comment.
2498         * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2499         (m68k_linux_get_sigtramp_info): Likewise.
2500
2501 2007-10-11  Daniel Jacobowitz  <dan@codesourcery.com>
2502
2503         * MAINTAINERS (language support): List Joel and Paul as
2504         Ada maintainers.
2505
2506 2007-10-11  Daniel Jacobowitz  <dan@codesourcery.com>
2507
2508         * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2509         checks.
2510         * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2511         not set DEPRECATED_TM_FILE.
2512         * config/arm/tm-arm.h: Delete file.
2513
2514 2007-10-11  Luis Machado  <luisgpm@br.ibm.com>
2515
2516         * MAINTAINERS (Write After Approval): Add self.
2517
2518 2007-10-11  Daniel Jacobowitz  <dan@codesourcery.com>
2519
2520         * buildsym.c (record_line): Remove empty lines followed by
2521         end-of-sequence markers.
2522
2523 2007-10-11  Kazu Hirata  <kazu@codesourcery.com>
2524
2525         * configure.tgt: Recognize fido-*-elf.
2526
2527 2007-10-10  Joel Brobecker  <brobecker@adacore.com>
2528
2529         GDB 6.7 released.
2530
2531 2007-10-10  Markus Deuling  <deuling@de.ibm.com>
2532
2533         * stack.c (print_frame_args, frame_info, return_command): Use
2534         get_regcache_arch or get_frame_arch to get at the current architecture
2535         by regcache or by frame, respectively.
2536
2537 2007-10-10  Markus Deuling  <deuling@de.ibm.com>
2538
2539         * rs6000-nat.c (fetch_register, store_register)
2540         (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2541         get_regcache_arch to get at the current architecture by regcache.
2542
2543         * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2544         (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2545         (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2546         current_gdbarch by gdbarch.
2547         (rs6000_skip_trampoline_code, rs6000_register_to_value)
2548         (rs6000_value_to_register): Use get_frame_arch to get at the current
2549         architecture by frame_info.
2550
2551 2007-10-10  Markus Deuling  <deuling@de.ibm.com>
2552
2553         * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2554         get_regcache_arch to get at the current architecture by regcache.
2555
2556         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2557         (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2558         get_regcache_arch to get at the current architecture by regcache.
2559
2560         * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2561         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2562         (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2563         current architecture by regcache.
2564
2565 2007-10-10  Markus Deuling  <deuling@de.ibm.com>
2566
2567         * remote-mips.c (mips_wait, mips_fetch_registers)
2568         (mips_store_registers): Use get_regcache_arch to get at the
2569         current architecture by regcache.
2570
2571         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2572         (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2573         get at the current architecture by regcache.
2574         (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2575         architecture by frame_info.
2576
2577         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2578         (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2579         the current architecture by regcache.
2580
2581         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2582         (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2583         (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2584         current architecture by frame_info.
2585         (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2586         (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2587         (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2588         (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2589         get at the current architecture by regcache.
2590
2591         * mips-linux-nat.c (mips_linux_register_addr)
2592         (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2593         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2594         (mips64_linux_regsets_fetch_registers)
2595         (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2596         the current architecture by regcache.
2597
2598         * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2599         get at the current architecture by frame_info.
2600
2601 2007-10-10  Markus Deuling  <deuling@de.ibm.com>
2602
2603         * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2604         current architecture by regcache.
2605         (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2606         (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2607         (mips_stub_frame_cache, mips_read_fp_register_single)
2608         (mips_read_fp_register_double, mips_print_fp_register)
2609         (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2610         at the current architecture by frame_info.
2611         (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2612         (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2613         (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2614         (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2615         (mips_o32_push_dummy_call, mips_o32_return_value)
2616         (mips_o64_push_dummy_call, mips_o64_return_value)
2617         (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2618         gdbarch.
2619
2620 2007-10-10  Markus Deuling  <deuling@de.ibm.com>
2621
2622         * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2623         (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2624         (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2625         (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2626         (xtensa_register_write_masked, xtensa_register_read_masked)
2627         (xtensa_supply_gregset, xtensa_store_return_value)
2628         (xtensa_extract_return_value): Use get_regcache_arch to get at the
2629         current architecture by regcache.
2630         (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2631         (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2632         architecture by frame_info.
2633
2634 2007-10-10  Daniel Jacobowitz  <dan@codesourcery.com>
2635
2636         * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2637         (thumb_analyze_prologue): Move pv_area_store_would_trash call
2638         out of loop.  Do not set cache->frameoffset.
2639         (arm_scan_prologue): Use prologue-value mechanism.  Do not set
2640         frameoffset.  Simplify framesize.
2641         (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2642         frameoffset.
2643         * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2644
2645 2007-10-10  Daniel Jacobowitz  <dan@codesourcery.com>
2646
2647         * target.c (update_current_target): Call setup_target_debug.
2648         (push_target): Do not call it here.
2649
2650 2007-10-09  Michael Snyder  <msnyder@specifix.com>
2651
2652         * MAINTAINERS: Update my email address.
2653
2654 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
2655
2656         * xtensa-tdep.c: Replace following current-gdbarch based macros by
2657         their expression:
2658         (xtensa_pseudo_register_read)
2659         (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2660         (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2661         (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2662         (xtensa_pseudo_register_read)
2663         (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2664         (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2665         (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2666         (xtensa_frame_prev_register): NUM_AREGS.
2667         (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2668         (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2669         (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2670         (xtensa_supply_gregset, xtensa_frame_cache)
2671         (xtensa_frame_prev_register): WS_REGNUM.
2672         (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2673         SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2674         (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2675         (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2676         (xtensa_register_reggroup_p): REGMAP.
2677         (call0_track_op): LITBASE_REGNUM.
2678         (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2679         (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2680         (xtensa_frame_prev_register, AREG_NUMBER)
2681         (xtensa_register_type): AR_BASE.
2682         (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2683         (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2684         (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2685         (xtensa_frame_cache, xtensa_frame_prev_register)
2686         (xtensa_extract_return_value, xtensa_store_return_value)
2687         (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2688         (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2689         (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2690         (xtensa_frame_prev_register, xtensa_push_dummy_call)
2691         (call0_frame_cache): A1_REGNUM.
2692         (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2693         (xtensa_push_dummy_call): A4_REGNUM.
2694         (ARGS_FIRST_REG): A6_REGNUM.
2695         (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2696         (xtensa_frame_prev_register): A15_REGNUM.
2697         * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2698         them in the appropriate source file:
2699         XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2700         ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2701         ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2702         DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2703         DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2704         REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2705         EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2706         FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2707         A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2708         A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2709         A13_REGNUM, A14_REGNUM, A15_REGNUM.
2710
2711 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
2712
2713         * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2714         the current architecture by frame_info.
2715         (h8300_frame_prev_register
2716         (h8300_print_register): Replace current_gdbarch by gdbarch.
2717         (h8300_print_registers_info, h8300_register_type)
2718         (h8300_register_type): Likewise.
2719
2720 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
2721
2722         * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2723         the current architecture by regcache.
2724         (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2725         (i386_linux_fetch_inferior_registers)
2726         (i386_linux_store_inferior_registers): Likewise.
2727         * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2728         * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2729         * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2730         * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2731         (i386_extract_return_value, i386_store_return_value): Likewise.
2732         * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2733         the current architecture by frame_info.
2734         (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2735         (i386_register_to_value, i386_value_to_register): Likewise.
2736
2737 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
2738
2739         * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2740         the current architecture by regcache.
2741         (monitor_store_register, monitor_store_registers): Likewise.
2742
2743 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
2744
2745         * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2746         the current architecture by regcache.
2747
2748 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
2749
2750         * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2751         gdbarch.
2752
2753 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
2754
2755         * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2756         architecture by frame.
2757         (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2758         (inside_main_func, frame_sp_unwind): Likewise.
2759
2760 2007-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
2761
2762         * solib-svr4.c (enable_break): Add the dynamic linker also if
2763         auxv succeeds.
2764
2765 2007-10-09  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2766
2767         * MAINTAINERS (Write After Approval): Add self.
2768
2769 2007-10-09  Pedro Alves  <pedro_alves@portugalmail.pt>
2770
2771         * stabsread.c (read_huge_number): Initialize local variable to 0.
2772
2773 2007-10-09  Pierre Muller  <muller@ics.u-strasbg.fr>
2774
2775         * p-lang.h (pascal_main_name): Add declaration.
2776         * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2777         (GPC_MAIN_PROGRAM_NAME_2): New constants.
2778         (pascal_main_name): New function.
2779         * symtab.c: Include p-lang.h.
2780         (find_main_name): Add call to pascal_main_name.
2781         * Makefile.in (symtab.o): Add dependency on p-lang.h.
2782
2783 2007-10-09  Pedro Alves  <pedro_alves@portugalmail.pt>
2784
2785         * stabsread.c (read_huge_number): Fix handling of octal
2786         representation when the bit width is known.
2787         (read_range_type): Record unsigned integral types with their size,
2788         when the type size is known.
2789
2790 2007-10-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2791
2792         * MAINTAINERS (Write After Approval): Add self.
2793
2794 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
2795
2796         * breakpoint.c (print_one_breakpoint_location): ARI fix: 
2797         Replace asprintf by xstrprintf.
2798
2799 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
2800
2801         * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2802         Makefile.in (linux-fork.o): Add gdb_dirent.h dependency. 
2803
2804 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
2805
2806         * linux-fork.c: Move "gdb_wait.h" include back to the position of
2807         <sys/wait.h> include before last commit.
2808
2809 2007-10-08  Maciej W. Rozycki  <macro@mips.com>
2810
2811         * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2812
2813 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
2814
2815         * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2816         (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2817         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2818         (store_regs_user_thread, store_regs_kernel_thread): Use
2819         get_regcache_arch or get_frame_arch to get at the current architecture
2820         by regcache or by frame, respectively.
2821
2822 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
2823
2824         * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2825         (sh64_pseudo_register_read, sh64_pseudo_register_write)
2826         (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2827         (sh64_print_register, sh64_media_print_registers_info)
2828         (sh64_compact_print_registers_info, sh64_unwind_sp)
2829         (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2830         (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2831         (sh64_frame_prev_register): Use FRAME to recognize current
2832         architecture.
2833
2834 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
2835
2836         * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2837         (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2838         (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2839         current_gdbarch by gdbarch.
2840         (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2841         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2842         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2843         (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2844         recognize current architecture.
2845
2846 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
2847
2848         * remote.c (init_remote_state, fetch_register_using_p)
2849         (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2850         (store_register_using_P, store_registers_using_G)
2851         (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2852         get at the current architecture by regcache or by frame, respectively.
2853
2854 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
2855
2856         * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2857         (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2858         (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2859         get_regcache_arch or get_frame_arch to get at the current architecture
2860         by regcache or by frame, respectively.
2861         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2862         * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2863         (store_register, old_store_inferior_registers, supply_gregset)
2864         (supply_fpregset, fill_fpregset): Likewise.
2865         * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2866         Replace current_gdbarch by gdbarch.
2867
2868 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
2869
2870         * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2871         (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2872         get_frame_arch to get at the current architecture by regcache or by
2873         frame, respectively.
2874
2875 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
2876
2877         * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2878         Replace current_gdbarch by gdbarch.
2879         * ia64-tdep.c (ia64_frame_prev_register
2880         (ia64_sigtramp_frame_prev_register)
2881         (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2882         get_frame_arch to get at the current architecture by regcache or by
2883         frame, respectively.
2884         * ia64-linux-nat.c (ia64_linux_fetch_register)
2885         (ia64_linux_fetch_registers, ia64_linux_store_register)
2886         (ia64_linux_store_registers): Likewise.
2887
2888 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
2889
2890         * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2891         current_gdbarch by gdbarch.
2892         * hppa-linux-nat.c (fetch_register, store_register)
2893         (hppa_linux_fetch_inferior_registers)
2894         (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2895         get_frame_arch to get at the current architecture by regcache or by
2896         frame, respectively.
2897         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2898         (hppa_hpux_unwind_adjust_stub): Likewise.
2899         * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2900         (hppa_hpux_fetch_inferior_registers)
2901         (hppa_hpux_store_inferior_registers): Likewise.
2902
2903 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
2904
2905         * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2906         (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2907         (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2908         or get_frame_arch to get at the current architecture by regcache or by
2909         frame, respectively.
2910         * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2911         (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2912         (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2913         current_gdbarch by gdbarch.
2914
2915 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
2916
2917         * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2918         (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2919         (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2920         get at the current architecture by regcache or by·frame, respectively.
2921         (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2922         gdbarch.
2923
2924 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
2925
2926         * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2927         Use get_regcache_arch or get_frame_arch to get at the current
2928         architecture by regcache or by frame, respectively.
2929         * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2930         * amd64-nat.c (amd64_supply_native_gregset)
2931         (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2932
2933 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
2934
2935         * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2936         gdbarch.
2937         * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2938         (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2939         (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2940         get_frame_arch to get at the current architecture by regcache or by 
2941         frame, respectively.
2942         * alpha-nat.c (fetch_osf_core_registers): Likewise.
2943
2944 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
2945
2946         * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2947         (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2948         current_gdbarch by gdbarch.
2949         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2950
2951 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
2952
2953         * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2954         (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2955         * regcache.c (regcache_raw_write): Use get_regcache_arch or
2956         get_frame_arch to get at the current architecture by regcache or by
2957         frame, respectively.
2958
2959 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
2960
2961         * findvar.c (value_of_register, locate_var_value): Use
2962         get_regcache_arch or get_frame_arch to get at the current architecture
2963         by regcache or by frame, respectively.
2964         * findvar.c (default_value_from_register, value_from_register): Replace
2965         current_gdbarch by gdbarch.
2966
2967 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
2968
2969         * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2970
2971 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
2972
2973         * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2974         Makefile.in (linux-fork.o): Add gdb_wait.h dependency. 
2975
2976 2007-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
2977
2978         * remote.c (get_offsets): Only call free_symfile_segment_data if
2979         data was allocated.
2980
2981 2007-10-03  Pierre Muller  <muller@ics.u-strasbg.fr>
2982
2983         * objc-exp.y: ARI fix: remove 4 PARAMS. 
2984
2985 2007-10-03  Daniel Jacobowitz  <dan@codesourcery.com>
2986
2987         * NEWS: Use uniform spacing.  Correct version number for GDB 6.7
2988         news.  Mention XML support for M68K in GDB 6.7.
2989
2990 2007-10-03  Daniel Jacobowitz  <dan@codesourcery.com>
2991
2992         * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2993         bounds.
2994         (init_vector_type): Use builtin_type_int32.
2995
2996 2007-10-02  Ulrich Weigand  <uweigand@de.ibm.com>
2997
2998         * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2999         size to enable bi-arch generate-core-file support.
3000
3001 2007-10-02  Markus Deuling  <deuling@de.ibm.com>
3002
3003         * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
3004
3005 2007-10-02  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3006
3007         * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
3008         signal handler.
3009         * tui/tui-win.c (tui_initialize_win): New function for
3010         initializing tui's SIGWINCH signal handler.
3011         * tui/tui-win.h (tui_initialize_win): Declare.
3012
3013 2007-10-02  Ulrich Weigand  <uweigand@de.ibm.com>
3014
3015         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
3016         pointer to uintptr_t before casting to CORE_ADDR.
3017
3018 2007-10-02  Markus Deuling  <deuling@de.ibm.com>
3019
3020         * linux-nat.c (PTRACE_GETSIGINFO): Add define.
3021
3022 2007-10-02  Mark Mitchell  <mark@codesourcery.com>
3023
3024         * mingw-hdep.c (gdb_select): Stop helper threads before returning.
3025         * ser-mingw.c (enum select_thread_state): New type.
3026         (struct ser_console_state): Add have_started and thread_state.
3027         (select_thread_wait): New function.
3028         (thread_fn_type): New type.
3029         (create_select_thread): New function.
3030         (destroy_select_thread): Likewise.
3031         (start_select_thread): Likewise.
3032         (stop_select_thread): Likewise.
3033         (console_select_thread): Use new functions.
3034         (pipe_select_thread): Likewise.
3035         (file_select_thread): Likewise.
3036         (ser_console_wait_handle): Likewise.
3037         (ser_console_done_wait_handle): Likewise.
3038         (ser_console_close): Likewise.
3039         (free_pipe_state): Likewise.
3040         (pipe_wait_handle): Likewise.
3041         (pipe_done_wait_handle): Likewise.
3042         (struct net_windows_state): Derive from ser_console_state.
3043         (net_windows_select_thread): Use new functions.
3044         (net_windows_wait_handle): Likewise.
3045         (net_windows_done_wait_handle): Likewise.
3046         (net_windows_close): Likewise.
3047
3048 2007-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
3049
3050         * inflow.c (terminal_ours_1): Remove useless line.
3051
3052 2007-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
3053
3054         * mips-tdep.c (mips_read_fp_register_double): Correct check for
3055         odd FP registers.
3056         (mips_print_fp_register): Correct check for even FP registers.
3057         (mips_virtual_frame_pointer): New function.
3058         (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3059
3060 2007-09-30  Mike Frysinger  <vapier@gentoo.org>
3061
3062         * value.h (lookup_only_internalvar): New prototype.
3063         (create_internalvar): Likewise.
3064         * value.c (lookup_only_internalvar): New function.
3065         (create_internalvar): Likewise.
3066         (lookup_internalvar): Use new lookup_only_internalvar and
3067         create_internalvar functions.
3068         * parse.c (write_dollar_variable): Look up $ symbols in internal
3069         table first rather than last.
3070
3071 2007-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
3072
3073         * linux-nat.c (linux_nat_new_thread): New variable.
3074         (linux_child_follow_fork): Set inferior_ptid to include LWP ID.  Use
3075         linux_nat_switch_fork.
3076         (lwp_list): Make public.
3077         (add_lwp): Call linux_nat_new_thread.
3078         (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3079         the new thread.
3080         (resume_callback): Clear lp->siginfo.  Remove unused variable.
3081         (linux_nat_resume): Assert that the LWP list is already initialized.
3082         Clear lp->siginfo.
3083         (save_siginfo): New.
3084         (stop_wait_callback, linux_nat_wait): Call it.
3085         (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3086         * linux-nat.h (struct lwp_info): Add siginfo.
3087         (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3088         (ALL_LWPS): Define.
3089
3090         * amd64-linux-nat.c (amd64_linux_dr): New.
3091         (amd64_linux_dr_get): Take a PTID argument.  Correct typo.
3092         (amd64_linux_dr_set): Take a PTID argument.
3093         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3094         (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3095         (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3096         (amd64_linux_new_thread): New.
3097         (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3098         * i386-linux-nat.c (i386_linux_dr): New.
3099         (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3100         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3101         (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3102         (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3103         (i386_linux_new_thread): New.
3104         (i386_linux_resume): Remove unnecessary PID check.
3105         (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3106         * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3107         (fetch_debug_register, fetch_debug_register_pair): Delete.
3108         (debug_registers): New.
3109         (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3110         ALL_LWPS and debug_registers.
3111         (ia64_linux_new_thread): New.
3112         (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3113         (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3114         * ppc-linux-nat.c (last_stopped_data_address): Delete.
3115         (saved_dabr_value): New.
3116         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3117         ALL_LWPS.
3118         (ppc_linux_new_thread): New.
3119         (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3120         (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3121         (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3122         * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3123         after reading it.
3124         (s390_fix_watch_points): Take a PTID argument.
3125         (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3126         (_initialize_s390_nat): Call linux_nat_set_new_thread.
3127
3128 2007-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
3129             Jeff Johnston  <jjohnstn@redhat.com>
3130
3131         * breakpoint.c (watchpoints_triggered): New.
3132         (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3133         Check watchpoint_triggered instead.  Combine handling for software
3134         and hardware watchpoints.  Do not use target_stopped_data_address
3135         here.  Always check a watchpoint if its scope breakpoint triggers.
3136         Do not stop for thread or overlay events.  Improve check for
3137         triggered watchpoints without a value change.
3138         (watch_command_1): Insert the scope breakpoint first.  Link the
3139         scope breakpoint to the watchpoint.
3140         * breakpoint.h (enum watchpoint_triggered): New.
3141         (struct breakpoint): Add watchpoint_triggered.
3142         (bpstat_stop_status): Update prototype.
3143         (watchpoints_triggered): Declare.
3144         * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3145         (stepped_after_stopped_by_watchpoint): Delete.
3146         (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3147         local.  Handle infwait_step_watch_state.  Update calls to
3148         bpstat_stop_status.  Use watchpoints_triggered to check
3149         watchpoints.
3150         * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3151         (remote_stopped_data_address): Do not check it.
3152
3153 2007-09-29  Daniel Jacobowitz  <dan@codesourcery.com>
3154
3155         * configure.ac: Add $LIBINTL when testing libbfd.
3156         * configure: Regenerated.
3157
3158 2007-09-28  Vladimir Prus  <vladimir@codesourcery.com>
3159
3160         * NEW: Mention pending breakpoint changes and
3161         support for breakpoints at multiple locations.
3162         
3163 2007-09-27  Daniel Jacobowitz  <dan@codesourcery.com>
3164
3165         * arm-linux-tdep.c (arm_linux_software_single_step): New.
3166         (arm_linux_init_abi): Use it.
3167         * arm-tdep.c (arm_get_next_pc): Make global.  Handle all-ones
3168         condition correctly.
3169         * arm-tdep.h (arm_get_next_pc): Declare.
3170         * Makefile.in (arm-linux-tdep.o): Update.
3171
3172 2007-09-26  Vladimir Prus  <vladimir@codesourcery.com>
3173
3174         * varobj.c (install_new_value): Don't
3175         call value_get_print_value when a value is
3176         lazy.  Update the print_value member in a
3177         single place.
3178
3179 2007-09-26  Vladimir Prus  <vladimir@codesourcery.com>
3180
3181         * breakpoint.c (create_breakpoint): Set
3182         condition on each location, not on the first
3183         location of breakpoint.
3184         
3185 2007-09-26  Jim Blandy  <jimb@codesourcery.com>
3186
3187         * remote.c (getpkt_sane): Fix error message.  No animals were
3188         harmed in the making of this debugger.
3189
3190 2007-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
3191
3192         * p-typeprint.c: Fix 11 ARI reported problems.
3193         (pascal_print_type): Fix 4 operator at end of line.
3194         (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros 
3195         using strncmp function.
3196         (pascal_type_print_base): Fix 2 operator at end of line.
3197         (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros 
3198         using strncmp function.
3199
3200
3201 2007-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
3202
3203         * Fix PR pascal/2231
3204         dwarf2read.c (read_subroutine_type): 
3205         All pascal functions are prototyped. 
3206
3207 2007-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
3208
3209         * Fix PR pascal/2283
3210         p-valprint.c (pascal_val_print): correct current language check.
3211         Also print array of char as strings.
3212
3213
3214 2007-09-26  David Ung  <davidu@mips.com>
3215             Maciej W. Rozycki  <macro@mips.com>
3216
3217         * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3218
3219 2007-09-25  Pierre Muller  <muller@ics.u-strasbg.fr>
3220
3221         * p-exp.y: Fix 12 ARI reported problems.
3222         (name_not_typename): Fix 2 operator at end of line issues.
3223         (yylex): Fix 3 operator at end of line issues.
3224         Replace 7 DEPRECATED_STREQ macros using strcmp function.
3225
3226 2007-09-25  David Ung  <davidu@mips.com>
3227             Maciej W. Rozycki  <macro@mips.com>
3228
3229         * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3230         rules return composite types in registers as appropriate.
3231
3232 2007-09-24  Jim Blandy  <jimb@codesourcery.com>
3233
3234         * symfile.h (struct symfile_segment_data): Doc fixes.
3235         * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3236         Assert that we were passed some loaded segment addresses,
3237         and that sections' segment numbers are valid.
3238         Simplify offset calculation.
3239         * remote.c (get_offsets): Clarify selection of relocate-by-segment
3240         strategy, and set num_segments correctly.  Delete redundant
3241         assignments to do_sections.
3242
3243 2007-09-24  Daniel Jacobowitz  <dan@codesourcery.com>
3244
3245         * frame.c (get_prev_frame_1): Also check for PC in the same register.
3246
3247 2007-09-24  Vladimir Prus  <vladimir@codesourcery.com>
3248         
3249         * breakpoint.c (remove_sal): New.
3250         (expand_line_sal_maybe): New.
3251         (create_breakpoints): Call expand_line_sal_maybe.
3252         (clear_command): Add comment.
3253         (breakpoint_re_set_one): Call expand_line_sal_maybe.
3254         * linespec.c (decode_indirect): Set explicit_pc to 1.
3255         (decode_all_digits): Set explicit_line to 1.
3256         (append_expanded_sal): New.
3257         (expand_line_sal): New.
3258         * linespec.h (expand_line_sal): Declare.
3259         * symtab.c (init_sal): Initialize explicit_pc 
3260         and explicit_line.
3261         * symtab.h (struct symtab_and_line): New fields
3262         explicit_pc and explicit_line.  
3263
3264 2007-09-23  Daniel Jacobowitz  <dan@codesourcery.com>
3265
3266         * infcall.c (call_function_by_hand): Handle language-specific
3267         pass and return by reference.
3268
3269         * cp-abi.c (cp_pass_by_reference): New.
3270         * cp-abi.h (cp_pass_by_reference): Declare.
3271         (struct cp_abi_ops): Add pass_by_reference.
3272         * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3273         (init_gnuv3_ops): Set pass_by_reference.
3274
3275         * language.c (language_pass_by_reference): New.
3276         (default_pass_by_reference): New.
3277         (unknown_language_defn, auto_language_defn, local_language_defn): Add
3278         default_pass_by_reference.
3279         * langauge.h (struct language_defn): Add la_pass_by_reference.
3280         (language_pass_by_reference, default_pass_by_reference): Declare.
3281         * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3282         * c-lang.c (c_language_defn, asm_language_defn)
3283         (minimal_language_defn): Likewise.
3284         (cplus_language_defn): Add cp_pass_by_reference.
3285         * f-lang.c (f_language_defn): Add default_pass_by_reference.
3286         * jv-lang.c (java_language_defn): Likewise.
3287         * m2-lang.c (m2_language_defn): Likewise.
3288         * objc-lang.c (objc_language_defn): Likewise.
3289         * p-lang.c (pascal_language_defn): Likewise.
3290         * scm-lang.c (scm_language_defn): Likewise
3291
3292 2007-09-23  Vladimir Prus  <vladimir@codesourcery.com>
3293
3294         Allow a code breakpoint to have several locations
3295         associated with it.
3296         * breakpoint.h (enum enable_state): Remove the
3297         bp_shlib_disabled enumerator. 
3298         (struct bp_location): New members shlib_disabled,
3299         global_next, enabled and function_name.
3300         Rename pending to condition_not_parsed.
3301
3302         * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3303         (ALL_BP_LOCATIONS_SAFE): Likewise.
3304         (breakpoint_enabled): Don't check for pending.
3305         (condition_command): Free and update all locations of
3306         a breakpoint.
3307         (insert_bp_location): Adjust.
3308         (software_breakpoint_inserted_here_p): Don't care
3309         if breakpoint is enabled, as soon as it's inserted.
3310         (print_it_typical): Print bpstat's location, not
3311         bpstat's breakpoint's location.
3312         (bpstat_stop_status): Iterate over all locations, not
3313         all breakpoints.
3314         (print_breakpoint_location): New.
3315         (print_one_breakpoint): Renamed to
3316         (print_one_breakpoint_location): ...this. Take
3317         parameters to describe which location is being
3318         printed. Modify code to properly print header
3319         for several locations and individual locations.
3320         (print_one_breakpoint): Print all locations.
3321         (breakpoint_has_pc): New.
3322         (describe_other_breakpoints): Use the above.
3323         (check_duplicates): Renamed to...
3324         (check_duplicates_for): .. this.
3325         (check_duplicates): Use check_duplicates_for.
3326         (allocate_bp_location): Adjust.
3327         (set_raw_breakpoint_without_location): New,
3328         extracted from set_raw_breakpoint.
3329         (set_breakpoint_location_function): New.
3330         (set_raw_breakpoint): Use 
3331         set_raw_breakpoint_without_location.
3332         (make_breakpoint_permanent): Mark all locations
3333         as inserted.
3334         (disable_breakpoints_in_shlibs): Iterate over
3335         locations.
3336         (disable_breakpoints_in_unloaded_shlib): Likewise.
3337         (re_enable_breakpoints_in_shlibs): Likewise.
3338         (mention): Say "pending" when breakpoint has
3339         zero locations.  If breakpoint has more than one
3340         location, say so.
3341         (add_location_to_breakpoint): New.
3342         (create_breakpoint): Accept symtabs_and_lines, not
3343         symtab_and_line. Pass extra sals to 
3344         add_location_to_breakpoint.
3345         (create_breakpoints): Pass symtabs_and_lines to
3346         create_breakpoints.
3347         (break_command_1): Make pending breakpoints
3348         have zero locations.
3349         (do_captured_breakpoint): Remove wrong allocation.
3350         (clear_command): Iterate over all locations.
3351         (unlink_locations_from_global_list): Renamed
3352         from unlink_location_from_global_list. Remove
3353         all locations.
3354         (delete_breakpoint): Remove all locations.
3355         Iterate over all locations when deciding which
3356         other location to re-enable.
3357         (all_locations_are_pending): New.
3358         (update_breakpoint_locations): Renamed from
3359         update_breakpoint_location. Try to match old
3360         and new locations using names of containing
3361         functions.
3362         (breakpoint_re_set_one): Adjust.
3363         (find_location_by_number): New.
3364         (disable_command): Allow disabling individual location.
3365         (enable_command): Allow enabling individual location.
3366         * breakpoint.c: Adjust all uses of breakpoint's
3367         enable state to for bp_shlib_disabled change.
3368         
3369 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
3370
3371         * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3372         (resolve_pending_breakpoint): Remove.
3373         (re_enable_breakpoints_in_shlibs): Remove.
3374         (unlink_locations_from_global_list): New.
3375         (update_breakpoint_locations): New.
3376         (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3377         Use parse_condition and update_breakpoint_location to
3378         reset breakpoint.  Ignore 'symbol not found' error from
3379         decode_line_1.
3380         (breakpoint_re_set): Don't emit newline before the
3381         reason why breakpoint is not reset.
3382         (do_enable_breakpoint): Don't specially process pending
3383         breakpoints.
3384         (free_bp_location): New.
3385         (break_command_1): For pending breakpoints, initialize
3386         all fields of a sal with zeroes.
3387         * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3388         * infcmd.c (post_create_inferior): Don't call
3389         re_enable_breakpoints_in_shlibs.
3390         * infrun.c (handle_inferior_event): Likewise.
3391         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3392         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3393         * win32-nat.c (get_win32_debug_event): Likewise.
3394         
3395 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
3396
3397         * breakpoint.c (create_breakpoint): Split from
3398         create_breakpoints, implementing most of its logic.
3399         Take just a single sal, single address string and
3400         single condition.  Do not take parsed condition at
3401         all.
3402         (create_breakpoints): Just call create_breakpoint
3403         for each sal.
3404         (find_condition_and_thread): New.
3405         (break_command_1): Use find_condition_and_thread.
3406         Do not keep parsed conditions.
3407         (do_captured_breakpoint): Don't convert
3408         condition string to struct expression.
3409         
3410 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
3411
3412         * breakpoint.h (struct breakpoint): Move the cond 
3413         field to...
3414         (struct bp_location): Here.
3415         * breakpoint.c (condition_command, bpstat_stop_status)
3416         (print_one_breakpoint, allocate_bp_location)
3417         (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3418         (create_exec_event_catchpoint, create_breakpoints)
3419         (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3420         (create_ada_exception_breakpoint, set_breakpoint_sal)
3421         (delete_breakpoint, breakpoint_re_set_one): Adjust.
3422         * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3423         
3424 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
3425
3426         Associate bp_stat with bp_location, not breakpoint.
3427         * breakpoint.h (breakpoint_at): Change type
3428         to bp_location*.
3429         * breakpoint.c (bpstat_alloc): Take bp_location,
3430         not breakpoint.
3431         (bpstat_find_breakpoint): Look at bpstat's location's
3432         owner, not at bpstat->breakpoint_at.
3433         (bpstat_find_step_resume_breakpoint): Likewise.
3434         (bpstat_num): Likewise.
3435         (print_it_typical): Likewise.
3436         (print_bp_stop_message): Likewise.
3437         (watchpoint_check): Likewise.
3438         (bpstat_what): Likewise.
3439         (bpstat_get_triggered_catchpoints): Likewise.
3440         (breakpoint_auto_delete): Likewise.
3441         (delete_breakpoint): Likewise.  
3442         (bpstat_stop_status): Pass location, not breakpoint,
3443         to bpstat_alloc.  Look at bpstat's location's
3444         owner, not at bpstat->breakpoint_at.
3445
3446 2007-09-21  Jim Blandy  <jimb@codesourcery.com>
3447
3448         * macrotab.h (new_macro_table): Document that removing information
3449         from an obstack/bcache-managed macro table leaks memory.
3450         * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3451         that data is never freed in obstack/bcache-managed macro tables,
3452         just leak the storage.
3453         (macro_undef): If we're undefining a macro at exactly the same
3454         source location that we defined it, simply remove the definition
3455         altogether.
3456
3457 2007-09-21  Joel Brobecker  <brobecker@adacore.com>
3458
3459         * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3460         * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3461         Adjust the struct sym_fns object accordingly by setting
3462         the new field to NULL.
3463         * xcoffread.c (aix_process_linenos): Make static.
3464         (xcoff_sym_fns): Set new field to aix_process_linenos.
3465         * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3466         by call to new the new sym_fns sym_read_linetable function.
3467         * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3468         * config/rs6000/tm-rs6000.h: Delete.
3469
3470 2007-09-21  David Ung  <davidu@mips.com>
3471             Maciej W. Rozycki  <macro@mips.com>
3472
3473         * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3474         rules do not treat composite types specially.
3475
3476 2007-09-20  Maciej W. Rozycki  <macro@mips.com>
3477
3478         * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3479         (mips16_in_function_epilogue_p): Likewise.
3480         (mips_in_function_epilogue_p): Likewise.
3481         (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3482
3483 2007-09-19  Joel Brobecker  <brobecker@adacore.com>
3484
3485         * configure.ac: Add check for "etext".
3486         * configure, config.in: Regenerate.
3487         * maint.c (TEXTEND): Only define if either _etext or etext
3488         are available.
3489         Disable the profiling functionality if TEXTEND is not defined.
3490
3491 2007-09-19  Daniel Jacobowitz  <dan@codesourcery.com>
3492
3493         * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3494         address register.  Correct the call to frame_id_build.
3495         (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3496         is invalid.
3497
3498 2007-09-18  Joel Brobecker  <brobecker@adacore.com>
3499
3500         * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3501         the linetable past the function end.
3502
3503 2007-09-18  James E. Wilson  <wilson@specifix.com>
3504
3505         * MAINTAINERS: Update my email address.
3506
3507 2007-09-18  Jerome Guitton  <guitton@adacore.com>
3508
3509         * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3510         (inf_ttrace_delete_dying_threads_callback): New function.
3511         (inf_ttrace_resume): After resuming the execution, iterate over
3512         the dying threads to delete them for the thread list.
3513         (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3514         mark the corresponding thread as dying instead of removing it
3515         from the thread list.
3516         (inf_ttrace_thread_alive): return 0 for dying threads.
3517
3518 2007-09-17  Joel Brobecker  <brobecker@adacore.com>
3519
3520         * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3521         that return_frame is not null.
3522
3523 2007-09-17  Joel Brobecker  <brobecker@adacore.com>
3524
3525         * solib-svr4.c: Add include of "auxv.h".
3526         (enable_break): Use the AT_BASE auxiliary entry if available.
3527         * Makefile.in (solib-svr4.o): Update dependencies.
3528
3529 2007-09-17  Joel Brobecker  <brobecker@adacore.com>
3530
3531         * NEWS: Create a new section for the next release branch.
3532         Rename the section of the current branch, now that it has
3533         been cut.
3534
3535 2007-09-17  Jerome Guitton  <guitton@adacore.com>
3536
3537         * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3538         * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3539
3540 2007-09-16  Vladimir Prus  <vladimir@codesourcery.com>
3541
3542         * mi/mi-cmds.c (mi_cmds): Register -list-features.
3543         * mi/mi-cmds.h (mi_cmd_list_features): New.
3544         * mi/mi-main.c (mi_cmd_list_features): New.
3545         
3546 2007-09-11  Joel Brobecker  <brobecker@adacore.com>
3547
3548         GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3549         * version.in: Bump version to 6.7.50-20070911-cvs.
3550
3551 2007-09-10  Daniel Jacobowitz  <dan@codesourcery.com>
3552
3553         * thread.c (free_thread): Do not delete the step resume breakpoint
3554         right away.
3555
3556 2007-09-10  Daniel Jacobowitz  <dan@codesourcery.com>
3557
3558         * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3559         * corelow.c (core_read_description): New.
3560         (init_core_ops): Set to_read_description.
3561         * gdbarch.sh: Add gdbarch_core_read_description.
3562         * mips-linux-tdep.c (mips_linux_core_read_description): New.
3563         (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3564         * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3565         (mips_register_g_packet_guesses): Use them.
3566         (_initialize_mips_tdep): Initialize them.
3567         * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3568         * gdbarch.h, gdbarch.c: Regenerated.
3569
3570 2007-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3571
3572         * infrun.c (stepping_past_breakpoint): New global variable.
3573         (stepping_past_breakpoint_ptid): Likewise.
3574         (prepare_to_proceed): Add STEP parameter.  Do not check for Ctrl-C.
3575         Only switch threads if we need to single-step over a breakpoint hit
3576         in the previously selected thread.  If stepping, remember previous
3577         thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID].  Call
3578         switch_to_thread instead of copying its contents.
3579         (proceed): Pass STEP to prepare_to_proceed.  Always set ONEPROC if
3580         prepare_to_proceed returns true.
3581         (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3582         (context_switch): Call switch_to_thread.
3583         (handle_inferior_event): Switch back to previous thread if requested
3584         in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3585         * gdbthread.h (switch_to_thread): Add prototype.
3586         * thread.c (switch_to_thread): Make global.
3587
3588 2007-09-07  Pierre Muller  <muller@ics.u-strasbg.fr>
3589
3590          * p-valprint.c: Fix 7 ARI reported problems.
3591          (pascal_val_print): Fix one operator at end of line issue.
3592          Use paddress function to remove use of
3593          deprecated_print_address_numeric function (2 times).
3594          Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3595          (pascal_value_print): Fix 3 operator at end of line issues.
3596
3597 2007-09-07  Daniel Jacobowitz  <dan@codesourcery.com>
3598
3599         PR gdb/2103
3600         * arm-tdep.c (arm_in_call_stub): Delete.
3601         (arm_skip_stub): Handle from_arm and from_thumb stubs.
3602
3603 2007-09-06  Daniel Jacobowitz  <dan@codesourcery.com>
3604
3605         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3606         types.
3607
3608 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
3609             Jim Blandy  <jimb@codesourcery.com>
3610
3611         * NEWS: Update description of string changes.  Mention print/s.
3612         * c-valprint.c (textual_element_type): New.
3613         (c_val_print): Use it.  Do not skip address printing for pointers
3614         with a string format.
3615         (c_value_print): Doc update.
3616         * dwarf2read.c (read_array_type): Use make_vector_type.
3617         * gdbtypes.c (make_vector_type): New.
3618         (init_vector_type): Use it.
3619         (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3620         (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3621         * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3622         (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3623         (make_vector_type): New.
3624         * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3625         Call the language print routine for string format.
3626         (print_scalar_formatted): Call val_print for string format.  Handle
3627         unsigned original types for char format.
3628         (validate_format): Do not reject string format.
3629         * stabsread.c (read_type): Use make_vector_type.
3630         * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3631
3632 2007-09-04  Michael Snyder  <msnyder@access-company.com>
3633
3634         * expprint.c (print_subexp_standard): Check strchr for null.
3635         * Makefile.in (expprint.o): Depend on gdb_assert.h.
3636
3637         * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3638
3639         * stabsread.c (patch_block_status): Guard against null.
3640         * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3641
3642 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
3643
3644         * printcmd.c (printf_command): Handle ptr_arg.  Correct typo
3645         in internal error message.
3646
3647 2007-09-04  Pedro Alves  <pedro_alves@portugalmail.pt>
3648             Daniel Jacobowitz  <dan@codesourcery.com>
3649
3650         * infcmd.c (post_create_inferior): Update comment.
3651         (run_command_1): Always call post_create_inferior with 0 as
3652         from_tty.
3653
3654         * i386-cygwin-tdep.h: New.
3655         * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3656         (win32_xfer_shared_library): Make it extern.
3657
3658         * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3659         i386-cygwin-tdep.h.
3660         (win32_so_ops): Delete.
3661         (get_relocated_section_addrs): Delete.
3662         (solib_symbols_add): Delete.
3663         (register_loaded_dll): Delete.
3664         (win32_make_so): New.
3665         (handle_load_dll): Use win32_make_so.
3666         (win32_free_so): Free the passed in so.
3667         (win32_relocate_section_addresses): Delete.
3668         (win32_solib_create_inferior_hook): Delete.
3669         (handle_unload_dll): Don't add PE offset here.  Free so with
3670         win32_free_so instead of free_so.
3671         (win32_special_symbol_handling): Delete.
3672         (get_win32_debug_event): Remove unneeded calls.  Set state to
3673         TARGET_WAITKIND_LOADED on a dll unload.
3674         (do_initial_win32_stuff): Clear cygwin_load_start and
3675         cygwin_load_end.
3676         (map_code_section_args): Delete.
3677         (dll_code_sections_add): Delete.
3678         (core_section_load_dll_symbols): Delete.
3679         (win32_xfer_shared_libraries): New.
3680         (win32_current_sos): Delete.
3681         (win32_xfer_partial): New.
3682         (open_symbol_file_object): Delete.
3683         (in_dynsym_resolve_code): Delete.
3684         (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3685         of win32_ops.  Remove win32_so_ops settings.  Don't set
3686         current_target_so_ops here.
3687
3688         * Makefile.in (i386_cygwin_tdep_h): New variable.
3689         (i386-cygwin-tdep.o): Update dependencies.
3690         (win32-nat.o): Update dependencies.
3691
3692 2007-09-04  Pedro Alves  <pedro_alves@portugalmail.pt>
3693             Daniel Jacobowitz  <dan@codesourcery.com>
3694
3695         * gdbarch.sh (core_xfer_shared_libraries): New.
3696
3697         * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3698
3699         * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3700
3701         * xml-support.c (gdb_xml_parse): Debug output tweaks.
3702         (xml_escape_text): New.
3703         * xml-support.h (xml_escape_text): Declare.
3704
3705         * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3706         * config/i386/cygwin.mt (TDEPFILES): ... here.
3707
3708         * win32-nat.c: (fetch_elf_core_registers): Delete.
3709         (win32_elf_core_fn): Delete.
3710         (_initialize_core_win32): Delete.
3711
3712         * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3713         "xml-support.h" and "gdbcore.h".
3714         (i386_win32_gregset_reg_offset): New.
3715         (I386_WIN32_SIZEOF_GREGSET): New.
3716         (i386_win32_regset_from_core_section): New.
3717         (win32_xfer_shared_library): New.
3718         (struct cpms_data): New.
3719         (core_process_module_section): New.
3720         (win32_core_xfer_shared_libraries): New.
3721         (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3722         gregset_num_regs, sizeof_gregset members of tdep.  Register
3723         regset_from_core_section and core_xfer_shared_libraries callbacks.
3724
3725         * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3726         * gdbarch.h, gdbarch.c: Regenerate.
3727
3728 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
3729
3730         * corelow.c (core_xfer_partial): Pass writebuf to
3731         deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3732
3733 2007-09-03  Pedro Alves  <pedro_alves@portugalmail.pt>
3734
3735         * arm-tdep.h (arm_skip_stub): Declare.
3736         * arm-wince-tdep.c: Don't include "solib-svr4.h".  Include
3737         "gdbcore.h".
3738         (arm_pe_skip_trampoline_code): New function.
3739         (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3740         gdbarch_skip_trampoline_code callback.
3741         * Makefile.in (arm-wince-tdep.o): Update dependencies.
3742
3743 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
3744
3745         * MAINTAINERS: Move Fred Fish to Past Maintainers.
3746
3747 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
3748
3749         * configure.ac: Add --with-expat.
3750         * configure: Regenerated.
3751
3752 2007-09-03  Andreas Schwab  <schwab@suse.de>
3753
3754         * configure.ac: Accept --with-system-readline.
3755         (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3756         * configure: Regenerate.
3757         * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3758         substituted values.
3759         (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3760
3761 2007-09-03  Maxim Grigoriev  <maxim2405@gmail.com>
3762             Daniel Jacobowitz  <dan@codesourcery.com>
3763
3764         * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3765
3766 2007-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3767
3768         * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3769
3770 2007-09-02  Daniel Jacobowitz  <dan@codesourcery.com>
3771
3772         * top.c (print_gdb_version): Update for GPL version 3.
3773
3774 2007-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3775
3776         * NEWS: Mention the build-id .debug files verification.
3777
3778 2007-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3779
3780         * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3781
3782 2007-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3783
3784         * Makefile.in (symfile.o): Update dependencies.
3785         * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3786         DEBUGFILE variable.  FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3787         (struct build_id): New structure.
3788         (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3789         (find_separate_debug_file): New variable BUILD_ID.
3790         Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3791
3792 2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
3793
3794         * varobj.c (struct varobj): Fix comment
3795         for the type member not to lie when it can be 
3796         NULL.
3797         
3798 2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
3799
3800         Implement -var-info-path-expression.
3801
3802         * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3803         Declare.
3804         * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3805         * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3806         * varobj.c (struct varobj): New field 'path_expr'.
3807         (c_path_expr_of_child, cplus_path_expr_of_child)
3808         (java_path_expr_of_child): New.
3809         (struct language_specific): New field path_expr_of_child.
3810         (varobj_create): Initialize the path_expr field.
3811         (varobj_get_path_expr): New.
3812         (new_variable): Initialize the path_expr field.
3813         (free_variable): Free the path_expr field.
3814         (adjust_value_for_children_access): New parameter
3815         WAS_TYPE.
3816         (c_number_of_children): Adjust.
3817         (c_describe_child): New parameter CFULL_EXPRESSION.
3818         Compute full expression.
3819         (c_value_of_child, c_type_of_child): Adjust.
3820         (cplus_number_of_children): Adjust.
3821         (cplus_describe_child): New parameter CFULL_EXPRESSION.
3822         Compute full expression.
3823         (cplus_name_of_child, cplus_value_of_child)
3824         (cplus_type_of_child): Adjust.
3825         * varobj.h (varobj_get_path_expr): Declare.
3826
3827 2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
3828
3829         * mi/mi-cmd-var.c (print_varobj): If a varobj
3830         type is NULL, don't try to print it.
3831         
3832 2007-08-30  Alan Modra  <amodra@bigpond.net.au>
3833
3834         * ppc-linux-nat.c (right_fill_reg): Delete.
3835         (supply_gregset): Use ppc_supply_gregset.
3836         (supply_fpregset): Use ppc_supply_fpregset.
3837         (fill_gregset): Use ppc_collect_gregset.
3838         (fill_fpregset): Use ppc_collect_fpregset.
3839         * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3840         (right_supply_register, ppc_linux_supply_gregset): Delete.
3841         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3842         (ppc_linux_supply_fpregset): Delete.
3843         (ppc_linux_collect_gregset): New function.
3844         (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3845         (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3846         ppc_linux_supply_gregset, and ppc_collect_gregset.
3847         (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3848         (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3849         (ppc_linux_regset_from_core_section): Update.
3850         * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3851         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3852         (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3853         * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3854         (ppcobsd_collect_gregset): Likewise.
3855         (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3856         * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3857         * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3858         * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3859         (rs6000_aix64_reg_offsets): Likewise.
3860         (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3861         ppc_floating_point_unit_p.
3862         (rs6000_aix_collect_regset): Similarly.
3863         * rs6000-tdep.c (ppc_supply_reg): Add regsize param.  Adjust offset
3864         when regsize is larger than regcache register size.
3865         (ppc_collect_reg): Similarly zero pad when regsize is larger than
3866         regcache register size.
3867         (ppc_greg_offset): New function, split out from..
3868         (ppc_supply_gregset): ..here.  Separate code handling all regs from
3869         single reg case.  Correct xer offset.
3870         (ppc_fpreg_offset): New function, split out from..
3871         (ppc_supply_fpregset): ..here.  Separate code handling all regs from
3872         single reg case.
3873         (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3874         (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3875         a fp unit, instead return if no fp.
3876
3877 2007-08-29  Jim Blandy  <jimb@codesourcery.com>
3878
3879         * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3880         this code has not been compiled for two years.
3881
3882 2007-08-29  Michael Snyder  <msnyder@access-company.com>
3883
3884         * event-top.c (gdb_readline2): Return after EOF.
3885
3886 2007-08-29  Joel Brobecker  <brobecker@adacore.com>
3887
3888         * symtab.c: Remove a function that has been commented out 3 years ago.
3889
3890 2007-08-29  Randolph Chung  <tausq@debian.org>
3891
3892         * hppa-tdep.c (hppa32_cannot_fetch_register)
3893         (hppa64_cannot_fetch_register): New functions.
3894         (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3895         * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3896
3897 2007-08-28  Michael Snyder  <msnyder@access-company.com>
3898
3899         * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to 
3900         check for null before calling check_typedef.
3901
3902         * NEWS: Mention Coverity bug fixes.
3903
3904 2007-08-27  Markus Deuling  <deuling@de.ibm.com>
3905
3906         * spu-tdep.c (spu_pointer_to_address): New function.
3907         (spu_integer_to_address): Likewise.
3908         (spu_gdbarch_init): Add spu_pointer_to_address and 
3909         spu_integer_to_address to gdbarch.
3910
3911 2007-08-26  Pedro Alves  <pedro_alves@portugalmail.pt>
3912
3913         * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3914
3915 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
3916
3917         * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3918         that contains the GDB license.
3919         * copying.awk: Adjust to the GPLv3 wording.
3920         * copying.c: Regenerate.
3921
3922 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
3923
3924         * copying.awk: Protoization, and i18n markup.
3925
3926 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
3927
3928         * config/djgpp/djconfig.sh: Switch license to GPLv3.
3929         * copyright.sh: Likewise.
3930         * gdb-events.sh: Likewise.
3931         * gdb_gcore.sh: Likewise.
3932         * gdb_mbuild.sh: Likewise.
3933         * gdbarch.sh: Likewise.
3934         * observer.sh: Likewise.
3935         * features/feature_to_c.sh: Likewise.
3936         * regformats/regdat.sh: Likewise.
3937
3938 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
3939
3940         Switch the license of all .c files to GPLv3.
3941         Switch the license of all .h files to GPLv3.
3942         Switch the license of all .cc files to GPLv3.
3943
3944 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
3945
3946         * configure.ac: Switch license to GPLv3.
3947
3948 2007-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
3949
3950         * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3951         determine the file's FPU type.
3952
3953 2007-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
3954
3955         * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3956         (mips_n32n64_push_dummy_call): Always increment float_argreg along
3957         with argreg.  Use mips_n32n64_fp_arg_chunk_p.
3958
3959 2007-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
3960
3961         * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3962         Fix formatting.
3963         (elf_locate_base): Look for DT_MIPS_RLD_MAP first.  Expand comments.
3964         (elf_lookup_lib_symbol): Fix formatting.
3965
3966 2007-08-21  Michael Snyder  <msnyder@access-company.com>
3967
3968         * dbxread.c (read_dbx_symtab): Guard null deref.
3969         Break up long line.
3970
3971         * valops.c (find_overload_match): Guard against NULL.
3972
3973 2007-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
3974
3975         * MAINTAINERS (Patch Champions): Remove self.
3976
3977 2007-08-21  Chris Smith  <chris.smith@st.com>
3978
3979         * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3980         line.
3981
3982 2007-08-18  Michael Snyder  <msnyder@access-company.com>
3983
3984         * stabsread.c (dbx_lookup_type): Memory leak.
3985
3986         * event-loop.c (delete_async_signal_handler): Move pointer null
3987         test to before pointer dereference.
3988
3989         * ui-out.c (append_header_to_list): Possible cut and paste error.
3990
3991         * MAINTAINERS: white space tweak.
3992
3993 2007-08-17  Michael Snyder  <msnyder@access-company.com>
3994
3995         * stack.c (print_frame): Memory leak.
3996
3997         * completer.c (filename_completer): Avoid memory leak.
3998         Remove unnecessary nested block.
3999
4000         * c-exp.y (parse_number): Memory leak.
4001
4002         * completer.c (location_completer): Must free 'fn_list', except 
4003         in the one case where it is returned (as 'list').
4004
4005         * varobj.c (value_of_root): Memory leak.
4006
4007         * gdbtypes.h (virtual_base_list): Remove export decl.
4008         * gdbtypes.c (virtual_base_list): Make static.  Not called outside.
4009         (virtual_base_index): Memory leak.
4010         (virtual_base_index_skip_primaries): Ditto.
4011
4012 2007-08-17  Maxim Grigoriev  <maxim2405@gmail.com>
4013
4014         * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
4015         (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
4016         (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
4017         (xtensa_read_register): New function.
4018         (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
4019         (xtensa_insn_kind): New types.
4020         (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
4021         (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
4022         (xtensa_verify_config, xtensa_pseudo_register_read)
4023         (xtensa_pseudo_register_write, xtensa_extract_return_value)
4024         (xtensa_store_return_value)
4025         (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
4026         (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
4027         (xtensa_frame_this_id, xtensa_frame_prev_register)
4028         (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
4029         (call0_frame_cache, call0_frame_get_reg_at_entry)
4030         (call0_classify_opcode, call0_track_op)
4031         (call0_analyze_prologue, call0_frame_cache): New functions.
4032
4033 2007-08-17  Vladimir Prus  <vladimir@codesourcery.com>
4034
4035         * breakpoint.c (bpstat_free): New.
4036         (bpstat_clear): Use bpstat_free.
4037         (delete_breakpoint): Document why we cannot
4038         remove bpstats from stop_bpstat.
4039         * breakpoint.h (bpstat_free): Declare.
4040                 
4041 2007-08-16  Michael Snyder  <msnyder@access-company.com>
4042
4043         * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4044
4045 2007-08-15  Paul Hilfinger  <hilfinger@adacore.com>
4046             Joel Brobecker  <brobecker@adacore.com>
4047
4048         * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4049
4050 2007-08-15  Paul Hilfinger  <hilfinger@adacore.com>
4051             Joel Brobecker  <brobecker@adacore.com>
4052
4053         * ada-lang.c (possible_user_operator_p): Alternative fix to last
4054         checkin guarding against NULL.
4055
4056 2007-08-14  Michael Snyder  <msnyder@access-company.com>
4057
4058         * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4059         tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4060         tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4061         go at beginning of new line.
4062
4063         * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4064         tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4065         tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4066         tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4067         tui-winsource.h, tui.c, tui.h: Function declarations and 
4068         definitions, wrap long lines.
4069
4070         * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4071         tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4072         Reformat block comments to GNU standard.
4073
4074         * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4075         tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4076         tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4077         tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4078         tui.c, tui.h: Comment reformatting to coding standard (capitals, 
4079         spaces after periods, etc).     
4080
4081         * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4082         tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4083         tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4084         tui-winsource.h: Whitespace changes, fix pointer declarations
4085         to be consistant.
4086
4087 2007-08-14  Joel Brobecker  <brobecker@adacore.com>
4088             Michael Snyder  <msnyder@access-company.com>
4089
4090         * ada-lang.c (field_alignment): Guard against NULL.
4091
4092 2007-08-14  Joel Brobecker  <brobecker@adacore.com>
4093
4094         * MAINTAINERS (Global Maintainers): Add self.
4095
4096 2007-08-14  Michael Snyder  <msnyder@access-company.com>
4097
4098         * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4099
4100         * ada-lang.c (possible_user_operator_p): Guard against NULL.
4101
4102         * varobj.c (cplus_describe_child): Guard against null.
4103         Use "NULL" instead of "0" to initialize pointers.
4104
4105 2007-08-14  Daniel Jacobowitz  <dan@codesourcery.com>
4106
4107         * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4108         to match any gdbarch with matching OSABI.  Set default ABI and FPU
4109         after running the OSABI handler.
4110
4111 2007-08-14  Daniel Jacobowitz  <dan@codesourcery.com>
4112
4113         * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4114         * config/i386/linux.mt (TDEPFILES): ...to here.
4115
4116 2007-08-14  Vladimir Prus  <vladimir@codesourcery.com>
4117
4118         * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4119         the 'silent' parameter and code to implement that.
4120         * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4121         prototype.
4122         * win32-nat.c: Adjust.
4123         * solib.c: Adjust.
4124         
4125 2007-08-14  Vladimir Prus  <vladimir@codesourcery.com>
4126
4127         * breakpoint.c (update_breakpoints_after_exec): Don't
4128         set address to zero.
4129
4130 2007-08-13  Michael Snyder  <msnyder@access-company.com>
4131
4132         * valops.c: Whitespace clean-up.
4133
4134         * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4135
4136         * event-top.c (command_line_handler): Memory leak.
4137
4138         * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4139         No need to make copy.
4140
4141         * source.c (find_source_lines): Require symtab 's'.
4142
4143 2007-08-11  Michael Snyder  <msnyder@access-company.com>
4144
4145         * completer.c: Spelling fix in comments.
4146
4147 2007-08-10  Michael Snyder  <msnyder@access-company.com>
4148
4149         * gdbtypes.c: Coding standard cleanup.
4150         * gdbtypes.c: Comment/whitespace cleanup.
4151
4152         * stabsread.c (read_huge_number): Attempt to compute value before
4153         values that it depends on.
4154
4155         * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4156         (decode_objc): Use "NULL" instead of 0.
4157         (find_method): Ditto.
4158         (decode_all_digits): Ditto.
4159         (decode_dollar): Ditto.
4160
4161         * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4162
4163         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4164
4165         * solib-svr4.c (enable_break): Don't free tmp_pathname until
4166         after closing bfd.
4167
4168         * completer.c: Comment/whitespace cleanup.
4169
4170 2007-08-10  Joel Brobecker  <brobecker@adacore.com>
4171
4172         * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4173
4174 2007-08-10  Maxim Grigoriev  <maxim2405@gmail.com>
4175
4176         * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4177         allocated file descriptors.
4178
4179 2007-08-10  Joel Brobecker  <brobecker@adacore.com>
4180
4181         * Makefile.in: Minor cleanup throughout; add some missing variables,
4182         add some missing rules, remove some rules that are no longer needed,
4183         and fix the dependencies in several rules.
4184
4185 2007-08-10  Ludovic Courtès  <ludo@gnu.org>
4186
4187         * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4188         (scm_lang_h, scm_tags_h): New.
4189         (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4190         (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4191         * defs.h (enum language): Add `language_scm'.
4192
4193         * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4194         opening.
4195
4196 2007-08-09  Ludovic Courtès  <ludo@gnu.org>
4197
4198         * MAINTAINERS (Write After Approval): Add myself.
4199
4200 2007-08-09  Michael Snyder  <msnyder@access-company.com>
4201
4202         * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4203
4204 2007-08-09  Joel Brobecker  <brobecker@adacore.com>
4205
4206         * solib-som.c (som_relocate_section_addresses): Stop saving
4207         the $CODE$ section in the so_list structure.
4208
4209 2007-08-08  Maxim Grigoriev  <maxim2405@gmail.com>
4210
4211         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4212         (xtensa_register_group_t): Add entries for coprocessors.
4213         * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4214         (xtensa_add_reggroups): Likewise.
4215         (xtensa_register_reggroup_p): Likewise.
4216         (xtensa_coprocessor_register_group): New function.
4217         (xtensa_cp): New.
4218
4219 2007-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4220
4221         * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4222
4223 2007-08-08  Michael Snyder  <msnyder@access-company.com>
4224
4225         * target.c (target_read_string): Guard against null.
4226
4227         * varobj.c (value_of_root): Move alloc after return to avoid leak.
4228
4229         * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4230         (tui_set_layout_for_display_command): Mem leak.
4231
4232         * top.c (command_line_input): Memory leak.
4233
4234         * solib-svr4.c (open_symbol_file_object): Memory leak.
4235         (svr4_current_sos): Ditto.
4236         (enable_break): Ditto.
4237
4238         * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4239
4240         * dwarf2read.c (add_partial_symbol): Memory leak.
4241
4242 2007-08-06  Michael Snyder  <msnyder@access-company.com>
4243
4244         * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4245
4246 2007-08-05  Jim Blandy  <jimb@codesourcery.com>
4247
4248         * macroexp.c (init_buffer): Remove testing code that overrides the
4249         caller's length guess.
4250         (gather_arguments): Use a larger initial size, now that the vector
4251         growth code has been exercised.
4252
4253 2007-08-05  Pedro Alves  <pedro_alves@portugalmail.pt>
4254
4255         * solib-target.c (solib_target_relocate_section_addresses): Add
4256         orig_delta to addr_high.
4257
4258 2007-08-04  Michael Snyder  <msnyder@access-company.com>
4259
4260         * remote-fileio.c (remote_fileio_func_write): Memory leak.
4261
4262         * breakpoint.c (print_one_breakpoint): Off by one error.
4263
4264         * tracepoint.c (add_register): Off by one error.
4265         (stringify_collection_list): Free malloc buffer.
4266
4267 2007-08-03  Michael Snyder  <msnyder@access-company.com>
4268
4269         * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4270         stop memory leak, straighten out cleanups.
4271
4272         * jv-lang.c (java_link_class_type): Guard against NULL.
4273
4274 2007-08-02  Michael Snyder  <msnyder@access-company.com>
4275
4276         * gdbtypes.c (create_set_type): Test should only be done within
4277         the preceeding if block.  Otherwise, variable is uninitialized.
4278
4279         * gdbtypes.c (check_typedef): Guard NULL.
4280
4281 2007-08-01  Michael Snyder  <msnyder@access-company.com>
4282
4283         * cli/cli-decode.c (lookup_cmd): Check for null earlier, to 
4284         avoid dereference in lookup_cmd_1.
4285
4286         * tui/tui-data.c (tui_alloc_content): Move assign out of if, 
4287         clean up long lines.
4288         (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4289         (tui_alloc_win_info): Ditto.
4290         (tui_add_content_elements): Ditto.
4291         * tui/tui-file.c (tui_file_magic): Ditto.
4292
4293 2007-07-31  Michael Snyder  <msnyder@access-company.com>
4294
4295         * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4296         True and false paths are mutually exclusive.
4297
4298         * event-top.c (command_line_handler): Add pedantic return.
4299
4300         * f-valprint.c (info_common_command): Bail out to prevent null
4301         pointer deref.  Break up a long line.
4302
4303         * exec.c (xfer_memory): Remove redundant condition from 'if'.
4304
4305         * symfile.c (reread_separate_symbols): Free xmalloced memory.
4306
4307         * printcmd.c (build_address_symbolic): Remove dead code and dead 
4308         variable.
4309
4310 2007-07-31  Daniel Jacobowitz  <dan@codesourcery.com>
4311
4312         * linespec.c (minsym_found): Advance to the next line if possible.
4313
4314 2007-07-31  Pedro Alves  <pedro_alves@portugalmail.pt>
4315
4316         * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4317         * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4318         solib-svr4.o, and add solib-target.o
4319
4320 2007-07-27  Michael Snyder  <msnyder@access-company.com>
4321
4322         * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4323
4324 2007-07-26  Maciej W. Rozycki  <macro@linux-mips.org>
4325
4326         * MAINTAINERS (Write After Approval): Add myself.
4327
4328 2007-07-26  Maciej W. Rozycki  <macro@mips.com>
4329
4330         * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4331         for include files.
4332
4333 2007-07-25  Maciej W. Rozycki  <macro@mips.com>
4334
4335         * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4336
4337 2007-07-24  Michael Snyder  <msnyder@access-company.com>
4338
4339         * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4340         'buffer' must cover both branches that call strcmp (Coverity).
4341
4342         * stack.c (print_frame_args): Check return value of lookup_symbol.
4343
4344         * ax-gdb.c (find_field): Guard against null ptr.
4345
4346 2007-07-24  Ulrich Weigand  <uweigand@de.ibm.com>
4347
4348         * regformats/reg-spu.dat: Fix order of npc, id registers.
4349
4350 2007-07-24  Ulrich Weigand  <uweigand@de.ibm.com>
4351
4352         * target.c (memory_xfer_partial): Accesses to unmapped overlay
4353         sections should always go to the executable file.
4354
4355 2004-07-20  Chris Dearman  <chris@mips.com>
4356
4357         * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4358         prologue instructions.
4359
4360 2007-07-20  Maciej W. Rozycki  <macro@mips.com>
4361
4362         * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4363         a direct test.
4364
4365 2007-07-20  Chris Dearman  <chris@mips.com>
4366             Maciej W. Rozycki  <macro@mips.com>
4367
4368         * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4369         description.
4370
4371 2007-07-17  Pedro Alves  <pedro_alves@portugalmail.pt>
4372             Daniel Jacobowitz  <dan@codesourcery.com>
4373
4374         * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4375         * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4376         printf.
4377         * NEWS: Mention gdbserver DLL support.
4378
4379 2007-07-17  Daniel Jacobowitz  <dan@codesourcery.com>
4380
4381         * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4382
4383 2007-07-16  H.J. Lu  <hongjiu.lu@intel.com>
4384
4385         * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4386         warning bug.
4387
4388 2007-07-13  Kevin Buettner  <kevinb@redhat.com>
4389
4390         * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4391         instruction case.
4392
4393 2007-07-12  Kevin Buettner  <kevinb@redhat.com>
4394
4395         * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4396         (mep_analyze_prologue): Add case for BRA instruction.
4397
4398 2007-07-12  Ulrich Weigand  <uweigand@de.ibm.com>
4399
4400         * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4401
4402 2007-07-10  Nick Roberts  <nickrob@snap.net.nz>
4403
4404         * breakpoint.c: Include "top.h".
4405         (breakpoint_1): Don't set convenience variable $_ if server prefix
4406         is used.
4407         (_initialize_breakpoint): Describe this behaviour in command help.
4408
4409 2007-07-08  Pedro Alves  <pedro_alves@portugalmail.pt>
4410
4411         * solib-target.c (library_list_start_segment): Cast address to
4412         CORE_ADDR.
4413
4414 2007-07-06  Mark Kettenis  <kettenis@gnu.org>
4415
4416         * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4417         for terminated processes.
4418
4419 2007-07-05  Michael Snyder  <msnyder@access-company.com>
4420
4421         * event-top.c (cli_command_loop): Prompt string can (and should)
4422         be freed after call to readline (Coverity).  Also move local var
4423         declarations into block where they are used.
4424
4425         * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4426         should) be freed after call to readline (Coverity).  Also move
4427         local var declarations into block where they are used.
4428
4429 2007-07-03  Andreas Schwab  <schwab@suse.de>
4430
4431         * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4432         /proc/../stat.
4433
4434 2007-07-03  Paul Gilliam  <pgilliam@us.ibm.com>
4435             Thiago Bauermann  <bauerman@br.ibm.com>
4436             Joseph S. Myers  <joseph@codesourcery.com>
4437             Daniel Jacobowitz  <dan@codesourcery.com>
4438
4439         * remote.c (remote_check_symbols): Use
4440         gdbarch_convert_from_func_ptr_addr.
4441         * infcall.c (find_function_addr): Handle function descriptors
4442         without debugging information.
4443         * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4444         from ppc64_linux_convert_from_func_ptr_addr.  Handle -msecure-plt.
4445         (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4446         * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4447         (bfd_lookup_symbol): Do not take a SECT_FLAGS argument.  Always
4448         allow SEC_CODE and SEC_DATA.
4449         (enable_break): Update calls.  Pass current_target to solib_add.
4450         Use gdbarch_convert_from_func_ptr_addr.
4451
4452 2007-07-03  Ilko Iliev  <iliev@ronetix.at>
4453             Daniel Jacobowitz  <dan@codesourcery.com>
4454
4455         * symfile.c (print_transfer_performance): Avoid integer overflow.
4456         Use larger units.
4457
4458 2007-07-03  Markus Deuling  <deuling@de.ibm.com>
4459
4460         * cp-namespace.c (lookup_symbol_file): Add block to
4461         lookup_symbol_global call.
4462         * Makefile.in (solist_h): Add dependency on symtab header.
4463         (symtab.o): Add dependency on solist header.
4464         * solib.c (solib_global_lookup): New function.
4465         * solib-svr4.c (scan_dyntag): Likewise.
4466         (elf_locate_base): Call helper routine scan_dyntag.
4467         (elf_lookup_lib_symbol): New function.
4468         (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4469         * solist.h (symtab.h): New include.
4470         (struct target_so_ops): New member lookup_lib_global_symbol.
4471         (solib_global_lookup): New prototype.
4472         * symtab.c: New include solist.h.
4473         (lookup_objfile_from_block): New function.
4474         (lookup_global_symbol_from_objfile): New function.
4475         (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4476         (lookup_symbol_global): Call library-specific lookup procedure.
4477         * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4478
4479         * NEWS: Document framework.
4480
4481 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
4482
4483         * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4484         to NULL.
4485
4486         * cli/cli-script.c (build_command_line): Update NULL check.
4487
4488 2007-07-02  Michael Snyder  <msnyder@access-company.com>
4489
4490         * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4491
4492 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
4493
4494         * Makefile.in (XMLFILES): Add library-list.dtd.
4495         (ALLDEPFILES): Add solib-target.o.
4496         (solib-target.o): New rule.
4497         * remote.c (PACKET_qXfer_libraries): New constant.
4498         (remote_protocol_features): Add qXfer:libraries:read.
4499         (remote_wait): Recognize library stop replies.
4500         (remote_async_wait): Likewise.  Fix typo.
4501         (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4502         (init_remote_async_ops): Fix typo.
4503         (_initialize_remote): Register "set remote library-info-packet".
4504         * solib-som.c (som_current_sos): Set addr_low and addr_high.
4505         * solib-target.c: New file.
4506         * solib.c (solib_map_sections): Use addr_low and addr_high instead
4507         of textsection.
4508         (info_sharedlibrary_command): Likewise.
4509         (solib_add_library, solib_remove_library): New.
4510         * solist.h (struct so_list): Replace textsection with addr_low and
4511         addr_high.
4512         * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4513         * NEWS: Describe new qXfer:libraries:read and shared library
4514         event support.
4515         * features/library-list.dtd: New.
4516
4517 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
4518
4519         * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4520         (start_remote): Use STOP_QUIETLY_REMOTE.
4521         (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4522         support on a SOLIB_ADD definition.  Update breakpoints_inserted.
4523         Update to match shared library event breakpoint support.  Only
4524         resume if appropriate.  Handle STOP_QUIETLY_REMOTE.
4525         (normal_stop): Handle TARGET_WAITKIND_LOADED.
4526         * fork-child.c (startup_inferior): Do not set
4527         inferior_ignoring_startup_exec_events
4528         * inferior.h (inferior_ignoring_startup_exec_events): Delete
4529         declaration.
4530         (enum stop_kind): Improve documentation.  Add STOP_QUIETLY_REMOTE.
4531
4532 2007-07-02  Markus Deuling  <deuling@de.ibm.com>
4533
4534         * breakpoint.c (insert_bp_location): Remove dead code
4535         (DISABLE_UNSETTABLE_BREAK).
4536         (disable_breakpoints_in_shlibs)
4537         (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4538
4539 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
4540
4541         * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4542         Call insert_bp_location.
4543
4544 2007-07-01  H.J. Lu  <hongjiu.lu@intel.com>
4545
4546         * core-regset.c (fetch_core_registers): Work around gcc 3.4
4547         alias warning bug.
4548
4549 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
4550
4551         * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4552         objfiles.
4553
4554 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
4555
4556         * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4557         (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4558         (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4559         (gdb_readline_wrapper): Do not save the prompt.  Pass our prompt
4560         to display_gdb_prompt.
4561
4562 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
4563
4564         PR symtab/2161
4565         * target.c (memory_xfer_partial): Do not continue past targets with
4566         all memory.
4567
4568 2007-06-30  Andreas Schwab  <schwab@suse.de>
4569
4570         * m68k-tdep.c (m68k_ps_type): New.
4571         (m68k_init_types): New.
4572         (m68k_register_type): Use m68k_ps_type for PS register.
4573         (_initialize_m68k_tdep): Call m68k_init_types.
4574
4575         * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4576         from the generic m68k arch.
4577
4578 2007-06-28  Michael Snyder  <msnyder@access-company.com>
4579
4580         * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4581         (Coverity).
4582
4583         * linux-thread-db.c (thread_db_get_thread_local_address): Add
4584         gdb_assert before using return value of find_thread_pid (Coverity).
4585
4586         * source.c (unset_substitute_path_command): Plug leak (Coverity).
4587
4588         * cli/cli-script.c (build_command_line): Add null pointer guard 
4589         (Coverity).
4590         
4591 2007-06-27  Daniel Jacobowitz  <dan@codesourcery.com>
4592
4593         * linux-thread-db.c (thread_db_attach): Delete.
4594         (thread_db_detach): Typo fix.  Call target_mourn_inferior
4595         instead of fixing up proc_handle.
4596         (have_threads_callback, have_threads): New functions.
4597         (thread_db_wait): Remove dead proc_handle.pid check.  Only
4598         translate PTIDs if we have registered threads.  Check for new
4599         threads if we have none.
4600         (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4601         (find_new_threads_callback): Only enable event reporting if TID == 0.
4602         (same_ptid_callback): New.
4603         (thread_db_get_thread_local_address): Check for new threads.
4604         (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4605         or to_post_startup_inferior.
4606
4607 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
4608
4609         * infrun.c (adjust_pc_after_break): Do not assume software single-step
4610         is always active if SOFTWARE_SINGLE_STEP_P is true.
4611         (resume): Use gdbarch_software_single_step[_p] instead of
4612         SOFTWARE_SINGLE_STEP[_P].
4613         (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4614
4615         * gdbarch.sh (software_single_step): Remove target macro.
4616         * gdbarch.h, gdbarch.c: Regenerate.
4617
4618 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
4619
4620         * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4621         DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4622         (struct gdbarch_swap, struct gdbarch_swap_registration, 
4623         struct gdbarch_swap_registry, gdbarch_swap_registry,
4624         current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4625         current_gdbarch_swap_in_hack): Remove.
4626         (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4627         (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4628         and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4629         (deprecated_current_gdbarch_select_hack): Likewise.
4630         * gdbarch.h, gdbarch.c: Regenerate.
4631
4632 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
4633
4634         * infrun.c (clear_proceed_status): Clean up stop_registers.
4635         (normal_stop): Allocate regcache for stop_registers.
4636         (struct inferior_status): Remove stop_registers member.
4637         (save_inferior_status): Do not save stop_registers.
4638         (restore_inferior_status): Do not restore stop_registers.
4639         (discard_inferior_status): Do not discard stop_registers.
4640         (build_infrun): Remove.
4641         (_initialize_infrun): Do not swap stop_registers.
4642
4643 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
4644
4645         * remote.c (remote_address_masked): If remote_address_size is zero,
4646         default to target address size.
4647         (build_remote_gdbarch_data): Remove.
4648         (_initialize_remote): Do not swap remote_address_size.
4649
4650 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
4651
4652         * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4653         builtin_type_char, builtin_type_short, builtin_type_int,
4654         builtin_type_long, builtin_type_signed_char,
4655         builtin_type_unsigned_char, builtin_type_unsigned_short,
4656         builtin_type_unsigned_int, builtin_type_unsigned_long,
4657         builtin_type_float, builtin_type_double, builtin_type_long_double,
4658         builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4659         builtin_type_bool, builtin_type_long_long,
4660         builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4661         builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4662         variable declaration with compatibility macro.
4663         * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4664         builtin_type_char, builtin_type_short, builtin_type_int,
4665         builtin_type_long, builtin_type_signed_char,
4666         builtin_type_unsigned_char, builtin_type_unsigned_short,
4667         builtin_type_unsigned_int, builtin_type_unsigned_long,
4668         builtin_type_float, builtin_type_double, builtin_type_long_double,
4669         builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4670         builtin_type_bool, builtin_type_long_long,
4671         builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4672         builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4673         (build_gdbtypes): Remove.
4674         (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4675         opaque-type-resolution command here.   Do not call 
4676         deprecated_register_gdbarch_swap.
4677
4678 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
4679
4680         * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4681         nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4682         * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4683
4684         * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4685         (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4686         (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4687         (build_parse): Remove.
4688         (_initialize_parse): Do not call build_parse.  Do not register
4689         msym_ types for gdbarch-swapping.
4690
4691         * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4692         instead of creating private type.
4693
4694         * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4695         (_initialize_xcoffread): Do not initialized them.
4696         (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4697
4698         * mdebugread.c (nodebug_func_symbol_type): Remove.
4699         (nodebug_var_symbol_type): Remove.
4700         (_initialize_mdebugread): Do not initialize them.
4701         (parse_symbol): Use builtin nodebug_ type instead of them.
4702         (parse_procedure): Likewise.
4703
4704 2007-06-21  Chris Dearman  <chris@mips.com>
4705
4706         * printcmd.c (do_one_display): If display/i, start with an initial
4707         line feed to avoid bad layout if there is a branch delay slot.
4708
4709 2007-06-21  Nigel Stephens  <nigel@mips.com>
4710             Maciej W. Rozycki  <macro@mips.com>
4711
4712         * disasm.c (gdb_print_insn): Return the number of branch delay
4713         slot instructions too.
4714         * disasm.h (gdb_print_insn): Update prototype.
4715         * printcmd.c (branch_delay_insns): New variable to record the
4716         number of delay slot instructions after disassembling a branch.
4717         (print_formatted): Record the number of branch delay slot
4718         instructions.
4719         (do_examine): When disassembling, if the last instruction
4720         disassembled has any branch delay slots, then bump the count so
4721         that they get disassembled too.
4722         * tui/tui-disasm.c (tui_disassemble): Update the call to
4723         gdb_print_insn().
4724         * NEWS: Document the new behaviour.
4725
4726 2007-06-21  Andreas Schwab  <schwab@suse.de>
4727
4728         * regcache.c (write_pc_pid): Restore missing else.
4729
4730 2007-06-20  Ulrich Weigand  <uweigand@de.ibm.com>
4731
4732         * regcache.c (regcache_print): Use get_current_regcache ()
4733         instead of current_regcache.
4734
4735 2007-06-20  H.J. Lu  <hongjiu.lu@intel.com>
4736
4737         PR 4606
4738         * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4739         instead of bfd_make_section_anyway.
4740         (gcore_create_callback): Likewise.  Also set SEC_NEVER_LOAD
4741         when clearing SEC_LOAD.
4742
4743 2007-06-19  Joseph Myers  <joseph@codesourcery.com>
4744
4745         * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4746         registers for big-endian.
4747
4748 2007-06-19  Markus Deuling  <deuling@de.ibm.com>
4749
4750         * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4751         * disasm.c (dump_insns, gdb_print_insn): Likewise.
4752         * gdbarch.c, gdbarch.h: Regenerate.
4753
4754 2007-06-19  Markus Deuling  <deuling@de.ibm.com>
4755
4756         * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4757         gdbarch_believe_pcc_promotion.
4758         * stabsread.c (define_symbol): Likewise.
4759         Remove unnecessary definition.
4760         * coffread.c (process_coff_symbol): Remove unnecessary code.
4761         * gdbarch.c, gdbarch.h: Regenerate.
4762
4763 2007-06-19  Daniel Jacobowitz  <dan@codesourcery.com>
4764
4765         * configure.ac: Do not use ${objdir}.
4766         * configure: Regenerated.
4767
4768 2007-06-18  Ulrich Weigand  <uweigand@de.ibm.com>
4769
4770         * gdbarch.sh (deprecated_register_size): Remove.
4771         * gdbarch.h, gdbarch.c: Regenerate.
4772
4773         * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4774         by INT_REGISTER_SIZE.
4775         (thumb_get_next_pc, arm_return_in_memory): Likewise.
4776         (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4777         * ia64-tdep.c (ia64_gdbarch_init): Do not call
4778         set_gdbarch_deprecated_register_size.
4779
4780 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
4781
4782         * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4783         gdbarch_deprecated_fp_regnum.
4784         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4785         * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4786         * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4787         * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4788         (comment).
4789         * gdbarch.c, gdbarch.h: Regenerate.
4790
4791 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
4792
4793         * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4794         gdbarch_extract_return_value.
4795         * value.c (generic_use_struct_convention): Likewise (comment).
4796         * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4797         * arch-utils.c (legacy_return_value): Likewise.
4798         * arch-utils.h (legacy_return_value): Likewise (comment).
4799         * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4800         gdbarch_store_return_value.
4801         * stack.c (return_command): Likewise (comment).
4802         * arch-utils.h (legacy_return_value): Likewise (comment).
4803         * arch-utils.c (legacy_return_value): Likewise.
4804         * gdbarch.c, gdbarch.h: Regenerate.
4805
4806 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
4807
4808         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4809         gdbarch_deprecated_use_struct_convention.
4810         * arch-utils.c (legacy_return_value): Likewise.
4811         * gdbarch.c, gdbarch.h: Regenerate.
4812
4813 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
4814
4815         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4816         gdbarch_deprecated_function_start_offset.
4817         * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4818         * linespec.c (minsym_found): Likewise.
4819         * infrun.c (handle_inferior_event): Likewise.
4820         * infcall.c (find_function_addr): Likewise.
4821         * cli/cli-cmds.c (disassemble_command): Likewise.
4822         * gdbarch.c, gdbarch.h: Regenerate.
4823
4824 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
4825
4826         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4827         gdbarch_deprecated_reg_struct_has_addr.
4828         * infcall.c (call_function_by_hand): Likewise.
4829         (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4830         * gdbarch_deprecated_reg_struct_has_addr_p.
4831         * infcall.c (call_function_by_hand): Likewise.
4832         * gdbarch.c, gdbarch.h: Regenerate.
4833
4834 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
4835
4836         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4837         * sh-tdep.c (sh_extract_struct_value_address): Remove.
4838         (sh_gdbarch_init): Remove
4839         set_gdbarch_deprecated_extract_struct_value_address.
4840         * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4841         (sh64_gdbarch_init): Remove
4842         set_gdbarch_deprecated_extract_struct_value_address.
4843         * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4844         (ia64_gdbarch_init): Remove
4845         set_gdbarch_deprecated_extract_struct_value_address.
4846         * frv-tdep.c (frv_extract_struct_value_address): Remove.
4847         (frv_gdbarch_init): Remove
4848         set_gdbarch_deprecated_extract_struct_value_address.
4849         * gdbarch.c, gdbarch.h: Regenerate.
4850
4851 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
4852
4853         * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4854         * v850-tdep.c (v850_unwind_sp): Likewise.
4855         * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4856         * stack.c (frame_info): Likewise.
4857         * stabsread.c (define_symbol): Likewise.
4858         * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4859         (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4860         (sh_unwind_sp): Likewise.
4861         * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4862         (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4863         * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4864         (rs6000_frame_cache): Likewise.
4865         * rs6000-nat.c (store_register): Likewise.
4866         * remote-mips.c (mips_wait): Likewise.
4867         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4868         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4869         (ppc64_sysv_abi_push_dummy_call): Likewise.
4870         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4871         * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4872         * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4873         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4874         * m32r-rom.c (m32r_supply_register): Likewise.
4875         * frame.c (frame_sp_unwind): Likewise.
4876         * mips-tdep.c (mips_insn16_frame_cache)
4877         (mips_insn32_frame_cache): Likewise (comment).
4878         * m68klinux-nat.c (supply_gregset): Likewise.
4879         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4880         * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4881         * i386-tdep.c (i386_get_longjmp_target): Likewise.
4882         * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4883         * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4884         (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4885         (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4886         (cris_register_type, crisv32_register_type)
4887         (cris_dwarf2_frame_init_reg): Likewise.
4888         * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4889         * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4890         * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4891         * libunwind-frame.c (libunwind_frame_cache): Likewise.
4892
4893         * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4894         * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4895         * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4896         (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4897         (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4898         * v850-tdep.c (v850_unwind_pc): Likewise.
4899         * stack.c (frame_info): Likewise.
4900         * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4901         (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4902         (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4903         (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4904         (sh_dsp_show_regs): Likewise.
4905         * shnbsd-tdep.c (shnbsd_supply_gregset)
4906         (shnbsd_collect_gregset): Likewise.
4907         * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4908         * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4909         (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4910         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4911         (6000_register_reggroup_p, rs6000_unwind_pc)
4912         (rs6000_frame_cache): Likewise.
4913         * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4914         (rs6000_store_inferior_registers): Likewise.
4915         * remote-mips.c (mips_wait, mips_load): Likewise.
4916         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4917         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4918         * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4919         * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4920         * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4921         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4922         * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4923         (store_ppc_registers, fill_gregset): Likewise.
4924         * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4925         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4926         * mipsnbsd-nat.c (getregs_supplies): Likewise.
4927         * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4928         * m68klinux-nat.c (supply_gregset): Likewise.
4929         * irix5-nat.c (fill_gregset): Likewise.
4930         * i386-tdep.c (i386_unwind_pc): Likewise.
4931         * i386-linux-nat.c (i386_linux_resume): Likewise.
4932         * frame.c (get_prev_frame_1): Likewise.
4933         * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4934         * dbug-rom.c (dbug_supply_register): Likewise.
4935         * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4936         (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4937         (cris_register_type, crisv32_register_type, crisv32_register_name)
4938         (cris_dwarf2_frame_init_reg, find_step_target)
4939         (cris_software_single_step, cris_supply_gregset)
4940         (cris_regnums): Likewise.
4941         * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4942         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4943         (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4944         * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4945         * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4946
4947         * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4948         * dbug-rom.c (dbug_supply_register): Likewise.
4949         * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4950         (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4951         * win32-nat.c (win32_resume): Likewise.
4952         * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4953         * m68k-tdep.c (m68k_register_type): Likewise.
4954         * m68klinux-nat.c (supply_gregset): Likewise.
4955
4956         * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4957         * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4958         (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4959         (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4960         (fv_reg_base_num, dr_reg_base_num): Likewise.
4961         * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4962         (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4963         (sh64_extract_return_value, sh64_store_return_value)
4964         (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4965         (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4966         * procfs.c (procfs_fetch_registers, procfs_store_registers)
4967         (invalidate_cache): Likewise.
4968         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4969         * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4970         (mipsnbsd_fill_fpreg): Likewise.
4971         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4972         (mipsnbsd_store_inferior_registers): Likewise.
4973         * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4974         (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4975         * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4976         * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4977         * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4978         (fill_fpregset): Likewise.
4979         * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4980         * i386-tdep.h (struct_return): Likewise (comment).
4981         * i386-nto-tdep.c (i386nto_register_area): Likewise.
4982         * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4983         (go32_store_registers): Likewise.
4984         * alpha-tdep.c (alpha_next_pc): Likewise.
4985         * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4986         * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4987         (alphabsd_store_inferior_registers): Likewise.
4988         * core-regset.c (fetch_core_registers): Likewise.
4989         * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4990
4991         * gdbarch.c, gdbarch.h: Regenerate.
4992
4993 2007-06-18  Daniel Jacobowitz  <dan@codesourcery.com>
4994
4995         * coffread.c (coff_sym_fns): Add default_symfile_segments.
4996         * dbxread.c (start_psymtab): Check HAVE_ELF.
4997         (aout_sym_fns): Likewise.
4998         * elfread.c (elf_symfile_segments): New.
4999         (elf_sym_fns): Add elf_symfile_segments.
5000         * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
5001         * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
5002         Skip if there is no symfile_objfile.  Handle TextSeg and DataSeg.
5003         * somread.c (som_sym_fns): Use default_symfile_segments.
5004         * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
5005         (init_objfile_sect_indices): Call symfile_find_segment_sections.
5006         (default_symfile_segments): New function.
5007         (syms_from_objfile): Update call to find_sym_fns.
5008         (symfile_get_segment_data, free_symfile_segment_data): New.
5009         (symfile_map_offsets_to_segments): New.
5010         (symfile_find_segment_sections): New.
5011         * symfile.h (struct symfile_segment_data): New.
5012         (struct sym_fns): Add sym_segments.
5013         (default_symfile_segments, symfile_get_segment_data)
5014         (free_symfile_segment_data): New prototypes.
5015         (symfile_map_offsets_to_segments): Likewise.
5016         * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
5017         * Makefile.in (COMMON_OBS): Remove elfread.o.
5018         (elf_internal_h): New.
5019         (elfread.o): Update.
5020         * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
5021         compiled.
5022         * config.in, configure: Regenerated.
5023         * NEWS: Mention qOffsets changes.
5024
5025 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
5026
5027         * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
5028         builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5029         Replace global variable declaration with compatibility macro.
5030         (struct builtin_m2_type): New data type.
5031         (builtin_m2_type): Add prototype.
5032         * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
5033         builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5034         Remove global variables.
5035         (m2_language_arch_info): Use builtin_m2_type instead of variables.
5036         (build_m2_types): New function.
5037         (m2_type_data): New variable.
5038         (builtin_m2_type): New function.
5039         (_initialize_m2_language): Do not build data types.  Register
5040         m2_type_data per-gdbarch data.
5041
5042 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
5043
5044         * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5045         builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5046         builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5047         builtin_type_f_real_s8, builtin_type_f_real_s16,
5048         builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5049         builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5050         variable declaration with compatibility macro.
5051         (struct builtin_f_type): New data type.
5052         (builtin_f_type): Add prototype.
5053         * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5054         builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5055         builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5056         builtin_type_f_real_s8, builtin_type_f_real_s16,
5057         builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5058         builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5059         (f_language_arch_info): Use builtin_f_type instead of variables.
5060         (build_fortran_types): Build builtin_f_type structure instead of
5061         setting global type variables.
5062         (f_type_data): New variable.
5063         (builtin_f_type): New function.
5064         (_initialize_f_language): Do not call build_fortran_types.  Do not
5065         swap global type variables.  Register f_type_data per-gdbarch data.
5066
5067 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
5068
5069         * f-lang.c (_initialize_f_language): Do not initialize or
5070         swap builtin_type_string.
5071
5072 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
5073
5074         * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5075         value_of_builtin_frame_reg): Remove.
5076         (_initialize_frame_reg): Do not swap builtin_type_frame_reg.  Remove
5077         inactive call to value_of_builtin_frame_reg.
5078
5079 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
5080
5081         * gdbarch.sh (bfd_vma_bit): Remove.
5082         * gdbarch.c, gdbarch.h: Regenerate.
5083
5084         * gdbtypes.h (builtin_bfd_vma_type): Remove.
5085         * gdbtypes.h (builtin_bfd_vma_type): Remove.
5086         (build_gdbtypes): Do not initialize it.
5087         (_initialize_gdbtypes): Do not swap it.
5088
5089 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
5090
5091         * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float, 
5092         builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5093         builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5094         builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5095         builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi, 
5096         builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5097         builtin_type_vec64, builtin_type_vec128): Remove.
5098         (init_simd_type): Remove.
5099         (init_vector_type): Make global.
5100         (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5101         (build_gdbtypes): Do not build vector types.
5102         (_initialize_gdbtypes): Do not swap vector types.
5103         * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float, 
5104         builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5105         builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5106         builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5107         builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi, 
5108         builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5109         builtin_type_vec64, builtin_type_vec128): Remove declarations.
5110         (init_vector_type): Add prototype.
5111
5112         * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5113         i386_sse_type members.
5114         (i386_mmx_type, i386_sse_type): Change from variables to functions.
5115         * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5116         (i386_init_types): Do not build vector types.
5117         (i386_mmx_type, i386_sse_type): New functions.
5118         (i386_register_type): Call them instead of using global variables.
5119         (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5120         * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5121         of using global variable.
5122
5123         * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5124         and ppc_builtin_type_vec128 members.
5125         * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5126         (rs6000_builtin_type_vec128): Likewise.
5127         (rs6000_register_type): Call them instead of using builtin_type_vec64
5128         and builtin_type_vec128.
5129         (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5130
5131         * spu-tdep.c (struct gdbarch_tdep): New data type.
5132         (spu_builtin_type_vec128): Remove variable.
5133         (spu_builtin_type_vec128): New function.
5134         (spu_register_type): Call it instead of using global variable.
5135         (spu_gdbarch_init): Allocate tdep structure.
5136         (spu_init_vector_type): Remove function.
5137         (_initialize_spu_tdep): Do not call it.
5138
5139 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
5140
5141         * amd64-tdep.c (struct amd64_register_info): Remove.
5142         (amd64_register_info): Remove.
5143         (amd64_register_names): New static variable.
5144         (AMD64_NUM_REGS): Use amd64_register_names instead of
5145         amd64_register_info.
5146         (amd64_register_name): Likewise.
5147         (amd64_register_type): Do not refer to amd64_register_info.
5148
5149         * s390-tdep.c (struct s390_register_info): Remove.
5150         (s390_register_info): Remove.
5151         (s390_register_name): Do not refer to s390_register_info.
5152         (s390_register_type): Likewise.
5153
5154         * sparc64-tdep.c (struct sparc64_register_info): Remove.
5155         (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5156         (sparc64_register_names, sparc64_pseudo_register_names): New.
5157         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5158         sparc64_register_names and sparc64_pseudo_register_names instead of
5159         sparc64_register_info and sparc64_pseudo_register_info.
5160         (sparc64_register_name): Likewise.
5161         (sparc64_register_type): Do not refer to sparc64_register_info
5162         and sparc64_pseudo_register_info.
5163
5164 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
5165
5166         * c-lang.c (cplus_builtin_types): Remove.
5167         (enum cplus_primitive_types): New data type.
5168         (cplus_language_arch_info): New function.
5169         (cplus_language_defn): Set la_language_arch_info member.  Do not set
5170         la_builtin_type_vector and string_char_type members.
5171
5172         * f-lang.c (f_builtin_types): Remove.
5173         (enum f_primitive_types): New data type.
5174         (f_language_arch_info): New function.
5175         (f_language_de): Set la_language_arch_info member.  Do not set
5176         la_builtin_type_vector and string_char_type members.
5177
5178         * m2-lang.c (m2_builtin_types): Remove.
5179         (enum m2_primitive_types): New data type.
5180         (m2_language_arch_info): New function.
5181         (m2_language_defn): Set la_language_arch_info member.  Do not set
5182         la_builtin_type_vector and string_char_type members.
5183
5184         * objc-lang.c (objc_builtin_types): Remove.
5185         (objc_language): Set la_language_arch_info member.  Do not set
5186         la_builtin_type_vector and string_char_type members.
5187
5188         * p-lang.c (pascal_builtin_types): Remove.
5189         (enum pascal_primitive_types): New data type.
5190         (pascal_language_arch_info): New function.
5191         (pascal_language_defn): Set la_language_arch_info member.  Do not set
5192         la_builtin_type_vector and string_char_type members.
5193
5194 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
5195
5196         * regcache.c (struct regcache): Add ptid_t member.
5197         (regcache_xmalloc): Initialize it.
5198         (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5199         (regcache_dup): Likewise.
5200         (regcache_dup_no_passthrough): Likewise.
5201         (current_regcache): Make static.
5202         (registers_ptid): Remove variable.
5203         (get_thread_regcache): New function.
5204         (get_current_regcache): New function.
5205         (registers_changed): Implement by freeing current regcache.
5206         (regcache_raw_read): Do not refer to current_regcache.  Set 
5207         inferior_ptid to regcache->ptid while calling target routines.
5208         (regcache_raw_write): Likewise.
5209         (regcache_raw_supply): Do not refer to current_regcache.
5210         (read_pc_pid): Use thread regcache.  Do not modify inferior_ptid.
5211         (write_pc_pid): Likewise.
5212         (build_regcache): Remove.
5213         (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5214         or deprecated_register_gdbarch_swap.  Do not initialize
5215         registers_ptid.
5216         * regcache.h (get_current_regcache): Add prototype.
5217         (get_thread_regcache): Likewise.
5218         (current_regcache): Remove declaration.
5219
5220         * corelow.c (core_open): Replace current_regcache by
5221         get_current_regcache ().
5222         * frame.c (frame_pop): Likewise.
5223         (put_frame_register): Likewise.
5224         (get_current_frame, create_new_frame): Likewise.
5225         * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5226         * stack.c (return_command): Likewise.
5227         * infcall.c (call_function_by_hand): Likewise.
5228         * infrun.c (resume): Likewise.
5229         (save_inferior_status, restore_inferior_status): Likewise.
5230         * linux-fork.c (fork_load_infrun_state): Likewise.
5231         (fork_save_infrun_state): Likewise.
5232         * win32-nat.c (win32_resume): Likewise.
5233         * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5234         * monitor.c (monitor_wait): Likewise.
5235         * remote.c (remote_wait): Likewise.
5236         * remote-mips.c (mips_wait): Likewise.
5237
5238         * bsd-kvm.c (bsd_kvm_open): Likewise
5239         (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5240         * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5241         * i386-linux-nat.c (i386_linux_resume): Likewise.
5242         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5243         (ia64_linux_stopped_data_address): Likewise.
5244
5245         * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5246         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5247         * mep-tdep.c (current_me_module, current_options): Likewise.
5248         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5249
5250         * linux-nat.c (linux_nat_do_thread_registers): Use thread
5251         regcache instead of current_regcache.  Call target_fetch_registers.
5252         (linux_nat_corefile_thread_callback): Update call site.
5253         (linux_nat_do_registers): Likewise.
5254         * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5255         of current_regcache.
5256         (procfs_make_note_section): Likewise.
5257         * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5258         (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5259         * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5260         (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5261
5262 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
5263
5264         * regcache.c (read_register, read_register_pid): Remove.
5265         (write_register, write_register_pid): Likewise.
5266         * regcache.h (read_register, read_register_pid): Remove prototype.
5267         (write_register, write_register_pid): Likewise.
5268
5269 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
5270
5271         * gdbarch.sh (read_pc): Add REGCACHE argument.  Remove PTID argument.
5272         (write_pc): Likewise.  Remove default implementation, add predicate.
5273         * gdbarch.c, gdbarch.h: Regenerate.
5274         * regcache.c (read_pc_pid): Use current regcache instead of calling
5275         read_register_pid.
5276         (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5277         case inline.
5278         (generic_target_write_pc): Remove.
5279         * inferior.h (generic_target_write_pc): Remove.
5280         * frv-tdep.c (frv_gdbarch_init): Do not install it.
5281         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5282         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5283         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5284         * sh-tdep.c (sh_gdbarch_init): Likewise.
5285         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5286
5287         * avr-tdep.c (avr_read_pc): Add REGCACHE argument.  Remove PTID
5288         argument.  Use REGCACHE instead of calling read_register_pid.
5289         * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5290         * hppa-tdep.c (hppa_read_pc): Likewise.
5291         * hppa-tdep.h (hppa_read_pc): Likewise.
5292         * ia64-tdep.c (ia64_read_pc): Likewise.
5293         * m32r-tdep.c (m32r_read_pc): Likewise.
5294         * mep-tdep.c (mep_read_pc): Likewise.
5295         * mn10300-tdep.c (mn10300_read_pc): Likewise.
5296         * spu-tdep.c (spu_read_pc): Likewise.
5297
5298         * arm-tdep.c (arm_write_pc): Add REGCACHE argument.  Remove PTID
5299         argument.  Use REGCACHE instead of calling write_register_pid.
5300         * avr-tdep.c (avr_write_pc): Likewise.
5301         * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5302         * hppa-tdep.c (hppa_write_pc): Likewise.
5303         * hppa-tdep.h (hppa_write_pc): Likewise.
5304         * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5305         * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5306         * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5307         * ia64-tdep.c (ia64_write_pc): Likewise.
5308         * ia64-tdep.h (ia64_write_pc): Likewise.
5309         * m32r-tdep.c (m32r_write_pc): Likewise.
5310         * m88k-tdep.c (m88k_write_pc): Likewise.
5311         * mep-tdep.c (mep_write_pc): Likewise.
5312         * mips-tdep.c (mips_write_pc): Likewise.
5313         * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5314         * mn10300-tdep.c (mn10300_write_pc): Likewise.
5315         * sparc-tdep.c (sparc_write_pc): Likewise.
5316         * spu-tdep.c (spu_write_pc): Likewise.
5317
5318         * mips-tdep.c (read_signed_register): Remove.
5319         (read_signed_register_pid): Likewise.
5320         (mips_read_pc): Add REGCACHE argument.  Remove PTID argument.
5321         Use REGCACHE instead of calling read_signed_register_pid.
5322
5323 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
5324
5325         * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5326         * gdbarch.c, gdbarch.h: Regenerate.
5327         * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5328         (push_dummy_code): Likewise.  Pass it to callee.
5329         (call_function_by_hand): Pass current regcache to push_dummy_code.
5330
5331         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5332         argument.  Use it instead of current_regcache.
5333
5334         * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5335         * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5336
5337 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
5338
5339         * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5340         * gdbarch.c, gdbarch.h: Regenerate.
5341         * infrun.c (handle_inferior_event): Pass current frame to
5342         gdbarch_get_longjmp_target.
5343
5344         * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5345         Read registers from FRAME instead of using read_register.
5346         Use get_frame_arch instead of current_gdbarch.
5347         * arm-tdep.c (arm_get_longjmp_target): Likewise.
5348         * i386-tdep.c (i386_get_longjmp_target): Likewise.
5349         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5350         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5351         (mips64_linux_get_longjmp_target): Likewise.
5352         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5353
5354 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
5355
5356         * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5357         * gdbarch.c, gdbarch.h: Regenerate.
5358         * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5359         * arch-utils.h (generic_skip_trampoline_code): Likewise.
5360         * infrun.c (handle_inferior_event): Pass current frame to
5361         gdbarch_skip_trampoline_code and skip_language_trampoline.
5362
5363         * language.c (unk_lang_trampoline): Add FRAME argument.
5364         (skip_language_trampoline): Add FRAME argument.  Pass it to
5365         skip_trampoline callback.
5366         * language.h: Add forward declaration of struct frame_info.
5367         (struct language_defn): Add FRAME argument to skip_trampoline.
5368         (skip_language_trampoline): Add FRAME argument.
5369         * cp-abi.c (cplus_skip_trampoline): Add FRAME argument.  Pass it
5370         to skip_trampoline callback.
5371         * cp-abi.h: Add forward declaration of struct frame_info.
5372         (cplus_skip_trampoline): Add FRAME argument.
5373         (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5374         * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument.  Pass it
5375         to gdbarch_skip_trampoline_code.
5376         * objc-lang.c (objc_skip_trampoline): Add FRAME argument.  Pass it
5377         to gdbarch_skip_trampoline_code.
5378
5379         * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5380         * symtab.h (find_solib_trampoline_target): Likewise.
5381         * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5382         find_solib_trampoline_target.
5383
5384         * arm-tdep.c (arm_skip_stub): Add FRAME argument.  Read registers
5385         from FRAME instead of calling read_register.
5386
5387         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5388         argument.  Read registers from FRAME instead of using read_register.
5389         * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5390         * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5391
5392         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5393         argument.
5394
5395         * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5396
5397         * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument.  Read
5398         registers from FRAME instead of using read_signed_register.
5399
5400         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5401         argument.
5402         (ppc64_standard_linkage_target): Likewise.  Read registers from FRAME
5403         instead of using read_register.
5404         (ppc64_skip_trampoline_code): Add FRAME argument.  Pass it to
5405         ppc64_standard_linkage_target.
5406         * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5407         Pass it to find_solib_trampoline_target.  Read registers from FRAME
5408         instead of using read_register.
5409
5410         * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5411         argument.
5412
5413 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
5414
5415         * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5416         FRAME argument.
5417         * gdbarch.c, gdbarch.h: Regenerate.
5418         * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5419
5420         * alpha-tdep.c (alpha_next_pc): Add FRAME argument.  Retrieve
5421         registers from FRAME instead of using read_register.
5422         (alpha_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
5423         to alpha_next_pc.  Use get_frame_pc instead of read_pc.
5424         * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5425         argument by FRAME.
5426
5427         * arm-tdep.c (shifted_reg_val): Add FRAME argument.  Read registers
5428         from FRAME instead of using read_register.
5429         (thumb_get_next_pc): Likewise.
5430         (arm_get_next_pc): Likewise.
5431         (arm_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
5432         to arm_get_next_pc.  Use get_frame_pc instead of read_register.
5433         * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5434         argument by FRAME.
5435
5436         * cris-tdep.c (find_step_target): Add FRAME argument.  Read registers
5437         from FRAME instead of using read_register.
5438         (cris_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
5439         to find_step_target.
5440
5441         * mips-tdep.c (mips32_next_pc): Add FRAME argument.  Read registers
5442         from FRAME instead of using read_register / read_signed_register.
5443         (extended_mips16_next_pc): Likewise.
5444         (mips16_next_pc): Likewise.
5445         (mips_next_pc): Likewise.
5446         (mips_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
5447         to mips_next_pc.  Use get_frame_pc instead of read_pc.
5448         * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5449         argument by FRAME.
5450
5451         * rs6000-tdep.c (branch_dest): Add FRAME argument.  Use it instead
5452         of current frame.  Read registers from FRAME.
5453         (deal_with_atomic_sequence): Add FRAME argument.  Pass it to
5454         branch_dest.  Use get_frame_pc instead of read_pc.
5455         (rs6000_software_single_step): Likewise.
5456         (bl_to_blrl_insn_p): Do not call branch_dest.
5457         * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5458         argument by FRAME.
5459
5460         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5461         Read registers from FRAME instead of current regcache.
5462         * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5463         * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5464         * sparc-tdep.c (sparc_address_from_register): Remove.
5465         (sparc_analyze_control_transfer): Pass FRAME argument instead of
5466         GDBARCH.  Pass FRAME to step_trap callback.
5467         (sparc_step_trap): Add FRAME argument.
5468         (space_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
5469         to sparc_analyze_control_transfer.  Read registers from FRAME instead
5470         of calling sparc_address_from_register.
5471         * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5472         step_trap callback.
5473         (sparc_address_from_register): Remove prototype.
5474         (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5475         (sparcnbsd_step_trap): Add FRAME argument.
5476
5477         * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5478         by FRAME.  Read registers from FRAME instead of REGCACHE.
5479
5480 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
5481
5482         * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5483         instead of calling read_register.
5484
5485         * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5486         calling write_register.
5487
5488         * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5489         calling write_register.
5490
5491         * ia64-tdep.c (find_func_descr): Add REGCACHE parameter.  Use it
5492         instead of calling read_register.
5493         (ia64_push_dummy_call): Update call to find_func_descr.  Use REGCACHE
5494         instead of calling read_register and write_register.
5495
5496         * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5497         instead of current_regcache.
5498
5499         * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5500         of calling write_register.
5501         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5502         parameter instead of current_regcache.
5503
5504         * mips-tdep.c (mips2_fp_compat): Add FRAME parameter.  Use it 
5505         instead of calling read_register.
5506         (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5507         (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5508         (mips_n32n64_push_dummy_call): Likewise.
5509         (mips_o32_push_dummy_call): Likewise.
5510         (mips_o64_push_dummy_call): Likewise.
5511
5512         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5513         parameter instead of current_regcache.
5514
5515         * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5516         Use it instead of read_register and write_register.
5517         (xtensa_register_read_masked): Likewise.
5518         (xtensa_pseudo_register_read): Update call.
5519         (xtensa_pseudo_register_write): Likewise.
5520         (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5521         instead of calling read_register.
5522         (xtensa_push_dummy_call): Update comment.
5523
5524 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
5525
5526         * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5527         by frame_unwind_register_signed calls.
5528         (mips32_scan_prologue): Likewise.  Skip analysis of alloca stack
5529         frame allocations when called with NULL NEXT_FRAME parameter.
5530         (read_next_frame_reg): Remove.
5531
5532         * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter.  Use it
5533         instead of reading the FPSCR register.
5534         (sh_frame_cache): Pass unwound FPSCR register value to
5535         sh_analyze_prologue.
5536         (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5537
5538         * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter.  Use it
5539         instead of reading the CTBP register.
5540         (v850_frame_cache): Pass unwound CTBP register value to
5541         v850_analyze_prologue.
5542
5543 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
5544
5545         * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5546         * sh-tdep.c (sh_show_regs): Likewise.
5547         (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5548         (sh_generic_show_regs): Add FRAME parameter.  Use register
5549         values from that frame instead of calling read_register.
5550         (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5551         sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5552         sh_dsp_show_regs): Likewise.
5553         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5554         sh64_show_regs): Likewise.
5555
5556 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
5557
5558         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5559         current regcache instead of calling read_register.
5560
5561 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
5562
5563         * mep-tdep.c (current_me_module): Read from current regcache
5564         instead of calling read_register.
5565         (current_options): Likewise.
5566
5567 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
5568
5569         * cris-tdep.c (cris_stopped_data_address): Read register values
5570         from current frame instead of calling read_register.
5571         * frv-tdep.c (frv_stopped_data_address): Likewise.
5572
5573 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
5574
5575         * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5576         instead of write_register (PC_REGNUM, ...).
5577
5578 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
5579
5580         * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5581         explaining why the PC adjustment code is necessary.
5582
5583 2007-06-15  Vladimir Prus  <vladimir@codesourcery.com>
5584
5585         * m68k-tdep.h (enum m68k_flavour): New. 
5586         (struct gdbarch_tdep): New fields
5587         float_return, flavour and fpregs_present.
5588         * m68k-tdep.c (m68k_register_type): Use
5589         fpregs_present and conditionalize floating
5590         registers type on flavour.
5591         (m68k_register_names): New.
5592         (m68k_register_name): Use the above.
5593         (m68k_convert_register_p): Consult fpregs_present.
5594         (m68k_register_to_value, m68k_value_to_register):
5595         Use register_type to obtain the type of floating
5596         point registers.
5597         (m68k_svr4_extract_return_value): Check tdep->float_return.
5598         Use register_type to get the type of floating
5599         point regiters.
5600         (m68k_svr4_store_return_value): Likewise.
5601         (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5602         (m68k_analyze_register_saves): Likewise.
5603         (m68k_gdbarch_init): Extract infromation
5604         from XML description, if present.  Guess coldfire by
5605         looking at the file, if present. Conditionalize
5606         setting of long double format.  Set decr_pc_after_break
5607         to 2 on coldfire and fido.  Enable XML-driven
5608         register description.
5609         * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5610         size of tdep->fpreg_type, as opposed to hardcoded value.
5611         * Makefile.in (m68k-tdep.o): Update dependencies.
5612         
5613 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
5614
5615         * NEWS: Mention "info spu" commands and qXfer:spu:read and
5616         qXfer:spu:write remote packet types.
5617
5618 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
5619
5620         * xml-tdesc.c (tdesc_start_target): New.
5621         (target_attributes): New.
5622         (tdesc_elements): Use it.
5623         * features/gdb-target.dtd: Add #FIXED version attribute for
5624         <target>.
5625
5626 2007-06-13  Arthur Huillet  <arthur.huillet@free.fr>
5627
5628         * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5629
5630 2007-06-13  Claudio Fontana <claudio.fontana@gmail.com>
5631
5632         * fork-child.c (fork_inferior): Update comment.
5633
5634 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
5635
5636         * features/Makefile: Generate regformats for mips-linux and
5637         mips64-linux.
5638         * features/sort-regs.xsl: Correct typo.
5639         * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5640         * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5641         files.
5642
5643 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
5644
5645         * config/mips/linux.mh (TDEP_XML): New.
5646         * features/mips-linux.xml, features/mips64-linux.xml: New files.
5647         * mips-linux-nat.c (mips_linux_register_addr): Handle
5648         MIPS_RESTART_REGNUM.
5649         (mips64_linux_register_addr): Likewise.
5650         (super_xfer_partial, mips_linux_xfer_partial): New.
5651         (_initialize_mips_linux_nat): Add them to the target_ops.
5652         * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5653         (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5654         (mips_linux_o32_sigframe_init)
5655         (mips_linux_n32n64_sigframe_init): Likewise.
5656         (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5657         (mips_linux_init_abi): Use mips_linux_write_pc.  Check for the
5658         "org.gnu.gdb.mips.linux" feature.
5659         * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5660         (mips_linux_restart_reg_p): New prototype.
5661         * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5662         initialization routine.
5663         * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5664
5665 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
5666
5667         * Makefile.in (mips-tdep.o): Update.
5668         * mips-tdep.c (struct register_alias, mips_o32_aliases)
5669         (mips_n32_n64_aliases, mips_register_aliases): New.
5670         (mips_register_name): Call tdesc_register_name.
5671         (mips_tdesc_register_reggroup_p): New.
5672         (mips_pseudo_register_type, value_of_mips_user_reg): New.
5673         (mips_gdbarch_init): Add target-described register support.
5674         Register aliases for register names.
5675         * target-descriptions.c (tdesc_register_name): Make global.
5676         (tdesc_register_in_reggroup_p): New function, broken out from
5677         tdesc_register_reggroup_p.
5678         (tdesc_register_reggroup_p): Use it.
5679         * target-descriptions.h (tdesc_register_name)
5680         (tdesc_register_in_reggroup_p): New prototypes.
5681         * NEWS: Correct formatting.  Mention MIPS register support.
5682         * features/mips-cp0.xml, features/mips-fpu.xml,
5683         features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5684         features/mips64-cpu.xml: New files.
5685
5686 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
5687
5688         * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5689         * valops.c (value_cast): Likewise.
5690         * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5691         * ui-out.c (ui_out_field_core_addr): Likewise.
5692         * tracepoint.c (tracepoints_info): Likewise.
5693         * symtab.c (print_msymbol_info): Likewise.
5694         * solib-irix.c (irix_current_sos)
5695         (irix_open_symbol_file_object): Likewise.
5696         * remote.c (build_remote_gdbarch_data): Likewise.
5697         * prologue-value.c (make_pv_area): Likewise.
5698         * procfs.c (info_mappings_callback): Likewise.
5699         * printcmd.c (print_scalar_formatted)
5700         (deprecated_print_address_numeric): Likewise.
5701         * memattr.c (mem_info_command): Likewise.
5702         * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5703         * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5704         * exec.c (print_section_info): Likewise.
5705         * dwarf2read.c (read_subrange_type): Likewise.
5706         * dwarf2loc.c (find_location_expression): Likewise.
5707         * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5708         (signed_address_type, execute_stack_op): Likewise.
5709         * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5710         * gdbarch.c, gdbarch.h: Regenerate.
5711
5712 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
5713
5714         * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5715         * arch-utils.c (show_architecture): Likewise.
5716         * remote-mips.c (mips_open): Likewise
5717         * nto-tdep.c (nto_find_and_open_solib)
5718         (nto_init_solib_absolute_prefix): Likewise.
5719         * nto-procfs (procfs_open): Likewise.
5720         * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5721         * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5722         * gdbarch.c, gdbarch.h: Regenerate.
5723
5724 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
5725
5726         * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5727         * gdbtypes.c (build_flt): Likewise.
5728         * gdbarch.c, gdbarch.h: Regenerate.
5729
5730 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
5731
5732         * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5733         gdbarch_breakpoint_from_pc.
5734         * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5735         * remote.c (remote_insert_breakpoint)
5736         (remote_insert_hw_breakpoint): Likewise.
5737         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5738         * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5739         * breakpoint.h (bp_target_info): Likewise (comment).
5740         * breakpoint.c (read_memory_nobpt): Likewise.
5741         * mem-break.c (default_memory_insert_breakpoint): Likewise.
5742         (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5743         * gdbarch.c, gdbarch.h: Regenerate.
5744
5745 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
5746
5747         * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5748         * solib-svr4.c (svr4_truncate_ptr): Likewise.
5749         * solib-pa64.c (read_dynamic_info): Likewise.
5750         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5751         * solib.c (info_sharedlibrary_command): Likewise.
5752         * s390-nat.c (SUBOFF): Likewise.
5753         * p-valprint.c (pascal_val_print): Likewise.
5754         * procfs.c (info_proc_mappings): Likewise.
5755         * printcmd.c (decode_format): Likewise.
5756         * nto-tdep.c (nto_truncate_ptr): Likewise.
5757         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5758         (mips64_linux_get_longjmp_target): Likewise.
5759         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5760         * jv-valprint.c (java_value_print): Likewise.
5761         * jv-lang.c (get_java_object_header_size): Likewise.
5762         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5763         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5764         (hppa_hpux_unwind_adjust_stub): Likewise.
5765         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5766         * gdbtypes.c (make_pointer_type, make_reference_type)
5767         (smash_to_memberptr_type): Likewise.
5768         * gdbarch.c, gdbarch.h: Regenerate.
5769
5770 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
5771
5772         * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5773         (print_gp_register_row): Stop before printing a register bigger
5774         than the ABI register size.
5775         (mips_print_registers_info): Update call to mips_print_register.
5776
5777 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
5778
5779         * expression.h (enum exp_opcode): Document a register name for
5780         OP_REGISTER.
5781         * parse.c (write_dollar_variable): Write the register name for
5782         OP_REGISTER.
5783         (operator_length_standard): Expect the register name following
5784         OP_REGISTER.
5785         * ada-lang.c (resolve_subexp): Likewise.
5786         * ax-gdb.c (gen_expr): Likewise.
5787         * eval.c (evaluate_subexp_standard): Likewise.
5788         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5789         Likewise.
5790         * tracepoint.c (encode_actions): Likewise.
5791
5792 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
5793
5794         * utils.c (set_screen_size): Use INT_MAX for default columns.
5795
5796 2007-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
5797
5798         * remote.c (remote_protocol_features): Add qXfer:spu:read and
5799         qXfer:spu:write packet types.
5800
5801 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
5802
5803         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5804         * gdbarch.c, gdbarch.h: Regenerate.
5805
5806 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
5807
5808         * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5809         gdbarch_stab_reg_to_regnum.
5810         * stabsread.c (define_symbol): Likewise.
5811         * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5812         gdbarch_ecoff_reg_to_regnum.
5813         * mdebugread.c (parse_symbol): Likewise.
5814         * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5815         * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5816         gdbarch_dwarf_reg_to_regnum.
5817         * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5818         * coffread.c (process_coff_symbol): Likewise.
5819         * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5820         gdbarch_dwarf2_reg_to_regnum.
5821         * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5822         (locexpr_describe_location): Likewise.
5823         * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5824         (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5825         * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5826         * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5827         * gdbarch.c, gdbarch.h: Regenerate.
5828
5829 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
5830
5831         * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5832         gdbarch_smash_text_address.
5833         * somread.c (som_symtab_read): Likewise.
5834         * elfread.c (record_minimal_symbol): Likewise.
5835         * dbxread.c (process_one_symbol): Likewise.
5836         * coffread.c (coff_symtab_read): Likewise.
5837         * gdbarch.c, gdbarch.h: Regenerate.
5838
5839 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
5840
5841         * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5842         * findvar.c (value_from_register): Likewise.
5843         * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5844         * valops.c (value_assign): Likewise.
5845         * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5846         gdbarch_convert_register_p.
5847         * findvar.c (value_from_register): Likewise.
5848         * valops.c (value_assign): Likewise.
5849         * gdbarch.c, gdbarch.h: Regenerate.
5850
5851 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
5852
5853         * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5854         gdbarch_register_sim_regno.
5855         * sim-regno.h (sim_regno): Likewise (comment).
5856         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5857         * gdbarch.c, gdbarch.h: Regenerate.
5858
5859 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
5860
5861         * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5862         gdbarch_virtual_frame_pointer.
5863         * tracepoint.c (encode_actions): Likewise.
5864         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5865         * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5866         * gdbarch.c, gdbarch.h: Regenerate.
5867
5868 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
5869
5870         * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5871         * p-lang.c (pascal_create_fundamental_type): Likewise.
5872         * objc-lang.c (objc_create_fundamental_type): Likewise.
5873         * mdebugread.c (_initialize_mdebugread): Likewise.
5874         * m2-lang.c (m2_create_fundamental_type)
5875         (_initialize_m2_language): Likewise.
5876         * gdbtypes.c (build_gdbtypes): Likewise.
5877         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5878         * doublest.c (floatformat_from_length): Likewise.
5879         * c-lang.c (c_create_fundamental_type): Likewise.
5880         * ada-lang.c (ada_create_fundamental_type)
5881         (ada_language_arch_info): Likewise.
5882         * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5883         * value.c (unpack_double): Likewise (comment).
5884         * gdbtypes.c (build_gdbtypes): Likewise.
5885         * doublest.c (floatformat_from_length): Likewise.
5886         * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5887         * valarith.c (value_binop): Likewise.
5888         * p-lang.c (pascal_create_fundamental_type): Likewise.
5889         * objc-lang.c (objc_create_fundamental_type): Likewise.
5890         * mdebugread.c (_initialize_mdebugread): Likewise.
5891         * m2-lang.c (m2_create_fundamental_type): Likewise.
5892         * gdbtypes.c (build_gdbtypes): Likewise.
5893         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5894         * doublest.c (floatformat_from_length): Likewise.
5895         * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5896         * c-lang.c (c_create_fundamental_type): Likewise.
5897         * ada-lex.l (processReal): Likewise.
5898         * ada-lang.c (ada_create_fundamental_type)
5899         (ada_language_arch_info): Likewise.
5900         * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5901         * value.c (unpack_double): Likewise (comment).
5902         * gdbtypes.c (build_gdbtypes): Likewise.
5903         * doublest.c (floatformat_from_length): Likewise.
5904         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5905         gdbarch_long_double_bit.
5906         * p-lang.c (pascal_create_fundamental_type): Likewise.
5907         * objc-lang.c (objc_create_fundamental_type): Likewise.
5908         * m2-lang.c (m2_create_fundamental_type): Likewise.
5909         * gdbtypes.c (build_gdbtypes): Likewise.
5910         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5911         * doublest.c (floatformat_from_length): Likewise.
5912         * c-lang.c (c_create_fundamental_type): Likewise.
5913         * ada-lex.l (processReal): Likewise.
5914         * ada-lang.c (ada_create_fundamental_type)
5915         (ada_language_arch_info): Likewise.
5916         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5917         gdbarch_long_double_format.
5918         * gdbtypes.c (build_gdbtypes): Likewise.
5919         * doublest.c (floatformat_from_length): Likewise.
5920         * gdbarch.c, gdbarch.h: Regenerate.
5921
5922 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
5923
5924         * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5925         * ada-lang.c (ada_create_fundamental_type)
5926         (ada_language_arch_info): Likewise.
5927         * c-lang.c (c_create_fundamental_type): Likewise.
5928         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5929         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5930         * m2-lang.c (m2_create_fundamental_type): Likewise.
5931         * objc-lang.c (objc_create_fundamental_type): Likewise.
5932         * p-lang.c (pascal_create_fundamental_type): Likewise.
5933         * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5934         * c-exp.y (parse_number): Likewise.
5935         * objc-exp.y (parse_number): Likewise.
5936         * ada-lex.l (processInt): Likewise.
5937         * f-exp.y (parse_number): Likewise.
5938         * p-exp.y (parse_number): Likewise.
5939         * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5940         (gdbtypes_post_init, build_gdbtypes): Likewise.
5941         * p-lang.c (pascal_create_fundamental_type): Likewise.
5942         * parse.c (build_parse): Likewise.
5943         * xcoffread.c (_initialize_xcoffread): Likewise.
5944         * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5945         (read_range_type): Likewise.
5946         * objc-lang.c (objc_create_fundamental_type): Likewise.
5947         * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5948         * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5949         (m2_create_fundamental_type): Likewise.
5950         * c-lang.c (c_create_fundamental_type): Likewise.
5951         * coffread.c (coff_read_enum_type): Likewise.
5952         * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5953         * dwarf2read.c (new_symbol): Likewise.
5954         * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5955         * c-exp.y (parse_number): Likewise.
5956         * objc-exp.y (parse_number): Likewise.
5957         * ada-lex.l (processInt): Likewise.
5958         * f-exp.y (parse_number): Likewise.
5959         * p-exp.y (parse_number): Likewise.
5960         * valarith.c (value_binop): Likewise.
5961         * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5962         * ada-lang.c (ada_create_fundamental_type)
5963         (ada_language_arch_info): Likewise.
5964         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5965         * symfile.c (TARGET_LONG_BYTES): Likewise.
5966         * p-lang.c (pascal_create_fundamental_type): Likewise.
5967         * objc-lang.c (objc_create_fundamental_type): Likewise.
5968         * m2-lang.c (m2_create_fundamental_type): Likewise.
5969         * f-lang.c (f_create_fundamental_type): Likewise.
5970         * c-lang.c (c_create_fundamental_type): Likewise.
5971         * coffread.c (decode_base_type): Likewise.
5972         * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5973         * c-exp.y (parse_number): Likewise.
5974         * objc-exp.y (parse_number): Likewise.
5975         * p-exp.y (parse_number): Likewise.
5976         * ada-lang.c (ada_create_fundamental_type)
5977         (ada_language_arch_info): Likewise.
5978         * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5979         * stabsread.c (read_range_type): Likewise.
5980         * p-lang.c (pascal_create_fundamental_type): Likewise.
5981         * objc-lang.c (objc_create_fundamental_type): Likewise.
5982         * m2-lang.c (m2_create_fundamental_type): Likewise.
5983         * f-lang.c (f_create_fundamental_type): Likewise.
5984         * c-lang.c (c_create_fundamental_type): Likewise.
5985         * gdbarch.c, gdbarch.h: Regenerate.
5986
5987 2007-06-12  Andreas Schwab  <schwab@suse.de>
5988
5989         * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5990         (struct frame_unwind): Add dealloc_cache.
5991         * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5992
5993         * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5994         * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5995         (libunwind_frame_unwind): Set dealloc_cache.
5996         * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5997
5998 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
5999             Markus Deuling  <deuling@de.ibm.com>
6000
6001         * remote.c (remote_write_qxfer): New function.
6002         (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
6003         (remote_read_qxfer): Do not cache empty objects.
6004         (_initialize_remote): Add PACKET_qXfer_spu_read and
6005         PACKET_qXfer_spu_write.
6006
6007 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
6008
6009         * target.h (enum target_object): Add TARGET_OBJECT_SPU.
6010         * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
6011
6012         * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
6013         (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
6014         SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
6015         * spu-tdep.c (infospucmdlist): New variable.
6016         (spu_register_name): Handle additional pseudo registers.
6017         (spu_register_type): Likewise.
6018         (spu_pseudo_register_read): Likewise.
6019         (spu_pseudo_register_write): Likewise.
6020         (spu_pseudo_register_read_spu): New function.
6021         (spu_pseudo_register_write_spu): Likewise.
6022         (info_spu_event_command): New function.
6023         (info_spu_signal_command): Likewise.
6024         (info_spu_mailbox_list): Likewise.
6025         (info_spu_mailbox_command): Likewise.
6026         (spu_mfc_get_bitfield): Likewise.
6027         (info_spu_dma_cmdlist): Likewise.
6028         (info_spu_dma_command): Likewise.
6029         (info_spu_proxydma_command): Likewise.
6030         (info_spu_command): Likewise.
6031         (_initialize_spu_tdep): Install "info spu" commands.
6032
6033 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
6034
6035         * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
6036         accessing non-seekable spufs files.
6037
6038 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
6039
6040         * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6041         gdbarch_skip_trampoline_code.
6042         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6043         * objc-lang.c (objc_skip_trampoline)
6044         (objc_submethod_helper_data): Likewise.
6045         * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6046         * infrun.c (handle_inferior_event): Likewise.
6047         * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6048         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6049         gdbarch_in_solib_return_trampoline.
6050         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6051         * infrun.c (handle_inferior_event): Likewise.
6052         * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6053         * gdbarch.c, gdbarch.h: Regenerate.
6054
6055 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
6056
6057         * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6058         * symtab.c (find_function_start_sal, in_prologue): Likewise.
6059         * linespec.c (minsym_found): Likewise.
6060         * infrun.c (step_into_function): Likewise.
6061         * gdbarch.c, gdbarch.h: Regenerate.
6062
6063 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
6064
6065         * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6066         * valops.c (value_allocate_space_in_inferior): Likewise.
6067         * gdbarch.c, gdbarch.h: Regenerate.
6068
6069 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
6070
6071         * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6072         gdbarch_memory_insert_breakpoint.
6073         * mem-break.c (memory_insert_breakpoint): Likewise.
6074         * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6075         gdbarch_memory_remove_breakpoint.
6076         * mem-break.c (memory_remove_breakpoint): Likewise.
6077         * gdbarch.c, gdbarch.h: Regenerate.
6078
6079 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
6080
6081         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6082         gdbarch_fetch_tls_load_module_address.
6083         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6084         gdbarch_fetch_tls_load_module_address_p.
6085         * gdbarch.c, gdbarch.h: Regenerate.
6086
6087 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
6088
6089         * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6090         gdbarch_decr_pc_after_break.
6091         * tracepoint.c (trace_dump_command): Likewise.
6092         * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6093         * linux-thread-db.c (check_event): Likewise.
6094         * linux-nat.c (cancel_breakpoints_callback): Likewise.
6095         * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6096         * frame.h: Likewise (comment).
6097         * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6098         * aix-thread.c (aix_thread_wait): Likewise.
6099         * gdbarch.c, gdbarch.h: Regenerate.
6100
6101 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
6102
6103         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6104         gdbarch_address_class_type_flags.
6105         * dwarf2read.c (read_tag_pointer_type): Likewise.
6106         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6107         gdbarch_address_class_type_flags_p.
6108         * dwarf2read.c (read_tag_pointer_type): Likewise.
6109         * gdbarch.c, gdbarch.h: Regenerate.
6110
6111 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
6112
6113         * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6114         * value.c (value_as_address): Likewise (comment).
6115         * remote-mips.c (common_breakpoint): Likewise.
6116         * regcache.c (read_pc_pid): Likewise.
6117         * printcmd.c (do_one_display): Likewise.
6118         * monitor.c (monitor_write_memory, monitor_read_memory)
6119         (monitor_insert_breakpoint): Likewise.
6120         * mips-tdep.c (heuristic_proc_start): Likewise.
6121         * infrun.c (insert_step_resume_breakpoint_at_frame)
6122         (insert_step_resume_breakpoint_at_caller): Likewise.
6123         * buildsym.c (record_line): Likewise.
6124         * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6125         (arm_get_next_pc): Likewise.
6126         * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6127         (store_regs): Likewise.
6128         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6129         * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6130         * gdbarch.c, gdbarch.h: Regenerate.
6131
6132 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
6133
6134         * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6135         * tracepoint.c (scope_info): Likewise.
6136         * target.c (debug_print_register): Likewise.
6137         * stack.c (frame_info): Likewise.
6138         * sh-tdep.c (sh_register_reggroup_p): Likewise.
6139         * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6140         (sh64_media_print_registers_info)
6141         (sh64_compact_print_registers_info): Likewise.
6142         * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6143         * remote-sim.c (gdbsim_fetch_register): Likewise.
6144         * remote.c (packet_reg): Likewise (comment).
6145         * reggroups.c (default_register_reggroup_p): Likewise.
6146         * regcache.c (regcache_dump): Likewise.
6147         * printcmd.c (address_info): Likewise.
6148         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6149         * mt-dep.c (mt_registers_info): Likewise.
6150         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6151         * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6152         (mips_read_fp_register_double, mips_print_fp_register)
6153         (mips_print_register, print_gp_register_row, mips_print_registers_info)
6154         (mips_register_sim_regno): Likewise.
6155         * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6156         * inf-ptrace.c (inf_ptrace_fetch_register)
6157         (inf_ptrace_store_register): Likewise.
6158         * infcmd.c (default_print_registers_info): Likewise.
6159         * ia64-linux-nat.c (ia64_linux_fetch_register)
6160         (ia64_linux_store_register): Likewise.
6161         * i386-linux-nat.c (fetch_register, store_register): Likewise.
6162         * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6163         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6164         * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6165         (hppa_hpux_store_register): Likewise.
6166         * findvar.c (locate_var_value): Likewise.
6167         * dwarf2loc.c (locexpr_describe_location): Likewise.
6168         * dwarf2-frame.c (execute_cfa_program): Likewise.
6169         * arm-tdep.c (arm_push_dummy_call): Likewise.
6170         * arch-utils.c (legacy_register_sim_regno): Likewise.
6171         * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6172         * alpha-nat.c (fetch_osf_core_registers): Likewise.
6173         * mi/mi-main.c (mi_cmd_data_list_register_names)
6174         (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6175         (mi_cmd_data_write_register_values): Likewise.
6176         * gdbarch.c, gdbarch.h: Regenerate.
6177
6178 2007-06-07  Daniel Jacobowitz  <dan@codesourcery.com>
6179
6180         * target-memory.c (blocks_to_erase): Correct off-by-one error.
6181
6182 2007-06-06  Vladimir Prus  <vladimir@codesourcery.com>
6183         
6184         * remote.c (process_g_packet): Don't check size.
6185         * gdbarch.sh: Remove register_bytes_ok.
6186         * gdbarch.c: Regenerated.
6187         * gdbarch.h: Regenerated.
6188         * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6189         (m68k_register_bytes_ok): Remove.
6190         (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6191         
6192 2007-06-06  Andreas Schwab  <schwab@suse.de>
6193
6194         * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6195         (destroy_addr_space_name): Define.
6196         (libunwind_load): Get address of destroy_addr_space function.
6197         (libunwind_frame_cache): Destroy unw_addr_space_t object before
6198         returning unsuccessfully.
6199         (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6200         returning.
6201         (libunwind_sigtramp_frame_sniffer): Likewise.
6202         (libunwind_get_reg_special): Likewise.
6203
6204 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
6205
6206         * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6207         gdbarch_fetch_pointer_argument.
6208         * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6209         * gdbarch.c, gdbarch.h: Regenerate.
6210
6211 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
6212
6213         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6214         gdbarch_have_nonsteppable_watchpoint.
6215         * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6216         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6217         gdbarch_cannot_step_breakpoint.
6218         * infrun.c (resume): Likewise.
6219         * gdbarch.c, gdbarch.h: Regenerate.
6220
6221 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
6222
6223         * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6224         * stack.c (print_frame_args): Likewise.
6225         * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6226         * stack.c (print_args_stub, frame_info): Likewise.
6227         * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6228         * stack.c (print_args_stub, frame_info): Likewise.
6229         * gdbarch.c, gdbarch.h: Regenerate.
6230
6231 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
6232
6233         * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6234         gdbarch_coff_make_msymbol_special.
6235         * coffread.c (coff_symtab_read): Likewise.
6236         * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6237         gdbarch_elf_make_msymbol_special.
6238         * elfread.c (elf_symtab_read): Likewise.
6239         * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6240         * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6241         * gdbarch.c, gdbarch.h: Regenerate.
6242
6243 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
6244
6245         * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6246         gdbarch_frame_red_zone_size.
6247         * gdbarch.c, gdbarch.h: Regenerate.
6248
6249 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
6250
6251         * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6252         * infcall.c (call_function_by_hand): Likewise.
6253         * gcore.c (derive_stack_segment): Likewise.
6254         * frame.c (frame_id_inner): Likewise.
6255         * arch-utils.c (core_addr_lessthan): Likewise (comment).
6256         * ada-lang.c (ensure_lval): Likewise.
6257         * gdbarch.c, gdbarch.h: Regenerate.
6258
6259 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
6260
6261         * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6262         gdbarch_address_to_pointer.
6263         * findvar.c (store_typed_address): Likewise.
6264         * gdbtypes.c (make_pointer_type): Likewise (comment).
6265         * procfs.c (procfs_address_to_host_pointer): Likewise.
6266         * std-regs.c (value_of_builtin_frame_reg): Likewise.
6267         (value_of_builtin_frame_fp_reg): Likewise.
6268         (value_of_builtin_frame_pc_reg): Likewise.
6269         * utils.c (paddress): Likewise (comment).
6270         * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6271         gdbarch_pointer_to_address.
6272         * findvar.c (extract_typed_address): Likewise.
6273         * gdbtypes.c (make_pointer_type): Likewise (comment).
6274         * valops.c (value_cast): Likewise (comment).
6275         * gdbarch.c, gdbarch.h: Regenerate.
6276
6277 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
6278
6279         * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6280         * infrun.c (handle_inferior_event): Likewise.
6281         * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6282         gdbarch_get_longjmp_target_p.
6283         * breakpoint.c (breakpoint_re_set): Likewise.
6284         * infrun.c (handle_inferior_event): Likewise.
6285         * gdbarch.c, gdbarch.h: Regenerate.
6286
6287 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
6288
6289         * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6290         HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6291         HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6292         hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6293         eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6294         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6295         find_stub_with_shl_get, cover_find_stub_with_shl_get,
6296         initialize_hp_cxx_exception_support, child_enable_exception_callback,
6297         current_ex_event, child_get_current_exception_event): Remove.
6298         (hppa_hpux_inferior_created): Remove.
6299         (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6300
6301         * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6302         (deprecated_exception_support_initialized): Remove.
6303         * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6304         (deprecated_exception_support_initialized): Remove.
6305         (breakpoint_init_inferior): Remove handling of non-zero
6306         deprecated_exception_catchpoints_are_fragile.
6307
6308         * symtab.h (deprecated_hp_som_som_object_present): Remove.
6309         * symtab.c (deprecated_hp_som_som_object_present): Remove.
6310         * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6311         deprecated_hp_som_som_object_present.
6312         * eval.c (evaluate_subexp_standard): Likewise.
6313         * valops.c (value_cast): Likewise.
6314
6315         * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6316         * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6317         * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6318
6319 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
6320
6321         * objfiles.h (ImportEntry, ExportEntry): Remove types.
6322         (struct objfile): Remove import_list, import_list_size,
6323         export_list, export_list_size members.
6324         (is_in_import_list): Remove prototype.
6325         * objfiles.c (is_in_import_list): Remove.
6326         * somread.c (init_import_symbols, init_export_symbols): Remove.
6327         (som_symfile_read): Do not call init_import_symbols.  Do not
6328         set objfile->export_list and objfile->export_list_size.
6329
6330 2007-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
6331
6332         * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6333         Use the original objfile if necessary.
6334
6335 2007-06-04  Daniel Jacobowitz  <dan@codesourcery.com>
6336
6337         * defs.h (ldirname): New prototype.
6338         * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6339         missing.
6340         * utils.c (ldirname): New function.
6341         * xml-tdesc.c (file_read_description_xml): Use ldirname.
6342
6343 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
6344
6345         * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6346
6347 2007-06-01  Joel Brobecker  <brobecker@adacore.com>
6348
6349         * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6350
6351 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
6352
6353         * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6354
6355 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
6356
6357         * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6358         INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6359         (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6360         PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6361         (ppc_linux_in_sigtramp, insn_is_sigreturn,
6362         ppc_linux_at_sigtramp_return_path): Remove.
6363
6364 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
6365
6366         * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6367         (xtensa_register_write_masked, xtensa_register_read_masked)
6368         (xtensa_extract_return_value, xtensa_store_return_value
6369         (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace 
6370         TARGET_BYTE_ORDER by gdbarch_byte_order.
6371         * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6372         (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6373         (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6374         * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6375         (sh64_push_dummy_call, sh64_extract_return_value)
6376         (sh64_store_return_value, sh64_register_convert_to_virtual)
6377         (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6378         (sh64_pseudo_register_write, sh64_do_fp_register)
6379         (sh64_frame_prev_register): Likewise.
6380         * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6381         (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6382         * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6383         (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6384         * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6385         * ppc-linux-nat.c (store_register): Likewise.
6386         * nto-tdep.c (nto_find_and_open_solib)
6387         (nto_init_solib_absolute_prefix): Likewise.
6388         * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6389         (mips_convert_register_p, mips_eabi_push_dummy_call)
6390         (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6391         (mips_o32_push_dummy_call, mips_o32_return_value)
6392         (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6393         (mips_read_fp_register_single, mips_read_fp_register_double)
6394         (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6395         (mips_breakpoint_from_pc): Likewise.
6396         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6397         * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6398         (mips_linux_o32_sigframe_init): Likewise.
6399         * m32r-tdep.c (m32r_memory_insert_breakpoint)
6400         (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6401         * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6402         (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6403         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6404         * coffread.c (process_coff_symbol): Likewise.
6405         * arm-tdep.c (convert_from_extended, convert_to_extended)
6406         (gdb_print_insn_arm): Likewise.
6407
6408 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
6409
6410         * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6411         * i386-tdep.c (i386_dbx_reg_to_regnum)
6412         (i386_svr4_reg_to_regnum): Likewise.
6413         * inf-ptrace.c (inf_ptrace_fetch_registers)
6414         (inf_ptrace_store_registers): Likewise.
6415         * corelow.c (get_core_registers): Likewise.
6416         * i386-linux-nat.c (supply_gregset, fill_gregset)
6417         (i386_linux_fetch_inferior_registers)
6418         (i386_linux_store_inferior_registers): Likewise.
6419         * remote.c (init_remote_state,packet_reg_from_regnum)
6420         (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6421         (remote_prepare_to_store,store_registers_using_G)
6422         (remote_store_registers,remote_arch_state): Likewise.
6423         * tracepoint.c (encode_actions): Likewise.
6424         * mi/mi-main.c (mi_cmd_data_list_register_names)
6425         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6426         (mi_cmd_data_write_register_values): Likewise.
6427         * tui/tui-regs.c (tui_show_register_group)
6428         (tui_show_register_group): Likewise.
6429         * xtensa-tdep.h (FP_ALIAS): Likewise.
6430         * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6431         (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6432         (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6433         * win32-nat.c (do_win32_fetch_inferior_registers)
6434         (do_win32_store_inferior_registers,fetch_elf_core_registers
6435         * user-regs.h: Likewise (comment).
6436         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6437         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6438         * target-descriptions.h: Likewise (comment).
6439         * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6440         * target.c (debug_print_register): Likewise.
6441         * stack.c (frame_info): Likewise.
6442         * stabsread.c (define_symbol): Likewise.
6443         * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6444         (sh64_media_print_registers_info)
6445         (sh64_compact_print_registers_info): Likewise.
6446         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6447         * rs6000-nat.c (fetch_register,store_register): Likewise.
6448         * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6449         (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6450         * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6451         * remote-m32r-sdi.c (m32r_fetch_registers)
6452         (m32r_store_registers): Likewise.
6453         * reggroups.c (default_register_reggroup_p): Likewise.
6454         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6455         (regcache_restore,regcache_dump): Likewise.
6456         * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6457         * mips-tdep.c (mips_xfer_register,mips_register_name)
6458         (mips_register_reggroup_p,mips_pseudo_register_read)
6459         (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6460         (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6461         (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6462         (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6463         (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6464         (print_gp_register_row,mips_print_registers_info)
6465         (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6466         (mips_register_sim_regno): Likewise.
6467         * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6468         (mips_linux_n32n64_sigframe_init): Likewise.
6469         * mips-linux-nat.c (mips_linux_register_addr)
6470         (mips64_linux_register_addr): Likewise.
6471         * findvar.c (value_of_register): Likewise.
6472         * infcmd.c (default_print_registers_info,registers_info)
6473         (print_vector_info,print_float_info): Likewise.
6474         * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6475         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6476         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6477         * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6478         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6479         * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6480         (ia64_cannot_store_register,ia64_linux_fetch_registers)
6481         (ia64_linux_store_registers): Likewise.
6482         * hpux-thread.c (hpux_thread_fetch_registers)
6483         (hpux_thread_store_registers): Likewise.
6484         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6485         (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6486         (h8300_register_type): Likewise.
6487         * dwarf2-frame.c (dwarf2_frame_cache)
6488         (dwarf2_frame_state_alloc_regs): Likewise.
6489         * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6490         (cris_cannot_store_register,crisv32_cannot_fetch_register)
6491         (crisv32_cannot_store_register,cris_register_name): Likewise.
6492         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6493         * arch-utils.c (legacy_register_sim_regno)
6494         (legacy_virtual_frame_pointer): Likewise.
6495         * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6496         * arm-tdep.h: Likewise (comment).
6497         * frv-tdep.c (frv_register_sim_regno): Likewise.
6498         * m68klinux-nat.c (old_fetch_inferior_registers)
6499         (old_store_inferior_registers): Likewise.
6500         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6501         * irix5-nat.c (fetch_core_registers): Likewise.
6502         * hppa-tdep.c (hppa_frame_cache): Likewise.
6503         * hppa-linux-nat.c (hppa_linux_register_addr)
6504         (hppa_linux_fetch_inferior_registers)
6505         (hppa_linux_store_inferior_registers): Likewise.
6506         * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6507         (hppa_hpux_store_inferior_registers): Likewise.
6508         * amd64-nat.c (amd64_native_gregset_reg_offset)
6509         (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6510         * dbug-rom.c (dbug_regname): Likewise.
6511         * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6512         (HARD_PAGE_REGNUM (comment)): Likewise.
6513         * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6514         * i386-tdep.c (i386_dbx_reg_to_regnum)
6515         (i386_svr4_reg_to_regnum): Likewise.
6516         * mi/mi-main.c (mi_cmd_data_list_register_names)
6517         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6518         (mi_cmd_data_write_register_values): Likewise.
6519         * gdbarch.c, gdbarch.h: Regenerate.
6520         * tui/tui-regs.c (tui_show_register_group): Likewise.
6521         * xtensa-tdep.h (FP_ALIAS): Likewise.
6522         * user-regs.h: Likewise (comment).
6523         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6524         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6525         * target-descriptions.h: Likewise (comment).
6526         * target.c (debug_print_register): Likewise.
6527         * stack.c (frame_info): Likewise.
6528         * stabsread.c (define_symbol): Likewise.
6529         * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6530         (sh64_compact_print_registers_info): Likewise.
6531         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6532         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6533         (regcache_restore,regcache_dump): Likewise.
6534         * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6535         (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6536         (mips_stab_reg_to_regnum): Likewise.
6537         * findvar.c (value_of_register): Likewise.
6538         * infcmd.c (default_print_registers_info,registers_info)
6539         (print_vector_info,print_float_info): Likewise.
6540         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6541         * h8300-tdep.c (h8300_register_type): Likewise.
6542         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6543         * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6544         * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6545         (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6546         * parse.c: Remove comment.
6547         * gdbarch.c, gdbarch.h: Regenerate
6548
6549 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
6550
6551         * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6552         gdbarch_cannot_fetch_register.
6553         * alpha-nat.c (fetch_osf_core_registers): Likewise.
6554         * hppa-linux-nat.c (fetch_register): Likewise.
6555         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6556         * m68klinux-nat.c (fetch_register): Likewise.
6557         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6558         Likewise.
6559         * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6560         gdbarch_cannot_store_register.
6561         * hppa-linux-nat.c (store_register): Likewise.
6562         * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6563         * regcache.c (regcache_raw_write): Likewise.
6564         * m68klinux-nat.c (store_register): Likewise.
6565         * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6566         * gdbarch.c, gdbarch.h: Regenerate.
6567
6568 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
6569
6570         * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6571         * gdbarch.c, gdbarch.h: Regenerate.
6572
6573 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
6574
6575         * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6576         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6577         * gdbarch.c, gdbarch.h: Regenerate.
6578
6579 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
6580
6581         * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6582         * ax-gdb.c (gen_bitfield_ref): Likewise.
6583         * mi/mi-main.c (get_register): Likewise.
6584         * findvar.c (default_value_from_register, extract_signed_integer)
6585         (extract_unsigned_integer, extract_long_unsigned_integer)
6586         (store_signed_integer, store_unsigned_integer): Likewise.
6587         * regcache.c (regcache_dump): Likewise.
6588         * value.c (lookup_internalvar, value_of_internalvar)
6589         (set_internalvar): Likewise.
6590         * defs.h: Likewise.
6591         * valprint.c (print_binary_chars, print_octal_chars)
6592         (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6593         * infcmd.c (default_print_registers_info): Likewise.
6594         * arch-utils.c (selected_byte_order, show_endian): Likewise.
6595         * stabsread.c (define_symbol): Likewise.
6596         * doublest.c (floatformat_from_length, floatformat_from_type)
6597         (extract_typed_floating, store_typed_floating): Likewise.
6598         * gdbarch.c, gdbarch.h: Regenerate.
6599
6600 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
6601
6602         * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6603         gdbarch_call_dummy_location.
6604         * infcall.c (call_function_by_hand): Likewise.
6605         * inferior.h: Change comment.
6606         * arch-utils.c: Change comment.
6607         * gdbarch.c, gdbarch.h: Regenerate.
6608
6609 2007-05-28  Joel Brobecker  <brobecker@adacore.com>
6610
6611         * solib-aix5.c: Delete.
6612         * Makefile.in (solib-aix5.o): Delete rule.
6613
6614 2007-05-23  Daniel Jacobowitz  <dan@codesourcery.com>
6615
6616         * breakpoint.h (enum bpstat_what_main_action): Remove
6617         BPSTAT_WHAT_THROUGH_SIGTRAMP.
6618         * infrun.c (process_event_stop_test): Do not check for it.
6619
6620 2007-05-22  Chris Dearman  <chris@mips.com>
6621             Maciej W. Rozycki  <macro@mips.com>
6622
6623         * ser-unix.c (show_serial_hwflow): New function.
6624         (hardwire_raw): Add hardware flow control support.
6625         (_initialize_ser_hardwire): Add "set/show remoteflow".
6626         * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6627         * NEWS: Document the new command.
6628
6629 2007-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
6630
6631         * config/i386/tm-linux.h (sys_quotactl): Do not define.
6632         * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6633         define for i[[3456]]86-*-linux* native configurations.
6634         * config.in, configure: Regenerate.
6635
6636 2007-05-19  Joel Brobecker  <brobecker@adacore.com>
6637
6638         * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6639         a core file. Add comment in the function description.
6640
6641 2007-05-18  Caroline Tice  <ctice@apple.com>
6642
6643         * c-valprint.c (c_value_print):  If the initialized field of the
6644         value struct is 0, print out "[uninitialized]" before the value.
6645         * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field; 
6646         allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a 
6647         DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6648         ctx->initialized appropriately. Verify no location op follows
6649         DW_OP_GNU_uninit.
6650         * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6651         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to 
6652         set_value_initialized.
6653         * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6654         (decode_locdesc): Add case for DW_OP_GNU_uninit.
6655         * value.c (struct value):  New field, initialized.
6656         (allocate_value): Initialize new field.
6657         (set_value_initialized): New function.
6658         (value_initialized): New function.
6659         * value.h (value_initialized): New extern declaration.
6660         (set_value_initialized): Likewise.
6661         
6662 2007-05-18  Caroline Tice  <ctice@apple.com>
6663
6664         * MAINTAINERS (Write After Approval): Add self.
6665         
6666 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
6667
6668         * gdbtypes.c (make_reference_type): Preserve the type chain
6669         and set the length of all the variants of the pointer type.
6670
6671 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
6672
6673         * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6674         and set the length of all the variants of the pointer type.
6675
6676 2007-05-17  Maciej W. Rozycki  <macro@mips.com>
6677
6678         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6679         comment.
6680         (mips_o64_push_dummy_call): Reformat a comment.
6681
6682 2007-05-17  Qinwei  <qinwei@sunnorth.com.cn>
6683
6684         * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6685         (score_prologue_frame_base_address): Return fp to keep gdb print
6686         local variables correctly when debugging information is stabs.
6687
6688         (score_analyze_prologue): For software watchpoint, fetch all the
6689         instructions from range [startaddr, pc] once and identify them locally
6690         to reduce memory access.
6691         (score_malloc_and_get_memblock, score_free_memblock)
6692         (score_adjust_memblock_ptr): New functions.
6693         (score_fetch_inst): Fetch single instruction or mutiple instructions.
6694
6695         (score_target_can_use_watch, score_stopped_by_watch)
6696         (score_target_insert_watchpoint, score_target_remove_watchpoint)
6697         (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6698         New functions for remote & local hw-watchpoint and hw-breakpoint.
6699
6700 2007-05-16  Alfred M. Szmidt  <ams@gnu.org>
6701
6702         * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6703         declarations as well.
6704
6705 2007-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
6706
6707         * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6708         * config/arm/tm-embed.h: Delete file.
6709
6710         * arm-tdep.h (arm_software_single_step): Declare.
6711         * arm-tdep.c (arm_software_single_step): Make global.
6712         (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6713         from here to ...
6714         * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6715         * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6716         * armobsd-tdep.c (armobsd_init_abi): ... here ...
6717         * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6718
6719         * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6720         allow defines to be overriden by TM file.
6721         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise.  Also,
6722         change default to {0xbe,0xbe}.
6723         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6724         arm_obsd_thumb_be_breakpoint): New global variables.
6725         (armobsd_init_abi): Override tdep->thumb_breakpoint and
6726         tdep->thumb_breakpoint_size.
6727         * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6728         (arm_wince_init_abi): Override tdep->thumb_breakpoint and 
6729         tdep->thumb_breakpoint_size.
6730
6731         * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6732
6733 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
6734
6735         * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6736         saved-gpreg-size".
6737
6738         * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6739         (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6740         (mips_stack_argsize_string, mips_stack_argsize): Delete.
6741         (mips_abi_regsize): Simplify.
6742         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6743         (mips_n32n64_return_value, mips_o32_push_dummy_call)
6744         (mips_o32_return_value, mips_o64_push_dummy_call)
6745         (mips_o64_return_value): Propogate constant register sizes.  Use the
6746         ABI register size instead of mips_stack_argsize.
6747         (mips_dump_tdep): Don't print mips_stack_argsize.
6748         (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6749         settings.
6750
6751 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
6752
6753         * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6754         * config/mips/tm-linux.h: Delete.
6755         * mips-linux-tdep.c (mips_svr4_so_ops): New.
6756         (mips_linux_in_dynsym_resolve_code): Make static.  Use
6757         svr4_in_dynsym_resolve_code.
6758         (mips_linux_init_abi): Initialize mips_svr4_so_ops.  Call
6759         set_solib_ops.
6760         * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6761         global.
6762         * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6763         * Makefile.in (mips-linux-tdep.o): Update.
6764         * solib.c (set_solib_ops): New.
6765         (current_target_so_ops): Update comment.
6766         * solib.h (set_solib_ops): New prototype.
6767
6768 2007-05-16  Chris Dearman  <chris@mips.com>
6769
6770         * printcmd.c (do_examine): Fix typos in a comment.
6771
6772 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
6773
6774         * configure.ac: Allow sysroots to be relocated under $prefix as
6775         well as $exec_prefix.
6776         * configure: Regenerate.
6777
6778 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
6779
6780         * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6781         (offsetof): Do not define.
6782         (find_stub_with_shl_get): Use numerical value 3 instead of
6783         symbolic value TYPE_PROCEDURE.
6784
6785 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
6786
6787         * gdb_proc_service.h (paddr_t): Delete typedef.
6788         * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6789         (ps_xfer_memory): Take a psaddr_t.  Use ps_addr_to_core_addr.
6790         (ps_pglobal_lookup): Take a psaddr_t *.  Use core_addr_to_ps_addr.
6791         (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6792         * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6793         * Makefile.in (proc-service.o): Update.
6794
6795 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
6796
6797         * Makefile.in (mips-tdep.o): Update.
6798         * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6799         unwinder.
6800
6801 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
6802
6803         * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6804         instead of store_typed_address.
6805         * value.c (pack_long): New.
6806         (value_from_longest): Use it.
6807         * value.h (pack_long): New prototype.
6808
6809 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
6810
6811         * dwarf2-frame.c (read_encoded_value): Correct typo.  Use
6812         DW_EH_PE_signed if appropriate.
6813
6814 2007-05-14  Paul Brook  <paul@codesourcery.com>
6815             Daniel Jacobowitz  <dan@codesourcery.com>
6816
6817         * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6818         function.
6819         (dwarf_decode_lines): Check for line info without a file.
6820
6821 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
6822
6823         * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6824         as hexadecimal.
6825
6826 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
6827
6828         * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6829         STRUCTOP_STRUCT.
6830         * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6831         STRUCTOP_STRUCT.
6832         * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6833
6834 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
6835
6836         * gdbarch.sh (read_sp): Remove.
6837         * gdbarch.c, gdbarch.h: Regenerate.
6838         * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6839
6840         * avr-tdep.c (avr_read_sp): Remove.
6841         (avr_unwind_sp): New function.
6842         (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6843         * mips-tdep.c (mips_read_sp): Remove.
6844         (mips_unwind_sp): New function.
6845         (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6846         * score-tdep.c (score_read_unsigned_register): Remove.
6847         (score_read_sp): Remove.
6848         (score_unwind_sp): New function.
6849         (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6850
6851 2007-05-14  Maxim Grigoriev  <maxim2405@gmail.com>
6852
6853         * buildsym.c (start_subfile): Handle absolute pathnames
6854         while comparing subfile names.
6855
6856 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
6857
6858         * hppa-hpux-tdep.c: Include "regcache.h".
6859         * hppa-linux-tdep.c: Likewise.
6860         * hppa-tdep.c: Include "gdb_stdint.h".
6861         (find_unwind_entry): Cast host pointer to uintptr_t before passing
6862         it to paddr_nz.
6863         * Makefile.in: Update dependencies.
6864
6865 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
6866
6867         * blockframe.c: Remove obsolete comments.
6868         * alpha-nat.c (fetch_osf_core_registers): Update comment.
6869         * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6870         * hppa-tdep.h (enum hppa_regnum): Likewise.
6871         * mips-tdep.h: Likewise.
6872         * m68hc11-tdep.c: Likewise.
6873
6874 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
6875
6876         * inferior.h (read_sp): Remove prototype.
6877         * regcache.c (read_sp): Remove.
6878         * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6879         * infcall.c (call_function_by_hand): Likewise.
6880         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6881         of calling read_sp.
6882         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6883
6884 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
6885
6886         * i386-linux-nat.c (i386_linux_resume): Use regcache functions 
6887         instead of read_register and read_register_pid.
6888
6889         * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE 
6890         argument instead of PTID.  Use regcache functions instead of
6891         read_register_pid.
6892         (ia64_linux_insert_watchpoint): Update call.
6893         (ia64_linux_stopped_data_address): Use regcache functions
6894         instead of read_register_pid and write_register_pid.
6895
6896 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
6897
6898         * libunwind-frame.h (struct regcache): Add forward declaration.
6899         (libunwind_get_reg_special): Add REGCACHE argument.
6900         * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6901         argument.  Pass it to unw_init_remote_p.
6902
6903         * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6904         libunwind_get_reg_special.
6905         (ia64_access_reg): Remove "write" case.
6906         (ia64_access_fpreg): Likewise.  Read from next_frame passed
6907         as callback argument instead of from current_regcache.
6908         (ia64_access_rse_reg): Remove "write" case.  Read from regcache
6909         passed as callback argument instead of from current_regcache.
6910         (ia64_access_rse_fpreg): New function.
6911         (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6912
6913 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
6914
6915         * NEWS: Mention SPU overlay support.
6916
6917 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
6918
6919         * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6920
6921 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
6922
6923         * breakpoint.c (remove_breakpoint): Do not remove software
6924         breakpoints in unmapped overlay sections.
6925
6926 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
6927
6928         * spu-tdep.c: Include "observer.h".
6929         (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6930         (spu_overlay_data): New variable.
6931         (struct spu_overlay_table): New type.
6932         (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6933         spu_overlay_new_objfile): New functions.
6934         (spu_gdbarch_init): Install spu_overlay_update.
6935         (_initialize_spu_tdep): Register spu_overlay_new_objfile, 
6936         allocate spu_overlay_data objfile data.
6937
6938 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
6939
6940         * gdbarch.sh (overlay_update): New gdbarch function.
6941         (struct obj_section): Add forward declaration.
6942         * gdbarch.c, gdbarch.h: Regenerate.
6943
6944         * symfile.c (simple_overlay_update): Make global.
6945         (target_overlay_update): Remove variable.
6946         (overlay_is_mapped): Call gdbarch_overlay_update instead of
6947         target_overlay_update.
6948         (overlay_load_command): Likewise.
6949         * symfile.h (struct obj_section): Add forward declaration.
6950         (simple_overlay_update): Add prototype.
6951
6952         * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6953
6954 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
6955
6956         * observer.sh: Add "struct objfile" forward declaration.
6957         * target.h (deprecated_target_new_objfile_hook): Remove.
6958         * symfile.c (deprecated_target_new_objfile_hook): Remove.
6959         (clear_symtab_users): Call observer_notify_new_objfile.
6960         (symbol_file_add_with_addrs_or_offsets): Likewise.
6961         * rs6000-nat.c: Include "observer.h".
6962         (vmap_ldinfo): Call observer_notify_new_objfile.
6963         (xcoff_relocate_core): Likewise.
6964         * remote.c (remote_new_objfile_chain): Remove.
6965         (remote_new_objfile): Do not call remote_new_objfile_chain.
6966         (_initialize_remote): Use observer_attach_new_objfile.
6967         * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6968         (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6969         (_initialize_tui_hooks): Use observer_attach_new_objfile.
6970         * aix-thread.c: Include "observer.h".
6971         (target_new_objfile_chain): Remove.
6972         (new_objfile): Do not call target_new_objfile_chain.
6973         (_initialize_aix_thread): Use observer_attach_new_objfile.
6974         * hpux-thread.c: Include "observer.h"
6975         (target_new_objfile_chain): Remove.
6976         (hpux_thread_new_objfile): Make static.  Do not call
6977         target_new_objfile_chain.
6978         (_initialize_hpux_thread): Use observer_attach_new_objfile.
6979         * linux-thread-db.c: Include "observer.h".
6980         (target_new_objfile_chain): Remove.
6981         (thread_db_new_objfile): Do not call target_new_objfile_chain.
6982         (_initialize_thread_db): Use observer_attach_new_objfile.
6983         * sol-thread.c: Include "observer.h".
6984         (target_new_objfile_chain): Remove.
6985         (sol_thread_new_objfile): Make static.  Do not call
6986         target_new_objfile_chain.
6987         (_initialize_sol_thread): Use observer_attach_new_objfile.
6988         * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6989         rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6990         $(observer_h).
6991
6992 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
6993
6994         * gdbarch.sh (remote_translate_xfer_address): Remove.
6995         * gdbarch.h, gdbarch.c: Regenerate.
6996         * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6997         * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6998         * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6999         call gdbarch_remote_translate_xfer_address.
7000         * frv-tdep.c (frv_gdbarch_init): Do not call
7001         set_gdbarch_remote_translate_xfer_address.
7002         * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
7003         (ia64_gdbarch_init): Do not install it.
7004
7005 2007-05-11  Bob Wilson  <bob.wilson@acm.org>
7006
7007         * NEWS: Mention change in handling the -tui option.
7008
7009 2007-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
7010
7011         * linux-thread-db.c (enable_thread_event_reporting): Fix comment
7012         typo.
7013
7014 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
7015
7016         * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
7017         (breakpoint_inserted_here_p): Call it.
7018         (software_breakpoint_inserted_here_p): Likewise.
7019
7020 2007-05-10  Ulrich Weigand  <uweigand@de.ibm.com>
7021
7022         * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
7023         (inf_ptrace_fetch_register): Add register_u_offset callback parameters
7024         GDBARCH and STORE_P.  Handle callback (CORE_ADDR) -1 return value.
7025         (inf_ptrace_store_register): Likewise.
7026         (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
7027         * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
7028
7029         * vax-nat.c (vax_register_u_offset): Adapt parameter list.
7030
7031         * linux-nat.c (linux_trad_target): Adapt parameter list.
7032         * linux-nat.h (linux_trad_target): Likewise.
7033
7034         * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
7035
7036         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7037         (mips_linux_cannot_store_register): Likewise.
7038         (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7039         Return (CORE_ADDR) -1 for registers that cannot be fetched or
7040         stored via ptrace.  Use GDBARCH instead of current_gdbarch.
7041         (mips64_linux_register_addr): Likewise.
7042         (mips_linux_register_u_offset): Adapt parameter list.  Pass
7043         GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7044
7045         * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7046         * config/mips/nm-linux.h: Delete file.
7047
7048 2007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
7049
7050         * remote.c (remote_detach): Error out if remote can't detach.
7051
7052 2007-05-10  Luis Machado  <luisgpm@br.ibm.com>
7053
7054         * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7055         instruction's opcode in the "opcode" variable and declares new
7056         variable "closing_insn".
7057
7058 2007-05-10  Chris Dearman  <chris@mips.com>
7059             Maciej W. Rozycki  <macro@mips.com>
7060
7061         * cli/cli-setshow.c (do_setshow_command): Remove trailing
7062         whitespace when setting a var_filename.
7063
7064 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
7065         
7066         * main.c (captured_main): Recognize -tui option and print an error
7067         message when the TUI is not configured.
7068         
7069 2007-05-09  Andreas Schwab  <schwab@suse.de>
7070
7071         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7072         set removed members.
7073         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7074
7075 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
7076
7077         * gdbarch.sh (deprecated_store_struct_return): Remove.
7078         * gdbarch.c, gdbarch.h: Regenerate.
7079         * frv-tdep.c (frv_store_struct_return): Remove.
7080         (frv_gdbarch_init): Do not install it.
7081
7082 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
7083
7084         * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7085         * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7086         * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7087
7088 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
7089
7090         * spu-linux-nat.c: Include "gdb_stdint.h".
7091         (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7092         (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7093         (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7094         (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7095         (spu_child_wait): Mark up string for translation.
7096
7097 2007-05-08  Paul Gilliam  <pgilliam@us.ibm.com>
7098             Luis Machado  <luisgpm@br.ibm.com>
7099
7100         * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7101         STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7102         BC_INSTRUCTION): Define.
7103         (deal_with_atomic_sequence): New function.
7104         (rs6000_software_single_step): Call deal_with_atomic_sequence.
7105         (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7106         gdbarch_software_single_step routine.
7107
7108 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
7109
7110         * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7111         store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7112         parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7113         spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7114         spu_child_post_attach, spu_fetch_inferior_registers,
7115         spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7116         memory addresses as ULONGEST, not CORE_ADDR.
7117
7118 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
7119
7120         * gdbarch.sh: Add skip_permanent_breakpoint callback.
7121         * gdbarch.h, gdbarch.c: Regenerate.
7122
7123         * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7124         (resume): Call gdbarch_skip_permanent_breakpoint instead of
7125         SKIP_PERMANENT_BREAKPOINT.  Inline default case.
7126
7127         * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7128         Add REGCACHE argument.  Use it instead of read/write_register.
7129         (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7130
7131         * config/pa/tm-hppah.h: Delete file.
7132         * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7133         * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7134
7135 2007-05-07  Daniel Jacobowitz  <dan@codesourcery.com>
7136
7137         * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7138         * NEWS: Mention improved C++ thunk support.
7139         * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7140         * cp-abi.c (cplus_skip_trampoline): New.
7141         * cp-abi.h (cplus_skip_trampoline): New prototype.
7142         (struct cp_abi_ops): Add skip_trampoline member.
7143         * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7144         (init_gnuv3_ops): Set skip_trampoline.
7145
7146 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
7147
7148         * rs6000-tdep.c (struct frame_extra_info): Delete.
7149
7150 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
7151
7152         * linux-thread-db.c: Update some FIXME comments.
7153         (thread_db_xfer_partial): Delete.
7154         (init_thread_db_ops): Do not set to_xfer_partial.
7155
7156 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7157
7158         * inftarg.c, infptrace.c: Remove files.
7159         * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7160         (inftarg.o, infptrace.o): Remove rules.
7161         * gdbcore.h (register_addr): Remove prototype.
7162         * inferior.h (kill_inferior, store_inferior_registers,
7163         fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7164         call_ptrace, pre_fork_inferior): Remove prototypes.
7165         * target.h (child_xfer_memory, child_pid_to_exec_file, 
7166         child_core_file_to_sym_file, child_post_attach,
7167         child_post_startup_inferior, child_acknowledge_created_inferior,
7168         child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7169         child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7170         child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7171         child_follow_fork, child_reported_exec_events_per_exec_call,
7172         child_has_exited, child_thread_alive): Remove prototypes.
7173
7174 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7175
7176         * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7177         (sparc_store_inferior_registers): Likewise.
7178         * sparc-nat.c (fetch_inferior_registers): Rename to ...
7179         (sparc_fetch_inferior_registers): ... this.
7180         (store_inferior_registers): Rename to ...
7181         (sparc_store_inferior_registers): ... this.
7182         (sparc_target): Update callback names.
7183         * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise. 
7184         * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise. 
7185
7186 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7187
7188         * linux-nat.c (child_post_attach): Rename to ...
7189         (linux_child_post_attach): ... this.  Make static.
7190         (child_follow_fork): Rename to ...
7191         (linux_child_follow_fork): ... this.  Make static.
7192         (child_insert_fork_catchpoint): Rename to ...
7193         (linux_child_insert_fork_catchpoint): ... this.  Make static.
7194         (child_insert_vfork_catchpoint): Rename to ...
7195         (linux_child_insert_vfork_catchpoint): ... this.  Make static.
7196         (child_insert_exec_catchpoint): Rename to ...
7197         (linux_child_insert_exec_catchpoint): ... this.  Make static.
7198         (child_pid_to_exec_file): Rename to ...
7199         (linux_child_pid_to_exec_file): ... this.  Make static.
7200         Add prototype.
7201         (linux_handle_extended_wait): Update call.
7202         (linux_xfer_partial): Update callback routine names.
7203
7204 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7205
7206         * configure.host (alpha*-*-osf[12]*): Remove support.
7207         * NEWS: Mention removed configurations.
7208
7209         * config/alpha/alpha-osf1.mh: Delete file.
7210         * config/alpha/alpha-osf2.mh: Delete file.
7211         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7212         and infptrace.o.
7213         * config/alpha/nm-osf.h: Delete file.
7214         * config/alpha/nm-osf2.h: Delete file.
7215         * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7216         (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7217         (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7218
7219         * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7220         (register_addr, kernel_u_size): Remove.
7221         Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7222
7223 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7224
7225         * regcache.c (regcache_invalidate): New function.
7226         (register_cached): Remove.
7227         (set_register_cached): Remove.
7228         (deprecated_registers_fetched): Remove.
7229         (registers_changed): Use regcache_invalidate instead
7230         of set_register_cached.
7231         (regcache_raw_read): Update comment.
7232
7233         * regcache.h (regcache_invalidate): Add prototype.
7234         (register_cached): Remove.
7235         (set_register_cached): Remove.
7236         (deprecated_registers_fetched): Remove.
7237
7238         * findvar.c (value_of_register): Do not call register_cached.
7239         * frame.c (frame_register): Likewise.
7240         * tui/tui-regs.c (tui_get_register): Likewise.
7241
7242         * remote.c (fetch_register_using_p): Do not call set_register_cached.
7243         (process_g_packet): Likewise.
7244         (remote_fetch_registers): Likewise.
7245         * remote-sim.c (gdbsim_fetch_register): Likewise.
7246         * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7247         by regcache_invalidate.
7248         (mt_pseudo_register_write): Likewise.
7249         * sh-tdep.c (sh_pseudo_register_write): Likewise.
7250
7251         * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7252         call by loop over regcache_raw_supply (..., NULL).
7253
7254 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7255
7256         * target.h (struct target_ops): Add REGCACHE parameter to
7257         to_prepare_to_store.
7258         (target_prepare_to_store): Likewise.
7259         * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7260         (update_current_target): Adapt prepare_to_store de_fault rule.
7261
7262         * regcache.c (regcache_raw_write): Pass regcache to
7263         target_prepare_to_store.
7264
7265         * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7266         Do not call CHILD_PREPARE_TO_STORE.
7267         * gnu-nat.c (gnu_prepare_to_store): Likewise.
7268         * procfs.c (procfs_prepare_to_store): Likewise.
7269
7270         * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7271         * go32-nat.c (go32_prepare_to_store): Likewise.
7272         * monitor.c (monitor_prepare_to_store): Likewise.
7273         * nto-procfs.c (procfs_prepare_to_store): Likewise.
7274         * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7275         * remote-mips.c (mips_prepare_to_store): Likewise.
7276         * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7277         * win32-nat.c (win32_prepare_to_store): Likewise.
7278
7279         * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7280         Use it instead of current_regcache.
7281
7282         * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7283         parameter.  Pass it on to next target.
7284         * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7285
7286 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7287
7288         * target.h (struct regcache): Add forward declaration.
7289         (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7290         and to_store_registers target operations.
7291         (target_fetch_registers, target_store_registers): Update.
7292
7293         * regcache.c (regcache_raw_read): Replace register_cached by
7294         regcache_valid_p.  Pass regcache to target_fetch_registers.
7295         (regcache_raw_write): Pass regcache to target_store_registers.
7296
7297         * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7298         store_regs, store_wmmx_regs): Replace register_cached by
7299         regcache_valid_p.
7300
7301         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7302         to target_fetch_registers calls.
7303         * corelow.c (core_open): Likewise.
7304         * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7305         * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7306         ps_lsetfpregs): Likewise.
7307         * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7308         ps_lsetfpregs): Likewise.
7309         * win32-nat.c (win32_resume): Likewise.
7310         * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7311         to target_store_registers call.
7312         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7313
7314         * inferior.h (store_inferior_registers): Update prototype.
7315         (fetch_inferior_registers): Likewise.
7316         * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7317         * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7318         Update function pointer signatures.
7319
7320         * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7321         use it instead of current_regcache, update calls.
7322         (aix_thread_store_registers): Likewise.
7323         * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7324         (alphabsd_store_inferior_registers): Likewise.
7325         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7326         (amd64bsd_store_inferior_registers): Likewise.
7327         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7328         (amd64_linux_store_inferior_registers): Likewise.
7329         * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7330         store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7331         fetch_wmmx_regs, store_wmmx_regs): Likewise.
7332         (arm_linux_fetch_inferior_registers): Likewise.
7333         (arm_linux_store_inferior_registers): Likewise.
7334         * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7335         fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7336         (store_register, store_regs, store_fp_register, store_fp_regs,
7337         armnbsd_store_registers): Likewise.
7338         * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7339         * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7340         (bsd_uthread_store_registers): Likewise.
7341         * corelow.c (get_core_registers): Likewise.
7342         * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7343         go32_store_registers): Likewise.
7344         * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7345         (hppabsd_store_registers): Likewise.
7346         * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7347         (hppa_hpux_fetch_inferior_registers): Likewise.
7348         (hppa_hpux_store_register): Likewise.
7349         (hppa_hpux_store_inferior_registers): Likewise.
7350         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7351         (hppa_linux_fetch_inferior_registers): Likewise.
7352         (hppa_linux_store_inferior_registers): Likewise.
7353         * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7354         (hpux_thread_store_registers): Likewise.
7355         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7356         (i386bsd_store_inferior_registers): Likewise.
7357         * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7358         gnu_store_registers): Likewise.
7359         * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7360         store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7361         Likewise.
7362         (i386_linux_fetch_inferior_registers): Likewise.
7363         (i386_linux_store_inferior_registers): Likewise.
7364         * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7365         (ia64_linux_fetch_registers): Likewise.
7366         (ia64_linux_store_register): Likewise.
7367         (ia64_linux_store_registers): Likewise.
7368         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7369         (inf_child_store_inferior_registers): Likewise.
7370         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7371         (inf_ptrace_fetch_registers): Likewise.
7372         (inf_ptrace_store_register): Likewise.
7373         (inf_ptrace_store_registers): Likewise.
7374         * infptrace.c (fetch_register, store_register): Likewise.
7375         (fetch_inferior_registers, store_inferior_registers): Likewise.
7376         * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7377         (m32r_linux_fetch_inferior_registers): Likewise.
7378         (m32r_linux_store_inferior_registers): Likewise.
7379         * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7380         (m68kbsd_store_inferior_registers): Likewise.
7381         * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7382         store_register, old_store_inferior_registers, fetch_regs, store_regs,
7383         fetch_fpregs, store_fpregs): Likewise.
7384         (m68k_linux_fetch_inferior_registers): Likewise.
7385         (m68k_linux_store_inferior_registers): Likewise.
7386         * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7387         (m88kbsd_store_inferior_registers): Likewise.
7388         * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7389         (mips64obsd_store_inferior_registers): Likewise.
7390         * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7391         (mips64_linux_regsets_store_registers): Likewise.
7392         (mips64_linux_fetch_registers): Likewise.
7393         (mips64_linux_store_registers): Likewise.
7394         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7395         (mipsnbsd_store_inferior_registers): Likewise.
7396         * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7397         (monitor_fetch_registers, monitor_store_registers): Likewise.
7398         * nto-procfs.c (procfs_fetch_registers): Likewise.
7399         (procfs_store_registers): Likewise.
7400         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7401         fetch_register, supply_vrregset, fetch_altivec_registers,
7402         fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7403         (store_altivec_register, store_spe_register, store_register, 
7404         fill_vrregset, store_altivec_registers, store_ppc_registers,
7405         ppc_linux_store_inferior_registers): Likewise.
7406         * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7407         (ppcnbsd_store_inferior_registers): Likewise.
7408         * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7409         (ppcobsd_store_registers): Likewise.
7410         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7411         * remote.c (fetch_register_using_p, process_g_packet,
7412         fetch_registers_using_g, remote_fetch_registers): Likewise.
7413         (store_register_using_P, store_registers_using_G, 
7414         remote_store_registers): Likewise.
7415         * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7416         m32r_store_register, m32r_store_register): Likewise.
7417         * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7418         * remote-sim.c (gdbsim_fetch_register): Likewise.
7419         (gdbsim_store_register): Likewise.
7420         * rs6000-nat.c (fetch_register, store_register): Likewise.
7421         (rs6000_fetch_inferior_registers): Likewise.
7422         (rs6000_store_inferior_registers): Likewise.
7423         * s390-nat.c (fetch_regs, store_regs): Likewise.
7424         (fetch_fpregs, store_fpregs): Likewise.
7425         (s390_linux_fetch_inferior_registers): Likewise.
7426         (s390_linux_store_inferior_registers): Likewise.
7427         * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7428         (shnbsd_store_inferior_registers): Likewise.
7429         * sol-thread.c (sol_thread_fetch_registers): Likewise.
7430         (sol_thread_store_registers): Likewise.
7431         * sparc-nat.c (fetch_inferior_registers): Likewise.
7432         (store_inferior_registers): Likewise.
7433         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7434         (spu_store_inferior_registers): Likewise.
7435         * target.c (debug_print_register): Likewise.
7436         (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7437         * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7438         (vaxbsd_store_inferior_registers): Likewise.
7439         * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7440         (win32_fetch_inferior_registers): Likewise.
7441         (win32_store_inferior_registers): Likewise.
7442
7443 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7444
7445         * gdbcore.h (struct regcache): Add forward declaration.
7446         (struct core_fns): Add REGCACHE argument to core_read_registers
7447         callback.
7448         * corelow.c (get_core_register_section): Add REGCACHE argument,
7449         use it instead of current_regcache, pass it to core_read_registers
7450         callback.
7451         (get_core_registers): Add current_regcache as parameter to
7452         get_core_register_section calls.
7453
7454         * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7455         use it instead of current_regcache.
7456         * armnbsd-nat.c (fetch_core_registers): Likewise.
7457         (fetch_elfcore_registers): Likewise.
7458         * core-regset.c (fetch_core_registers): Likewise.
7459         * cris-tdep.c (fetch_core_registers): Likewise.
7460         * irix5-nat.c (fetch_core_registers): Likewise.
7461         * m68klinux-nat.c (fetch_core_registers): Likewise.
7462         * mips-linux-tdep.c (fetch_core_registers): Likewise.
7463         * win32-nat.c (fetch_elf_core_registers): Likewise.
7464
7465 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7466
7467         * gregset.h (struct regcache): Add forward declaration.
7468         (supply_gregset): Add REGCACHE parameter, make GREGS const.
7469         (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7470         (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7471         (fill_gregset): Add REGCACHE parameter.
7472         (fill_fpregset): Likewise.
7473         (fill_fpxregset): Likewise.
7474
7475         Update all definitions accordingly:
7476         * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7477         arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7478         i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c, 
7479         m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7480         s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c 
7481         (supply_gregset): Add REGCACHE parameter, use it instead of 
7482         current_regcache.  Make GREGSETP parameter const, adapt casts.
7483         (supply_fpregset): Add REGCACHE parameter, use it instead of
7484         current_regcache.  Make FPREGSETP parameter const, adapt casts.
7485         (fill_gregset): Add REGCACHE parameter, use it instead of
7486         current_regcache.
7487         (fill_fpregset): Likewise.
7488
7489         Update all callers to pass in current_regcache as the new argument:
7490         * core-regset.c: Include "regcache.h".
7491         (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7492         * procfs.c: Include "regcache.h".
7493         (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7494         (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7495         (procfs_do_thread_registers): Likewise.
7496         (procfs_make_note_section): Likewise.
7497         * proc-service.c: Include "regcache.h".
7498         (ps_lgetregs): Update fill_gregset call.
7499         (ps_lsetregs): Update supply_gregset call.
7500         (ps_lgetfpregs): Update fill_fpregset call.
7501         (ps_lsetfpregs): Update supply_fpregset call.
7502         * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7503         supply_fpregset calls.
7504         (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7505         (ps_lgetregs): Update fill_gregset call.
7506         (ps_lsetregs): Update supply_gregset call.
7507         (ps_lgetfpregs): Update fill_fpregset call.
7508         (ps_lsetfpregs): Update supply_fpregset call.
7509         
7510         * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7511         fill_fpregset, and fill_fpxregset calls.
7512         * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7513         (store_regs): Update fill_gregset call.
7514         (fetch_fpregs): Update supply_fpregset call.
7515         (store_fpregs): Update fill_fpregset call.
7516         (fetch_fpxregs): Update supply_fpxregset call.
7517         (store_fpxregs): Update fill_fpxregset call.
7518         * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7519         (store_regs): Update fill_gregset call.
7520         * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7521         (store_regs): Update fill_gregset call.
7522         (fetch_fpregs): Update supply_fpregset call.
7523         (store_fpregs): Update fill_fpregset call.
7524         (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7525         * s390-nat.c (fetch_regs): Update supply_gregset call.
7526         (store_regs): Update fill_gregset call.
7527         (fetch_fpregs): Update supply_fpregset call.
7528         (store_fpregs): Update fill_fpregset call.
7529
7530         * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7531         dependencies.
7532
7533 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7534
7535         * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7536         it instead of current_regcache.
7537         (parse_register_dump): Add REGCACHE parameter, pass it to 
7538         supply_register callback.
7539         (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7540         parse_register_dump.
7541         (monitor_dump_regs): Add REGCACHE parameter, pass it to
7542         parse_register_dump and dumpregs callback.
7543         (monitor_wait): Pass current_regcache to parse_register_dump and
7544         monitor_dump_regs.
7545         (monitor_fetch_register): Pass current_regcache to
7546         monitor_supply_register.
7547         (monitor_fetch_registers): Pass current_regcache to
7548         monitor_dump_regs.
7549         * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7550         supply_register and dumpregs callbacks.
7551         (monitor_supply_register, monitor_dump_reg_block): Update
7552         prototypes.
7553         * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter.  Pass
7554         it to monitor_supply_register.
7555         * dink32-rom.c (dink32_supply_register): Likewise.
7556         * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7557         * m32r-rom.c (m32r_supply_register): Likewise.  Also, use REGCACHE
7558         instead of current_regcache.
7559
7560 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7561
7562         * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7563         Add REGCACHE parameter.  Use it instead of current_regcache.
7564         (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7565         i386nto_supply_gregset and i386nto_supply_fpregset.
7566         (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7567         of current_regcache.
7568
7569         * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7570         nto_supply_ helper functions.
7571         (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7572
7573         * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7574
7575         * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7576         supply_greget, supply_fpregset, supply_altregset, supply_regset,
7577         and regset_fill member function pointers.
7578         (nto_dummy_supply_regset): Adapt prototype.
7579
7580 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7581
7582         * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7583         instead of current_regcache.  Make REGS const.
7584         (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7585         * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7586         prototypes.
7587         * shnbsd-nat.c: Include "regcache.h".
7588         (shnbsd_fetch_inferior_registers): Pass current_regcache to
7589         shnbsd_supply_reg.
7590         (shnbsd_store_inferior_registers): Pass current_regcache to
7591         shnbsd_fill_reg.
7592         * Makefile.in (shbsd-nat.o): Update dependencies.
7593
7594 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7595
7596         * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter.  Use it
7597         instead of current_regcache.
7598         (mips_supply_gregset): Likewise.  Pass REGCACHE to supply_32bit_reg.
7599         Make GREGSETP const, remove superfluous casts.
7600         (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7601         (mips_supply_fpregset): Likewise.  Make FPREGSETP const, remove 
7602         superfluous casts.
7603         (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7604         (supply_64bit_reg): Likewise
7605         (mips64_supply_gregset): Likewise.  Pass REGCACHE to supply_64bit_reg.
7606         Make GREGSETP const, adapt casts accordingly.
7607         (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7608         (mips64_supply_fpregset): Likewise.  Make FPREGSET const, adapt
7609         casts accordingly.
7610         (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7611         (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7612         helper routines.
7613         * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7614         mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7615         mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7616         Adapt prototypes.
7617         * mips-linux-nat.c: Include "regcache.h".
7618         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7619         current_regcache to mips{64}_(supply|fill)_ helper routines.
7620         (mips64_linux_regsets_fetch_registers): Likewise.
7621         (mips64_linux_regsets_store_registers): Likewise.
7622
7623         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7624         REGCACHE argument; replace current_regcache.  Make REGS const.
7625         (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7626         replace current_regcache.
7627         * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7628         mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7629         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7630         mipsnbsd_store_inferior_registers): Pass current_regcache to
7631         mipsnbsd_(supply|fill)_... helper routines.
7632
7633         * Makefile.in (mips-linux-nat.o): Update dependencies.
7634
7635 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7636
7637         * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7638         * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7639         * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7640         i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7641         * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7642         * i386gnu-nat.c (store_fpregs): Likewise.
7643         * i386v4-nat.c (fill_fpregset): Likewise.
7644         * go32-nat.c (store_register, go32_store_registers): Likewise.
7645
7646 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7647
7648         * cris-tdep.c (supply_gregset): Rename to ...
7649         (cris_supply_gregset): ... this.  Add REGCACHE parameter.  Use it
7650         instead of current_regcache.
7651         (fetch_core_registers): Update call.  Pass current_regcache.
7652
7653 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7654
7655         * arnmnbsd-nat.c (supply_gregset): Rename to ...
7656         (arm_supply_gregset): ... this.  Add REGCACHE parameter.
7657         Use it instead of current_regcache.
7658         (supply_fparegset): Rename to ...
7659         (arm_supply_fparegset): ... this.  Add REGCACHE parameter.
7660         Use it instead of current_regcache.
7661         (fetch_regs, fetch_fp_regs): Update calls.  Pass current_regcache.
7662         (fetch_core_registers, fetch_elfcore_registers): Likewise.
7663
7664 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7665
7666         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7667         alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7668         use it instead of current_regcache.
7669         * alpha-tdep.h (struct regcache): Add forward declaration.
7670         (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7671         alpha_fill_fp_regs): Update prototypes.
7672
7673         * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7674         fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7675         * alpha-linux-nat.c: Include "regcache.h".
7676         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7677         current_regcache to alpha_supply/fill_ routines.
7678
7679         * alphabsd-tdep.c: Include "regcache.h".
7680         (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7681         pass it to alpha_supply_ routines.  Make REGS const.
7682         (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7683         pass it to alpha_fill_ routines.
7684         * alphabsd-tdep.h (struct regcache): Add forward declaration.
7685         (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7686         alphabsd_fill_fpreg): Update prototypes.
7687
7688         * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7689         fill_fpregset, alphabsd_fetch_inferior_registers,
7690         alphabsd_store_inferior_registers): Pass current_regcache to
7691         alphabsd_supply/fill_ routines.
7692
7693         * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7694         dependencies.
7695
7696 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7697
7698         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7699         supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7700         instead of current_regcache.
7701         (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7702         REGCACHE parameter, pass it to supply_ routines.
7703         (aix_thread_fetch_registers): Pass current_regcache to
7704         fetch_regs_user_thread and fetch_regs_kernel_thread.
7705
7706         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7707         Add REGCACHE parameter, use it instead of current_regcache.
7708         Call regcache_valid_p instead of register_cached.
7709         (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7710         Also, pass REGCACHE to fill_ routines.
7711         (aix_thread_store_registers): Pass current_regcache to
7712         store_regs_user_thread and store_regs_kernel_thread.
7713
7714 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7715
7716         * m32r-linux-nat.c (supply_gregset): Do not modify contents
7717         pointed to by GREGSETP.
7718
7719 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7720
7721         * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7722         of regcache_raw_read_signed.
7723         (fill_fpregset): Use regcache_raw_collect instead of
7724         regcache_raw_read.
7725
7726 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
7727
7728         * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7729         point arguments, test explicitly for use of the EABI32 ABI
7730         instead of inferring this condition from tests on register
7731         sizes.
7732
7733 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
7734
7735         * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7736         prior to allocating its location.
7737
7738 2007-05-02  Maciej W. Rozycki  <macro@mips.com>
7739
7740         * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7741         based on mips_abi_regsize() whose result is known in advance.
7742         (mips_o64_push_dummy_call): Likewise.
7743
7744 2007-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
7745
7746         * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7747         * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7748
7749         * mips-linux-nat.c: Include "gregset.h".
7750         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7751         from mips-linux-tdep.c.  Change parameter type to gdb_gregset_t.
7752         * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7753         fill_fpregset): Move to mips-linux-nat.c.
7754
7755         * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7756
7757 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
7758
7759         * regcache.c (deprecated_read_register_gen): Remove, inline ...
7760         (read_register): ... here.
7761         (deprecated_write_register_gen): Remove, inline ...
7762         (write_register): ... here.
7763         * regcache.h (deprecated_read_register_gen): Remove prototype.
7764         (deprecated_write_register_gen): Likewise.
7765
7766         * remote-sim.c (gdbsim_store_register): Replace call to
7767         deprecated_read_register_gen with regcache_cooked_read.
7768         * target.c (debug_print_register): Replace calls to
7769         deprecated_read_register_gen and read_register with
7770         regcache_cooked_read.
7771
7772 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
7773
7774         * hpux-thread.c (hpux_thread_store_registers): Use
7775         regcache_raw_collect, not regcache_raw_read.
7776         * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7777         not regcache_raw_write.
7778
7779 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
7780
7781         * gdbarch.sh: Remove deprecated_register_byte.
7782         * gdbarch.c, gdbarch.h: Regenerate.
7783         * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7784         * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7785
7786         * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7787         * regcache.c (regcache_valid_p): Allow to query cooked registers in
7788         read-only register caches.  Make REGCACHE parameter const.
7789         (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7790
7791         * mi/mi-main.c (old_regs): Remove.
7792         (mi_setup_architecture_data, _initialize_mi_main): Remove.
7793         (register_changed_p): Reimplement to compare two register caches.
7794         (mi_cmd_data_list_changed_registers): Update caller.
7795         * mi/mi-main.h (mi_setup_architecture_data): Remove.
7796         * mi/mi-interp.c (mi_interpreter_init): Do not call
7797         mi_setup_architecture_data.
7798
7799 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
7800
7801         * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7802         inline definition at the places the macros are used.
7803         * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7804
7805 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
7806
7807         * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7808         "gdb_string.h".
7809         (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7810         (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7811         (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7812         (rs6000_aix_regset_from_core_section): New function.
7813         (rs6000_aix_init_osabi): Register it.
7814         (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7815         sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000. 
7816         * rs6000-nat.c (CoreRegs): Do not define type.
7817         (fetch_core_registers, rs6000_core_fns): Remove.
7818         (_initialize_core_rs6000): Do not register it.  Rename to ...
7819         (_initialize_rs6000_nat): ... this.
7820         * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7821
7822 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
7823
7824         * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7825         (dwarf2_read_address): Sign extend return address as required by
7826         target architecture.
7827
7828 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
7829
7830         * solib-frv.c (lm_base): Bail out if the main executable has
7831         not been relocated.
7832
7833 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
7834
7835         * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7836         of FPCR register in fpregset.
7837
7838 2007-04-27  Maciej W. Rozycki  <macro@mips.com>
7839
7840         * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7841         (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7842
7843 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
7844
7845         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7846         * rs6000-nat.c (rs6000_wait): New function.
7847         (_initialize_core_rs6000): Install it as to_wait target method.
7848         * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7849
7850 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
7851
7852         * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7853         * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7854         * rs6000-nat.c (super_create_inferior): New variable.
7855         (rs6000_create_inferior): Make static.  Adapt argument list.  Call
7856         original version of create_inferior via super_create_inferior.
7857         (_initialize_core_rs6000): Install to_create_inferior target method.
7858
7859 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
7860
7861         * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7862         (aix_thread_xfer_partial): ... this.
7863         (init_aix_thread_ops): Install to_xfer_partial instead
7864         of deprecated_xfer_memory target method.
7865
7866         * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7867         and inftarg.o, add inf-ptrace.o.
7868         * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7869         CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7870         * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7871         (fetch_inferior_registers): Rename to ...
7872         (rs6000_fetch_inferior_registers): ... this.  Make static.
7873         (store_inferior_registers): Rename to ...
7874         (rs6000_store_inferior_registers): ... this.  Make static.
7875         (read_word, child_xfer_memory): Remove.
7876         (rs6000_xfer_partial): New function.
7877         (kernel_u_size): Remove.
7878         (_initialize_core_rs6000): Add inf_ptrace-based target.
7879         * Makefile.in (rs6000-nat.o): Update dependencies.
7880
7881 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
7882
7883         * inf-ptrace.c: Include "gdb_stdint.h".
7884         (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as 
7885         intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7886         (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7887         before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7888         (inf_ptrace_store_register): Likewise.
7889         * Makefile.in (inf-ptrace.o): Update dependencies.
7890
7891 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
7892
7893         * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7894         * configure.tgt (rs6000-*-*): Likewise.
7895         * config/rs6000/aix4.mh: Delete file.
7896         * config/rs6000/aix4.mt: Delete file.
7897         * config/rs6000/rs6000.mh: Delete file.
7898         * config/rs6000/rs6000.mt: Delete file.
7899
7900         * config/powerpc/nm-aix.h: Delete file.
7901         * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7902
7903 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
7904
7905         * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7906         Remove obsolete part of comment.
7907         (store_regs_user_thread): Use uint32_t temporaries when calling
7908         fill_sprs32.
7909         (store_regs_kernel_thread): Likewise.  Add assertion to verify
7910         correct size of struct ptsprs members.
7911         (aix_thread_xfer_memory): Fix type of myaddr.
7912         (aix_thread_extra_thread_info): Fix compiler warning.
7913         * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7914         (fetch_register, store_register): Adapt callers.
7915
7916 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
7917
7918         * vec.h (vec_free): Rename to vec_free_.  Adapt users.
7919
7920 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
7921
7922         * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7923         and "regcache.h".
7924         (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7925         (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7926         (alpha_linux_regset_from_core_section): New function.
7927         (alpha_linux_init_abi): Install it.
7928         * alpha-linux-nat.c: Do not include "gdbcore.h".  Include
7929         "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7930         <sys/procfs.h>, and "gregset.h".
7931         (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7932         Move from config/alpha/nm-linux.h.
7933         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7934         from alpha-nat.c.
7935         (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7936         * alpha-nat.c: Remove #ifdef __linux__ section.
7937         (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7938         (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7939         (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7940         (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7941         * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7942         (NATDEPFILES): Remove alpha-nat.o.
7943         * config/alpha/nm-linux.h: Delete file.
7944         * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7945         * Makefile.in (alpha-linux-nat.o): Update dependencies.
7946         (alpha-linux-tdep.o): Likewise.
7947
7948 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
7949
7950         * mips-linux-nat.c: No longer include "gdbcore.h".
7951         (mips_linux_register_addr): Move from mips-linux-tdep.c.
7952         (mips64_linux_register_addr): Likewise.
7953         (mips_linux_register_u_offset): Call mips_linux_register_addr or
7954         mips64_linux_register_addr instead of register_addr.
7955         * mips-linux-tdep.c (mips_linux_register_addr,
7956         mips64_linux_register_addr): Move to mips-linux-nat.c.
7957         (register_addr): Remove.
7958         (register_addr_data, init_register_addr_data): Remove.
7959         (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7960         (set_mips_linux_register_addr): Remove.
7961         (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7962         * Makefile.in (mips-linux-nat.o): Update dependencies.
7963
7964 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
7965
7966         * linux-nat.c (linux_register_u_offset): Remove.
7967         (linux_target_install_ops): New function.
7968         (linux_target): Use it.
7969         (linux_trad_target): New function.
7970         * linux-nat.h (linux_trad_target): Declare.
7971
7972         * alpha-linux-nat.c: Include "gdbcore.h".
7973         (alpha_linux_register_u_offset): New function.
7974         (_initialize_alpha_linux_nat): Use linux_trad_target.
7975
7976         * mips-linux-nat.c: Include "gdbcore.h".
7977         (mips_linux_register_u_offset): New function.
7978         (_initialize_mips_linux_nat): Use linux_trad_target.
7979
7980         * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7981         * config/arm/nm-linux.h: Delete file.
7982
7983         * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7984         * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7985
7986         * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7987         * config/ia64/nm-linux.h: Delete file.
7988
7989         * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7990         * config/m32r/nm-linux.h: Delete file.
7991
7992         * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7993         * config/m68k/nm-linux.h: Delete file.
7994
7995         * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7996         * config/pa/nm-linux.h: Delete file.
7997
7998         * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7999         * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
8000         * config/powerpc/nm-linux.h: Delete file.
8001
8002         * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
8003         * config/s390/nm-linux.h: Delete file.
8004
8005         * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8006         * config/sparc/linux64.mh (NAT_FILE): Likewise.
8007         * config/sparc/nm-linux.h: Delete file.
8008
8009         * Makefile.in (alpha-linux-nat.o): Update dependencies.
8010         (mips-linux-nat.o): Likewise.
8011
8012 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
8013
8014         * core-aout.c: Delete file.
8015         * Makefile.in (ALLDEPFILES): Remove core-aout.c.
8016         (core-aout.o): Delete rule.
8017         * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
8018
8019         * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
8020
8021         * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
8022         * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
8023         KERNEL_U_ADDR): Remove.
8024
8025         * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
8026         (cannot_fetch_register, cannot_store_register): Remove.
8027         (fetch_register): Inline cannot_fetch_register and register_addr.
8028         (store_register): Inline cannot_store_register and register_addr.
8029         * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
8030         * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8031         REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
8032         Remove.
8033
8034         * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
8035         (fetch_register): Inline register_addr.
8036         (store_register): Inline register_addr.
8037         * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8038         * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8039         U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8040
8041         * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8042         * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8043         REGISTER_U_ADDR): Remove.
8044
8045         * hppa-linux-nat.c (register_addr): Rename to ...
8046         (hppa_linux_register_addr): ... this.  Make static.
8047         (fetch_register, store_register): Adapt callers.
8048         * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8049
8050         * ppc-linux-nat.c (kernel_u_size): Remove.
8051         * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8052
8053         * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8054         * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8055         (NAT_FILE): Remove.
8056         * config/vax/nm-vax.h: Delete file.
8057
8058 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
8059
8060         * MAINTAINERS (Write After Approval): Add myself.
8061
8062 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
8063
8064         * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8065         * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8066         (m68k_linux_sigcontext_reg_offset): Fix typo.
8067         (target_is_uclinux): New.
8068         (m68k_linux_inferior_created): New.
8069         (m68k_linux_get_sigtramp_info):  Check for uClinux or
8070         normal Linux.  Use m68k_uclinux_sigcontext_reg_offset for
8071         uClinux.
8072         (_initialize_m68k_linux_tdep): Register
8073         m68k_linux_inferior_created.
8074
8075 2007-04-19  Pedro Alves  <pedro_alves@portugalmail.pt>
8076
8077         * win32-nat.c (win32_detach): Remove delete_command call.
8078         Resume inferior with win32_resume instead of win32_continue.
8079
8080 2007-04-19  Jerome Guitton  <guitton@adacore.com>
8081
8082         * ser-mingw.c (fd_is_file): New function.
8083         (file_select_thread): New function.
8084         (ser_console_wait_handle): Add special handling for files.
8085
8086 2007-04-18  Denis Pilat  <denis.pilat@st.com>
8087
8088         * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8089         when missing from DW_TAG_subrange_type.  Remove the handling of null
8090         return from die_type.
8091
8092 2007-04-18  Maciej W. Rozycki  <macro@mips.com>
8093
8094         * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8095         change to rearrange some brackets.
8096         (mips_n32n64_push_dummy_call): Likewise.
8097         (mips_o32_push_dummy_call): Likewise.
8098         (mips_o64_push_dummy_call): Likewise.
8099
8100 2007-04-18  Denis Pilat  <denis.pilat@st.com>
8101
8102         * infcmd.c (post_create_inferior): Start with a call to 
8103         target_terminal_ours.
8104
8105 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
8106
8107         * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8108         brackets.
8109         (mips_n32n64_push_dummy_call): Likewise.  Reformat some
8110         expressions.
8111         (mips_o32_push_dummy_call): Likewise.
8112         (mips_o64_push_dummy_call): Likewise.
8113
8114 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
8115
8116         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8117         comment.
8118
8119 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
8120
8121         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8122         comment.
8123         (mips_o32_push_dummy_call): Likewise.
8124
8125 2007-04-17  Andreas Schwab  <schwab@suse.de>
8126
8127         * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8128         sal to be bigger than the end of the function.
8129
8130 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
8131             Nigel Stephens  <nigel@mips.com>
8132
8133         * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8134         argument alignment requirements when calculating stack space
8135         required.  When aligning an arg register to eight bytes
8136         boundary, align stack_offset too.  Write floating-point
8137         arguments to the appropriate integer register if need go there.
8138         (mips_o64_push_dummy_call): Likewise.
8139
8140 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
8141
8142         * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8143         "sig" arguments, add "regcache" argument.
8144         * gdbarch.c, gdbarch.h: Regenerate.
8145
8146         * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8147         (handle_inferior_event): Call remove_single_step_breakpoints directly
8148         instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8149
8150         * alpha-tdep.c (alpha_software_single_step): Update argument list.
8151         Remove handling of !insert_breakpoints_p case.
8152         * arm-tdep.c (arm_software_single_step): Likewise.
8153         * cris-tdep.c (cris_software_single_step): Likewise.
8154         * mips-tdep.c (mips_software_single_step): Likewise.
8155         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8156         * sparc-tdep.c (sparc_software_single_step): Likewise.
8157         * spu-tdep.c (spu_software_single_step): Likewise.
8158
8159         * alpha-tdep.h (alpha_software_single_step): Update prototype.
8160         * mips-tdep.h (mips_software_single_step): Likewise.
8161         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8162         * sparc-tdep.h (sparc_software_single_step): Likewise.
8163
8164 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
8165
8166         * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8167         when removing single-step breakpoints.
8168
8169 2007-04-14  Vladimir Prus  <vladimir@codesourcery.com>
8170
8171         * varobj.h (varobj_set_frozen): New
8172         (varobj_get_frozen): New.
8173         (varobj_update): New parameter explicit.
8174         * varobj.c (struct varobj): New fields frozen
8175         and not_fetched.
8176         (varobj_set_frozen, varobj_get_frozen): New.
8177         (install_new_value): Don't fetch values for 
8178         frozen variable object, or children thereof.  Allow
8179         a frozen variable object to have non-fetched value.
8180         (varobj_update): Allow updating child variables.
8181         Don't traverse frozen children.
8182         (new_variable): Initialize the frozen field.
8183         (c_value_of_variable): Return NULL for frozen
8184         variable without any value yet. 
8185         * mi/mi-cmd-var.c (varobj_update_one): New parameter
8186         'explicit'.
8187         (mi_cmd_var_create): Output the 'frozen' field,
8188         as soon as testsuite is adjusted to expect that field.
8189         (mi_cmd_var_set_frozen): New.
8190         (mi_cmd_var_update): Pass the 'explicit' parameter to
8191         varobj_update_one.
8192         * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8193         * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8194         
8195 2007-04-13  Paul Brook  <paul@codesourcery.com>
8196
8197         * target-descriptions.c (tdesc_named_type): Add ieee_single and
8198         ieee_double.
8199         * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8200
8201 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
8202
8203         * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8204         remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8205         scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8206         ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8207         * Makefile.in: Remove references to deleted files.
8208         * README: Do not mention deleted ROM monitor interfaces.
8209         * defs.h (enum language): Delete language_scm.
8210         * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8211         (dump_subexp_body_standard): Likewise.
8212         * parse.c (operator_length_standard): Likewise.
8213         * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8214         * remote-mips.c: Do not include remote-utils.h.
8215         * remote-sim.c: Likewise.  Use remote_debug instead of sr_get_debug
8216         throughout.
8217         * value.c: Do not include scm-lang.h.
8218         (unpack_long): Delete scm_unpack call.
8219         * config/h8300/h8300.mt, config/mips/embed.mt,
8220         config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8221         config/sh/embed.mt, config/sh/linux.mt: Remove references to
8222         deleted files.
8223         * NEWS: Mention removed files.
8224
8225 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
8226
8227         * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8228         * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8229
8230 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
8231
8232         * NEWS: Mention removal of HP aCC support.
8233
8234 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
8235
8236         * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8237         first entry for static executables.
8238         (breakpoint_addr): Delete unused variable.
8239         (elf_locate_base): Search for _r_debug in static executables.
8240         (enable_break): Do not set breakpoint_addr.  Scan solib_break_names
8241         also.
8242
8243 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
8244
8245         * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8246         (bpstat_what, print_one_breakpoint, allocate_bp_location)
8247         (mention): Remove bp_through_sigtramp support.
8248         * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8249
8250 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
8251
8252         * breakpoint.c (bpstat_what): Give step-resume higher priority than
8253         shlib events.
8254
8255 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
8256
8257         * infrun.c: Doc fixes.
8258         (handle_inferior_event): Clarify debug message.
8259         (insert_step_resume_breakpoint_at_sal): Print a debug message.
8260
8261 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
8262
8263         * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8264
8265 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
8266
8267         * config/m68k/tm-monitor.h: Delete file.
8268         * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8269         * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8270         call moved to ...
8271         * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8272         * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8273
8274 2007-04-12  Luis Machado  <luisgpm@br.ibm.com>
8275
8276         * gdbarch.sh (software_single_step): Change the return type
8277         from void to int and reformatted some comments to <= 80
8278         columns.
8279         * gdbarch.c, gdbarch.h: Regenerated.
8280         * alpha-tdep.c (alpha_software_single_step): Likewise.
8281         * alpha-tdep.h (alpha_software_single_step): Likewise.
8282         * arm-tdep.c (arm_software_single_step): Likewise.
8283         * cris-tdep.c (cris_software_single_step): Likewise.
8284         * mips-tdep.c (mips_software_single_step): Likewise.
8285         * mips-tdep.h (mips_software_single_step): Likewise.
8286         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8287         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8288         * sparc-tdep.c (sparc_software_single_step): Likewise.
8289         * sparc-tdep.h (sparc_software_single_step): Likewise.
8290         * spu-tdep.c (spu_software_single_step): Likewise.
8291         * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8292         and act accordingly.
8293
8294 2007-04-11  Steve Ellcey  <sje@cup.hp.com>
8295
8296         * configure.ac (build_warnings): Add -Wno-char-subscripts.
8297         * configure: Regenerate.
8298         * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8299
8300 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8301
8302         * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8303
8304 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8305
8306         * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8307         macros.
8308         (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8309         distinct on the TYPE_STUB_SUPPORTED debug targets.
8310         * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8311
8312 2007-04-11  Joel Brobecker  <brobecker@adacore.com>
8313
8314         * sparc-tdep.c (X_RS2): New macro.
8315         (sparc_skip_stack_check): New function.
8316         (sparc_analyze_prologue): Adjust PC past stack probing
8317         sequence if necessary.
8318
8319 2007-04-10  Andreas Schwab  <schwab@suse.de>
8320
8321         * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8322         register.
8323
8324 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
8325
8326         * breakpoint.c (gdb_breakpoint_query): Really return an
8327         enum gdb_rc.
8328         (gdb_breakpoint): Likewise.
8329         * thread.c (gdb_list_thread_ids): Likewise.
8330         (gdb_thread_select): Likewise.
8331         * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8332         (mi_cmd_thread_list_ids): Remove bogus initialization.
8333
8334 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
8335
8336         * Makefile.in (SFILES): Remove hpacc-abi.c.
8337         (COMMON_OBS): Remove hpacc-abi.o.
8338         (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8339         (hpacc-abi.o, hpread.o): Delete rules.
8340         * somread.c: Delete extern declarations from hpread.c.
8341         (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8342         (som_symfile_finish): Do not call hpread_symfile_finish.
8343         (som_symfile_init): Do not call hpread_symfile_init.
8344         * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8345         * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8346         * hpacc-abi.c, hpread.c: Deleted.
8347
8348 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
8349
8350         * solib-svr4.c (enable_break): Simplify return value.
8351         (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8352
8353 2007-04-10  Andreas Schwab  <schwab@suse.de>
8354
8355         * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8356         l_ld_size, l_next_size, l_prev_size, l_name_size.
8357
8358         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8359         to extract addresses from link map.
8360         (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8361         (LM_NEXT): Likewise.
8362         (LM_NAME): Likewise.
8363         (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8364         (elf_locate_base): Likewise.
8365         (open_symbol_file_object): Likewise.
8366         (svr4_fetch_objfile_link_map): Likewise.
8367         (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8368         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8369         l_ld_size.
8370         (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8371         (svr4_lp64_fetch_link_map_offsets): Likewise.
8372
8373         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8374         removed members.  Set l_ld_offset to -1 if not present.
8375
8376 2007-04-08  Vladimir Prus  <vladimir@codesourcery.com>
8377         
8378         Pass stderr of program run with "target remote |"
8379         via gdb_stderr.
8380         * serial.c (serial_open): Set error_fd to -1.
8381         * serial.h (struct serial): New field error_fd.
8382         (struct serial_opts): New field avail.
8383         * ser-pipe.c (pipe_open): Create another pair
8384         of sockets.  Pass stderr to gdb.
8385         * ser-mingw.c (pipe_windows_open): Pass
8386         PEX_STDERR_TO_PIPE to pex_run.  Initialize
8387         sd->error_fd.
8388         (pipe_avail): New.
8389         (_initialize_ser_windows): Hook pipe_avail.
8390         * ser-base.c (generic_readchar): Check if there's
8391         anything in stderr channel and route that to gdb_stderr.
8392
8393 2007-04-03  Pedro Alves  <pedro_alves@portugalmail.pt>
8394
8395         * dbxread.c (read_ofile_symtab): Move current_objfile
8396         clearing to after end_stabs.
8397
8398 2007-04-01  Andreas Schwab  <schwab@suse.de>
8399
8400         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8401         gdbarch instead of current_gdbarch.
8402
8403 2007-04-01  Vladimir Prus  <vladimir@codesourcery.com>
8404
8405         * varobj.c (varobj_create): Keep varobj value
8406         NULL when evaluating the type.
8407         
8408 2007-03-31  Pedro Alves  <pedro_alves@portugalmail.pt>
8409
8410         * NEWS: Mention new Windows CE support.
8411
8412 2007-03-30  Pedro Alves  <pedro_alves@portugalmail.pt>
8413
8414         * configure.tgt: Move mips*-*-pe and sh*-*-pe to 
8415         the obsoletion stanza.
8416         * NEWS: Mention deleted targets.
8417
8418         * config/sh/tm-wince.h: Remove.
8419         * config/sh/wince.mt: Remove.
8420         * config/mips/tm-wince.h: Remove.
8421         * config/mips/wince.mt: Remove.
8422
8423         * wince.c: Remove.
8424         * wince-stub.c: Remove.
8425         * wince-stub.h: Remove.
8426         * Makefile.in (wince.o): Remove rule.
8427         (wince-stub.o): Likewise.
8428
8429         * mips-tdep.c (mips_next_pc): Make static.
8430         * mips-tdep.h (mips_next_pc): Remove declaration.
8431         * arm-tdep.c (arm_pc_is_thumb): Make static.
8432         (thumb_get_next_pc): Likewise.
8433         (arm_get_next_pc): Likewise.
8434         * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8435         (arm_pc_is_thumb): Likewise.
8436         (thumb_get_next_pc): Likewise.
8437         (arm_get_next_pc): Likewise.
8438
8439 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
8440
8441         * MAINTAINERS: Remove d10v entry.
8442         * Makefile.in (SFILES): Remove dwarfread.c.
8443         (COMMON_OBS): Remove dwarfread.o.
8444         (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8445         (remote-est.o, rom68k-rom.o): Delete.
8446         * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8447         target est, target rom68k, and DWARF 1.
8448         * configure.tgt: Mark d10v as removed.
8449         * dwarf2read.c: Doc update.
8450         * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8451         and lnsize.
8452         (elf_locate_sections): Do not set them.
8453         (elf_symfile_read): Do not call dwarf_build_psymtabs.
8454         * symfile.h (dwarf_build_psymtabs): Delete prototype.
8455         * config/m68k/monitor.mt (TDEPFILES): Prune.
8456         * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8457         remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8458
8459 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
8460
8461         * doublest.c (convert_floatformat_to_doublest): Use
8462         floatformat_classify.
8463         (floatformat_is_nan): Rename to...
8464         (floatformat_classify): ...this.  Return more information.
8465         * doublest.h (enum float_kind): New.
8466         (floatformat_is_nan): Replace prototype...
8467         (floatformat_classify): ...with this one.
8468         * valprint.c (print_floating): Use floatformat_classify.  Handle
8469         infinity.
8470
8471 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
8472
8473         * README: Mention ISO C library requirement.
8474
8475 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
8476
8477         * Makefile.in (SFILES): Remove nlmread.c.
8478         (COMMON_OBS): Remove nlmread.o.
8479         (nlmread.o): Delete rule.
8480         * README: Delete reference to remote-st.c.
8481         * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8482         * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8483         GDB_OSABI_LYNXOS.
8484         * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8485         (_initialize_i386_tdep): Do not reference them.
8486         * nlmread.c: Delete file.
8487         * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8488         * target.c: Doc update.
8489         * thread.c: Delete commented include.
8490         * config/alpha/tm-alpha.h: Doc update.
8491
8492 2007-03-30  Chris Dearman  <chris@mips.com>
8493
8494         * utils.c (string_to_core_addr): Comment typo.
8495
8496 2007-03-30  Chris Dearman  <chris@mips.com>
8497
8498         * mips-tdep.c: Comment typo.
8499
8500 2007-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
8501
8502         * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8503         * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8504         * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8505         * config/powerpc/nm-ppc64-linux.h: Remove file.
8506         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8507         * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8508         (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8509         * infptrace.c (call_ptrace): Likewise.
8510         * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8511         (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8512         and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8513         (store_register): Likewise.
8514
8515 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
8516
8517         * Makefile.in (varobj.o): Add missing dependency.
8518
8519 2007-03-29  Michael Snyder  <msnyder@access-company.com>
8520
8521         * MAINTAINERS: Update my email address.
8522
8523 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
8524
8525         Add support for exception handling with multiple versions of
8526         the Ada runtime:
8527         * ada-lang.c: Update general comments on how Ada exception catchpoints
8528         are implemented.
8529         (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8530         (__gnat_raise_nodefer_with_msg): Delete.
8531         (ada_unhandled_exception_name_addr_ftype): New type.
8532         (exception_support_info): New type.
8533         (ada_unhandled_exception_name_addr): Add forward declaration.
8534         (ada_unhandled_exception_name_addr_from_raise): Likewise.
8535         (default_exception_support_info): New constant.
8536         (exception_support_info_fallback): Likewise.
8537         (exception_info): New global variable.
8538         (ada_exception_support_info_sniffer): New function.
8539         (ada_executable_changed_observer): Likewise.
8540         (ada_unhandled_exception_name_addr_from_raise): Renamed from
8541         ada_unhandled_exception_name_addr.
8542         (ada_unhandled_exception_name_addr): Reimplement to match the
8543         latest Ada runtime implementation.
8544         (error_breakpoint_runtime_sym_not_found): Delete.
8545         (ada_exception_sym_name): Get the exception sym name from
8546         exception_info rather than hardcoding it.
8547         (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8548         Update error handling.
8549         * Makefile.in (ada-lang.o): Add dependency on observer.h.
8550
8551 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
8552
8553         * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8554         (remote-st.o, uw-thread.o): Delete.
8555         (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8556         * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8557         i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8558         i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8559         i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8560         i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8561         rs6000-*-lynxos* to an obsoletion stanza.
8562         * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8563         i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8564         and rs6000-*-lynxos* to an obsoletion stanza.  Do not mention
8565         i[34567]86-*-netware*.
8566         * NEWS: Mention deleted targets.
8567
8568         * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8569         uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8570         config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8571         config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8572         config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8573         config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8574         config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8575         config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8576         config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8577         config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8578         config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8579         config/rs6000/tm-rs6000ly.h: Delete files.
8580
8581 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
8582
8583         * defs.h (deprecated_registers_changed_hook): Delete declaration.
8584         * interps.c (clear_interpreter_hooks): Do not clear
8585         deprecated_registers_changed_hook.
8586         * regcache.c (registers_changed): Do not call it.
8587         * top.c (deprecated_registers_changed_hook): Do not define it.
8588         * mi/mi-interp.c (mi_command_loop): Do not clear it.
8589         * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8590         (tui_remove_hooks): Do not remove it.
8591         (tui_selected_frame_level_changed_hook): Check for negative level.
8592         Use get_selected_frame.
8593         (tui_registers_changed_hook): Deleted.
8594
8595 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
8596
8597         * stabsread.c (add_undefined_type): Add extra parameter.
8598         Now handles nameless types separately.
8599         (struct nat): New type.
8600         (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8601         New static variables.
8602         (read_type): Update calls to add_undefined_type.
8603         (add_undefined_type_noname): New function.
8604         (add_undefined_type_1): Renames from add_undefined_type.
8605         (cleanup_undefined_types_noname): New function.
8606         (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8607         (cleanup_undefined_types): New handles nameless types separately.
8608         (_initialize_stabsread): Initialize our new static constants.
8609
8610 2007-03-29  Denis Pilat  <denis.pilat@st.com>
8611
8612         * configure.ac: Test for signal.h.
8613         * configure, config.in: Regenerate.
8614
8615 2007-03-29  Denis Pilat  <denis.pilat@st.com>
8616
8617         * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8618         * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8619
8620 2007-03-29  Pedro Alves  <pedro_alves@portugalmail.pt>
8621
8622         * arm-wince-tdep.c: New.
8623         * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8624         (MT_CFLAGS): Delete.
8625         (TM_CLIBS): Delete.
8626         (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8627         solib-legacy.o, solib-svr4.o, and remove wince.o.
8628         * configure.tgt (arm*-*-mingw32ce*): Add.
8629         * signals/signals.c [HAVE_SIGNAL_H]: Check.
8630         (do_target_signal_to_host): Silence 'not used' warning.
8631         * config/arm/tm-wince.h: Remove.
8632
8633 2007-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
8634
8635         * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8636         * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8637
8638         * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8639         * config/ia64/tm-linux.h: Remove file.
8640         * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8641         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8642         legacy_pc_in_sigtramp.
8643         (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8644         * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8645         Remove func_name argument.
8646         (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8647
8648         * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8649         * target.c (update_current_target): Add to_have_steppable_watchpoint.
8650         * target.h (struct target_ops):  Add to_have_steppable_watchpoint.
8651         (HAVE_STEPPABLE_WATCHPOINT): Define.
8652
8653         * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8654         * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8655         CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8656         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8657         STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8658         target_insert_watchpoint, target_remove_watchpoint): Remove.
8659         (FETCH_INFERIOR_REGISTERS): Define.
8660         * ia64-linux-nat.c (ia64_register_addr): Make static.
8661         (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8662         (ia64_linux_insert_watchpoint): Make static.  Remove ptid_p argument.
8663         (ia64_linux_remove_watchpoint): Likewise.  Add type argument.
8664         (ia64_linux_stopped_data_address): Make static.  Add target_ops.
8665         (ia64_linux_stopped_by_watchpoint): Make static.
8666         (ia64_linux_can_use_hw_breakpoint): New function.
8667         (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8668         (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8669         (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8670
8671 2007-03-28  Pedro Alves  <pedro_alves@portugalmail.pt>
8672
8673         * linespec.c: Include language.h.
8674         (find_methods): Add language parameter.  Call
8675         lookup_symbol_in_language.  Pass language down.
8676         (add_matching_methods): Likewise.  Call
8677         lookup_symbol_in_language.
8678         (add_constructors): Likewise.
8679         (find_method): Pass sym_class to collect_methods.
8680         (collect_methods): Add sym_class parameter.  Pass language
8681         down.
8682         * symtab.c (lookup_symbol): Rename to ...
8683         (lookup_symbol_in_language): ... this.  Add language
8684         parameter.  Use passed language instead of current_language.
8685         (lookup_symbol): New as wrapper around
8686         lookup_symbol_in_language.
8687         (lookup_symbol_aux): Add language parameter.  Use passed
8688         language instead of current_language.
8689         (search_symbols): Indent.
8690         * symtab.h (enum language): Forward declare.
8691         (lookup_symbol_in_language): Declare.
8692         (lookup_symbol): Update description.
8693         * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8694         * ada-lang.c (restore_language): Remove.
8695         (lookup_symbol_in_language): Remove.
8696
8697 2007-03-27  Pedro Alves  <pedro_alves@portugalmail.pt>
8698
8699         * breakpoint.c (bpstat_num): Add int *num parameter.
8700         * breakpoint.h (bpstat_num): Likewise.
8701         * infcmd.c (continue_command): Adjust to new bpstat_num
8702         interface.
8703         (program_info): Likewise.
8704
8705 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
8706
8707         * config/sh/tm-sh.h: Remove file.
8708         * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8709         * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8710         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8711         * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8712
8713 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
8714
8715         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8716         DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8717         * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8718         DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8719         * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8720         sequence if target_shortname is "remote".
8721
8722 2007-03-27  Anton Blanchard  <anton@samba.org>
8723
8724         * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8725         instead of wordsize when looking for the LR in a stack frame.
8726
8727 2007-03-27  Andreas Schwab  <schwab@suse.de>
8728             Daniel Jacobowitz  <dan@codesourcery.com>
8729
8730         * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8731         (dwarf2_frame_adjust_regnum): ...this.  Make static.  Add eh_frame_p
8732         argument.  Update all callers.
8733         (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8734         (dwarf2_frame_set_eh_frame_regnum): Rename to...
8735         (dwarf2_frame_set_adjust_regnum): ...this.  Update argument type.
8736         * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8737         (dwarf2_frame_set_adjust_regnum): ...this.
8738         (dwarf2_frame_eh_frame_regnum): Delete prototype.
8739         * rs6000-tdep.c: Include "dwarf2-frame.h".
8740         (rs6000_adjust_frame_regnum): Define.
8741         (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8742         Register rs6000_adjust_frame_regnum.
8743
8744         * Makefile.in (rs6000-tdep.o): Update dependencies.
8745
8746 2007-03-27  Brooks Moses  <brooks.moses@codesourcery.com>
8747
8748         * Makefile.in: Add support for a "pdf" target.
8749
8750 2007-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
8751
8752         * amd64-tdep.c (amd64_init_frame_cache): New function.
8753         (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8754
8755 2007-03-26  Nigel Stephens  <nigel@mips.com>
8756             Maciej W. Rozycki  <macro@mips.com>
8757
8758         * ui-out.c (ui_out_field_core_addr): Truncate address to
8759         TARGET_ADDR_BIT size before printing.
8760
8761 2007-03-22  Nigel Stephens  <nigel@mips.com>
8762             Maciej W. Rozycki  <macro@mips.com>
8763
8764         * remote-mips.c (mips_xfer_memory): Update prototype.
8765
8766 2007-03-22  Joel Brobecker  <brobecker@adacore.com>
8767
8768         * symfile.h: #include "symtab.h"
8769
8770 2007-03-22  Denis Pilat  <denis.pilat@st.com>
8771
8772         * utils.c (pagination_on_command, pagination_off_command):
8773         Remove useless prototypes.
8774
8775 2007-03-21  Pierre Muller  <muller@ics.u-strasbg.fr>
8776
8777         Fix PR pascal/2232.
8778         * p-valprint.c (pascal_object_print_value): Use type_name_no_tag 
8779         instead of TYPE_NAME for object base class name.
8780
8781
8782 2007-03-19  Kevin Buettner  <kevinb@redhat.com>
8783
8784         * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8785         Specify frame type in calls to frame_func_unwind().
8786
8787 2007-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
8788
8789         * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8790         (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8791         (refine_prologue_limit): Delete.
8792         (skip_prologue): Don't call it.  Use extract_unsigned_integer.
8793         Assume lim_pc is set.  Correct check for incomplete prologues.
8794         Do not skip clobbers of the frame pointer.
8795         * symtab.c (skip_prologue_using_sal): Fail if there is only one
8796         sal.
8797
8798 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
8799
8800         * frame.c (frame_pop): Check to see whether there's a frame to
8801         which we can pop first.
8802
8803 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
8804
8805         * MAINTAINERS (Write After Approval): Add myself.
8806
8807 2007-03-09  Markus Deuling  <deuling@de.ibm.com>
8808
8809         * infrun.c (breakpoints_failed): Remove unnecessary variable.
8810         (handle_inferior_event): Remove unnecessary braces.
8811         * breakpoint.c (bpstat_what): Remove wrong comment.
8812
8813 2007-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
8814
8815         * spu-tdep.c (spu_in_function_epilogue_p): New function.
8816         (spu_gdbarch_init): Install it.
8817
8818 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
8819
8820         * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8821         object types, not 0.
8822
8823 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
8824
8825         * spu-tdep.c (spu_frame_align): New function.
8826         (spu_gdbarch_init): Install it.  Set call dummy location to ON_STACK.
8827
8828 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
8829
8830         * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8831         (spu_software_single_step): Likewise.
8832         (spu_read_pc, spu_write_pc): New functions.
8833         (spu_gdbarch_init): Install them.
8834
8835 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
8836
8837         * cli/cli-dump.c (struct callback_data): load_offset needs to 
8838         have signed long type.
8839
8840 2007-03-07  Joel Brobecker  <brobecker@adacore.com>
8841
8842         * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8843         Revert the previous change that had some unexpected side-effects
8844         on mips32.
8845         (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8846         function to get the address of the calling instruction.
8847
8848 2007-03-07  Denis Pilat  <denis.pilat@st.com>
8849
8850         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8851         get_selected_frame by deprecated_safe_get_selected_frame.
8852
8853 2007-03-02  Mark Kettenis  <kettenis@gnu.org>
8854
8855         * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8856         "gdb_string.h".  Don't include "nbsd-tdep.h".
8857         (SIZEOF_STRUCT_REG): Remove.
8858         (SHNBSD_SIZEOF_GREGS): New.
8859         (shnbsd_supply_gregset, shnbsd_collect_gregset)
8860         (shnbsd_regset_from_core_section): New functions.
8861         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8862         (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8863         shnbsd_supply_gregset, shnbsd_collect_gregset.
8864         (shnbsd_gregset): New variable.
8865         (shnbsd_init_abi): Set regset_from_core_section.
8866         (GDB_OSABI_NETBSD_CORE): New define.
8867         (shnbsd_core_osabi_sniffer): New function.
8868         (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8869         * Makefile.in (shnbsd-tdep.o): Update dependencies.
8870         * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8871         nbsd-tdep.o.
8872         * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8873
8874 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
8875
8876         * gdbtypes.c (replace_type): Fix typo that caused us to not update
8877         length of the types referenced by the new type CV ring.
8878
8879 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
8880
8881         * frame.c (frame_pop, frame_observer_target_changed): Call
8882         reinit_frame_cache.
8883         (flush_cached_frames): Rename to reinit_frame_cache and delete
8884         old implementation.
8885         * frame.h (flush_cached_frames): Delete prototype and update comment.
8886
8887         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8888         reinit_frame_cache instead of flush_cached_frames.  Do not call
8889         select_frame after reinit_frame_cache.
8890         * corelow.c (core_open): Likewise.
8891         * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8892         * infrun.c (prepare_to_proceed, context_switch)
8893         (handle_inferior_event): Likewise.
8894         * linux-fork.c (fork_load_infrun_state): Likewise.
8895         * ocd.c (ocd_start_remote): Likewise.
8896         * remote-e7000.c (e7000_start_remote): Likewise.
8897         * remote-mips.c (device): Likewise.
8898         * thread.c (switch_to_thread): Likewise.
8899         * tracepoint.c (finish_tfind_command): Likewise.
8900         * gdbarch.c: Regenerated.
8901
8902 2007-02-28  Jerome Guitton  <guitton@adacore.com>
8903             Joel Brobecker  <brobecker@adacore.com>
8904
8905         * gdbtypes.c (check_typedef): Do not replace stub type if
8906         the resolved type is not defined in the same objfile.
8907
8908 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
8909
8910         * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8911
8912 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
8913
8914         * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8915         symbol for Ada units when the symbol is defined using 't' rather
8916         than 'Tt' as symbol descriptor.
8917
8918 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
8919
8920         * config/mips/tm-nbsd.h: Delete file.
8921         * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8922         * config/sh/tm-nbsd.h: Delete file.
8923         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8924
8925 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
8926
8927         * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8928         unused WRONG_PARAM value since it was recently deleted.
8929
8930 2007-02-28  Vladimir Prus  <vladimir@codesourcery.com>
8931
8932         * varobj.c (varobj_update): Free temporary vectors.
8933
8934 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
8935
8936         * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8937         * config/powerpc/tm-linux.h: Delete file.
8938         * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8939         (PROCESS_LINENUMBER_HOOK): Do not undefine.
8940         (TEXT_SEGMENT_BASE): Do not redefine.
8941         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8942         from config/rs6000/tm-rs6000.h.
8943         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8944         * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8945         (TEXT_SEGMENT_BASE): Remove.
8946         (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8947         (rs6000_in_solib_return_trampoline): Remove.
8948         (SKIP_TRAMPOLINE_CODE): Remove.
8949         (rs6000_skip_trampoline_code): Remove.
8950         (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8951         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8952         (FP0_REGNUM): Remove.
8953         (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8954         (rs6000_set_host_arch_hook): Remove.
8955         * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8956         (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8957         * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8958         * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8959         (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8960         * rs6000-nat.c: Include "rs6000-tdep.h".
8961         (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8962         (set_host_arch): Rename to ...
8963         (rs6000_create_inferior): ... this.  Make public.
8964         (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8965         * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8966         (rs6000_create_inferior): Remove.
8967         (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8968         (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8969         set_gdbarch_in_solib_return_trampoline, and
8970         set_gdbarch_skip_trampoline_code.
8971         * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8972         from config/rs6000/tm-rs6000.h.
8973
8974 2007-02-27  Joel Brobecker  <brobecker@adacore.com>
8975
8976         * buildsym.c (record_producer): Do nothing if no producer is provided.
8977
8978 2007-02-27  Nick Roberts  <nickrob@snap.net.nz>
8979
8980         * varobj.c (varobj_update): Remove unused local.  Use gdb_assert
8981         to check changelist is non-NULL.  Call error if the frontend tries
8982         to update a non-root variable.
8983
8984         * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8985
8986 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
8987
8988         * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8989         (dwarf2_frame_sniffer): Update.
8990         (dwarf2_signal_frame_this_id): New function.
8991         (dwarf2_signal_frame_unwind): Use it.
8992         (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8993         * frame.c (frame_func_unwind): Add this_type argument.
8994         (get_frame_func): Update.
8995         (frame_unwind_address_in_block): Add this_type argument and check it.
8996         Fix a typo.
8997         (get_frame_address_in_block): Update.
8998         * frame.h (enum frame_type): Move higher in the file.
8999         (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
9000         argument.
9001
9002         * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
9003         arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
9004         hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
9005         libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
9006         m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
9007         mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
9008         score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
9009         sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
9010         xstormy16-tdep.c, xtensa-tdep.c: Update calls to
9011         frame_func_unwind and frame_unwind_address_in_block to specify
9012         the frame type.  Use frame_unwind_address_in_block instead of
9013         frame_pc_unwind in sniffers.
9014
9015 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
9016
9017         * frame.c (deprecated_selected_frame): Rename to...
9018         (selected_frame): ...this.  Make static.
9019         (get_selected_frame, select_frame): Update.
9020         * frame.h (deprected_select_frame): Delete.
9021         (deprecated_safe_get_selected_frame): Update comments.
9022
9023         * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
9024         infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
9025         tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
9026         parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
9027         tui/tui.c: Replace references to deprecated_selected_frame.
9028
9029 2007-02-27  Fred Fish  <fnf@specifix.com>
9030
9031         * rs6000-tdep.c (skip_prologue): Recognize addi instructions that 
9032         directly decrement the stack pointer, accumulate their operand into 
9033         the stack offset, and mark the function as not being frameless.
9034
9035 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
9036
9037         * arch-utils.c (selected_byte_order): New.
9038         * arch-utils.h (selected_byte_order): New prototype.
9039         * remote-sim.c (gdbsim_open): Use selected_byte_order.
9040
9041 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
9042
9043         * symfile.c (place_section): Check SEC_ALLOC.  Do not check VMA.
9044         (default_symfile_offsets): Check VMA here.  Update section VMAs.
9045
9046 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
9047
9048         * remote.c (init_remote_state): Add special handling for placeholder
9049         registers.
9050
9051 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
9052
9053         * Makefile.in (XMLFILES): Include $(TDEP_XML).
9054         (filenames_h): New variable.
9055         (clean): Clean up xml-builtin.c and stamp-xml.
9056         (arm-linux-nat.o): Update.
9057         * config/arm/linux.mh (TDEP_XML): Define.
9058         * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9059         (arm_linux_has_wmmx_registers): New.
9060         (GET_THREAD_ID): Fix typo.
9061         (IWMMXT_REGS_SIZE): Define.
9062         (fetch_wmmx_regs, store_wmmx_regs): New.
9063         (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9064         (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9065         (super_xfer_partial, arm_linux_xfer_partial): New.
9066         (_initialize_arm_linux_nat): Use them.
9067         * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9068         (xml_builtin_xfer_partial): New function.
9069         * xml-support.h (xml_builtin_xfer_partial): New prototype.
9070         * NEWS: Update mention of iWMMXt support.
9071
9072 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
9073
9074         * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9075         if there are no FPA registers.
9076         (arm_dwarf_reg_to_regnum): New function.
9077         (arm_register_type, arm_register_name): Return minimal values for
9078         unsupported registers.
9079         (arm_register_sim_regno): Handle iWMMXt registers.
9080         (arm_gdbarch_init): Record missing FPA registers if indicated by
9081         a target description.  Recognize iWMMXt registers.  Only register
9082         "info float" for FPA.  Use ARM_NUM_REGS.  Register
9083         arm_dwarf_reg_to_regnum.
9084         * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9085         constants.
9086         (struct gdbarch_tdep): Add have_fpa_registers.
9087         * features/xscale-iwmmxt.xml: Update capitalization.
9088         * regformats/arm-with-iwmmxt.dat: Regenerated.
9089
9090 2007-02-24  Kevin Buettner  <kevinb@redhat.com>
9091
9092         * NEWS (New targets): Add entry for the Toshiba Media Processor.
9093
9094 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
9095
9096         * MAINTAINERS (mep): New target.
9097
9098 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
9099
9100         From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9101         Richard Sandiford:
9102         * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9103         (mep-tdep.o): New rule.
9104         * configure.tgt (mep-*-*): New target.
9105         * mep-tdep.c: New file.
9106         * config/mep/mep.mt: New file.
9107
9108 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
9109
9110         * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9111         BREAKPOINT_HIT and STOP_UNKNOWN.
9112
9113 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
9114
9115         * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT. 
9116
9117 2007-02-20  Joel Brobecker  <brobecker@adacore.com>
9118
9119         * gdb_expat.h (XMLCALL): Define if not already defined.
9120
9121 2007-02-20  Andreas Schwab  <schwab@suse.de>
9122
9123         * Makefile.in (symfile.o): Update dependencies.
9124
9125 2007-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
9126
9127         * MAINTAINERS: Disable -Werror for cris simulator.  Build
9128         sparc64-solaris2.10 instead of the broken sparc-elf.
9129         * solib-frv.c: Include "solib.h".
9130         * Makefile.in (solib-frv.o): Update.
9131         * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9132         * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9133         (xtensa_frame_this_id, xtensa_frame_prev_register)
9134         (xtensa_push_dummy_call): Use %p.
9135
9136 2007-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
9137
9138         * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9139         ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9140         sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9141         * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9142         (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9143         (sparc-linux-tdep.o): Update.
9144
9145 2007-02-15  Maxim Grigoriev  <maxim2405@gmail.com>
9146
9147         * xtensa-tdep.h (xtensa_reg_mask_t): New.
9148         (xtensa_mask_t): Change mask field to be a separate array.
9149         * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9150         (xtensa_pseudo_register_write, xtensa_unwind_pc)
9151         (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9152         (xtensa_breakpoint_from_pc): Remove implicit type casting.
9153         * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9154         (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9155         (mask14, mask15): Rename to
9156         (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9157         (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9158         (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9159         (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9160         (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9161         (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9162         (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9163         (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9164         (xtensa_submask14, xtensa_submask15): New.
9165         (rmap): Follow strict aliasing rules doing static initialization.
9166
9167 2007-02-13  Daniel Jacobowitz  <dan@codesourcery.com>
9168
9169         * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9170         handling from here...
9171         (tdesc_register_type): ...to here.
9172         * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9173         * features/arm-core.xml: Use code_ptr and data_ptr.
9174
9175 2007-02-13  Denis Pilat  <denis.pilat@st.com>
9176
9177         * varobj.h (enum varobj_update_error): New enum.
9178         * varobj.c (struct varobj_root): Add is_valid member.
9179         (varobj_get_type): Check for invalid varobj.
9180         (varobj_get_attributes): Likewise.
9181         (variable_editable):Likewise.
9182         (varobj_update): Likewise.  Use varobj_update_error.
9183         (new_root_variable): Set root varobj as valid by default.
9184         (varobj_invalidate): New function.
9185         * symfile.c (clear_symtab_users): Use varobj_invalidate.
9186         * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9187         Use varobj_update_error.
9188
9189 2007-02-12  Pierre Muller  <muller@ics.u-strasbg.fr>
9190
9191         Fix PR pascal/2223.
9192         * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9193         Pascal language marker.
9194         * dwarf2read.c (set_cu_language): Likewise.
9195
9196 2007-02-12  Corinna Vinschen  <vinschen@redhat.com>
9197
9198         * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9199         (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9200         instead of target_terminal_init since inferior_ptid isn't set yet.
9201
9202 2007-02-10  Pedro Alves  <pedro_alves@portugalmail.pt>
9203
9204         * MAINTAINERS (Write After Approval): Add myself.
9205
9206 2007-02-09  Fred Fish  <fnf@specifix.com>
9207
9208         Based on work by Apple Computer, Inc.
9209         * event-top.c (async_request_quit): Call quit() whenever either
9210         quit_flag is set or immediate_quit is set.
9211
9212 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9213
9214         * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9215         type to a pointer to const struct block.
9216         (ada_lookup_symbol_list): Don't cast away constness when calling
9217         remove_out_of_scope_renamings.
9218
9219 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9220
9221         * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9222         address of 'filename'; it is always non null.
9223
9224 2007-02-09  Joel Brobecker  <brobecker@adacore.com>
9225
9226         * exec.c (add_to_section_table): Do not discard empty sections.
9227
9228 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
9229
9230         * features/Makefile, features/arm-with-iwmmxt.xml,
9231         features/gdbserver-regs.xsl, features/number-regs.xsl,
9232         features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9233         * regformats/arm-with-iwmmxt.dat: Generate.
9234         * NEWS: Mention iWMMXt.
9235
9236 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
9237
9238         * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9239         (xml-tdesc.o): Update.
9240         * xml-support.c: Add a comment.
9241         (gdb_xml_enums_boolean): New variable.
9242         (gdb_xml_parse_attr_enum): Use strcasecmp.
9243         * xml-support.h (gdb_xml_enums_boolean): Declare.
9244         * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9245         next_regnum, and current_union.
9246         (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9247         (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9248         (field_attributes, union_children, reg_attributes, union_attributes)
9249         (vector_attributes, feature_attributes, feature_children): New.
9250         (target_children): Make static.  Add <feature>.
9251         (tdesc_elements): Make static.
9252         * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9253         (struct tdesc_feature, tdesc_feature_p): New types.
9254         (struct target_desc): Add features member.
9255         (struct tdesc_arch_data, tdesc_data): New.
9256         (target_find_description): Clarify error message.  Warn about
9257         ignored register descriptions.
9258         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9259         (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9260         (tdesc_data_cleanup, tdesc_numbered_register)
9261         (tdesc_numbered_register_choices, tdesc_find_register)
9262         (tdesc_register_name, tdesc_register_type)
9263         (tdesc_remote_register_number, tdesc_register_reggroup_p)
9264         (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9265         (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9266         (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9267         (tdesc_create_feature, tdesc_record_type): New.
9268         (free_target_description): Free features.
9269         (_initialize_target_descriptions): Initialize tdesc_data.
9270         * arch-utils.c (default_remote_register_number): New.
9271         * arch-utils.h (default_remote_register_number): New prototype.
9272         * target-descriptions.h (set_tdesc_pseudo_register_name)
9273         (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9274         (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9275         (tdesc_numbered_register, tdesc_numbered_register_choices)
9276         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9277         (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9278         (tdesc_create_reg): Declare.
9279         * gdbarch.sh (remote_register_number): New entry.
9280         * gdbarch.c, gdbarch.h: Regenerate.
9281         * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9282         * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9283
9284         * arm-tdep.c (arm_register_aliases): New.
9285         (arm_register_name_strings): Rename to...
9286         (arm_register_names): ...this.  Make const.  Delete the old version.
9287         (current_option, arm_register_byte): Delete.
9288         (set_disassembly_style): Simplify.  Do not adjust arm_register_names.
9289         (value_of_arm_user_reg): New.
9290         (arm_gdbarch_init): Verify any described registers.  Call
9291         tdesc_use_registers.  Don't use arm_register_byte.  Create aliases
9292         for standard register names.
9293         (_initialize_arm_tdep): Do not adjust arm_register_names.
9294         * user-regs.c (struct user_reg): Add baton member.
9295         (append_user_reg, user_reg_add_builtin, user_regs_init)
9296         (user_reg_add, value_of_user_reg): Use a baton for user
9297         register functions.
9298         * std-regs.c: Update.
9299         * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9300         (user_reg_add): Add baton argument.
9301         * NEWS: Mention target description register support.
9302         * features/arm-core.xml, features/arm-fpa.xml: New.
9303         * eval.c (evaluate_subexp_standard): Allow ptype $register
9304         when the program is not running.
9305
9306 2007-02-09  Nick Roberts  <nickrob@snap.net.nz>
9307
9308         * mi/mi-cmd-var.c (mi_cmd_var_create):  Add value field.
9309
9310 2007-02-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9311
9312         * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9313         info->disassembler_options to "any".
9314
9315 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
9316
9317         * varobj.c (install_new_value): Only call value_get_print_value
9318         if changeable.
9319
9320 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
9321
9322         Reported by timeless@gmail.com:
9323         * gdb/target.c (target_flash_erase): Do not return void value.
9324         (target_flash_done): Likewise.
9325         * gdb/cli/cli-cmds.c (source_command): Likewise.
9326
9327 2007-02-08  Fred Fish  <fnf@specifix.com>
9328
9329         Based on work by Apple Computer, Inc.
9330         * event-top.c (handle_sigint): Set quit_flag.
9331         (async_request_quit): Don't set quit_flag.  Avoid calling quit()
9332         if quit_flag has already been reset.
9333
9334 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
9335
9336         * ser-mingw.c (pipe_windows_close): Move variable initialization back
9337         up.
9338
9339 2007-02-08  Fred Fish  <fnf@specifix.com>
9340
9341         * defs.h (request_quit): Remove declaration.
9342         * utils.c (request_quit): Remove definition.
9343
9344 2007-02-08  Joel Brobecker  <brobecker@gnat.com>
9345             Jan Kratochvil  <jan.kratochvil@redhat.com>
9346             Daniel Jacobowitz  <dan@codesourcery.com>
9347
9348         * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9349         (skip_prologue): Allow bl->blrl used by PIC code.
9350
9351 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
9352             Daniel Jacobowitz  <dan@codesourcery.com>
9353
9354         * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9355         initialize tmp_obstack.
9356         * p-valprint.c (pascal_object_print_value_fields)
9357         (pascal_object_print_value): Likewise.
9358
9359 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
9360
9361         * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9362
9363 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
9364
9365         * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9366         * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9367
9368 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
9369
9370         * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9371         (xml_cache): New.
9372         (tdesc_parse_xml): Cache expanded descriptions.
9373
9374 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
9375
9376         * Makefile.in (XMLFILES): New.
9377         (COMMON_OBS): Add xml-builtin.o.
9378         (xml-builtin.c, stamp-xml): New rules.
9379         (xml-tdesc.o): Update.
9380         * features/feature_to_c.sh: New file.
9381         * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9382         (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9383         (gdb_xml_start_element): Initialize scope after possibly reallocating
9384         scopes.  Move cleanup later.  Handle the XInclude description
9385         specially.
9386         (gdb_xml_end_element): Only parse the body if there is a current element.
9387         Call XML_DefaultCurrent if there is no element.
9388         (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9389         (struct xinclude_parsing_data, xinclude_start_include)
9390         (xinclude_end_include, xml_xinclude_default)
9391         (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9392         (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9393         (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9394         * xml-support.h (xml_fetch_another, xml_process_xincludes)
9395         (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9396         * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument.  Expand
9397         XInclude directives.  Use the compiled in DTD.
9398         (fetch_xml_from_file): Add baton argument.  Treat it as a containing
9399         directory name.  Do not warn here.
9400         (file_read_description_xml): Update call.  Warn here instead.  Pass
9401         a dirname as baton.
9402         (fetch_available_features_from_target): New.
9403         (target_read_description_xml): Use it.
9404         * features/gdb-target.dtd: Add copyright notice.  Use xinclude.dtd
9405         to handle XInclude.
9406         * features/xinclude.dtd: New file.
9407
9408 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
9409
9410         * linux-thread-db.c (check_for_thread_db): Return early if we have
9411         no libthread_db support.
9412
9413 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
9414
9415         * mi/mi-parse.h: Include <sys/time.h>.
9416
9417 2007-02-05  Nick Roberts  <nickrob@snap.net.nz>
9418
9419         * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9420         instead of print_variable_value to print values.
9421
9422 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
9423
9424         * mi/mi-main.c: Numerous formatting changes.
9425         (mi_cmd_data_write_register_values): Replace clause inadvertantly
9426         removed in my previous change.
9427
9428 2007-02-03   Eli Zaretskii  <eliz@gnu.org>
9429
9430         * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9431         Use 1000000L instead of 1000000.
9432
9433 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
9434
9435             Based on work by Apple Computer, Inc.
9436
9437         * configure.ac: Test for sys/resource.h and getrusage.
9438         * configure, config.in: Regenerate.
9439
9440         * mi/mi-main.c: Include <sys/resource.h> if present.
9441         (rusage): Declare if HAVE_GETRUSAGE.
9442         (current_command_ts, do_timings): New static variables.
9443         (timestamp, print_diff_now, print_diff, timeval_diff):
9444         New static timing functions.
9445         (mi_cmd_enable_timings): New function for new MI command.
9446         (captured_mi_execute_command, mi_execute_async_cli_command): 
9447         Call timing functions.
9448
9449         * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9450         -enable-timings.
9451
9452         * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9453
9454         * mi/mi-parse.h: (mi_timestamp): New structure.
9455         (mi_parse): Add mi_timestamp* member.
9456
9457 2007-02-02  Denis Pilat  <denis.pilat@st.com>
9458
9459         * thread.c (make_cleanup_restore_current_thread): New function.
9460         (info_threads_command): Use of make_cleanup_restore_current_thread
9461         to restore the current thread and the selected frame.
9462         (restore_selected_frame): New function.
9463         (struct current_thread_cleanup): Add frame_id field.
9464         (do_restore_current_thread_cleanup): Add restoring of the selected
9465         frame.
9466         (make_cleanup_restore_current_thread): Likewise.
9467         (thread_apply_all_command): backup the selected frame while 
9468         entering the function and restore it at exit.
9469         (thread_apply_command): Likewise.
9470
9471 2007-02-02  Denis Pilat  <denis.pilat@st.com>
9472
9473         * MAINTAINERS (Write After Approval): Add myself to the list.
9474
9475 2007-02-01  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9476
9477         * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9478         (m32r_store_register): Ditto.
9479
9480 2007-01-30  Vladimir Prus  <vladimir@codesourcery.com>
9481
9482         * ser-mingw.c (pipe_windows_open)
9483         (pipe_windows_read, pipe_windows_write): Declare
9484         variables at the top of the function.
9485
9486 2007-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
9487
9488         * doublest.c (floatformat_from_length): Use the right element from
9489         gdbarch floatformats.
9490         (floatformat_from_type, extract_typed_floating)
9491         (store_typed_floating): Likewise.
9492         * doublest.h: Remove declarations for undefined floatformat arrays.
9493         * gdbarch.sh (float_format, double_format, long_double_format): Change
9494         to pairs.
9495         (pformat): Update for pairs.
9496         * gdbarch.c, gdbarch.h: Regenerated.
9497         * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9498         (floatformats_ieee_double_littlebyte_bigword)
9499         (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9500         (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9501         (floatformats_vax_d): New variables.
9502         (builtin_type_ieee_single, builtin_type_ieee_double)
9503         (builtin_type_arm_ext, builtin_type_ia64_spill)
9504         (builtin_type_ia64_quad): Replace arrays with individual types.
9505         (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9506         (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9507         (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9508         (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9509         (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9510         (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9511         (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9512         unused and endian-specific types.
9513         (recursive_dump_type): Update for floatformat pairs.
9514         (build_flt): Move higher.  Handle bit == -1.  Take a floatformat pair.
9515         (build_gdbtypes): Use build_flt.
9516         (_initialize_gdbtypes): Update set of initialized types.
9517         * gdbtypes.h: Update declarations to match gdbtypes.c.
9518         (struct main_type): Store a pointer to two floatformats.
9519         * arch-utils.c (default_float_format, default_double_format): Delete.
9520         * arch-utils.h (default_float_format, default_double_format): Delete.
9521
9522         * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9523         ia64-tdep.c,  iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9524         mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9525         sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9526         vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9527
9528 2007-01-29  Joel Brobecker  <brobecker@adacore.com>
9529
9530         * target.c (maintenance_print_target_stack): New function.
9531         (initialize_targets): Add new "maintenance print target-stack"
9532         command.
9533
9534 2007-01-28  Mark Kettenis  <kettenis@gnu.org>
9535
9536         * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9537
9538 2007-01-27  Daniel Jacobowitz  <dan@codesourcery.com>
9539
9540         * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9541         (struct dwarf2_loclist_baton): Likewise.
9542
9543 2007-01-27  Eli Zaretskii  <eliz@gnu.org>
9544
9545         * cli/cli-script.c: Include breakpoint.h.
9546         (build_command_line): Require arguments only for if and while
9547         commands.
9548         (get_command_line, execute_user_command, execute_control_command):
9549         Fix wording of warning messages.
9550         (print_command_lines): Print breakpoint commands.
9551         (execute_control_command): Call commands_from_control_command to
9552         handle the `commands' command inside a body of a flow-control
9553         command.
9554         (read_next_line): Recognize the `commands' command and build a
9555         command line structure for it.
9556         (recurse_read_control_structure, read_command_lines): Handle
9557         `commands' similarly to `if' and `while'.
9558
9559         * breakpoint.c (get_number_trailer): Document the special meaning
9560         of NULL as the first argument PP.
9561         (commands_from_control_command): New function.
9562
9563         * breakpoint.h (commands_from_control_command): Add prototype.
9564
9565         * defs.h (commands_control): New enumerated value for enum
9566         command_control_type.
9567
9568 2007-01-26  Joel Brobecker  <brobecker@adacore.com>
9569
9570         * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9571         (ada_exception_sal): Update accordingly.
9572
9573 2007-01-26  Jan Kratochvil <jan.kratochvil@redhat.com>
9574
9575         * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9576         * NEWS: Describe CHAR array vs. string identifcation rules.
9577
9578 2007-01-25  Paul Brook  <paul@codesourcery.com>
9579
9580         * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9581
9582 2007-01-24  Jim Blandy  <jimb@codesourcery.com>
9583
9584         * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9585         expression is empty, bother to return the 'optimized out' value we
9586         construct.  (Thanks to Carl Burch.)
9587
9588 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
9589
9590         * varobj.c (c_value_of_root, c_value_of_child)
9591         (cplus_describe_child): Don't call release_value.
9592
9593 2007-01-24  Thiemo Seufer  <ths@mips.com>
9594
9595         * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9596         initialization.
9597
9598 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
9599
9600         Refactor getting children name, value and type access 
9601         for varobjs in C++.
9602         * varobj.c (get_type_deref): Remove.
9603         (adjust_value_for_child_access): New.
9604         (c_number_of_children): Use the above.
9605         (c_describe_child): Likewise.
9606         (enum accessibility): New.
9607         (match_accessibility): New function.
9608         (cplus_describe_child): New function.
9609         (cplus_name_of_child, cplus_value_of_child)
9610         (cplus_type_of_child): Reimplement in terms
9611         of cplus_describe_child.
9612         (cplus_number_of_children): Use 
9613         adjust_value_for_child_access.
9614         
9615 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
9616
9617         Fix computation of the 'editable' attribute and
9618         value changeability for for references.
9619         * varobj.c (get_value_type): New function.
9620         (c_variable_editable): Use get_value_type.
9621         (varobj_value_is_changeable): Likewise.
9622                 
9623 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
9624
9625         * source.c (find_and_open_source): Try rewriting the source
9626         path inside filename if dirname is NULL.
9627
9628 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
9629
9630         * dwarf2read.c (add_partial_symbol): Create an extra partial
9631         symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9632         (new_symbol): Likewise for symbols.
9633
9634 2007-01-24  Nick Roberts  <nickrob@snap.net.nz>
9635
9636         * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9637
9638 2007-01-23  Vladimir Prus  <vladimir@codesourcery.com>
9639         
9640         * value.c (value_primitive_field): Copy the full 'location' 
9641         contents, instead of assuming that copying ADDRESS will 
9642         bring over everything in the union.  Remove obsolete comment.
9643         
9644 2007-01-23  Masaki Muranaka  <monaka@monami-software.com>
9645
9646         * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9647         (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9648         (m32c_m16c_pointer_to_address): Separate code from declarations.
9649
9650 2007-01-23  Nick Hudson  <nick.hudson@dsl.pipex.com>
9651
9652         * target.c (update_current_target): Correct typo.
9653
9654 2007-01-22  Masaki Muranaka  <monaka@monami-software.com>
9655
9656         * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9657         declaration.
9658
9659 2007-01-11  Andrew Cagney  <cagney@redhat.com>
9660             Daniel Jacobowitz  <dan@codesourcery.com>
9661             Jan Kratochvil  <jan.kratochvil@redhat.com>
9662
9663         * dwarf2-frame.c (execute_cfa_program): New support of
9664         `DW_CFA_GNU_negative_offset_extended'.
9665
9666 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
9667
9668         * NEWS: Mention flash support for "load" and new remote packets.
9669
9670 2007-01-21  Markus Deuling  <deuling@de.ibm.com>
9671
9672         * breakpoint.c (delete_command): Skip redundant loop iterations.
9673
9674 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
9675
9676         * gdbarch.sh (register_type): Update comment.
9677         * gdbarch.h: Regenerated.
9678         * arch-utils.c (generic_register_size): Call register_type.
9679         * ia64-tdep.c (ia64_extract_return_value): Likewise.
9680         * m32c-tdep.c (check_for_saved): Likewise.
9681         * mips-tdep.c (mips_print_register, print_gp_register_row)
9682         (mips_print_registers_info): Likewise.
9683         * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9684         Likewise.
9685         * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9686         (sh64_do_register, sh64_print_register)
9687         (sh64_media_print_registers_info): Likewise.
9688         * tui/tui-regs.c (tui_register_format): Likewise.
9689
9690 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
9691
9692         * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9693
9694         * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9695         (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9696         * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9697         * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9698         (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9699         (make_symbol_completion_list): Likewise.
9700
9701 2007-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9702             Daniel Jacobowitz  <dan@codesourcery.com>
9703
9704         * buildsym.c (end_symtab): Use preallocated symtab if available.
9705         Fill in SYMBOL_SYMTAB.
9706         * buildsym.h (struct subfile): Add symtab member.
9707         * dwarf2read.c (struct dwarf2_cu): Add line_header.
9708         (struct file_entry): Add symtab.
9709         (free_cu_line_header): New function.
9710         (read_file_scope): Use it.  Save line_header in the cu.  Process
9711         lines before DIEs.
9712         (add_file_name): Initialize new symtab member.
9713         (dwarf_decode_lines): Create symtabs for included files.
9714         (new_symbol): Set SYMBOL_SYMTAB.
9715         * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9716         (search_symbols): Likewise.
9717         * symtab.h (struct symbol): Add symtab member.
9718         (SYMBOL_SYMTAB): Define.
9719
9720 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
9721
9722         * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9723
9724 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
9725
9726         * arch-utils.c (show_endian): Correct reversed condition.
9727
9728 2007-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9729
9730         * MAINTAINERS (Write After Approval): Add myself.
9731
9732 2007-01-16  Daniel Jacobowitz  <dan@codesourcery.com>
9733             Vladimir Prus  <vladimir@codesourcery.com>
9734
9735         Fix 'selected frame' varobjs.
9736         * varobj.c (struct varobj): Remove the error field.
9737         (varobj_set_value): Don't check var->error.
9738         (install_new_value): Don't set var->error.
9739         (varobj_update): Always pass the new value
9740         of the root via install_new_value.
9741         (create_child): Don't set error field.
9742         (new_variable): Likewise.
9743         (c_value_of_root): Always reevaluate the value
9744         of selected frame varobjs in the selected frame.
9745         Don't call reinit_frame_cache.
9746
9747 2007-01-15  Joel Brobecker  <brobecker@adacore.com>
9748
9749         * source.c (_initialize_source): Improve the help text of
9750         the substitute-path commands.
9751
9752 2007-01-14  Mark Kettenis  <kettenis@gnu.org>
9753
9754         * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9755         (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9756         (frv_skip_prologue): Remove prototypes.
9757         (frv_adjust_breakpoint_address): Renamed from
9758         frv_gdbarch_adjust_breakpoint_address.
9759         (frv_gdbarch_init): Adjust.
9760
9761 2007-01-13  Mark Kettenis  <kettenis@gnu.org>
9762
9763         * gdbarch.sh (deprecated_extract_return_value)
9764         (deprecated_store_return_value): Remove.
9765         (extract_return_value, store_return_value): Remove default values.
9766         * gdbarch.c, gdbarch.h: Regenerate.
9767         * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9768         (legacy_store_return_value): Remove.
9769         * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9770         Remove.
9771
9772         * mi/mi-main.c: Remove obsolete comment.
9773
9774         * regcache.c, regcache.h (deprecated_register_bytes)
9775         (deprecated_read_register_bytes)
9776         (deprecated_write_register_bytes): Remove.
9777
9778         * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9779         Don't forget to move destination pointer.
9780
9781 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
9782
9783         * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9784
9785 2007-01-11  Ulrich Weigand  <uweigand@de.ibm.com>
9786
9787         * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9788         past entry function with recent newlib.
9789
9790 2007-01-11  Vladimir Prus  <vladimir@codesourcery.com>
9791
9792         * gdb.texinfo (GDB/MI Variable Objects): Improve the 
9793         introduction.  Specify -var-update more exactly.
9794
9795 2007-01-11  Daniel Jacobowitz  <dan@codesourcery.com>
9796
9797         * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9798
9799 2007-01-10  Jim Blandy  <jimb@codesourcery.com>
9800
9801         * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9802         the Global Maintainers' invitation to be a global maintainer.
9803
9804 2007-01-10  Daniel Jacobowitz  <dan@codesourcery.com>
9805
9806         * infrun.c (singlestep_pc): New variable.
9807         (resume): Set singlestep_pc.
9808         (context_switch): Add a debugging message.  Flush the frame cache.
9809         (handle_inferior_event): Add debugging messages.  Handle thread
9810         hops when a software single step has completed.  Let context_switch
9811         handle flushing the frame cache.
9812
9813 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
9814
9815         * NEWS: Mention target descriptions, "set tdesc filename",
9816         "unset tdesc filename", "show tdesc filename", and
9817         qXfer:features:read.
9818         * arch-utils.c (choose_architecture_for_target): New function.
9819         (gdbarch_info_fill): Call it.
9820         * target-descriptions.c (struct property): Make members non-const.
9821         (struct target_desc): Add arch member.
9822         (target_description_filename): New variable.
9823         (target_find_description): Try via XML first.
9824         (tdesc_architecture): New.
9825         (free_target_description, make_cleanup_free_target_description): New.
9826         (set_tdesc_property): Call xstrdup.
9827         (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9828         (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9829         (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9830         (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9831         * target-descriptions.h (tdesc_architecture)
9832         (make_cleanup_free_target_description, set_tdesc_architecture): New
9833         prototypes.
9834         * Makefile.in (SFILES): Add xml-tdesc.c.
9835         (COMMON_OBS): Add xml-tdesc.o.
9836         (target-descriptions.o): Update.
9837         (xml-tdesc.o): New rule.
9838         * xml-tdesc.c, xml-tdesc.h: New files.
9839         * remote.c (PACKET_qXfer_features): New enum.
9840         (remote_protocol_features): Add qXfer:features:read.
9841         (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9842         (_initialize_remote): Register qXfer:features:read.
9843         * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9844         * features/gdb-target.dtd: New file.
9845
9846 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
9847
9848         * copyright.sh: Clarify error.
9849
9850 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9851
9852         * symtab.c (matching_bfd_sections): Fix VMA matching for
9853         prelinked objects.
9854
9855 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9856
9857         * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9858         nested symbols.
9859
9860 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
9861
9862         Updated copyright notices for most files.
9863
9864 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
9865
9866         * copyright.sh (prunes): Add step-line.inp and step-line.c.
9867
9868 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
9869
9870         * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9871         exec_prefix.
9872         (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9873         '${prefix}'.
9874         * configure, config.in: Regenerate.
9875         * defs.h (debug_file_directory): Declare.
9876         * main.c (captured_main): Canonicalize gdb_sysroot.  Assume
9877         TARGET_SYSTEM_ROOT is defined.  Initialize debug_file_directory and
9878         relocate it if DEBUGDIR_RELOCATABLE.
9879         * symfile.c (debug_file_directory): Make non-static.
9880         (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9881         in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9882         (_initialize_symfile): Don't initialize debug_file_directory here.
9883
9884 2007-01-09  Jim Blandy  <jimb@codesourcery.com>
9885
9886         * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9887         statements.
9888
9889 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
9890
9891         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9892         frame_unwind_register to recurse.
9893         * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9894         (alpha_heuristic_frame_prev_register): Likewise.
9895         * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9896         * m32c-tdep.c (m32c_prev_register): Likewise.
9897         * frame.c (frame_register_unwind_location): Remove FIXME.
9898
9899 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
9900             Eli Zaretskii  <eliz@gnu.org>
9901
9902         * copyright.sh: New file.
9903
9904 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
9905
9906         * configure.ac: Check for XML_StopParser.
9907         * xml-support.c (gdb_xml_body_text): Check for an error.
9908         (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9909         (gdb_xml_end_element_wrapper): Likewise.
9910         * config.in, configure: Regenerated.
9911
9912 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
9913
9914         * varobj.c (install_new_value): Always update print_value.
9915         (value_get_print_value): Immediately return NULL for missing
9916         values.
9917
9918 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
9919
9920         * configure.ac: Tighten pattern for extracting value of
9921         DEPRECATED_TM_FILE from the target makefile fragment.
9922         * configure: Regenerated.
9923
9924 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
9925
9926         * linux-nat.c (struct simple_pid_list): Add status.
9927         (add_to_pid_list): Record the PID's status.
9928         (linux_record_stopped_pid): Likewise.  Make static.
9929         (pull_pid_from_list): Return the saved status.
9930         (linux_nat_handle_extended): Deleted.
9931         (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9932         Make static.  Handle non-SIGSTOP for a new thread's first signal.
9933         (flush_callback): Handle unexpected pending signals.
9934         (linux_nat_wait): Update calls to changed functions.
9935         * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9936         Remove prototypes for newly static functions.
9937
9938 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
9939
9940         * gdbarch.sh (value_from_register): New gdbarch function.
9941         * gdbarch.c, gdbarch.h: Regenerate.
9942         * findvar.c (default_value_from_register): New function.
9943         (value_from_register): Use gdbarch_value_from_register.
9944         * value.h (default_value_from_register): Declare.
9945         * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9946         spu_value_to_register): Remove.
9947         (spu_value_from_register): New function.
9948         (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9949         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9950         Call set_gdbarch_value_from_register.
9951         * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9952         s390_value_to_register): Remove.
9953         (s390_value_from_register): New function.
9954         (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9955         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9956         Call set_gdbarch_value_from_register.
9957
9958 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
9959
9960         * NEWS: Add "set sysroot" and "show sysroot".
9961         * solib.c (solib_absolute_prefix): Delete.  Replace
9962         all uses with gdb_sysroot.
9963         (_initialize_solib): Add "set sysroot" and "show sysroot".
9964         Make "solib-absolute-prefix" an alias to it.
9965
9966 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
9967
9968         * frame.c (get_frame_register_bytes): New function.
9969         (put_frame_register_bytes): Likewise.
9970         * frame.h (get_frame_register_bytes): Declare.
9971         (put_frame_register_bytes): Likewise.
9972         * findvar.c (value_from_register): Always construct lval_register
9973         values.  Use get_frame_register_bytes.
9974         * valops.c (value_assign): Use get_frame_register_bytes and
9975         put_frame_register_bytes.
9976
9977 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
9978
9979         * MAINTAINERS: Update Stan Shebs' email address.
9980
9981 2007-01-07  Joel Brobecker  <brobecker@adacore.com>
9982
9983         * ada-lang.c (is_known_support_routine): Improve the implementation.
9984
9985 2007-01-06  Joel Brobecker  <brobecker@adacore.com>
9986
9987         * ada-lang.c: Add include of source.h.
9988         (is_known_support_routine): Improve the check verifying that the file
9989         associated to this frame exists.
9990         * Makefile.in (ada-lang.o): Add dependency on source.h.
9991
9992 2007-01-07  Jim Blandy  <jimb@codesourcery.com>
9993
9994         * ax-general.c (ax_const_l): Select proper opcode for the given
9995         value.
9996
9997 2007-01-05  Vladimir Prus  <vladimir@codesourcery.com>
9998
9999         * varobj.c (c_value_of_root): Don't select frame if variable
10000         object is out of scope.
10001
10002 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
10003
10004         * varobj.c (struct varobj): New member print_value.
10005         (install_new_value): Compare last printed value with current one
10006         instead of contents.
10007         (new_variable): Initialize var->print_value to NULL.
10008         (free_variable): Free var->print_value.
10009         (value_get_print_value): New function derived from
10010         c_value_of_variable.
10011         (c_value_of_variable): Use value_get_print_value.
10012
10013 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
10014
10015         * i386-tdep.c (i386_analyze_stack_align): Add comment.
10016
10017 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
10018
10019         * NEWS: Add entries for new catch commands.
10020
10021 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
10022
10023         * dwarf2read.c (partial_die_info): Add field has_byte_size.
10024         (add_partial_symbol): Correct identification of external references.
10025         (process_structure_scope): Likewise.
10026         (read_partial_die): Handle DW_AT_byte_size attribute.
10027
10028 2007-01-05  Daniel Jacobowitz  <dan@codesourcery.com>
10029
10030         * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
10031
10032 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
10033
10034         * varobj.c (get_type_deref): Fix variable objects for references to
10035         pointers.
10036
10037 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
10038
10039         * symtab.c (find_pc_sect_psymtab): Add comments.  Handle psymtabs
10040         with no symbols.
10041
10042 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
10043
10044         * memory-map.c (struct_memory_map_parsing_data): Remove most
10045         members.  Make property_name an array.
10046         (free_memory_map_parsing_data, memory_map_start_element)
10047         (memory_map_end_element, memory_map_character_data): Delete.
10048         (memory_map_start_memory, memory_map_end_memory)
10049         (memory_map_start_property, memory_map_end_property): New functions.
10050         (property_attributes, memory_children, memory_type_enum)
10051         (memory_attributes, memory_map_children, memory_map_elements): New.
10052         (parse_memory_map): Rewrite.
10053         * xml-support.c (debug_xml): New.
10054         (xml_get_required_attribute, xml_get_integer_attribute)
10055         (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10056         Delete.
10057         (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10058         (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10059         (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10060         (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10061         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10062         (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10063         (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10064         New.
10065         * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10066         (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10067         (enum gdb_xml_element_flag, struct gdb_xml_element)
10068         (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10069         (struct gdb_xml_enum): New.
10070         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10071         (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10072         (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10073         (xml_get_required_attribute, xml_get_integer_attribute)
10074         (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10075         * Makefile.in (xml_support_h, xml-support.o): Update.
10076
10077 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
10078
10079         * Makefile.in (eval.o): Update dependencies.
10080         * eval.c: Include "ui-out.h" and "exceptions.h".
10081         (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10082         Use value_zero if an error occurs when avoiding side effects.
10083         * varobj.c (c_value_of_root): Initialize new_val.
10084
10085 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
10086
10087         * varobj.c (varobj_list_children): Stop if the number of children is
10088         unknown.
10089         (c_number_of_children):
10090
10091 2007-01-04  Mark Kettenis  <kettenis@gnu.org>
10092
10093         * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10094         (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10095         (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10096         (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10097         sizeof, instead of hardcoded constants.
10098
10099 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
10100
10101         * CONTRIBUTE: Use sourceware.org.
10102
10103 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
10104
10105         * buildsym.c (start_subfile): Handle producer.
10106         (record_producer): New function.
10107         * buildsym.h (struct subfile): Include producer.
10108         (record_producer): New prototype.
10109         * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10110         (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10111         armcc_cfa_offsets_reversed.
10112         (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10113         (dwarf2_frame_find_quirks): New function.
10114         (dwarf2_frame_cache): Call it.  Handle armcc_cfa_offsets_reversed.
10115         (decode_frame_entry_1): Record the CIE version.  Record the
10116         augmentation.  Skip armcc augmentations.
10117         * dwarf2read.c (read_file_scope): Save the producer.
10118         * symtab.h (struct symtab): Rename unused version member to
10119         producer.
10120
10121 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
10122
10123         * configure.ac (build_warnings): Use -Wall and
10124         -Wdeclaration-after-statement.
10125         * configure: Regenerated.
10126
10127 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
10128
10129         Simplify access to variours properties of child
10130         variable objects in C.
10131         * varobj.c (value_struct_element_index): New function.
10132         (c_describe_child): New function.
10133         (c_name_of_child, c_value_of_child)
10134         (c_type_of_child): Rewrite to use c_describe_child.
10135
10136 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
10137
10138         gdb/
10139         * varobj.c: Include "vec.h". 
10140         (varobj_p): New typedef, declare vector of those.
10141         (struct varobj): Use vector for the 'children' member.
10142         (child_exists): Remove.
10143         (save_child_in_parent): Remove.
10144         (remove_child_from_parent): Remove.
10145         (struct varobj_child): Remove.
10146         (struct vstack): Remove.
10147         (vpush, vpop): Remove.
10148         (varobj_list_children): Adjust to work work vector.
10149         (varobj_update): Likewise. Use vectors for
10150         working stack and result.
10151         (delete_variable_1): Likewise.
10152         * Makefile.in (varobj.o): Update dependencies.
10153
10154 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
10155
10156         Port from Apple's version.
10157         gdb/
10158         * varobj.c (type_changeable): Rename to...
10159         (varobj_value_is_changeable_p): ...this. Adjust all callers.
10160         (is_root_p): New function. Use it everywhere.
10161
10162 2007-01-04  Jim Blandy  <jimb@codesourcery.com>
10163
10164         * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10165         then plain 'fixup'.
10166
10167 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
10168
10169         * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10170
10171 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
10172
10173         * hpread.c (hpread_type_lookup): Fix compilation failure.
10174
10175 2007-01-04  Qinwei  <qinwei@sunnorth.com.cn>
10176
10177         * NEWS: New port to S+core.
10178         * MAINTAINERS (Write After Approval, Responsible Maintainers):
10179         Add myself.
10180
10181         * Makefile.in: Add dependencies for S+core files.
10182         * configure.tgt (score*, score-*-*): Add S+core target.
10183         * config/score/embed.mt: New file.
10184         * score-tdep.c: New file.
10185         * score-tdep.h: New file.
10186
10187 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
10188
10189         * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10190         the appropriate type rather than a bogus void type.
10191
10192 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
10193
10194         * ada-lang.h (ada_find_printable_frame): Remove.
10195         (ada_exception_catchpoint_p, ada_decode_exception_location)
10196         (ada_decode_assert_location): Add declaration.
10197         * ada-lang.c: Add include of annotate.h and valprint.h.
10198         (exception_catchpoint_kind): New enum.
10199         (function_name_from_pc, is_known_support_routine)
10200         (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10201         (ada_exception_name_addr_1, ada_exception_name_addr)
10202         (print_it_exception, print_one_exception, print_mention_exception)
10203         (print_it_catch_exception, print_one_catch_exception)
10204         (print_mention_catch_exception, catch_exception_breakpoint_ops)
10205         (print_it_catch_exception_unhandled)
10206         (print_one_catch_exception_unhandled)
10207         (print_mention_catch_exception_unhandled, print_it_catch_assert)
10208         (print_one_catch_assert, print_mention_catch_assert)
10209         (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10210         (ada_get_next_arg, catch_ada_exception_command_split)
10211         (ada_exception_sym_name, ada_exception_sym_name)
10212         (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10213         (ada_parse_catchpoint_condition, ada_exception_sal)
10214         (ada_decode_exception_location)
10215         (ada_decode_assert_location): New function.
10216         (catch_exception_unhandled_breakpoint_ops): New global variable.
10217         (catch_assert_breakpoint_ops): New global variable.
10218         * breakpoint.c: Add include of ada-lang.h.
10219         (print_one_breakpoint): Do not print the condition for Ada
10220         exception catchpoints.
10221         (create_ada_exception_breakpoint): New function.
10222         (catch_ada_exception_command, catch_assert_command): New function.
10223         (catch_command_1): Add support for the new "catch exception" and
10224         "catch assert" commands.
10225         (_initialize_breakpoint): Add help description for the new catch
10226         commands.
10227         * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10228         valprint.h.
10229         (breakpoint.o): Add dependency on ada-lang.h.
10230
10231 2007-01-03  Pedro Alves  <pedro_alves@portugalmail.pt>
10232
10233         * coffread.c (cs_to_section): If bfd_section is found, always
10234         return its section index.
10235         (coff_symtab_read): Determine the minimal_symbol_type using the
10236         bfd_section flags.
10237
10238 2007-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10239             Daniel Jacobowitz  <dan@codesourcery.com>
10240
10241         * Makefile.in (top.o): Update.
10242         * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10243         (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10244         (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10245         New.
10246         (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10247
10248 2007-01-03  Mark Kettenis  <kettenis@gnu.org>
10249
10250         * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10251         (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10252
10253 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
10254
10255         * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10256         * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10257         * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10258         greater than or equal to zero.
10259         * m2-typeprint.c (m2_array): Likewise.
10260         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10261         * gdbtypes.c (copy_type_recursive): Correct == typo.
10262         * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10263         * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10264         greater than zero.
10265         * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10266         (default_macro_scope): Remove unused variable.
10267         * prologue-value.h (pv_area_find_reg): Don't name an argument
10268         "register".
10269         * remote-fileio.c (remote_fio_func_map): Add missing braces.
10270         * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10271         type.
10272         (cleanup_sigint_signal_handler): Remove casts.
10273         * valprint.c (val_print): Use a volatile local for the modified
10274         argument.
10275         * varobj.c (languages): Remove extra array dimension.
10276         (varobj_create): Correct access to languages array.
10277         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10278         missing braces.
10279         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10280         * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10281         * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10282         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10283         (mi_cmd_data_write_memory): Likewise.
10284         * signals/signals.c (target_signal_to_string): Cast to int before
10285         comparing.
10286         * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10287         Update all callers.
10288
10289 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
10290
10291         * NEWS: Mention pointer to member improvements.
10292         * Makefile.in (gnu-v3-abi.o): Delete special rule.
10293         (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10294         * ada-valprint.c (ada_print_scalar): Update for new type codes.
10295         * c-typeprint.c (c_print_type): Update for new type codes.
10296         (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10297         (c_type_print_base): Likewise.
10298         (c_type_print_args): Rewrite.
10299         * c-valprint.c (c_val_print): Update for new type codes.  Remove
10300         support for references to members.  Treat methods like functions.
10301         * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10302         (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10303         * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10304         (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10305         (struct cp_abi_ops): Add corresponding members.
10306         * cp-valprint.c (cp_print_class_method): Delete.
10307         (cp_find_class_member): New function.
10308         (cp_print_class_member): Use it.  Simplify support for bogus
10309         member pointers.
10310         * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10311         lookup_methodptr_type.
10312         (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10313         * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10314         OP_SCOPE.  Update call to value_aggregate_elt.  Rewrite member
10315         pointer support.
10316         (evaluate_subexp_for_address): Handle OP_SCOPE explicitly.  Handle
10317         references returned by user defined operators.
10318         * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10319         (f_type_print_varspec_suffix): Remove support for member pointers.
10320         * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10321         and adjusted.
10322         (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10323         (lookup_methodptr_type): New.
10324         (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10325         (recursive_dump_type): Update for new types.
10326         * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10327         TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10328         (lookup_memberptr_type, lookup_methodptr_type)
10329         (smash_to_memberptr_type): New prototypes.
10330         (smash_to_method_type): Formatting fix.
10331         (lookup_member_type, smash_to_member_type): Delete prototypes.
10332         * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10333         Do not rely on debug information for the vptr or the method's
10334         enclosing type.  Handle function descriptors for IA64.
10335         (gnuv3_virtual_fn_field): Rewrite using the new functions.
10336         (gnuv3_find_method_in, gnuv3_print_method_ptr)
10337         (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10338         (gnuv3_method_ptr_to_value): New.
10339         (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10340         * hpread.c (hpread_type_lookup): Update for new types.
10341         * infcall.c (value_arg_coerce): Likewise.
10342         * m2-typeprint.c (m2_print_type): Remove explicit support
10343         for member pointers.
10344         * m2-valprint.c (m2_val_print): Likewise.
10345         * p-typeprint.c (pascal_type_print_varspec_prefix)
10346         (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10347         * p-valprint.c (pascal_val_print): Likewise.
10348         (pascal_object_print_class_method, pascal_object_print_class_member):
10349         Delete.
10350         * p-lang.h (pascal_object_print_class_method)
10351         (pascal_object_print_class_member): Delete prototypes.
10352         * stabsread.c (read_type): Update for new types.
10353         * typeprint.c (print_type_scalar): Likewise.
10354         * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10355         (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10356         argument.  Construct a pointer to member if the address of a
10357         function or data member is requested.
10358         (value_cast_pointers): Don't modify the input value.
10359         (value_cast): Adjust pointer to member handling for new types.
10360         Allow null pointer to member constants.  Don't modify the input
10361         value.
10362         (value_ind): Remove pointer to member check.  Handle function
10363         descriptors for function pointers.
10364         (value_struct_elt, value_find_oload_method_list, check_field):
10365         Remove pointer to member checks.
10366         * value.c (unpack_long): Allow pointers to data members.
10367         (value_from_longest): Allow member pointers.
10368         * value.h (value_aggregate_elt): Add want_address.
10369         * varobj.c (c_variable_editable): Remove check for members.
10370         * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10371         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10372         in virtual tables.
10373         (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10374         * c-lang.h (cp_print_class_method): Delete prototype.
10375         * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10376         * mips-tdep.c (mips_gdbarch_init): Likewise.
10377         * gdbarch.c, gdbarch.h: Regenerated.
10378
10379 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
10380
10381         * rs6000-tdep.c (rs6000_use_struct_convention)
10382         (rs6000_extract_return_value, rs6000_store_return_value)
10383         (rs6000_extract_struct_value_address): Remove.
10384         (rs6000_return_value): New function.
10385         (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10386         store_return_value, deprecated_extract_struct_value_address and
10387         deprecated_use_struct_convention.  Use rs6000_return_value
10388         instead.
10389
10390 2007-01-02  Nick Roberts  <nickrob@snap.net.nz>
10391
10392         * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10393         -display-disable, -display-enable, -display-insert and
10394         -display-list.
10395
10396 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
10397
10398         * breakpoint.c (remove_breakpoint): Remove dead code.
10399
10400 2007-01-01  Nick Roberts  <nickrob@snap.net.nz>
10401
10402         * varobj.c: Include block.h.
10403         (c_value_of_root): Check scope within nested statements.
10404
10405 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
10406
10407         * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10408         regcache_cooked_write_signed instead of
10409         deprecated_write_register_bytes.
10410
10411 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
10412
10413         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10414
10415 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
10416
10417         Followed the Start of New Year Procedure:
10418         * ChangeLog-2006: New file, containing all the entries for 2006.
10419         * ChangeLog: Removed all 2006 entries, and changed the reference
10420         to the previous ChangeLog to point to ChangeLog 2006.
10421         * top.c (print_gdb_version): Update copyright year.
10422
10423 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
10424
10425         * Makefile.in (remote-sds.o): Remove.
10426         * remote-sds.c: Delete.
10427
10428 For older changes see ChangeLog-2006.
10429 \f
10430 Local Variables:
10431 mode: change-log
10432 left-margin: 8
10433 fill-column: 74
10434 version-control: never
10435 coding: utf-8
10436 End: