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