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