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