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