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