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