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