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