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