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