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