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