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