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