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