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