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