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