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