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