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