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