1 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
4 * config/pa/hppa64.mt: Delete file.
5 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
6 (TDEPFILES): Move somread.o to ...
7 * config/pa/hpux.mh (NATDEPFILES): ... here.
9 * configure.ac: Add check for elf_hp.h header.
10 Search libdl and libxpdl for dlgetmodinfo.
11 * config.in, configure: Regenerate.
12 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
13 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
14 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
15 set_solib_ops instead of modifying current_target_so_ops.
16 * solib-pa64.h (pa64_solib_select): Update prototype.
17 * solib-som.c: Remove include of "som.h". Include "solib.h".
18 (som_solib_select): Take gdbarch instead of tdep argument. Call
19 set_solib_ops instead of modifying current_target_so_ops.
20 * solib-som.h (som_solib_select): Update prototype.
21 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
22 of tdep to som_solib_select call.
23 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
24 pa64_solib_select call.
25 * Makefile.in: Update dependencies.
27 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
29 * frv-tdep.c: Include "solib.h".
30 (frv_gdbarch_init): Call set_solib_ops.
31 * frv-tdep.h (struct target_so_ops): Add forward reference.
32 (frv_so_ops): Add extern declaration.
33 * solib-frv.c (frv_so_ops): Make global.
34 (_initialize_frv_solib): Do not set current_target_so_ops.
35 * Makefile.in: Update dependencies.
37 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
39 * solib.c (solib_global_lookup): Use solib_ops instead of global
40 current_target_so_ops.
42 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
44 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
45 * config/frv-tm-frv.h: Delete file.
47 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
49 * NEWS: Mention gdbserver support for non-libthread_db operation.
51 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
53 * amd64-tdep.c (amd64_convert_register_p): Delete.
54 (amd64_init_abi): Use i387_convert_register_p.
55 * alpha-tdep.c (alpha_convert_register_p): Return zero for
57 (alpha_register_to_value, alpha_value_to_register): Do not handle
59 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
60 * i387-tdep.c (i387_convert_register_p): New.
61 (i387_register_to_value, i387_value_to_register): Update comments.
62 * i387-tdep.h (i387_convert_register_p): Declare.
63 * ia64-tdep.c (ia64_convert_register_p): Return zero for
64 builtin_type_ia64_ext.
65 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
66 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
67 * m68k-tdep.c (m68k_convert_register_p): Return zero for
68 builtin_type_m68881_ext.
69 (m68k_register_to_value, m68k_value_to_register): Update comments.
71 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
73 * target-memory.c (claim_memory): Propagate baton for split memory
76 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
79 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
82 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
84 * symtab.c (find_line_symtab): scan through psymtabs
85 when exact_match is zero.
87 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
89 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
90 (deal_with_atomic_sequence): New.
91 (mips_software_single_step): Use it.
93 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
96 * configure.ac: Modify $LIBINTL before the BFD check.
97 * configure: Regenerated.
99 2007-10-23 Joel Brobecker <brobecker@adacore.com>
101 * buildsym.c (free_pending_blocks): Remove commented-out code.
102 (make_blockvector): Likewise. Re-use free_pending_blocks.
103 (end_symtab): Remove commented-out code.
105 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
107 * top.c (command_loop): Fix output for shrinkage.
109 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
111 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
112 (exp): Remove and document function-like casts.
114 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
116 * cp-support.c: Include "safe-ctype.h".
117 (cp_already_canonical): New function.
118 (cp_canonicalize_string): Use it. Return NULL for already canonical
120 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
121 (cp_func_name, remove_params): Likewise.
122 (cp_find_first_component_aux): Use ISSPACE.
123 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
125 * cp-name-parser.y (ALLOC_CHUNK): Define.
126 (struct demangle_info): Add PREV and NEXT. Increase the size of
128 (d_grab): Convert to a function.
129 (allocate_info): Rewrite.
130 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
131 strlen. Update call to allocate_info. Do not free it on failure.
132 (main): Update calls to cp_demangled_name_to_comp.
133 * Makefile.in (cp-support.o): Update.
135 2007-10-22 Markus Deuling <deuling@de.ibm.com>
137 * std-regs.c (value_of_builtin_frame_fp_reg)
138 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
139 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
140 current architecture by frame_info.
142 2007-10-22 Markus Deuling <deuling@de.ibm.com>
144 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
147 2007-10-22 Markus Deuling <deuling@de.ibm.com>
149 * infcmd.c (default_print_registers_info, print_return_value)
150 (print_vector_info, print_float_info): Replace current_gdbarch by
152 (registers_info): Use get_frame_arch to get at the current
153 architecture by frame_info.
155 2007-10-22 Markus Deuling <deuling@de.ibm.com>
157 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
158 get_regcache_arch to get at the current architecture by regcache.
160 2007-10-22 Markus Deuling <deuling@de.ibm.com>
162 * target.c (debug_print_register): Use get_regcache_arch to get at the
163 current architecture by regcache.
165 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
167 * dwarf2read.c (read_file_scope): Add a comment.
168 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
169 (read_enumeration_type, process_enumeration_scope, read_array_type)
170 (read_typedef, read_base_type, read_subrange_type)
171 (read_unspecified_type): Use dwarf2_name.
173 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
175 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
176 * dwarf2read.c (dwarf2_free_objfile): New.
177 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
178 * symfile.h (dwarf2_free_objfile): Declare.
180 2007-10-21 Joel Brobecker <brobecker@adacore.com>
182 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
184 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
186 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
187 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
188 default dwarf2_frame_set_init_reg function.
190 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
192 * NEWS: Mention native MinGW configuration.
194 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
196 * gdbarch.sh: Remove "macro" column of input table. Remove handling
197 of "macro" column throughout the file. Remove (empty) "macro" entry
198 of all gdbarch functions.
200 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
202 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
203 * gdbarch.c, gdbarch.h: Regenerate.
204 * dbxread.c (find_stab_function_addr): Define unconditionally.
205 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
206 instead of SOFUN_ADDRESS_MAYBE_MISSING.
207 (end_psymtab): Likewise.
208 (process_one_symbol): Likewise.
209 * mdebugread.c (parse_partial_symbols): Likewise.
211 * symtab.h (struct minimal_symbol): Always define "filename" member.
212 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
213 * minsyms.c (lookup_minimal_symbol): Likewise.
214 * symmisc.c (dump_msymbols): Likewise.
216 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
217 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
218 * config/i386/tm-i386sol2.h: Remove file.
219 * config/i386/tm-linux.h: Remove file.
220 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
221 set_gdbarch_sofun_address_maybe_missing.
222 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
224 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
225 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
226 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
227 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
228 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
229 * config/powerpc/tm-ppc-eabi.h: Remove file.
230 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
231 set_gdbarch_sofun_address_maybe_missing.
233 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
234 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
235 * config/sparc/tm-sol2.h: Remove file.
236 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
237 set_gdbarch_sofun_address_maybe_missing.
238 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
240 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
242 * gdbarch.sh (static_transform_name): New gdbarch callback.
243 * gdbarch.c, gdbarch.h: Regenerate.
244 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
245 instead of STATIC_TRANSFORM_NAME.
246 * mdebugread.c (parse_partial_symbols): Likewise.
247 * stabsread.c (define_symbol): Likewise.
248 * xcoffread.c (scan_xcoff_symtab): Likewise.
250 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
251 (IS_STATIC_TRANSFORM_NAME): Remove.
252 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
253 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
254 (i386_sol2_init_abi): Install it.
256 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
257 (IS_STATIC_TRANSFORM_NAME): Remove.
258 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
259 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
260 (sparc32_sol2_init_abi): Install it.
261 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
262 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
264 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
266 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
267 (mips_n32n64_return_value, mips_o32_return_value)
268 (mips_o64_return_value): Update calls to mips_xfer_register.
270 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
272 * frame.c (frame_unwind_unsigned_register): Delete.
273 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
274 * frame.h (frame_unwind_unsigned_register): Delete prototype.
276 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
277 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
278 mt-tdep.c: Replace frame_unwind_unsigned_register with
279 frame_unwind_register_unsigned.
281 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
283 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
284 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
285 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
287 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
288 if not building on Cygwin.
289 (win32_make_so, handle_output_debug_string, handle_exception)
290 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
291 (win32_attach): Only fallback to Cygwin pids if building on
293 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
295 (win32_create_inferior): Disable starting the inferior through a
296 shell, environment var processing and tty handling if not building
298 (cygwin_pid_to_str): Rename to ...
299 (win32_pid_to_str): ... this.
300 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
301 and "cygwin-exceptions" commands if not building on Cygwin.
303 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
305 * doc/gdb.texinfo: Add TSIZE definition, removed
306 statement about unbounded arrays being unimplemented.
307 * m2-valprint.c (m2_print_array_contents): New function.
308 (m2_print_unbounded_array): New function.
309 (m2_print_array_contents): New function.
310 * m2-typeprint.c (m2_unbounded_array): New function.
311 (m2_is_unbounded_array): New function.
312 (m2_print_type): Test for unbounded array when walking
314 * m2-lang.h: Added extern m2_is_unbounded_array.
315 * m2-lang.c (evaluate_subexp_modula2): New function.
316 (exp_descriptor_modula2): New structure.
317 (m2_language_defn): Use exp_descriptor_modula2.
318 * m2-exp.y: Added TSIZE and binary subscript.
320 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
322 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
325 2007-10-16 Kevin Buettner <kevinb@redhat.com>
327 * m32r-tdep.c (decode_prologue): Sign extend offset for
329 (m32r_frame_unwind_cache): Likewise.
331 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
333 * rs6000-tdep.c (skip_prologue): Restore comment with
334 function description to its proper place.
336 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
338 * NEWS: Mention gdbserver PowerPC improvements.
340 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
342 * features/Makefile (WHICH): Add PowerPC register definitions.
343 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
344 (rs6000/powerpc-64-expedite): New macros.
345 ($(outdir)/%.dat): Handle subdirectories.
346 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
347 regformats/rs6000/powerpc-e500.dat: New generated files.
349 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
351 * ppc-linux-nat.c (ppc_linux_read_description): New.
352 (_initialize_ppc_linux_nat): Set to_read_description.
353 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
355 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
357 * NEWS: Document target described register support for PowerPC.
358 * ppc-tdep.h: Remove ppc_spr constants.
359 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
360 ppc_builtin_type_vec128 members.
361 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
362 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
363 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
364 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
365 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
366 * rs6000-tdep.c: Include preparsed descriptions.
367 (init_sim_regno_table): Do not iterate over pseudo registers.
368 Look up segment registers by name. Use sim_spr_register_name
370 (rs6000_register_sim_regno): Call init_sim_regno_table here.
371 (rs6000_builtin_type_vec128): Delete.
372 (rs6000_register_name): Only handle SPE pseudo registers and upper
373 halves. Call tdesc_register_name for everything else.
374 (rs6000_register_type): Delete. Replace with...
375 (rs6000_pseudo_register_type): ...this new function. Only handle
376 SPE pseudo registers.
377 (rs6000_register_reggroup_p): Delete. Replace with...
378 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
379 handle SPE pseudo registers.
380 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
382 (rs6000_register_to_value, rs6000_value_to_register): Remove check
384 (e500_register_reggroup_p): Delete.
385 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
386 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
387 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
388 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
389 (registers_powerpc, registers_403, registers_403GC, registers_505)
390 (registers_860, registers_601, registers_602, registers_603)
391 (registers_604, registers_750, registers_7400, registers_e500): Delete
393 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
395 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
396 (variants): Delete outdated comment. Use standard target descriptions
397 instead of "struct reg" arrays.
398 (init_variants): Delete.
399 (rs6000_gdbarch_init): Do not guess word size from the BFD
400 architecture if we have a target description. Select a variant
401 before creating a new architecture. Use the variant's target
402 description if the target did not define a register layout.
403 Validate target-supplied registers. Reject mismatches. Use
404 fixed register numbers and new constants instead of magic
405 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
406 (_initialize_rs6000_tdep): Initialize the preparsed target
408 * target-descriptions.c (tdesc_predefined_types): Add int128 and
410 (tdesc_find_register_early): New function.
411 (tdesc_numbered_register): Use it.
412 (tdesc_register_size): New function.
413 (tdesc_use_registers): Take a target_desc argument. Do not use
415 * target-descriptions.h (tdesc_use_registers): Update prototype
417 (tdesc_register_size): New prototype.
418 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
419 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
420 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
421 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
422 (rs6000-tdep.o): Update.
423 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
424 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
425 * mips-tdep.c (mips_gdbarch_init): Likewise.
427 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
429 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
430 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
431 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
432 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
433 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
434 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
435 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
438 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
440 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
441 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
442 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
443 feature descriptions for standard PowerPC register sets.
445 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
446 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
447 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
448 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
449 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
450 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
451 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
452 target descriptions for PowerPC processors.
454 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
456 * target-descriptions.c (tdesc_predefined_types): New.
457 (tdesc_named_type): Use it.
458 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
459 (_intialize_target_descriptions): Register "maint print c-tdesc".
460 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
461 (cfiles, %.c): New rules.
462 * features/arm-with-iwmmxt.c, features/mips-linux.c,
463 features/mips64-linux.c: New generated files.
465 * arm-linux-nat.c: Include preparsed description instead of
467 (super_xfer_partial, arm_linux_xfer_partial): Remove.
468 (arm_linux_read_description): New function.
469 (_initialize_arm_linux_nat): Set to_read_description instead of
470 to_xfer_partial. Initialize preparsed description.
471 * config/arm/linux.mh (TDEP_XML): Delete.
472 * mips-linux-nat.c: Include preparsed descriptions instead of
474 (super_xfer_partial, mips_linux_xfer_partial): Remove.
475 (mips_linux_read_description): New function.
476 (_initialize_mips_linux_nat): Set to_read_description instead of
477 to_xfer_partial. Initialize preparsed description.
478 * config/mips/linux.mh (TDEP_XML): Delete.
479 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
480 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
481 (mips64_linux_c): New macros.
482 (arm-linux-nat.o, mips-linux-nat.o): Update.
484 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
486 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
487 Replace xasprintf by xstrprintf.
488 symfile-mem.c (add_vsyscall_page): Ditto.
490 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
492 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
493 replacing use of global current_gdbarch.
494 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
495 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
497 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
498 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
499 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
500 (ia64_sigtramp_frame_cache): Update caller.
502 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
504 * gdbarch.sh (deprecated_use_struct_convention): Remove.
505 (extract_return_value, store_return_value): Remove.
506 (return_value): Remove default implementation.
507 * gdbarch.c, gdbarch.h: Regenerate.
509 * stack.c (return_command): Remove compatibility hack.
510 * arch-utils.c (legacy_return_value): Remove.
511 * arch-utils.h (legacy_return_value): Likewise.
513 * arch-utils.c (always_use_struct_convention): Remove.
514 * arch-utils.h (always_use_struct_convention): Likewise.
515 * value.c (generic_use_struct_convention): Remove.
516 * defs.h (generic_use_struct_convention): Likewise.
518 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
520 * avr-tdep.c (avr_return_value): New function.
521 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
522 set_gdbarch_extract_return_value.
524 * fvr-tdep.c (frv_return_value): New function.
525 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
526 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
527 and set_gdbarch_deprecated_use_struct_convention.
529 * ia64-tdep.c (ia64_use_struct_convention): Make static.
530 Add check for structure, union, or array types.
531 (ia64_extract_return_value): Make static.
532 (ia64_store_return_value): Make static. Support multi-word values.
533 (ia64_return_value): New function.
534 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
535 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
536 and set_gdbarch_deprecated_use_struct_convention.
538 2007-10-12 Joel Brobecker <brobecker@adacore.com>
540 * solib-target.c (solib_target_parse_libraries)
541 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
543 2007-10-12 Jim Blandy <jimb@codesourcery.com>
545 * serial.h (struct serial_ops): Document read_prim to return zero
547 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
548 read_prim returns zero, not SERIAL_TIMEOUT.
550 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
552 * alpha-mdebug-tdep.c: Include "gdb_string.h".
553 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
554 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
555 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
557 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
558 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
559 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
560 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
561 * config/alpha/tm-alpha.h: Remove file.
563 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
565 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
566 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
568 * config/pa/tm-hppa.h: Delete file.
569 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
570 * config/pa/hppahpux.mt: Likewise.
571 * config/pa/hppa.mt: Likewise.
572 * config/pa/linux.mt: Likewise.
573 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
575 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
577 * config/arm/nm-nbsdaout.h: Remove file.
578 * config/nm-nbsdaout.h: Likewise.
579 * config/nm-nbsd.h: Likewise.
581 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
583 * block.h (struct block): Remove "gcc_compile_flag" member.
584 (BLOCK_GCC_COMPILED): Remove.
585 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
586 * buildsym.c (finish_block): Do not set it.
587 * symmisc.c (dump_symtab_1): Do not dump it.
589 * value.h (using_struct_return): Remove "gcc_p" argument.
590 * value.c (using_struct_return): Likewise.
591 * eval.c (evaluate_subexp_standard): Adapt callers.
592 * infcall.c (call_function_by_hand): Likewise.
593 * stack.c (return_command): Likewise.
594 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
596 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
597 * gdbarch.c, gdbarch.h: Regenerate.
598 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
599 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
600 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
601 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
602 (push_dummy_code, call_function_by_hand): Adapt callers.
604 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
606 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
607 (finish_command_continuation, finish_command): Adapt callers.
609 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
611 * infcall.c (call_function_by_hand): Remove special handling
612 for HP aCC compiled code.
614 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
616 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
617 reference. Fix endianness bugs.
618 (cris_reg_struct_has_address): Remove.
619 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
620 and set_gdbarch_deprecated_use_struct_convention calls.
622 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
623 * gdbarch.c, gdbarch.h: Regenerate.
624 * infcall.c (call_function_by_hand): Remove handling of
625 deprecated_reg_struct_has_addr.
627 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
628 Kazu Hirata <kazu@codesourcery.com>
630 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
631 checking watchpoint resources.
633 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
635 * memattr.c (inaccessible_by_default): Change the initial
638 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
641 * coffread.c (read_one_sym): Check for read errors.
643 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
645 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
646 instead of "Linux 2.6.19" in comment.
647 (linux_xfer_partial): Use "GNU/Linux target" instead of
648 "Linux target" in comment.
649 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
650 (m68k_linux_get_sigtramp_info): Likewise.
652 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
654 * MAINTAINERS (language support): List Joel and Paul as
657 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
659 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
661 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
662 not set DEPRECATED_TM_FILE.
663 * config/arm/tm-arm.h: Delete file.
665 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
667 * MAINTAINERS (Write After Approval): Add self.
669 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
671 * buildsym.c (record_line): Remove empty lines followed by
672 end-of-sequence markers.
674 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
676 * configure.tgt: Recognize fido-*-elf.
678 2007-10-10 Joel Brobecker <brobecker@adacore.com>
682 2007-10-10 Markus Deuling <deuling@de.ibm.com>
684 * stack.c (print_frame_args, frame_info, return_command): Use
685 get_regcache_arch or get_frame_arch to get at the current architecture
686 by regcache or by frame, respectively.
688 2007-10-10 Markus Deuling <deuling@de.ibm.com>
690 * rs6000-nat.c (fetch_register, store_register)
691 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
692 get_regcache_arch to get at the current architecture by regcache.
694 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
695 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
696 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
697 current_gdbarch by gdbarch.
698 (rs6000_skip_trampoline_code, rs6000_register_to_value)
699 (rs6000_value_to_register): Use get_frame_arch to get at the current
700 architecture by frame_info.
702 2007-10-10 Markus Deuling <deuling@de.ibm.com>
704 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
705 get_regcache_arch to get at the current architecture by regcache.
707 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
708 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
709 get_regcache_arch to get at the current architecture by regcache.
711 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
712 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
713 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
714 current architecture by regcache.
716 2007-10-10 Markus Deuling <deuling@de.ibm.com>
718 * remote-mips.c (mips_wait, mips_fetch_registers)
719 (mips_store_registers): Use get_regcache_arch to get at the
720 current architecture by regcache.
722 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
723 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
724 get at the current architecture by regcache.
725 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
726 architecture by frame_info.
728 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
729 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
730 the current architecture by regcache.
732 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
733 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
734 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
735 current architecture by frame_info.
736 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
737 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
738 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
739 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
740 get at the current architecture by regcache.
742 * mips-linux-nat.c (mips_linux_register_addr)
743 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
744 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
745 (mips64_linux_regsets_fetch_registers)
746 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
747 the current architecture by regcache.
749 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
750 get at the current architecture by frame_info.
752 2007-10-10 Markus Deuling <deuling@de.ibm.com>
754 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
755 current architecture by regcache.
756 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
757 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
758 (mips_stub_frame_cache, mips_read_fp_register_single)
759 (mips_read_fp_register_double, mips_print_fp_register)
760 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
761 at the current architecture by frame_info.
762 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
763 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
764 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
765 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
766 (mips_o32_push_dummy_call, mips_o32_return_value)
767 (mips_o64_push_dummy_call, mips_o64_return_value)
768 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
771 2007-10-10 Markus Deuling <deuling@de.ibm.com>
773 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
774 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
775 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
776 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
777 (xtensa_register_write_masked, xtensa_register_read_masked)
778 (xtensa_supply_gregset, xtensa_store_return_value)
779 (xtensa_extract_return_value): Use get_regcache_arch to get at the
780 current architecture by regcache.
781 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
782 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
783 architecture by frame_info.
785 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
787 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
788 (thumb_analyze_prologue): Move pv_area_store_would_trash call
789 out of loop. Do not set cache->frameoffset.
790 (arm_scan_prologue): Use prologue-value mechanism. Do not set
791 frameoffset. Simplify framesize.
792 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
794 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
796 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
798 * target.c (update_current_target): Call setup_target_debug.
799 (push_target): Do not call it here.
801 2007-10-09 Michael Snyder <msnyder@specifix.com>
803 * MAINTAINERS: Update my email address.
805 2007-10-09 Markus Deuling <deuling@de.ibm.com>
807 * xtensa-tdep.c: Replace following current-gdbarch based macros by
809 (xtensa_pseudo_register_read)
810 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
811 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
812 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
813 (xtensa_pseudo_register_read)
814 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
815 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
816 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
817 (xtensa_frame_prev_register): NUM_AREGS.
818 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
819 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
820 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
821 (xtensa_supply_gregset, xtensa_frame_cache)
822 (xtensa_frame_prev_register): WS_REGNUM.
823 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
824 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
825 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
826 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
827 (xtensa_register_reggroup_p): REGMAP.
828 (call0_track_op): LITBASE_REGNUM.
829 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
830 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
831 (xtensa_frame_prev_register, AREG_NUMBER)
832 (xtensa_register_type): AR_BASE.
833 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
834 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
835 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
836 (xtensa_frame_cache, xtensa_frame_prev_register)
837 (xtensa_extract_return_value, xtensa_store_return_value)
838 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
839 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
840 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
841 (xtensa_frame_prev_register, xtensa_push_dummy_call)
842 (call0_frame_cache): A1_REGNUM.
843 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
844 (xtensa_push_dummy_call): A4_REGNUM.
845 (ARGS_FIRST_REG): A6_REGNUM.
846 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
847 (xtensa_frame_prev_register): A15_REGNUM.
848 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
849 them in the appropriate source file:
850 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
851 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
852 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
853 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
854 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
855 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
856 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
857 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
858 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
859 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
860 A13_REGNUM, A14_REGNUM, A15_REGNUM.
862 2007-10-09 Markus Deuling <deuling@de.ibm.com>
864 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
865 the current architecture by frame_info.
866 (h8300_frame_prev_register
867 (h8300_print_register): Replace current_gdbarch by gdbarch.
868 (h8300_print_registers_info, h8300_register_type)
869 (h8300_register_type): Likewise.
871 2007-10-09 Markus Deuling <deuling@de.ibm.com>
873 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
874 the current architecture by regcache.
875 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
876 (i386_linux_fetch_inferior_registers)
877 (i386_linux_store_inferior_registers): Likewise.
878 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
879 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
880 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
881 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
882 (i386_extract_return_value, i386_store_return_value): Likewise.
883 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
884 the current architecture by frame_info.
885 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
886 (i386_register_to_value, i386_value_to_register): Likewise.
888 2007-10-09 Markus Deuling <deuling@de.ibm.com>
890 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
891 the current architecture by regcache.
892 (monitor_store_register, monitor_store_registers): Likewise.
894 2007-10-09 Markus Deuling <deuling@de.ibm.com>
896 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
897 the current architecture by regcache.
899 2007-10-09 Markus Deuling <deuling@de.ibm.com>
901 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
904 2007-10-09 Markus Deuling <deuling@de.ibm.com>
906 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
907 architecture by frame.
908 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
909 (inside_main_func, frame_sp_unwind): Likewise.
911 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
913 * solib-svr4.c (enable_break): Add the dynamic linker also if
916 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
918 * MAINTAINERS (Write After Approval): Add self.
920 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
922 * stabsread.c (read_huge_number): Initialize local variable to 0.
924 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
926 * p-lang.h (pascal_main_name): Add declaration.
927 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
928 (GPC_MAIN_PROGRAM_NAME_2): New constants.
929 (pascal_main_name): New function.
930 * symtab.c: Include p-lang.h.
931 (find_main_name): Add call to pascal_main_name.
932 * Makefile.in (symtab.o): Add dependency on p-lang.h.
934 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
936 * stabsread.c (read_huge_number): Fix handling of octal
937 representation when the bit width is known.
938 (read_range_type): Record unsigned integral types with their size,
939 when the type size is known.
941 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
943 * MAINTAINERS (Write After Approval): Add self.
945 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
947 * breakpoint.c (print_one_breakpoint_location): ARI fix:
948 Replace asprintf by xstrprintf.
950 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
952 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
953 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
955 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
957 * linux-fork.c: Move "gdb_wait.h" include back to the position of
958 <sys/wait.h> include before last commit.
960 2007-10-08 Maciej W. Rozycki <macro@mips.com>
962 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
964 2007-10-08 Markus Deuling <deuling@de.ibm.com>
966 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
967 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
968 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
969 (store_regs_user_thread, store_regs_kernel_thread): Use
970 get_regcache_arch or get_frame_arch to get at the current architecture
971 by regcache or by frame, respectively.
973 2007-10-08 Markus Deuling <deuling@de.ibm.com>
975 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
976 (sh64_pseudo_register_read, sh64_pseudo_register_write)
977 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
978 (sh64_print_register, sh64_media_print_registers_info)
979 (sh64_compact_print_registers_info, sh64_unwind_sp)
980 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
981 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
982 (sh64_frame_prev_register): Use FRAME to recognize current
985 2007-10-08 Markus Deuling <deuling@de.ibm.com>
987 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
988 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
989 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
990 current_gdbarch by gdbarch.
991 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
992 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
993 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
994 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
995 recognize current architecture.
997 2007-10-08 Markus Deuling <deuling@de.ibm.com>
999 * remote.c (init_remote_state, fetch_register_using_p)
1000 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
1001 (store_register_using_P, store_registers_using_G)
1002 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
1003 get at the current architecture by regcache or by frame, respectively.
1005 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1007 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
1008 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
1009 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
1010 get_regcache_arch or get_frame_arch to get at the current architecture
1011 by regcache or by frame, respectively.
1012 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1013 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
1014 (store_register, old_store_inferior_registers, supply_gregset)
1015 (supply_fpregset, fill_fpregset): Likewise.
1016 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
1017 Replace current_gdbarch by gdbarch.
1019 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1021 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
1022 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
1023 get_frame_arch to get at the current architecture by regcache or by
1024 frame, respectively.
1026 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1028 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
1029 Replace current_gdbarch by gdbarch.
1030 * ia64-tdep.c (ia64_frame_prev_register
1031 (ia64_sigtramp_frame_prev_register)
1032 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
1033 get_frame_arch to get at the current architecture by regcache or by
1034 frame, respectively.
1035 * ia64-linux-nat.c (ia64_linux_fetch_register)
1036 (ia64_linux_fetch_registers, ia64_linux_store_register)
1037 (ia64_linux_store_registers): Likewise.
1039 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1041 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
1042 current_gdbarch by gdbarch.
1043 * hppa-linux-nat.c (fetch_register, store_register)
1044 (hppa_linux_fetch_inferior_registers)
1045 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
1046 get_frame_arch to get at the current architecture by regcache or by
1047 frame, respectively.
1048 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
1049 (hppa_hpux_unwind_adjust_stub): Likewise.
1050 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
1051 (hppa_hpux_fetch_inferior_registers)
1052 (hppa_hpux_store_inferior_registers): Likewise.
1054 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1056 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1057 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
1058 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
1059 or get_frame_arch to get at the current architecture by regcache or by
1060 frame, respectively.
1061 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
1062 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
1063 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
1064 current_gdbarch by gdbarch.
1066 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1068 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
1069 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
1070 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
1071 get at the current architecture by regcache or by·frame, respectively.
1072 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
1075 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1077 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
1078 Use get_regcache_arch or get_frame_arch to get at the current
1079 architecture by regcache or by frame, respectively.
1080 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
1081 * amd64-nat.c (amd64_supply_native_gregset)
1082 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
1084 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1086 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
1088 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1089 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
1090 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
1091 get_frame_arch to get at the current architecture by regcache or by
1092 frame, respectively.
1093 * alpha-nat.c (fetch_osf_core_registers): Likewise.
1095 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1097 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
1098 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
1099 current_gdbarch by gdbarch.
1100 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
1102 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1104 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
1105 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
1106 * regcache.c (regcache_raw_write): Use get_regcache_arch or
1107 get_frame_arch to get at the current architecture by regcache or by
1108 frame, respectively.
1110 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1112 * findvar.c (value_of_register, locate_var_value): Use
1113 get_regcache_arch or get_frame_arch to get at the current architecture
1114 by regcache or by frame, respectively.
1115 * findvar.c (default_value_from_register, value_from_register): Replace
1116 current_gdbarch by gdbarch.
1118 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
1120 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
1122 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
1124 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
1125 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
1127 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
1129 * remote.c (get_offsets): Only call free_symfile_segment_data if
1132 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
1134 * objc-exp.y: ARI fix: remove 4 PARAMS.
1136 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
1138 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
1139 news. Mention XML support for M68K in GDB 6.7.
1141 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
1143 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
1145 (init_vector_type): Use builtin_type_int32.
1147 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
1149 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
1150 size to enable bi-arch generate-core-file support.
1152 2007-10-02 Markus Deuling <deuling@de.ibm.com>
1154 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
1156 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1158 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
1160 * tui/tui-win.c (tui_initialize_win): New function for
1161 initializing tui's SIGWINCH signal handler.
1162 * tui/tui-win.h (tui_initialize_win): Declare.
1164 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
1166 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
1167 pointer to uintptr_t before casting to CORE_ADDR.
1169 2007-10-02 Markus Deuling <deuling@de.ibm.com>
1171 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
1173 2007-10-02 Mark Mitchell <mark@codesourcery.com>
1175 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
1176 * ser-mingw.c (enum select_thread_state): New type.
1177 (struct ser_console_state): Add have_started and thread_state.
1178 (select_thread_wait): New function.
1179 (thread_fn_type): New type.
1180 (create_select_thread): New function.
1181 (destroy_select_thread): Likewise.
1182 (start_select_thread): Likewise.
1183 (stop_select_thread): Likewise.
1184 (console_select_thread): Use new functions.
1185 (pipe_select_thread): Likewise.
1186 (file_select_thread): Likewise.
1187 (ser_console_wait_handle): Likewise.
1188 (ser_console_done_wait_handle): Likewise.
1189 (ser_console_close): Likewise.
1190 (free_pipe_state): Likewise.
1191 (pipe_wait_handle): Likewise.
1192 (pipe_done_wait_handle): Likewise.
1193 (struct net_windows_state): Derive from ser_console_state.
1194 (net_windows_select_thread): Use new functions.
1195 (net_windows_wait_handle): Likewise.
1196 (net_windows_done_wait_handle): Likewise.
1197 (net_windows_close): Likewise.
1199 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1201 * inflow.c (terminal_ours_1): Remove useless line.
1203 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1205 * mips-tdep.c (mips_read_fp_register_double): Correct check for
1207 (mips_print_fp_register): Correct check for even FP registers.
1208 (mips_virtual_frame_pointer): New function.
1209 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
1211 2007-09-30 Mike Frysinger <vapier@gentoo.org>
1213 * value.h (lookup_only_internalvar): New prototype.
1214 (create_internalvar): Likewise.
1215 * value.c (lookup_only_internalvar): New function.
1216 (create_internalvar): Likewise.
1217 (lookup_internalvar): Use new lookup_only_internalvar and
1218 create_internalvar functions.
1219 * parse.c (write_dollar_variable): Look up $ symbols in internal
1220 table first rather than last.
1222 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
1224 * linux-nat.c (linux_nat_new_thread): New variable.
1225 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
1226 linux_nat_switch_fork.
1227 (lwp_list): Make public.
1228 (add_lwp): Call linux_nat_new_thread.
1229 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
1231 (resume_callback): Clear lp->siginfo. Remove unused variable.
1232 (linux_nat_resume): Assert that the LWP list is already initialized.
1234 (save_siginfo): New.
1235 (stop_wait_callback, linux_nat_wait): Call it.
1236 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
1237 * linux-nat.h (struct lwp_info): Add siginfo.
1238 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
1241 * amd64-linux-nat.c (amd64_linux_dr): New.
1242 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
1243 (amd64_linux_dr_set): Take a PTID argument.
1244 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
1245 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
1246 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
1247 (amd64_linux_new_thread): New.
1248 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
1249 * i386-linux-nat.c (i386_linux_dr): New.
1250 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
1251 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
1252 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
1253 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
1254 (i386_linux_new_thread): New.
1255 (i386_linux_resume): Remove unnecessary PID check.
1256 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
1257 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
1258 (fetch_debug_register, fetch_debug_register_pair): Delete.
1259 (debug_registers): New.
1260 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
1261 ALL_LWPS and debug_registers.
1262 (ia64_linux_new_thread): New.
1263 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
1264 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
1265 * ppc-linux-nat.c (last_stopped_data_address): Delete.
1266 (saved_dabr_value): New.
1267 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1269 (ppc_linux_new_thread): New.
1270 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
1271 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
1272 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
1273 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
1275 (s390_fix_watch_points): Take a PTID argument.
1276 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
1277 (_initialize_s390_nat): Call linux_nat_set_new_thread.
1279 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
1280 Jeff Johnston <jjohnstn@redhat.com>
1282 * breakpoint.c (watchpoints_triggered): New.
1283 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
1284 Check watchpoint_triggered instead. Combine handling for software
1285 and hardware watchpoints. Do not use target_stopped_data_address
1286 here. Always check a watchpoint if its scope breakpoint triggers.
1287 Do not stop for thread or overlay events. Improve check for
1288 triggered watchpoints without a value change.
1289 (watch_command_1): Insert the scope breakpoint first. Link the
1290 scope breakpoint to the watchpoint.
1291 * breakpoint.h (enum watchpoint_triggered): New.
1292 (struct breakpoint): Add watchpoint_triggered.
1293 (bpstat_stop_status): Update prototype.
1294 (watchpoints_triggered): Declare.
1295 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
1296 (stepped_after_stopped_by_watchpoint): Delete.
1297 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
1298 local. Handle infwait_step_watch_state. Update calls to
1299 bpstat_stop_status. Use watchpoints_triggered to check
1301 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
1302 (remote_stopped_data_address): Do not check it.
1304 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
1306 * configure.ac: Add $LIBINTL when testing libbfd.
1307 * configure: Regenerated.
1309 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
1311 * NEW: Mention pending breakpoint changes and
1312 support for breakpoints at multiple locations.
1314 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
1316 * arm-linux-tdep.c (arm_linux_software_single_step): New.
1317 (arm_linux_init_abi): Use it.
1318 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
1319 condition correctly.
1320 * arm-tdep.h (arm_get_next_pc): Declare.
1321 * Makefile.in (arm-linux-tdep.o): Update.
1323 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1325 * varobj.c (install_new_value): Don't
1326 call value_get_print_value when a value is
1327 lazy. Update the print_value member in a
1330 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1332 * breakpoint.c (create_breakpoint): Set
1333 condition on each location, not on the first
1334 location of breakpoint.
1336 2007-09-26 Jim Blandy <jimb@codesourcery.com>
1338 * remote.c (getpkt_sane): Fix error message. No animals were
1339 harmed in the making of this debugger.
1341 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1343 * p-typeprint.c: Fix 11 ARI reported problems.
1344 (pascal_print_type): Fix 4 operator at end of line.
1345 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
1346 using strncmp function.
1347 (pascal_type_print_base): Fix 2 operator at end of line.
1348 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
1349 using strncmp function.
1352 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1354 * Fix PR pascal/2231
1355 dwarf2read.c (read_subroutine_type):
1356 All pascal functions are prototyped.
1358 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1360 * Fix PR pascal/2283
1361 p-valprint.c (pascal_val_print): correct current language check.
1362 Also print array of char as strings.
1365 2007-09-26 David Ung <davidu@mips.com>
1366 Maciej W. Rozycki <macro@mips.com>
1368 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
1370 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
1372 * p-exp.y: Fix 12 ARI reported problems.
1373 (name_not_typename): Fix 2 operator at end of line issues.
1374 (yylex): Fix 3 operator at end of line issues.
1375 Replace 7 DEPRECATED_STREQ macros using strcmp function.
1377 2007-09-25 David Ung <davidu@mips.com>
1378 Maciej W. Rozycki <macro@mips.com>
1380 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
1381 rules return composite types in registers as appropriate.
1383 2007-09-24 Jim Blandy <jimb@codesourcery.com>
1385 * symfile.h (struct symfile_segment_data): Doc fixes.
1386 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
1387 Assert that we were passed some loaded segment addresses,
1388 and that sections' segment numbers are valid.
1389 Simplify offset calculation.
1390 * remote.c (get_offsets): Clarify selection of relocate-by-segment
1391 strategy, and set num_segments correctly. Delete redundant
1392 assignments to do_sections.
1394 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
1396 * frame.c (get_prev_frame_1): Also check for PC in the same register.
1398 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
1400 * breakpoint.c (remove_sal): New.
1401 (expand_line_sal_maybe): New.
1402 (create_breakpoints): Call expand_line_sal_maybe.
1403 (clear_command): Add comment.
1404 (breakpoint_re_set_one): Call expand_line_sal_maybe.
1405 * linespec.c (decode_indirect): Set explicit_pc to 1.
1406 (decode_all_digits): Set explicit_line to 1.
1407 (append_expanded_sal): New.
1408 (expand_line_sal): New.
1409 * linespec.h (expand_line_sal): Declare.
1410 * symtab.c (init_sal): Initialize explicit_pc
1412 * symtab.h (struct symtab_and_line): New fields
1413 explicit_pc and explicit_line.
1415 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
1417 * infcall.c (call_function_by_hand): Handle language-specific
1418 pass and return by reference.
1420 * cp-abi.c (cp_pass_by_reference): New.
1421 * cp-abi.h (cp_pass_by_reference): Declare.
1422 (struct cp_abi_ops): Add pass_by_reference.
1423 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
1424 (init_gnuv3_ops): Set pass_by_reference.
1426 * language.c (language_pass_by_reference): New.
1427 (default_pass_by_reference): New.
1428 (unknown_language_defn, auto_language_defn, local_language_defn): Add
1429 default_pass_by_reference.
1430 * langauge.h (struct language_defn): Add la_pass_by_reference.
1431 (language_pass_by_reference, default_pass_by_reference): Declare.
1432 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
1433 * c-lang.c (c_language_defn, asm_language_defn)
1434 (minimal_language_defn): Likewise.
1435 (cplus_language_defn): Add cp_pass_by_reference.
1436 * f-lang.c (f_language_defn): Add default_pass_by_reference.
1437 * jv-lang.c (java_language_defn): Likewise.
1438 * m2-lang.c (m2_language_defn): Likewise.
1439 * objc-lang.c (objc_language_defn): Likewise.
1440 * p-lang.c (pascal_language_defn): Likewise.
1441 * scm-lang.c (scm_language_defn): Likewise
1443 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
1445 Allow a code breakpoint to have several locations
1447 * breakpoint.h (enum enable_state): Remove the
1448 bp_shlib_disabled enumerator.
1449 (struct bp_location): New members shlib_disabled,
1450 global_next, enabled and function_name.
1451 Rename pending to condition_not_parsed.
1453 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
1454 (ALL_BP_LOCATIONS_SAFE): Likewise.
1455 (breakpoint_enabled): Don't check for pending.
1456 (condition_command): Free and update all locations of
1458 (insert_bp_location): Adjust.
1459 (software_breakpoint_inserted_here_p): Don't care
1460 if breakpoint is enabled, as soon as it's inserted.
1461 (print_it_typical): Print bpstat's location, not
1462 bpstat's breakpoint's location.
1463 (bpstat_stop_status): Iterate over all locations, not
1465 (print_breakpoint_location): New.
1466 (print_one_breakpoint): Renamed to
1467 (print_one_breakpoint_location): ...this. Take
1468 parameters to describe which location is being
1469 printed. Modify code to properly print header
1470 for several locations and individual locations.
1471 (print_one_breakpoint): Print all locations.
1472 (breakpoint_has_pc): New.
1473 (describe_other_breakpoints): Use the above.
1474 (check_duplicates): Renamed to...
1475 (check_duplicates_for): .. this.
1476 (check_duplicates): Use check_duplicates_for.
1477 (allocate_bp_location): Adjust.
1478 (set_raw_breakpoint_without_location): New,
1479 extracted from set_raw_breakpoint.
1480 (set_breakpoint_location_function): New.
1481 (set_raw_breakpoint): Use
1482 set_raw_breakpoint_without_location.
1483 (make_breakpoint_permanent): Mark all locations
1485 (disable_breakpoints_in_shlibs): Iterate over
1487 (disable_breakpoints_in_unloaded_shlib): Likewise.
1488 (re_enable_breakpoints_in_shlibs): Likewise.
1489 (mention): Say "pending" when breakpoint has
1490 zero locations. If breakpoint has more than one
1492 (add_location_to_breakpoint): New.
1493 (create_breakpoint): Accept symtabs_and_lines, not
1494 symtab_and_line. Pass extra sals to
1495 add_location_to_breakpoint.
1496 (create_breakpoints): Pass symtabs_and_lines to
1498 (break_command_1): Make pending breakpoints
1499 have zero locations.
1500 (do_captured_breakpoint): Remove wrong allocation.
1501 (clear_command): Iterate over all locations.
1502 (unlink_locations_from_global_list): Renamed
1503 from unlink_location_from_global_list. Remove
1505 (delete_breakpoint): Remove all locations.
1506 Iterate over all locations when deciding which
1507 other location to re-enable.
1508 (all_locations_are_pending): New.
1509 (update_breakpoint_locations): Renamed from
1510 update_breakpoint_location. Try to match old
1511 and new locations using names of containing
1513 (breakpoint_re_set_one): Adjust.
1514 (find_location_by_number): New.
1515 (disable_command): Allow disabling individual location.
1516 (enable_command): Allow enabling individual location.
1517 * breakpoint.c: Adjust all uses of breakpoint's
1518 enable state to for bp_shlib_disabled change.
1520 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1522 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
1523 (resolve_pending_breakpoint): Remove.
1524 (re_enable_breakpoints_in_shlibs): Remove.
1525 (unlink_locations_from_global_list): New.
1526 (update_breakpoint_locations): New.
1527 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
1528 Use parse_condition and update_breakpoint_location to
1529 reset breakpoint. Ignore 'symbol not found' error from
1531 (breakpoint_re_set): Don't emit newline before the
1532 reason why breakpoint is not reset.
1533 (do_enable_breakpoint): Don't specially process pending
1535 (free_bp_location): New.
1536 (break_command_1): For pending breakpoints, initialize
1537 all fields of a sal with zeroes.
1538 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
1539 * infcmd.c (post_create_inferior): Don't call
1540 re_enable_breakpoints_in_shlibs.
1541 * infrun.c (handle_inferior_event): Likewise.
1542 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1543 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1544 * win32-nat.c (get_win32_debug_event): Likewise.
1546 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1548 * breakpoint.c (create_breakpoint): Split from
1549 create_breakpoints, implementing most of its logic.
1550 Take just a single sal, single address string and
1551 single condition. Do not take parsed condition at
1553 (create_breakpoints): Just call create_breakpoint
1555 (find_condition_and_thread): New.
1556 (break_command_1): Use find_condition_and_thread.
1557 Do not keep parsed conditions.
1558 (do_captured_breakpoint): Don't convert
1559 condition string to struct expression.
1561 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1563 * breakpoint.h (struct breakpoint): Move the cond
1565 (struct bp_location): Here.
1566 * breakpoint.c (condition_command, bpstat_stop_status)
1567 (print_one_breakpoint, allocate_bp_location)
1568 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
1569 (create_exec_event_catchpoint, create_breakpoints)
1570 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
1571 (create_ada_exception_breakpoint, set_breakpoint_sal)
1572 (delete_breakpoint, breakpoint_re_set_one): Adjust.
1573 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
1575 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1577 Associate bp_stat with bp_location, not breakpoint.
1578 * breakpoint.h (breakpoint_at): Change type
1580 * breakpoint.c (bpstat_alloc): Take bp_location,
1582 (bpstat_find_breakpoint): Look at bpstat's location's
1583 owner, not at bpstat->breakpoint_at.
1584 (bpstat_find_step_resume_breakpoint): Likewise.
1585 (bpstat_num): Likewise.
1586 (print_it_typical): Likewise.
1587 (print_bp_stop_message): Likewise.
1588 (watchpoint_check): Likewise.
1589 (bpstat_what): Likewise.
1590 (bpstat_get_triggered_catchpoints): Likewise.
1591 (breakpoint_auto_delete): Likewise.
1592 (delete_breakpoint): Likewise.
1593 (bpstat_stop_status): Pass location, not breakpoint,
1594 to bpstat_alloc. Look at bpstat's location's
1595 owner, not at bpstat->breakpoint_at.
1597 2007-09-21 Jim Blandy <jimb@codesourcery.com>
1599 * macrotab.h (new_macro_table): Document that removing information
1600 from an obstack/bcache-managed macro table leaks memory.
1601 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
1602 that data is never freed in obstack/bcache-managed macro tables,
1603 just leak the storage.
1604 (macro_undef): If we're undefining a macro at exactly the same
1605 source location that we defined it, simply remove the definition
1608 2007-09-21 Joel Brobecker <brobecker@adacore.com>
1610 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
1611 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
1612 Adjust the struct sym_fns object accordingly by setting
1613 the new field to NULL.
1614 * xcoffread.c (aix_process_linenos): Make static.
1615 (xcoff_sym_fns): Set new field to aix_process_linenos.
1616 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
1617 by call to new the new sym_fns sym_read_linetable function.
1618 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
1619 * config/rs6000/tm-rs6000.h: Delete.
1621 2007-09-21 David Ung <davidu@mips.com>
1622 Maciej W. Rozycki <macro@mips.com>
1624 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
1625 rules do not treat composite types specially.
1627 2007-09-20 Maciej W. Rozycki <macro@mips.com>
1629 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
1630 (mips16_in_function_epilogue_p): Likewise.
1631 (mips_in_function_epilogue_p): Likewise.
1632 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
1634 2007-09-19 Joel Brobecker <brobecker@adacore.com>
1636 * configure.ac: Add check for "etext".
1637 * configure, config.in: Regenerate.
1638 * maint.c (TEXTEND): Only define if either _etext or etext
1640 Disable the profiling functionality if TEXTEND is not defined.
1642 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
1644 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
1645 address register. Correct the call to frame_id_build.
1646 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
1649 2007-09-18 Joel Brobecker <brobecker@adacore.com>
1651 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
1652 the linetable past the function end.
1654 2007-09-18 James E. Wilson <wilson@specifix.com>
1656 * MAINTAINERS: Update my email address.
1658 2007-09-18 Jerome Guitton <guitton@adacore.com>
1660 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
1661 (inf_ttrace_delete_dying_threads_callback): New function.
1662 (inf_ttrace_resume): After resuming the execution, iterate over
1663 the dying threads to delete them for the thread list.
1664 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
1665 mark the corresponding thread as dying instead of removing it
1666 from the thread list.
1667 (inf_ttrace_thread_alive): return 0 for dying threads.
1669 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1671 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
1672 that return_frame is not null.
1674 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1676 * solib-svr4.c: Add include of "auxv.h".
1677 (enable_break): Use the AT_BASE auxiliary entry if available.
1678 * Makefile.in (solib-svr4.o): Update dependencies.
1680 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1682 * NEWS: Create a new section for the next release branch.
1683 Rename the section of the current branch, now that it has
1686 2007-09-17 Jerome Guitton <guitton@adacore.com>
1688 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1689 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1691 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1693 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1694 * mi/mi-cmds.h (mi_cmd_list_features): New.
1695 * mi/mi-main.c (mi_cmd_list_features): New.
1697 2007-09-11 Joel Brobecker <brobecker@adacore.com>
1699 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1700 * version.in: Bump version to 6.7.50-20070911-cvs.
1702 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1704 * thread.c (free_thread): Do not delete the step resume breakpoint
1707 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1709 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1710 * corelow.c (core_read_description): New.
1711 (init_core_ops): Set to_read_description.
1712 * gdbarch.sh: Add gdbarch_core_read_description.
1713 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1714 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1715 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1716 (mips_register_g_packet_guesses): Use them.
1717 (_initialize_mips_tdep): Initialize them.
1718 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1719 * gdbarch.h, gdbarch.c: Regenerated.
1721 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1723 * infrun.c (stepping_past_breakpoint): New global variable.
1724 (stepping_past_breakpoint_ptid): Likewise.
1725 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1726 Only switch threads if we need to single-step over a breakpoint hit
1727 in the previously selected thread. If stepping, remember previous
1728 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1729 switch_to_thread instead of copying its contents.
1730 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1731 prepare_to_proceed returns true.
1732 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1733 (context_switch): Call switch_to_thread.
1734 (handle_inferior_event): Switch back to previous thread if requested
1735 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1736 * gdbthread.h (switch_to_thread): Add prototype.
1737 * thread.c (switch_to_thread): Make global.
1739 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1741 * p-valprint.c: Fix 7 ARI reported problems.
1742 (pascal_val_print): Fix one operator at end of line issue.
1743 Use paddress function to remove use of
1744 deprecated_print_address_numeric function (2 times).
1745 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1746 (pascal_value_print): Fix 3 operator at end of line issues.
1748 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1751 * arm-tdep.c (arm_in_call_stub): Delete.
1752 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1754 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1756 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1759 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1760 Jim Blandy <jimb@codesourcery.com>
1762 * NEWS: Update description of string changes. Mention print/s.
1763 * c-valprint.c (textual_element_type): New.
1764 (c_val_print): Use it. Do not skip address printing for pointers
1765 with a string format.
1766 (c_value_print): Doc update.
1767 * dwarf2read.c (read_array_type): Use make_vector_type.
1768 * gdbtypes.c (make_vector_type): New.
1769 (init_vector_type): Use it.
1770 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1771 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1772 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1773 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1774 (make_vector_type): New.
1775 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1776 Call the language print routine for string format.
1777 (print_scalar_formatted): Call val_print for string format. Handle
1778 unsigned original types for char format.
1779 (validate_format): Do not reject string format.
1780 * stabsread.c (read_type): Use make_vector_type.
1781 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1783 2007-09-04 Michael Snyder <msnyder@access-company.com>
1785 * expprint.c (print_subexp_standard): Check strchr for null.
1786 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1788 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1790 * stabsread.c (patch_block_status): Guard against null.
1791 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1793 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1795 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1796 in internal error message.
1798 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1799 Daniel Jacobowitz <dan@codesourcery.com>
1801 * infcmd.c (post_create_inferior): Update comment.
1802 (run_command_1): Always call post_create_inferior with 0 as
1805 * i386-cygwin-tdep.h: New.
1806 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1807 (win32_xfer_shared_library): Make it extern.
1809 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1811 (win32_so_ops): Delete.
1812 (get_relocated_section_addrs): Delete.
1813 (solib_symbols_add): Delete.
1814 (register_loaded_dll): Delete.
1815 (win32_make_so): New.
1816 (handle_load_dll): Use win32_make_so.
1817 (win32_free_so): Free the passed in so.
1818 (win32_relocate_section_addresses): Delete.
1819 (win32_solib_create_inferior_hook): Delete.
1820 (handle_unload_dll): Don't add PE offset here. Free so with
1821 win32_free_so instead of free_so.
1822 (win32_special_symbol_handling): Delete.
1823 (get_win32_debug_event): Remove unneeded calls. Set state to
1824 TARGET_WAITKIND_LOADED on a dll unload.
1825 (do_initial_win32_stuff): Clear cygwin_load_start and
1827 (map_code_section_args): Delete.
1828 (dll_code_sections_add): Delete.
1829 (core_section_load_dll_symbols): Delete.
1830 (win32_xfer_shared_libraries): New.
1831 (win32_current_sos): Delete.
1832 (win32_xfer_partial): New.
1833 (open_symbol_file_object): Delete.
1834 (in_dynsym_resolve_code): Delete.
1835 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1836 of win32_ops. Remove win32_so_ops settings. Don't set
1837 current_target_so_ops here.
1839 * Makefile.in (i386_cygwin_tdep_h): New variable.
1840 (i386-cygwin-tdep.o): Update dependencies.
1841 (win32-nat.o): Update dependencies.
1843 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1844 Daniel Jacobowitz <dan@codesourcery.com>
1846 * gdbarch.sh (core_xfer_shared_libraries): New.
1848 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1850 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1852 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1853 (xml_escape_text): New.
1854 * xml-support.h (xml_escape_text): Declare.
1856 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1857 * config/i386/cygwin.mt (TDEPFILES): ... here.
1859 * win32-nat.c: (fetch_elf_core_registers): Delete.
1860 (win32_elf_core_fn): Delete.
1861 (_initialize_core_win32): Delete.
1863 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1864 "xml-support.h" and "gdbcore.h".
1865 (i386_win32_gregset_reg_offset): New.
1866 (I386_WIN32_SIZEOF_GREGSET): New.
1867 (i386_win32_regset_from_core_section): New.
1868 (win32_xfer_shared_library): New.
1869 (struct cpms_data): New.
1870 (core_process_module_section): New.
1871 (win32_core_xfer_shared_libraries): New.
1872 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1873 gregset_num_regs, sizeof_gregset members of tdep. Register
1874 regset_from_core_section and core_xfer_shared_libraries callbacks.
1876 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1877 * gdbarch.h, gdbarch.c: Regenerate.
1879 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1881 * corelow.c (core_xfer_partial): Pass writebuf to
1882 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1884 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1886 * arm-tdep.h (arm_skip_stub): Declare.
1887 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1889 (arm_pe_skip_trampoline_code): New function.
1890 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1891 gdbarch_skip_trampoline_code callback.
1892 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1894 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1896 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1898 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1900 * configure.ac: Add --with-expat.
1901 * configure: Regenerated.
1903 2007-09-03 Andreas Schwab <schwab@suse.de>
1905 * configure.ac: Accept --with-system-readline.
1906 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1907 * configure: Regenerate.
1908 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1910 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1912 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1913 Daniel Jacobowitz <dan@codesourcery.com>
1915 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1917 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1919 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1921 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1923 * top.c (print_gdb_version): Update for GPL version 3.
1925 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1927 * NEWS: Mention the build-id .debug files verification.
1929 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1931 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1933 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1935 * Makefile.in (symfile.o): Update dependencies.
1936 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1937 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1938 (struct build_id): New structure.
1939 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1940 (find_separate_debug_file): New variable BUILD_ID.
1941 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1943 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1945 * varobj.c (struct varobj): Fix comment
1946 for the type member not to lie when it can be
1949 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1951 Implement -var-info-path-expression.
1953 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1955 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1956 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1957 * varobj.c (struct varobj): New field 'path_expr'.
1958 (c_path_expr_of_child, cplus_path_expr_of_child)
1959 (java_path_expr_of_child): New.
1960 (struct language_specific): New field path_expr_of_child.
1961 (varobj_create): Initialize the path_expr field.
1962 (varobj_get_path_expr): New.
1963 (new_variable): Initialize the path_expr field.
1964 (free_variable): Free the path_expr field.
1965 (adjust_value_for_children_access): New parameter
1967 (c_number_of_children): Adjust.
1968 (c_describe_child): New parameter CFULL_EXPRESSION.
1969 Compute full expression.
1970 (c_value_of_child, c_type_of_child): Adjust.
1971 (cplus_number_of_children): Adjust.
1972 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1973 Compute full expression.
1974 (cplus_name_of_child, cplus_value_of_child)
1975 (cplus_type_of_child): Adjust.
1976 * varobj.h (varobj_get_path_expr): Declare.
1978 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1980 * mi/mi-cmd-var.c (print_varobj): If a varobj
1981 type is NULL, don't try to print it.
1983 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1985 * ppc-linux-nat.c (right_fill_reg): Delete.
1986 (supply_gregset): Use ppc_supply_gregset.
1987 (supply_fpregset): Use ppc_supply_fpregset.
1988 (fill_gregset): Use ppc_collect_gregset.
1989 (fill_fpregset): Use ppc_collect_fpregset.
1990 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1991 (right_supply_register, ppc_linux_supply_gregset): Delete.
1992 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1993 (ppc_linux_supply_fpregset): Delete.
1994 (ppc_linux_collect_gregset): New function.
1995 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1996 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1997 ppc_linux_supply_gregset, and ppc_collect_gregset.
1998 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1999 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
2000 (ppc_linux_regset_from_core_section): Update.
2001 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
2002 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
2003 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
2004 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
2005 (ppcobsd_collect_gregset): Likewise.
2006 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
2007 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
2008 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
2009 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
2010 (rs6000_aix64_reg_offsets): Likewise.
2011 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
2012 ppc_floating_point_unit_p.
2013 (rs6000_aix_collect_regset): Similarly.
2014 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
2015 when regsize is larger than regcache register size.
2016 (ppc_collect_reg): Similarly zero pad when regsize is larger than
2017 regcache register size.
2018 (ppc_greg_offset): New function, split out from..
2019 (ppc_supply_gregset): ..here. Separate code handling all regs from
2020 single reg case. Correct xer offset.
2021 (ppc_fpreg_offset): New function, split out from..
2022 (ppc_supply_fpregset): ..here. Separate code handling all regs from
2024 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
2025 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
2026 a fp unit, instead return if no fp.
2028 2007-08-29 Jim Blandy <jimb@codesourcery.com>
2030 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
2031 this code has not been compiled for two years.
2033 2007-08-29 Michael Snyder <msnyder@access-company.com>
2035 * event-top.c (gdb_readline2): Return after EOF.
2037 2007-08-29 Joel Brobecker <brobecker@adacore.com>
2039 * symtab.c: Remove a function that has been commented out 3 years ago.
2041 2007-08-29 Randolph Chung <tausq@debian.org>
2043 * hppa-tdep.c (hppa32_cannot_fetch_register)
2044 (hppa64_cannot_fetch_register): New functions.
2045 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
2046 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
2048 2007-08-28 Michael Snyder <msnyder@access-company.com>
2050 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
2051 check for null before calling check_typedef.
2053 * NEWS: Mention Coverity bug fixes.
2055 2007-08-27 Markus Deuling <deuling@de.ibm.com>
2057 * spu-tdep.c (spu_pointer_to_address): New function.
2058 (spu_integer_to_address): Likewise.
2059 (spu_gdbarch_init): Add spu_pointer_to_address and
2060 spu_integer_to_address to gdbarch.
2062 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
2064 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
2066 2007-08-23 Joel Brobecker <brobecker@adacore.com>
2068 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
2069 that contains the GDB license.
2070 * copying.awk: Adjust to the GPLv3 wording.
2071 * copying.c: Regenerate.
2073 2007-08-23 Joel Brobecker <brobecker@adacore.com>
2075 * copying.awk: Protoization, and i18n markup.
2077 2007-08-23 Joel Brobecker <brobecker@adacore.com>
2079 * config/djgpp/djconfig.sh: Switch license to GPLv3.
2080 * copyright.sh: Likewise.
2081 * gdb-events.sh: Likewise.
2082 * gdb_gcore.sh: Likewise.
2083 * gdb_mbuild.sh: Likewise.
2084 * gdbarch.sh: Likewise.
2085 * observer.sh: Likewise.
2086 * features/feature_to_c.sh: Likewise.
2087 * regformats/regdat.sh: Likewise.
2089 2007-08-23 Joel Brobecker <brobecker@adacore.com>
2091 Switch the license of all .c files to GPLv3.
2092 Switch the license of all .h files to GPLv3.
2093 Switch the license of all .cc files to GPLv3.
2095 2007-08-23 Joel Brobecker <brobecker@adacore.com>
2097 * configure.ac: Switch license to GPLv3.
2099 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
2101 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
2102 determine the file's FPU type.
2104 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
2106 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
2107 (mips_n32n64_push_dummy_call): Always increment float_argreg along
2108 with argreg. Use mips_n32n64_fp_arg_chunk_p.
2110 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
2112 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
2114 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
2115 (elf_lookup_lib_symbol): Fix formatting.
2117 2007-08-21 Michael Snyder <msnyder@access-company.com>
2119 * dbxread.c (read_dbx_symtab): Guard null deref.
2122 * valops.c (find_overload_match): Guard against NULL.
2124 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
2126 * MAINTAINERS (Patch Champions): Remove self.
2128 2007-08-21 Chris Smith <chris.smith@st.com>
2130 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
2133 2007-08-18 Michael Snyder <msnyder@access-company.com>
2135 * stabsread.c (dbx_lookup_type): Memory leak.
2137 * event-loop.c (delete_async_signal_handler): Move pointer null
2138 test to before pointer dereference.
2140 * ui-out.c (append_header_to_list): Possible cut and paste error.
2142 * MAINTAINERS: white space tweak.
2144 2007-08-17 Michael Snyder <msnyder@access-company.com>
2146 * stack.c (print_frame): Memory leak.
2148 * completer.c (filename_completer): Avoid memory leak.
2149 Remove unnecessary nested block.
2151 * c-exp.y (parse_number): Memory leak.
2153 * completer.c (location_completer): Must free 'fn_list', except
2154 in the one case where it is returned (as 'list').
2156 * varobj.c (value_of_root): Memory leak.
2158 * gdbtypes.h (virtual_base_list): Remove export decl.
2159 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
2160 (virtual_base_index): Memory leak.
2161 (virtual_base_index_skip_primaries): Ditto.
2163 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
2165 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
2166 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
2167 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
2168 (xtensa_read_register): New function.
2169 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
2170 (xtensa_insn_kind): New types.
2171 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
2172 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
2173 (xtensa_verify_config, xtensa_pseudo_register_read)
2174 (xtensa_pseudo_register_write, xtensa_extract_return_value)
2175 (xtensa_store_return_value)
2176 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
2177 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
2178 (xtensa_frame_this_id, xtensa_frame_prev_register)
2179 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
2180 (call0_frame_cache, call0_frame_get_reg_at_entry)
2181 (call0_classify_opcode, call0_track_op)
2182 (call0_analyze_prologue, call0_frame_cache): New functions.
2184 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
2186 * breakpoint.c (bpstat_free): New.
2187 (bpstat_clear): Use bpstat_free.
2188 (delete_breakpoint): Document why we cannot
2189 remove bpstats from stop_bpstat.
2190 * breakpoint.h (bpstat_free): Declare.
2192 2007-08-16 Michael Snyder <msnyder@access-company.com>
2194 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
2196 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
2197 Joel Brobecker <brobecker@adacore.com>
2199 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
2201 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
2202 Joel Brobecker <brobecker@adacore.com>
2204 * ada-lang.c (possible_user_operator_p): Alternative fix to last
2205 checkin guarding against NULL.
2207 2007-08-14 Michael Snyder <msnyder@access-company.com>
2209 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
2210 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
2211 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
2212 go at beginning of new line.
2214 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
2215 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
2216 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
2217 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
2218 tui-winsource.h, tui.c, tui.h: Function declarations and
2219 definitions, wrap long lines.
2221 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
2222 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
2223 Reformat block comments to GNU standard.
2225 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
2226 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
2227 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
2228 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
2229 tui.c, tui.h: Comment reformatting to coding standard (capitals,
2230 spaces after periods, etc).
2232 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
2233 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
2234 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
2235 tui-winsource.h: Whitespace changes, fix pointer declarations
2238 2007-08-14 Joel Brobecker <brobecker@adacore.com>
2239 Michael Snyder <msnyder@access-company.com>
2241 * ada-lang.c (field_alignment): Guard against NULL.
2243 2007-08-14 Joel Brobecker <brobecker@adacore.com>
2245 * MAINTAINERS (Global Maintainers): Add self.
2247 2007-08-14 Michael Snyder <msnyder@access-company.com>
2249 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
2251 * ada-lang.c (possible_user_operator_p): Guard against NULL.
2253 * varobj.c (cplus_describe_child): Guard against null.
2254 Use "NULL" instead of "0" to initialize pointers.
2256 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
2258 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
2259 to match any gdbarch with matching OSABI. Set default ABI and FPU
2260 after running the OSABI handler.
2262 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
2264 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
2265 * config/i386/linux.mt (TDEPFILES): ...to here.
2267 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
2269 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
2270 the 'silent' parameter and code to implement that.
2271 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
2273 * win32-nat.c: Adjust.
2276 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
2278 * breakpoint.c (update_breakpoints_after_exec): Don't
2279 set address to zero.
2281 2007-08-13 Michael Snyder <msnyder@access-company.com>
2283 * valops.c: Whitespace clean-up.
2285 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
2287 * event-top.c (command_line_handler): Memory leak.
2289 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
2290 No need to make copy.
2292 * source.c (find_source_lines): Require symtab 's'.
2294 2007-08-11 Michael Snyder <msnyder@access-company.com>
2296 * completer.c: Spelling fix in comments.
2298 2007-08-10 Michael Snyder <msnyder@access-company.com>
2300 * gdbtypes.c: Coding standard cleanup.
2301 * gdbtypes.c: Comment/whitespace cleanup.
2303 * stabsread.c (read_huge_number): Attempt to compute value before
2304 values that it depends on.
2306 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
2307 (decode_objc): Use "NULL" instead of 0.
2308 (find_method): Ditto.
2309 (decode_all_digits): Ditto.
2310 (decode_dollar): Ditto.
2312 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
2314 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
2316 * solib-svr4.c (enable_break): Don't free tmp_pathname until
2319 * completer.c: Comment/whitespace cleanup.
2321 2007-08-10 Joel Brobecker <brobecker@adacore.com>
2323 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
2325 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
2327 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
2328 allocated file descriptors.
2330 2007-08-10 Joel Brobecker <brobecker@adacore.com>
2332 * Makefile.in: Minor cleanup throughout; add some missing variables,
2333 add some missing rules, remove some rules that are no longer needed,
2334 and fix the dependencies in several rules.
2336 2007-08-10 Ludovic Courtès <ludo@gnu.org>
2338 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
2339 (scm_lang_h, scm_tags_h): New.
2340 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
2341 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
2342 * defs.h (enum language): Add `language_scm'.
2344 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
2347 2007-08-09 Ludovic Courtès <ludo@gnu.org>
2349 * MAINTAINERS (Write After Approval): Add myself.
2351 2007-08-09 Michael Snyder <msnyder@access-company.com>
2353 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
2355 2007-08-09 Joel Brobecker <brobecker@adacore.com>
2357 * solib-som.c (som_relocate_section_addresses): Stop saving
2358 the $CODE$ section in the so_list structure.
2360 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
2362 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
2363 (xtensa_register_group_t): Add entries for coprocessors.
2364 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
2365 (xtensa_add_reggroups): Likewise.
2366 (xtensa_register_reggroup_p): Likewise.
2367 (xtensa_coprocessor_register_group): New function.
2370 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2372 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
2374 2007-08-08 Michael Snyder <msnyder@access-company.com>
2376 * target.c (target_read_string): Guard against null.
2378 * varobj.c (value_of_root): Move alloc after return to avoid leak.
2380 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
2381 (tui_set_layout_for_display_command): Mem leak.
2383 * top.c (command_line_input): Memory leak.
2385 * solib-svr4.c (open_symbol_file_object): Memory leak.
2386 (svr4_current_sos): Ditto.
2387 (enable_break): Ditto.
2389 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
2391 * dwarf2read.c (add_partial_symbol): Memory leak.
2393 2007-08-06 Michael Snyder <msnyder@access-company.com>
2395 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
2397 2007-08-05 Jim Blandy <jimb@codesourcery.com>
2399 * macroexp.c (init_buffer): Remove testing code that overrides the
2400 caller's length guess.
2401 (gather_arguments): Use a larger initial size, now that the vector
2402 growth code has been exercised.
2404 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
2406 * solib-target.c (solib_target_relocate_section_addresses): Add
2407 orig_delta to addr_high.
2409 2007-08-04 Michael Snyder <msnyder@access-company.com>
2411 * remote-fileio.c (remote_fileio_func_write): Memory leak.
2413 * breakpoint.c (print_one_breakpoint): Off by one error.
2415 * tracepoint.c (add_register): Off by one error.
2416 (stringify_collection_list): Free malloc buffer.
2418 2007-08-03 Michael Snyder <msnyder@access-company.com>
2420 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
2421 stop memory leak, straighten out cleanups.
2423 * jv-lang.c (java_link_class_type): Guard against NULL.
2425 2007-08-02 Michael Snyder <msnyder@access-company.com>
2427 * gdbtypes.c (create_set_type): Test should only be done within
2428 the preceeding if block. Otherwise, variable is uninitialized.
2430 * gdbtypes.c (check_typedef): Guard NULL.
2432 2007-08-01 Michael Snyder <msnyder@access-company.com>
2434 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
2435 avoid dereference in lookup_cmd_1.
2437 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
2438 clean up long lines.
2439 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
2440 (tui_alloc_win_info): Ditto.
2441 (tui_add_content_elements): Ditto.
2442 * tui/tui-file.c (tui_file_magic): Ditto.
2444 2007-07-31 Michael Snyder <msnyder@access-company.com>
2446 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
2447 True and false paths are mutually exclusive.
2449 * event-top.c (command_line_handler): Add pedantic return.
2451 * f-valprint.c (info_common_command): Bail out to prevent null
2452 pointer deref. Break up a long line.
2454 * exec.c (xfer_memory): Remove redundant condition from 'if'.
2456 * symfile.c (reread_separate_symbols): Free xmalloced memory.
2458 * printcmd.c (build_address_symbolic): Remove dead code and dead
2461 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
2463 * linespec.c (minsym_found): Advance to the next line if possible.
2465 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
2467 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
2468 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
2469 solib-svr4.o, and add solib-target.o
2471 2007-07-27 Michael Snyder <msnyder@access-company.com>
2473 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
2475 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
2477 * MAINTAINERS (Write After Approval): Add myself.
2479 2007-07-26 Maciej W. Rozycki <macro@mips.com>
2481 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
2484 2007-07-25 Maciej W. Rozycki <macro@mips.com>
2486 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
2488 2007-07-24 Michael Snyder <msnyder@access-company.com>
2490 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
2491 'buffer' must cover both branches that call strcmp (Coverity).
2493 * stack.c (print_frame_args): Check return value of lookup_symbol.
2495 * ax-gdb.c (find_field): Guard against null ptr.
2497 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2499 * regformats/reg-spu.dat: Fix order of npc, id registers.
2501 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2503 * target.c (memory_xfer_partial): Accesses to unmapped overlay
2504 sections should always go to the executable file.
2506 2004-07-20 Chris Dearman <chris@mips.com>
2508 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
2509 prologue instructions.
2511 2007-07-20 Maciej W. Rozycki <macro@mips.com>
2513 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
2516 2007-07-20 Chris Dearman <chris@mips.com>
2517 Maciej W. Rozycki <macro@mips.com>
2519 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
2522 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
2523 Daniel Jacobowitz <dan@codesourcery.com>
2525 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
2526 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
2528 * NEWS: Mention gdbserver DLL support.
2530 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
2532 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
2534 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
2536 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
2539 2007-07-13 Kevin Buettner <kevinb@redhat.com>
2541 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
2544 2007-07-12 Kevin Buettner <kevinb@redhat.com>
2546 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
2547 (mep_analyze_prologue): Add case for BRA instruction.
2549 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2551 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
2553 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
2555 * breakpoint.c: Include "top.h".
2556 (breakpoint_1): Don't set convenience variable $_ if server prefix
2558 (_initialize_breakpoint): Describe this behaviour in command help.
2560 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
2562 * solib-target.c (library_list_start_segment): Cast address to
2565 2007-07-06 Mark Kettenis <kettenis@gnu.org>
2567 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
2568 for terminated processes.
2570 2007-07-05 Michael Snyder <msnyder@access-company.com>
2572 * event-top.c (cli_command_loop): Prompt string can (and should)
2573 be freed after call to readline (Coverity). Also move local var
2574 declarations into block where they are used.
2576 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
2577 should) be freed after call to readline (Coverity). Also move
2578 local var declarations into block where they are used.
2580 2007-07-03 Andreas Schwab <schwab@suse.de>
2582 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
2585 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
2586 Thiago Bauermann <bauerman@br.ibm.com>
2587 Joseph S. Myers <joseph@codesourcery.com>
2588 Daniel Jacobowitz <dan@codesourcery.com>
2590 * remote.c (remote_check_symbols): Use
2591 gdbarch_convert_from_func_ptr_addr.
2592 * infcall.c (find_function_addr): Handle function descriptors
2593 without debugging information.
2594 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
2595 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
2596 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
2597 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
2598 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
2599 allow SEC_CODE and SEC_DATA.
2600 (enable_break): Update calls. Pass current_target to solib_add.
2601 Use gdbarch_convert_from_func_ptr_addr.
2603 2007-07-03 Ilko Iliev <iliev@ronetix.at>
2604 Daniel Jacobowitz <dan@codesourcery.com>
2606 * symfile.c (print_transfer_performance): Avoid integer overflow.
2609 2007-07-03 Markus Deuling <deuling@de.ibm.com>
2611 * cp-namespace.c (lookup_symbol_file): Add block to
2612 lookup_symbol_global call.
2613 * Makefile.in (solist_h): Add dependency on symtab header.
2614 (symtab.o): Add dependency on solist header.
2615 * solib.c (solib_global_lookup): New function.
2616 * solib-svr4.c (scan_dyntag): Likewise.
2617 (elf_locate_base): Call helper routine scan_dyntag.
2618 (elf_lookup_lib_symbol): New function.
2619 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
2620 * solist.h (symtab.h): New include.
2621 (struct target_so_ops): New member lookup_lib_global_symbol.
2622 (solib_global_lookup): New prototype.
2623 * symtab.c: New include solist.h.
2624 (lookup_objfile_from_block): New function.
2625 (lookup_global_symbol_from_objfile): New function.
2626 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
2627 (lookup_symbol_global): Call library-specific lookup procedure.
2628 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
2630 * NEWS: Document framework.
2632 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2634 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
2637 * cli/cli-script.c (build_command_line): Update NULL check.
2639 2007-07-02 Michael Snyder <msnyder@access-company.com>
2641 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
2643 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2645 * Makefile.in (XMLFILES): Add library-list.dtd.
2646 (ALLDEPFILES): Add solib-target.o.
2647 (solib-target.o): New rule.
2648 * remote.c (PACKET_qXfer_libraries): New constant.
2649 (remote_protocol_features): Add qXfer:libraries:read.
2650 (remote_wait): Recognize library stop replies.
2651 (remote_async_wait): Likewise. Fix typo.
2652 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2653 (init_remote_async_ops): Fix typo.
2654 (_initialize_remote): Register "set remote library-info-packet".
2655 * solib-som.c (som_current_sos): Set addr_low and addr_high.
2656 * solib-target.c: New file.
2657 * solib.c (solib_map_sections): Use addr_low and addr_high instead
2659 (info_sharedlibrary_command): Likewise.
2660 (solib_add_library, solib_remove_library): New.
2661 * solist.h (struct so_list): Replace textsection with addr_low and
2663 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
2664 * NEWS: Describe new qXfer:libraries:read and shared library
2666 * features/library-list.dtd: New.
2668 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2670 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
2671 (start_remote): Use STOP_QUIETLY_REMOTE.
2672 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2673 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2674 Update to match shared library event breakpoint support. Only
2675 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2676 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2677 * fork-child.c (startup_inferior): Do not set
2678 inferior_ignoring_startup_exec_events
2679 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2681 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2683 2007-07-02 Markus Deuling <deuling@de.ibm.com>
2685 * breakpoint.c (insert_bp_location): Remove dead code
2686 (DISABLE_UNSETTABLE_BREAK).
2687 (disable_breakpoints_in_shlibs)
2688 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2690 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2692 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2693 Call insert_bp_location.
2695 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2697 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2700 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2702 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2705 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2707 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2708 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2709 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2710 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2711 to display_gdb_prompt.
2713 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2716 * target.c (memory_xfer_partial): Do not continue past targets with
2719 2007-06-30 Andreas Schwab <schwab@suse.de>
2721 * m68k-tdep.c (m68k_ps_type): New.
2722 (m68k_init_types): New.
2723 (m68k_register_type): Use m68k_ps_type for PS register.
2724 (_initialize_m68k_tdep): Call m68k_init_types.
2726 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2727 from the generic m68k arch.
2729 2007-06-28 Michael Snyder <msnyder@access-company.com>
2731 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2734 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2735 gdb_assert before using return value of find_thread_pid (Coverity).
2737 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2739 * cli/cli-script.c (build_command_line): Add null pointer guard
2742 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2744 * linux-thread-db.c (thread_db_attach): Delete.
2745 (thread_db_detach): Typo fix. Call target_mourn_inferior
2746 instead of fixing up proc_handle.
2747 (have_threads_callback, have_threads): New functions.
2748 (thread_db_wait): Remove dead proc_handle.pid check. Only
2749 translate PTIDs if we have registered threads. Check for new
2750 threads if we have none.
2751 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2752 (find_new_threads_callback): Only enable event reporting if TID == 0.
2753 (same_ptid_callback): New.
2754 (thread_db_get_thread_local_address): Check for new threads.
2755 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2756 or to_post_startup_inferior.
2758 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2760 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2761 is always active if SOFTWARE_SINGLE_STEP_P is true.
2762 (resume): Use gdbarch_software_single_step[_p] instead of
2763 SOFTWARE_SINGLE_STEP[_P].
2764 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2766 * gdbarch.sh (software_single_step): Remove target macro.
2767 * gdbarch.h, gdbarch.c: Regenerate.
2769 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2771 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2772 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2773 (struct gdbarch_swap, struct gdbarch_swap_registration,
2774 struct gdbarch_swap_registry, gdbarch_swap_registry,
2775 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2776 current_gdbarch_swap_in_hack): Remove.
2777 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2778 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2779 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2780 (deprecated_current_gdbarch_select_hack): Likewise.
2781 * gdbarch.h, gdbarch.c: Regenerate.
2783 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2785 * infrun.c (clear_proceed_status): Clean up stop_registers.
2786 (normal_stop): Allocate regcache for stop_registers.
2787 (struct inferior_status): Remove stop_registers member.
2788 (save_inferior_status): Do not save stop_registers.
2789 (restore_inferior_status): Do not restore stop_registers.
2790 (discard_inferior_status): Do not discard stop_registers.
2791 (build_infrun): Remove.
2792 (_initialize_infrun): Do not swap stop_registers.
2794 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2796 * remote.c (remote_address_masked): If remote_address_size is zero,
2797 default to target address size.
2798 (build_remote_gdbarch_data): Remove.
2799 (_initialize_remote): Do not swap remote_address_size.
2801 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2803 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2804 builtin_type_char, builtin_type_short, builtin_type_int,
2805 builtin_type_long, builtin_type_signed_char,
2806 builtin_type_unsigned_char, builtin_type_unsigned_short,
2807 builtin_type_unsigned_int, builtin_type_unsigned_long,
2808 builtin_type_float, builtin_type_double, builtin_type_long_double,
2809 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2810 builtin_type_bool, builtin_type_long_long,
2811 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2812 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2813 variable declaration with compatibility macro.
2814 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2815 builtin_type_char, builtin_type_short, builtin_type_int,
2816 builtin_type_long, builtin_type_signed_char,
2817 builtin_type_unsigned_char, builtin_type_unsigned_short,
2818 builtin_type_unsigned_int, builtin_type_unsigned_long,
2819 builtin_type_float, builtin_type_double, builtin_type_long_double,
2820 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2821 builtin_type_bool, builtin_type_long_long,
2822 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2823 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2824 (build_gdbtypes): Remove.
2825 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2826 opaque-type-resolution command here. Do not call
2827 deprecated_register_gdbarch_swap.
2829 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2831 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2832 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2833 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2835 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2836 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2837 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2838 (build_parse): Remove.
2839 (_initialize_parse): Do not call build_parse. Do not register
2840 msym_ types for gdbarch-swapping.
2842 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2843 instead of creating private type.
2845 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2846 (_initialize_xcoffread): Do not initialized them.
2847 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2849 * mdebugread.c (nodebug_func_symbol_type): Remove.
2850 (nodebug_var_symbol_type): Remove.
2851 (_initialize_mdebugread): Do not initialize them.
2852 (parse_symbol): Use builtin nodebug_ type instead of them.
2853 (parse_procedure): Likewise.
2855 2007-06-21 Chris Dearman <chris@mips.com>
2857 * printcmd.c (do_one_display): If display/i, start with an initial
2858 line feed to avoid bad layout if there is a branch delay slot.
2860 2007-06-21 Nigel Stephens <nigel@mips.com>
2861 Maciej W. Rozycki <macro@mips.com>
2863 * disasm.c (gdb_print_insn): Return the number of branch delay
2864 slot instructions too.
2865 * disasm.h (gdb_print_insn): Update prototype.
2866 * printcmd.c (branch_delay_insns): New variable to record the
2867 number of delay slot instructions after disassembling a branch.
2868 (print_formatted): Record the number of branch delay slot
2870 (do_examine): When disassembling, if the last instruction
2871 disassembled has any branch delay slots, then bump the count so
2872 that they get disassembled too.
2873 * tui/tui-disasm.c (tui_disassemble): Update the call to
2875 * NEWS: Document the new behaviour.
2877 2007-06-21 Andreas Schwab <schwab@suse.de>
2879 * regcache.c (write_pc_pid): Restore missing else.
2881 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2883 * regcache.c (regcache_print): Use get_current_regcache ()
2884 instead of current_regcache.
2886 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2889 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2890 instead of bfd_make_section_anyway.
2891 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2892 when clearing SEC_LOAD.
2894 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2896 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2897 registers for big-endian.
2899 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2901 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2902 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2903 * gdbarch.c, gdbarch.h: Regenerate.
2905 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2907 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2908 gdbarch_believe_pcc_promotion.
2909 * stabsread.c (define_symbol): Likewise.
2910 Remove unnecessary definition.
2911 * coffread.c (process_coff_symbol): Remove unnecessary code.
2912 * gdbarch.c, gdbarch.h: Regenerate.
2914 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2916 * configure.ac: Do not use ${objdir}.
2917 * configure: Regenerated.
2919 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2921 * gdbarch.sh (deprecated_register_size): Remove.
2922 * gdbarch.h, gdbarch.c: Regenerate.
2924 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2925 by INT_REGISTER_SIZE.
2926 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2927 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2928 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2929 set_gdbarch_deprecated_register_size.
2931 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2933 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2934 gdbarch_deprecated_fp_regnum.
2935 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2936 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2937 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2938 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2940 * gdbarch.c, gdbarch.h: Regenerate.
2942 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2944 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2945 gdbarch_extract_return_value.
2946 * value.c (generic_use_struct_convention): Likewise (comment).
2947 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2948 * arch-utils.c (legacy_return_value): Likewise.
2949 * arch-utils.h (legacy_return_value): Likewise (comment).
2950 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2951 gdbarch_store_return_value.
2952 * stack.c (return_command): Likewise (comment).
2953 * arch-utils.h (legacy_return_value): Likewise (comment).
2954 * arch-utils.c (legacy_return_value): Likewise.
2955 * gdbarch.c, gdbarch.h: Regenerate.
2957 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2959 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2960 gdbarch_deprecated_use_struct_convention.
2961 * arch-utils.c (legacy_return_value): Likewise.
2962 * gdbarch.c, gdbarch.h: Regenerate.
2964 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2966 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2967 gdbarch_deprecated_function_start_offset.
2968 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2969 * linespec.c (minsym_found): Likewise.
2970 * infrun.c (handle_inferior_event): Likewise.
2971 * infcall.c (find_function_addr): Likewise.
2972 * cli/cli-cmds.c (disassemble_command): Likewise.
2973 * gdbarch.c, gdbarch.h: Regenerate.
2975 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2977 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2978 gdbarch_deprecated_reg_struct_has_addr.
2979 * infcall.c (call_function_by_hand): Likewise.
2980 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2981 * gdbarch_deprecated_reg_struct_has_addr_p.
2982 * infcall.c (call_function_by_hand): Likewise.
2983 * gdbarch.c, gdbarch.h: Regenerate.
2985 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2987 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2988 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2989 (sh_gdbarch_init): Remove
2990 set_gdbarch_deprecated_extract_struct_value_address.
2991 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2992 (sh64_gdbarch_init): Remove
2993 set_gdbarch_deprecated_extract_struct_value_address.
2994 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2995 (ia64_gdbarch_init): Remove
2996 set_gdbarch_deprecated_extract_struct_value_address.
2997 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2998 (frv_gdbarch_init): Remove
2999 set_gdbarch_deprecated_extract_struct_value_address.
3000 * gdbarch.c, gdbarch.h: Regenerate.
3002 2007-06-18 Markus Deuling <deuling@de.ibm.com>
3004 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
3005 * v850-tdep.c (v850_unwind_sp): Likewise.
3006 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
3007 * stack.c (frame_info): Likewise.
3008 * stabsread.c (define_symbol): Likewise.
3009 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
3010 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
3011 (sh_unwind_sp): Likewise.
3012 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
3013 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
3014 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
3015 (rs6000_frame_cache): Likewise.
3016 * rs6000-nat.c (store_register): Likewise.
3017 * remote-mips.c (mips_wait): Likewise.
3018 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3019 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3020 (ppc64_sysv_abi_push_dummy_call): Likewise.
3021 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
3022 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
3023 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
3024 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
3025 * m32r-rom.c (m32r_supply_register): Likewise.
3026 * frame.c (frame_sp_unwind): Likewise.
3027 * mips-tdep.c (mips_insn16_frame_cache)
3028 (mips_insn32_frame_cache): Likewise (comment).
3029 * m68klinux-nat.c (supply_gregset): Likewise.
3030 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3031 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
3032 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3033 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
3034 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
3035 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
3036 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
3037 (cris_register_type, crisv32_register_type)
3038 (cris_dwarf2_frame_init_reg): Likewise.
3039 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
3040 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
3041 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
3042 * libunwind-frame.c (libunwind_frame_cache): Likewise.
3044 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
3045 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
3046 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
3047 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
3048 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
3049 * v850-tdep.c (v850_unwind_pc): Likewise.
3050 * stack.c (frame_info): Likewise.
3051 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
3052 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
3053 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
3054 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
3055 (sh_dsp_show_regs): Likewise.
3056 * shnbsd-tdep.c (shnbsd_supply_gregset)
3057 (shnbsd_collect_gregset): Likewise.
3058 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
3059 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
3060 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
3061 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
3062 (6000_register_reggroup_p, rs6000_unwind_pc)
3063 (rs6000_frame_cache): Likewise.
3064 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
3065 (rs6000_store_inferior_registers): Likewise.
3066 * remote-mips.c (mips_wait, mips_load): Likewise.
3067 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3068 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
3069 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
3070 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
3071 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
3072 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
3073 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
3074 (store_ppc_registers, fill_gregset): Likewise.
3075 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
3076 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
3077 * mipsnbsd-nat.c (getregs_supplies): Likewise.
3078 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
3079 * m68klinux-nat.c (supply_gregset): Likewise.
3080 * irix5-nat.c (fill_gregset): Likewise.
3081 * i386-tdep.c (i386_unwind_pc): Likewise.
3082 * i386-linux-nat.c (i386_linux_resume): Likewise.
3083 * frame.c (get_prev_frame_1): Likewise.
3084 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
3085 * dbug-rom.c (dbug_supply_register): Likewise.
3086 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
3087 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
3088 (cris_register_type, crisv32_register_type, crisv32_register_name)
3089 (cris_dwarf2_frame_init_reg, find_step_target)
3090 (cris_software_single_step, cris_supply_gregset)
3091 (cris_regnums): Likewise.
3092 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3093 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3094 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
3095 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
3096 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
3098 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
3099 * dbug-rom.c (dbug_supply_register): Likewise.
3100 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
3101 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
3102 * win32-nat.c (win32_resume): Likewise.
3103 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
3104 * m68k-tdep.c (m68k_register_type): Likewise.
3105 * m68klinux-nat.c (supply_gregset): Likewise.
3107 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
3108 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
3109 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
3110 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
3111 (fv_reg_base_num, dr_reg_base_num): Likewise.
3112 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
3113 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
3114 (sh64_extract_return_value, sh64_store_return_value)
3115 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
3116 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
3117 * procfs.c (procfs_fetch_registers, procfs_store_registers)
3118 (invalidate_cache): Likewise.
3119 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
3120 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
3121 (mipsnbsd_fill_fpreg): Likewise.
3122 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
3123 (mipsnbsd_store_inferior_registers): Likewise.
3124 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
3125 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
3126 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
3127 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
3128 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
3129 (fill_fpregset): Likewise.
3130 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
3131 * i386-tdep.h (struct_return): Likewise (comment).
3132 * i386-nto-tdep.c (i386nto_register_area): Likewise.
3133 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
3134 (go32_store_registers): Likewise.
3135 * alpha-tdep.c (alpha_next_pc): Likewise.
3136 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3137 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
3138 (alphabsd_store_inferior_registers): Likewise.
3139 * core-regset.c (fetch_core_registers): Likewise.
3140 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
3142 * gdbarch.c, gdbarch.h: Regenerate.
3144 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
3146 * coffread.c (coff_sym_fns): Add default_symfile_segments.
3147 * dbxread.c (start_psymtab): Check HAVE_ELF.
3148 (aout_sym_fns): Likewise.
3149 * elfread.c (elf_symfile_segments): New.
3150 (elf_sym_fns): Add elf_symfile_segments.
3151 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
3152 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
3153 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
3154 * somread.c (som_sym_fns): Use default_symfile_segments.
3155 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
3156 (init_objfile_sect_indices): Call symfile_find_segment_sections.
3157 (default_symfile_segments): New function.
3158 (syms_from_objfile): Update call to find_sym_fns.
3159 (symfile_get_segment_data, free_symfile_segment_data): New.
3160 (symfile_map_offsets_to_segments): New.
3161 (symfile_find_segment_sections): New.
3162 * symfile.h (struct symfile_segment_data): New.
3163 (struct sym_fns): Add sym_segments.
3164 (default_symfile_segments, symfile_get_segment_data)
3165 (free_symfile_segment_data): New prototypes.
3166 (symfile_map_offsets_to_segments): Likewise.
3167 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
3168 * Makefile.in (COMMON_OBS): Remove elfread.o.
3169 (elf_internal_h): New.
3170 (elfread.o): Update.
3171 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
3173 * config.in, configure: Regenerated.
3174 * NEWS: Mention qOffsets changes.
3176 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3178 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
3179 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
3180 Replace global variable declaration with compatibility macro.
3181 (struct builtin_m2_type): New data type.
3182 (builtin_m2_type): Add prototype.
3183 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
3184 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
3185 Remove global variables.
3186 (m2_language_arch_info): Use builtin_m2_type instead of variables.
3187 (build_m2_types): New function.
3188 (m2_type_data): New variable.
3189 (builtin_m2_type): New function.
3190 (_initialize_m2_language): Do not build data types. Register
3191 m2_type_data per-gdbarch data.
3193 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3195 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
3196 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
3197 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
3198 builtin_type_f_real_s8, builtin_type_f_real_s16,
3199 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
3200 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
3201 variable declaration with compatibility macro.
3202 (struct builtin_f_type): New data type.
3203 (builtin_f_type): Add prototype.
3204 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
3205 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
3206 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
3207 builtin_type_f_real_s8, builtin_type_f_real_s16,
3208 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
3209 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
3210 (f_language_arch_info): Use builtin_f_type instead of variables.
3211 (build_fortran_types): Build builtin_f_type structure instead of
3212 setting global type variables.
3213 (f_type_data): New variable.
3214 (builtin_f_type): New function.
3215 (_initialize_f_language): Do not call build_fortran_types. Do not
3216 swap global type variables. Register f_type_data per-gdbarch data.
3218 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3220 * f-lang.c (_initialize_f_language): Do not initialize or
3221 swap builtin_type_string.
3223 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3225 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
3226 value_of_builtin_frame_reg): Remove.
3227 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
3228 inactive call to value_of_builtin_frame_reg.
3230 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3232 * gdbarch.sh (bfd_vma_bit): Remove.
3233 * gdbarch.c, gdbarch.h: Regenerate.
3235 * gdbtypes.h (builtin_bfd_vma_type): Remove.
3236 * gdbtypes.h (builtin_bfd_vma_type): Remove.
3237 (build_gdbtypes): Do not initialize it.
3238 (_initialize_gdbtypes): Do not swap it.
3240 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3242 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
3243 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
3244 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
3245 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
3246 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
3247 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
3248 builtin_type_vec64, builtin_type_vec128): Remove.
3249 (init_simd_type): Remove.
3250 (init_vector_type): Make global.
3251 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
3252 (build_gdbtypes): Do not build vector types.
3253 (_initialize_gdbtypes): Do not swap vector types.
3254 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
3255 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
3256 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
3257 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
3258 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
3259 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
3260 builtin_type_vec64, builtin_type_vec128): Remove declarations.
3261 (init_vector_type): Add prototype.
3263 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
3264 i386_sse_type members.
3265 (i386_mmx_type, i386_sse_type): Change from variables to functions.
3266 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
3267 (i386_init_types): Do not build vector types.
3268 (i386_mmx_type, i386_sse_type): New functions.
3269 (i386_register_type): Call them instead of using global variables.
3270 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
3271 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
3272 of using global variable.
3274 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
3275 and ppc_builtin_type_vec128 members.
3276 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
3277 (rs6000_builtin_type_vec128): Likewise.
3278 (rs6000_register_type): Call them instead of using builtin_type_vec64
3279 and builtin_type_vec128.
3280 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
3282 * spu-tdep.c (struct gdbarch_tdep): New data type.
3283 (spu_builtin_type_vec128): Remove variable.
3284 (spu_builtin_type_vec128): New function.
3285 (spu_register_type): Call it instead of using global variable.
3286 (spu_gdbarch_init): Allocate tdep structure.
3287 (spu_init_vector_type): Remove function.
3288 (_initialize_spu_tdep): Do not call it.
3290 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3292 * amd64-tdep.c (struct amd64_register_info): Remove.
3293 (amd64_register_info): Remove.
3294 (amd64_register_names): New static variable.
3295 (AMD64_NUM_REGS): Use amd64_register_names instead of
3296 amd64_register_info.
3297 (amd64_register_name): Likewise.
3298 (amd64_register_type): Do not refer to amd64_register_info.
3300 * s390-tdep.c (struct s390_register_info): Remove.
3301 (s390_register_info): Remove.
3302 (s390_register_name): Do not refer to s390_register_info.
3303 (s390_register_type): Likewise.
3305 * sparc64-tdep.c (struct sparc64_register_info): Remove.
3306 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
3307 (sparc64_register_names, sparc64_pseudo_register_names): New.
3308 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
3309 sparc64_register_names and sparc64_pseudo_register_names instead of
3310 sparc64_register_info and sparc64_pseudo_register_info.
3311 (sparc64_register_name): Likewise.
3312 (sparc64_register_type): Do not refer to sparc64_register_info
3313 and sparc64_pseudo_register_info.
3315 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3317 * c-lang.c (cplus_builtin_types): Remove.
3318 (enum cplus_primitive_types): New data type.
3319 (cplus_language_arch_info): New function.
3320 (cplus_language_defn): Set la_language_arch_info member. Do not set
3321 la_builtin_type_vector and string_char_type members.
3323 * f-lang.c (f_builtin_types): Remove.
3324 (enum f_primitive_types): New data type.
3325 (f_language_arch_info): New function.
3326 (f_language_de): Set la_language_arch_info member. Do not set
3327 la_builtin_type_vector and string_char_type members.
3329 * m2-lang.c (m2_builtin_types): Remove.
3330 (enum m2_primitive_types): New data type.
3331 (m2_language_arch_info): New function.
3332 (m2_language_defn): Set la_language_arch_info member. Do not set
3333 la_builtin_type_vector and string_char_type members.
3335 * objc-lang.c (objc_builtin_types): Remove.
3336 (objc_language): Set la_language_arch_info member. Do not set
3337 la_builtin_type_vector and string_char_type members.
3339 * p-lang.c (pascal_builtin_types): Remove.
3340 (enum pascal_primitive_types): New data type.
3341 (pascal_language_arch_info): New function.
3342 (pascal_language_defn): Set la_language_arch_info member. Do not set
3343 la_builtin_type_vector and string_char_type members.
3345 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3347 * regcache.c (struct regcache): Add ptid_t member.
3348 (regcache_xmalloc): Initialize it.
3349 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
3350 (regcache_dup): Likewise.
3351 (regcache_dup_no_passthrough): Likewise.
3352 (current_regcache): Make static.
3353 (registers_ptid): Remove variable.
3354 (get_thread_regcache): New function.
3355 (get_current_regcache): New function.
3356 (registers_changed): Implement by freeing current regcache.
3357 (regcache_raw_read): Do not refer to current_regcache. Set
3358 inferior_ptid to regcache->ptid while calling target routines.
3359 (regcache_raw_write): Likewise.
3360 (regcache_raw_supply): Do not refer to current_regcache.
3361 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
3362 (write_pc_pid): Likewise.
3363 (build_regcache): Remove.
3364 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
3365 or deprecated_register_gdbarch_swap. Do not initialize
3367 * regcache.h (get_current_regcache): Add prototype.
3368 (get_thread_regcache): Likewise.
3369 (current_regcache): Remove declaration.
3371 * corelow.c (core_open): Replace current_regcache by
3372 get_current_regcache ().
3373 * frame.c (frame_pop): Likewise.
3374 (put_frame_register): Likewise.
3375 (get_current_frame, create_new_frame): Likewise.
3376 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
3377 * stack.c (return_command): Likewise.
3378 * infcall.c (call_function_by_hand): Likewise.
3379 * infrun.c (resume): Likewise.
3380 (save_inferior_status, restore_inferior_status): Likewise.
3381 * linux-fork.c (fork_load_infrun_state): Likewise.
3382 (fork_save_infrun_state): Likewise.
3383 * win32-nat.c (win32_resume): Likewise.
3384 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
3385 * monitor.c (monitor_wait): Likewise.
3386 * remote.c (remote_wait): Likewise.
3387 * remote-mips.c (mips_wait): Likewise.
3389 * bsd-kvm.c (bsd_kvm_open): Likewise
3390 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
3391 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
3392 * i386-linux-nat.c (i386_linux_resume): Likewise.
3393 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
3394 (ia64_linux_stopped_data_address): Likewise.
3396 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
3397 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3398 * mep-tdep.c (current_me_module, current_options): Likewise.
3399 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
3401 * linux-nat.c (linux_nat_do_thread_registers): Use thread
3402 regcache instead of current_regcache. Call target_fetch_registers.
3403 (linux_nat_corefile_thread_callback): Update call site.
3404 (linux_nat_do_registers): Likewise.
3405 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
3406 of current_regcache.
3407 (procfs_make_note_section): Likewise.
3408 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
3409 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3410 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
3411 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3413 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3415 * regcache.c (read_register, read_register_pid): Remove.
3416 (write_register, write_register_pid): Likewise.
3417 * regcache.h (read_register, read_register_pid): Remove prototype.
3418 (write_register, write_register_pid): Likewise.
3420 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3422 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
3423 (write_pc): Likewise. Remove default implementation, add predicate.
3424 * gdbarch.c, gdbarch.h: Regenerate.
3425 * regcache.c (read_pc_pid): Use current regcache instead of calling
3427 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
3429 (generic_target_write_pc): Remove.
3430 * inferior.h (generic_target_write_pc): Remove.
3431 * frv-tdep.c (frv_gdbarch_init): Do not install it.
3432 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3433 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3434 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3435 * sh-tdep.c (sh_gdbarch_init): Likewise.
3436 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3438 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
3439 argument. Use REGCACHE instead of calling read_register_pid.
3440 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
3441 * hppa-tdep.c (hppa_read_pc): Likewise.
3442 * hppa-tdep.h (hppa_read_pc): Likewise.
3443 * ia64-tdep.c (ia64_read_pc): Likewise.
3444 * m32r-tdep.c (m32r_read_pc): Likewise.
3445 * mep-tdep.c (mep_read_pc): Likewise.
3446 * mn10300-tdep.c (mn10300_read_pc): Likewise.
3447 * spu-tdep.c (spu_read_pc): Likewise.
3449 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
3450 argument. Use REGCACHE instead of calling write_register_pid.
3451 * avr-tdep.c (avr_write_pc): Likewise.
3452 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
3453 * hppa-tdep.c (hppa_write_pc): Likewise.
3454 * hppa-tdep.h (hppa_write_pc): Likewise.
3455 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
3456 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
3457 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
3458 * ia64-tdep.c (ia64_write_pc): Likewise.
3459 * ia64-tdep.h (ia64_write_pc): Likewise.
3460 * m32r-tdep.c (m32r_write_pc): Likewise.
3461 * m88k-tdep.c (m88k_write_pc): Likewise.
3462 * mep-tdep.c (mep_write_pc): Likewise.
3463 * mips-tdep.c (mips_write_pc): Likewise.
3464 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
3465 * mn10300-tdep.c (mn10300_write_pc): Likewise.
3466 * sparc-tdep.c (sparc_write_pc): Likewise.
3467 * spu-tdep.c (spu_write_pc): Likewise.
3469 * mips-tdep.c (read_signed_register): Remove.
3470 (read_signed_register_pid): Likewise.
3471 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
3472 Use REGCACHE instead of calling read_signed_register_pid.
3474 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3476 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
3477 * gdbarch.c, gdbarch.h: Regenerate.
3478 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
3479 (push_dummy_code): Likewise. Pass it to callee.
3480 (call_function_by_hand): Pass current regcache to push_dummy_code.
3482 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
3483 argument. Use it instead of current_regcache.
3485 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
3486 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
3488 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3490 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
3491 * gdbarch.c, gdbarch.h: Regenerate.
3492 * infrun.c (handle_inferior_event): Pass current frame to
3493 gdbarch_get_longjmp_target.
3495 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
3496 Read registers from FRAME instead of using read_register.
3497 Use get_frame_arch instead of current_gdbarch.
3498 * arm-tdep.c (arm_get_longjmp_target): Likewise.
3499 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3500 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3501 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
3502 (mips64_linux_get_longjmp_target): Likewise.
3503 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3505 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3507 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
3508 * gdbarch.c, gdbarch.h: Regenerate.
3509 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
3510 * arch-utils.h (generic_skip_trampoline_code): Likewise.
3511 * infrun.c (handle_inferior_event): Pass current frame to
3512 gdbarch_skip_trampoline_code and skip_language_trampoline.
3514 * language.c (unk_lang_trampoline): Add FRAME argument.
3515 (skip_language_trampoline): Add FRAME argument. Pass it to
3516 skip_trampoline callback.
3517 * language.h: Add forward declaration of struct frame_info.
3518 (struct language_defn): Add FRAME argument to skip_trampoline.
3519 (skip_language_trampoline): Add FRAME argument.
3520 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
3521 to skip_trampoline callback.
3522 * cp-abi.h: Add forward declaration of struct frame_info.
3523 (cplus_skip_trampoline): Add FRAME argument.
3524 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
3525 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
3526 to gdbarch_skip_trampoline_code.
3527 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
3528 to gdbarch_skip_trampoline_code.
3530 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
3531 * symtab.h (find_solib_trampoline_target): Likewise.
3532 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
3533 find_solib_trampoline_target.
3535 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
3536 from FRAME instead of calling read_register.
3538 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
3539 argument. Read registers from FRAME instead of using read_register.
3540 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
3541 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
3543 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
3546 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
3548 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
3549 registers from FRAME instead of using read_signed_register.
3551 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
3553 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
3554 instead of using read_register.
3555 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
3556 ppc64_standard_linkage_target.
3557 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
3558 Pass it to find_solib_trampoline_target. Read registers from FRAME
3559 instead of using read_register.
3561 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
3564 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3566 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
3568 * gdbarch.c, gdbarch.h: Regenerate.
3569 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
3571 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
3572 registers from FRAME instead of using read_register.
3573 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3574 to alpha_next_pc. Use get_frame_pc instead of read_pc.
3575 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
3578 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
3579 from FRAME instead of using read_register.
3580 (thumb_get_next_pc): Likewise.
3581 (arm_get_next_pc): Likewise.
3582 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3583 to arm_get_next_pc. Use get_frame_pc instead of read_register.
3584 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
3587 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
3588 from FRAME instead of using read_register.
3589 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3590 to find_step_target.
3592 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
3593 from FRAME instead of using read_register / read_signed_register.
3594 (extended_mips16_next_pc): Likewise.
3595 (mips16_next_pc): Likewise.
3596 (mips_next_pc): Likewise.
3597 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3598 to mips_next_pc. Use get_frame_pc instead of read_pc.
3599 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
3602 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
3603 of current frame. Read registers from FRAME.
3604 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
3605 branch_dest. Use get_frame_pc instead of read_pc.
3606 (rs6000_software_single_step): Likewise.
3607 (bl_to_blrl_insn_p): Do not call branch_dest.
3608 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
3611 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
3612 Read registers from FRAME instead of current regcache.
3613 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
3614 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
3615 * sparc-tdep.c (sparc_address_from_register): Remove.
3616 (sparc_analyze_control_transfer): Pass FRAME argument instead of
3617 GDBARCH. Pass FRAME to step_trap callback.
3618 (sparc_step_trap): Add FRAME argument.
3619 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3620 to sparc_analyze_control_transfer. Read registers from FRAME instead
3621 of calling sparc_address_from_register.
3622 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
3624 (sparc_address_from_register): Remove prototype.
3625 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
3626 (sparcnbsd_step_trap): Add FRAME argument.
3628 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
3629 by FRAME. Read registers from FRAME instead of REGCACHE.
3631 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3633 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
3634 instead of calling read_register.
3636 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
3637 calling write_register.
3639 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
3640 calling write_register.
3642 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
3643 instead of calling read_register.
3644 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
3645 instead of calling read_register and write_register.
3647 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
3648 instead of current_regcache.
3650 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
3651 of calling write_register.
3652 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
3653 parameter instead of current_regcache.
3655 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
3656 instead of calling read_register.
3657 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
3658 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
3659 (mips_n32n64_push_dummy_call): Likewise.
3660 (mips_o32_push_dummy_call): Likewise.
3661 (mips_o64_push_dummy_call): Likewise.
3663 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
3664 parameter instead of current_regcache.
3666 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
3667 Use it instead of read_register and write_register.
3668 (xtensa_register_read_masked): Likewise.
3669 (xtensa_pseudo_register_read): Update call.
3670 (xtensa_pseudo_register_write): Likewise.
3671 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
3672 instead of calling read_register.
3673 (xtensa_push_dummy_call): Update comment.
3675 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3677 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3678 by frame_unwind_register_signed calls.
3679 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3680 frame allocations when called with NULL NEXT_FRAME parameter.
3681 (read_next_frame_reg): Remove.
3683 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3684 instead of reading the FPSCR register.
3685 (sh_frame_cache): Pass unwound FPSCR register value to
3686 sh_analyze_prologue.
3687 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3689 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3690 instead of reading the CTBP register.
3691 (v850_frame_cache): Pass unwound CTBP register value to
3692 v850_analyze_prologue.
3694 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3696 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3697 * sh-tdep.c (sh_show_regs): Likewise.
3698 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3699 (sh_generic_show_regs): Add FRAME parameter. Use register
3700 values from that frame instead of calling read_register.
3701 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3702 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3703 sh_dsp_show_regs): Likewise.
3704 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3705 sh64_show_regs): Likewise.
3707 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3709 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3710 current regcache instead of calling read_register.
3712 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3714 * mep-tdep.c (current_me_module): Read from current regcache
3715 instead of calling read_register.
3716 (current_options): Likewise.
3718 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3720 * cris-tdep.c (cris_stopped_data_address): Read register values
3721 from current frame instead of calling read_register.
3722 * frv-tdep.c (frv_stopped_data_address): Likewise.
3724 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3726 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3727 instead of write_register (PC_REGNUM, ...).
3729 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3731 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3732 explaining why the PC adjustment code is necessary.
3734 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3736 * m68k-tdep.h (enum m68k_flavour): New.
3737 (struct gdbarch_tdep): New fields
3738 float_return, flavour and fpregs_present.
3739 * m68k-tdep.c (m68k_register_type): Use
3740 fpregs_present and conditionalize floating
3741 registers type on flavour.
3742 (m68k_register_names): New.
3743 (m68k_register_name): Use the above.
3744 (m68k_convert_register_p): Consult fpregs_present.
3745 (m68k_register_to_value, m68k_value_to_register):
3746 Use register_type to obtain the type of floating
3748 (m68k_svr4_extract_return_value): Check tdep->float_return.
3749 Use register_type to get the type of floating
3751 (m68k_svr4_store_return_value): Likewise.
3752 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3753 (m68k_analyze_register_saves): Likewise.
3754 (m68k_gdbarch_init): Extract infromation
3755 from XML description, if present. Guess coldfire by
3756 looking at the file, if present. Conditionalize
3757 setting of long double format. Set decr_pc_after_break
3758 to 2 on coldfire and fido. Enable XML-driven
3759 register description.
3760 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3761 size of tdep->fpreg_type, as opposed to hardcoded value.
3762 * Makefile.in (m68k-tdep.o): Update dependencies.
3764 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3766 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3767 qXfer:spu:write remote packet types.
3769 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3771 * xml-tdesc.c (tdesc_start_target): New.
3772 (target_attributes): New.
3773 (tdesc_elements): Use it.
3774 * features/gdb-target.dtd: Add #FIXED version attribute for
3777 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3779 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3781 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3783 * fork-child.c (fork_inferior): Update comment.
3785 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3787 * features/Makefile: Generate regformats for mips-linux and
3789 * features/sort-regs.xsl: Correct typo.
3790 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3791 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3794 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3796 * config/mips/linux.mh (TDEP_XML): New.
3797 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3798 * mips-linux-nat.c (mips_linux_register_addr): Handle
3799 MIPS_RESTART_REGNUM.
3800 (mips64_linux_register_addr): Likewise.
3801 (super_xfer_partial, mips_linux_xfer_partial): New.
3802 (_initialize_mips_linux_nat): Add them to the target_ops.
3803 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3804 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3805 (mips_linux_o32_sigframe_init)
3806 (mips_linux_n32n64_sigframe_init): Likewise.
3807 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3808 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3809 "org.gnu.gdb.mips.linux" feature.
3810 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3811 (mips_linux_restart_reg_p): New prototype.
3812 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3813 initialization routine.
3814 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3816 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3818 * Makefile.in (mips-tdep.o): Update.
3819 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3820 (mips_n32_n64_aliases, mips_register_aliases): New.
3821 (mips_register_name): Call tdesc_register_name.
3822 (mips_tdesc_register_reggroup_p): New.
3823 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3824 (mips_gdbarch_init): Add target-described register support.
3825 Register aliases for register names.
3826 * target-descriptions.c (tdesc_register_name): Make global.
3827 (tdesc_register_in_reggroup_p): New function, broken out from
3828 tdesc_register_reggroup_p.
3829 (tdesc_register_reggroup_p): Use it.
3830 * target-descriptions.h (tdesc_register_name)
3831 (tdesc_register_in_reggroup_p): New prototypes.
3832 * NEWS: Correct formatting. Mention MIPS register support.
3833 * features/mips-cp0.xml, features/mips-fpu.xml,
3834 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3835 features/mips64-cpu.xml: New files.
3837 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3839 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3840 * valops.c (value_cast): Likewise.
3841 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3842 * ui-out.c (ui_out_field_core_addr): Likewise.
3843 * tracepoint.c (tracepoints_info): Likewise.
3844 * symtab.c (print_msymbol_info): Likewise.
3845 * solib-irix.c (irix_current_sos)
3846 (irix_open_symbol_file_object): Likewise.
3847 * remote.c (build_remote_gdbarch_data): Likewise.
3848 * prologue-value.c (make_pv_area): Likewise.
3849 * procfs.c (info_mappings_callback): Likewise.
3850 * printcmd.c (print_scalar_formatted)
3851 (deprecated_print_address_numeric): Likewise.
3852 * memattr.c (mem_info_command): Likewise.
3853 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3854 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3855 * exec.c (print_section_info): Likewise.
3856 * dwarf2read.c (read_subrange_type): Likewise.
3857 * dwarf2loc.c (find_location_expression): Likewise.
3858 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3859 (signed_address_type, execute_stack_op): Likewise.
3860 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3861 * gdbarch.c, gdbarch.h: Regenerate.
3863 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3865 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3866 * arch-utils.c (show_architecture): Likewise.
3867 * remote-mips.c (mips_open): Likewise
3868 * nto-tdep.c (nto_find_and_open_solib)
3869 (nto_init_solib_absolute_prefix): Likewise.
3870 * nto-procfs (procfs_open): Likewise.
3871 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3872 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3873 * gdbarch.c, gdbarch.h: Regenerate.
3875 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3877 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3878 * gdbtypes.c (build_flt): Likewise.
3879 * gdbarch.c, gdbarch.h: Regenerate.
3881 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3883 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3884 gdbarch_breakpoint_from_pc.
3885 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3886 * remote.c (remote_insert_breakpoint)
3887 (remote_insert_hw_breakpoint): Likewise.
3888 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3889 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3890 * breakpoint.h (bp_target_info): Likewise (comment).
3891 * breakpoint.c (read_memory_nobpt): Likewise.
3892 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3893 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3894 * gdbarch.c, gdbarch.h: Regenerate.
3896 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3898 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3899 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3900 * solib-pa64.c (read_dynamic_info): Likewise.
3901 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3902 * solib.c (info_sharedlibrary_command): Likewise.
3903 * s390-nat.c (SUBOFF): Likewise.
3904 * p-valprint.c (pascal_val_print): Likewise.
3905 * procfs.c (info_proc_mappings): Likewise.
3906 * printcmd.c (decode_format): Likewise.
3907 * nto-tdep.c (nto_truncate_ptr): Likewise.
3908 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3909 (mips64_linux_get_longjmp_target): Likewise.
3910 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3911 * jv-valprint.c (java_value_print): Likewise.
3912 * jv-lang.c (get_java_object_header_size): Likewise.
3913 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3914 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3915 (hppa_hpux_unwind_adjust_stub): Likewise.
3916 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3917 * gdbtypes.c (make_pointer_type, make_reference_type)
3918 (smash_to_memberptr_type): Likewise.
3919 * gdbarch.c, gdbarch.h: Regenerate.
3921 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3923 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3924 (print_gp_register_row): Stop before printing a register bigger
3925 than the ABI register size.
3926 (mips_print_registers_info): Update call to mips_print_register.
3928 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3930 * expression.h (enum exp_opcode): Document a register name for
3932 * parse.c (write_dollar_variable): Write the register name for
3934 (operator_length_standard): Expect the register name following
3936 * ada-lang.c (resolve_subexp): Likewise.
3937 * ax-gdb.c (gen_expr): Likewise.
3938 * eval.c (evaluate_subexp_standard): Likewise.
3939 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3941 * tracepoint.c (encode_actions): Likewise.
3943 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3945 * utils.c (set_screen_size): Use INT_MAX for default columns.
3947 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3949 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3950 qXfer:spu:write packet types.
3952 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3954 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3955 * gdbarch.c, gdbarch.h: Regenerate.
3957 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3959 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3960 gdbarch_stab_reg_to_regnum.
3961 * stabsread.c (define_symbol): Likewise.
3962 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3963 gdbarch_ecoff_reg_to_regnum.
3964 * mdebugread.c (parse_symbol): Likewise.
3965 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3966 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3967 gdbarch_dwarf_reg_to_regnum.
3968 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3969 * coffread.c (process_coff_symbol): Likewise.
3970 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3971 gdbarch_dwarf2_reg_to_regnum.
3972 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3973 (locexpr_describe_location): Likewise.
3974 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3975 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3976 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3977 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3978 * gdbarch.c, gdbarch.h: Regenerate.
3980 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3982 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3983 gdbarch_smash_text_address.
3984 * somread.c (som_symtab_read): Likewise.
3985 * elfread.c (record_minimal_symbol): Likewise.
3986 * dbxread.c (process_one_symbol): Likewise.
3987 * coffread.c (coff_symtab_read): Likewise.
3988 * gdbarch.c, gdbarch.h: Regenerate.
3990 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3992 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3993 * findvar.c (value_from_register): Likewise.
3994 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3995 * valops.c (value_assign): Likewise.
3996 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3997 gdbarch_convert_register_p.
3998 * findvar.c (value_from_register): Likewise.
3999 * valops.c (value_assign): Likewise.
4000 * gdbarch.c, gdbarch.h: Regenerate.
4002 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4004 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
4005 gdbarch_register_sim_regno.
4006 * sim-regno.h (sim_regno): Likewise (comment).
4007 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
4008 * gdbarch.c, gdbarch.h: Regenerate.
4010 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4012 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
4013 gdbarch_virtual_frame_pointer.
4014 * tracepoint.c (encode_actions): Likewise.
4015 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
4016 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
4017 * gdbarch.c, gdbarch.h: Regenerate.
4019 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4021 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
4022 * p-lang.c (pascal_create_fundamental_type): Likewise.
4023 * objc-lang.c (objc_create_fundamental_type): Likewise.
4024 * mdebugread.c (_initialize_mdebugread): Likewise.
4025 * m2-lang.c (m2_create_fundamental_type)
4026 (_initialize_m2_language): Likewise.
4027 * gdbtypes.c (build_gdbtypes): Likewise.
4028 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4029 * doublest.c (floatformat_from_length): Likewise.
4030 * c-lang.c (c_create_fundamental_type): Likewise.
4031 * ada-lang.c (ada_create_fundamental_type)
4032 (ada_language_arch_info): Likewise.
4033 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
4034 * value.c (unpack_double): Likewise (comment).
4035 * gdbtypes.c (build_gdbtypes): Likewise.
4036 * doublest.c (floatformat_from_length): Likewise.
4037 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
4038 * valarith.c (value_binop): Likewise.
4039 * p-lang.c (pascal_create_fundamental_type): Likewise.
4040 * objc-lang.c (objc_create_fundamental_type): Likewise.
4041 * mdebugread.c (_initialize_mdebugread): Likewise.
4042 * m2-lang.c (m2_create_fundamental_type): Likewise.
4043 * gdbtypes.c (build_gdbtypes): Likewise.
4044 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4045 * doublest.c (floatformat_from_length): Likewise.
4046 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
4047 * c-lang.c (c_create_fundamental_type): Likewise.
4048 * ada-lex.l (processReal): Likewise.
4049 * ada-lang.c (ada_create_fundamental_type)
4050 (ada_language_arch_info): Likewise.
4051 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
4052 * value.c (unpack_double): Likewise (comment).
4053 * gdbtypes.c (build_gdbtypes): Likewise.
4054 * doublest.c (floatformat_from_length): Likewise.
4055 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
4056 gdbarch_long_double_bit.
4057 * p-lang.c (pascal_create_fundamental_type): Likewise.
4058 * objc-lang.c (objc_create_fundamental_type): Likewise.
4059 * m2-lang.c (m2_create_fundamental_type): Likewise.
4060 * gdbtypes.c (build_gdbtypes): Likewise.
4061 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4062 * doublest.c (floatformat_from_length): Likewise.
4063 * c-lang.c (c_create_fundamental_type): Likewise.
4064 * ada-lex.l (processReal): Likewise.
4065 * ada-lang.c (ada_create_fundamental_type)
4066 (ada_language_arch_info): Likewise.
4067 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
4068 gdbarch_long_double_format.
4069 * gdbtypes.c (build_gdbtypes): Likewise.
4070 * doublest.c (floatformat_from_length): Likewise.
4071 * gdbarch.c, gdbarch.h: Regenerate.
4073 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4075 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
4076 * ada-lang.c (ada_create_fundamental_type)
4077 (ada_language_arch_info): Likewise.
4078 * c-lang.c (c_create_fundamental_type): Likewise.
4079 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4080 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4081 * m2-lang.c (m2_create_fundamental_type): Likewise.
4082 * objc-lang.c (objc_create_fundamental_type): Likewise.
4083 * p-lang.c (pascal_create_fundamental_type): Likewise.
4084 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
4085 * c-exp.y (parse_number): Likewise.
4086 * objc-exp.y (parse_number): Likewise.
4087 * ada-lex.l (processInt): Likewise.
4088 * f-exp.y (parse_number): Likewise.
4089 * p-exp.y (parse_number): Likewise.
4090 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
4091 (gdbtypes_post_init, build_gdbtypes): Likewise.
4092 * p-lang.c (pascal_create_fundamental_type): Likewise.
4093 * parse.c (build_parse): Likewise.
4094 * xcoffread.c (_initialize_xcoffread): Likewise.
4095 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
4096 (read_range_type): Likewise.
4097 * objc-lang.c (objc_create_fundamental_type): Likewise.
4098 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
4099 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
4100 (m2_create_fundamental_type): Likewise.
4101 * c-lang.c (c_create_fundamental_type): Likewise.
4102 * coffread.c (coff_read_enum_type): Likewise.
4103 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
4104 * dwarf2read.c (new_symbol): Likewise.
4105 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
4106 * c-exp.y (parse_number): Likewise.
4107 * objc-exp.y (parse_number): Likewise.
4108 * ada-lex.l (processInt): Likewise.
4109 * f-exp.y (parse_number): Likewise.
4110 * p-exp.y (parse_number): Likewise.
4111 * valarith.c (value_binop): Likewise.
4112 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
4113 * ada-lang.c (ada_create_fundamental_type)
4114 (ada_language_arch_info): Likewise.
4115 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4116 * symfile.c (TARGET_LONG_BYTES): Likewise.
4117 * p-lang.c (pascal_create_fundamental_type): Likewise.
4118 * objc-lang.c (objc_create_fundamental_type): Likewise.
4119 * m2-lang.c (m2_create_fundamental_type): Likewise.
4120 * f-lang.c (f_create_fundamental_type): Likewise.
4121 * c-lang.c (c_create_fundamental_type): Likewise.
4122 * coffread.c (decode_base_type): Likewise.
4123 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
4124 * c-exp.y (parse_number): Likewise.
4125 * objc-exp.y (parse_number): Likewise.
4126 * p-exp.y (parse_number): Likewise.
4127 * ada-lang.c (ada_create_fundamental_type)
4128 (ada_language_arch_info): Likewise.
4129 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
4130 * stabsread.c (read_range_type): Likewise.
4131 * p-lang.c (pascal_create_fundamental_type): Likewise.
4132 * objc-lang.c (objc_create_fundamental_type): Likewise.
4133 * m2-lang.c (m2_create_fundamental_type): Likewise.
4134 * f-lang.c (f_create_fundamental_type): Likewise.
4135 * c-lang.c (c_create_fundamental_type): Likewise.
4136 * gdbarch.c, gdbarch.h: Regenerate.
4138 2007-06-12 Andreas Schwab <schwab@suse.de>
4140 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
4141 (struct frame_unwind): Add dealloc_cache.
4142 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
4144 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
4145 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
4146 (libunwind_frame_unwind): Set dealloc_cache.
4147 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
4149 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
4150 Markus Deuling <deuling@de.ibm.com>
4152 * remote.c (remote_write_qxfer): New function.
4153 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
4154 (remote_read_qxfer): Do not cache empty objects.
4155 (_initialize_remote): Add PACKET_qXfer_spu_read and
4156 PACKET_qXfer_spu_write.
4158 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
4160 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
4161 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
4163 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
4164 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
4165 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
4166 * spu-tdep.c (infospucmdlist): New variable.
4167 (spu_register_name): Handle additional pseudo registers.
4168 (spu_register_type): Likewise.
4169 (spu_pseudo_register_read): Likewise.
4170 (spu_pseudo_register_write): Likewise.
4171 (spu_pseudo_register_read_spu): New function.
4172 (spu_pseudo_register_write_spu): Likewise.
4173 (info_spu_event_command): New function.
4174 (info_spu_signal_command): Likewise.
4175 (info_spu_mailbox_list): Likewise.
4176 (info_spu_mailbox_command): Likewise.
4177 (spu_mfc_get_bitfield): Likewise.
4178 (info_spu_dma_cmdlist): Likewise.
4179 (info_spu_dma_command): Likewise.
4180 (info_spu_proxydma_command): Likewise.
4181 (info_spu_command): Likewise.
4182 (_initialize_spu_tdep): Install "info spu" commands.
4184 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
4186 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
4187 accessing non-seekable spufs files.
4189 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4191 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
4192 gdbarch_skip_trampoline_code.
4193 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
4194 * objc-lang.c (objc_skip_trampoline)
4195 (objc_submethod_helper_data): Likewise.
4196 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
4197 * infrun.c (handle_inferior_event): Likewise.
4198 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
4199 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
4200 gdbarch_in_solib_return_trampoline.
4201 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
4202 * infrun.c (handle_inferior_event): Likewise.
4203 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
4204 * gdbarch.c, gdbarch.h: Regenerate.
4206 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4208 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
4209 * symtab.c (find_function_start_sal, in_prologue): Likewise.
4210 * linespec.c (minsym_found): Likewise.
4211 * infrun.c (step_into_function): Likewise.
4212 * gdbarch.c, gdbarch.h: Regenerate.
4214 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4216 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
4217 * valops.c (value_allocate_space_in_inferior): Likewise.
4218 * gdbarch.c, gdbarch.h: Regenerate.
4220 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4222 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
4223 gdbarch_memory_insert_breakpoint.
4224 * mem-break.c (memory_insert_breakpoint): Likewise.
4225 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
4226 gdbarch_memory_remove_breakpoint.
4227 * mem-break.c (memory_remove_breakpoint): Likewise.
4228 * gdbarch.c, gdbarch.h: Regenerate.
4230 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4232 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
4233 gdbarch_fetch_tls_load_module_address.
4234 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
4235 gdbarch_fetch_tls_load_module_address_p.
4236 * gdbarch.c, gdbarch.h: Regenerate.
4238 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4240 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
4241 gdbarch_decr_pc_after_break.
4242 * tracepoint.c (trace_dump_command): Likewise.
4243 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
4244 * linux-thread-db.c (check_event): Likewise.
4245 * linux-nat.c (cancel_breakpoints_callback): Likewise.
4246 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
4247 * frame.h: Likewise (comment).
4248 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
4249 * aix-thread.c (aix_thread_wait): Likewise.
4250 * gdbarch.c, gdbarch.h: Regenerate.
4252 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4254 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
4255 gdbarch_address_class_type_flags.
4256 * dwarf2read.c (read_tag_pointer_type): Likewise.
4257 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
4258 gdbarch_address_class_type_flags_p.
4259 * dwarf2read.c (read_tag_pointer_type): Likewise.
4260 * gdbarch.c, gdbarch.h: Regenerate.
4262 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4264 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
4265 * value.c (value_as_address): Likewise (comment).
4266 * remote-mips.c (common_breakpoint): Likewise.
4267 * regcache.c (read_pc_pid): Likewise.
4268 * printcmd.c (do_one_display): Likewise.
4269 * monitor.c (monitor_write_memory, monitor_read_memory)
4270 (monitor_insert_breakpoint): Likewise.
4271 * mips-tdep.c (heuristic_proc_start): Likewise.
4272 * infrun.c (insert_step_resume_breakpoint_at_frame)
4273 (insert_step_resume_breakpoint_at_caller): Likewise.
4274 * buildsym.c (record_line): Likewise.
4275 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
4276 (arm_get_next_pc): Likewise.
4277 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
4278 (store_regs): Likewise.
4279 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4280 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
4281 * gdbarch.c, gdbarch.h: Regenerate.
4283 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4285 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
4286 * tracepoint.c (scope_info): Likewise.
4287 * target.c (debug_print_register): Likewise.
4288 * stack.c (frame_info): Likewise.
4289 * sh-tdep.c (sh_register_reggroup_p): Likewise.
4290 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
4291 (sh64_media_print_registers_info)
4292 (sh64_compact_print_registers_info): Likewise.
4293 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
4294 * remote-sim.c (gdbsim_fetch_register): Likewise.
4295 * remote.c (packet_reg): Likewise (comment).
4296 * reggroups.c (default_register_reggroup_p): Likewise.
4297 * regcache.c (regcache_dump): Likewise.
4298 * printcmd.c (address_info): Likewise.
4299 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
4300 * mt-dep.c (mt_registers_info): Likewise.
4301 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
4302 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
4303 (mips_read_fp_register_double, mips_print_fp_register)
4304 (mips_print_register, print_gp_register_row, mips_print_registers_info)
4305 (mips_register_sim_regno): Likewise.
4306 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
4307 * inf-ptrace.c (inf_ptrace_fetch_register)
4308 (inf_ptrace_store_register): Likewise.
4309 * infcmd.c (default_print_registers_info): Likewise.
4310 * ia64-linux-nat.c (ia64_linux_fetch_register)
4311 (ia64_linux_store_register): Likewise.
4312 * i386-linux-nat.c (fetch_register, store_register): Likewise.
4313 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
4314 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4315 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
4316 (hppa_hpux_store_register): Likewise.
4317 * findvar.c (locate_var_value): Likewise.
4318 * dwarf2loc.c (locexpr_describe_location): Likewise.
4319 * dwarf2-frame.c (execute_cfa_program): Likewise.
4320 * arm-tdep.c (arm_push_dummy_call): Likewise.
4321 * arch-utils.c (legacy_register_sim_regno): Likewise.
4322 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
4323 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4324 * mi/mi-main.c (mi_cmd_data_list_register_names)
4325 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
4326 (mi_cmd_data_write_register_values): Likewise.
4327 * gdbarch.c, gdbarch.h: Regenerate.
4329 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
4331 * target-memory.c (blocks_to_erase): Correct off-by-one error.
4333 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
4335 * remote.c (process_g_packet): Don't check size.
4336 * gdbarch.sh: Remove register_bytes_ok.
4337 * gdbarch.c: Regenerated.
4338 * gdbarch.h: Regenerated.
4339 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
4340 (m68k_register_bytes_ok): Remove.
4341 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
4343 2007-06-06 Andreas Schwab <schwab@suse.de>
4345 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
4346 (destroy_addr_space_name): Define.
4347 (libunwind_load): Get address of destroy_addr_space function.
4348 (libunwind_frame_cache): Destroy unw_addr_space_t object before
4349 returning unsuccessfully.
4350 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
4352 (libunwind_sigtramp_frame_sniffer): Likewise.
4353 (libunwind_get_reg_special): Likewise.
4355 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4357 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
4358 gdbarch_fetch_pointer_argument.
4359 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
4360 * gdbarch.c, gdbarch.h: Regenerate.
4362 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4364 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
4365 gdbarch_have_nonsteppable_watchpoint.
4366 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
4367 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
4368 gdbarch_cannot_step_breakpoint.
4369 * infrun.c (resume): Likewise.
4370 * gdbarch.c, gdbarch.h: Regenerate.
4372 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4374 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
4375 * stack.c (print_frame_args): Likewise.
4376 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
4377 * stack.c (print_args_stub, frame_info): Likewise.
4378 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
4379 * stack.c (print_args_stub, frame_info): Likewise.
4380 * gdbarch.c, gdbarch.h: Regenerate.
4382 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4384 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
4385 gdbarch_coff_make_msymbol_special.
4386 * coffread.c (coff_symtab_read): Likewise.
4387 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
4388 gdbarch_elf_make_msymbol_special.
4389 * elfread.c (elf_symtab_read): Likewise.
4390 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
4391 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
4392 * gdbarch.c, gdbarch.h: Regenerate.
4394 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4396 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
4397 gdbarch_frame_red_zone_size.
4398 * gdbarch.c, gdbarch.h: Regenerate.
4400 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4402 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
4403 * infcall.c (call_function_by_hand): Likewise.
4404 * gcore.c (derive_stack_segment): Likewise.
4405 * frame.c (frame_id_inner): Likewise.
4406 * arch-utils.c (core_addr_lessthan): Likewise (comment).
4407 * ada-lang.c (ensure_lval): Likewise.
4408 * gdbarch.c, gdbarch.h: Regenerate.
4410 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4412 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
4413 gdbarch_address_to_pointer.
4414 * findvar.c (store_typed_address): Likewise.
4415 * gdbtypes.c (make_pointer_type): Likewise (comment).
4416 * procfs.c (procfs_address_to_host_pointer): Likewise.
4417 * std-regs.c (value_of_builtin_frame_reg): Likewise.
4418 (value_of_builtin_frame_fp_reg): Likewise.
4419 (value_of_builtin_frame_pc_reg): Likewise.
4420 * utils.c (paddress): Likewise (comment).
4421 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
4422 gdbarch_pointer_to_address.
4423 * findvar.c (extract_typed_address): Likewise.
4424 * gdbtypes.c (make_pointer_type): Likewise (comment).
4425 * valops.c (value_cast): Likewise (comment).
4426 * gdbarch.c, gdbarch.h: Regenerate.
4428 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4430 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
4431 * infrun.c (handle_inferior_event): Likewise.
4432 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
4433 gdbarch_get_longjmp_target_p.
4434 * breakpoint.c (breakpoint_re_set): Likewise.
4435 * infrun.c (handle_inferior_event): Likewise.
4436 * gdbarch.c, gdbarch.h: Regenerate.
4438 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4440 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
4441 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
4442 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
4443 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
4444 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
4445 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
4446 find_stub_with_shl_get, cover_find_stub_with_shl_get,
4447 initialize_hp_cxx_exception_support, child_enable_exception_callback,
4448 current_ex_event, child_get_current_exception_event): Remove.
4449 (hppa_hpux_inferior_created): Remove.
4450 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
4452 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
4453 (deprecated_exception_support_initialized): Remove.
4454 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
4455 (deprecated_exception_support_initialized): Remove.
4456 (breakpoint_init_inferior): Remove handling of non-zero
4457 deprecated_exception_catchpoints_are_fragile.
4459 * symtab.h (deprecated_hp_som_som_object_present): Remove.
4460 * symtab.c (deprecated_hp_som_som_object_present): Remove.
4461 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
4462 deprecated_hp_som_som_object_present.
4463 * eval.c (evaluate_subexp_standard): Likewise.
4464 * valops.c (value_cast): Likewise.
4466 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
4467 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
4468 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
4470 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4472 * objfiles.h (ImportEntry, ExportEntry): Remove types.
4473 (struct objfile): Remove import_list, import_list_size,
4474 export_list, export_list_size members.
4475 (is_in_import_list): Remove prototype.
4476 * objfiles.c (is_in_import_list): Remove.
4477 * somread.c (init_import_symbols, init_export_symbols): Remove.
4478 (som_symfile_read): Do not call init_import_symbols. Do not
4479 set objfile->export_list and objfile->export_list_size.
4481 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
4483 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
4484 Use the original objfile if necessary.
4486 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
4488 * defs.h (ldirname): New prototype.
4489 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
4491 * utils.c (ldirname): New function.
4492 * xml-tdesc.c (file_read_description_xml): Use ldirname.
4494 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4496 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
4498 2007-06-01 Joel Brobecker <brobecker@adacore.com>
4500 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
4502 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4504 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
4506 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4508 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
4509 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
4510 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
4511 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
4512 (ppc_linux_in_sigtramp, insn_is_sigreturn,
4513 ppc_linux_at_sigtramp_return_path): Remove.
4515 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4517 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
4518 (xtensa_register_write_masked, xtensa_register_read_masked)
4519 (xtensa_extract_return_value, xtensa_store_return_value
4520 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
4521 TARGET_BYTE_ORDER by gdbarch_byte_order.
4522 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
4523 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
4524 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
4525 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
4526 (sh64_push_dummy_call, sh64_extract_return_value)
4527 (sh64_store_return_value, sh64_register_convert_to_virtual)
4528 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
4529 (sh64_pseudo_register_write, sh64_do_fp_register)
4530 (sh64_frame_prev_register): Likewise.
4531 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
4532 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
4533 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
4534 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
4535 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
4536 * ppc-linux-nat.c (store_register): Likewise.
4537 * nto-tdep.c (nto_find_and_open_solib)
4538 (nto_init_solib_absolute_prefix): Likewise.
4539 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
4540 (mips_convert_register_p, mips_eabi_push_dummy_call)
4541 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
4542 (mips_o32_push_dummy_call, mips_o32_return_value)
4543 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
4544 (mips_read_fp_register_single, mips_read_fp_register_double)
4545 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
4546 (mips_breakpoint_from_pc): Likewise.
4547 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
4548 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
4549 (mips_linux_o32_sigframe_init): Likewise.
4550 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4551 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
4552 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
4553 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
4554 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
4555 * coffread.c (process_coff_symbol): Likewise.
4556 * arm-tdep.c (convert_from_extended, convert_to_extended)
4557 (gdb_print_insn_arm): Likewise.
4559 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4561 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
4562 * i386-tdep.c (i386_dbx_reg_to_regnum)
4563 (i386_svr4_reg_to_regnum): Likewise.
4564 * inf-ptrace.c (inf_ptrace_fetch_registers)
4565 (inf_ptrace_store_registers): Likewise.
4566 * corelow.c (get_core_registers): Likewise.
4567 * i386-linux-nat.c (supply_gregset, fill_gregset)
4568 (i386_linux_fetch_inferior_registers)
4569 (i386_linux_store_inferior_registers): Likewise.
4570 * remote.c (init_remote_state,packet_reg_from_regnum)
4571 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
4572 (remote_prepare_to_store,store_registers_using_G)
4573 (remote_store_registers,remote_arch_state): Likewise.
4574 * tracepoint.c (encode_actions): Likewise.
4575 * mi/mi-main.c (mi_cmd_data_list_register_names)
4576 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4577 (mi_cmd_data_write_register_values): Likewise.
4578 * tui/tui-regs.c (tui_show_register_group)
4579 (tui_show_register_group): Likewise.
4580 * xtensa-tdep.h (FP_ALIAS): Likewise.
4581 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
4582 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
4583 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
4584 * win32-nat.c (do_win32_fetch_inferior_registers)
4585 (do_win32_store_inferior_registers,fetch_elf_core_registers
4586 * user-regs.h: Likewise (comment).
4587 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4588 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4589 * target-descriptions.h: Likewise (comment).
4590 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
4591 * target.c (debug_print_register): Likewise.
4592 * stack.c (frame_info): Likewise.
4593 * stabsread.c (define_symbol): Likewise.
4594 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
4595 (sh64_media_print_registers_info)
4596 (sh64_compact_print_registers_info): Likewise.
4597 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4598 * rs6000-nat.c (fetch_register,store_register): Likewise.
4599 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
4600 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
4601 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
4602 * remote-m32r-sdi.c (m32r_fetch_registers)
4603 (m32r_store_registers): Likewise.
4604 * reggroups.c (default_register_reggroup_p): Likewise.
4605 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
4606 (regcache_restore,regcache_dump): Likewise.
4607 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
4608 * mips-tdep.c (mips_xfer_register,mips_register_name)
4609 (mips_register_reggroup_p,mips_pseudo_register_read)
4610 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
4611 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
4612 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
4613 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
4614 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
4615 (print_gp_register_row,mips_print_registers_info)
4616 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4617 (mips_register_sim_regno): Likewise.
4618 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
4619 (mips_linux_n32n64_sigframe_init): Likewise.
4620 * mips-linux-nat.c (mips_linux_register_addr)
4621 (mips64_linux_register_addr): Likewise.
4622 * findvar.c (value_of_register): Likewise.
4623 * infcmd.c (default_print_registers_info,registers_info)
4624 (print_vector_info,print_float_info): Likewise.
4625 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
4626 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4627 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4628 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
4629 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4630 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
4631 (ia64_cannot_store_register,ia64_linux_fetch_registers)
4632 (ia64_linux_store_registers): Likewise.
4633 * hpux-thread.c (hpux_thread_fetch_registers)
4634 (hpux_thread_store_registers): Likewise.
4635 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
4636 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
4637 (h8300_register_type): Likewise.
4638 * dwarf2-frame.c (dwarf2_frame_cache)
4639 (dwarf2_frame_state_alloc_regs): Likewise.
4640 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
4641 (cris_cannot_store_register,crisv32_cannot_fetch_register)
4642 (crisv32_cannot_store_register,cris_register_name): Likewise.
4643 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
4644 * arch-utils.c (legacy_register_sim_regno)
4645 (legacy_virtual_frame_pointer): Likewise.
4646 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
4647 * arm-tdep.h: Likewise (comment).
4648 * frv-tdep.c (frv_register_sim_regno): Likewise.
4649 * m68klinux-nat.c (old_fetch_inferior_registers)
4650 (old_store_inferior_registers): Likewise.
4651 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4652 * irix5-nat.c (fetch_core_registers): Likewise.
4653 * hppa-tdep.c (hppa_frame_cache): Likewise.
4654 * hppa-linux-nat.c (hppa_linux_register_addr)
4655 (hppa_linux_fetch_inferior_registers)
4656 (hppa_linux_store_inferior_registers): Likewise.
4657 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
4658 (hppa_hpux_store_inferior_registers): Likewise.
4659 * amd64-nat.c (amd64_native_gregset_reg_offset)
4660 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
4661 * dbug-rom.c (dbug_regname): Likewise.
4662 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
4663 (HARD_PAGE_REGNUM (comment)): Likewise.
4664 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
4665 * i386-tdep.c (i386_dbx_reg_to_regnum)
4666 (i386_svr4_reg_to_regnum): Likewise.
4667 * mi/mi-main.c (mi_cmd_data_list_register_names)
4668 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4669 (mi_cmd_data_write_register_values): Likewise.
4670 * gdbarch.c, gdbarch.h: Regenerate.
4671 * tui/tui-regs.c (tui_show_register_group): Likewise.
4672 * xtensa-tdep.h (FP_ALIAS): Likewise.
4673 * user-regs.h: Likewise (comment).
4674 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4675 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4676 * target-descriptions.h: Likewise (comment).
4677 * target.c (debug_print_register): Likewise.
4678 * stack.c (frame_info): Likewise.
4679 * stabsread.c (define_symbol): Likewise.
4680 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4681 (sh64_compact_print_registers_info): Likewise.
4682 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4683 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4684 (regcache_restore,regcache_dump): Likewise.
4685 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4686 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4687 (mips_stab_reg_to_regnum): Likewise.
4688 * findvar.c (value_of_register): Likewise.
4689 * infcmd.c (default_print_registers_info,registers_info)
4690 (print_vector_info,print_float_info): Likewise.
4691 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4692 * h8300-tdep.c (h8300_register_type): Likewise.
4693 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4694 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4695 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4696 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4697 * parse.c: Remove comment.
4698 * gdbarch.c, gdbarch.h: Regenerate
4700 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4702 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4703 gdbarch_cannot_fetch_register.
4704 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4705 * hppa-linux-nat.c (fetch_register): Likewise.
4706 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4707 * m68klinux-nat.c (fetch_register): Likewise.
4708 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4710 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4711 gdbarch_cannot_store_register.
4712 * hppa-linux-nat.c (store_register): Likewise.
4713 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4714 * regcache.c (regcache_raw_write): Likewise.
4715 * m68klinux-nat.c (store_register): Likewise.
4716 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4717 * gdbarch.c, gdbarch.h: Regenerate.
4719 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4721 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4722 * gdbarch.c, gdbarch.h: Regenerate.
4724 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4726 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4727 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4728 * gdbarch.c, gdbarch.h: Regenerate.
4730 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4732 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4733 * ax-gdb.c (gen_bitfield_ref): Likewise.
4734 * mi/mi-main.c (get_register): Likewise.
4735 * findvar.c (default_value_from_register, extract_signed_integer)
4736 (extract_unsigned_integer, extract_long_unsigned_integer)
4737 (store_signed_integer, store_unsigned_integer): Likewise.
4738 * regcache.c (regcache_dump): Likewise.
4739 * value.c (lookup_internalvar, value_of_internalvar)
4740 (set_internalvar): Likewise.
4742 * valprint.c (print_binary_chars, print_octal_chars)
4743 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4744 * infcmd.c (default_print_registers_info): Likewise.
4745 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4746 * stabsread.c (define_symbol): Likewise.
4747 * doublest.c (floatformat_from_length, floatformat_from_type)
4748 (extract_typed_floating, store_typed_floating): Likewise.
4749 * gdbarch.c, gdbarch.h: Regenerate.
4751 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4753 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4754 gdbarch_call_dummy_location.
4755 * infcall.c (call_function_by_hand): Likewise.
4756 * inferior.h: Change comment.
4757 * arch-utils.c: Change comment.
4758 * gdbarch.c, gdbarch.h: Regenerate.
4760 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4762 * solib-aix5.c: Delete.
4763 * Makefile.in (solib-aix5.o): Delete rule.
4765 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4767 * breakpoint.h (enum bpstat_what_main_action): Remove
4768 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4769 * infrun.c (process_event_stop_test): Do not check for it.
4771 2007-05-22 Chris Dearman <chris@mips.com>
4772 Maciej W. Rozycki <macro@mips.com>
4774 * ser-unix.c (show_serial_hwflow): New function.
4775 (hardwire_raw): Add hardware flow control support.
4776 (_initialize_ser_hardwire): Add "set/show remoteflow".
4777 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4778 * NEWS: Document the new command.
4780 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4782 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4783 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4784 define for i[[3456]]86-*-linux* native configurations.
4785 * config.in, configure: Regenerate.
4787 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4789 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4790 a core file. Add comment in the function description.
4792 2007-05-18 Caroline Tice <ctice@apple.com>
4794 * c-valprint.c (c_value_print): If the initialized field of the
4795 value struct is 0, print out "[uninitialized]" before the value.
4796 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4797 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4798 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4799 ctx->initialized appropriately. Verify no location op follows
4801 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4802 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4803 set_value_initialized.
4804 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4805 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4806 * value.c (struct value): New field, initialized.
4807 (allocate_value): Initialize new field.
4808 (set_value_initialized): New function.
4809 (value_initialized): New function.
4810 * value.h (value_initialized): New extern declaration.
4811 (set_value_initialized): Likewise.
4813 2007-05-18 Caroline Tice <ctice@apple.com>
4815 * MAINTAINERS (Write After Approval): Add self.
4817 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4819 * gdbtypes.c (make_reference_type): Preserve the type chain
4820 and set the length of all the variants of the pointer type.
4822 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4824 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4825 and set the length of all the variants of the pointer type.
4827 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4829 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4831 (mips_o64_push_dummy_call): Reformat a comment.
4833 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4835 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4836 (score_prologue_frame_base_address): Return fp to keep gdb print
4837 local variables correctly when debugging information is stabs.
4839 (score_analyze_prologue): For software watchpoint, fetch all the
4840 instructions from range [startaddr, pc] once and identify them locally
4841 to reduce memory access.
4842 (score_malloc_and_get_memblock, score_free_memblock)
4843 (score_adjust_memblock_ptr): New functions.
4844 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4846 (score_target_can_use_watch, score_stopped_by_watch)
4847 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4848 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4849 New functions for remote & local hw-watchpoint and hw-breakpoint.
4851 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4853 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4854 declarations as well.
4856 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4858 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4859 * config/arm/tm-embed.h: Delete file.
4861 * arm-tdep.h (arm_software_single_step): Declare.
4862 * arm-tdep.c (arm_software_single_step): Make global.
4863 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4865 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4866 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4867 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4868 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4870 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4871 allow defines to be overriden by TM file.
4872 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4873 change default to {0xbe,0xbe}.
4874 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4875 arm_obsd_thumb_be_breakpoint): New global variables.
4876 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4877 tdep->thumb_breakpoint_size.
4878 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4879 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4880 tdep->thumb_breakpoint_size.
4882 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4884 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4886 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4889 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4890 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4891 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4892 (mips_abi_regsize): Simplify.
4893 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4894 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4895 (mips_o32_return_value, mips_o64_push_dummy_call)
4896 (mips_o64_return_value): Propogate constant register sizes. Use the
4897 ABI register size instead of mips_stack_argsize.
4898 (mips_dump_tdep): Don't print mips_stack_argsize.
4899 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4902 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4904 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4905 * config/mips/tm-linux.h: Delete.
4906 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4907 (mips_linux_in_dynsym_resolve_code): Make static. Use
4908 svr4_in_dynsym_resolve_code.
4909 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4911 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4913 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4914 * Makefile.in (mips-linux-tdep.o): Update.
4915 * solib.c (set_solib_ops): New.
4916 (current_target_so_ops): Update comment.
4917 * solib.h (set_solib_ops): New prototype.
4919 2007-05-16 Chris Dearman <chris@mips.com>
4921 * printcmd.c (do_examine): Fix typos in a comment.
4923 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4925 * configure.ac: Allow sysroots to be relocated under $prefix as
4926 well as $exec_prefix.
4927 * configure: Regenerate.
4929 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4931 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4932 (offsetof): Do not define.
4933 (find_stub_with_shl_get): Use numerical value 3 instead of
4934 symbolic value TYPE_PROCEDURE.
4936 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4938 * gdb_proc_service.h (paddr_t): Delete typedef.
4939 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4940 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4941 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4942 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4943 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4944 * Makefile.in (proc-service.o): Update.
4946 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4948 * Makefile.in (mips-tdep.o): Update.
4949 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4952 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4954 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4955 instead of store_typed_address.
4956 * value.c (pack_long): New.
4957 (value_from_longest): Use it.
4958 * value.h (pack_long): New prototype.
4960 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4962 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4963 DW_EH_PE_signed if appropriate.
4965 2007-05-14 Paul Brook <paul@codesourcery.com>
4966 Daniel Jacobowitz <dan@codesourcery.com>
4968 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4970 (dwarf_decode_lines): Check for line info without a file.
4972 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4974 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4977 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4979 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4981 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4983 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4985 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4987 * gdbarch.sh (read_sp): Remove.
4988 * gdbarch.c, gdbarch.h: Regenerate.
4989 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4991 * avr-tdep.c (avr_read_sp): Remove.
4992 (avr_unwind_sp): New function.
4993 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4994 * mips-tdep.c (mips_read_sp): Remove.
4995 (mips_unwind_sp): New function.
4996 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4997 * score-tdep.c (score_read_unsigned_register): Remove.
4998 (score_read_sp): Remove.
4999 (score_unwind_sp): New function.
5000 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
5002 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
5004 * buildsym.c (start_subfile): Handle absolute pathnames
5005 while comparing subfile names.
5007 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5009 * hppa-hpux-tdep.c: Include "regcache.h".
5010 * hppa-linux-tdep.c: Likewise.
5011 * hppa-tdep.c: Include "gdb_stdint.h".
5012 (find_unwind_entry): Cast host pointer to uintptr_t before passing
5014 * Makefile.in: Update dependencies.
5016 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5018 * blockframe.c: Remove obsolete comments.
5019 * alpha-nat.c (fetch_osf_core_registers): Update comment.
5020 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
5021 * hppa-tdep.h (enum hppa_regnum): Likewise.
5022 * mips-tdep.h: Likewise.
5023 * m68hc11-tdep.c: Likewise.
5025 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5027 * inferior.h (read_sp): Remove prototype.
5028 * regcache.c (read_sp): Remove.
5029 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
5030 * infcall.c (call_function_by_hand): Likewise.
5031 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
5033 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5035 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5037 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
5038 instead of read_register and read_register_pid.
5040 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
5041 argument instead of PTID. Use regcache functions instead of
5043 (ia64_linux_insert_watchpoint): Update call.
5044 (ia64_linux_stopped_data_address): Use regcache functions
5045 instead of read_register_pid and write_register_pid.
5047 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5049 * libunwind-frame.h (struct regcache): Add forward declaration.
5050 (libunwind_get_reg_special): Add REGCACHE argument.
5051 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
5052 argument. Pass it to unw_init_remote_p.
5054 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
5055 libunwind_get_reg_special.
5056 (ia64_access_reg): Remove "write" case.
5057 (ia64_access_fpreg): Likewise. Read from next_frame passed
5058 as callback argument instead of from current_regcache.
5059 (ia64_access_rse_reg): Remove "write" case. Read from regcache
5060 passed as callback argument instead of from current_regcache.
5061 (ia64_access_rse_fpreg): New function.
5062 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
5064 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5066 * NEWS: Mention SPU overlay support.
5068 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5070 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
5072 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5074 * breakpoint.c (remove_breakpoint): Do not remove software
5075 breakpoints in unmapped overlay sections.
5077 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5079 * spu-tdep.c: Include "observer.h".
5080 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
5081 (spu_overlay_data): New variable.
5082 (struct spu_overlay_table): New type.
5083 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
5084 spu_overlay_new_objfile): New functions.
5085 (spu_gdbarch_init): Install spu_overlay_update.
5086 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
5087 allocate spu_overlay_data objfile data.
5089 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5091 * gdbarch.sh (overlay_update): New gdbarch function.
5092 (struct obj_section): Add forward declaration.
5093 * gdbarch.c, gdbarch.h: Regenerate.
5095 * symfile.c (simple_overlay_update): Make global.
5096 (target_overlay_update): Remove variable.
5097 (overlay_is_mapped): Call gdbarch_overlay_update instead of
5098 target_overlay_update.
5099 (overlay_load_command): Likewise.
5100 * symfile.h (struct obj_section): Add forward declaration.
5101 (simple_overlay_update): Add prototype.
5103 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
5105 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5107 * observer.sh: Add "struct objfile" forward declaration.
5108 * target.h (deprecated_target_new_objfile_hook): Remove.
5109 * symfile.c (deprecated_target_new_objfile_hook): Remove.
5110 (clear_symtab_users): Call observer_notify_new_objfile.
5111 (symbol_file_add_with_addrs_or_offsets): Likewise.
5112 * rs6000-nat.c: Include "observer.h".
5113 (vmap_ldinfo): Call observer_notify_new_objfile.
5114 (xcoff_relocate_core): Likewise.
5115 * remote.c (remote_new_objfile_chain): Remove.
5116 (remote_new_objfile): Do not call remote_new_objfile_chain.
5117 (_initialize_remote): Use observer_attach_new_objfile.
5118 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
5119 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
5120 (_initialize_tui_hooks): Use observer_attach_new_objfile.
5121 * aix-thread.c: Include "observer.h".
5122 (target_new_objfile_chain): Remove.
5123 (new_objfile): Do not call target_new_objfile_chain.
5124 (_initialize_aix_thread): Use observer_attach_new_objfile.
5125 * hpux-thread.c: Include "observer.h"
5126 (target_new_objfile_chain): Remove.
5127 (hpux_thread_new_objfile): Make static. Do not call
5128 target_new_objfile_chain.
5129 (_initialize_hpux_thread): Use observer_attach_new_objfile.
5130 * linux-thread-db.c: Include "observer.h".
5131 (target_new_objfile_chain): Remove.
5132 (thread_db_new_objfile): Do not call target_new_objfile_chain.
5133 (_initialize_thread_db): Use observer_attach_new_objfile.
5134 * sol-thread.c: Include "observer.h".
5135 (target_new_objfile_chain): Remove.
5136 (sol_thread_new_objfile): Make static. Do not call
5137 target_new_objfile_chain.
5138 (_initialize_sol_thread): Use observer_attach_new_objfile.
5139 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
5140 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
5143 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5145 * gdbarch.sh (remote_translate_xfer_address): Remove.
5146 * gdbarch.h, gdbarch.c: Regenerate.
5147 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
5148 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
5149 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
5150 call gdbarch_remote_translate_xfer_address.
5151 * frv-tdep.c (frv_gdbarch_init): Do not call
5152 set_gdbarch_remote_translate_xfer_address.
5153 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
5154 (ia64_gdbarch_init): Do not install it.
5156 2007-05-11 Bob Wilson <bob.wilson@acm.org>
5158 * NEWS: Mention change in handling the -tui option.
5160 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
5162 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
5165 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5167 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
5168 (breakpoint_inserted_here_p): Call it.
5169 (software_breakpoint_inserted_here_p): Likewise.
5171 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
5173 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
5174 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
5175 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
5176 (inf_ptrace_store_register): Likewise.
5177 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
5178 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
5180 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
5182 * linux-nat.c (linux_trad_target): Adapt parameter list.
5183 * linux-nat.h (linux_trad_target): Likewise.
5185 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
5187 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
5188 (mips_linux_cannot_store_register): Likewise.
5189 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
5190 Return (CORE_ADDR) -1 for registers that cannot be fetched or
5191 stored via ptrace. Use GDBARCH instead of current_gdbarch.
5192 (mips64_linux_register_addr): Likewise.
5193 (mips_linux_register_u_offset): Adapt parameter list. Pass
5194 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
5196 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5197 * config/mips/nm-linux.h: Delete file.
5199 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
5201 * remote.c (remote_detach): Error out if remote can't detach.
5203 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
5205 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
5206 instruction's opcode in the "opcode" variable and declares new
5207 variable "closing_insn".
5209 2007-05-10 Chris Dearman <chris@mips.com>
5210 Maciej W. Rozycki <macro@mips.com>
5212 * cli/cli-setshow.c (do_setshow_command): Remove trailing
5213 whitespace when setting a var_filename.
5215 2007-05-09 Bob Wilson <bob.wilson@acm.org>
5217 * main.c (captured_main): Recognize -tui option and print an error
5218 message when the TUI is not configured.
5220 2007-05-09 Andreas Schwab <schwab@suse.de>
5222 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
5223 set removed members.
5224 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
5226 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5228 * gdbarch.sh (deprecated_store_struct_return): Remove.
5229 * gdbarch.c, gdbarch.h: Regenerate.
5230 * frv-tdep.c (frv_store_struct_return): Remove.
5231 (frv_gdbarch_init): Do not install it.
5233 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5235 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
5236 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
5237 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
5239 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5241 * spu-linux-nat.c: Include "gdb_stdint.h".
5242 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
5243 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5244 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
5245 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
5246 (spu_child_wait): Mark up string for translation.
5248 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
5249 Luis Machado <luisgpm@br.ibm.com>
5251 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
5252 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
5253 BC_INSTRUCTION): Define.
5254 (deal_with_atomic_sequence): New function.
5255 (rs6000_software_single_step): Call deal_with_atomic_sequence.
5256 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
5257 gdbarch_software_single_step routine.
5259 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
5261 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
5262 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
5263 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
5264 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
5265 spu_child_post_attach, spu_fetch_inferior_registers,
5266 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
5267 memory addresses as ULONGEST, not CORE_ADDR.
5269 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
5271 * gdbarch.sh: Add skip_permanent_breakpoint callback.
5272 * gdbarch.h, gdbarch.c: Regenerate.
5274 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
5275 (resume): Call gdbarch_skip_permanent_breakpoint instead of
5276 SKIP_PERMANENT_BREAKPOINT. Inline default case.
5278 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
5279 Add REGCACHE argument. Use it instead of read/write_register.
5280 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
5282 * config/pa/tm-hppah.h: Delete file.
5283 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
5284 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
5286 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
5288 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
5289 * NEWS: Mention improved C++ thunk support.
5290 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
5291 * cp-abi.c (cplus_skip_trampoline): New.
5292 * cp-abi.h (cplus_skip_trampoline): New prototype.
5293 (struct cp_abi_ops): Add skip_trampoline member.
5294 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
5295 (init_gnuv3_ops): Set skip_trampoline.
5297 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
5299 * rs6000-tdep.c (struct frame_extra_info): Delete.
5301 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
5303 * linux-thread-db.c: Update some FIXME comments.
5304 (thread_db_xfer_partial): Delete.
5305 (init_thread_db_ops): Do not set to_xfer_partial.
5307 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5309 * inftarg.c, infptrace.c: Remove files.
5310 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
5311 (inftarg.o, infptrace.o): Remove rules.
5312 * gdbcore.h (register_addr): Remove prototype.
5313 * inferior.h (kill_inferior, store_inferior_registers,
5314 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
5315 call_ptrace, pre_fork_inferior): Remove prototypes.
5316 * target.h (child_xfer_memory, child_pid_to_exec_file,
5317 child_core_file_to_sym_file, child_post_attach,
5318 child_post_startup_inferior, child_acknowledge_created_inferior,
5319 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
5320 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
5321 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
5322 child_follow_fork, child_reported_exec_events_per_exec_call,
5323 child_has_exited, child_thread_alive): Remove prototypes.
5325 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5327 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
5328 (sparc_store_inferior_registers): Likewise.
5329 * sparc-nat.c (fetch_inferior_registers): Rename to ...
5330 (sparc_fetch_inferior_registers): ... this.
5331 (store_inferior_registers): Rename to ...
5332 (sparc_store_inferior_registers): ... this.
5333 (sparc_target): Update callback names.
5334 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
5335 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
5337 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5339 * linux-nat.c (child_post_attach): Rename to ...
5340 (linux_child_post_attach): ... this. Make static.
5341 (child_follow_fork): Rename to ...
5342 (linux_child_follow_fork): ... this. Make static.
5343 (child_insert_fork_catchpoint): Rename to ...
5344 (linux_child_insert_fork_catchpoint): ... this. Make static.
5345 (child_insert_vfork_catchpoint): Rename to ...
5346 (linux_child_insert_vfork_catchpoint): ... this. Make static.
5347 (child_insert_exec_catchpoint): Rename to ...
5348 (linux_child_insert_exec_catchpoint): ... this. Make static.
5349 (child_pid_to_exec_file): Rename to ...
5350 (linux_child_pid_to_exec_file): ... this. Make static.
5352 (linux_handle_extended_wait): Update call.
5353 (linux_xfer_partial): Update callback routine names.
5355 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5357 * configure.host (alpha*-*-osf[12]*): Remove support.
5358 * NEWS: Mention removed configurations.
5360 * config/alpha/alpha-osf1.mh: Delete file.
5361 * config/alpha/alpha-osf2.mh: Delete file.
5362 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
5364 * config/alpha/nm-osf.h: Delete file.
5365 * config/alpha/nm-osf2.h: Delete file.
5366 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
5367 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
5368 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
5370 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
5371 (register_addr, kernel_u_size): Remove.
5372 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
5374 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5376 * regcache.c (regcache_invalidate): New function.
5377 (register_cached): Remove.
5378 (set_register_cached): Remove.
5379 (deprecated_registers_fetched): Remove.
5380 (registers_changed): Use regcache_invalidate instead
5381 of set_register_cached.
5382 (regcache_raw_read): Update comment.
5384 * regcache.h (regcache_invalidate): Add prototype.
5385 (register_cached): Remove.
5386 (set_register_cached): Remove.
5387 (deprecated_registers_fetched): Remove.
5389 * findvar.c (value_of_register): Do not call register_cached.
5390 * frame.c (frame_register): Likewise.
5391 * tui/tui-regs.c (tui_get_register): Likewise.
5393 * remote.c (fetch_register_using_p): Do not call set_register_cached.
5394 (process_g_packet): Likewise.
5395 (remote_fetch_registers): Likewise.
5396 * remote-sim.c (gdbsim_fetch_register): Likewise.
5397 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
5398 by regcache_invalidate.
5399 (mt_pseudo_register_write): Likewise.
5400 * sh-tdep.c (sh_pseudo_register_write): Likewise.
5402 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
5403 call by loop over regcache_raw_supply (..., NULL).
5405 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5407 * target.h (struct target_ops): Add REGCACHE parameter to
5408 to_prepare_to_store.
5409 (target_prepare_to_store): Likewise.
5410 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
5411 (update_current_target): Adapt prepare_to_store de_fault rule.
5413 * regcache.c (regcache_raw_write): Pass regcache to
5414 target_prepare_to_store.
5416 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
5417 Do not call CHILD_PREPARE_TO_STORE.
5418 * gnu-nat.c (gnu_prepare_to_store): Likewise.
5419 * procfs.c (procfs_prepare_to_store): Likewise.
5421 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
5422 * go32-nat.c (go32_prepare_to_store): Likewise.
5423 * monitor.c (monitor_prepare_to_store): Likewise.
5424 * nto-procfs.c (procfs_prepare_to_store): Likewise.
5425 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
5426 * remote-mips.c (mips_prepare_to_store): Likewise.
5427 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
5428 * win32-nat.c (win32_prepare_to_store): Likewise.
5430 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
5431 Use it instead of current_regcache.
5433 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
5434 parameter. Pass it on to next target.
5435 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
5437 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5439 * target.h (struct regcache): Add forward declaration.
5440 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
5441 and to_store_registers target operations.
5442 (target_fetch_registers, target_store_registers): Update.
5444 * regcache.c (regcache_raw_read): Replace register_cached by
5445 regcache_valid_p. Pass regcache to target_fetch_registers.
5446 (regcache_raw_write): Pass regcache to target_store_registers.
5448 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
5449 store_regs, store_wmmx_regs): Replace register_cached by
5452 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
5453 to target_fetch_registers calls.
5454 * corelow.c (core_open): Likewise.
5455 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
5456 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5457 ps_lsetfpregs): Likewise.
5458 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5459 ps_lsetfpregs): Likewise.
5460 * win32-nat.c (win32_resume): Likewise.
5461 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
5462 to target_store_registers call.
5463 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5465 * inferior.h (store_inferior_registers): Update prototype.
5466 (fetch_inferior_registers): Likewise.
5467 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
5468 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
5469 Update function pointer signatures.
5471 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
5472 use it instead of current_regcache, update calls.
5473 (aix_thread_store_registers): Likewise.
5474 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
5475 (alphabsd_store_inferior_registers): Likewise.
5476 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
5477 (amd64bsd_store_inferior_registers): Likewise.
5478 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
5479 (amd64_linux_store_inferior_registers): Likewise.
5480 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
5481 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
5482 fetch_wmmx_regs, store_wmmx_regs): Likewise.
5483 (arm_linux_fetch_inferior_registers): Likewise.
5484 (arm_linux_store_inferior_registers): Likewise.
5485 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
5486 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
5487 (store_register, store_regs, store_fp_register, store_fp_regs,
5488 armnbsd_store_registers): Likewise.
5489 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
5490 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
5491 (bsd_uthread_store_registers): Likewise.
5492 * corelow.c (get_core_registers): Likewise.
5493 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
5494 go32_store_registers): Likewise.
5495 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
5496 (hppabsd_store_registers): Likewise.
5497 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
5498 (hppa_hpux_fetch_inferior_registers): Likewise.
5499 (hppa_hpux_store_register): Likewise.
5500 (hppa_hpux_store_inferior_registers): Likewise.
5501 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5502 (hppa_linux_fetch_inferior_registers): Likewise.
5503 (hppa_linux_store_inferior_registers): Likewise.
5504 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
5505 (hpux_thread_store_registers): Likewise.
5506 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
5507 (i386bsd_store_inferior_registers): Likewise.
5508 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
5509 gnu_store_registers): Likewise.
5510 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
5511 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
5513 (i386_linux_fetch_inferior_registers): Likewise.
5514 (i386_linux_store_inferior_registers): Likewise.
5515 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
5516 (ia64_linux_fetch_registers): Likewise.
5517 (ia64_linux_store_register): Likewise.
5518 (ia64_linux_store_registers): Likewise.
5519 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5520 (inf_child_store_inferior_registers): Likewise.
5521 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5522 (inf_ptrace_fetch_registers): Likewise.
5523 (inf_ptrace_store_register): Likewise.
5524 (inf_ptrace_store_registers): Likewise.
5525 * infptrace.c (fetch_register, store_register): Likewise.
5526 (fetch_inferior_registers, store_inferior_registers): Likewise.
5527 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
5528 (m32r_linux_fetch_inferior_registers): Likewise.
5529 (m32r_linux_store_inferior_registers): Likewise.
5530 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
5531 (m68kbsd_store_inferior_registers): Likewise.
5532 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
5533 store_register, old_store_inferior_registers, fetch_regs, store_regs,
5534 fetch_fpregs, store_fpregs): Likewise.
5535 (m68k_linux_fetch_inferior_registers): Likewise.
5536 (m68k_linux_store_inferior_registers): Likewise.
5537 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
5538 (m88kbsd_store_inferior_registers): Likewise.
5539 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
5540 (mips64obsd_store_inferior_registers): Likewise.
5541 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
5542 (mips64_linux_regsets_store_registers): Likewise.
5543 (mips64_linux_fetch_registers): Likewise.
5544 (mips64_linux_store_registers): Likewise.
5545 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
5546 (mipsnbsd_store_inferior_registers): Likewise.
5547 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
5548 (monitor_fetch_registers, monitor_store_registers): Likewise.
5549 * nto-procfs.c (procfs_fetch_registers): Likewise.
5550 (procfs_store_registers): Likewise.
5551 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
5552 fetch_register, supply_vrregset, fetch_altivec_registers,
5553 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
5554 (store_altivec_register, store_spe_register, store_register,
5555 fill_vrregset, store_altivec_registers, store_ppc_registers,
5556 ppc_linux_store_inferior_registers): Likewise.
5557 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
5558 (ppcnbsd_store_inferior_registers): Likewise.
5559 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
5560 (ppcobsd_store_registers): Likewise.
5561 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5562 * remote.c (fetch_register_using_p, process_g_packet,
5563 fetch_registers_using_g, remote_fetch_registers): Likewise.
5564 (store_register_using_P, store_registers_using_G,
5565 remote_store_registers): Likewise.
5566 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
5567 m32r_store_register, m32r_store_register): Likewise.
5568 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
5569 * remote-sim.c (gdbsim_fetch_register): Likewise.
5570 (gdbsim_store_register): Likewise.
5571 * rs6000-nat.c (fetch_register, store_register): Likewise.
5572 (rs6000_fetch_inferior_registers): Likewise.
5573 (rs6000_store_inferior_registers): Likewise.
5574 * s390-nat.c (fetch_regs, store_regs): Likewise.
5575 (fetch_fpregs, store_fpregs): Likewise.
5576 (s390_linux_fetch_inferior_registers): Likewise.
5577 (s390_linux_store_inferior_registers): Likewise.
5578 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
5579 (shnbsd_store_inferior_registers): Likewise.
5580 * sol-thread.c (sol_thread_fetch_registers): Likewise.
5581 (sol_thread_store_registers): Likewise.
5582 * sparc-nat.c (fetch_inferior_registers): Likewise.
5583 (store_inferior_registers): Likewise.
5584 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5585 (spu_store_inferior_registers): Likewise.
5586 * target.c (debug_print_register): Likewise.
5587 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
5588 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
5589 (vaxbsd_store_inferior_registers): Likewise.
5590 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
5591 (win32_fetch_inferior_registers): Likewise.
5592 (win32_store_inferior_registers): Likewise.
5594 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5596 * gdbcore.h (struct regcache): Add forward declaration.
5597 (struct core_fns): Add REGCACHE argument to core_read_registers
5599 * corelow.c (get_core_register_section): Add REGCACHE argument,
5600 use it instead of current_regcache, pass it to core_read_registers
5602 (get_core_registers): Add current_regcache as parameter to
5603 get_core_register_section calls.
5605 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
5606 use it instead of current_regcache.
5607 * armnbsd-nat.c (fetch_core_registers): Likewise.
5608 (fetch_elfcore_registers): Likewise.
5609 * core-regset.c (fetch_core_registers): Likewise.
5610 * cris-tdep.c (fetch_core_registers): Likewise.
5611 * irix5-nat.c (fetch_core_registers): Likewise.
5612 * m68klinux-nat.c (fetch_core_registers): Likewise.
5613 * mips-linux-tdep.c (fetch_core_registers): Likewise.
5614 * win32-nat.c (fetch_elf_core_registers): Likewise.
5616 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5618 * gregset.h (struct regcache): Add forward declaration.
5619 (supply_gregset): Add REGCACHE parameter, make GREGS const.
5620 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
5621 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
5622 (fill_gregset): Add REGCACHE parameter.
5623 (fill_fpregset): Likewise.
5624 (fill_fpxregset): Likewise.
5626 Update all definitions accordingly:
5627 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
5628 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
5629 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
5630 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
5631 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
5632 (supply_gregset): Add REGCACHE parameter, use it instead of
5633 current_regcache. Make GREGSETP parameter const, adapt casts.
5634 (supply_fpregset): Add REGCACHE parameter, use it instead of
5635 current_regcache. Make FPREGSETP parameter const, adapt casts.
5636 (fill_gregset): Add REGCACHE parameter, use it instead of
5638 (fill_fpregset): Likewise.
5640 Update all callers to pass in current_regcache as the new argument:
5641 * core-regset.c: Include "regcache.h".
5642 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
5643 * procfs.c: Include "regcache.h".
5644 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
5645 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
5646 (procfs_do_thread_registers): Likewise.
5647 (procfs_make_note_section): Likewise.
5648 * proc-service.c: Include "regcache.h".
5649 (ps_lgetregs): Update fill_gregset call.
5650 (ps_lsetregs): Update supply_gregset call.
5651 (ps_lgetfpregs): Update fill_fpregset call.
5652 (ps_lsetfpregs): Update supply_fpregset call.
5653 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
5654 supply_fpregset calls.
5655 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
5656 (ps_lgetregs): Update fill_gregset call.
5657 (ps_lsetregs): Update supply_gregset call.
5658 (ps_lgetfpregs): Update fill_fpregset call.
5659 (ps_lsetfpregs): Update supply_fpregset call.
5661 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
5662 fill_fpregset, and fill_fpxregset calls.
5663 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
5664 (store_regs): Update fill_gregset call.
5665 (fetch_fpregs): Update supply_fpregset call.
5666 (store_fpregs): Update fill_fpregset call.
5667 (fetch_fpxregs): Update supply_fpxregset call.
5668 (store_fpxregs): Update fill_fpxregset call.
5669 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
5670 (store_regs): Update fill_gregset call.
5671 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
5672 (store_regs): Update fill_gregset call.
5673 (fetch_fpregs): Update supply_fpregset call.
5674 (store_fpregs): Update fill_fpregset call.
5675 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5676 * s390-nat.c (fetch_regs): Update supply_gregset call.
5677 (store_regs): Update fill_gregset call.
5678 (fetch_fpregs): Update supply_fpregset call.
5679 (store_fpregs): Update fill_fpregset call.
5681 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5684 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5686 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5687 it instead of current_regcache.
5688 (parse_register_dump): Add REGCACHE parameter, pass it to
5689 supply_register callback.
5690 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5691 parse_register_dump.
5692 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5693 parse_register_dump and dumpregs callback.
5694 (monitor_wait): Pass current_regcache to parse_register_dump and
5696 (monitor_fetch_register): Pass current_regcache to
5697 monitor_supply_register.
5698 (monitor_fetch_registers): Pass current_regcache to
5700 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5701 supply_register and dumpregs callbacks.
5702 (monitor_supply_register, monitor_dump_reg_block): Update
5704 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5705 it to monitor_supply_register.
5706 * dink32-rom.c (dink32_supply_register): Likewise.
5707 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5708 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5709 instead of current_regcache.
5711 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5713 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5714 Add REGCACHE parameter. Use it instead of current_regcache.
5715 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5716 i386nto_supply_gregset and i386nto_supply_fpregset.
5717 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5718 of current_regcache.
5720 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5721 nto_supply_ helper functions.
5722 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5724 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5726 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5727 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5728 and regset_fill member function pointers.
5729 (nto_dummy_supply_regset): Adapt prototype.
5731 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5733 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5734 instead of current_regcache. Make REGS const.
5735 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5736 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5738 * shnbsd-nat.c: Include "regcache.h".
5739 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5741 (shnbsd_store_inferior_registers): Pass current_regcache to
5743 * Makefile.in (shbsd-nat.o): Update dependencies.
5745 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5747 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5748 instead of current_regcache.
5749 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5750 Make GREGSETP const, remove superfluous casts.
5751 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5752 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5754 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5755 (supply_64bit_reg): Likewise
5756 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5757 Make GREGSETP const, adapt casts accordingly.
5758 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5759 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5761 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5762 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5764 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5765 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5766 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5768 * mips-linux-nat.c: Include "regcache.h".
5769 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5770 current_regcache to mips{64}_(supply|fill)_ helper routines.
5771 (mips64_linux_regsets_fetch_registers): Likewise.
5772 (mips64_linux_regsets_store_registers): Likewise.
5774 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5775 REGCACHE argument; replace current_regcache. Make REGS const.
5776 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5777 replace current_regcache.
5778 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5779 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5780 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5781 mipsnbsd_store_inferior_registers): Pass current_regcache to
5782 mipsnbsd_(supply|fill)_... helper routines.
5784 * Makefile.in (mips-linux-nat.o): Update dependencies.
5786 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5788 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5789 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5790 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5791 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5792 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5793 * i386gnu-nat.c (store_fpregs): Likewise.
5794 * i386v4-nat.c (fill_fpregset): Likewise.
5795 * go32-nat.c (store_register, go32_store_registers): Likewise.
5797 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5799 * cris-tdep.c (supply_gregset): Rename to ...
5800 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5801 instead of current_regcache.
5802 (fetch_core_registers): Update call. Pass current_regcache.
5804 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5806 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5807 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5808 Use it instead of current_regcache.
5809 (supply_fparegset): Rename to ...
5810 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5811 Use it instead of current_regcache.
5812 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5813 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5815 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5817 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5818 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5819 use it instead of current_regcache.
5820 * alpha-tdep.h (struct regcache): Add forward declaration.
5821 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5822 alpha_fill_fp_regs): Update prototypes.
5824 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5825 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5826 * alpha-linux-nat.c: Include "regcache.h".
5827 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5828 current_regcache to alpha_supply/fill_ routines.
5830 * alphabsd-tdep.c: Include "regcache.h".
5831 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5832 pass it to alpha_supply_ routines. Make REGS const.
5833 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5834 pass it to alpha_fill_ routines.
5835 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5836 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5837 alphabsd_fill_fpreg): Update prototypes.
5839 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5840 fill_fpregset, alphabsd_fetch_inferior_registers,
5841 alphabsd_store_inferior_registers): Pass current_regcache to
5842 alphabsd_supply/fill_ routines.
5844 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5847 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5849 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5850 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5851 instead of current_regcache.
5852 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5853 REGCACHE parameter, pass it to supply_ routines.
5854 (aix_thread_fetch_registers): Pass current_regcache to
5855 fetch_regs_user_thread and fetch_regs_kernel_thread.
5857 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5858 Add REGCACHE parameter, use it instead of current_regcache.
5859 Call regcache_valid_p instead of register_cached.
5860 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5861 Also, pass REGCACHE to fill_ routines.
5862 (aix_thread_store_registers): Pass current_regcache to
5863 store_regs_user_thread and store_regs_kernel_thread.
5865 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5867 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5868 pointed to by GREGSETP.
5870 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5872 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5873 of regcache_raw_read_signed.
5874 (fill_fpregset): Use regcache_raw_collect instead of
5877 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5879 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5880 point arguments, test explicitly for use of the EABI32 ABI
5881 instead of inferring this condition from tests on register
5884 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5886 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5887 prior to allocating its location.
5889 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5891 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5892 based on mips_abi_regsize() whose result is known in advance.
5893 (mips_o64_push_dummy_call): Likewise.
5895 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5897 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5898 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5900 * mips-linux-nat.c: Include "gregset.h".
5901 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5902 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5903 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5904 fill_fpregset): Move to mips-linux-nat.c.
5906 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5908 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5910 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5911 (read_register): ... here.
5912 (deprecated_write_register_gen): Remove, inline ...
5913 (write_register): ... here.
5914 * regcache.h (deprecated_read_register_gen): Remove prototype.
5915 (deprecated_write_register_gen): Likewise.
5917 * remote-sim.c (gdbsim_store_register): Replace call to
5918 deprecated_read_register_gen with regcache_cooked_read.
5919 * target.c (debug_print_register): Replace calls to
5920 deprecated_read_register_gen and read_register with
5921 regcache_cooked_read.
5923 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5925 * hpux-thread.c (hpux_thread_store_registers): Use
5926 regcache_raw_collect, not regcache_raw_read.
5927 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5928 not regcache_raw_write.
5930 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5932 * gdbarch.sh: Remove deprecated_register_byte.
5933 * gdbarch.c, gdbarch.h: Regenerate.
5934 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5935 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5937 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5938 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5939 read-only register caches. Make REGCACHE parameter const.
5940 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5942 * mi/mi-main.c (old_regs): Remove.
5943 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5944 (register_changed_p): Reimplement to compare two register caches.
5945 (mi_cmd_data_list_changed_registers): Update caller.
5946 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5947 * mi/mi-interp.c (mi_interpreter_init): Do not call
5948 mi_setup_architecture_data.
5950 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5952 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5953 inline definition at the places the macros are used.
5954 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5956 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5958 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5960 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5961 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5962 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5963 (rs6000_aix_regset_from_core_section): New function.
5964 (rs6000_aix_init_osabi): Register it.
5965 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5966 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5967 * rs6000-nat.c (CoreRegs): Do not define type.
5968 (fetch_core_registers, rs6000_core_fns): Remove.
5969 (_initialize_core_rs6000): Do not register it. Rename to ...
5970 (_initialize_rs6000_nat): ... this.
5971 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5973 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5975 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5976 (dwarf2_read_address): Sign extend return address as required by
5977 target architecture.
5979 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5981 * solib-frv.c (lm_base): Bail out if the main executable has
5984 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5986 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5987 of FPCR register in fpregset.
5989 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5991 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5992 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5994 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5996 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5997 * rs6000-nat.c (rs6000_wait): New function.
5998 (_initialize_core_rs6000): Install it as to_wait target method.
5999 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
6001 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6003 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
6004 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
6005 * rs6000-nat.c (super_create_inferior): New variable.
6006 (rs6000_create_inferior): Make static. Adapt argument list. Call
6007 original version of create_inferior via super_create_inferior.
6008 (_initialize_core_rs6000): Install to_create_inferior target method.
6010 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6012 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
6013 (aix_thread_xfer_partial): ... this.
6014 (init_aix_thread_ops): Install to_xfer_partial instead
6015 of deprecated_xfer_memory target method.
6017 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
6018 and inftarg.o, add inf-ptrace.o.
6019 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
6020 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
6021 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
6022 (fetch_inferior_registers): Rename to ...
6023 (rs6000_fetch_inferior_registers): ... this. Make static.
6024 (store_inferior_registers): Rename to ...
6025 (rs6000_store_inferior_registers): ... this. Make static.
6026 (read_word, child_xfer_memory): Remove.
6027 (rs6000_xfer_partial): New function.
6028 (kernel_u_size): Remove.
6029 (_initialize_core_rs6000): Add inf_ptrace-based target.
6030 * Makefile.in (rs6000-nat.o): Update dependencies.
6032 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6034 * inf-ptrace.c: Include "gdb_stdint.h".
6035 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
6036 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
6037 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
6038 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
6039 (inf_ptrace_store_register): Likewise.
6040 * Makefile.in (inf-ptrace.o): Update dependencies.
6042 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6044 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
6045 * configure.tgt (rs6000-*-*): Likewise.
6046 * config/rs6000/aix4.mh: Delete file.
6047 * config/rs6000/aix4.mt: Delete file.
6048 * config/rs6000/rs6000.mh: Delete file.
6049 * config/rs6000/rs6000.mt: Delete file.
6051 * config/powerpc/nm-aix.h: Delete file.
6052 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
6054 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6056 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
6057 Remove obsolete part of comment.
6058 (store_regs_user_thread): Use uint32_t temporaries when calling
6060 (store_regs_kernel_thread): Likewise. Add assertion to verify
6061 correct size of struct ptsprs members.
6062 (aix_thread_xfer_memory): Fix type of myaddr.
6063 (aix_thread_extra_thread_info): Fix compiler warning.
6064 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
6065 (fetch_register, store_register): Adapt callers.
6067 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6069 * vec.h (vec_free): Rename to vec_free_. Adapt users.
6071 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
6073 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
6075 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
6076 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
6077 (alpha_linux_regset_from_core_section): New function.
6078 (alpha_linux_init_abi): Install it.
6079 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
6080 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
6081 <sys/procfs.h>, and "gregset.h".
6082 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
6083 Move from config/alpha/nm-linux.h.
6084 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
6086 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
6087 * alpha-nat.c: Remove #ifdef __linux__ section.
6088 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
6089 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
6090 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
6091 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
6092 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
6093 (NATDEPFILES): Remove alpha-nat.o.
6094 * config/alpha/nm-linux.h: Delete file.
6095 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
6096 * Makefile.in (alpha-linux-nat.o): Update dependencies.
6097 (alpha-linux-tdep.o): Likewise.
6099 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
6101 * mips-linux-nat.c: No longer include "gdbcore.h".
6102 (mips_linux_register_addr): Move from mips-linux-tdep.c.
6103 (mips64_linux_register_addr): Likewise.
6104 (mips_linux_register_u_offset): Call mips_linux_register_addr or
6105 mips64_linux_register_addr instead of register_addr.
6106 * mips-linux-tdep.c (mips_linux_register_addr,
6107 mips64_linux_register_addr): Move to mips-linux-nat.c.
6108 (register_addr): Remove.
6109 (register_addr_data, init_register_addr_data): Remove.
6110 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
6111 (set_mips_linux_register_addr): Remove.
6112 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
6113 * Makefile.in (mips-linux-nat.o): Update dependencies.
6115 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
6117 * linux-nat.c (linux_register_u_offset): Remove.
6118 (linux_target_install_ops): New function.
6119 (linux_target): Use it.
6120 (linux_trad_target): New function.
6121 * linux-nat.h (linux_trad_target): Declare.
6123 * alpha-linux-nat.c: Include "gdbcore.h".
6124 (alpha_linux_register_u_offset): New function.
6125 (_initialize_alpha_linux_nat): Use linux_trad_target.
6127 * mips-linux-nat.c: Include "gdbcore.h".
6128 (mips_linux_register_u_offset): New function.
6129 (_initialize_mips_linux_nat): Use linux_trad_target.
6131 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6132 * config/arm/nm-linux.h: Delete file.
6134 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
6135 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
6137 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6138 * config/ia64/nm-linux.h: Delete file.
6140 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6141 * config/m32r/nm-linux.h: Delete file.
6143 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6144 * config/m68k/nm-linux.h: Delete file.
6146 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6147 * config/pa/nm-linux.h: Delete file.
6149 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6150 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
6151 * config/powerpc/nm-linux.h: Delete file.
6153 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
6154 * config/s390/nm-linux.h: Delete file.
6156 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6157 * config/sparc/linux64.mh (NAT_FILE): Likewise.
6158 * config/sparc/nm-linux.h: Delete file.
6160 * Makefile.in (alpha-linux-nat.o): Update dependencies.
6161 (mips-linux-nat.o): Likewise.
6163 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
6165 * core-aout.c: Delete file.
6166 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
6167 (core-aout.o): Delete rule.
6168 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
6170 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
6172 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
6173 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
6174 KERNEL_U_ADDR): Remove.
6176 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
6177 (cannot_fetch_register, cannot_store_register): Remove.
6178 (fetch_register): Inline cannot_fetch_register and register_addr.
6179 (store_register): Inline cannot_store_register and register_addr.
6180 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
6181 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
6182 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
6185 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
6186 (fetch_register): Inline register_addr.
6187 (store_register): Inline register_addr.
6188 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
6189 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
6190 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
6192 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
6193 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
6194 REGISTER_U_ADDR): Remove.
6196 * hppa-linux-nat.c (register_addr): Rename to ...
6197 (hppa_linux_register_addr): ... this. Make static.
6198 (fetch_register, store_register): Adapt callers.
6199 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
6201 * ppc-linux-nat.c (kernel_u_size): Remove.
6202 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
6204 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
6205 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
6207 * config/vax/nm-vax.h: Delete file.
6209 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
6211 * MAINTAINERS (Write After Approval): Add myself.
6213 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
6215 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
6216 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
6217 (m68k_linux_sigcontext_reg_offset): Fix typo.
6218 (target_is_uclinux): New.
6219 (m68k_linux_inferior_created): New.
6220 (m68k_linux_get_sigtramp_info): Check for uClinux or
6221 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
6223 (_initialize_m68k_linux_tdep): Register
6224 m68k_linux_inferior_created.
6226 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
6228 * win32-nat.c (win32_detach): Remove delete_command call.
6229 Resume inferior with win32_resume instead of win32_continue.
6231 2007-04-19 Jerome Guitton <guitton@adacore.com>
6233 * ser-mingw.c (fd_is_file): New function.
6234 (file_select_thread): New function.
6235 (ser_console_wait_handle): Add special handling for files.
6237 2007-04-18 Denis Pilat <denis.pilat@st.com>
6239 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
6240 when missing from DW_TAG_subrange_type. Remove the handling of null
6241 return from die_type.
6243 2007-04-18 Maciej W. Rozycki <macro@mips.com>
6245 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
6246 change to rearrange some brackets.
6247 (mips_n32n64_push_dummy_call): Likewise.
6248 (mips_o32_push_dummy_call): Likewise.
6249 (mips_o64_push_dummy_call): Likewise.
6251 2007-04-18 Denis Pilat <denis.pilat@st.com>
6253 * infcmd.c (post_create_inferior): Start with a call to
6254 target_terminal_ours.
6256 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6258 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
6260 (mips_n32n64_push_dummy_call): Likewise. Reformat some
6262 (mips_o32_push_dummy_call): Likewise.
6263 (mips_o64_push_dummy_call): Likewise.
6265 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6267 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
6270 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6272 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
6274 (mips_o32_push_dummy_call): Likewise.
6276 2007-04-17 Andreas Schwab <schwab@suse.de>
6278 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
6279 sal to be bigger than the end of the function.
6281 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6282 Nigel Stephens <nigel@mips.com>
6284 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
6285 argument alignment requirements when calculating stack space
6286 required. When aligning an arg register to eight bytes
6287 boundary, align stack_offset too. Write floating-point
6288 arguments to the appropriate integer register if need go there.
6289 (mips_o64_push_dummy_call): Likewise.
6291 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
6293 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
6294 "sig" arguments, add "regcache" argument.
6295 * gdbarch.c, gdbarch.h: Regenerate.
6297 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
6298 (handle_inferior_event): Call remove_single_step_breakpoints directly
6299 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
6301 * alpha-tdep.c (alpha_software_single_step): Update argument list.
6302 Remove handling of !insert_breakpoints_p case.
6303 * arm-tdep.c (arm_software_single_step): Likewise.
6304 * cris-tdep.c (cris_software_single_step): Likewise.
6305 * mips-tdep.c (mips_software_single_step): Likewise.
6306 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6307 * sparc-tdep.c (sparc_software_single_step): Likewise.
6308 * spu-tdep.c (spu_software_single_step): Likewise.
6310 * alpha-tdep.h (alpha_software_single_step): Update prototype.
6311 * mips-tdep.h (mips_software_single_step): Likewise.
6312 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6313 * sparc-tdep.h (sparc_software_single_step): Likewise.
6315 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
6317 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
6318 when removing single-step breakpoints.
6320 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
6322 * varobj.h (varobj_set_frozen): New
6323 (varobj_get_frozen): New.
6324 (varobj_update): New parameter explicit.
6325 * varobj.c (struct varobj): New fields frozen
6327 (varobj_set_frozen, varobj_get_frozen): New.
6328 (install_new_value): Don't fetch values for
6329 frozen variable object, or children thereof. Allow
6330 a frozen variable object to have non-fetched value.
6331 (varobj_update): Allow updating child variables.
6332 Don't traverse frozen children.
6333 (new_variable): Initialize the frozen field.
6334 (c_value_of_variable): Return NULL for frozen
6335 variable without any value yet.
6336 * mi/mi-cmd-var.c (varobj_update_one): New parameter
6338 (mi_cmd_var_create): Output the 'frozen' field,
6339 as soon as testsuite is adjusted to expect that field.
6340 (mi_cmd_var_set_frozen): New.
6341 (mi_cmd_var_update): Pass the 'explicit' parameter to
6343 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
6344 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
6346 2007-04-13 Paul Brook <paul@codesourcery.com>
6348 * target-descriptions.c (tdesc_named_type): Add ieee_single and
6350 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
6352 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6354 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
6355 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
6356 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
6357 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
6358 * Makefile.in: Remove references to deleted files.
6359 * README: Do not mention deleted ROM monitor interfaces.
6360 * defs.h (enum language): Delete language_scm.
6361 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
6362 (dump_subexp_body_standard): Likewise.
6363 * parse.c (operator_length_standard): Likewise.
6364 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
6365 * remote-mips.c: Do not include remote-utils.h.
6366 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
6368 * value.c: Do not include scm-lang.h.
6369 (unpack_long): Delete scm_unpack call.
6370 * config/h8300/h8300.mt, config/mips/embed.mt,
6371 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
6372 config/sh/embed.mt, config/sh/linux.mt: Remove references to
6374 * NEWS: Mention removed files.
6376 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6378 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
6379 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
6381 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6383 * NEWS: Mention removal of HP aCC support.
6385 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6387 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
6388 first entry for static executables.
6389 (breakpoint_addr): Delete unused variable.
6390 (elf_locate_base): Search for _r_debug in static executables.
6391 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
6394 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6396 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
6397 (bpstat_what, print_one_breakpoint, allocate_bp_location)
6398 (mention): Remove bp_through_sigtramp support.
6399 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
6401 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6403 * breakpoint.c (bpstat_what): Give step-resume higher priority than
6406 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6408 * infrun.c: Doc fixes.
6409 (handle_inferior_event): Clarify debug message.
6410 (insert_step_resume_breakpoint_at_sal): Print a debug message.
6412 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6414 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
6416 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6418 * config/m68k/tm-monitor.h: Delete file.
6419 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
6420 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
6422 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
6423 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
6425 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
6427 * gdbarch.sh (software_single_step): Change the return type
6428 from void to int and reformatted some comments to <= 80
6430 * gdbarch.c, gdbarch.h: Regenerated.
6431 * alpha-tdep.c (alpha_software_single_step): Likewise.
6432 * alpha-tdep.h (alpha_software_single_step): Likewise.
6433 * arm-tdep.c (arm_software_single_step): Likewise.
6434 * cris-tdep.c (cris_software_single_step): Likewise.
6435 * mips-tdep.c (mips_software_single_step): Likewise.
6436 * mips-tdep.h (mips_software_single_step): Likewise.
6437 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6438 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6439 * sparc-tdep.c (sparc_software_single_step): Likewise.
6440 * sparc-tdep.h (sparc_software_single_step): Likewise.
6441 * spu-tdep.c (spu_software_single_step): Likewise.
6442 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
6443 and act accordingly.
6445 2007-04-11 Steve Ellcey <sje@cup.hp.com>
6447 * configure.ac (build_warnings): Add -Wno-char-subscripts.
6448 * configure: Regenerate.
6449 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
6451 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6453 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
6455 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6457 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
6459 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
6460 distinct on the TYPE_STUB_SUPPORTED debug targets.
6461 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
6463 2007-04-11 Joel Brobecker <brobecker@adacore.com>
6465 * sparc-tdep.c (X_RS2): New macro.
6466 (sparc_skip_stack_check): New function.
6467 (sparc_analyze_prologue): Adjust PC past stack probing
6468 sequence if necessary.
6470 2007-04-10 Andreas Schwab <schwab@suse.de>
6472 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
6475 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6477 * breakpoint.c (gdb_breakpoint_query): Really return an
6479 (gdb_breakpoint): Likewise.
6480 * thread.c (gdb_list_thread_ids): Likewise.
6481 (gdb_thread_select): Likewise.
6482 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
6483 (mi_cmd_thread_list_ids): Remove bogus initialization.
6485 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6487 * Makefile.in (SFILES): Remove hpacc-abi.c.
6488 (COMMON_OBS): Remove hpacc-abi.o.
6489 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
6490 (hpacc-abi.o, hpread.o): Delete rules.
6491 * somread.c: Delete extern declarations from hpread.c.
6492 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
6493 (som_symfile_finish): Do not call hpread_symfile_finish.
6494 (som_symfile_init): Do not call hpread_symfile_init.
6495 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
6496 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
6497 * hpacc-abi.c, hpread.c: Deleted.
6499 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6501 * solib-svr4.c (enable_break): Simplify return value.
6502 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
6504 2007-04-10 Andreas Schwab <schwab@suse.de>
6506 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
6507 l_ld_size, l_next_size, l_prev_size, l_name_size.
6509 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
6510 to extract addresses from link map.
6511 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
6512 (LM_NEXT): Likewise.
6513 (LM_NAME): Likewise.
6514 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
6515 (elf_locate_base): Likewise.
6516 (open_symbol_file_object): Likewise.
6517 (svr4_fetch_objfile_link_map): Likewise.
6518 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
6519 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
6521 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
6522 (svr4_lp64_fetch_link_map_offsets): Likewise.
6524 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
6525 removed members. Set l_ld_offset to -1 if not present.
6527 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
6529 Pass stderr of program run with "target remote |"
6531 * serial.c (serial_open): Set error_fd to -1.
6532 * serial.h (struct serial): New field error_fd.
6533 (struct serial_opts): New field avail.
6534 * ser-pipe.c (pipe_open): Create another pair
6535 of sockets. Pass stderr to gdb.
6536 * ser-mingw.c (pipe_windows_open): Pass
6537 PEX_STDERR_TO_PIPE to pex_run. Initialize
6540 (_initialize_ser_windows): Hook pipe_avail.
6541 * ser-base.c (generic_readchar): Check if there's
6542 anything in stderr channel and route that to gdb_stderr.
6544 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
6546 * dbxread.c (read_ofile_symtab): Move current_objfile
6547 clearing to after end_stabs.
6549 2007-04-01 Andreas Schwab <schwab@suse.de>
6551 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
6552 gdbarch instead of current_gdbarch.
6554 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
6556 * varobj.c (varobj_create): Keep varobj value
6557 NULL when evaluating the type.
6559 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
6561 * NEWS: Mention new Windows CE support.
6563 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
6565 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
6566 the obsoletion stanza.
6567 * NEWS: Mention deleted targets.
6569 * config/sh/tm-wince.h: Remove.
6570 * config/sh/wince.mt: Remove.
6571 * config/mips/tm-wince.h: Remove.
6572 * config/mips/wince.mt: Remove.
6575 * wince-stub.c: Remove.
6576 * wince-stub.h: Remove.
6577 * Makefile.in (wince.o): Remove rule.
6578 (wince-stub.o): Likewise.
6580 * mips-tdep.c (mips_next_pc): Make static.
6581 * mips-tdep.h (mips_next_pc): Remove declaration.
6582 * arm-tdep.c (arm_pc_is_thumb): Make static.
6583 (thumb_get_next_pc): Likewise.
6584 (arm_get_next_pc): Likewise.
6585 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
6586 (arm_pc_is_thumb): Likewise.
6587 (thumb_get_next_pc): Likewise.
6588 (arm_get_next_pc): Likewise.
6590 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6592 * MAINTAINERS: Remove d10v entry.
6593 * Makefile.in (SFILES): Remove dwarfread.c.
6594 (COMMON_OBS): Remove dwarfread.o.
6595 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
6596 (remote-est.o, rom68k-rom.o): Delete.
6597 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
6598 target est, target rom68k, and DWARF 1.
6599 * configure.tgt: Mark d10v as removed.
6600 * dwarf2read.c: Doc update.
6601 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
6603 (elf_locate_sections): Do not set them.
6604 (elf_symfile_read): Do not call dwarf_build_psymtabs.
6605 * symfile.h (dwarf_build_psymtabs): Delete prototype.
6606 * config/m68k/monitor.mt (TDEPFILES): Prune.
6607 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
6608 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
6610 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6612 * doublest.c (convert_floatformat_to_doublest): Use
6613 floatformat_classify.
6614 (floatformat_is_nan): Rename to...
6615 (floatformat_classify): ...this. Return more information.
6616 * doublest.h (enum float_kind): New.
6617 (floatformat_is_nan): Replace prototype...
6618 (floatformat_classify): ...with this one.
6619 * valprint.c (print_floating): Use floatformat_classify. Handle
6622 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6624 * README: Mention ISO C library requirement.
6626 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6628 * Makefile.in (SFILES): Remove nlmread.c.
6629 (COMMON_OBS): Remove nlmread.o.
6630 (nlmread.o): Delete rule.
6631 * README: Delete reference to remote-st.c.
6632 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
6633 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
6635 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
6636 (_initialize_i386_tdep): Do not reference them.
6637 * nlmread.c: Delete file.
6638 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
6639 * target.c: Doc update.
6640 * thread.c: Delete commented include.
6641 * config/alpha/tm-alpha.h: Doc update.
6643 2007-03-30 Chris Dearman <chris@mips.com>
6645 * utils.c (string_to_core_addr): Comment typo.
6647 2007-03-30 Chris Dearman <chris@mips.com>
6649 * mips-tdep.c: Comment typo.
6651 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
6653 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
6654 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6655 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6656 * config/powerpc/nm-ppc64-linux.h: Remove file.
6657 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
6658 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
6659 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
6660 * infptrace.c (call_ptrace): Likewise.
6661 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
6662 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
6663 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
6664 (store_register): Likewise.
6666 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6668 * Makefile.in (varobj.o): Add missing dependency.
6670 2007-03-29 Michael Snyder <msnyder@access-company.com>
6672 * MAINTAINERS: Update my email address.
6674 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6676 Add support for exception handling with multiple versions of
6678 * ada-lang.c: Update general comments on how Ada exception catchpoints
6680 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6681 (__gnat_raise_nodefer_with_msg): Delete.
6682 (ada_unhandled_exception_name_addr_ftype): New type.
6683 (exception_support_info): New type.
6684 (ada_unhandled_exception_name_addr): Add forward declaration.
6685 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6686 (default_exception_support_info): New constant.
6687 (exception_support_info_fallback): Likewise.
6688 (exception_info): New global variable.
6689 (ada_exception_support_info_sniffer): New function.
6690 (ada_executable_changed_observer): Likewise.
6691 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6692 ada_unhandled_exception_name_addr.
6693 (ada_unhandled_exception_name_addr): Reimplement to match the
6694 latest Ada runtime implementation.
6695 (error_breakpoint_runtime_sym_not_found): Delete.
6696 (ada_exception_sym_name): Get the exception sym name from
6697 exception_info rather than hardcoding it.
6698 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6699 Update error handling.
6700 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6702 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6704 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6705 (remote-st.o, uw-thread.o): Delete.
6706 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6707 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6708 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6709 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6710 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6711 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6712 rs6000-*-lynxos* to an obsoletion stanza.
6713 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6714 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6715 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6716 i[34567]86-*-netware*.
6717 * NEWS: Mention deleted targets.
6719 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6720 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6721 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6722 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6723 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6724 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6725 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6726 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6727 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6728 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6729 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6730 config/rs6000/tm-rs6000ly.h: Delete files.
6732 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6734 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6735 * interps.c (clear_interpreter_hooks): Do not clear
6736 deprecated_registers_changed_hook.
6737 * regcache.c (registers_changed): Do not call it.
6738 * top.c (deprecated_registers_changed_hook): Do not define it.
6739 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6740 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6741 (tui_remove_hooks): Do not remove it.
6742 (tui_selected_frame_level_changed_hook): Check for negative level.
6743 Use get_selected_frame.
6744 (tui_registers_changed_hook): Deleted.
6746 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6748 * stabsread.c (add_undefined_type): Add extra parameter.
6749 Now handles nameless types separately.
6750 (struct nat): New type.
6751 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6752 New static variables.
6753 (read_type): Update calls to add_undefined_type.
6754 (add_undefined_type_noname): New function.
6755 (add_undefined_type_1): Renames from add_undefined_type.
6756 (cleanup_undefined_types_noname): New function.
6757 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6758 (cleanup_undefined_types): New handles nameless types separately.
6759 (_initialize_stabsread): Initialize our new static constants.
6761 2007-03-29 Denis Pilat <denis.pilat@st.com>
6763 * configure.ac: Test for signal.h.
6764 * configure, config.in: Regenerate.
6766 2007-03-29 Denis Pilat <denis.pilat@st.com>
6768 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6769 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6771 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6773 * arm-wince-tdep.c: New.
6774 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6775 (MT_CFLAGS): Delete.
6777 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6778 solib-legacy.o, solib-svr4.o, and remove wince.o.
6779 * configure.tgt (arm*-*-mingw32ce*): Add.
6780 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6781 (do_target_signal_to_host): Silence 'not used' warning.
6782 * config/arm/tm-wince.h: Remove.
6784 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6786 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6787 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6789 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6790 * config/ia64/tm-linux.h: Remove file.
6791 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6792 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6793 legacy_pc_in_sigtramp.
6794 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6795 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6796 Remove func_name argument.
6797 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6799 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6800 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6801 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6802 (HAVE_STEPPABLE_WATCHPOINT): Define.
6804 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6805 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6806 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6807 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6808 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6809 target_insert_watchpoint, target_remove_watchpoint): Remove.
6810 (FETCH_INFERIOR_REGISTERS): Define.
6811 * ia64-linux-nat.c (ia64_register_addr): Make static.
6812 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6813 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6814 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6815 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6816 (ia64_linux_stopped_by_watchpoint): Make static.
6817 (ia64_linux_can_use_hw_breakpoint): New function.
6818 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6819 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6820 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6822 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6824 * linespec.c: Include language.h.
6825 (find_methods): Add language parameter. Call
6826 lookup_symbol_in_language. Pass language down.
6827 (add_matching_methods): Likewise. Call
6828 lookup_symbol_in_language.
6829 (add_constructors): Likewise.
6830 (find_method): Pass sym_class to collect_methods.
6831 (collect_methods): Add sym_class parameter. Pass language
6833 * symtab.c (lookup_symbol): Rename to ...
6834 (lookup_symbol_in_language): ... this. Add language
6835 parameter. Use passed language instead of current_language.
6836 (lookup_symbol): New as wrapper around
6837 lookup_symbol_in_language.
6838 (lookup_symbol_aux): Add language parameter. Use passed
6839 language instead of current_language.
6840 (search_symbols): Indent.
6841 * symtab.h (enum language): Forward declare.
6842 (lookup_symbol_in_language): Declare.
6843 (lookup_symbol): Update description.
6844 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6845 * ada-lang.c (restore_language): Remove.
6846 (lookup_symbol_in_language): Remove.
6848 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6850 * breakpoint.c (bpstat_num): Add int *num parameter.
6851 * breakpoint.h (bpstat_num): Likewise.
6852 * infcmd.c (continue_command): Adjust to new bpstat_num
6854 (program_info): Likewise.
6856 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6858 * config/sh/tm-sh.h: Remove file.
6859 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6860 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6861 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6862 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6864 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6866 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6867 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6868 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6869 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6870 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6871 sequence if target_shortname is "remote".
6873 2007-03-27 Anton Blanchard <anton@samba.org>
6875 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6876 instead of wordsize when looking for the LR in a stack frame.
6878 2007-03-27 Andreas Schwab <schwab@suse.de>
6879 Daniel Jacobowitz <dan@codesourcery.com>
6881 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6882 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6883 argument. Update all callers.
6884 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6885 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6886 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6887 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6888 (dwarf2_frame_set_adjust_regnum): ...this.
6889 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6890 * rs6000-tdep.c: Include "dwarf2-frame.h".
6891 (rs6000_adjust_frame_regnum): Define.
6892 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6893 Register rs6000_adjust_frame_regnum.
6895 * Makefile.in (rs6000-tdep.o): Update dependencies.
6897 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6899 * Makefile.in: Add support for a "pdf" target.
6901 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6903 * amd64-tdep.c (amd64_init_frame_cache): New function.
6904 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6906 2007-03-26 Nigel Stephens <nigel@mips.com>
6907 Maciej W. Rozycki <macro@mips.com>
6909 * ui-out.c (ui_out_field_core_addr): Truncate address to
6910 TARGET_ADDR_BIT size before printing.
6912 2007-03-22 Nigel Stephens <nigel@mips.com>
6913 Maciej W. Rozycki <macro@mips.com>
6915 * remote-mips.c (mips_xfer_memory): Update prototype.
6917 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6919 * symfile.h: #include "symtab.h"
6921 2007-03-22 Denis Pilat <denis.pilat@st.com>
6923 * utils.c (pagination_on_command, pagination_off_command):
6924 Remove useless prototypes.
6926 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6929 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6930 instead of TYPE_NAME for object base class name.
6933 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6935 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6936 Specify frame type in calls to frame_func_unwind().
6938 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6940 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6941 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6942 (refine_prologue_limit): Delete.
6943 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6944 Assume lim_pc is set. Correct check for incomplete prologues.
6945 Do not skip clobbers of the frame pointer.
6946 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6949 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6951 * frame.c (frame_pop): Check to see whether there's a frame to
6952 which we can pop first.
6954 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6956 * MAINTAINERS (Write After Approval): Add myself.
6958 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6960 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6961 (handle_inferior_event): Remove unnecessary braces.
6962 * breakpoint.c (bpstat_what): Remove wrong comment.
6964 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6966 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6967 (spu_gdbarch_init): Install it.
6969 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6971 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6972 object types, not 0.
6974 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6976 * spu-tdep.c (spu_frame_align): New function.
6977 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6979 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6981 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6982 (spu_software_single_step): Likewise.
6983 (spu_read_pc, spu_write_pc): New functions.
6984 (spu_gdbarch_init): Install them.
6986 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6988 * cli/cli-dump.c (struct callback_data): load_offset needs to
6989 have signed long type.
6991 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6993 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6994 Revert the previous change that had some unexpected side-effects
6996 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6997 function to get the address of the calling instruction.
6999 2007-03-07 Denis Pilat <denis.pilat@st.com>
7001 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
7002 get_selected_frame by deprecated_safe_get_selected_frame.
7004 2007-03-02 Mark Kettenis <kettenis@gnu.org>
7006 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
7007 "gdb_string.h". Don't include "nbsd-tdep.h".
7008 (SIZEOF_STRUCT_REG): Remove.
7009 (SHNBSD_SIZEOF_GREGS): New.
7010 (shnbsd_supply_gregset, shnbsd_collect_gregset)
7011 (shnbsd_regset_from_core_section): New functions.
7012 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
7013 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
7014 shnbsd_supply_gregset, shnbsd_collect_gregset.
7015 (shnbsd_gregset): New variable.
7016 (shnbsd_init_abi): Set regset_from_core_section.
7017 (GDB_OSABI_NETBSD_CORE): New define.
7018 (shnbsd_core_osabi_sniffer): New function.
7019 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
7020 * Makefile.in (shnbsd-tdep.o): Update dependencies.
7021 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
7023 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
7025 2007-02-28 Joel Brobecker <brobecker@adacore.com>
7027 * gdbtypes.c (replace_type): Fix typo that caused us to not update
7028 length of the types referenced by the new type CV ring.
7030 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7032 * frame.c (frame_pop, frame_observer_target_changed): Call
7034 (flush_cached_frames): Rename to reinit_frame_cache and delete
7036 * frame.h (flush_cached_frames): Delete prototype and update comment.
7038 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
7039 reinit_frame_cache instead of flush_cached_frames. Do not call
7040 select_frame after reinit_frame_cache.
7041 * corelow.c (core_open): Likewise.
7042 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
7043 * infrun.c (prepare_to_proceed, context_switch)
7044 (handle_inferior_event): Likewise.
7045 * linux-fork.c (fork_load_infrun_state): Likewise.
7046 * ocd.c (ocd_start_remote): Likewise.
7047 * remote-e7000.c (e7000_start_remote): Likewise.
7048 * remote-mips.c (device): Likewise.
7049 * thread.c (switch_to_thread): Likewise.
7050 * tracepoint.c (finish_tfind_command): Likewise.
7051 * gdbarch.c: Regenerated.
7053 2007-02-28 Jerome Guitton <guitton@adacore.com>
7054 Joel Brobecker <brobecker@adacore.com>
7056 * gdbtypes.c (check_typedef): Do not replace stub type if
7057 the resolved type is not defined in the same objfile.
7059 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7061 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
7063 2007-02-28 Joel Brobecker <brobecker@adacore.com>
7065 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
7066 symbol for Ada units when the symbol is defined using 't' rather
7067 than 'Tt' as symbol descriptor.
7069 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7071 * config/mips/tm-nbsd.h: Delete file.
7072 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
7073 * config/sh/tm-nbsd.h: Delete file.
7074 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
7076 2007-02-28 Joel Brobecker <brobecker@adacore.com>
7078 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
7079 unused WRONG_PARAM value since it was recently deleted.
7081 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
7083 * varobj.c (varobj_update): Free temporary vectors.
7085 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7087 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
7088 * config/powerpc/tm-linux.h: Delete file.
7089 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
7090 (PROCESS_LINENUMBER_HOOK): Do not undefine.
7091 (TEXT_SEGMENT_BASE): Do not redefine.
7092 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
7093 from config/rs6000/tm-rs6000.h.
7094 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
7095 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
7096 (TEXT_SEGMENT_BASE): Remove.
7097 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
7098 (rs6000_in_solib_return_trampoline): Remove.
7099 (SKIP_TRAMPOLINE_CODE): Remove.
7100 (rs6000_skip_trampoline_code): Remove.
7101 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
7102 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
7103 (FP0_REGNUM): Remove.
7104 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
7105 (rs6000_set_host_arch_hook): Remove.
7106 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
7107 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
7108 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
7109 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
7110 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
7111 * rs6000-nat.c: Include "rs6000-tdep.h".
7112 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
7113 (set_host_arch): Rename to ...
7114 (rs6000_create_inferior): ... this. Make public.
7115 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
7116 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
7117 (rs6000_create_inferior): Remove.
7118 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
7119 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
7120 set_gdbarch_in_solib_return_trampoline, and
7121 set_gdbarch_skip_trampoline_code.
7122 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
7123 from config/rs6000/tm-rs6000.h.
7125 2007-02-27 Joel Brobecker <brobecker@adacore.com>
7127 * buildsym.c (record_producer): Do nothing if no producer is provided.
7129 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
7131 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
7132 to check changelist is non-NULL. Call error if the frontend tries
7133 to update a non-root variable.
7135 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
7137 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7139 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
7140 (dwarf2_frame_sniffer): Update.
7141 (dwarf2_signal_frame_this_id): New function.
7142 (dwarf2_signal_frame_unwind): Use it.
7143 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
7144 * frame.c (frame_func_unwind): Add this_type argument.
7145 (get_frame_func): Update.
7146 (frame_unwind_address_in_block): Add this_type argument and check it.
7148 (get_frame_address_in_block): Update.
7149 * frame.h (enum frame_type): Move higher in the file.
7150 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
7153 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
7154 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
7155 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
7156 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
7157 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
7158 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
7159 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
7160 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
7161 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
7162 frame_func_unwind and frame_unwind_address_in_block to specify
7163 the frame type. Use frame_unwind_address_in_block instead of
7164 frame_pc_unwind in sniffers.
7166 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7168 * frame.c (deprecated_selected_frame): Rename to...
7169 (selected_frame): ...this. Make static.
7170 (get_selected_frame, select_frame): Update.
7171 * frame.h (deprected_select_frame): Delete.
7172 (deprecated_safe_get_selected_frame): Update comments.
7174 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
7175 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
7176 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
7177 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
7178 tui/tui.c: Replace references to deprecated_selected_frame.
7180 2007-02-27 Fred Fish <fnf@specifix.com>
7182 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
7183 directly decrement the stack pointer, accumulate their operand into
7184 the stack offset, and mark the function as not being frameless.
7186 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7188 * arch-utils.c (selected_byte_order): New.
7189 * arch-utils.h (selected_byte_order): New prototype.
7190 * remote-sim.c (gdbsim_open): Use selected_byte_order.
7192 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7194 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
7195 (default_symfile_offsets): Check VMA here. Update section VMAs.
7197 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7199 * remote.c (init_remote_state): Add special handling for placeholder
7202 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7204 * Makefile.in (XMLFILES): Include $(TDEP_XML).
7205 (filenames_h): New variable.
7206 (clean): Clean up xml-builtin.c and stamp-xml.
7207 (arm-linux-nat.o): Update.
7208 * config/arm/linux.mh (TDEP_XML): Define.
7209 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
7210 (arm_linux_has_wmmx_registers): New.
7211 (GET_THREAD_ID): Fix typo.
7212 (IWMMXT_REGS_SIZE): Define.
7213 (fetch_wmmx_regs, store_wmmx_regs): New.
7214 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
7215 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
7216 (super_xfer_partial, arm_linux_xfer_partial): New.
7217 (_initialize_arm_linux_nat): Use them.
7218 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
7219 (xml_builtin_xfer_partial): New function.
7220 * xml-support.h (xml_builtin_xfer_partial): New prototype.
7221 * NEWS: Update mention of iWMMXt support.
7223 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7225 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
7226 if there are no FPA registers.
7227 (arm_dwarf_reg_to_regnum): New function.
7228 (arm_register_type, arm_register_name): Return minimal values for
7229 unsupported registers.
7230 (arm_register_sim_regno): Handle iWMMXt registers.
7231 (arm_gdbarch_init): Record missing FPA registers if indicated by
7232 a target description. Recognize iWMMXt registers. Only register
7233 "info float" for FPA. Use ARM_NUM_REGS. Register
7234 arm_dwarf_reg_to_regnum.
7235 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
7237 (struct gdbarch_tdep): Add have_fpa_registers.
7238 * features/xscale-iwmmxt.xml: Update capitalization.
7239 * regformats/arm-with-iwmmxt.dat: Regenerated.
7241 2007-02-24 Kevin Buettner <kevinb@redhat.com>
7243 * NEWS (New targets): Add entry for the Toshiba Media Processor.
7245 2007-02-23 Kevin Buettner <kevinb@redhat.com>
7247 * MAINTAINERS (mep): New target.
7249 2007-02-23 Kevin Buettner <kevinb@redhat.com>
7251 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
7253 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
7254 (mep-tdep.o): New rule.
7255 * configure.tgt (mep-*-*): New target.
7256 * mep-tdep.c: New file.
7257 * config/mep/mep.mt: New file.
7259 2007-02-22 Markus Deuling <deuling@de.ibm.com>
7261 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
7262 BREAKPOINT_HIT and STOP_UNKNOWN.
7264 2007-02-22 Markus Deuling <deuling@de.ibm.com>
7266 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
7268 2007-02-20 Joel Brobecker <brobecker@adacore.com>
7270 * gdb_expat.h (XMLCALL): Define if not already defined.
7272 2007-02-20 Andreas Schwab <schwab@suse.de>
7274 * Makefile.in (symfile.o): Update dependencies.
7276 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
7278 * MAINTAINERS: Disable -Werror for cris simulator. Build
7279 sparc64-solaris2.10 instead of the broken sparc-elf.
7280 * solib-frv.c: Include "solib.h".
7281 * Makefile.in (solib-frv.o): Update.
7282 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
7283 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
7284 (xtensa_frame_this_id, xtensa_frame_prev_register)
7285 (xtensa_push_dummy_call): Use %p.
7287 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7289 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7290 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
7291 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7292 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
7293 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
7294 (sparc-linux-tdep.o): Update.
7296 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
7298 * xtensa-tdep.h (xtensa_reg_mask_t): New.
7299 (xtensa_mask_t): Change mask field to be a separate array.
7300 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
7301 (xtensa_pseudo_register_write, xtensa_unwind_pc)
7302 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
7303 (xtensa_breakpoint_from_pc): Remove implicit type casting.
7304 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
7305 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
7306 (mask14, mask15): Rename to
7307 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
7308 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
7309 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
7310 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
7311 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
7312 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
7313 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
7314 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
7315 (xtensa_submask14, xtensa_submask15): New.
7316 (rmap): Follow strict aliasing rules doing static initialization.
7318 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
7320 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
7321 handling from here...
7322 (tdesc_register_type): ...to here.
7323 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
7324 * features/arm-core.xml: Use code_ptr and data_ptr.
7326 2007-02-13 Denis Pilat <denis.pilat@st.com>
7328 * varobj.h (enum varobj_update_error): New enum.
7329 * varobj.c (struct varobj_root): Add is_valid member.
7330 (varobj_get_type): Check for invalid varobj.
7331 (varobj_get_attributes): Likewise.
7332 (variable_editable):Likewise.
7333 (varobj_update): Likewise. Use varobj_update_error.
7334 (new_root_variable): Set root varobj as valid by default.
7335 (varobj_invalidate): New function.
7336 * symfile.c (clear_symtab_users): Use varobj_invalidate.
7337 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
7338 Use varobj_update_error.
7340 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
7343 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
7344 Pascal language marker.
7345 * dwarf2read.c (set_cu_language): Likewise.
7347 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
7349 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
7350 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
7351 instead of target_terminal_init since inferior_ptid isn't set yet.
7353 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
7355 * MAINTAINERS (Write After Approval): Add myself.
7357 2007-02-09 Fred Fish <fnf@specifix.com>
7359 Based on work by Apple Computer, Inc.
7360 * event-top.c (async_request_quit): Call quit() whenever either
7361 quit_flag is set or immediate_quit is set.
7363 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7365 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
7366 type to a pointer to const struct block.
7367 (ada_lookup_symbol_list): Don't cast away constness when calling
7368 remove_out_of_scope_renamings.
7370 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7372 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
7373 address of 'filename'; it is always non null.
7375 2007-02-09 Joel Brobecker <brobecker@adacore.com>
7377 * exec.c (add_to_section_table): Do not discard empty sections.
7379 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7381 * features/Makefile, features/arm-with-iwmmxt.xml,
7382 features/gdbserver-regs.xsl, features/number-regs.xsl,
7383 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
7384 * regformats/arm-with-iwmmxt.dat: Generate.
7385 * NEWS: Mention iWMMXt.
7387 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7389 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
7390 (xml-tdesc.o): Update.
7391 * xml-support.c: Add a comment.
7392 (gdb_xml_enums_boolean): New variable.
7393 (gdb_xml_parse_attr_enum): Use strcasecmp.
7394 * xml-support.h (gdb_xml_enums_boolean): Declare.
7395 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
7396 next_regnum, and current_union.
7397 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
7398 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
7399 (field_attributes, union_children, reg_attributes, union_attributes)
7400 (vector_attributes, feature_attributes, feature_children): New.
7401 (target_children): Make static. Add <feature>.
7402 (tdesc_elements): Make static.
7403 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
7404 (struct tdesc_feature, tdesc_feature_p): New types.
7405 (struct target_desc): Add features member.
7406 (struct tdesc_arch_data, tdesc_data): New.
7407 (target_find_description): Clarify error message. Warn about
7408 ignored register descriptions.
7409 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7410 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
7411 (tdesc_data_cleanup, tdesc_numbered_register)
7412 (tdesc_numbered_register_choices, tdesc_find_register)
7413 (tdesc_register_name, tdesc_register_type)
7414 (tdesc_remote_register_number, tdesc_register_reggroup_p)
7415 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
7416 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
7417 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
7418 (tdesc_create_feature, tdesc_record_type): New.
7419 (free_target_description): Free features.
7420 (_initialize_target_descriptions): Initialize tdesc_data.
7421 * arch-utils.c (default_remote_register_number): New.
7422 * arch-utils.h (default_remote_register_number): New prototype.
7423 * target-descriptions.h (set_tdesc_pseudo_register_name)
7424 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
7425 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
7426 (tdesc_numbered_register, tdesc_numbered_register_choices)
7427 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7428 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
7429 (tdesc_create_reg): Declare.
7430 * gdbarch.sh (remote_register_number): New entry.
7431 * gdbarch.c, gdbarch.h: Regenerate.
7432 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
7433 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
7435 * arm-tdep.c (arm_register_aliases): New.
7436 (arm_register_name_strings): Rename to...
7437 (arm_register_names): ...this. Make const. Delete the old version.
7438 (current_option, arm_register_byte): Delete.
7439 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
7440 (value_of_arm_user_reg): New.
7441 (arm_gdbarch_init): Verify any described registers. Call
7442 tdesc_use_registers. Don't use arm_register_byte. Create aliases
7443 for standard register names.
7444 (_initialize_arm_tdep): Do not adjust arm_register_names.
7445 * user-regs.c (struct user_reg): Add baton member.
7446 (append_user_reg, user_reg_add_builtin, user_regs_init)
7447 (user_reg_add, value_of_user_reg): Use a baton for user
7449 * std-regs.c: Update.
7450 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
7451 (user_reg_add): Add baton argument.
7452 * NEWS: Mention target description register support.
7453 * features/arm-core.xml, features/arm-fpa.xml: New.
7454 * eval.c (evaluate_subexp_standard): Allow ptype $register
7455 when the program is not running.
7457 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
7459 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
7461 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
7463 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
7464 info->disassembler_options to "any".
7466 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7468 * varobj.c (install_new_value): Only call value_get_print_value
7471 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7473 Reported by timeless@gmail.com:
7474 * gdb/target.c (target_flash_erase): Do not return void value.
7475 (target_flash_done): Likewise.
7476 * gdb/cli/cli-cmds.c (source_command): Likewise.
7478 2007-02-08 Fred Fish <fnf@specifix.com>
7480 Based on work by Apple Computer, Inc.
7481 * event-top.c (handle_sigint): Set quit_flag.
7482 (async_request_quit): Don't set quit_flag. Avoid calling quit()
7483 if quit_flag has already been reset.
7485 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7487 * ser-mingw.c (pipe_windows_close): Move variable initialization back
7490 2007-02-08 Fred Fish <fnf@specifix.com>
7492 * defs.h (request_quit): Remove declaration.
7493 * utils.c (request_quit): Remove definition.
7495 2007-02-08 Joel Brobecker <brobecker@gnat.com>
7496 Jan Kratochvil <jan.kratochvil@redhat.com>
7497 Daniel Jacobowitz <dan@codesourcery.com>
7499 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
7500 (skip_prologue): Allow bl->blrl used by PIC code.
7502 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7503 Daniel Jacobowitz <dan@codesourcery.com>
7505 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
7506 initialize tmp_obstack.
7507 * p-valprint.c (pascal_object_print_value_fields)
7508 (pascal_object_print_value): Likewise.
7510 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7512 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
7514 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7516 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7517 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
7519 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7521 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
7523 (tdesc_parse_xml): Cache expanded descriptions.
7525 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7527 * Makefile.in (XMLFILES): New.
7528 (COMMON_OBS): Add xml-builtin.o.
7529 (xml-builtin.c, stamp-xml): New rules.
7530 (xml-tdesc.o): Update.
7531 * features/feature_to_c.sh: New file.
7532 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
7533 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
7534 (gdb_xml_start_element): Initialize scope after possibly reallocating
7535 scopes. Move cleanup later. Handle the XInclude description
7537 (gdb_xml_end_element): Only parse the body if there is a current element.
7538 Call XML_DefaultCurrent if there is no element.
7539 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
7540 (struct xinclude_parsing_data, xinclude_start_include)
7541 (xinclude_end_include, xml_xinclude_default)
7542 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
7543 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
7544 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
7545 * xml-support.h (xml_fetch_another, xml_process_xincludes)
7546 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
7547 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
7548 XInclude directives. Use the compiled in DTD.
7549 (fetch_xml_from_file): Add baton argument. Treat it as a containing
7550 directory name. Do not warn here.
7551 (file_read_description_xml): Update call. Warn here instead. Pass
7553 (fetch_available_features_from_target): New.
7554 (target_read_description_xml): Use it.
7555 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
7557 * features/xinclude.dtd: New file.
7559 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7561 * linux-thread-db.c (check_for_thread_db): Return early if we have
7562 no libthread_db support.
7564 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7566 * mi/mi-parse.h: Include <sys/time.h>.
7568 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
7570 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
7571 instead of print_variable_value to print values.
7573 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7575 * mi/mi-main.c: Numerous formatting changes.
7576 (mi_cmd_data_write_register_values): Replace clause inadvertantly
7577 removed in my previous change.
7579 2007-02-03 Eli Zaretskii <eliz@gnu.org>
7581 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
7582 Use 1000000L instead of 1000000.
7584 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7586 Based on work by Apple Computer, Inc.
7588 * configure.ac: Test for sys/resource.h and getrusage.
7589 * configure, config.in: Regenerate.
7591 * mi/mi-main.c: Include <sys/resource.h> if present.
7592 (rusage): Declare if HAVE_GETRUSAGE.
7593 (current_command_ts, do_timings): New static variables.
7594 (timestamp, print_diff_now, print_diff, timeval_diff):
7595 New static timing functions.
7596 (mi_cmd_enable_timings): New function for new MI command.
7597 (captured_mi_execute_command, mi_execute_async_cli_command):
7598 Call timing functions.
7600 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
7603 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
7605 * mi/mi-parse.h: (mi_timestamp): New structure.
7606 (mi_parse): Add mi_timestamp* member.
7608 2007-02-02 Denis Pilat <denis.pilat@st.com>
7610 * thread.c (make_cleanup_restore_current_thread): New function.
7611 (info_threads_command): Use of make_cleanup_restore_current_thread
7612 to restore the current thread and the selected frame.
7613 (restore_selected_frame): New function.
7614 (struct current_thread_cleanup): Add frame_id field.
7615 (do_restore_current_thread_cleanup): Add restoring of the selected
7617 (make_cleanup_restore_current_thread): Likewise.
7618 (thread_apply_all_command): backup the selected frame while
7619 entering the function and restore it at exit.
7620 (thread_apply_command): Likewise.
7622 2007-02-02 Denis Pilat <denis.pilat@st.com>
7624 * MAINTAINERS (Write After Approval): Add myself to the list.
7626 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7628 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
7629 (m32r_store_register): Ditto.
7631 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
7633 * ser-mingw.c (pipe_windows_open)
7634 (pipe_windows_read, pipe_windows_write): Declare
7635 variables at the top of the function.
7637 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7639 * doublest.c (floatformat_from_length): Use the right element from
7640 gdbarch floatformats.
7641 (floatformat_from_type, extract_typed_floating)
7642 (store_typed_floating): Likewise.
7643 * doublest.h: Remove declarations for undefined floatformat arrays.
7644 * gdbarch.sh (float_format, double_format, long_double_format): Change
7646 (pformat): Update for pairs.
7647 * gdbarch.c, gdbarch.h: Regenerated.
7648 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
7649 (floatformats_ieee_double_littlebyte_bigword)
7650 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
7651 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
7652 (floatformats_vax_d): New variables.
7653 (builtin_type_ieee_single, builtin_type_ieee_double)
7654 (builtin_type_arm_ext, builtin_type_ia64_spill)
7655 (builtin_type_ia64_quad): Replace arrays with individual types.
7656 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
7657 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
7658 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
7659 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
7660 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
7661 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
7662 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
7663 unused and endian-specific types.
7664 (recursive_dump_type): Update for floatformat pairs.
7665 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
7666 (build_gdbtypes): Use build_flt.
7667 (_initialize_gdbtypes): Update set of initialized types.
7668 * gdbtypes.h: Update declarations to match gdbtypes.c.
7669 (struct main_type): Store a pointer to two floatformats.
7670 * arch-utils.c (default_float_format, default_double_format): Delete.
7671 * arch-utils.h (default_float_format, default_double_format): Delete.
7673 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7674 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7675 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7676 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7677 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7679 2007-01-29 Joel Brobecker <brobecker@adacore.com>
7681 * target.c (maintenance_print_target_stack): New function.
7682 (initialize_targets): Add new "maintenance print target-stack"
7685 2007-01-28 Mark Kettenis <kettenis@gnu.org>
7687 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7689 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7691 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7692 (struct dwarf2_loclist_baton): Likewise.
7694 2007-01-27 Eli Zaretskii <eliz@gnu.org>
7696 * cli/cli-script.c: Include breakpoint.h.
7697 (build_command_line): Require arguments only for if and while
7699 (get_command_line, execute_user_command, execute_control_command):
7700 Fix wording of warning messages.
7701 (print_command_lines): Print breakpoint commands.
7702 (execute_control_command): Call commands_from_control_command to
7703 handle the `commands' command inside a body of a flow-control
7705 (read_next_line): Recognize the `commands' command and build a
7706 command line structure for it.
7707 (recurse_read_control_structure, read_command_lines): Handle
7708 `commands' similarly to `if' and `while'.
7710 * breakpoint.c (get_number_trailer): Document the special meaning
7711 of NULL as the first argument PP.
7712 (commands_from_control_command): New function.
7714 * breakpoint.h (commands_from_control_command): Add prototype.
7716 * defs.h (commands_control): New enumerated value for enum
7717 command_control_type.
7719 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7721 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7722 (ada_exception_sal): Update accordingly.
7724 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7726 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7727 * NEWS: Describe CHAR array vs. string identifcation rules.
7729 2007-01-25 Paul Brook <paul@codesourcery.com>
7731 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7733 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7735 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7736 expression is empty, bother to return the 'optimized out' value we
7737 construct. (Thanks to Carl Burch.)
7739 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7741 * varobj.c (c_value_of_root, c_value_of_child)
7742 (cplus_describe_child): Don't call release_value.
7744 2007-01-24 Thiemo Seufer <ths@mips.com>
7746 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7749 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7751 Refactor getting children name, value and type access
7753 * varobj.c (get_type_deref): Remove.
7754 (adjust_value_for_child_access): New.
7755 (c_number_of_children): Use the above.
7756 (c_describe_child): Likewise.
7757 (enum accessibility): New.
7758 (match_accessibility): New function.
7759 (cplus_describe_child): New function.
7760 (cplus_name_of_child, cplus_value_of_child)
7761 (cplus_type_of_child): Reimplement in terms
7762 of cplus_describe_child.
7763 (cplus_number_of_children): Use
7764 adjust_value_for_child_access.
7766 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7768 Fix computation of the 'editable' attribute and
7769 value changeability for for references.
7770 * varobj.c (get_value_type): New function.
7771 (c_variable_editable): Use get_value_type.
7772 (varobj_value_is_changeable): Likewise.
7774 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7776 * source.c (find_and_open_source): Try rewriting the source
7777 path inside filename if dirname is NULL.
7779 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7781 * dwarf2read.c (add_partial_symbol): Create an extra partial
7782 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7783 (new_symbol): Likewise for symbols.
7785 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7787 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7789 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7791 * value.c (value_primitive_field): Copy the full 'location'
7792 contents, instead of assuming that copying ADDRESS will
7793 bring over everything in the union. Remove obsolete comment.
7795 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7797 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7798 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7799 (m32c_m16c_pointer_to_address): Separate code from declarations.
7801 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7803 * target.c (update_current_target): Correct typo.
7805 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7807 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7810 2007-01-11 Andrew Cagney <cagney@redhat.com>
7811 Daniel Jacobowitz <dan@codesourcery.com>
7812 Jan Kratochvil <jan.kratochvil@redhat.com>
7814 * dwarf2-frame.c (execute_cfa_program): New support of
7815 `DW_CFA_GNU_negative_offset_extended'.
7817 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7819 * NEWS: Mention flash support for "load" and new remote packets.
7821 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7823 * breakpoint.c (delete_command): Skip redundant loop iterations.
7825 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7827 * gdbarch.sh (register_type): Update comment.
7828 * gdbarch.h: Regenerated.
7829 * arch-utils.c (generic_register_size): Call register_type.
7830 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7831 * m32c-tdep.c (check_for_saved): Likewise.
7832 * mips-tdep.c (mips_print_register, print_gp_register_row)
7833 (mips_print_registers_info): Likewise.
7834 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7836 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7837 (sh64_do_register, sh64_print_register)
7838 (sh64_media_print_registers_info): Likewise.
7839 * tui/tui-regs.c (tui_register_format): Likewise.
7841 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7843 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7845 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7846 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7847 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7848 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7849 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7850 (make_symbol_completion_list): Likewise.
7852 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7853 Daniel Jacobowitz <dan@codesourcery.com>
7855 * buildsym.c (end_symtab): Use preallocated symtab if available.
7856 Fill in SYMBOL_SYMTAB.
7857 * buildsym.h (struct subfile): Add symtab member.
7858 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7859 (struct file_entry): Add symtab.
7860 (free_cu_line_header): New function.
7861 (read_file_scope): Use it. Save line_header in the cu. Process
7863 (add_file_name): Initialize new symtab member.
7864 (dwarf_decode_lines): Create symtabs for included files.
7865 (new_symbol): Set SYMBOL_SYMTAB.
7866 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7867 (search_symbols): Likewise.
7868 * symtab.h (struct symbol): Add symtab member.
7869 (SYMBOL_SYMTAB): Define.
7871 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7873 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7875 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7877 * arch-utils.c (show_endian): Correct reversed condition.
7879 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7881 * MAINTAINERS (Write After Approval): Add myself.
7883 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7884 Vladimir Prus <vladimir@codesourcery.com>
7886 Fix 'selected frame' varobjs.
7887 * varobj.c (struct varobj): Remove the error field.
7888 (varobj_set_value): Don't check var->error.
7889 (install_new_value): Don't set var->error.
7890 (varobj_update): Always pass the new value
7891 of the root via install_new_value.
7892 (create_child): Don't set error field.
7893 (new_variable): Likewise.
7894 (c_value_of_root): Always reevaluate the value
7895 of selected frame varobjs in the selected frame.
7896 Don't call reinit_frame_cache.
7898 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7900 * source.c (_initialize_source): Improve the help text of
7901 the substitute-path commands.
7903 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7905 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7906 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7907 (frv_skip_prologue): Remove prototypes.
7908 (frv_adjust_breakpoint_address): Renamed from
7909 frv_gdbarch_adjust_breakpoint_address.
7910 (frv_gdbarch_init): Adjust.
7912 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7914 * gdbarch.sh (deprecated_extract_return_value)
7915 (deprecated_store_return_value): Remove.
7916 (extract_return_value, store_return_value): Remove default values.
7917 * gdbarch.c, gdbarch.h: Regenerate.
7918 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7919 (legacy_store_return_value): Remove.
7920 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7923 * mi/mi-main.c: Remove obsolete comment.
7925 * regcache.c, regcache.h (deprecated_register_bytes)
7926 (deprecated_read_register_bytes)
7927 (deprecated_write_register_bytes): Remove.
7929 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7930 Don't forget to move destination pointer.
7932 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7934 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7936 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7938 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7939 past entry function with recent newlib.
7941 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7943 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7944 introduction. Specify -var-update more exactly.
7946 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7948 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7950 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7952 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7953 the Global Maintainers' invitation to be a global maintainer.
7955 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7957 * infrun.c (singlestep_pc): New variable.
7958 (resume): Set singlestep_pc.
7959 (context_switch): Add a debugging message. Flush the frame cache.
7960 (handle_inferior_event): Add debugging messages. Handle thread
7961 hops when a software single step has completed. Let context_switch
7962 handle flushing the frame cache.
7964 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7966 * NEWS: Mention target descriptions, "set tdesc filename",
7967 "unset tdesc filename", "show tdesc filename", and
7968 qXfer:features:read.
7969 * arch-utils.c (choose_architecture_for_target): New function.
7970 (gdbarch_info_fill): Call it.
7971 * target-descriptions.c (struct property): Make members non-const.
7972 (struct target_desc): Add arch member.
7973 (target_description_filename): New variable.
7974 (target_find_description): Try via XML first.
7975 (tdesc_architecture): New.
7976 (free_target_description, make_cleanup_free_target_description): New.
7977 (set_tdesc_property): Call xstrdup.
7978 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7979 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7980 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7981 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7982 * target-descriptions.h (tdesc_architecture)
7983 (make_cleanup_free_target_description, set_tdesc_architecture): New
7985 * Makefile.in (SFILES): Add xml-tdesc.c.
7986 (COMMON_OBS): Add xml-tdesc.o.
7987 (target-descriptions.o): Update.
7988 (xml-tdesc.o): New rule.
7989 * xml-tdesc.c, xml-tdesc.h: New files.
7990 * remote.c (PACKET_qXfer_features): New enum.
7991 (remote_protocol_features): Add qXfer:features:read.
7992 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7993 (_initialize_remote): Register qXfer:features:read.
7994 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7995 * features/gdb-target.dtd: New file.
7997 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7999 * copyright.sh: Clarify error.
8001 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8003 * symtab.c (matching_bfd_sections): Fix VMA matching for
8006 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8008 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
8011 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8013 Updated copyright notices for most files.
8015 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8017 * copyright.sh (prunes): Add step-line.inp and step-line.c.
8019 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8021 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
8023 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
8025 * configure, config.in: Regenerate.
8026 * defs.h (debug_file_directory): Declare.
8027 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
8028 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
8029 relocate it if DEBUGDIR_RELOCATABLE.
8030 * symfile.c (debug_file_directory): Make non-static.
8031 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
8032 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
8033 (_initialize_symfile): Don't initialize debug_file_directory here.
8035 2007-01-09 Jim Blandy <jimb@codesourcery.com>
8037 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
8040 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8042 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
8043 frame_unwind_register to recurse.
8044 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
8045 (alpha_heuristic_frame_prev_register): Likewise.
8046 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
8047 * m32c-tdep.c (m32c_prev_register): Likewise.
8048 * frame.c (frame_register_unwind_location): Remove FIXME.
8050 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8051 Eli Zaretskii <eliz@gnu.org>
8053 * copyright.sh: New file.
8055 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8057 * configure.ac: Check for XML_StopParser.
8058 * xml-support.c (gdb_xml_body_text): Check for an error.
8059 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
8060 (gdb_xml_end_element_wrapper): Likewise.
8061 * config.in, configure: Regenerated.
8063 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
8065 * varobj.c (install_new_value): Always update print_value.
8066 (value_get_print_value): Immediately return NULL for missing
8069 2007-01-08 Jim Blandy <jimb@codesourcery.com>
8071 * configure.ac: Tighten pattern for extracting value of
8072 DEPRECATED_TM_FILE from the target makefile fragment.
8073 * configure: Regenerated.
8075 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
8077 * linux-nat.c (struct simple_pid_list): Add status.
8078 (add_to_pid_list): Record the PID's status.
8079 (linux_record_stopped_pid): Likewise. Make static.
8080 (pull_pid_from_list): Return the saved status.
8081 (linux_nat_handle_extended): Deleted.
8082 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
8083 Make static. Handle non-SIGSTOP for a new thread's first signal.
8084 (flush_callback): Handle unexpected pending signals.
8085 (linux_nat_wait): Update calls to changed functions.
8086 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
8087 Remove prototypes for newly static functions.
8089 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
8091 * gdbarch.sh (value_from_register): New gdbarch function.
8092 * gdbarch.c, gdbarch.h: Regenerate.
8093 * findvar.c (default_value_from_register): New function.
8094 (value_from_register): Use gdbarch_value_from_register.
8095 * value.h (default_value_from_register): Declare.
8096 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
8097 spu_value_to_register): Remove.
8098 (spu_value_from_register): New function.
8099 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
8100 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
8101 Call set_gdbarch_value_from_register.
8102 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
8103 s390_value_to_register): Remove.
8104 (s390_value_from_register): New function.
8105 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
8106 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
8107 Call set_gdbarch_value_from_register.
8109 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
8111 * NEWS: Add "set sysroot" and "show sysroot".
8112 * solib.c (solib_absolute_prefix): Delete. Replace
8113 all uses with gdb_sysroot.
8114 (_initialize_solib): Add "set sysroot" and "show sysroot".
8115 Make "solib-absolute-prefix" an alias to it.
8117 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
8119 * frame.c (get_frame_register_bytes): New function.
8120 (put_frame_register_bytes): Likewise.
8121 * frame.h (get_frame_register_bytes): Declare.
8122 (put_frame_register_bytes): Likewise.
8123 * findvar.c (value_from_register): Always construct lval_register
8124 values. Use get_frame_register_bytes.
8125 * valops.c (value_assign): Use get_frame_register_bytes and
8126 put_frame_register_bytes.
8128 2007-01-08 Jim Blandy <jimb@codesourcery.com>
8130 * MAINTAINERS: Update Stan Shebs' email address.
8132 2007-01-07 Joel Brobecker <brobecker@adacore.com>
8134 * ada-lang.c (is_known_support_routine): Improve the implementation.
8136 2007-01-06 Joel Brobecker <brobecker@adacore.com>
8138 * ada-lang.c: Add include of source.h.
8139 (is_known_support_routine): Improve the check verifying that the file
8140 associated to this frame exists.
8141 * Makefile.in (ada-lang.o): Add dependency on source.h.
8143 2007-01-07 Jim Blandy <jimb@codesourcery.com>
8145 * ax-general.c (ax_const_l): Select proper opcode for the given
8148 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
8150 * varobj.c (c_value_of_root): Don't select frame if variable
8151 object is out of scope.
8153 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
8155 * varobj.c (struct varobj): New member print_value.
8156 (install_new_value): Compare last printed value with current one
8157 instead of contents.
8158 (new_variable): Initialize var->print_value to NULL.
8159 (free_variable): Free var->print_value.
8160 (value_get_print_value): New function derived from
8161 c_value_of_variable.
8162 (c_value_of_variable): Use value_get_print_value.
8164 2007-01-05 Joel Brobecker <brobecker@adacore.com>
8166 * i386-tdep.c (i386_analyze_stack_align): Add comment.
8168 2007-01-05 Joel Brobecker <brobecker@adacore.com>
8170 * NEWS: Add entries for new catch commands.
8172 2007-01-05 Joel Brobecker <brobecker@adacore.com>
8174 * dwarf2read.c (partial_die_info): Add field has_byte_size.
8175 (add_partial_symbol): Correct identification of external references.
8176 (process_structure_scope): Likewise.
8177 (read_partial_die): Handle DW_AT_byte_size attribute.
8179 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
8181 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
8183 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
8185 * varobj.c (get_type_deref): Fix variable objects for references to
8188 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8190 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
8193 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8195 * memory-map.c (struct_memory_map_parsing_data): Remove most
8196 members. Make property_name an array.
8197 (free_memory_map_parsing_data, memory_map_start_element)
8198 (memory_map_end_element, memory_map_character_data): Delete.
8199 (memory_map_start_memory, memory_map_end_memory)
8200 (memory_map_start_property, memory_map_end_property): New functions.
8201 (property_attributes, memory_children, memory_type_enum)
8202 (memory_attributes, memory_map_children, memory_map_elements): New.
8203 (parse_memory_map): Rewrite.
8204 * xml-support.c (debug_xml): New.
8205 (xml_get_required_attribute, xml_get_integer_attribute)
8206 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
8208 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
8209 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
8210 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
8211 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
8212 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
8213 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
8214 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
8216 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
8217 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
8218 (enum gdb_xml_element_flag, struct gdb_xml_element)
8219 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
8220 (struct gdb_xml_enum): New.
8221 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
8222 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
8223 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
8224 (xml_get_required_attribute, xml_get_integer_attribute)
8225 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
8226 * Makefile.in (xml_support_h, xml-support.o): Update.
8228 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8230 * Makefile.in (eval.o): Update dependencies.
8231 * eval.c: Include "ui-out.h" and "exceptions.h".
8232 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
8233 Use value_zero if an error occurs when avoiding side effects.
8234 * varobj.c (c_value_of_root): Initialize new_val.
8236 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8238 * varobj.c (varobj_list_children): Stop if the number of children is
8240 (c_number_of_children):
8242 2007-01-04 Mark Kettenis <kettenis@gnu.org>
8244 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
8245 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
8246 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
8247 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
8248 sizeof, instead of hardcoded constants.
8250 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8252 * CONTRIBUTE: Use sourceware.org.
8254 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8256 * buildsym.c (start_subfile): Handle producer.
8257 (record_producer): New function.
8258 * buildsym.h (struct subfile): Include producer.
8259 (record_producer): New prototype.
8260 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
8261 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
8262 armcc_cfa_offsets_reversed.
8263 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
8264 (dwarf2_frame_find_quirks): New function.
8265 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
8266 (decode_frame_entry_1): Record the CIE version. Record the
8267 augmentation. Skip armcc augmentations.
8268 * dwarf2read.c (read_file_scope): Save the producer.
8269 * symtab.h (struct symtab): Rename unused version member to
8272 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8274 * configure.ac (build_warnings): Use -Wall and
8275 -Wdeclaration-after-statement.
8276 * configure: Regenerated.
8278 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8280 Simplify access to variours properties of child
8281 variable objects in C.
8282 * varobj.c (value_struct_element_index): New function.
8283 (c_describe_child): New function.
8284 (c_name_of_child, c_value_of_child)
8285 (c_type_of_child): Rewrite to use c_describe_child.
8287 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8290 * varobj.c: Include "vec.h".
8291 (varobj_p): New typedef, declare vector of those.
8292 (struct varobj): Use vector for the 'children' member.
8293 (child_exists): Remove.
8294 (save_child_in_parent): Remove.
8295 (remove_child_from_parent): Remove.
8296 (struct varobj_child): Remove.
8297 (struct vstack): Remove.
8298 (vpush, vpop): Remove.
8299 (varobj_list_children): Adjust to work work vector.
8300 (varobj_update): Likewise. Use vectors for
8301 working stack and result.
8302 (delete_variable_1): Likewise.
8303 * Makefile.in (varobj.o): Update dependencies.
8305 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8307 Port from Apple's version.
8309 * varobj.c (type_changeable): Rename to...
8310 (varobj_value_is_changeable_p): ...this. Adjust all callers.
8311 (is_root_p): New function. Use it everywhere.
8313 2007-01-04 Jim Blandy <jimb@codesourcery.com>
8315 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
8318 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8320 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
8322 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8324 * hpread.c (hpread_type_lookup): Fix compilation failure.
8326 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
8328 * NEWS: New port to S+core.
8329 * MAINTAINERS (Write After Approval, Responsible Maintainers):
8332 * Makefile.in: Add dependencies for S+core files.
8333 * configure.tgt (score*, score-*-*): Add S+core target.
8334 * config/score/embed.mt: New file.
8335 * score-tdep.c: New file.
8336 * score-tdep.h: New file.
8338 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8340 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
8341 the appropriate type rather than a bogus void type.
8343 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8345 * ada-lang.h (ada_find_printable_frame): Remove.
8346 (ada_exception_catchpoint_p, ada_decode_exception_location)
8347 (ada_decode_assert_location): Add declaration.
8348 * ada-lang.c: Add include of annotate.h and valprint.h.
8349 (exception_catchpoint_kind): New enum.
8350 (function_name_from_pc, is_known_support_routine)
8351 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
8352 (ada_exception_name_addr_1, ada_exception_name_addr)
8353 (print_it_exception, print_one_exception, print_mention_exception)
8354 (print_it_catch_exception, print_one_catch_exception)
8355 (print_mention_catch_exception, catch_exception_breakpoint_ops)
8356 (print_it_catch_exception_unhandled)
8357 (print_one_catch_exception_unhandled)
8358 (print_mention_catch_exception_unhandled, print_it_catch_assert)
8359 (print_one_catch_assert, print_mention_catch_assert)
8360 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
8361 (ada_get_next_arg, catch_ada_exception_command_split)
8362 (ada_exception_sym_name, ada_exception_sym_name)
8363 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
8364 (ada_parse_catchpoint_condition, ada_exception_sal)
8365 (ada_decode_exception_location)
8366 (ada_decode_assert_location): New function.
8367 (catch_exception_unhandled_breakpoint_ops): New global variable.
8368 (catch_assert_breakpoint_ops): New global variable.
8369 * breakpoint.c: Add include of ada-lang.h.
8370 (print_one_breakpoint): Do not print the condition for Ada
8371 exception catchpoints.
8372 (create_ada_exception_breakpoint): New function.
8373 (catch_ada_exception_command, catch_assert_command): New function.
8374 (catch_command_1): Add support for the new "catch exception" and
8375 "catch assert" commands.
8376 (_initialize_breakpoint): Add help description for the new catch
8378 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
8380 (breakpoint.o): Add dependency on ada-lang.h.
8382 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
8384 * coffread.c (cs_to_section): If bfd_section is found, always
8385 return its section index.
8386 (coff_symtab_read): Determine the minimal_symbol_type using the
8389 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8390 Daniel Jacobowitz <dan@codesourcery.com>
8392 * Makefile.in (top.o): Update.
8393 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
8394 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
8395 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
8397 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
8399 2007-01-03 Mark Kettenis <kettenis@gnu.org>
8401 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
8402 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
8404 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8406 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
8407 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
8408 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
8409 greater than or equal to zero.
8410 * m2-typeprint.c (m2_array): Likewise.
8411 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
8412 * gdbtypes.c (copy_type_recursive): Correct == typo.
8413 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
8414 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
8416 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
8417 (default_macro_scope): Remove unused variable.
8418 * prologue-value.h (pv_area_find_reg): Don't name an argument
8420 * remote-fileio.c (remote_fio_func_map): Add missing braces.
8421 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
8423 (cleanup_sigint_signal_handler): Remove casts.
8424 * valprint.c (val_print): Use a volatile local for the modified
8426 * varobj.c (languages): Remove extra array dimension.
8427 (varobj_create): Correct access to languages array.
8428 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
8430 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
8431 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
8432 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
8433 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
8434 (mi_cmd_data_write_memory): Likewise.
8435 * signals/signals.c (target_signal_to_string): Cast to int before
8437 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
8440 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8442 * NEWS: Mention pointer to member improvements.
8443 * Makefile.in (gnu-v3-abi.o): Delete special rule.
8444 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
8445 * ada-valprint.c (ada_print_scalar): Update for new type codes.
8446 * c-typeprint.c (c_print_type): Update for new type codes.
8447 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
8448 (c_type_print_base): Likewise.
8449 (c_type_print_args): Rewrite.
8450 * c-valprint.c (c_val_print): Update for new type codes. Remove
8451 support for references to members. Treat methods like functions.
8452 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
8453 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
8454 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
8455 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
8456 (struct cp_abi_ops): Add corresponding members.
8457 * cp-valprint.c (cp_print_class_method): Delete.
8458 (cp_find_class_member): New function.
8459 (cp_print_class_member): Use it. Simplify support for bogus
8461 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
8462 lookup_methodptr_type.
8463 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
8464 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
8465 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
8467 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
8468 references returned by user defined operators.
8469 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
8470 (f_type_print_varspec_suffix): Remove support for member pointers.
8471 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
8473 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
8474 (lookup_methodptr_type): New.
8475 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
8476 (recursive_dump_type): Update for new types.
8477 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
8478 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
8479 (lookup_memberptr_type, lookup_methodptr_type)
8480 (smash_to_memberptr_type): New prototypes.
8481 (smash_to_method_type): Formatting fix.
8482 (lookup_member_type, smash_to_member_type): Delete prototypes.
8483 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
8484 Do not rely on debug information for the vptr or the method's
8485 enclosing type. Handle function descriptors for IA64.
8486 (gnuv3_virtual_fn_field): Rewrite using the new functions.
8487 (gnuv3_find_method_in, gnuv3_print_method_ptr)
8488 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
8489 (gnuv3_method_ptr_to_value): New.
8490 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
8491 * hpread.c (hpread_type_lookup): Update for new types.
8492 * infcall.c (value_arg_coerce): Likewise.
8493 * m2-typeprint.c (m2_print_type): Remove explicit support
8494 for member pointers.
8495 * m2-valprint.c (m2_val_print): Likewise.
8496 * p-typeprint.c (pascal_type_print_varspec_prefix)
8497 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
8498 * p-valprint.c (pascal_val_print): Likewise.
8499 (pascal_object_print_class_method, pascal_object_print_class_member):
8501 * p-lang.h (pascal_object_print_class_method)
8502 (pascal_object_print_class_member): Delete prototypes.
8503 * stabsread.c (read_type): Update for new types.
8504 * typeprint.c (print_type_scalar): Likewise.
8505 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
8506 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
8507 argument. Construct a pointer to member if the address of a
8508 function or data member is requested.
8509 (value_cast_pointers): Don't modify the input value.
8510 (value_cast): Adjust pointer to member handling for new types.
8511 Allow null pointer to member constants. Don't modify the input
8513 (value_ind): Remove pointer to member check. Handle function
8514 descriptors for function pointers.
8515 (value_struct_elt, value_find_oload_method_list, check_field):
8516 Remove pointer to member checks.
8517 * value.c (unpack_long): Allow pointers to data members.
8518 (value_from_longest): Allow member pointers.
8519 * value.h (value_aggregate_elt): Add want_address.
8520 * varobj.c (c_variable_editable): Remove check for members.
8521 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
8522 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
8524 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
8525 * c-lang.h (cp_print_class_method): Delete prototype.
8526 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
8527 * mips-tdep.c (mips_gdbarch_init): Likewise.
8528 * gdbarch.c, gdbarch.h: Regenerated.
8530 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8532 * rs6000-tdep.c (rs6000_use_struct_convention)
8533 (rs6000_extract_return_value, rs6000_store_return_value)
8534 (rs6000_extract_struct_value_address): Remove.
8535 (rs6000_return_value): New function.
8536 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
8537 store_return_value, deprecated_extract_struct_value_address and
8538 deprecated_use_struct_convention. Use rs6000_return_value
8541 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
8543 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
8544 -display-disable, -display-enable, -display-insert and
8547 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8549 * breakpoint.c (remove_breakpoint): Remove dead code.
8551 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
8553 * varobj.c: Include block.h.
8554 (c_value_of_root): Check scope within nested statements.
8556 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8558 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
8559 regcache_cooked_write_signed instead of
8560 deprecated_write_register_bytes.
8562 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8564 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
8566 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8568 Followed the Start of New Year Procedure:
8569 * ChangeLog-2006: New file, containing all the entries for 2006.
8570 * ChangeLog: Removed all 2006 entries, and changed the reference
8571 to the previous ChangeLog to point to ChangeLog 2006.
8572 * top.c (print_gdb_version): Update copyright year.
8574 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8576 * Makefile.in (remote-sds.o): Remove.
8577 * remote-sds.c: Delete.
8579 For older changes see ChangeLog-2006.
8585 version-control: never