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