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