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