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