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