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