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