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