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