OSDN Git Service

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