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