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