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