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