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