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