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