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