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