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