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