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