1 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4 set_solib_ops to install SVR4 operations.
5 (_initialize_svr4_solib): Do not set current_target_so_ops.
7 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
8 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
10 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
12 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
13 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
14 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
15 * solib-legacy.c: Remove file.
17 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
18 * config/arm/linux.mt (TDEPFILES): Likewise.
19 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
20 * config/ia64/linux.mt (TDEPFILES): Likewise.
21 * config/m32r/linux.mt (TDEPFILES): Likewise.
22 * config/powerpc/linux.mt (TDEPFILES): Likewise.
23 * config/s390/s390.mt (TDEPFILES): Likewise.
25 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
26 set_solib_svr4_fetch_link_map_offsets.
27 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
28 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
30 * i386gnu-tdep.c: Include "solib-svr4.h".
31 * Makefile.in: Update dependencies.
33 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
35 * i386-nto-tdep.c: Include "solib.h".
36 (i386nto_init_abi): Use set_solib_ops instead of overwriting
37 current_target_so_ops members.
38 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
39 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
40 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
41 * Makefile.in: Update dependencies.
43 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
45 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
46 (arm_wince_init_abi): Call set_solib_ops.
47 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
48 (i386_cygwin_init_abi): Call set_solib_ops.
49 * solib-target.c: Include "solib-target.h".
50 (solib_target_so_ops): Make global.
51 (_initialize_solib_target): Do not set current_target_so_ops.
52 * solib-target.h: New file.
53 * Makefile.in: Update dependencies.
55 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
57 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
58 (mips_irix_init_abi): Call set_solib_ops.
59 * solib-irix.c: Include "solib.h" and "solib-irix.h".
60 (irix_so_ops): Make global.
61 (_initialize_irix_solib): Do not set current_target_so_ops.
62 * solib-irix.h: New file.
63 * Makefile.in: Update dependencies.
65 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
67 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
68 * config/pa/hppa64.mt: Delete file.
69 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
70 (TDEPFILES): Move somread.o to ...
71 * config/pa/hpux.mh (NATDEPFILES): ... here.
73 * configure.ac: Add check for elf_hp.h header.
74 Search libdl and libxpdl for dlgetmodinfo.
75 * config.in, configure: Regenerate.
76 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
77 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
78 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
79 set_solib_ops instead of modifying current_target_so_ops.
80 * solib-pa64.h (pa64_solib_select): Update prototype.
81 * solib-som.c: Remove include of "som.h". Include "solib.h".
82 (som_solib_select): Take gdbarch instead of tdep argument. Call
83 set_solib_ops instead of modifying current_target_so_ops.
84 * solib-som.h (som_solib_select): Update prototype.
85 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
86 of tdep to som_solib_select call.
87 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
88 pa64_solib_select call.
89 * Makefile.in: Update dependencies.
91 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
93 * frv-tdep.c: Include "solib.h".
94 (frv_gdbarch_init): Call set_solib_ops.
95 * frv-tdep.h (struct target_so_ops): Add forward reference.
96 (frv_so_ops): Add extern declaration.
97 * solib-frv.c (frv_so_ops): Make global.
98 (_initialize_frv_solib): Do not set current_target_so_ops.
99 * Makefile.in: Update dependencies.
101 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
103 * solib.c (solib_global_lookup): Use solib_ops instead of global
104 current_target_so_ops.
106 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
108 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
109 * config/frv-tm-frv.h: Delete file.
111 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
113 * NEWS: Mention gdbserver support for non-libthread_db operation.
115 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
117 * amd64-tdep.c (amd64_convert_register_p): Delete.
118 (amd64_init_abi): Use i387_convert_register_p.
119 * alpha-tdep.c (alpha_convert_register_p): Return zero for
121 (alpha_register_to_value, alpha_value_to_register): Do not handle
123 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
124 * i387-tdep.c (i387_convert_register_p): New.
125 (i387_register_to_value, i387_value_to_register): Update comments.
126 * i387-tdep.h (i387_convert_register_p): Declare.
127 * ia64-tdep.c (ia64_convert_register_p): Return zero for
128 builtin_type_ia64_ext.
129 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
130 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
131 * m68k-tdep.c (m68k_convert_register_p): Return zero for
132 builtin_type_m68881_ext.
133 (m68k_register_to_value, m68k_value_to_register): Update comments.
135 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
137 * target-memory.c (claim_memory): Propagate baton for split memory
140 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
143 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
146 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
148 * symtab.c (find_line_symtab): scan through psymtabs
149 when exact_match is zero.
151 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
153 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
154 (deal_with_atomic_sequence): New.
155 (mips_software_single_step): Use it.
157 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
160 * configure.ac: Modify $LIBINTL before the BFD check.
161 * configure: Regenerated.
163 2007-10-23 Joel Brobecker <brobecker@adacore.com>
165 * buildsym.c (free_pending_blocks): Remove commented-out code.
166 (make_blockvector): Likewise. Re-use free_pending_blocks.
167 (end_symtab): Remove commented-out code.
169 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
171 * top.c (command_loop): Fix output for shrinkage.
173 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
175 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
176 (exp): Remove and document function-like casts.
178 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
180 * cp-support.c: Include "safe-ctype.h".
181 (cp_already_canonical): New function.
182 (cp_canonicalize_string): Use it. Return NULL for already canonical
184 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
185 (cp_func_name, remove_params): Likewise.
186 (cp_find_first_component_aux): Use ISSPACE.
187 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
189 * cp-name-parser.y (ALLOC_CHUNK): Define.
190 (struct demangle_info): Add PREV and NEXT. Increase the size of
192 (d_grab): Convert to a function.
193 (allocate_info): Rewrite.
194 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
195 strlen. Update call to allocate_info. Do not free it on failure.
196 (main): Update calls to cp_demangled_name_to_comp.
197 * Makefile.in (cp-support.o): Update.
199 2007-10-22 Markus Deuling <deuling@de.ibm.com>
201 * std-regs.c (value_of_builtin_frame_fp_reg)
202 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
203 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
204 current architecture by frame_info.
206 2007-10-22 Markus Deuling <deuling@de.ibm.com>
208 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
211 2007-10-22 Markus Deuling <deuling@de.ibm.com>
213 * infcmd.c (default_print_registers_info, print_return_value)
214 (print_vector_info, print_float_info): Replace current_gdbarch by
216 (registers_info): Use get_frame_arch to get at the current
217 architecture by frame_info.
219 2007-10-22 Markus Deuling <deuling@de.ibm.com>
221 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
222 get_regcache_arch to get at the current architecture by regcache.
224 2007-10-22 Markus Deuling <deuling@de.ibm.com>
226 * target.c (debug_print_register): Use get_regcache_arch to get at the
227 current architecture by regcache.
229 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
231 * dwarf2read.c (read_file_scope): Add a comment.
232 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
233 (read_enumeration_type, process_enumeration_scope, read_array_type)
234 (read_typedef, read_base_type, read_subrange_type)
235 (read_unspecified_type): Use dwarf2_name.
237 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
239 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
240 * dwarf2read.c (dwarf2_free_objfile): New.
241 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
242 * symfile.h (dwarf2_free_objfile): Declare.
244 2007-10-21 Joel Brobecker <brobecker@adacore.com>
246 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
248 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
250 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
251 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
252 default dwarf2_frame_set_init_reg function.
254 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
256 * NEWS: Mention native MinGW configuration.
258 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
260 * gdbarch.sh: Remove "macro" column of input table. Remove handling
261 of "macro" column throughout the file. Remove (empty) "macro" entry
262 of all gdbarch functions.
264 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
266 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
267 * gdbarch.c, gdbarch.h: Regenerate.
268 * dbxread.c (find_stab_function_addr): Define unconditionally.
269 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
270 instead of SOFUN_ADDRESS_MAYBE_MISSING.
271 (end_psymtab): Likewise.
272 (process_one_symbol): Likewise.
273 * mdebugread.c (parse_partial_symbols): Likewise.
275 * symtab.h (struct minimal_symbol): Always define "filename" member.
276 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
277 * minsyms.c (lookup_minimal_symbol): Likewise.
278 * symmisc.c (dump_msymbols): Likewise.
280 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
281 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
282 * config/i386/tm-i386sol2.h: Remove file.
283 * config/i386/tm-linux.h: Remove file.
284 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
285 set_gdbarch_sofun_address_maybe_missing.
286 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
288 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
289 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
290 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
291 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
292 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
293 * config/powerpc/tm-ppc-eabi.h: Remove file.
294 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
295 set_gdbarch_sofun_address_maybe_missing.
297 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
298 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
299 * config/sparc/tm-sol2.h: Remove file.
300 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
301 set_gdbarch_sofun_address_maybe_missing.
302 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
304 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
306 * gdbarch.sh (static_transform_name): New gdbarch callback.
307 * gdbarch.c, gdbarch.h: Regenerate.
308 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
309 instead of STATIC_TRANSFORM_NAME.
310 * mdebugread.c (parse_partial_symbols): Likewise.
311 * stabsread.c (define_symbol): Likewise.
312 * xcoffread.c (scan_xcoff_symtab): Likewise.
314 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
315 (IS_STATIC_TRANSFORM_NAME): Remove.
316 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
317 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
318 (i386_sol2_init_abi): Install it.
320 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
321 (IS_STATIC_TRANSFORM_NAME): Remove.
322 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
323 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
324 (sparc32_sol2_init_abi): Install it.
325 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
326 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
328 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
330 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
331 (mips_n32n64_return_value, mips_o32_return_value)
332 (mips_o64_return_value): Update calls to mips_xfer_register.
334 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
336 * frame.c (frame_unwind_unsigned_register): Delete.
337 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
338 * frame.h (frame_unwind_unsigned_register): Delete prototype.
340 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
341 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
342 mt-tdep.c: Replace frame_unwind_unsigned_register with
343 frame_unwind_register_unsigned.
345 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
347 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
348 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
349 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
351 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
352 if not building on Cygwin.
353 (win32_make_so, handle_output_debug_string, handle_exception)
354 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
355 (win32_attach): Only fallback to Cygwin pids if building on
357 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
359 (win32_create_inferior): Disable starting the inferior through a
360 shell, environment var processing and tty handling if not building
362 (cygwin_pid_to_str): Rename to ...
363 (win32_pid_to_str): ... this.
364 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
365 and "cygwin-exceptions" commands if not building on Cygwin.
367 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
369 * doc/gdb.texinfo: Add TSIZE definition, removed
370 statement about unbounded arrays being unimplemented.
371 * m2-valprint.c (m2_print_array_contents): New function.
372 (m2_print_unbounded_array): New function.
373 (m2_print_array_contents): New function.
374 * m2-typeprint.c (m2_unbounded_array): New function.
375 (m2_is_unbounded_array): New function.
376 (m2_print_type): Test for unbounded array when walking
378 * m2-lang.h: Added extern m2_is_unbounded_array.
379 * m2-lang.c (evaluate_subexp_modula2): New function.
380 (exp_descriptor_modula2): New structure.
381 (m2_language_defn): Use exp_descriptor_modula2.
382 * m2-exp.y: Added TSIZE and binary subscript.
384 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
386 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
389 2007-10-16 Kevin Buettner <kevinb@redhat.com>
391 * m32r-tdep.c (decode_prologue): Sign extend offset for
393 (m32r_frame_unwind_cache): Likewise.
395 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
397 * rs6000-tdep.c (skip_prologue): Restore comment with
398 function description to its proper place.
400 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
402 * NEWS: Mention gdbserver PowerPC improvements.
404 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
406 * features/Makefile (WHICH): Add PowerPC register definitions.
407 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
408 (rs6000/powerpc-64-expedite): New macros.
409 ($(outdir)/%.dat): Handle subdirectories.
410 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
411 regformats/rs6000/powerpc-e500.dat: New generated files.
413 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
415 * ppc-linux-nat.c (ppc_linux_read_description): New.
416 (_initialize_ppc_linux_nat): Set to_read_description.
417 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
419 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
421 * NEWS: Document target described register support for PowerPC.
422 * ppc-tdep.h: Remove ppc_spr constants.
423 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
424 ppc_builtin_type_vec128 members.
425 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
426 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
427 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
428 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
429 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
430 * rs6000-tdep.c: Include preparsed descriptions.
431 (init_sim_regno_table): Do not iterate over pseudo registers.
432 Look up segment registers by name. Use sim_spr_register_name
434 (rs6000_register_sim_regno): Call init_sim_regno_table here.
435 (rs6000_builtin_type_vec128): Delete.
436 (rs6000_register_name): Only handle SPE pseudo registers and upper
437 halves. Call tdesc_register_name for everything else.
438 (rs6000_register_type): Delete. Replace with...
439 (rs6000_pseudo_register_type): ...this new function. Only handle
440 SPE pseudo registers.
441 (rs6000_register_reggroup_p): Delete. Replace with...
442 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
443 handle SPE pseudo registers.
444 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
446 (rs6000_register_to_value, rs6000_value_to_register): Remove check
448 (e500_register_reggroup_p): Delete.
449 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
450 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
451 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
452 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
453 (registers_powerpc, registers_403, registers_403GC, registers_505)
454 (registers_860, registers_601, registers_602, registers_603)
455 (registers_604, registers_750, registers_7400, registers_e500): Delete
457 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
459 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
460 (variants): Delete outdated comment. Use standard target descriptions
461 instead of "struct reg" arrays.
462 (init_variants): Delete.
463 (rs6000_gdbarch_init): Do not guess word size from the BFD
464 architecture if we have a target description. Select a variant
465 before creating a new architecture. Use the variant's target
466 description if the target did not define a register layout.
467 Validate target-supplied registers. Reject mismatches. Use
468 fixed register numbers and new constants instead of magic
469 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
470 (_initialize_rs6000_tdep): Initialize the preparsed target
472 * target-descriptions.c (tdesc_predefined_types): Add int128 and
474 (tdesc_find_register_early): New function.
475 (tdesc_numbered_register): Use it.
476 (tdesc_register_size): New function.
477 (tdesc_use_registers): Take a target_desc argument. Do not use
479 * target-descriptions.h (tdesc_use_registers): Update prototype
481 (tdesc_register_size): New prototype.
482 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
483 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
484 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
485 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
486 (rs6000-tdep.o): Update.
487 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
488 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
489 * mips-tdep.c (mips_gdbarch_init): Likewise.
491 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
493 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
494 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
495 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
496 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
497 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
498 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
499 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
502 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
504 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
505 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
506 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
507 feature descriptions for standard PowerPC register sets.
509 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
510 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
511 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
512 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
513 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
514 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
515 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
516 target descriptions for PowerPC processors.
518 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
520 * target-descriptions.c (tdesc_predefined_types): New.
521 (tdesc_named_type): Use it.
522 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
523 (_intialize_target_descriptions): Register "maint print c-tdesc".
524 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
525 (cfiles, %.c): New rules.
526 * features/arm-with-iwmmxt.c, features/mips-linux.c,
527 features/mips64-linux.c: New generated files.
529 * arm-linux-nat.c: Include preparsed description instead of
531 (super_xfer_partial, arm_linux_xfer_partial): Remove.
532 (arm_linux_read_description): New function.
533 (_initialize_arm_linux_nat): Set to_read_description instead of
534 to_xfer_partial. Initialize preparsed description.
535 * config/arm/linux.mh (TDEP_XML): Delete.
536 * mips-linux-nat.c: Include preparsed descriptions instead of
538 (super_xfer_partial, mips_linux_xfer_partial): Remove.
539 (mips_linux_read_description): New function.
540 (_initialize_mips_linux_nat): Set to_read_description instead of
541 to_xfer_partial. Initialize preparsed description.
542 * config/mips/linux.mh (TDEP_XML): Delete.
543 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
544 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
545 (mips64_linux_c): New macros.
546 (arm-linux-nat.o, mips-linux-nat.o): Update.
548 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
550 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
551 Replace xasprintf by xstrprintf.
552 symfile-mem.c (add_vsyscall_page): Ditto.
554 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
556 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
557 replacing use of global current_gdbarch.
558 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
559 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
561 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
562 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
563 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
564 (ia64_sigtramp_frame_cache): Update caller.
566 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
568 * gdbarch.sh (deprecated_use_struct_convention): Remove.
569 (extract_return_value, store_return_value): Remove.
570 (return_value): Remove default implementation.
571 * gdbarch.c, gdbarch.h: Regenerate.
573 * stack.c (return_command): Remove compatibility hack.
574 * arch-utils.c (legacy_return_value): Remove.
575 * arch-utils.h (legacy_return_value): Likewise.
577 * arch-utils.c (always_use_struct_convention): Remove.
578 * arch-utils.h (always_use_struct_convention): Likewise.
579 * value.c (generic_use_struct_convention): Remove.
580 * defs.h (generic_use_struct_convention): Likewise.
582 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
584 * avr-tdep.c (avr_return_value): New function.
585 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
586 set_gdbarch_extract_return_value.
588 * fvr-tdep.c (frv_return_value): New function.
589 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
590 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
591 and set_gdbarch_deprecated_use_struct_convention.
593 * ia64-tdep.c (ia64_use_struct_convention): Make static.
594 Add check for structure, union, or array types.
595 (ia64_extract_return_value): Make static.
596 (ia64_store_return_value): Make static. Support multi-word values.
597 (ia64_return_value): New function.
598 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
599 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
600 and set_gdbarch_deprecated_use_struct_convention.
602 2007-10-12 Joel Brobecker <brobecker@adacore.com>
604 * solib-target.c (solib_target_parse_libraries)
605 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
607 2007-10-12 Jim Blandy <jimb@codesourcery.com>
609 * serial.h (struct serial_ops): Document read_prim to return zero
611 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
612 read_prim returns zero, not SERIAL_TIMEOUT.
614 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
616 * alpha-mdebug-tdep.c: Include "gdb_string.h".
617 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
618 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
619 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
621 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
622 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
623 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
624 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
625 * config/alpha/tm-alpha.h: Remove file.
627 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
629 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
630 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
632 * config/pa/tm-hppa.h: Delete file.
633 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
634 * config/pa/hppahpux.mt: Likewise.
635 * config/pa/hppa.mt: Likewise.
636 * config/pa/linux.mt: Likewise.
637 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
639 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
641 * config/arm/nm-nbsdaout.h: Remove file.
642 * config/nm-nbsdaout.h: Likewise.
643 * config/nm-nbsd.h: Likewise.
645 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
647 * block.h (struct block): Remove "gcc_compile_flag" member.
648 (BLOCK_GCC_COMPILED): Remove.
649 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
650 * buildsym.c (finish_block): Do not set it.
651 * symmisc.c (dump_symtab_1): Do not dump it.
653 * value.h (using_struct_return): Remove "gcc_p" argument.
654 * value.c (using_struct_return): Likewise.
655 * eval.c (evaluate_subexp_standard): Adapt callers.
656 * infcall.c (call_function_by_hand): Likewise.
657 * stack.c (return_command): Likewise.
658 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
660 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
661 * gdbarch.c, gdbarch.h: Regenerate.
662 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
663 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
664 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
665 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
666 (push_dummy_code, call_function_by_hand): Adapt callers.
668 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
670 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
671 (finish_command_continuation, finish_command): Adapt callers.
673 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
675 * infcall.c (call_function_by_hand): Remove special handling
676 for HP aCC compiled code.
678 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
680 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
681 reference. Fix endianness bugs.
682 (cris_reg_struct_has_address): Remove.
683 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
684 and set_gdbarch_deprecated_use_struct_convention calls.
686 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
687 * gdbarch.c, gdbarch.h: Regenerate.
688 * infcall.c (call_function_by_hand): Remove handling of
689 deprecated_reg_struct_has_addr.
691 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
692 Kazu Hirata <kazu@codesourcery.com>
694 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
695 checking watchpoint resources.
697 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
699 * memattr.c (inaccessible_by_default): Change the initial
702 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
705 * coffread.c (read_one_sym): Check for read errors.
707 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
709 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
710 instead of "Linux 2.6.19" in comment.
711 (linux_xfer_partial): Use "GNU/Linux target" instead of
712 "Linux target" in comment.
713 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
714 (m68k_linux_get_sigtramp_info): Likewise.
716 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
718 * MAINTAINERS (language support): List Joel and Paul as
721 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
723 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
725 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
726 not set DEPRECATED_TM_FILE.
727 * config/arm/tm-arm.h: Delete file.
729 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
731 * MAINTAINERS (Write After Approval): Add self.
733 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
735 * buildsym.c (record_line): Remove empty lines followed by
736 end-of-sequence markers.
738 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
740 * configure.tgt: Recognize fido-*-elf.
742 2007-10-10 Joel Brobecker <brobecker@adacore.com>
746 2007-10-10 Markus Deuling <deuling@de.ibm.com>
748 * stack.c (print_frame_args, frame_info, return_command): Use
749 get_regcache_arch or get_frame_arch to get at the current architecture
750 by regcache or by frame, respectively.
752 2007-10-10 Markus Deuling <deuling@de.ibm.com>
754 * rs6000-nat.c (fetch_register, store_register)
755 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
756 get_regcache_arch to get at the current architecture by regcache.
758 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
759 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
760 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
761 current_gdbarch by gdbarch.
762 (rs6000_skip_trampoline_code, rs6000_register_to_value)
763 (rs6000_value_to_register): Use get_frame_arch to get at the current
764 architecture by frame_info.
766 2007-10-10 Markus Deuling <deuling@de.ibm.com>
768 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
769 get_regcache_arch to get at the current architecture by regcache.
771 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
772 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
773 get_regcache_arch to get at the current architecture by regcache.
775 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
776 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
777 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
778 current architecture by regcache.
780 2007-10-10 Markus Deuling <deuling@de.ibm.com>
782 * remote-mips.c (mips_wait, mips_fetch_registers)
783 (mips_store_registers): Use get_regcache_arch to get at the
784 current architecture by regcache.
786 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
787 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
788 get at the current architecture by regcache.
789 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
790 architecture by frame_info.
792 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
793 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
794 the current architecture by regcache.
796 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
797 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
798 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
799 current architecture by frame_info.
800 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
801 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
802 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
803 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
804 get at the current architecture by regcache.
806 * mips-linux-nat.c (mips_linux_register_addr)
807 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
808 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
809 (mips64_linux_regsets_fetch_registers)
810 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
811 the current architecture by regcache.
813 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
814 get at the current architecture by frame_info.
816 2007-10-10 Markus Deuling <deuling@de.ibm.com>
818 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
819 current architecture by regcache.
820 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
821 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
822 (mips_stub_frame_cache, mips_read_fp_register_single)
823 (mips_read_fp_register_double, mips_print_fp_register)
824 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
825 at the current architecture by frame_info.
826 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
827 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
828 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
829 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
830 (mips_o32_push_dummy_call, mips_o32_return_value)
831 (mips_o64_push_dummy_call, mips_o64_return_value)
832 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
835 2007-10-10 Markus Deuling <deuling@de.ibm.com>
837 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
838 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
839 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
840 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
841 (xtensa_register_write_masked, xtensa_register_read_masked)
842 (xtensa_supply_gregset, xtensa_store_return_value)
843 (xtensa_extract_return_value): Use get_regcache_arch to get at the
844 current architecture by regcache.
845 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
846 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
847 architecture by frame_info.
849 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
851 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
852 (thumb_analyze_prologue): Move pv_area_store_would_trash call
853 out of loop. Do not set cache->frameoffset.
854 (arm_scan_prologue): Use prologue-value mechanism. Do not set
855 frameoffset. Simplify framesize.
856 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
858 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
860 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
862 * target.c (update_current_target): Call setup_target_debug.
863 (push_target): Do not call it here.
865 2007-10-09 Michael Snyder <msnyder@specifix.com>
867 * MAINTAINERS: Update my email address.
869 2007-10-09 Markus Deuling <deuling@de.ibm.com>
871 * xtensa-tdep.c: Replace following current-gdbarch based macros by
873 (xtensa_pseudo_register_read)
874 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
875 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
876 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
877 (xtensa_pseudo_register_read)
878 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
879 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
880 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
881 (xtensa_frame_prev_register): NUM_AREGS.
882 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
883 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
884 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
885 (xtensa_supply_gregset, xtensa_frame_cache)
886 (xtensa_frame_prev_register): WS_REGNUM.
887 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
888 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
889 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
890 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
891 (xtensa_register_reggroup_p): REGMAP.
892 (call0_track_op): LITBASE_REGNUM.
893 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
894 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
895 (xtensa_frame_prev_register, AREG_NUMBER)
896 (xtensa_register_type): AR_BASE.
897 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
898 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
899 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
900 (xtensa_frame_cache, xtensa_frame_prev_register)
901 (xtensa_extract_return_value, xtensa_store_return_value)
902 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
903 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
904 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
905 (xtensa_frame_prev_register, xtensa_push_dummy_call)
906 (call0_frame_cache): A1_REGNUM.
907 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
908 (xtensa_push_dummy_call): A4_REGNUM.
909 (ARGS_FIRST_REG): A6_REGNUM.
910 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
911 (xtensa_frame_prev_register): A15_REGNUM.
912 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
913 them in the appropriate source file:
914 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
915 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
916 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
917 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
918 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
919 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
920 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
921 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
922 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
923 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
924 A13_REGNUM, A14_REGNUM, A15_REGNUM.
926 2007-10-09 Markus Deuling <deuling@de.ibm.com>
928 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
929 the current architecture by frame_info.
930 (h8300_frame_prev_register
931 (h8300_print_register): Replace current_gdbarch by gdbarch.
932 (h8300_print_registers_info, h8300_register_type)
933 (h8300_register_type): Likewise.
935 2007-10-09 Markus Deuling <deuling@de.ibm.com>
937 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
938 the current architecture by regcache.
939 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
940 (i386_linux_fetch_inferior_registers)
941 (i386_linux_store_inferior_registers): Likewise.
942 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
943 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
944 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
945 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
946 (i386_extract_return_value, i386_store_return_value): Likewise.
947 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
948 the current architecture by frame_info.
949 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
950 (i386_register_to_value, i386_value_to_register): Likewise.
952 2007-10-09 Markus Deuling <deuling@de.ibm.com>
954 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
955 the current architecture by regcache.
956 (monitor_store_register, monitor_store_registers): Likewise.
958 2007-10-09 Markus Deuling <deuling@de.ibm.com>
960 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
961 the current architecture by regcache.
963 2007-10-09 Markus Deuling <deuling@de.ibm.com>
965 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
968 2007-10-09 Markus Deuling <deuling@de.ibm.com>
970 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
971 architecture by frame.
972 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
973 (inside_main_func, frame_sp_unwind): Likewise.
975 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
977 * solib-svr4.c (enable_break): Add the dynamic linker also if
980 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
982 * MAINTAINERS (Write After Approval): Add self.
984 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
986 * stabsread.c (read_huge_number): Initialize local variable to 0.
988 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
990 * p-lang.h (pascal_main_name): Add declaration.
991 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
992 (GPC_MAIN_PROGRAM_NAME_2): New constants.
993 (pascal_main_name): New function.
994 * symtab.c: Include p-lang.h.
995 (find_main_name): Add call to pascal_main_name.
996 * Makefile.in (symtab.o): Add dependency on p-lang.h.
998 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
1000 * stabsread.c (read_huge_number): Fix handling of octal
1001 representation when the bit width is known.
1002 (read_range_type): Record unsigned integral types with their size,
1003 when the type size is known.
1005 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1007 * MAINTAINERS (Write After Approval): Add self.
1009 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
1011 * breakpoint.c (print_one_breakpoint_location): ARI fix:
1012 Replace asprintf by xstrprintf.
1014 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
1016 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
1017 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
1019 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
1021 * linux-fork.c: Move "gdb_wait.h" include back to the position of
1022 <sys/wait.h> include before last commit.
1024 2007-10-08 Maciej W. Rozycki <macro@mips.com>
1026 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
1028 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1030 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
1031 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
1032 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
1033 (store_regs_user_thread, store_regs_kernel_thread): Use
1034 get_regcache_arch or get_frame_arch to get at the current architecture
1035 by regcache or by frame, respectively.
1037 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1039 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
1040 (sh64_pseudo_register_read, sh64_pseudo_register_write)
1041 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
1042 (sh64_print_register, sh64_media_print_registers_info)
1043 (sh64_compact_print_registers_info, sh64_unwind_sp)
1044 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
1045 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
1046 (sh64_frame_prev_register): Use FRAME to recognize current
1049 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1051 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
1052 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
1053 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
1054 current_gdbarch by gdbarch.
1055 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
1056 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
1057 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
1058 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
1059 recognize current architecture.
1061 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1063 * remote.c (init_remote_state, fetch_register_using_p)
1064 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
1065 (store_register_using_P, store_registers_using_G)
1066 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
1067 get at the current architecture by regcache or by frame, respectively.
1069 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1071 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
1072 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
1073 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
1074 get_regcache_arch or get_frame_arch to get at the current architecture
1075 by regcache or by frame, respectively.
1076 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1077 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
1078 (store_register, old_store_inferior_registers, supply_gregset)
1079 (supply_fpregset, fill_fpregset): Likewise.
1080 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
1081 Replace current_gdbarch by gdbarch.
1083 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1085 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
1086 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
1087 get_frame_arch to get at the current architecture by regcache or by
1088 frame, respectively.
1090 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1092 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
1093 Replace current_gdbarch by gdbarch.
1094 * ia64-tdep.c (ia64_frame_prev_register
1095 (ia64_sigtramp_frame_prev_register)
1096 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
1097 get_frame_arch to get at the current architecture by regcache or by
1098 frame, respectively.
1099 * ia64-linux-nat.c (ia64_linux_fetch_register)
1100 (ia64_linux_fetch_registers, ia64_linux_store_register)
1101 (ia64_linux_store_registers): Likewise.
1103 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1105 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
1106 current_gdbarch by gdbarch.
1107 * hppa-linux-nat.c (fetch_register, store_register)
1108 (hppa_linux_fetch_inferior_registers)
1109 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
1110 get_frame_arch to get at the current architecture by regcache or by
1111 frame, respectively.
1112 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
1113 (hppa_hpux_unwind_adjust_stub): Likewise.
1114 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
1115 (hppa_hpux_fetch_inferior_registers)
1116 (hppa_hpux_store_inferior_registers): Likewise.
1118 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1120 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1121 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
1122 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
1123 or get_frame_arch to get at the current architecture by regcache or by
1124 frame, respectively.
1125 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
1126 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
1127 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
1128 current_gdbarch by gdbarch.
1130 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1132 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
1133 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
1134 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
1135 get at the current architecture by regcache or by·frame, respectively.
1136 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
1139 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1141 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
1142 Use get_regcache_arch or get_frame_arch to get at the current
1143 architecture by regcache or by frame, respectively.
1144 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
1145 * amd64-nat.c (amd64_supply_native_gregset)
1146 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
1148 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1150 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
1152 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1153 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
1154 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
1155 get_frame_arch to get at the current architecture by regcache or by
1156 frame, respectively.
1157 * alpha-nat.c (fetch_osf_core_registers): Likewise.
1159 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1161 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
1162 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
1163 current_gdbarch by gdbarch.
1164 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
1166 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1168 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
1169 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
1170 * regcache.c (regcache_raw_write): Use get_regcache_arch or
1171 get_frame_arch to get at the current architecture by regcache or by
1172 frame, respectively.
1174 2007-10-08 Markus Deuling <deuling@de.ibm.com>
1176 * findvar.c (value_of_register, locate_var_value): Use
1177 get_regcache_arch or get_frame_arch to get at the current architecture
1178 by regcache or by frame, respectively.
1179 * findvar.c (default_value_from_register, value_from_register): Replace
1180 current_gdbarch by gdbarch.
1182 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
1184 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
1186 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
1188 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
1189 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
1191 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
1193 * remote.c (get_offsets): Only call free_symfile_segment_data if
1196 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
1198 * objc-exp.y: ARI fix: remove 4 PARAMS.
1200 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
1202 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
1203 news. Mention XML support for M68K in GDB 6.7.
1205 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
1207 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
1209 (init_vector_type): Use builtin_type_int32.
1211 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
1213 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
1214 size to enable bi-arch generate-core-file support.
1216 2007-10-02 Markus Deuling <deuling@de.ibm.com>
1218 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
1220 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1222 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
1224 * tui/tui-win.c (tui_initialize_win): New function for
1225 initializing tui's SIGWINCH signal handler.
1226 * tui/tui-win.h (tui_initialize_win): Declare.
1228 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
1230 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
1231 pointer to uintptr_t before casting to CORE_ADDR.
1233 2007-10-02 Markus Deuling <deuling@de.ibm.com>
1235 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
1237 2007-10-02 Mark Mitchell <mark@codesourcery.com>
1239 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
1240 * ser-mingw.c (enum select_thread_state): New type.
1241 (struct ser_console_state): Add have_started and thread_state.
1242 (select_thread_wait): New function.
1243 (thread_fn_type): New type.
1244 (create_select_thread): New function.
1245 (destroy_select_thread): Likewise.
1246 (start_select_thread): Likewise.
1247 (stop_select_thread): Likewise.
1248 (console_select_thread): Use new functions.
1249 (pipe_select_thread): Likewise.
1250 (file_select_thread): Likewise.
1251 (ser_console_wait_handle): Likewise.
1252 (ser_console_done_wait_handle): Likewise.
1253 (ser_console_close): Likewise.
1254 (free_pipe_state): Likewise.
1255 (pipe_wait_handle): Likewise.
1256 (pipe_done_wait_handle): Likewise.
1257 (struct net_windows_state): Derive from ser_console_state.
1258 (net_windows_select_thread): Use new functions.
1259 (net_windows_wait_handle): Likewise.
1260 (net_windows_done_wait_handle): Likewise.
1261 (net_windows_close): Likewise.
1263 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1265 * inflow.c (terminal_ours_1): Remove useless line.
1267 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1269 * mips-tdep.c (mips_read_fp_register_double): Correct check for
1271 (mips_print_fp_register): Correct check for even FP registers.
1272 (mips_virtual_frame_pointer): New function.
1273 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
1275 2007-09-30 Mike Frysinger <vapier@gentoo.org>
1277 * value.h (lookup_only_internalvar): New prototype.
1278 (create_internalvar): Likewise.
1279 * value.c (lookup_only_internalvar): New function.
1280 (create_internalvar): Likewise.
1281 (lookup_internalvar): Use new lookup_only_internalvar and
1282 create_internalvar functions.
1283 * parse.c (write_dollar_variable): Look up $ symbols in internal
1284 table first rather than last.
1286 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
1288 * linux-nat.c (linux_nat_new_thread): New variable.
1289 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
1290 linux_nat_switch_fork.
1291 (lwp_list): Make public.
1292 (add_lwp): Call linux_nat_new_thread.
1293 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
1295 (resume_callback): Clear lp->siginfo. Remove unused variable.
1296 (linux_nat_resume): Assert that the LWP list is already initialized.
1298 (save_siginfo): New.
1299 (stop_wait_callback, linux_nat_wait): Call it.
1300 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
1301 * linux-nat.h (struct lwp_info): Add siginfo.
1302 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
1305 * amd64-linux-nat.c (amd64_linux_dr): New.
1306 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
1307 (amd64_linux_dr_set): Take a PTID argument.
1308 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
1309 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
1310 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
1311 (amd64_linux_new_thread): New.
1312 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
1313 * i386-linux-nat.c (i386_linux_dr): New.
1314 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
1315 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
1316 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
1317 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
1318 (i386_linux_new_thread): New.
1319 (i386_linux_resume): Remove unnecessary PID check.
1320 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
1321 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
1322 (fetch_debug_register, fetch_debug_register_pair): Delete.
1323 (debug_registers): New.
1324 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
1325 ALL_LWPS and debug_registers.
1326 (ia64_linux_new_thread): New.
1327 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
1328 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
1329 * ppc-linux-nat.c (last_stopped_data_address): Delete.
1330 (saved_dabr_value): New.
1331 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1333 (ppc_linux_new_thread): New.
1334 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
1335 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
1336 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
1337 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
1339 (s390_fix_watch_points): Take a PTID argument.
1340 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
1341 (_initialize_s390_nat): Call linux_nat_set_new_thread.
1343 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
1344 Jeff Johnston <jjohnstn@redhat.com>
1346 * breakpoint.c (watchpoints_triggered): New.
1347 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
1348 Check watchpoint_triggered instead. Combine handling for software
1349 and hardware watchpoints. Do not use target_stopped_data_address
1350 here. Always check a watchpoint if its scope breakpoint triggers.
1351 Do not stop for thread or overlay events. Improve check for
1352 triggered watchpoints without a value change.
1353 (watch_command_1): Insert the scope breakpoint first. Link the
1354 scope breakpoint to the watchpoint.
1355 * breakpoint.h (enum watchpoint_triggered): New.
1356 (struct breakpoint): Add watchpoint_triggered.
1357 (bpstat_stop_status): Update prototype.
1358 (watchpoints_triggered): Declare.
1359 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
1360 (stepped_after_stopped_by_watchpoint): Delete.
1361 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
1362 local. Handle infwait_step_watch_state. Update calls to
1363 bpstat_stop_status. Use watchpoints_triggered to check
1365 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
1366 (remote_stopped_data_address): Do not check it.
1368 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
1370 * configure.ac: Add $LIBINTL when testing libbfd.
1371 * configure: Regenerated.
1373 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
1375 * NEW: Mention pending breakpoint changes and
1376 support for breakpoints at multiple locations.
1378 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
1380 * arm-linux-tdep.c (arm_linux_software_single_step): New.
1381 (arm_linux_init_abi): Use it.
1382 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
1383 condition correctly.
1384 * arm-tdep.h (arm_get_next_pc): Declare.
1385 * Makefile.in (arm-linux-tdep.o): Update.
1387 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1389 * varobj.c (install_new_value): Don't
1390 call value_get_print_value when a value is
1391 lazy. Update the print_value member in a
1394 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1396 * breakpoint.c (create_breakpoint): Set
1397 condition on each location, not on the first
1398 location of breakpoint.
1400 2007-09-26 Jim Blandy <jimb@codesourcery.com>
1402 * remote.c (getpkt_sane): Fix error message. No animals were
1403 harmed in the making of this debugger.
1405 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1407 * p-typeprint.c: Fix 11 ARI reported problems.
1408 (pascal_print_type): Fix 4 operator at end of line.
1409 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
1410 using strncmp function.
1411 (pascal_type_print_base): Fix 2 operator at end of line.
1412 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
1413 using strncmp function.
1416 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1418 * Fix PR pascal/2231
1419 dwarf2read.c (read_subroutine_type):
1420 All pascal functions are prototyped.
1422 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1424 * Fix PR pascal/2283
1425 p-valprint.c (pascal_val_print): correct current language check.
1426 Also print array of char as strings.
1429 2007-09-26 David Ung <davidu@mips.com>
1430 Maciej W. Rozycki <macro@mips.com>
1432 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
1434 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
1436 * p-exp.y: Fix 12 ARI reported problems.
1437 (name_not_typename): Fix 2 operator at end of line issues.
1438 (yylex): Fix 3 operator at end of line issues.
1439 Replace 7 DEPRECATED_STREQ macros using strcmp function.
1441 2007-09-25 David Ung <davidu@mips.com>
1442 Maciej W. Rozycki <macro@mips.com>
1444 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
1445 rules return composite types in registers as appropriate.
1447 2007-09-24 Jim Blandy <jimb@codesourcery.com>
1449 * symfile.h (struct symfile_segment_data): Doc fixes.
1450 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
1451 Assert that we were passed some loaded segment addresses,
1452 and that sections' segment numbers are valid.
1453 Simplify offset calculation.
1454 * remote.c (get_offsets): Clarify selection of relocate-by-segment
1455 strategy, and set num_segments correctly. Delete redundant
1456 assignments to do_sections.
1458 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
1460 * frame.c (get_prev_frame_1): Also check for PC in the same register.
1462 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
1464 * breakpoint.c (remove_sal): New.
1465 (expand_line_sal_maybe): New.
1466 (create_breakpoints): Call expand_line_sal_maybe.
1467 (clear_command): Add comment.
1468 (breakpoint_re_set_one): Call expand_line_sal_maybe.
1469 * linespec.c (decode_indirect): Set explicit_pc to 1.
1470 (decode_all_digits): Set explicit_line to 1.
1471 (append_expanded_sal): New.
1472 (expand_line_sal): New.
1473 * linespec.h (expand_line_sal): Declare.
1474 * symtab.c (init_sal): Initialize explicit_pc
1476 * symtab.h (struct symtab_and_line): New fields
1477 explicit_pc and explicit_line.
1479 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
1481 * infcall.c (call_function_by_hand): Handle language-specific
1482 pass and return by reference.
1484 * cp-abi.c (cp_pass_by_reference): New.
1485 * cp-abi.h (cp_pass_by_reference): Declare.
1486 (struct cp_abi_ops): Add pass_by_reference.
1487 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
1488 (init_gnuv3_ops): Set pass_by_reference.
1490 * language.c (language_pass_by_reference): New.
1491 (default_pass_by_reference): New.
1492 (unknown_language_defn, auto_language_defn, local_language_defn): Add
1493 default_pass_by_reference.
1494 * langauge.h (struct language_defn): Add la_pass_by_reference.
1495 (language_pass_by_reference, default_pass_by_reference): Declare.
1496 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
1497 * c-lang.c (c_language_defn, asm_language_defn)
1498 (minimal_language_defn): Likewise.
1499 (cplus_language_defn): Add cp_pass_by_reference.
1500 * f-lang.c (f_language_defn): Add default_pass_by_reference.
1501 * jv-lang.c (java_language_defn): Likewise.
1502 * m2-lang.c (m2_language_defn): Likewise.
1503 * objc-lang.c (objc_language_defn): Likewise.
1504 * p-lang.c (pascal_language_defn): Likewise.
1505 * scm-lang.c (scm_language_defn): Likewise
1507 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
1509 Allow a code breakpoint to have several locations
1511 * breakpoint.h (enum enable_state): Remove the
1512 bp_shlib_disabled enumerator.
1513 (struct bp_location): New members shlib_disabled,
1514 global_next, enabled and function_name.
1515 Rename pending to condition_not_parsed.
1517 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
1518 (ALL_BP_LOCATIONS_SAFE): Likewise.
1519 (breakpoint_enabled): Don't check for pending.
1520 (condition_command): Free and update all locations of
1522 (insert_bp_location): Adjust.
1523 (software_breakpoint_inserted_here_p): Don't care
1524 if breakpoint is enabled, as soon as it's inserted.
1525 (print_it_typical): Print bpstat's location, not
1526 bpstat's breakpoint's location.
1527 (bpstat_stop_status): Iterate over all locations, not
1529 (print_breakpoint_location): New.
1530 (print_one_breakpoint): Renamed to
1531 (print_one_breakpoint_location): ...this. Take
1532 parameters to describe which location is being
1533 printed. Modify code to properly print header
1534 for several locations and individual locations.
1535 (print_one_breakpoint): Print all locations.
1536 (breakpoint_has_pc): New.
1537 (describe_other_breakpoints): Use the above.
1538 (check_duplicates): Renamed to...
1539 (check_duplicates_for): .. this.
1540 (check_duplicates): Use check_duplicates_for.
1541 (allocate_bp_location): Adjust.
1542 (set_raw_breakpoint_without_location): New,
1543 extracted from set_raw_breakpoint.
1544 (set_breakpoint_location_function): New.
1545 (set_raw_breakpoint): Use
1546 set_raw_breakpoint_without_location.
1547 (make_breakpoint_permanent): Mark all locations
1549 (disable_breakpoints_in_shlibs): Iterate over
1551 (disable_breakpoints_in_unloaded_shlib): Likewise.
1552 (re_enable_breakpoints_in_shlibs): Likewise.
1553 (mention): Say "pending" when breakpoint has
1554 zero locations. If breakpoint has more than one
1556 (add_location_to_breakpoint): New.
1557 (create_breakpoint): Accept symtabs_and_lines, not
1558 symtab_and_line. Pass extra sals to
1559 add_location_to_breakpoint.
1560 (create_breakpoints): Pass symtabs_and_lines to
1562 (break_command_1): Make pending breakpoints
1563 have zero locations.
1564 (do_captured_breakpoint): Remove wrong allocation.
1565 (clear_command): Iterate over all locations.
1566 (unlink_locations_from_global_list): Renamed
1567 from unlink_location_from_global_list. Remove
1569 (delete_breakpoint): Remove all locations.
1570 Iterate over all locations when deciding which
1571 other location to re-enable.
1572 (all_locations_are_pending): New.
1573 (update_breakpoint_locations): Renamed from
1574 update_breakpoint_location. Try to match old
1575 and new locations using names of containing
1577 (breakpoint_re_set_one): Adjust.
1578 (find_location_by_number): New.
1579 (disable_command): Allow disabling individual location.
1580 (enable_command): Allow enabling individual location.
1581 * breakpoint.c: Adjust all uses of breakpoint's
1582 enable state to for bp_shlib_disabled change.
1584 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1586 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
1587 (resolve_pending_breakpoint): Remove.
1588 (re_enable_breakpoints_in_shlibs): Remove.
1589 (unlink_locations_from_global_list): New.
1590 (update_breakpoint_locations): New.
1591 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
1592 Use parse_condition and update_breakpoint_location to
1593 reset breakpoint. Ignore 'symbol not found' error from
1595 (breakpoint_re_set): Don't emit newline before the
1596 reason why breakpoint is not reset.
1597 (do_enable_breakpoint): Don't specially process pending
1599 (free_bp_location): New.
1600 (break_command_1): For pending breakpoints, initialize
1601 all fields of a sal with zeroes.
1602 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
1603 * infcmd.c (post_create_inferior): Don't call
1604 re_enable_breakpoints_in_shlibs.
1605 * infrun.c (handle_inferior_event): Likewise.
1606 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1607 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1608 * win32-nat.c (get_win32_debug_event): Likewise.
1610 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1612 * breakpoint.c (create_breakpoint): Split from
1613 create_breakpoints, implementing most of its logic.
1614 Take just a single sal, single address string and
1615 single condition. Do not take parsed condition at
1617 (create_breakpoints): Just call create_breakpoint
1619 (find_condition_and_thread): New.
1620 (break_command_1): Use find_condition_and_thread.
1621 Do not keep parsed conditions.
1622 (do_captured_breakpoint): Don't convert
1623 condition string to struct expression.
1625 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1627 * breakpoint.h (struct breakpoint): Move the cond
1629 (struct bp_location): Here.
1630 * breakpoint.c (condition_command, bpstat_stop_status)
1631 (print_one_breakpoint, allocate_bp_location)
1632 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
1633 (create_exec_event_catchpoint, create_breakpoints)
1634 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
1635 (create_ada_exception_breakpoint, set_breakpoint_sal)
1636 (delete_breakpoint, breakpoint_re_set_one): Adjust.
1637 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
1639 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1641 Associate bp_stat with bp_location, not breakpoint.
1642 * breakpoint.h (breakpoint_at): Change type
1644 * breakpoint.c (bpstat_alloc): Take bp_location,
1646 (bpstat_find_breakpoint): Look at bpstat's location's
1647 owner, not at bpstat->breakpoint_at.
1648 (bpstat_find_step_resume_breakpoint): Likewise.
1649 (bpstat_num): Likewise.
1650 (print_it_typical): Likewise.
1651 (print_bp_stop_message): Likewise.
1652 (watchpoint_check): Likewise.
1653 (bpstat_what): Likewise.
1654 (bpstat_get_triggered_catchpoints): Likewise.
1655 (breakpoint_auto_delete): Likewise.
1656 (delete_breakpoint): Likewise.
1657 (bpstat_stop_status): Pass location, not breakpoint,
1658 to bpstat_alloc. Look at bpstat's location's
1659 owner, not at bpstat->breakpoint_at.
1661 2007-09-21 Jim Blandy <jimb@codesourcery.com>
1663 * macrotab.h (new_macro_table): Document that removing information
1664 from an obstack/bcache-managed macro table leaks memory.
1665 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
1666 that data is never freed in obstack/bcache-managed macro tables,
1667 just leak the storage.
1668 (macro_undef): If we're undefining a macro at exactly the same
1669 source location that we defined it, simply remove the definition
1672 2007-09-21 Joel Brobecker <brobecker@adacore.com>
1674 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
1675 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
1676 Adjust the struct sym_fns object accordingly by setting
1677 the new field to NULL.
1678 * xcoffread.c (aix_process_linenos): Make static.
1679 (xcoff_sym_fns): Set new field to aix_process_linenos.
1680 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
1681 by call to new the new sym_fns sym_read_linetable function.
1682 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
1683 * config/rs6000/tm-rs6000.h: Delete.
1685 2007-09-21 David Ung <davidu@mips.com>
1686 Maciej W. Rozycki <macro@mips.com>
1688 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
1689 rules do not treat composite types specially.
1691 2007-09-20 Maciej W. Rozycki <macro@mips.com>
1693 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
1694 (mips16_in_function_epilogue_p): Likewise.
1695 (mips_in_function_epilogue_p): Likewise.
1696 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
1698 2007-09-19 Joel Brobecker <brobecker@adacore.com>
1700 * configure.ac: Add check for "etext".
1701 * configure, config.in: Regenerate.
1702 * maint.c (TEXTEND): Only define if either _etext or etext
1704 Disable the profiling functionality if TEXTEND is not defined.
1706 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
1708 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
1709 address register. Correct the call to frame_id_build.
1710 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
1713 2007-09-18 Joel Brobecker <brobecker@adacore.com>
1715 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
1716 the linetable past the function end.
1718 2007-09-18 James E. Wilson <wilson@specifix.com>
1720 * MAINTAINERS: Update my email address.
1722 2007-09-18 Jerome Guitton <guitton@adacore.com>
1724 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
1725 (inf_ttrace_delete_dying_threads_callback): New function.
1726 (inf_ttrace_resume): After resuming the execution, iterate over
1727 the dying threads to delete them for the thread list.
1728 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
1729 mark the corresponding thread as dying instead of removing it
1730 from the thread list.
1731 (inf_ttrace_thread_alive): return 0 for dying threads.
1733 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1735 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
1736 that return_frame is not null.
1738 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1740 * solib-svr4.c: Add include of "auxv.h".
1741 (enable_break): Use the AT_BASE auxiliary entry if available.
1742 * Makefile.in (solib-svr4.o): Update dependencies.
1744 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1746 * NEWS: Create a new section for the next release branch.
1747 Rename the section of the current branch, now that it has
1750 2007-09-17 Jerome Guitton <guitton@adacore.com>
1752 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1753 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1755 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1757 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1758 * mi/mi-cmds.h (mi_cmd_list_features): New.
1759 * mi/mi-main.c (mi_cmd_list_features): New.
1761 2007-09-11 Joel Brobecker <brobecker@adacore.com>
1763 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1764 * version.in: Bump version to 6.7.50-20070911-cvs.
1766 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1768 * thread.c (free_thread): Do not delete the step resume breakpoint
1771 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1773 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1774 * corelow.c (core_read_description): New.
1775 (init_core_ops): Set to_read_description.
1776 * gdbarch.sh: Add gdbarch_core_read_description.
1777 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1778 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1779 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1780 (mips_register_g_packet_guesses): Use them.
1781 (_initialize_mips_tdep): Initialize them.
1782 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1783 * gdbarch.h, gdbarch.c: Regenerated.
1785 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1787 * infrun.c (stepping_past_breakpoint): New global variable.
1788 (stepping_past_breakpoint_ptid): Likewise.
1789 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1790 Only switch threads if we need to single-step over a breakpoint hit
1791 in the previously selected thread. If stepping, remember previous
1792 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1793 switch_to_thread instead of copying its contents.
1794 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1795 prepare_to_proceed returns true.
1796 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1797 (context_switch): Call switch_to_thread.
1798 (handle_inferior_event): Switch back to previous thread if requested
1799 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1800 * gdbthread.h (switch_to_thread): Add prototype.
1801 * thread.c (switch_to_thread): Make global.
1803 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1805 * p-valprint.c: Fix 7 ARI reported problems.
1806 (pascal_val_print): Fix one operator at end of line issue.
1807 Use paddress function to remove use of
1808 deprecated_print_address_numeric function (2 times).
1809 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1810 (pascal_value_print): Fix 3 operator at end of line issues.
1812 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1815 * arm-tdep.c (arm_in_call_stub): Delete.
1816 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1818 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1820 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1823 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1824 Jim Blandy <jimb@codesourcery.com>
1826 * NEWS: Update description of string changes. Mention print/s.
1827 * c-valprint.c (textual_element_type): New.
1828 (c_val_print): Use it. Do not skip address printing for pointers
1829 with a string format.
1830 (c_value_print): Doc update.
1831 * dwarf2read.c (read_array_type): Use make_vector_type.
1832 * gdbtypes.c (make_vector_type): New.
1833 (init_vector_type): Use it.
1834 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1835 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1836 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1837 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1838 (make_vector_type): New.
1839 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1840 Call the language print routine for string format.
1841 (print_scalar_formatted): Call val_print for string format. Handle
1842 unsigned original types for char format.
1843 (validate_format): Do not reject string format.
1844 * stabsread.c (read_type): Use make_vector_type.
1845 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1847 2007-09-04 Michael Snyder <msnyder@access-company.com>
1849 * expprint.c (print_subexp_standard): Check strchr for null.
1850 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1852 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1854 * stabsread.c (patch_block_status): Guard against null.
1855 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1857 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1859 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1860 in internal error message.
1862 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1863 Daniel Jacobowitz <dan@codesourcery.com>
1865 * infcmd.c (post_create_inferior): Update comment.
1866 (run_command_1): Always call post_create_inferior with 0 as
1869 * i386-cygwin-tdep.h: New.
1870 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1871 (win32_xfer_shared_library): Make it extern.
1873 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1875 (win32_so_ops): Delete.
1876 (get_relocated_section_addrs): Delete.
1877 (solib_symbols_add): Delete.
1878 (register_loaded_dll): Delete.
1879 (win32_make_so): New.
1880 (handle_load_dll): Use win32_make_so.
1881 (win32_free_so): Free the passed in so.
1882 (win32_relocate_section_addresses): Delete.
1883 (win32_solib_create_inferior_hook): Delete.
1884 (handle_unload_dll): Don't add PE offset here. Free so with
1885 win32_free_so instead of free_so.
1886 (win32_special_symbol_handling): Delete.
1887 (get_win32_debug_event): Remove unneeded calls. Set state to
1888 TARGET_WAITKIND_LOADED on a dll unload.
1889 (do_initial_win32_stuff): Clear cygwin_load_start and
1891 (map_code_section_args): Delete.
1892 (dll_code_sections_add): Delete.
1893 (core_section_load_dll_symbols): Delete.
1894 (win32_xfer_shared_libraries): New.
1895 (win32_current_sos): Delete.
1896 (win32_xfer_partial): New.
1897 (open_symbol_file_object): Delete.
1898 (in_dynsym_resolve_code): Delete.
1899 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1900 of win32_ops. Remove win32_so_ops settings. Don't set
1901 current_target_so_ops here.
1903 * Makefile.in (i386_cygwin_tdep_h): New variable.
1904 (i386-cygwin-tdep.o): Update dependencies.
1905 (win32-nat.o): Update dependencies.
1907 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1908 Daniel Jacobowitz <dan@codesourcery.com>
1910 * gdbarch.sh (core_xfer_shared_libraries): New.
1912 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1914 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1916 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1917 (xml_escape_text): New.
1918 * xml-support.h (xml_escape_text): Declare.
1920 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1921 * config/i386/cygwin.mt (TDEPFILES): ... here.
1923 * win32-nat.c: (fetch_elf_core_registers): Delete.
1924 (win32_elf_core_fn): Delete.
1925 (_initialize_core_win32): Delete.
1927 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1928 "xml-support.h" and "gdbcore.h".
1929 (i386_win32_gregset_reg_offset): New.
1930 (I386_WIN32_SIZEOF_GREGSET): New.
1931 (i386_win32_regset_from_core_section): New.
1932 (win32_xfer_shared_library): New.
1933 (struct cpms_data): New.
1934 (core_process_module_section): New.
1935 (win32_core_xfer_shared_libraries): New.
1936 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1937 gregset_num_regs, sizeof_gregset members of tdep. Register
1938 regset_from_core_section and core_xfer_shared_libraries callbacks.
1940 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1941 * gdbarch.h, gdbarch.c: Regenerate.
1943 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1945 * corelow.c (core_xfer_partial): Pass writebuf to
1946 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1948 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1950 * arm-tdep.h (arm_skip_stub): Declare.
1951 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1953 (arm_pe_skip_trampoline_code): New function.
1954 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1955 gdbarch_skip_trampoline_code callback.
1956 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1958 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1960 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1962 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1964 * configure.ac: Add --with-expat.
1965 * configure: Regenerated.
1967 2007-09-03 Andreas Schwab <schwab@suse.de>
1969 * configure.ac: Accept --with-system-readline.
1970 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1971 * configure: Regenerate.
1972 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1974 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1976 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1977 Daniel Jacobowitz <dan@codesourcery.com>
1979 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1981 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1983 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1985 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1987 * top.c (print_gdb_version): Update for GPL version 3.
1989 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1991 * NEWS: Mention the build-id .debug files verification.
1993 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1995 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1997 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1999 * Makefile.in (symfile.o): Update dependencies.
2000 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
2001 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
2002 (struct build_id): New structure.
2003 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
2004 (find_separate_debug_file): New variable BUILD_ID.
2005 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
2007 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
2009 * varobj.c (struct varobj): Fix comment
2010 for the type member not to lie when it can be
2013 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
2015 Implement -var-info-path-expression.
2017 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
2019 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
2020 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
2021 * varobj.c (struct varobj): New field 'path_expr'.
2022 (c_path_expr_of_child, cplus_path_expr_of_child)
2023 (java_path_expr_of_child): New.
2024 (struct language_specific): New field path_expr_of_child.
2025 (varobj_create): Initialize the path_expr field.
2026 (varobj_get_path_expr): New.
2027 (new_variable): Initialize the path_expr field.
2028 (free_variable): Free the path_expr field.
2029 (adjust_value_for_children_access): New parameter
2031 (c_number_of_children): Adjust.
2032 (c_describe_child): New parameter CFULL_EXPRESSION.
2033 Compute full expression.
2034 (c_value_of_child, c_type_of_child): Adjust.
2035 (cplus_number_of_children): Adjust.
2036 (cplus_describe_child): New parameter CFULL_EXPRESSION.
2037 Compute full expression.
2038 (cplus_name_of_child, cplus_value_of_child)
2039 (cplus_type_of_child): Adjust.
2040 * varobj.h (varobj_get_path_expr): Declare.
2042 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
2044 * mi/mi-cmd-var.c (print_varobj): If a varobj
2045 type is NULL, don't try to print it.
2047 2007-08-30 Alan Modra <amodra@bigpond.net.au>
2049 * ppc-linux-nat.c (right_fill_reg): Delete.
2050 (supply_gregset): Use ppc_supply_gregset.
2051 (supply_fpregset): Use ppc_supply_fpregset.
2052 (fill_gregset): Use ppc_collect_gregset.
2053 (fill_fpregset): Use ppc_collect_fpregset.
2054 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
2055 (right_supply_register, ppc_linux_supply_gregset): Delete.
2056 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
2057 (ppc_linux_supply_fpregset): Delete.
2058 (ppc_linux_collect_gregset): New function.
2059 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
2060 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
2061 ppc_linux_supply_gregset, and ppc_collect_gregset.
2062 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
2063 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
2064 (ppc_linux_regset_from_core_section): Update.
2065 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
2066 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
2067 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
2068 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
2069 (ppcobsd_collect_gregset): Likewise.
2070 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
2071 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
2072 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
2073 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
2074 (rs6000_aix64_reg_offsets): Likewise.
2075 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
2076 ppc_floating_point_unit_p.
2077 (rs6000_aix_collect_regset): Similarly.
2078 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
2079 when regsize is larger than regcache register size.
2080 (ppc_collect_reg): Similarly zero pad when regsize is larger than
2081 regcache register size.
2082 (ppc_greg_offset): New function, split out from..
2083 (ppc_supply_gregset): ..here. Separate code handling all regs from
2084 single reg case. Correct xer offset.
2085 (ppc_fpreg_offset): New function, split out from..
2086 (ppc_supply_fpregset): ..here. Separate code handling all regs from
2088 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
2089 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
2090 a fp unit, instead return if no fp.
2092 2007-08-29 Jim Blandy <jimb@codesourcery.com>
2094 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
2095 this code has not been compiled for two years.
2097 2007-08-29 Michael Snyder <msnyder@access-company.com>
2099 * event-top.c (gdb_readline2): Return after EOF.
2101 2007-08-29 Joel Brobecker <brobecker@adacore.com>
2103 * symtab.c: Remove a function that has been commented out 3 years ago.
2105 2007-08-29 Randolph Chung <tausq@debian.org>
2107 * hppa-tdep.c (hppa32_cannot_fetch_register)
2108 (hppa64_cannot_fetch_register): New functions.
2109 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
2110 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
2112 2007-08-28 Michael Snyder <msnyder@access-company.com>
2114 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
2115 check for null before calling check_typedef.
2117 * NEWS: Mention Coverity bug fixes.
2119 2007-08-27 Markus Deuling <deuling@de.ibm.com>
2121 * spu-tdep.c (spu_pointer_to_address): New function.
2122 (spu_integer_to_address): Likewise.
2123 (spu_gdbarch_init): Add spu_pointer_to_address and
2124 spu_integer_to_address to gdbarch.
2126 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
2128 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
2130 2007-08-23 Joel Brobecker <brobecker@adacore.com>
2132 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
2133 that contains the GDB license.
2134 * copying.awk: Adjust to the GPLv3 wording.
2135 * copying.c: Regenerate.
2137 2007-08-23 Joel Brobecker <brobecker@adacore.com>
2139 * copying.awk: Protoization, and i18n markup.
2141 2007-08-23 Joel Brobecker <brobecker@adacore.com>
2143 * config/djgpp/djconfig.sh: Switch license to GPLv3.
2144 * copyright.sh: Likewise.
2145 * gdb-events.sh: Likewise.
2146 * gdb_gcore.sh: Likewise.
2147 * gdb_mbuild.sh: Likewise.
2148 * gdbarch.sh: Likewise.
2149 * observer.sh: Likewise.
2150 * features/feature_to_c.sh: Likewise.
2151 * regformats/regdat.sh: Likewise.
2153 2007-08-23 Joel Brobecker <brobecker@adacore.com>
2155 Switch the license of all .c files to GPLv3.
2156 Switch the license of all .h files to GPLv3.
2157 Switch the license of all .cc files to GPLv3.
2159 2007-08-23 Joel Brobecker <brobecker@adacore.com>
2161 * configure.ac: Switch license to GPLv3.
2163 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
2165 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
2166 determine the file's FPU type.
2168 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
2170 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
2171 (mips_n32n64_push_dummy_call): Always increment float_argreg along
2172 with argreg. Use mips_n32n64_fp_arg_chunk_p.
2174 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
2176 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
2178 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
2179 (elf_lookup_lib_symbol): Fix formatting.
2181 2007-08-21 Michael Snyder <msnyder@access-company.com>
2183 * dbxread.c (read_dbx_symtab): Guard null deref.
2186 * valops.c (find_overload_match): Guard against NULL.
2188 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
2190 * MAINTAINERS (Patch Champions): Remove self.
2192 2007-08-21 Chris Smith <chris.smith@st.com>
2194 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
2197 2007-08-18 Michael Snyder <msnyder@access-company.com>
2199 * stabsread.c (dbx_lookup_type): Memory leak.
2201 * event-loop.c (delete_async_signal_handler): Move pointer null
2202 test to before pointer dereference.
2204 * ui-out.c (append_header_to_list): Possible cut and paste error.
2206 * MAINTAINERS: white space tweak.
2208 2007-08-17 Michael Snyder <msnyder@access-company.com>
2210 * stack.c (print_frame): Memory leak.
2212 * completer.c (filename_completer): Avoid memory leak.
2213 Remove unnecessary nested block.
2215 * c-exp.y (parse_number): Memory leak.
2217 * completer.c (location_completer): Must free 'fn_list', except
2218 in the one case where it is returned (as 'list').
2220 * varobj.c (value_of_root): Memory leak.
2222 * gdbtypes.h (virtual_base_list): Remove export decl.
2223 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
2224 (virtual_base_index): Memory leak.
2225 (virtual_base_index_skip_primaries): Ditto.
2227 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
2229 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
2230 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
2231 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
2232 (xtensa_read_register): New function.
2233 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
2234 (xtensa_insn_kind): New types.
2235 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
2236 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
2237 (xtensa_verify_config, xtensa_pseudo_register_read)
2238 (xtensa_pseudo_register_write, xtensa_extract_return_value)
2239 (xtensa_store_return_value)
2240 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
2241 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
2242 (xtensa_frame_this_id, xtensa_frame_prev_register)
2243 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
2244 (call0_frame_cache, call0_frame_get_reg_at_entry)
2245 (call0_classify_opcode, call0_track_op)
2246 (call0_analyze_prologue, call0_frame_cache): New functions.
2248 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
2250 * breakpoint.c (bpstat_free): New.
2251 (bpstat_clear): Use bpstat_free.
2252 (delete_breakpoint): Document why we cannot
2253 remove bpstats from stop_bpstat.
2254 * breakpoint.h (bpstat_free): Declare.
2256 2007-08-16 Michael Snyder <msnyder@access-company.com>
2258 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
2260 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
2261 Joel Brobecker <brobecker@adacore.com>
2263 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
2265 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
2266 Joel Brobecker <brobecker@adacore.com>
2268 * ada-lang.c (possible_user_operator_p): Alternative fix to last
2269 checkin guarding against NULL.
2271 2007-08-14 Michael Snyder <msnyder@access-company.com>
2273 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
2274 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
2275 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
2276 go at beginning of new line.
2278 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
2279 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
2280 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
2281 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
2282 tui-winsource.h, tui.c, tui.h: Function declarations and
2283 definitions, wrap long lines.
2285 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
2286 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
2287 Reformat block comments to GNU standard.
2289 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
2290 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
2291 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
2292 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
2293 tui.c, tui.h: Comment reformatting to coding standard (capitals,
2294 spaces after periods, etc).
2296 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
2297 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
2298 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
2299 tui-winsource.h: Whitespace changes, fix pointer declarations
2302 2007-08-14 Joel Brobecker <brobecker@adacore.com>
2303 Michael Snyder <msnyder@access-company.com>
2305 * ada-lang.c (field_alignment): Guard against NULL.
2307 2007-08-14 Joel Brobecker <brobecker@adacore.com>
2309 * MAINTAINERS (Global Maintainers): Add self.
2311 2007-08-14 Michael Snyder <msnyder@access-company.com>
2313 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
2315 * ada-lang.c (possible_user_operator_p): Guard against NULL.
2317 * varobj.c (cplus_describe_child): Guard against null.
2318 Use "NULL" instead of "0" to initialize pointers.
2320 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
2322 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
2323 to match any gdbarch with matching OSABI. Set default ABI and FPU
2324 after running the OSABI handler.
2326 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
2328 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
2329 * config/i386/linux.mt (TDEPFILES): ...to here.
2331 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
2333 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
2334 the 'silent' parameter and code to implement that.
2335 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
2337 * win32-nat.c: Adjust.
2340 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
2342 * breakpoint.c (update_breakpoints_after_exec): Don't
2343 set address to zero.
2345 2007-08-13 Michael Snyder <msnyder@access-company.com>
2347 * valops.c: Whitespace clean-up.
2349 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
2351 * event-top.c (command_line_handler): Memory leak.
2353 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
2354 No need to make copy.
2356 * source.c (find_source_lines): Require symtab 's'.
2358 2007-08-11 Michael Snyder <msnyder@access-company.com>
2360 * completer.c: Spelling fix in comments.
2362 2007-08-10 Michael Snyder <msnyder@access-company.com>
2364 * gdbtypes.c: Coding standard cleanup.
2365 * gdbtypes.c: Comment/whitespace cleanup.
2367 * stabsread.c (read_huge_number): Attempt to compute value before
2368 values that it depends on.
2370 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
2371 (decode_objc): Use "NULL" instead of 0.
2372 (find_method): Ditto.
2373 (decode_all_digits): Ditto.
2374 (decode_dollar): Ditto.
2376 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
2378 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
2380 * solib-svr4.c (enable_break): Don't free tmp_pathname until
2383 * completer.c: Comment/whitespace cleanup.
2385 2007-08-10 Joel Brobecker <brobecker@adacore.com>
2387 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
2389 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
2391 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
2392 allocated file descriptors.
2394 2007-08-10 Joel Brobecker <brobecker@adacore.com>
2396 * Makefile.in: Minor cleanup throughout; add some missing variables,
2397 add some missing rules, remove some rules that are no longer needed,
2398 and fix the dependencies in several rules.
2400 2007-08-10 Ludovic Courtès <ludo@gnu.org>
2402 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
2403 (scm_lang_h, scm_tags_h): New.
2404 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
2405 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
2406 * defs.h (enum language): Add `language_scm'.
2408 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
2411 2007-08-09 Ludovic Courtès <ludo@gnu.org>
2413 * MAINTAINERS (Write After Approval): Add myself.
2415 2007-08-09 Michael Snyder <msnyder@access-company.com>
2417 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
2419 2007-08-09 Joel Brobecker <brobecker@adacore.com>
2421 * solib-som.c (som_relocate_section_addresses): Stop saving
2422 the $CODE$ section in the so_list structure.
2424 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
2426 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
2427 (xtensa_register_group_t): Add entries for coprocessors.
2428 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
2429 (xtensa_add_reggroups): Likewise.
2430 (xtensa_register_reggroup_p): Likewise.
2431 (xtensa_coprocessor_register_group): New function.
2434 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2436 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
2438 2007-08-08 Michael Snyder <msnyder@access-company.com>
2440 * target.c (target_read_string): Guard against null.
2442 * varobj.c (value_of_root): Move alloc after return to avoid leak.
2444 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
2445 (tui_set_layout_for_display_command): Mem leak.
2447 * top.c (command_line_input): Memory leak.
2449 * solib-svr4.c (open_symbol_file_object): Memory leak.
2450 (svr4_current_sos): Ditto.
2451 (enable_break): Ditto.
2453 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
2455 * dwarf2read.c (add_partial_symbol): Memory leak.
2457 2007-08-06 Michael Snyder <msnyder@access-company.com>
2459 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
2461 2007-08-05 Jim Blandy <jimb@codesourcery.com>
2463 * macroexp.c (init_buffer): Remove testing code that overrides the
2464 caller's length guess.
2465 (gather_arguments): Use a larger initial size, now that the vector
2466 growth code has been exercised.
2468 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
2470 * solib-target.c (solib_target_relocate_section_addresses): Add
2471 orig_delta to addr_high.
2473 2007-08-04 Michael Snyder <msnyder@access-company.com>
2475 * remote-fileio.c (remote_fileio_func_write): Memory leak.
2477 * breakpoint.c (print_one_breakpoint): Off by one error.
2479 * tracepoint.c (add_register): Off by one error.
2480 (stringify_collection_list): Free malloc buffer.
2482 2007-08-03 Michael Snyder <msnyder@access-company.com>
2484 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
2485 stop memory leak, straighten out cleanups.
2487 * jv-lang.c (java_link_class_type): Guard against NULL.
2489 2007-08-02 Michael Snyder <msnyder@access-company.com>
2491 * gdbtypes.c (create_set_type): Test should only be done within
2492 the preceeding if block. Otherwise, variable is uninitialized.
2494 * gdbtypes.c (check_typedef): Guard NULL.
2496 2007-08-01 Michael Snyder <msnyder@access-company.com>
2498 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
2499 avoid dereference in lookup_cmd_1.
2501 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
2502 clean up long lines.
2503 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
2504 (tui_alloc_win_info): Ditto.
2505 (tui_add_content_elements): Ditto.
2506 * tui/tui-file.c (tui_file_magic): Ditto.
2508 2007-07-31 Michael Snyder <msnyder@access-company.com>
2510 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
2511 True and false paths are mutually exclusive.
2513 * event-top.c (command_line_handler): Add pedantic return.
2515 * f-valprint.c (info_common_command): Bail out to prevent null
2516 pointer deref. Break up a long line.
2518 * exec.c (xfer_memory): Remove redundant condition from 'if'.
2520 * symfile.c (reread_separate_symbols): Free xmalloced memory.
2522 * printcmd.c (build_address_symbolic): Remove dead code and dead
2525 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
2527 * linespec.c (minsym_found): Advance to the next line if possible.
2529 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
2531 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
2532 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
2533 solib-svr4.o, and add solib-target.o
2535 2007-07-27 Michael Snyder <msnyder@access-company.com>
2537 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
2539 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
2541 * MAINTAINERS (Write After Approval): Add myself.
2543 2007-07-26 Maciej W. Rozycki <macro@mips.com>
2545 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
2548 2007-07-25 Maciej W. Rozycki <macro@mips.com>
2550 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
2552 2007-07-24 Michael Snyder <msnyder@access-company.com>
2554 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
2555 'buffer' must cover both branches that call strcmp (Coverity).
2557 * stack.c (print_frame_args): Check return value of lookup_symbol.
2559 * ax-gdb.c (find_field): Guard against null ptr.
2561 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2563 * regformats/reg-spu.dat: Fix order of npc, id registers.
2565 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2567 * target.c (memory_xfer_partial): Accesses to unmapped overlay
2568 sections should always go to the executable file.
2570 2004-07-20 Chris Dearman <chris@mips.com>
2572 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
2573 prologue instructions.
2575 2007-07-20 Maciej W. Rozycki <macro@mips.com>
2577 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
2580 2007-07-20 Chris Dearman <chris@mips.com>
2581 Maciej W. Rozycki <macro@mips.com>
2583 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
2586 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
2587 Daniel Jacobowitz <dan@codesourcery.com>
2589 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
2590 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
2592 * NEWS: Mention gdbserver DLL support.
2594 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
2596 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
2598 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
2600 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
2603 2007-07-13 Kevin Buettner <kevinb@redhat.com>
2605 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
2608 2007-07-12 Kevin Buettner <kevinb@redhat.com>
2610 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
2611 (mep_analyze_prologue): Add case for BRA instruction.
2613 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2615 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
2617 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
2619 * breakpoint.c: Include "top.h".
2620 (breakpoint_1): Don't set convenience variable $_ if server prefix
2622 (_initialize_breakpoint): Describe this behaviour in command help.
2624 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
2626 * solib-target.c (library_list_start_segment): Cast address to
2629 2007-07-06 Mark Kettenis <kettenis@gnu.org>
2631 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
2632 for terminated processes.
2634 2007-07-05 Michael Snyder <msnyder@access-company.com>
2636 * event-top.c (cli_command_loop): Prompt string can (and should)
2637 be freed after call to readline (Coverity). Also move local var
2638 declarations into block where they are used.
2640 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
2641 should) be freed after call to readline (Coverity). Also move
2642 local var declarations into block where they are used.
2644 2007-07-03 Andreas Schwab <schwab@suse.de>
2646 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
2649 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
2650 Thiago Bauermann <bauerman@br.ibm.com>
2651 Joseph S. Myers <joseph@codesourcery.com>
2652 Daniel Jacobowitz <dan@codesourcery.com>
2654 * remote.c (remote_check_symbols): Use
2655 gdbarch_convert_from_func_ptr_addr.
2656 * infcall.c (find_function_addr): Handle function descriptors
2657 without debugging information.
2658 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
2659 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
2660 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
2661 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
2662 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
2663 allow SEC_CODE and SEC_DATA.
2664 (enable_break): Update calls. Pass current_target to solib_add.
2665 Use gdbarch_convert_from_func_ptr_addr.
2667 2007-07-03 Ilko Iliev <iliev@ronetix.at>
2668 Daniel Jacobowitz <dan@codesourcery.com>
2670 * symfile.c (print_transfer_performance): Avoid integer overflow.
2673 2007-07-03 Markus Deuling <deuling@de.ibm.com>
2675 * cp-namespace.c (lookup_symbol_file): Add block to
2676 lookup_symbol_global call.
2677 * Makefile.in (solist_h): Add dependency on symtab header.
2678 (symtab.o): Add dependency on solist header.
2679 * solib.c (solib_global_lookup): New function.
2680 * solib-svr4.c (scan_dyntag): Likewise.
2681 (elf_locate_base): Call helper routine scan_dyntag.
2682 (elf_lookup_lib_symbol): New function.
2683 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
2684 * solist.h (symtab.h): New include.
2685 (struct target_so_ops): New member lookup_lib_global_symbol.
2686 (solib_global_lookup): New prototype.
2687 * symtab.c: New include solist.h.
2688 (lookup_objfile_from_block): New function.
2689 (lookup_global_symbol_from_objfile): New function.
2690 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
2691 (lookup_symbol_global): Call library-specific lookup procedure.
2692 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
2694 * NEWS: Document framework.
2696 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2698 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
2701 * cli/cli-script.c (build_command_line): Update NULL check.
2703 2007-07-02 Michael Snyder <msnyder@access-company.com>
2705 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
2707 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2709 * Makefile.in (XMLFILES): Add library-list.dtd.
2710 (ALLDEPFILES): Add solib-target.o.
2711 (solib-target.o): New rule.
2712 * remote.c (PACKET_qXfer_libraries): New constant.
2713 (remote_protocol_features): Add qXfer:libraries:read.
2714 (remote_wait): Recognize library stop replies.
2715 (remote_async_wait): Likewise. Fix typo.
2716 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2717 (init_remote_async_ops): Fix typo.
2718 (_initialize_remote): Register "set remote library-info-packet".
2719 * solib-som.c (som_current_sos): Set addr_low and addr_high.
2720 * solib-target.c: New file.
2721 * solib.c (solib_map_sections): Use addr_low and addr_high instead
2723 (info_sharedlibrary_command): Likewise.
2724 (solib_add_library, solib_remove_library): New.
2725 * solist.h (struct so_list): Replace textsection with addr_low and
2727 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
2728 * NEWS: Describe new qXfer:libraries:read and shared library
2730 * features/library-list.dtd: New.
2732 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2734 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
2735 (start_remote): Use STOP_QUIETLY_REMOTE.
2736 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2737 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2738 Update to match shared library event breakpoint support. Only
2739 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2740 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2741 * fork-child.c (startup_inferior): Do not set
2742 inferior_ignoring_startup_exec_events
2743 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2745 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2747 2007-07-02 Markus Deuling <deuling@de.ibm.com>
2749 * breakpoint.c (insert_bp_location): Remove dead code
2750 (DISABLE_UNSETTABLE_BREAK).
2751 (disable_breakpoints_in_shlibs)
2752 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2754 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2756 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2757 Call insert_bp_location.
2759 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2761 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2764 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2766 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2769 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2771 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2772 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2773 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2774 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2775 to display_gdb_prompt.
2777 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2780 * target.c (memory_xfer_partial): Do not continue past targets with
2783 2007-06-30 Andreas Schwab <schwab@suse.de>
2785 * m68k-tdep.c (m68k_ps_type): New.
2786 (m68k_init_types): New.
2787 (m68k_register_type): Use m68k_ps_type for PS register.
2788 (_initialize_m68k_tdep): Call m68k_init_types.
2790 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2791 from the generic m68k arch.
2793 2007-06-28 Michael Snyder <msnyder@access-company.com>
2795 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2798 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2799 gdb_assert before using return value of find_thread_pid (Coverity).
2801 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2803 * cli/cli-script.c (build_command_line): Add null pointer guard
2806 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2808 * linux-thread-db.c (thread_db_attach): Delete.
2809 (thread_db_detach): Typo fix. Call target_mourn_inferior
2810 instead of fixing up proc_handle.
2811 (have_threads_callback, have_threads): New functions.
2812 (thread_db_wait): Remove dead proc_handle.pid check. Only
2813 translate PTIDs if we have registered threads. Check for new
2814 threads if we have none.
2815 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2816 (find_new_threads_callback): Only enable event reporting if TID == 0.
2817 (same_ptid_callback): New.
2818 (thread_db_get_thread_local_address): Check for new threads.
2819 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2820 or to_post_startup_inferior.
2822 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2824 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2825 is always active if SOFTWARE_SINGLE_STEP_P is true.
2826 (resume): Use gdbarch_software_single_step[_p] instead of
2827 SOFTWARE_SINGLE_STEP[_P].
2828 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2830 * gdbarch.sh (software_single_step): Remove target macro.
2831 * gdbarch.h, gdbarch.c: Regenerate.
2833 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2835 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2836 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2837 (struct gdbarch_swap, struct gdbarch_swap_registration,
2838 struct gdbarch_swap_registry, gdbarch_swap_registry,
2839 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2840 current_gdbarch_swap_in_hack): Remove.
2841 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2842 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2843 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2844 (deprecated_current_gdbarch_select_hack): Likewise.
2845 * gdbarch.h, gdbarch.c: Regenerate.
2847 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2849 * infrun.c (clear_proceed_status): Clean up stop_registers.
2850 (normal_stop): Allocate regcache for stop_registers.
2851 (struct inferior_status): Remove stop_registers member.
2852 (save_inferior_status): Do not save stop_registers.
2853 (restore_inferior_status): Do not restore stop_registers.
2854 (discard_inferior_status): Do not discard stop_registers.
2855 (build_infrun): Remove.
2856 (_initialize_infrun): Do not swap stop_registers.
2858 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2860 * remote.c (remote_address_masked): If remote_address_size is zero,
2861 default to target address size.
2862 (build_remote_gdbarch_data): Remove.
2863 (_initialize_remote): Do not swap remote_address_size.
2865 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2867 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2868 builtin_type_char, builtin_type_short, builtin_type_int,
2869 builtin_type_long, builtin_type_signed_char,
2870 builtin_type_unsigned_char, builtin_type_unsigned_short,
2871 builtin_type_unsigned_int, builtin_type_unsigned_long,
2872 builtin_type_float, builtin_type_double, builtin_type_long_double,
2873 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2874 builtin_type_bool, builtin_type_long_long,
2875 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2876 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2877 variable declaration with compatibility macro.
2878 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2879 builtin_type_char, builtin_type_short, builtin_type_int,
2880 builtin_type_long, builtin_type_signed_char,
2881 builtin_type_unsigned_char, builtin_type_unsigned_short,
2882 builtin_type_unsigned_int, builtin_type_unsigned_long,
2883 builtin_type_float, builtin_type_double, builtin_type_long_double,
2884 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2885 builtin_type_bool, builtin_type_long_long,
2886 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2887 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2888 (build_gdbtypes): Remove.
2889 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2890 opaque-type-resolution command here. Do not call
2891 deprecated_register_gdbarch_swap.
2893 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2895 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2896 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2897 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2899 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2900 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2901 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2902 (build_parse): Remove.
2903 (_initialize_parse): Do not call build_parse. Do not register
2904 msym_ types for gdbarch-swapping.
2906 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2907 instead of creating private type.
2909 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2910 (_initialize_xcoffread): Do not initialized them.
2911 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2913 * mdebugread.c (nodebug_func_symbol_type): Remove.
2914 (nodebug_var_symbol_type): Remove.
2915 (_initialize_mdebugread): Do not initialize them.
2916 (parse_symbol): Use builtin nodebug_ type instead of them.
2917 (parse_procedure): Likewise.
2919 2007-06-21 Chris Dearman <chris@mips.com>
2921 * printcmd.c (do_one_display): If display/i, start with an initial
2922 line feed to avoid bad layout if there is a branch delay slot.
2924 2007-06-21 Nigel Stephens <nigel@mips.com>
2925 Maciej W. Rozycki <macro@mips.com>
2927 * disasm.c (gdb_print_insn): Return the number of branch delay
2928 slot instructions too.
2929 * disasm.h (gdb_print_insn): Update prototype.
2930 * printcmd.c (branch_delay_insns): New variable to record the
2931 number of delay slot instructions after disassembling a branch.
2932 (print_formatted): Record the number of branch delay slot
2934 (do_examine): When disassembling, if the last instruction
2935 disassembled has any branch delay slots, then bump the count so
2936 that they get disassembled too.
2937 * tui/tui-disasm.c (tui_disassemble): Update the call to
2939 * NEWS: Document the new behaviour.
2941 2007-06-21 Andreas Schwab <schwab@suse.de>
2943 * regcache.c (write_pc_pid): Restore missing else.
2945 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2947 * regcache.c (regcache_print): Use get_current_regcache ()
2948 instead of current_regcache.
2950 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2953 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2954 instead of bfd_make_section_anyway.
2955 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2956 when clearing SEC_LOAD.
2958 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2960 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2961 registers for big-endian.
2963 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2965 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2966 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2967 * gdbarch.c, gdbarch.h: Regenerate.
2969 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2971 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2972 gdbarch_believe_pcc_promotion.
2973 * stabsread.c (define_symbol): Likewise.
2974 Remove unnecessary definition.
2975 * coffread.c (process_coff_symbol): Remove unnecessary code.
2976 * gdbarch.c, gdbarch.h: Regenerate.
2978 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2980 * configure.ac: Do not use ${objdir}.
2981 * configure: Regenerated.
2983 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2985 * gdbarch.sh (deprecated_register_size): Remove.
2986 * gdbarch.h, gdbarch.c: Regenerate.
2988 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2989 by INT_REGISTER_SIZE.
2990 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2991 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2992 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2993 set_gdbarch_deprecated_register_size.
2995 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2997 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2998 gdbarch_deprecated_fp_regnum.
2999 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3000 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
3001 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
3002 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
3004 * gdbarch.c, gdbarch.h: Regenerate.
3006 2007-06-18 Markus Deuling <deuling@de.ibm.com>
3008 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
3009 gdbarch_extract_return_value.
3010 * value.c (generic_use_struct_convention): Likewise (comment).
3011 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
3012 * arch-utils.c (legacy_return_value): Likewise.
3013 * arch-utils.h (legacy_return_value): Likewise (comment).
3014 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
3015 gdbarch_store_return_value.
3016 * stack.c (return_command): Likewise (comment).
3017 * arch-utils.h (legacy_return_value): Likewise (comment).
3018 * arch-utils.c (legacy_return_value): Likewise.
3019 * gdbarch.c, gdbarch.h: Regenerate.
3021 2007-06-18 Markus Deuling <deuling@de.ibm.com>
3023 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
3024 gdbarch_deprecated_use_struct_convention.
3025 * arch-utils.c (legacy_return_value): Likewise.
3026 * gdbarch.c, gdbarch.h: Regenerate.
3028 2007-06-18 Markus Deuling <deuling@de.ibm.com>
3030 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
3031 gdbarch_deprecated_function_start_offset.
3032 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
3033 * linespec.c (minsym_found): Likewise.
3034 * infrun.c (handle_inferior_event): Likewise.
3035 * infcall.c (find_function_addr): Likewise.
3036 * cli/cli-cmds.c (disassemble_command): Likewise.
3037 * gdbarch.c, gdbarch.h: Regenerate.
3039 2007-06-18 Markus Deuling <deuling@de.ibm.com>
3041 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
3042 gdbarch_deprecated_reg_struct_has_addr.
3043 * infcall.c (call_function_by_hand): Likewise.
3044 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
3045 * gdbarch_deprecated_reg_struct_has_addr_p.
3046 * infcall.c (call_function_by_hand): Likewise.
3047 * gdbarch.c, gdbarch.h: Regenerate.
3049 2007-06-18 Markus Deuling <deuling@de.ibm.com>
3051 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3052 * sh-tdep.c (sh_extract_struct_value_address): Remove.
3053 (sh_gdbarch_init): Remove
3054 set_gdbarch_deprecated_extract_struct_value_address.
3055 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
3056 (sh64_gdbarch_init): Remove
3057 set_gdbarch_deprecated_extract_struct_value_address.
3058 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
3059 (ia64_gdbarch_init): Remove
3060 set_gdbarch_deprecated_extract_struct_value_address.
3061 * frv-tdep.c (frv_extract_struct_value_address): Remove.
3062 (frv_gdbarch_init): Remove
3063 set_gdbarch_deprecated_extract_struct_value_address.
3064 * gdbarch.c, gdbarch.h: Regenerate.
3066 2007-06-18 Markus Deuling <deuling@de.ibm.com>
3068 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
3069 * v850-tdep.c (v850_unwind_sp): Likewise.
3070 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
3071 * stack.c (frame_info): Likewise.
3072 * stabsread.c (define_symbol): Likewise.
3073 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
3074 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
3075 (sh_unwind_sp): Likewise.
3076 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
3077 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
3078 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
3079 (rs6000_frame_cache): Likewise.
3080 * rs6000-nat.c (store_register): Likewise.
3081 * remote-mips.c (mips_wait): Likewise.
3082 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3083 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3084 (ppc64_sysv_abi_push_dummy_call): Likewise.
3085 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
3086 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
3087 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
3088 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
3089 * m32r-rom.c (m32r_supply_register): Likewise.
3090 * frame.c (frame_sp_unwind): Likewise.
3091 * mips-tdep.c (mips_insn16_frame_cache)
3092 (mips_insn32_frame_cache): Likewise (comment).
3093 * m68klinux-nat.c (supply_gregset): Likewise.
3094 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3095 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
3096 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3097 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
3098 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
3099 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
3100 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
3101 (cris_register_type, crisv32_register_type)
3102 (cris_dwarf2_frame_init_reg): Likewise.
3103 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
3104 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
3105 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
3106 * libunwind-frame.c (libunwind_frame_cache): Likewise.
3108 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
3109 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
3110 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
3111 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
3112 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
3113 * v850-tdep.c (v850_unwind_pc): Likewise.
3114 * stack.c (frame_info): Likewise.
3115 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
3116 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
3117 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
3118 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
3119 (sh_dsp_show_regs): Likewise.
3120 * shnbsd-tdep.c (shnbsd_supply_gregset)
3121 (shnbsd_collect_gregset): Likewise.
3122 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
3123 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
3124 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
3125 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
3126 (6000_register_reggroup_p, rs6000_unwind_pc)
3127 (rs6000_frame_cache): Likewise.
3128 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
3129 (rs6000_store_inferior_registers): Likewise.
3130 * remote-mips.c (mips_wait, mips_load): Likewise.
3131 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3132 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
3133 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
3134 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
3135 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
3136 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
3137 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
3138 (store_ppc_registers, fill_gregset): Likewise.
3139 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
3140 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
3141 * mipsnbsd-nat.c (getregs_supplies): Likewise.
3142 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
3143 * m68klinux-nat.c (supply_gregset): Likewise.
3144 * irix5-nat.c (fill_gregset): Likewise.
3145 * i386-tdep.c (i386_unwind_pc): Likewise.
3146 * i386-linux-nat.c (i386_linux_resume): Likewise.
3147 * frame.c (get_prev_frame_1): Likewise.
3148 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
3149 * dbug-rom.c (dbug_supply_register): Likewise.
3150 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
3151 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
3152 (cris_register_type, crisv32_register_type, crisv32_register_name)
3153 (cris_dwarf2_frame_init_reg, find_step_target)
3154 (cris_software_single_step, cris_supply_gregset)
3155 (cris_regnums): Likewise.
3156 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3157 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3158 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
3159 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
3160 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
3162 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
3163 * dbug-rom.c (dbug_supply_register): Likewise.
3164 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
3165 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
3166 * win32-nat.c (win32_resume): Likewise.
3167 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
3168 * m68k-tdep.c (m68k_register_type): Likewise.
3169 * m68klinux-nat.c (supply_gregset): Likewise.
3171 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
3172 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
3173 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
3174 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
3175 (fv_reg_base_num, dr_reg_base_num): Likewise.
3176 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
3177 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
3178 (sh64_extract_return_value, sh64_store_return_value)
3179 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
3180 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
3181 * procfs.c (procfs_fetch_registers, procfs_store_registers)
3182 (invalidate_cache): Likewise.
3183 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
3184 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
3185 (mipsnbsd_fill_fpreg): Likewise.
3186 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
3187 (mipsnbsd_store_inferior_registers): Likewise.
3188 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
3189 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
3190 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
3191 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
3192 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
3193 (fill_fpregset): Likewise.
3194 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
3195 * i386-tdep.h (struct_return): Likewise (comment).
3196 * i386-nto-tdep.c (i386nto_register_area): Likewise.
3197 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
3198 (go32_store_registers): Likewise.
3199 * alpha-tdep.c (alpha_next_pc): Likewise.
3200 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3201 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
3202 (alphabsd_store_inferior_registers): Likewise.
3203 * core-regset.c (fetch_core_registers): Likewise.
3204 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
3206 * gdbarch.c, gdbarch.h: Regenerate.
3208 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
3210 * coffread.c (coff_sym_fns): Add default_symfile_segments.
3211 * dbxread.c (start_psymtab): Check HAVE_ELF.
3212 (aout_sym_fns): Likewise.
3213 * elfread.c (elf_symfile_segments): New.
3214 (elf_sym_fns): Add elf_symfile_segments.
3215 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
3216 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
3217 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
3218 * somread.c (som_sym_fns): Use default_symfile_segments.
3219 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
3220 (init_objfile_sect_indices): Call symfile_find_segment_sections.
3221 (default_symfile_segments): New function.
3222 (syms_from_objfile): Update call to find_sym_fns.
3223 (symfile_get_segment_data, free_symfile_segment_data): New.
3224 (symfile_map_offsets_to_segments): New.
3225 (symfile_find_segment_sections): New.
3226 * symfile.h (struct symfile_segment_data): New.
3227 (struct sym_fns): Add sym_segments.
3228 (default_symfile_segments, symfile_get_segment_data)
3229 (free_symfile_segment_data): New prototypes.
3230 (symfile_map_offsets_to_segments): Likewise.
3231 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
3232 * Makefile.in (COMMON_OBS): Remove elfread.o.
3233 (elf_internal_h): New.
3234 (elfread.o): Update.
3235 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
3237 * config.in, configure: Regenerated.
3238 * NEWS: Mention qOffsets changes.
3240 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3242 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
3243 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
3244 Replace global variable declaration with compatibility macro.
3245 (struct builtin_m2_type): New data type.
3246 (builtin_m2_type): Add prototype.
3247 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
3248 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
3249 Remove global variables.
3250 (m2_language_arch_info): Use builtin_m2_type instead of variables.
3251 (build_m2_types): New function.
3252 (m2_type_data): New variable.
3253 (builtin_m2_type): New function.
3254 (_initialize_m2_language): Do not build data types. Register
3255 m2_type_data per-gdbarch data.
3257 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3259 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
3260 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
3261 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
3262 builtin_type_f_real_s8, builtin_type_f_real_s16,
3263 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
3264 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
3265 variable declaration with compatibility macro.
3266 (struct builtin_f_type): New data type.
3267 (builtin_f_type): Add prototype.
3268 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
3269 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
3270 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
3271 builtin_type_f_real_s8, builtin_type_f_real_s16,
3272 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
3273 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
3274 (f_language_arch_info): Use builtin_f_type instead of variables.
3275 (build_fortran_types): Build builtin_f_type structure instead of
3276 setting global type variables.
3277 (f_type_data): New variable.
3278 (builtin_f_type): New function.
3279 (_initialize_f_language): Do not call build_fortran_types. Do not
3280 swap global type variables. Register f_type_data per-gdbarch data.
3282 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3284 * f-lang.c (_initialize_f_language): Do not initialize or
3285 swap builtin_type_string.
3287 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3289 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
3290 value_of_builtin_frame_reg): Remove.
3291 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
3292 inactive call to value_of_builtin_frame_reg.
3294 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3296 * gdbarch.sh (bfd_vma_bit): Remove.
3297 * gdbarch.c, gdbarch.h: Regenerate.
3299 * gdbtypes.h (builtin_bfd_vma_type): Remove.
3300 * gdbtypes.h (builtin_bfd_vma_type): Remove.
3301 (build_gdbtypes): Do not initialize it.
3302 (_initialize_gdbtypes): Do not swap it.
3304 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3306 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
3307 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
3308 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
3309 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
3310 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
3311 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
3312 builtin_type_vec64, builtin_type_vec128): Remove.
3313 (init_simd_type): Remove.
3314 (init_vector_type): Make global.
3315 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
3316 (build_gdbtypes): Do not build vector types.
3317 (_initialize_gdbtypes): Do not swap vector types.
3318 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
3319 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
3320 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
3321 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
3322 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
3323 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
3324 builtin_type_vec64, builtin_type_vec128): Remove declarations.
3325 (init_vector_type): Add prototype.
3327 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
3328 i386_sse_type members.
3329 (i386_mmx_type, i386_sse_type): Change from variables to functions.
3330 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
3331 (i386_init_types): Do not build vector types.
3332 (i386_mmx_type, i386_sse_type): New functions.
3333 (i386_register_type): Call them instead of using global variables.
3334 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
3335 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
3336 of using global variable.
3338 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
3339 and ppc_builtin_type_vec128 members.
3340 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
3341 (rs6000_builtin_type_vec128): Likewise.
3342 (rs6000_register_type): Call them instead of using builtin_type_vec64
3343 and builtin_type_vec128.
3344 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
3346 * spu-tdep.c (struct gdbarch_tdep): New data type.
3347 (spu_builtin_type_vec128): Remove variable.
3348 (spu_builtin_type_vec128): New function.
3349 (spu_register_type): Call it instead of using global variable.
3350 (spu_gdbarch_init): Allocate tdep structure.
3351 (spu_init_vector_type): Remove function.
3352 (_initialize_spu_tdep): Do not call it.
3354 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3356 * amd64-tdep.c (struct amd64_register_info): Remove.
3357 (amd64_register_info): Remove.
3358 (amd64_register_names): New static variable.
3359 (AMD64_NUM_REGS): Use amd64_register_names instead of
3360 amd64_register_info.
3361 (amd64_register_name): Likewise.
3362 (amd64_register_type): Do not refer to amd64_register_info.
3364 * s390-tdep.c (struct s390_register_info): Remove.
3365 (s390_register_info): Remove.
3366 (s390_register_name): Do not refer to s390_register_info.
3367 (s390_register_type): Likewise.
3369 * sparc64-tdep.c (struct sparc64_register_info): Remove.
3370 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
3371 (sparc64_register_names, sparc64_pseudo_register_names): New.
3372 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
3373 sparc64_register_names and sparc64_pseudo_register_names instead of
3374 sparc64_register_info and sparc64_pseudo_register_info.
3375 (sparc64_register_name): Likewise.
3376 (sparc64_register_type): Do not refer to sparc64_register_info
3377 and sparc64_pseudo_register_info.
3379 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3381 * c-lang.c (cplus_builtin_types): Remove.
3382 (enum cplus_primitive_types): New data type.
3383 (cplus_language_arch_info): New function.
3384 (cplus_language_defn): Set la_language_arch_info member. Do not set
3385 la_builtin_type_vector and string_char_type members.
3387 * f-lang.c (f_builtin_types): Remove.
3388 (enum f_primitive_types): New data type.
3389 (f_language_arch_info): New function.
3390 (f_language_de): Set la_language_arch_info member. Do not set
3391 la_builtin_type_vector and string_char_type members.
3393 * m2-lang.c (m2_builtin_types): Remove.
3394 (enum m2_primitive_types): New data type.
3395 (m2_language_arch_info): New function.
3396 (m2_language_defn): Set la_language_arch_info member. Do not set
3397 la_builtin_type_vector and string_char_type members.
3399 * objc-lang.c (objc_builtin_types): Remove.
3400 (objc_language): Set la_language_arch_info member. Do not set
3401 la_builtin_type_vector and string_char_type members.
3403 * p-lang.c (pascal_builtin_types): Remove.
3404 (enum pascal_primitive_types): New data type.
3405 (pascal_language_arch_info): New function.
3406 (pascal_language_defn): Set la_language_arch_info member. Do not set
3407 la_builtin_type_vector and string_char_type members.
3409 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3411 * regcache.c (struct regcache): Add ptid_t member.
3412 (regcache_xmalloc): Initialize it.
3413 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
3414 (regcache_dup): Likewise.
3415 (regcache_dup_no_passthrough): Likewise.
3416 (current_regcache): Make static.
3417 (registers_ptid): Remove variable.
3418 (get_thread_regcache): New function.
3419 (get_current_regcache): New function.
3420 (registers_changed): Implement by freeing current regcache.
3421 (regcache_raw_read): Do not refer to current_regcache. Set
3422 inferior_ptid to regcache->ptid while calling target routines.
3423 (regcache_raw_write): Likewise.
3424 (regcache_raw_supply): Do not refer to current_regcache.
3425 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
3426 (write_pc_pid): Likewise.
3427 (build_regcache): Remove.
3428 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
3429 or deprecated_register_gdbarch_swap. Do not initialize
3431 * regcache.h (get_current_regcache): Add prototype.
3432 (get_thread_regcache): Likewise.
3433 (current_regcache): Remove declaration.
3435 * corelow.c (core_open): Replace current_regcache by
3436 get_current_regcache ().
3437 * frame.c (frame_pop): Likewise.
3438 (put_frame_register): Likewise.
3439 (get_current_frame, create_new_frame): Likewise.
3440 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
3441 * stack.c (return_command): Likewise.
3442 * infcall.c (call_function_by_hand): Likewise.
3443 * infrun.c (resume): Likewise.
3444 (save_inferior_status, restore_inferior_status): Likewise.
3445 * linux-fork.c (fork_load_infrun_state): Likewise.
3446 (fork_save_infrun_state): Likewise.
3447 * win32-nat.c (win32_resume): Likewise.
3448 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
3449 * monitor.c (monitor_wait): Likewise.
3450 * remote.c (remote_wait): Likewise.
3451 * remote-mips.c (mips_wait): Likewise.
3453 * bsd-kvm.c (bsd_kvm_open): Likewise
3454 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
3455 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
3456 * i386-linux-nat.c (i386_linux_resume): Likewise.
3457 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
3458 (ia64_linux_stopped_data_address): Likewise.
3460 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
3461 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3462 * mep-tdep.c (current_me_module, current_options): Likewise.
3463 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
3465 * linux-nat.c (linux_nat_do_thread_registers): Use thread
3466 regcache instead of current_regcache. Call target_fetch_registers.
3467 (linux_nat_corefile_thread_callback): Update call site.
3468 (linux_nat_do_registers): Likewise.
3469 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
3470 of current_regcache.
3471 (procfs_make_note_section): Likewise.
3472 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
3473 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3474 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
3475 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3477 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3479 * regcache.c (read_register, read_register_pid): Remove.
3480 (write_register, write_register_pid): Likewise.
3481 * regcache.h (read_register, read_register_pid): Remove prototype.
3482 (write_register, write_register_pid): Likewise.
3484 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3486 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
3487 (write_pc): Likewise. Remove default implementation, add predicate.
3488 * gdbarch.c, gdbarch.h: Regenerate.
3489 * regcache.c (read_pc_pid): Use current regcache instead of calling
3491 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
3493 (generic_target_write_pc): Remove.
3494 * inferior.h (generic_target_write_pc): Remove.
3495 * frv-tdep.c (frv_gdbarch_init): Do not install it.
3496 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3497 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3498 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3499 * sh-tdep.c (sh_gdbarch_init): Likewise.
3500 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3502 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
3503 argument. Use REGCACHE instead of calling read_register_pid.
3504 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
3505 * hppa-tdep.c (hppa_read_pc): Likewise.
3506 * hppa-tdep.h (hppa_read_pc): Likewise.
3507 * ia64-tdep.c (ia64_read_pc): Likewise.
3508 * m32r-tdep.c (m32r_read_pc): Likewise.
3509 * mep-tdep.c (mep_read_pc): Likewise.
3510 * mn10300-tdep.c (mn10300_read_pc): Likewise.
3511 * spu-tdep.c (spu_read_pc): Likewise.
3513 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
3514 argument. Use REGCACHE instead of calling write_register_pid.
3515 * avr-tdep.c (avr_write_pc): Likewise.
3516 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
3517 * hppa-tdep.c (hppa_write_pc): Likewise.
3518 * hppa-tdep.h (hppa_write_pc): Likewise.
3519 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
3520 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
3521 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
3522 * ia64-tdep.c (ia64_write_pc): Likewise.
3523 * ia64-tdep.h (ia64_write_pc): Likewise.
3524 * m32r-tdep.c (m32r_write_pc): Likewise.
3525 * m88k-tdep.c (m88k_write_pc): Likewise.
3526 * mep-tdep.c (mep_write_pc): Likewise.
3527 * mips-tdep.c (mips_write_pc): Likewise.
3528 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
3529 * mn10300-tdep.c (mn10300_write_pc): Likewise.
3530 * sparc-tdep.c (sparc_write_pc): Likewise.
3531 * spu-tdep.c (spu_write_pc): Likewise.
3533 * mips-tdep.c (read_signed_register): Remove.
3534 (read_signed_register_pid): Likewise.
3535 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
3536 Use REGCACHE instead of calling read_signed_register_pid.
3538 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3540 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
3541 * gdbarch.c, gdbarch.h: Regenerate.
3542 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
3543 (push_dummy_code): Likewise. Pass it to callee.
3544 (call_function_by_hand): Pass current regcache to push_dummy_code.
3546 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
3547 argument. Use it instead of current_regcache.
3549 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
3550 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
3552 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3554 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
3555 * gdbarch.c, gdbarch.h: Regenerate.
3556 * infrun.c (handle_inferior_event): Pass current frame to
3557 gdbarch_get_longjmp_target.
3559 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
3560 Read registers from FRAME instead of using read_register.
3561 Use get_frame_arch instead of current_gdbarch.
3562 * arm-tdep.c (arm_get_longjmp_target): Likewise.
3563 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3564 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3565 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
3566 (mips64_linux_get_longjmp_target): Likewise.
3567 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3569 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3571 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
3572 * gdbarch.c, gdbarch.h: Regenerate.
3573 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
3574 * arch-utils.h (generic_skip_trampoline_code): Likewise.
3575 * infrun.c (handle_inferior_event): Pass current frame to
3576 gdbarch_skip_trampoline_code and skip_language_trampoline.
3578 * language.c (unk_lang_trampoline): Add FRAME argument.
3579 (skip_language_trampoline): Add FRAME argument. Pass it to
3580 skip_trampoline callback.
3581 * language.h: Add forward declaration of struct frame_info.
3582 (struct language_defn): Add FRAME argument to skip_trampoline.
3583 (skip_language_trampoline): Add FRAME argument.
3584 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
3585 to skip_trampoline callback.
3586 * cp-abi.h: Add forward declaration of struct frame_info.
3587 (cplus_skip_trampoline): Add FRAME argument.
3588 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
3589 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
3590 to gdbarch_skip_trampoline_code.
3591 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
3592 to gdbarch_skip_trampoline_code.
3594 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
3595 * symtab.h (find_solib_trampoline_target): Likewise.
3596 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
3597 find_solib_trampoline_target.
3599 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
3600 from FRAME instead of calling read_register.
3602 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
3603 argument. Read registers from FRAME instead of using read_register.
3604 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
3605 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
3607 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
3610 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
3612 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
3613 registers from FRAME instead of using read_signed_register.
3615 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
3617 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
3618 instead of using read_register.
3619 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
3620 ppc64_standard_linkage_target.
3621 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
3622 Pass it to find_solib_trampoline_target. Read registers from FRAME
3623 instead of using read_register.
3625 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
3628 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3630 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
3632 * gdbarch.c, gdbarch.h: Regenerate.
3633 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
3635 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
3636 registers from FRAME instead of using read_register.
3637 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3638 to alpha_next_pc. Use get_frame_pc instead of read_pc.
3639 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
3642 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
3643 from FRAME instead of using read_register.
3644 (thumb_get_next_pc): Likewise.
3645 (arm_get_next_pc): Likewise.
3646 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3647 to arm_get_next_pc. Use get_frame_pc instead of read_register.
3648 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
3651 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
3652 from FRAME instead of using read_register.
3653 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3654 to find_step_target.
3656 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
3657 from FRAME instead of using read_register / read_signed_register.
3658 (extended_mips16_next_pc): Likewise.
3659 (mips16_next_pc): Likewise.
3660 (mips_next_pc): Likewise.
3661 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3662 to mips_next_pc. Use get_frame_pc instead of read_pc.
3663 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
3666 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
3667 of current frame. Read registers from FRAME.
3668 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
3669 branch_dest. Use get_frame_pc instead of read_pc.
3670 (rs6000_software_single_step): Likewise.
3671 (bl_to_blrl_insn_p): Do not call branch_dest.
3672 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
3675 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
3676 Read registers from FRAME instead of current regcache.
3677 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
3678 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
3679 * sparc-tdep.c (sparc_address_from_register): Remove.
3680 (sparc_analyze_control_transfer): Pass FRAME argument instead of
3681 GDBARCH. Pass FRAME to step_trap callback.
3682 (sparc_step_trap): Add FRAME argument.
3683 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3684 to sparc_analyze_control_transfer. Read registers from FRAME instead
3685 of calling sparc_address_from_register.
3686 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
3688 (sparc_address_from_register): Remove prototype.
3689 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
3690 (sparcnbsd_step_trap): Add FRAME argument.
3692 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
3693 by FRAME. Read registers from FRAME instead of REGCACHE.
3695 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3697 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
3698 instead of calling read_register.
3700 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
3701 calling write_register.
3703 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
3704 calling write_register.
3706 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
3707 instead of calling read_register.
3708 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
3709 instead of calling read_register and write_register.
3711 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
3712 instead of current_regcache.
3714 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
3715 of calling write_register.
3716 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
3717 parameter instead of current_regcache.
3719 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
3720 instead of calling read_register.
3721 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
3722 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
3723 (mips_n32n64_push_dummy_call): Likewise.
3724 (mips_o32_push_dummy_call): Likewise.
3725 (mips_o64_push_dummy_call): Likewise.
3727 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
3728 parameter instead of current_regcache.
3730 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
3731 Use it instead of read_register and write_register.
3732 (xtensa_register_read_masked): Likewise.
3733 (xtensa_pseudo_register_read): Update call.
3734 (xtensa_pseudo_register_write): Likewise.
3735 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
3736 instead of calling read_register.
3737 (xtensa_push_dummy_call): Update comment.
3739 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3741 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3742 by frame_unwind_register_signed calls.
3743 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3744 frame allocations when called with NULL NEXT_FRAME parameter.
3745 (read_next_frame_reg): Remove.
3747 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3748 instead of reading the FPSCR register.
3749 (sh_frame_cache): Pass unwound FPSCR register value to
3750 sh_analyze_prologue.
3751 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3753 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3754 instead of reading the CTBP register.
3755 (v850_frame_cache): Pass unwound CTBP register value to
3756 v850_analyze_prologue.
3758 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3760 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3761 * sh-tdep.c (sh_show_regs): Likewise.
3762 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3763 (sh_generic_show_regs): Add FRAME parameter. Use register
3764 values from that frame instead of calling read_register.
3765 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3766 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3767 sh_dsp_show_regs): Likewise.
3768 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3769 sh64_show_regs): Likewise.
3771 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3773 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3774 current regcache instead of calling read_register.
3776 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3778 * mep-tdep.c (current_me_module): Read from current regcache
3779 instead of calling read_register.
3780 (current_options): Likewise.
3782 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3784 * cris-tdep.c (cris_stopped_data_address): Read register values
3785 from current frame instead of calling read_register.
3786 * frv-tdep.c (frv_stopped_data_address): Likewise.
3788 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3790 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3791 instead of write_register (PC_REGNUM, ...).
3793 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3795 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3796 explaining why the PC adjustment code is necessary.
3798 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3800 * m68k-tdep.h (enum m68k_flavour): New.
3801 (struct gdbarch_tdep): New fields
3802 float_return, flavour and fpregs_present.
3803 * m68k-tdep.c (m68k_register_type): Use
3804 fpregs_present and conditionalize floating
3805 registers type on flavour.
3806 (m68k_register_names): New.
3807 (m68k_register_name): Use the above.
3808 (m68k_convert_register_p): Consult fpregs_present.
3809 (m68k_register_to_value, m68k_value_to_register):
3810 Use register_type to obtain the type of floating
3812 (m68k_svr4_extract_return_value): Check tdep->float_return.
3813 Use register_type to get the type of floating
3815 (m68k_svr4_store_return_value): Likewise.
3816 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3817 (m68k_analyze_register_saves): Likewise.
3818 (m68k_gdbarch_init): Extract infromation
3819 from XML description, if present. Guess coldfire by
3820 looking at the file, if present. Conditionalize
3821 setting of long double format. Set decr_pc_after_break
3822 to 2 on coldfire and fido. Enable XML-driven
3823 register description.
3824 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3825 size of tdep->fpreg_type, as opposed to hardcoded value.
3826 * Makefile.in (m68k-tdep.o): Update dependencies.
3828 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3830 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3831 qXfer:spu:write remote packet types.
3833 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3835 * xml-tdesc.c (tdesc_start_target): New.
3836 (target_attributes): New.
3837 (tdesc_elements): Use it.
3838 * features/gdb-target.dtd: Add #FIXED version attribute for
3841 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3843 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3845 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3847 * fork-child.c (fork_inferior): Update comment.
3849 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3851 * features/Makefile: Generate regformats for mips-linux and
3853 * features/sort-regs.xsl: Correct typo.
3854 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3855 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3858 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3860 * config/mips/linux.mh (TDEP_XML): New.
3861 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3862 * mips-linux-nat.c (mips_linux_register_addr): Handle
3863 MIPS_RESTART_REGNUM.
3864 (mips64_linux_register_addr): Likewise.
3865 (super_xfer_partial, mips_linux_xfer_partial): New.
3866 (_initialize_mips_linux_nat): Add them to the target_ops.
3867 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3868 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3869 (mips_linux_o32_sigframe_init)
3870 (mips_linux_n32n64_sigframe_init): Likewise.
3871 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3872 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3873 "org.gnu.gdb.mips.linux" feature.
3874 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3875 (mips_linux_restart_reg_p): New prototype.
3876 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3877 initialization routine.
3878 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3880 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3882 * Makefile.in (mips-tdep.o): Update.
3883 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3884 (mips_n32_n64_aliases, mips_register_aliases): New.
3885 (mips_register_name): Call tdesc_register_name.
3886 (mips_tdesc_register_reggroup_p): New.
3887 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3888 (mips_gdbarch_init): Add target-described register support.
3889 Register aliases for register names.
3890 * target-descriptions.c (tdesc_register_name): Make global.
3891 (tdesc_register_in_reggroup_p): New function, broken out from
3892 tdesc_register_reggroup_p.
3893 (tdesc_register_reggroup_p): Use it.
3894 * target-descriptions.h (tdesc_register_name)
3895 (tdesc_register_in_reggroup_p): New prototypes.
3896 * NEWS: Correct formatting. Mention MIPS register support.
3897 * features/mips-cp0.xml, features/mips-fpu.xml,
3898 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3899 features/mips64-cpu.xml: New files.
3901 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3903 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3904 * valops.c (value_cast): Likewise.
3905 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3906 * ui-out.c (ui_out_field_core_addr): Likewise.
3907 * tracepoint.c (tracepoints_info): Likewise.
3908 * symtab.c (print_msymbol_info): Likewise.
3909 * solib-irix.c (irix_current_sos)
3910 (irix_open_symbol_file_object): Likewise.
3911 * remote.c (build_remote_gdbarch_data): Likewise.
3912 * prologue-value.c (make_pv_area): Likewise.
3913 * procfs.c (info_mappings_callback): Likewise.
3914 * printcmd.c (print_scalar_formatted)
3915 (deprecated_print_address_numeric): Likewise.
3916 * memattr.c (mem_info_command): Likewise.
3917 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3918 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3919 * exec.c (print_section_info): Likewise.
3920 * dwarf2read.c (read_subrange_type): Likewise.
3921 * dwarf2loc.c (find_location_expression): Likewise.
3922 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3923 (signed_address_type, execute_stack_op): Likewise.
3924 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3925 * gdbarch.c, gdbarch.h: Regenerate.
3927 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3929 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3930 * arch-utils.c (show_architecture): Likewise.
3931 * remote-mips.c (mips_open): Likewise
3932 * nto-tdep.c (nto_find_and_open_solib)
3933 (nto_init_solib_absolute_prefix): Likewise.
3934 * nto-procfs (procfs_open): Likewise.
3935 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3936 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3937 * gdbarch.c, gdbarch.h: Regenerate.
3939 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3941 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3942 * gdbtypes.c (build_flt): Likewise.
3943 * gdbarch.c, gdbarch.h: Regenerate.
3945 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3947 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3948 gdbarch_breakpoint_from_pc.
3949 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3950 * remote.c (remote_insert_breakpoint)
3951 (remote_insert_hw_breakpoint): Likewise.
3952 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3953 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3954 * breakpoint.h (bp_target_info): Likewise (comment).
3955 * breakpoint.c (read_memory_nobpt): Likewise.
3956 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3957 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3958 * gdbarch.c, gdbarch.h: Regenerate.
3960 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3962 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3963 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3964 * solib-pa64.c (read_dynamic_info): Likewise.
3965 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3966 * solib.c (info_sharedlibrary_command): Likewise.
3967 * s390-nat.c (SUBOFF): Likewise.
3968 * p-valprint.c (pascal_val_print): Likewise.
3969 * procfs.c (info_proc_mappings): Likewise.
3970 * printcmd.c (decode_format): Likewise.
3971 * nto-tdep.c (nto_truncate_ptr): Likewise.
3972 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3973 (mips64_linux_get_longjmp_target): Likewise.
3974 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3975 * jv-valprint.c (java_value_print): Likewise.
3976 * jv-lang.c (get_java_object_header_size): Likewise.
3977 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3978 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3979 (hppa_hpux_unwind_adjust_stub): Likewise.
3980 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3981 * gdbtypes.c (make_pointer_type, make_reference_type)
3982 (smash_to_memberptr_type): Likewise.
3983 * gdbarch.c, gdbarch.h: Regenerate.
3985 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3987 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3988 (print_gp_register_row): Stop before printing a register bigger
3989 than the ABI register size.
3990 (mips_print_registers_info): Update call to mips_print_register.
3992 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3994 * expression.h (enum exp_opcode): Document a register name for
3996 * parse.c (write_dollar_variable): Write the register name for
3998 (operator_length_standard): Expect the register name following
4000 * ada-lang.c (resolve_subexp): Likewise.
4001 * ax-gdb.c (gen_expr): Likewise.
4002 * eval.c (evaluate_subexp_standard): Likewise.
4003 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4005 * tracepoint.c (encode_actions): Likewise.
4007 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4009 * utils.c (set_screen_size): Use INT_MAX for default columns.
4011 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
4013 * remote.c (remote_protocol_features): Add qXfer:spu:read and
4014 qXfer:spu:write packet types.
4016 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4018 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
4019 * gdbarch.c, gdbarch.h: Regenerate.
4021 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4023 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
4024 gdbarch_stab_reg_to_regnum.
4025 * stabsread.c (define_symbol): Likewise.
4026 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
4027 gdbarch_ecoff_reg_to_regnum.
4028 * mdebugread.c (parse_symbol): Likewise.
4029 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
4030 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
4031 gdbarch_dwarf_reg_to_regnum.
4032 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
4033 * coffread.c (process_coff_symbol): Likewise.
4034 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
4035 gdbarch_dwarf2_reg_to_regnum.
4036 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
4037 (locexpr_describe_location): Likewise.
4038 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
4039 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
4040 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
4041 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
4042 * gdbarch.c, gdbarch.h: Regenerate.
4044 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4046 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
4047 gdbarch_smash_text_address.
4048 * somread.c (som_symtab_read): Likewise.
4049 * elfread.c (record_minimal_symbol): Likewise.
4050 * dbxread.c (process_one_symbol): Likewise.
4051 * coffread.c (coff_symtab_read): Likewise.
4052 * gdbarch.c, gdbarch.h: Regenerate.
4054 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4056 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
4057 * findvar.c (value_from_register): Likewise.
4058 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
4059 * valops.c (value_assign): Likewise.
4060 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
4061 gdbarch_convert_register_p.
4062 * findvar.c (value_from_register): Likewise.
4063 * valops.c (value_assign): Likewise.
4064 * gdbarch.c, gdbarch.h: Regenerate.
4066 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4068 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
4069 gdbarch_register_sim_regno.
4070 * sim-regno.h (sim_regno): Likewise (comment).
4071 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
4072 * gdbarch.c, gdbarch.h: Regenerate.
4074 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4076 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
4077 gdbarch_virtual_frame_pointer.
4078 * tracepoint.c (encode_actions): Likewise.
4079 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
4080 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
4081 * gdbarch.c, gdbarch.h: Regenerate.
4083 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4085 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
4086 * p-lang.c (pascal_create_fundamental_type): Likewise.
4087 * objc-lang.c (objc_create_fundamental_type): Likewise.
4088 * mdebugread.c (_initialize_mdebugread): Likewise.
4089 * m2-lang.c (m2_create_fundamental_type)
4090 (_initialize_m2_language): Likewise.
4091 * gdbtypes.c (build_gdbtypes): Likewise.
4092 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4093 * doublest.c (floatformat_from_length): Likewise.
4094 * c-lang.c (c_create_fundamental_type): Likewise.
4095 * ada-lang.c (ada_create_fundamental_type)
4096 (ada_language_arch_info): Likewise.
4097 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
4098 * value.c (unpack_double): Likewise (comment).
4099 * gdbtypes.c (build_gdbtypes): Likewise.
4100 * doublest.c (floatformat_from_length): Likewise.
4101 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
4102 * valarith.c (value_binop): Likewise.
4103 * p-lang.c (pascal_create_fundamental_type): Likewise.
4104 * objc-lang.c (objc_create_fundamental_type): Likewise.
4105 * mdebugread.c (_initialize_mdebugread): Likewise.
4106 * m2-lang.c (m2_create_fundamental_type): Likewise.
4107 * gdbtypes.c (build_gdbtypes): Likewise.
4108 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4109 * doublest.c (floatformat_from_length): Likewise.
4110 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
4111 * c-lang.c (c_create_fundamental_type): Likewise.
4112 * ada-lex.l (processReal): Likewise.
4113 * ada-lang.c (ada_create_fundamental_type)
4114 (ada_language_arch_info): Likewise.
4115 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
4116 * value.c (unpack_double): Likewise (comment).
4117 * gdbtypes.c (build_gdbtypes): Likewise.
4118 * doublest.c (floatformat_from_length): Likewise.
4119 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
4120 gdbarch_long_double_bit.
4121 * p-lang.c (pascal_create_fundamental_type): Likewise.
4122 * objc-lang.c (objc_create_fundamental_type): Likewise.
4123 * m2-lang.c (m2_create_fundamental_type): Likewise.
4124 * gdbtypes.c (build_gdbtypes): Likewise.
4125 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4126 * doublest.c (floatformat_from_length): Likewise.
4127 * c-lang.c (c_create_fundamental_type): Likewise.
4128 * ada-lex.l (processReal): Likewise.
4129 * ada-lang.c (ada_create_fundamental_type)
4130 (ada_language_arch_info): Likewise.
4131 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
4132 gdbarch_long_double_format.
4133 * gdbtypes.c (build_gdbtypes): Likewise.
4134 * doublest.c (floatformat_from_length): Likewise.
4135 * gdbarch.c, gdbarch.h: Regenerate.
4137 2007-06-12 Markus Deuling <deuling@de.ibm.com>
4139 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
4140 * ada-lang.c (ada_create_fundamental_type)
4141 (ada_language_arch_info): Likewise.
4142 * c-lang.c (c_create_fundamental_type): Likewise.
4143 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4144 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4145 * m2-lang.c (m2_create_fundamental_type): Likewise.
4146 * objc-lang.c (objc_create_fundamental_type): Likewise.
4147 * p-lang.c (pascal_create_fundamental_type): Likewise.
4148 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
4149 * c-exp.y (parse_number): Likewise.
4150 * objc-exp.y (parse_number): Likewise.
4151 * ada-lex.l (processInt): Likewise.
4152 * f-exp.y (parse_number): Likewise.
4153 * p-exp.y (parse_number): Likewise.
4154 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
4155 (gdbtypes_post_init, build_gdbtypes): Likewise.
4156 * p-lang.c (pascal_create_fundamental_type): Likewise.
4157 * parse.c (build_parse): Likewise.
4158 * xcoffread.c (_initialize_xcoffread): Likewise.
4159 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
4160 (read_range_type): Likewise.
4161 * objc-lang.c (objc_create_fundamental_type): Likewise.
4162 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
4163 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
4164 (m2_create_fundamental_type): Likewise.
4165 * c-lang.c (c_create_fundamental_type): Likewise.
4166 * coffread.c (coff_read_enum_type): Likewise.
4167 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
4168 * dwarf2read.c (new_symbol): Likewise.
4169 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
4170 * c-exp.y (parse_number): Likewise.
4171 * objc-exp.y (parse_number): Likewise.
4172 * ada-lex.l (processInt): Likewise.
4173 * f-exp.y (parse_number): Likewise.
4174 * p-exp.y (parse_number): Likewise.
4175 * valarith.c (value_binop): Likewise.
4176 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
4177 * ada-lang.c (ada_create_fundamental_type)
4178 (ada_language_arch_info): Likewise.
4179 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4180 * symfile.c (TARGET_LONG_BYTES): Likewise.
4181 * p-lang.c (pascal_create_fundamental_type): Likewise.
4182 * objc-lang.c (objc_create_fundamental_type): Likewise.
4183 * m2-lang.c (m2_create_fundamental_type): Likewise.
4184 * f-lang.c (f_create_fundamental_type): Likewise.
4185 * c-lang.c (c_create_fundamental_type): Likewise.
4186 * coffread.c (decode_base_type): Likewise.
4187 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
4188 * c-exp.y (parse_number): Likewise.
4189 * objc-exp.y (parse_number): Likewise.
4190 * p-exp.y (parse_number): Likewise.
4191 * ada-lang.c (ada_create_fundamental_type)
4192 (ada_language_arch_info): Likewise.
4193 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
4194 * stabsread.c (read_range_type): Likewise.
4195 * p-lang.c (pascal_create_fundamental_type): Likewise.
4196 * objc-lang.c (objc_create_fundamental_type): Likewise.
4197 * m2-lang.c (m2_create_fundamental_type): Likewise.
4198 * f-lang.c (f_create_fundamental_type): Likewise.
4199 * c-lang.c (c_create_fundamental_type): Likewise.
4200 * gdbarch.c, gdbarch.h: Regenerate.
4202 2007-06-12 Andreas Schwab <schwab@suse.de>
4204 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
4205 (struct frame_unwind): Add dealloc_cache.
4206 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
4208 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
4209 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
4210 (libunwind_frame_unwind): Set dealloc_cache.
4211 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
4213 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
4214 Markus Deuling <deuling@de.ibm.com>
4216 * remote.c (remote_write_qxfer): New function.
4217 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
4218 (remote_read_qxfer): Do not cache empty objects.
4219 (_initialize_remote): Add PACKET_qXfer_spu_read and
4220 PACKET_qXfer_spu_write.
4222 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
4224 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
4225 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
4227 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
4228 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
4229 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
4230 * spu-tdep.c (infospucmdlist): New variable.
4231 (spu_register_name): Handle additional pseudo registers.
4232 (spu_register_type): Likewise.
4233 (spu_pseudo_register_read): Likewise.
4234 (spu_pseudo_register_write): Likewise.
4235 (spu_pseudo_register_read_spu): New function.
4236 (spu_pseudo_register_write_spu): Likewise.
4237 (info_spu_event_command): New function.
4238 (info_spu_signal_command): Likewise.
4239 (info_spu_mailbox_list): Likewise.
4240 (info_spu_mailbox_command): Likewise.
4241 (spu_mfc_get_bitfield): Likewise.
4242 (info_spu_dma_cmdlist): Likewise.
4243 (info_spu_dma_command): Likewise.
4244 (info_spu_proxydma_command): Likewise.
4245 (info_spu_command): Likewise.
4246 (_initialize_spu_tdep): Install "info spu" commands.
4248 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
4250 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
4251 accessing non-seekable spufs files.
4253 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4255 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
4256 gdbarch_skip_trampoline_code.
4257 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
4258 * objc-lang.c (objc_skip_trampoline)
4259 (objc_submethod_helper_data): Likewise.
4260 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
4261 * infrun.c (handle_inferior_event): Likewise.
4262 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
4263 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
4264 gdbarch_in_solib_return_trampoline.
4265 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
4266 * infrun.c (handle_inferior_event): Likewise.
4267 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
4268 * gdbarch.c, gdbarch.h: Regenerate.
4270 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4272 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
4273 * symtab.c (find_function_start_sal, in_prologue): Likewise.
4274 * linespec.c (minsym_found): Likewise.
4275 * infrun.c (step_into_function): Likewise.
4276 * gdbarch.c, gdbarch.h: Regenerate.
4278 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4280 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
4281 * valops.c (value_allocate_space_in_inferior): Likewise.
4282 * gdbarch.c, gdbarch.h: Regenerate.
4284 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4286 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
4287 gdbarch_memory_insert_breakpoint.
4288 * mem-break.c (memory_insert_breakpoint): Likewise.
4289 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
4290 gdbarch_memory_remove_breakpoint.
4291 * mem-break.c (memory_remove_breakpoint): Likewise.
4292 * gdbarch.c, gdbarch.h: Regenerate.
4294 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4296 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
4297 gdbarch_fetch_tls_load_module_address.
4298 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
4299 gdbarch_fetch_tls_load_module_address_p.
4300 * gdbarch.c, gdbarch.h: Regenerate.
4302 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4304 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
4305 gdbarch_decr_pc_after_break.
4306 * tracepoint.c (trace_dump_command): Likewise.
4307 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
4308 * linux-thread-db.c (check_event): Likewise.
4309 * linux-nat.c (cancel_breakpoints_callback): Likewise.
4310 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
4311 * frame.h: Likewise (comment).
4312 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
4313 * aix-thread.c (aix_thread_wait): Likewise.
4314 * gdbarch.c, gdbarch.h: Regenerate.
4316 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4318 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
4319 gdbarch_address_class_type_flags.
4320 * dwarf2read.c (read_tag_pointer_type): Likewise.
4321 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
4322 gdbarch_address_class_type_flags_p.
4323 * dwarf2read.c (read_tag_pointer_type): Likewise.
4324 * gdbarch.c, gdbarch.h: Regenerate.
4326 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4328 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
4329 * value.c (value_as_address): Likewise (comment).
4330 * remote-mips.c (common_breakpoint): Likewise.
4331 * regcache.c (read_pc_pid): Likewise.
4332 * printcmd.c (do_one_display): Likewise.
4333 * monitor.c (monitor_write_memory, monitor_read_memory)
4334 (monitor_insert_breakpoint): Likewise.
4335 * mips-tdep.c (heuristic_proc_start): Likewise.
4336 * infrun.c (insert_step_resume_breakpoint_at_frame)
4337 (insert_step_resume_breakpoint_at_caller): Likewise.
4338 * buildsym.c (record_line): Likewise.
4339 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
4340 (arm_get_next_pc): Likewise.
4341 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
4342 (store_regs): Likewise.
4343 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4344 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
4345 * gdbarch.c, gdbarch.h: Regenerate.
4347 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4349 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
4350 * tracepoint.c (scope_info): Likewise.
4351 * target.c (debug_print_register): Likewise.
4352 * stack.c (frame_info): Likewise.
4353 * sh-tdep.c (sh_register_reggroup_p): Likewise.
4354 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
4355 (sh64_media_print_registers_info)
4356 (sh64_compact_print_registers_info): Likewise.
4357 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
4358 * remote-sim.c (gdbsim_fetch_register): Likewise.
4359 * remote.c (packet_reg): Likewise (comment).
4360 * reggroups.c (default_register_reggroup_p): Likewise.
4361 * regcache.c (regcache_dump): Likewise.
4362 * printcmd.c (address_info): Likewise.
4363 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
4364 * mt-dep.c (mt_registers_info): Likewise.
4365 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
4366 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
4367 (mips_read_fp_register_double, mips_print_fp_register)
4368 (mips_print_register, print_gp_register_row, mips_print_registers_info)
4369 (mips_register_sim_regno): Likewise.
4370 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
4371 * inf-ptrace.c (inf_ptrace_fetch_register)
4372 (inf_ptrace_store_register): Likewise.
4373 * infcmd.c (default_print_registers_info): Likewise.
4374 * ia64-linux-nat.c (ia64_linux_fetch_register)
4375 (ia64_linux_store_register): Likewise.
4376 * i386-linux-nat.c (fetch_register, store_register): Likewise.
4377 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
4378 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4379 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
4380 (hppa_hpux_store_register): Likewise.
4381 * findvar.c (locate_var_value): Likewise.
4382 * dwarf2loc.c (locexpr_describe_location): Likewise.
4383 * dwarf2-frame.c (execute_cfa_program): Likewise.
4384 * arm-tdep.c (arm_push_dummy_call): Likewise.
4385 * arch-utils.c (legacy_register_sim_regno): Likewise.
4386 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
4387 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4388 * mi/mi-main.c (mi_cmd_data_list_register_names)
4389 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
4390 (mi_cmd_data_write_register_values): Likewise.
4391 * gdbarch.c, gdbarch.h: Regenerate.
4393 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
4395 * target-memory.c (blocks_to_erase): Correct off-by-one error.
4397 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
4399 * remote.c (process_g_packet): Don't check size.
4400 * gdbarch.sh: Remove register_bytes_ok.
4401 * gdbarch.c: Regenerated.
4402 * gdbarch.h: Regenerated.
4403 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
4404 (m68k_register_bytes_ok): Remove.
4405 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
4407 2007-06-06 Andreas Schwab <schwab@suse.de>
4409 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
4410 (destroy_addr_space_name): Define.
4411 (libunwind_load): Get address of destroy_addr_space function.
4412 (libunwind_frame_cache): Destroy unw_addr_space_t object before
4413 returning unsuccessfully.
4414 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
4416 (libunwind_sigtramp_frame_sniffer): Likewise.
4417 (libunwind_get_reg_special): Likewise.
4419 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4421 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
4422 gdbarch_fetch_pointer_argument.
4423 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
4424 * gdbarch.c, gdbarch.h: Regenerate.
4426 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4428 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
4429 gdbarch_have_nonsteppable_watchpoint.
4430 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
4431 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
4432 gdbarch_cannot_step_breakpoint.
4433 * infrun.c (resume): Likewise.
4434 * gdbarch.c, gdbarch.h: Regenerate.
4436 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4438 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
4439 * stack.c (print_frame_args): Likewise.
4440 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
4441 * stack.c (print_args_stub, frame_info): Likewise.
4442 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
4443 * stack.c (print_args_stub, frame_info): Likewise.
4444 * gdbarch.c, gdbarch.h: Regenerate.
4446 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4448 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
4449 gdbarch_coff_make_msymbol_special.
4450 * coffread.c (coff_symtab_read): Likewise.
4451 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
4452 gdbarch_elf_make_msymbol_special.
4453 * elfread.c (elf_symtab_read): Likewise.
4454 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
4455 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
4456 * gdbarch.c, gdbarch.h: Regenerate.
4458 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4460 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
4461 gdbarch_frame_red_zone_size.
4462 * gdbarch.c, gdbarch.h: Regenerate.
4464 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4466 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
4467 * infcall.c (call_function_by_hand): Likewise.
4468 * gcore.c (derive_stack_segment): Likewise.
4469 * frame.c (frame_id_inner): Likewise.
4470 * arch-utils.c (core_addr_lessthan): Likewise (comment).
4471 * ada-lang.c (ensure_lval): Likewise.
4472 * gdbarch.c, gdbarch.h: Regenerate.
4474 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4476 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
4477 gdbarch_address_to_pointer.
4478 * findvar.c (store_typed_address): Likewise.
4479 * gdbtypes.c (make_pointer_type): Likewise (comment).
4480 * procfs.c (procfs_address_to_host_pointer): Likewise.
4481 * std-regs.c (value_of_builtin_frame_reg): Likewise.
4482 (value_of_builtin_frame_fp_reg): Likewise.
4483 (value_of_builtin_frame_pc_reg): Likewise.
4484 * utils.c (paddress): Likewise (comment).
4485 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
4486 gdbarch_pointer_to_address.
4487 * findvar.c (extract_typed_address): Likewise.
4488 * gdbtypes.c (make_pointer_type): Likewise (comment).
4489 * valops.c (value_cast): Likewise (comment).
4490 * gdbarch.c, gdbarch.h: Regenerate.
4492 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4494 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
4495 * infrun.c (handle_inferior_event): Likewise.
4496 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
4497 gdbarch_get_longjmp_target_p.
4498 * breakpoint.c (breakpoint_re_set): Likewise.
4499 * infrun.c (handle_inferior_event): Likewise.
4500 * gdbarch.c, gdbarch.h: Regenerate.
4502 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4504 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
4505 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
4506 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
4507 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
4508 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
4509 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
4510 find_stub_with_shl_get, cover_find_stub_with_shl_get,
4511 initialize_hp_cxx_exception_support, child_enable_exception_callback,
4512 current_ex_event, child_get_current_exception_event): Remove.
4513 (hppa_hpux_inferior_created): Remove.
4514 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
4516 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
4517 (deprecated_exception_support_initialized): Remove.
4518 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
4519 (deprecated_exception_support_initialized): Remove.
4520 (breakpoint_init_inferior): Remove handling of non-zero
4521 deprecated_exception_catchpoints_are_fragile.
4523 * symtab.h (deprecated_hp_som_som_object_present): Remove.
4524 * symtab.c (deprecated_hp_som_som_object_present): Remove.
4525 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
4526 deprecated_hp_som_som_object_present.
4527 * eval.c (evaluate_subexp_standard): Likewise.
4528 * valops.c (value_cast): Likewise.
4530 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
4531 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
4532 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
4534 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4536 * objfiles.h (ImportEntry, ExportEntry): Remove types.
4537 (struct objfile): Remove import_list, import_list_size,
4538 export_list, export_list_size members.
4539 (is_in_import_list): Remove prototype.
4540 * objfiles.c (is_in_import_list): Remove.
4541 * somread.c (init_import_symbols, init_export_symbols): Remove.
4542 (som_symfile_read): Do not call init_import_symbols. Do not
4543 set objfile->export_list and objfile->export_list_size.
4545 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
4547 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
4548 Use the original objfile if necessary.
4550 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
4552 * defs.h (ldirname): New prototype.
4553 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
4555 * utils.c (ldirname): New function.
4556 * xml-tdesc.c (file_read_description_xml): Use ldirname.
4558 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4560 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
4562 2007-06-01 Joel Brobecker <brobecker@adacore.com>
4564 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
4566 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4568 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
4570 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4572 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
4573 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
4574 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
4575 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
4576 (ppc_linux_in_sigtramp, insn_is_sigreturn,
4577 ppc_linux_at_sigtramp_return_path): Remove.
4579 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4581 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
4582 (xtensa_register_write_masked, xtensa_register_read_masked)
4583 (xtensa_extract_return_value, xtensa_store_return_value
4584 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
4585 TARGET_BYTE_ORDER by gdbarch_byte_order.
4586 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
4587 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
4588 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
4589 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
4590 (sh64_push_dummy_call, sh64_extract_return_value)
4591 (sh64_store_return_value, sh64_register_convert_to_virtual)
4592 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
4593 (sh64_pseudo_register_write, sh64_do_fp_register)
4594 (sh64_frame_prev_register): Likewise.
4595 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
4596 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
4597 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
4598 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
4599 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
4600 * ppc-linux-nat.c (store_register): Likewise.
4601 * nto-tdep.c (nto_find_and_open_solib)
4602 (nto_init_solib_absolute_prefix): Likewise.
4603 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
4604 (mips_convert_register_p, mips_eabi_push_dummy_call)
4605 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
4606 (mips_o32_push_dummy_call, mips_o32_return_value)
4607 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
4608 (mips_read_fp_register_single, mips_read_fp_register_double)
4609 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
4610 (mips_breakpoint_from_pc): Likewise.
4611 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
4612 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
4613 (mips_linux_o32_sigframe_init): Likewise.
4614 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4615 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
4616 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
4617 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
4618 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
4619 * coffread.c (process_coff_symbol): Likewise.
4620 * arm-tdep.c (convert_from_extended, convert_to_extended)
4621 (gdb_print_insn_arm): Likewise.
4623 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4625 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
4626 * i386-tdep.c (i386_dbx_reg_to_regnum)
4627 (i386_svr4_reg_to_regnum): Likewise.
4628 * inf-ptrace.c (inf_ptrace_fetch_registers)
4629 (inf_ptrace_store_registers): Likewise.
4630 * corelow.c (get_core_registers): Likewise.
4631 * i386-linux-nat.c (supply_gregset, fill_gregset)
4632 (i386_linux_fetch_inferior_registers)
4633 (i386_linux_store_inferior_registers): Likewise.
4634 * remote.c (init_remote_state,packet_reg_from_regnum)
4635 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
4636 (remote_prepare_to_store,store_registers_using_G)
4637 (remote_store_registers,remote_arch_state): Likewise.
4638 * tracepoint.c (encode_actions): Likewise.
4639 * mi/mi-main.c (mi_cmd_data_list_register_names)
4640 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4641 (mi_cmd_data_write_register_values): Likewise.
4642 * tui/tui-regs.c (tui_show_register_group)
4643 (tui_show_register_group): Likewise.
4644 * xtensa-tdep.h (FP_ALIAS): Likewise.
4645 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
4646 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
4647 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
4648 * win32-nat.c (do_win32_fetch_inferior_registers)
4649 (do_win32_store_inferior_registers,fetch_elf_core_registers
4650 * user-regs.h: Likewise (comment).
4651 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4652 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4653 * target-descriptions.h: Likewise (comment).
4654 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
4655 * target.c (debug_print_register): Likewise.
4656 * stack.c (frame_info): Likewise.
4657 * stabsread.c (define_symbol): Likewise.
4658 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
4659 (sh64_media_print_registers_info)
4660 (sh64_compact_print_registers_info): Likewise.
4661 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4662 * rs6000-nat.c (fetch_register,store_register): Likewise.
4663 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
4664 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
4665 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
4666 * remote-m32r-sdi.c (m32r_fetch_registers)
4667 (m32r_store_registers): Likewise.
4668 * reggroups.c (default_register_reggroup_p): Likewise.
4669 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
4670 (regcache_restore,regcache_dump): Likewise.
4671 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
4672 * mips-tdep.c (mips_xfer_register,mips_register_name)
4673 (mips_register_reggroup_p,mips_pseudo_register_read)
4674 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
4675 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
4676 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
4677 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
4678 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
4679 (print_gp_register_row,mips_print_registers_info)
4680 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4681 (mips_register_sim_regno): Likewise.
4682 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
4683 (mips_linux_n32n64_sigframe_init): Likewise.
4684 * mips-linux-nat.c (mips_linux_register_addr)
4685 (mips64_linux_register_addr): Likewise.
4686 * findvar.c (value_of_register): Likewise.
4687 * infcmd.c (default_print_registers_info,registers_info)
4688 (print_vector_info,print_float_info): Likewise.
4689 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
4690 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4691 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4692 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
4693 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4694 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
4695 (ia64_cannot_store_register,ia64_linux_fetch_registers)
4696 (ia64_linux_store_registers): Likewise.
4697 * hpux-thread.c (hpux_thread_fetch_registers)
4698 (hpux_thread_store_registers): Likewise.
4699 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
4700 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
4701 (h8300_register_type): Likewise.
4702 * dwarf2-frame.c (dwarf2_frame_cache)
4703 (dwarf2_frame_state_alloc_regs): Likewise.
4704 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
4705 (cris_cannot_store_register,crisv32_cannot_fetch_register)
4706 (crisv32_cannot_store_register,cris_register_name): Likewise.
4707 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
4708 * arch-utils.c (legacy_register_sim_regno)
4709 (legacy_virtual_frame_pointer): Likewise.
4710 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
4711 * arm-tdep.h: Likewise (comment).
4712 * frv-tdep.c (frv_register_sim_regno): Likewise.
4713 * m68klinux-nat.c (old_fetch_inferior_registers)
4714 (old_store_inferior_registers): Likewise.
4715 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4716 * irix5-nat.c (fetch_core_registers): Likewise.
4717 * hppa-tdep.c (hppa_frame_cache): Likewise.
4718 * hppa-linux-nat.c (hppa_linux_register_addr)
4719 (hppa_linux_fetch_inferior_registers)
4720 (hppa_linux_store_inferior_registers): Likewise.
4721 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
4722 (hppa_hpux_store_inferior_registers): Likewise.
4723 * amd64-nat.c (amd64_native_gregset_reg_offset)
4724 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
4725 * dbug-rom.c (dbug_regname): Likewise.
4726 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
4727 (HARD_PAGE_REGNUM (comment)): Likewise.
4728 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
4729 * i386-tdep.c (i386_dbx_reg_to_regnum)
4730 (i386_svr4_reg_to_regnum): Likewise.
4731 * mi/mi-main.c (mi_cmd_data_list_register_names)
4732 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4733 (mi_cmd_data_write_register_values): Likewise.
4734 * gdbarch.c, gdbarch.h: Regenerate.
4735 * tui/tui-regs.c (tui_show_register_group): Likewise.
4736 * xtensa-tdep.h (FP_ALIAS): Likewise.
4737 * user-regs.h: Likewise (comment).
4738 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4739 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4740 * target-descriptions.h: Likewise (comment).
4741 * target.c (debug_print_register): Likewise.
4742 * stack.c (frame_info): Likewise.
4743 * stabsread.c (define_symbol): Likewise.
4744 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4745 (sh64_compact_print_registers_info): Likewise.
4746 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4747 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4748 (regcache_restore,regcache_dump): Likewise.
4749 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4750 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4751 (mips_stab_reg_to_regnum): Likewise.
4752 * findvar.c (value_of_register): Likewise.
4753 * infcmd.c (default_print_registers_info,registers_info)
4754 (print_vector_info,print_float_info): Likewise.
4755 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4756 * h8300-tdep.c (h8300_register_type): Likewise.
4757 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4758 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4759 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4760 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4761 * parse.c: Remove comment.
4762 * gdbarch.c, gdbarch.h: Regenerate
4764 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4766 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4767 gdbarch_cannot_fetch_register.
4768 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4769 * hppa-linux-nat.c (fetch_register): Likewise.
4770 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4771 * m68klinux-nat.c (fetch_register): Likewise.
4772 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4774 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4775 gdbarch_cannot_store_register.
4776 * hppa-linux-nat.c (store_register): Likewise.
4777 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4778 * regcache.c (regcache_raw_write): Likewise.
4779 * m68klinux-nat.c (store_register): Likewise.
4780 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4781 * gdbarch.c, gdbarch.h: Regenerate.
4783 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4785 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4786 * gdbarch.c, gdbarch.h: Regenerate.
4788 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4790 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4791 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4792 * gdbarch.c, gdbarch.h: Regenerate.
4794 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4796 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4797 * ax-gdb.c (gen_bitfield_ref): Likewise.
4798 * mi/mi-main.c (get_register): Likewise.
4799 * findvar.c (default_value_from_register, extract_signed_integer)
4800 (extract_unsigned_integer, extract_long_unsigned_integer)
4801 (store_signed_integer, store_unsigned_integer): Likewise.
4802 * regcache.c (regcache_dump): Likewise.
4803 * value.c (lookup_internalvar, value_of_internalvar)
4804 (set_internalvar): Likewise.
4806 * valprint.c (print_binary_chars, print_octal_chars)
4807 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4808 * infcmd.c (default_print_registers_info): Likewise.
4809 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4810 * stabsread.c (define_symbol): Likewise.
4811 * doublest.c (floatformat_from_length, floatformat_from_type)
4812 (extract_typed_floating, store_typed_floating): Likewise.
4813 * gdbarch.c, gdbarch.h: Regenerate.
4815 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4817 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4818 gdbarch_call_dummy_location.
4819 * infcall.c (call_function_by_hand): Likewise.
4820 * inferior.h: Change comment.
4821 * arch-utils.c: Change comment.
4822 * gdbarch.c, gdbarch.h: Regenerate.
4824 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4826 * solib-aix5.c: Delete.
4827 * Makefile.in (solib-aix5.o): Delete rule.
4829 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4831 * breakpoint.h (enum bpstat_what_main_action): Remove
4832 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4833 * infrun.c (process_event_stop_test): Do not check for it.
4835 2007-05-22 Chris Dearman <chris@mips.com>
4836 Maciej W. Rozycki <macro@mips.com>
4838 * ser-unix.c (show_serial_hwflow): New function.
4839 (hardwire_raw): Add hardware flow control support.
4840 (_initialize_ser_hardwire): Add "set/show remoteflow".
4841 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4842 * NEWS: Document the new command.
4844 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4846 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4847 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4848 define for i[[3456]]86-*-linux* native configurations.
4849 * config.in, configure: Regenerate.
4851 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4853 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4854 a core file. Add comment in the function description.
4856 2007-05-18 Caroline Tice <ctice@apple.com>
4858 * c-valprint.c (c_value_print): If the initialized field of the
4859 value struct is 0, print out "[uninitialized]" before the value.
4860 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4861 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4862 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4863 ctx->initialized appropriately. Verify no location op follows
4865 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4866 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4867 set_value_initialized.
4868 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4869 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4870 * value.c (struct value): New field, initialized.
4871 (allocate_value): Initialize new field.
4872 (set_value_initialized): New function.
4873 (value_initialized): New function.
4874 * value.h (value_initialized): New extern declaration.
4875 (set_value_initialized): Likewise.
4877 2007-05-18 Caroline Tice <ctice@apple.com>
4879 * MAINTAINERS (Write After Approval): Add self.
4881 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4883 * gdbtypes.c (make_reference_type): Preserve the type chain
4884 and set the length of all the variants of the pointer type.
4886 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4888 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4889 and set the length of all the variants of the pointer type.
4891 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4893 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4895 (mips_o64_push_dummy_call): Reformat a comment.
4897 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4899 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4900 (score_prologue_frame_base_address): Return fp to keep gdb print
4901 local variables correctly when debugging information is stabs.
4903 (score_analyze_prologue): For software watchpoint, fetch all the
4904 instructions from range [startaddr, pc] once and identify them locally
4905 to reduce memory access.
4906 (score_malloc_and_get_memblock, score_free_memblock)
4907 (score_adjust_memblock_ptr): New functions.
4908 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4910 (score_target_can_use_watch, score_stopped_by_watch)
4911 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4912 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4913 New functions for remote & local hw-watchpoint and hw-breakpoint.
4915 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4917 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4918 declarations as well.
4920 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4922 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4923 * config/arm/tm-embed.h: Delete file.
4925 * arm-tdep.h (arm_software_single_step): Declare.
4926 * arm-tdep.c (arm_software_single_step): Make global.
4927 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4929 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4930 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4931 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4932 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4934 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4935 allow defines to be overriden by TM file.
4936 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4937 change default to {0xbe,0xbe}.
4938 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4939 arm_obsd_thumb_be_breakpoint): New global variables.
4940 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4941 tdep->thumb_breakpoint_size.
4942 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4943 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4944 tdep->thumb_breakpoint_size.
4946 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4948 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4950 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4953 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4954 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4955 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4956 (mips_abi_regsize): Simplify.
4957 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4958 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4959 (mips_o32_return_value, mips_o64_push_dummy_call)
4960 (mips_o64_return_value): Propogate constant register sizes. Use the
4961 ABI register size instead of mips_stack_argsize.
4962 (mips_dump_tdep): Don't print mips_stack_argsize.
4963 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4966 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4968 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4969 * config/mips/tm-linux.h: Delete.
4970 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4971 (mips_linux_in_dynsym_resolve_code): Make static. Use
4972 svr4_in_dynsym_resolve_code.
4973 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4975 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4977 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4978 * Makefile.in (mips-linux-tdep.o): Update.
4979 * solib.c (set_solib_ops): New.
4980 (current_target_so_ops): Update comment.
4981 * solib.h (set_solib_ops): New prototype.
4983 2007-05-16 Chris Dearman <chris@mips.com>
4985 * printcmd.c (do_examine): Fix typos in a comment.
4987 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4989 * configure.ac: Allow sysroots to be relocated under $prefix as
4990 well as $exec_prefix.
4991 * configure: Regenerate.
4993 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4995 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4996 (offsetof): Do not define.
4997 (find_stub_with_shl_get): Use numerical value 3 instead of
4998 symbolic value TYPE_PROCEDURE.
5000 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5002 * gdb_proc_service.h (paddr_t): Delete typedef.
5003 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
5004 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
5005 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
5006 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
5007 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
5008 * Makefile.in (proc-service.o): Update.
5010 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5012 * Makefile.in (mips-tdep.o): Update.
5013 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
5016 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5018 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
5019 instead of store_typed_address.
5020 * value.c (pack_long): New.
5021 (value_from_longest): Use it.
5022 * value.h (pack_long): New prototype.
5024 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5026 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
5027 DW_EH_PE_signed if appropriate.
5029 2007-05-14 Paul Brook <paul@codesourcery.com>
5030 Daniel Jacobowitz <dan@codesourcery.com>
5032 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
5034 (dwarf_decode_lines): Check for line info without a file.
5036 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5038 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
5041 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5043 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
5045 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
5047 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
5049 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
5051 * gdbarch.sh (read_sp): Remove.
5052 * gdbarch.c, gdbarch.h: Regenerate.
5053 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
5055 * avr-tdep.c (avr_read_sp): Remove.
5056 (avr_unwind_sp): New function.
5057 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
5058 * mips-tdep.c (mips_read_sp): Remove.
5059 (mips_unwind_sp): New function.
5060 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
5061 * score-tdep.c (score_read_unsigned_register): Remove.
5062 (score_read_sp): Remove.
5063 (score_unwind_sp): New function.
5064 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
5066 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
5068 * buildsym.c (start_subfile): Handle absolute pathnames
5069 while comparing subfile names.
5071 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5073 * hppa-hpux-tdep.c: Include "regcache.h".
5074 * hppa-linux-tdep.c: Likewise.
5075 * hppa-tdep.c: Include "gdb_stdint.h".
5076 (find_unwind_entry): Cast host pointer to uintptr_t before passing
5078 * Makefile.in: Update dependencies.
5080 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5082 * blockframe.c: Remove obsolete comments.
5083 * alpha-nat.c (fetch_osf_core_registers): Update comment.
5084 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
5085 * hppa-tdep.h (enum hppa_regnum): Likewise.
5086 * mips-tdep.h: Likewise.
5087 * m68hc11-tdep.c: Likewise.
5089 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5091 * inferior.h (read_sp): Remove prototype.
5092 * regcache.c (read_sp): Remove.
5093 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
5094 * infcall.c (call_function_by_hand): Likewise.
5095 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
5097 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5099 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5101 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
5102 instead of read_register and read_register_pid.
5104 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
5105 argument instead of PTID. Use regcache functions instead of
5107 (ia64_linux_insert_watchpoint): Update call.
5108 (ia64_linux_stopped_data_address): Use regcache functions
5109 instead of read_register_pid and write_register_pid.
5111 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5113 * libunwind-frame.h (struct regcache): Add forward declaration.
5114 (libunwind_get_reg_special): Add REGCACHE argument.
5115 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
5116 argument. Pass it to unw_init_remote_p.
5118 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
5119 libunwind_get_reg_special.
5120 (ia64_access_reg): Remove "write" case.
5121 (ia64_access_fpreg): Likewise. Read from next_frame passed
5122 as callback argument instead of from current_regcache.
5123 (ia64_access_rse_reg): Remove "write" case. Read from regcache
5124 passed as callback argument instead of from current_regcache.
5125 (ia64_access_rse_fpreg): New function.
5126 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
5128 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5130 * NEWS: Mention SPU overlay support.
5132 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5134 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
5136 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5138 * breakpoint.c (remove_breakpoint): Do not remove software
5139 breakpoints in unmapped overlay sections.
5141 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5143 * spu-tdep.c: Include "observer.h".
5144 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
5145 (spu_overlay_data): New variable.
5146 (struct spu_overlay_table): New type.
5147 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
5148 spu_overlay_new_objfile): New functions.
5149 (spu_gdbarch_init): Install spu_overlay_update.
5150 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
5151 allocate spu_overlay_data objfile data.
5153 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5155 * gdbarch.sh (overlay_update): New gdbarch function.
5156 (struct obj_section): Add forward declaration.
5157 * gdbarch.c, gdbarch.h: Regenerate.
5159 * symfile.c (simple_overlay_update): Make global.
5160 (target_overlay_update): Remove variable.
5161 (overlay_is_mapped): Call gdbarch_overlay_update instead of
5162 target_overlay_update.
5163 (overlay_load_command): Likewise.
5164 * symfile.h (struct obj_section): Add forward declaration.
5165 (simple_overlay_update): Add prototype.
5167 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
5169 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5171 * observer.sh: Add "struct objfile" forward declaration.
5172 * target.h (deprecated_target_new_objfile_hook): Remove.
5173 * symfile.c (deprecated_target_new_objfile_hook): Remove.
5174 (clear_symtab_users): Call observer_notify_new_objfile.
5175 (symbol_file_add_with_addrs_or_offsets): Likewise.
5176 * rs6000-nat.c: Include "observer.h".
5177 (vmap_ldinfo): Call observer_notify_new_objfile.
5178 (xcoff_relocate_core): Likewise.
5179 * remote.c (remote_new_objfile_chain): Remove.
5180 (remote_new_objfile): Do not call remote_new_objfile_chain.
5181 (_initialize_remote): Use observer_attach_new_objfile.
5182 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
5183 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
5184 (_initialize_tui_hooks): Use observer_attach_new_objfile.
5185 * aix-thread.c: Include "observer.h".
5186 (target_new_objfile_chain): Remove.
5187 (new_objfile): Do not call target_new_objfile_chain.
5188 (_initialize_aix_thread): Use observer_attach_new_objfile.
5189 * hpux-thread.c: Include "observer.h"
5190 (target_new_objfile_chain): Remove.
5191 (hpux_thread_new_objfile): Make static. Do not call
5192 target_new_objfile_chain.
5193 (_initialize_hpux_thread): Use observer_attach_new_objfile.
5194 * linux-thread-db.c: Include "observer.h".
5195 (target_new_objfile_chain): Remove.
5196 (thread_db_new_objfile): Do not call target_new_objfile_chain.
5197 (_initialize_thread_db): Use observer_attach_new_objfile.
5198 * sol-thread.c: Include "observer.h".
5199 (target_new_objfile_chain): Remove.
5200 (sol_thread_new_objfile): Make static. Do not call
5201 target_new_objfile_chain.
5202 (_initialize_sol_thread): Use observer_attach_new_objfile.
5203 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
5204 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
5207 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5209 * gdbarch.sh (remote_translate_xfer_address): Remove.
5210 * gdbarch.h, gdbarch.c: Regenerate.
5211 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
5212 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
5213 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
5214 call gdbarch_remote_translate_xfer_address.
5215 * frv-tdep.c (frv_gdbarch_init): Do not call
5216 set_gdbarch_remote_translate_xfer_address.
5217 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
5218 (ia64_gdbarch_init): Do not install it.
5220 2007-05-11 Bob Wilson <bob.wilson@acm.org>
5222 * NEWS: Mention change in handling the -tui option.
5224 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
5226 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
5229 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5231 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
5232 (breakpoint_inserted_here_p): Call it.
5233 (software_breakpoint_inserted_here_p): Likewise.
5235 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
5237 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
5238 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
5239 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
5240 (inf_ptrace_store_register): Likewise.
5241 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
5242 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
5244 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
5246 * linux-nat.c (linux_trad_target): Adapt parameter list.
5247 * linux-nat.h (linux_trad_target): Likewise.
5249 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
5251 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
5252 (mips_linux_cannot_store_register): Likewise.
5253 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
5254 Return (CORE_ADDR) -1 for registers that cannot be fetched or
5255 stored via ptrace. Use GDBARCH instead of current_gdbarch.
5256 (mips64_linux_register_addr): Likewise.
5257 (mips_linux_register_u_offset): Adapt parameter list. Pass
5258 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
5260 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5261 * config/mips/nm-linux.h: Delete file.
5263 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
5265 * remote.c (remote_detach): Error out if remote can't detach.
5267 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
5269 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
5270 instruction's opcode in the "opcode" variable and declares new
5271 variable "closing_insn".
5273 2007-05-10 Chris Dearman <chris@mips.com>
5274 Maciej W. Rozycki <macro@mips.com>
5276 * cli/cli-setshow.c (do_setshow_command): Remove trailing
5277 whitespace when setting a var_filename.
5279 2007-05-09 Bob Wilson <bob.wilson@acm.org>
5281 * main.c (captured_main): Recognize -tui option and print an error
5282 message when the TUI is not configured.
5284 2007-05-09 Andreas Schwab <schwab@suse.de>
5286 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
5287 set removed members.
5288 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
5290 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5292 * gdbarch.sh (deprecated_store_struct_return): Remove.
5293 * gdbarch.c, gdbarch.h: Regenerate.
5294 * frv-tdep.c (frv_store_struct_return): Remove.
5295 (frv_gdbarch_init): Do not install it.
5297 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5299 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
5300 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
5301 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
5303 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5305 * spu-linux-nat.c: Include "gdb_stdint.h".
5306 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
5307 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5308 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
5309 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
5310 (spu_child_wait): Mark up string for translation.
5312 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
5313 Luis Machado <luisgpm@br.ibm.com>
5315 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
5316 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
5317 BC_INSTRUCTION): Define.
5318 (deal_with_atomic_sequence): New function.
5319 (rs6000_software_single_step): Call deal_with_atomic_sequence.
5320 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
5321 gdbarch_software_single_step routine.
5323 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
5325 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
5326 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
5327 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
5328 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
5329 spu_child_post_attach, spu_fetch_inferior_registers,
5330 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
5331 memory addresses as ULONGEST, not CORE_ADDR.
5333 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
5335 * gdbarch.sh: Add skip_permanent_breakpoint callback.
5336 * gdbarch.h, gdbarch.c: Regenerate.
5338 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
5339 (resume): Call gdbarch_skip_permanent_breakpoint instead of
5340 SKIP_PERMANENT_BREAKPOINT. Inline default case.
5342 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
5343 Add REGCACHE argument. Use it instead of read/write_register.
5344 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
5346 * config/pa/tm-hppah.h: Delete file.
5347 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
5348 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
5350 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
5352 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
5353 * NEWS: Mention improved C++ thunk support.
5354 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
5355 * cp-abi.c (cplus_skip_trampoline): New.
5356 * cp-abi.h (cplus_skip_trampoline): New prototype.
5357 (struct cp_abi_ops): Add skip_trampoline member.
5358 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
5359 (init_gnuv3_ops): Set skip_trampoline.
5361 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
5363 * rs6000-tdep.c (struct frame_extra_info): Delete.
5365 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
5367 * linux-thread-db.c: Update some FIXME comments.
5368 (thread_db_xfer_partial): Delete.
5369 (init_thread_db_ops): Do not set to_xfer_partial.
5371 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5373 * inftarg.c, infptrace.c: Remove files.
5374 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
5375 (inftarg.o, infptrace.o): Remove rules.
5376 * gdbcore.h (register_addr): Remove prototype.
5377 * inferior.h (kill_inferior, store_inferior_registers,
5378 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
5379 call_ptrace, pre_fork_inferior): Remove prototypes.
5380 * target.h (child_xfer_memory, child_pid_to_exec_file,
5381 child_core_file_to_sym_file, child_post_attach,
5382 child_post_startup_inferior, child_acknowledge_created_inferior,
5383 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
5384 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
5385 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
5386 child_follow_fork, child_reported_exec_events_per_exec_call,
5387 child_has_exited, child_thread_alive): Remove prototypes.
5389 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5391 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
5392 (sparc_store_inferior_registers): Likewise.
5393 * sparc-nat.c (fetch_inferior_registers): Rename to ...
5394 (sparc_fetch_inferior_registers): ... this.
5395 (store_inferior_registers): Rename to ...
5396 (sparc_store_inferior_registers): ... this.
5397 (sparc_target): Update callback names.
5398 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
5399 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
5401 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5403 * linux-nat.c (child_post_attach): Rename to ...
5404 (linux_child_post_attach): ... this. Make static.
5405 (child_follow_fork): Rename to ...
5406 (linux_child_follow_fork): ... this. Make static.
5407 (child_insert_fork_catchpoint): Rename to ...
5408 (linux_child_insert_fork_catchpoint): ... this. Make static.
5409 (child_insert_vfork_catchpoint): Rename to ...
5410 (linux_child_insert_vfork_catchpoint): ... this. Make static.
5411 (child_insert_exec_catchpoint): Rename to ...
5412 (linux_child_insert_exec_catchpoint): ... this. Make static.
5413 (child_pid_to_exec_file): Rename to ...
5414 (linux_child_pid_to_exec_file): ... this. Make static.
5416 (linux_handle_extended_wait): Update call.
5417 (linux_xfer_partial): Update callback routine names.
5419 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5421 * configure.host (alpha*-*-osf[12]*): Remove support.
5422 * NEWS: Mention removed configurations.
5424 * config/alpha/alpha-osf1.mh: Delete file.
5425 * config/alpha/alpha-osf2.mh: Delete file.
5426 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
5428 * config/alpha/nm-osf.h: Delete file.
5429 * config/alpha/nm-osf2.h: Delete file.
5430 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
5431 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
5432 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
5434 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
5435 (register_addr, kernel_u_size): Remove.
5436 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
5438 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5440 * regcache.c (regcache_invalidate): New function.
5441 (register_cached): Remove.
5442 (set_register_cached): Remove.
5443 (deprecated_registers_fetched): Remove.
5444 (registers_changed): Use regcache_invalidate instead
5445 of set_register_cached.
5446 (regcache_raw_read): Update comment.
5448 * regcache.h (regcache_invalidate): Add prototype.
5449 (register_cached): Remove.
5450 (set_register_cached): Remove.
5451 (deprecated_registers_fetched): Remove.
5453 * findvar.c (value_of_register): Do not call register_cached.
5454 * frame.c (frame_register): Likewise.
5455 * tui/tui-regs.c (tui_get_register): Likewise.
5457 * remote.c (fetch_register_using_p): Do not call set_register_cached.
5458 (process_g_packet): Likewise.
5459 (remote_fetch_registers): Likewise.
5460 * remote-sim.c (gdbsim_fetch_register): Likewise.
5461 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
5462 by regcache_invalidate.
5463 (mt_pseudo_register_write): Likewise.
5464 * sh-tdep.c (sh_pseudo_register_write): Likewise.
5466 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
5467 call by loop over regcache_raw_supply (..., NULL).
5469 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5471 * target.h (struct target_ops): Add REGCACHE parameter to
5472 to_prepare_to_store.
5473 (target_prepare_to_store): Likewise.
5474 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
5475 (update_current_target): Adapt prepare_to_store de_fault rule.
5477 * regcache.c (regcache_raw_write): Pass regcache to
5478 target_prepare_to_store.
5480 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
5481 Do not call CHILD_PREPARE_TO_STORE.
5482 * gnu-nat.c (gnu_prepare_to_store): Likewise.
5483 * procfs.c (procfs_prepare_to_store): Likewise.
5485 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
5486 * go32-nat.c (go32_prepare_to_store): Likewise.
5487 * monitor.c (monitor_prepare_to_store): Likewise.
5488 * nto-procfs.c (procfs_prepare_to_store): Likewise.
5489 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
5490 * remote-mips.c (mips_prepare_to_store): Likewise.
5491 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
5492 * win32-nat.c (win32_prepare_to_store): Likewise.
5494 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
5495 Use it instead of current_regcache.
5497 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
5498 parameter. Pass it on to next target.
5499 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
5501 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5503 * target.h (struct regcache): Add forward declaration.
5504 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
5505 and to_store_registers target operations.
5506 (target_fetch_registers, target_store_registers): Update.
5508 * regcache.c (regcache_raw_read): Replace register_cached by
5509 regcache_valid_p. Pass regcache to target_fetch_registers.
5510 (regcache_raw_write): Pass regcache to target_store_registers.
5512 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
5513 store_regs, store_wmmx_regs): Replace register_cached by
5516 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
5517 to target_fetch_registers calls.
5518 * corelow.c (core_open): Likewise.
5519 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
5520 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5521 ps_lsetfpregs): Likewise.
5522 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5523 ps_lsetfpregs): Likewise.
5524 * win32-nat.c (win32_resume): Likewise.
5525 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
5526 to target_store_registers call.
5527 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5529 * inferior.h (store_inferior_registers): Update prototype.
5530 (fetch_inferior_registers): Likewise.
5531 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
5532 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
5533 Update function pointer signatures.
5535 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
5536 use it instead of current_regcache, update calls.
5537 (aix_thread_store_registers): Likewise.
5538 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
5539 (alphabsd_store_inferior_registers): Likewise.
5540 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
5541 (amd64bsd_store_inferior_registers): Likewise.
5542 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
5543 (amd64_linux_store_inferior_registers): Likewise.
5544 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
5545 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
5546 fetch_wmmx_regs, store_wmmx_regs): Likewise.
5547 (arm_linux_fetch_inferior_registers): Likewise.
5548 (arm_linux_store_inferior_registers): Likewise.
5549 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
5550 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
5551 (store_register, store_regs, store_fp_register, store_fp_regs,
5552 armnbsd_store_registers): Likewise.
5553 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
5554 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
5555 (bsd_uthread_store_registers): Likewise.
5556 * corelow.c (get_core_registers): Likewise.
5557 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
5558 go32_store_registers): Likewise.
5559 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
5560 (hppabsd_store_registers): Likewise.
5561 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
5562 (hppa_hpux_fetch_inferior_registers): Likewise.
5563 (hppa_hpux_store_register): Likewise.
5564 (hppa_hpux_store_inferior_registers): Likewise.
5565 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5566 (hppa_linux_fetch_inferior_registers): Likewise.
5567 (hppa_linux_store_inferior_registers): Likewise.
5568 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
5569 (hpux_thread_store_registers): Likewise.
5570 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
5571 (i386bsd_store_inferior_registers): Likewise.
5572 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
5573 gnu_store_registers): Likewise.
5574 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
5575 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
5577 (i386_linux_fetch_inferior_registers): Likewise.
5578 (i386_linux_store_inferior_registers): Likewise.
5579 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
5580 (ia64_linux_fetch_registers): Likewise.
5581 (ia64_linux_store_register): Likewise.
5582 (ia64_linux_store_registers): Likewise.
5583 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5584 (inf_child_store_inferior_registers): Likewise.
5585 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5586 (inf_ptrace_fetch_registers): Likewise.
5587 (inf_ptrace_store_register): Likewise.
5588 (inf_ptrace_store_registers): Likewise.
5589 * infptrace.c (fetch_register, store_register): Likewise.
5590 (fetch_inferior_registers, store_inferior_registers): Likewise.
5591 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
5592 (m32r_linux_fetch_inferior_registers): Likewise.
5593 (m32r_linux_store_inferior_registers): Likewise.
5594 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
5595 (m68kbsd_store_inferior_registers): Likewise.
5596 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
5597 store_register, old_store_inferior_registers, fetch_regs, store_regs,
5598 fetch_fpregs, store_fpregs): Likewise.
5599 (m68k_linux_fetch_inferior_registers): Likewise.
5600 (m68k_linux_store_inferior_registers): Likewise.
5601 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
5602 (m88kbsd_store_inferior_registers): Likewise.
5603 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
5604 (mips64obsd_store_inferior_registers): Likewise.
5605 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
5606 (mips64_linux_regsets_store_registers): Likewise.
5607 (mips64_linux_fetch_registers): Likewise.
5608 (mips64_linux_store_registers): Likewise.
5609 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
5610 (mipsnbsd_store_inferior_registers): Likewise.
5611 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
5612 (monitor_fetch_registers, monitor_store_registers): Likewise.
5613 * nto-procfs.c (procfs_fetch_registers): Likewise.
5614 (procfs_store_registers): Likewise.
5615 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
5616 fetch_register, supply_vrregset, fetch_altivec_registers,
5617 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
5618 (store_altivec_register, store_spe_register, store_register,
5619 fill_vrregset, store_altivec_registers, store_ppc_registers,
5620 ppc_linux_store_inferior_registers): Likewise.
5621 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
5622 (ppcnbsd_store_inferior_registers): Likewise.
5623 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
5624 (ppcobsd_store_registers): Likewise.
5625 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5626 * remote.c (fetch_register_using_p, process_g_packet,
5627 fetch_registers_using_g, remote_fetch_registers): Likewise.
5628 (store_register_using_P, store_registers_using_G,
5629 remote_store_registers): Likewise.
5630 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
5631 m32r_store_register, m32r_store_register): Likewise.
5632 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
5633 * remote-sim.c (gdbsim_fetch_register): Likewise.
5634 (gdbsim_store_register): Likewise.
5635 * rs6000-nat.c (fetch_register, store_register): Likewise.
5636 (rs6000_fetch_inferior_registers): Likewise.
5637 (rs6000_store_inferior_registers): Likewise.
5638 * s390-nat.c (fetch_regs, store_regs): Likewise.
5639 (fetch_fpregs, store_fpregs): Likewise.
5640 (s390_linux_fetch_inferior_registers): Likewise.
5641 (s390_linux_store_inferior_registers): Likewise.
5642 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
5643 (shnbsd_store_inferior_registers): Likewise.
5644 * sol-thread.c (sol_thread_fetch_registers): Likewise.
5645 (sol_thread_store_registers): Likewise.
5646 * sparc-nat.c (fetch_inferior_registers): Likewise.
5647 (store_inferior_registers): Likewise.
5648 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5649 (spu_store_inferior_registers): Likewise.
5650 * target.c (debug_print_register): Likewise.
5651 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
5652 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
5653 (vaxbsd_store_inferior_registers): Likewise.
5654 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
5655 (win32_fetch_inferior_registers): Likewise.
5656 (win32_store_inferior_registers): Likewise.
5658 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5660 * gdbcore.h (struct regcache): Add forward declaration.
5661 (struct core_fns): Add REGCACHE argument to core_read_registers
5663 * corelow.c (get_core_register_section): Add REGCACHE argument,
5664 use it instead of current_regcache, pass it to core_read_registers
5666 (get_core_registers): Add current_regcache as parameter to
5667 get_core_register_section calls.
5669 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
5670 use it instead of current_regcache.
5671 * armnbsd-nat.c (fetch_core_registers): Likewise.
5672 (fetch_elfcore_registers): Likewise.
5673 * core-regset.c (fetch_core_registers): Likewise.
5674 * cris-tdep.c (fetch_core_registers): Likewise.
5675 * irix5-nat.c (fetch_core_registers): Likewise.
5676 * m68klinux-nat.c (fetch_core_registers): Likewise.
5677 * mips-linux-tdep.c (fetch_core_registers): Likewise.
5678 * win32-nat.c (fetch_elf_core_registers): Likewise.
5680 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5682 * gregset.h (struct regcache): Add forward declaration.
5683 (supply_gregset): Add REGCACHE parameter, make GREGS const.
5684 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
5685 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
5686 (fill_gregset): Add REGCACHE parameter.
5687 (fill_fpregset): Likewise.
5688 (fill_fpxregset): Likewise.
5690 Update all definitions accordingly:
5691 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
5692 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
5693 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
5694 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
5695 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
5696 (supply_gregset): Add REGCACHE parameter, use it instead of
5697 current_regcache. Make GREGSETP parameter const, adapt casts.
5698 (supply_fpregset): Add REGCACHE parameter, use it instead of
5699 current_regcache. Make FPREGSETP parameter const, adapt casts.
5700 (fill_gregset): Add REGCACHE parameter, use it instead of
5702 (fill_fpregset): Likewise.
5704 Update all callers to pass in current_regcache as the new argument:
5705 * core-regset.c: Include "regcache.h".
5706 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
5707 * procfs.c: Include "regcache.h".
5708 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
5709 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
5710 (procfs_do_thread_registers): Likewise.
5711 (procfs_make_note_section): Likewise.
5712 * proc-service.c: Include "regcache.h".
5713 (ps_lgetregs): Update fill_gregset call.
5714 (ps_lsetregs): Update supply_gregset call.
5715 (ps_lgetfpregs): Update fill_fpregset call.
5716 (ps_lsetfpregs): Update supply_fpregset call.
5717 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
5718 supply_fpregset calls.
5719 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
5720 (ps_lgetregs): Update fill_gregset call.
5721 (ps_lsetregs): Update supply_gregset call.
5722 (ps_lgetfpregs): Update fill_fpregset call.
5723 (ps_lsetfpregs): Update supply_fpregset call.
5725 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
5726 fill_fpregset, and fill_fpxregset calls.
5727 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
5728 (store_regs): Update fill_gregset call.
5729 (fetch_fpregs): Update supply_fpregset call.
5730 (store_fpregs): Update fill_fpregset call.
5731 (fetch_fpxregs): Update supply_fpxregset call.
5732 (store_fpxregs): Update fill_fpxregset call.
5733 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
5734 (store_regs): Update fill_gregset call.
5735 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
5736 (store_regs): Update fill_gregset call.
5737 (fetch_fpregs): Update supply_fpregset call.
5738 (store_fpregs): Update fill_fpregset call.
5739 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5740 * s390-nat.c (fetch_regs): Update supply_gregset call.
5741 (store_regs): Update fill_gregset call.
5742 (fetch_fpregs): Update supply_fpregset call.
5743 (store_fpregs): Update fill_fpregset call.
5745 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5748 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5750 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5751 it instead of current_regcache.
5752 (parse_register_dump): Add REGCACHE parameter, pass it to
5753 supply_register callback.
5754 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5755 parse_register_dump.
5756 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5757 parse_register_dump and dumpregs callback.
5758 (monitor_wait): Pass current_regcache to parse_register_dump and
5760 (monitor_fetch_register): Pass current_regcache to
5761 monitor_supply_register.
5762 (monitor_fetch_registers): Pass current_regcache to
5764 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5765 supply_register and dumpregs callbacks.
5766 (monitor_supply_register, monitor_dump_reg_block): Update
5768 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5769 it to monitor_supply_register.
5770 * dink32-rom.c (dink32_supply_register): Likewise.
5771 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5772 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5773 instead of current_regcache.
5775 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5777 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5778 Add REGCACHE parameter. Use it instead of current_regcache.
5779 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5780 i386nto_supply_gregset and i386nto_supply_fpregset.
5781 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5782 of current_regcache.
5784 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5785 nto_supply_ helper functions.
5786 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5788 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5790 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5791 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5792 and regset_fill member function pointers.
5793 (nto_dummy_supply_regset): Adapt prototype.
5795 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5797 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5798 instead of current_regcache. Make REGS const.
5799 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5800 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5802 * shnbsd-nat.c: Include "regcache.h".
5803 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5805 (shnbsd_store_inferior_registers): Pass current_regcache to
5807 * Makefile.in (shbsd-nat.o): Update dependencies.
5809 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5811 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5812 instead of current_regcache.
5813 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5814 Make GREGSETP const, remove superfluous casts.
5815 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5816 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5818 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5819 (supply_64bit_reg): Likewise
5820 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5821 Make GREGSETP const, adapt casts accordingly.
5822 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5823 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5825 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5826 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5828 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5829 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5830 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5832 * mips-linux-nat.c: Include "regcache.h".
5833 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5834 current_regcache to mips{64}_(supply|fill)_ helper routines.
5835 (mips64_linux_regsets_fetch_registers): Likewise.
5836 (mips64_linux_regsets_store_registers): Likewise.
5838 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5839 REGCACHE argument; replace current_regcache. Make REGS const.
5840 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5841 replace current_regcache.
5842 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5843 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5844 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5845 mipsnbsd_store_inferior_registers): Pass current_regcache to
5846 mipsnbsd_(supply|fill)_... helper routines.
5848 * Makefile.in (mips-linux-nat.o): Update dependencies.
5850 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5852 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5853 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5854 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5855 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5856 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5857 * i386gnu-nat.c (store_fpregs): Likewise.
5858 * i386v4-nat.c (fill_fpregset): Likewise.
5859 * go32-nat.c (store_register, go32_store_registers): Likewise.
5861 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5863 * cris-tdep.c (supply_gregset): Rename to ...
5864 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5865 instead of current_regcache.
5866 (fetch_core_registers): Update call. Pass current_regcache.
5868 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5870 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5871 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5872 Use it instead of current_regcache.
5873 (supply_fparegset): Rename to ...
5874 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5875 Use it instead of current_regcache.
5876 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5877 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5879 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5881 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5882 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5883 use it instead of current_regcache.
5884 * alpha-tdep.h (struct regcache): Add forward declaration.
5885 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5886 alpha_fill_fp_regs): Update prototypes.
5888 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5889 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5890 * alpha-linux-nat.c: Include "regcache.h".
5891 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5892 current_regcache to alpha_supply/fill_ routines.
5894 * alphabsd-tdep.c: Include "regcache.h".
5895 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5896 pass it to alpha_supply_ routines. Make REGS const.
5897 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5898 pass it to alpha_fill_ routines.
5899 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5900 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5901 alphabsd_fill_fpreg): Update prototypes.
5903 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5904 fill_fpregset, alphabsd_fetch_inferior_registers,
5905 alphabsd_store_inferior_registers): Pass current_regcache to
5906 alphabsd_supply/fill_ routines.
5908 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5911 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5913 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5914 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5915 instead of current_regcache.
5916 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5917 REGCACHE parameter, pass it to supply_ routines.
5918 (aix_thread_fetch_registers): Pass current_regcache to
5919 fetch_regs_user_thread and fetch_regs_kernel_thread.
5921 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5922 Add REGCACHE parameter, use it instead of current_regcache.
5923 Call regcache_valid_p instead of register_cached.
5924 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5925 Also, pass REGCACHE to fill_ routines.
5926 (aix_thread_store_registers): Pass current_regcache to
5927 store_regs_user_thread and store_regs_kernel_thread.
5929 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5931 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5932 pointed to by GREGSETP.
5934 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5936 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5937 of regcache_raw_read_signed.
5938 (fill_fpregset): Use regcache_raw_collect instead of
5941 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5943 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5944 point arguments, test explicitly for use of the EABI32 ABI
5945 instead of inferring this condition from tests on register
5948 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5950 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5951 prior to allocating its location.
5953 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5955 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5956 based on mips_abi_regsize() whose result is known in advance.
5957 (mips_o64_push_dummy_call): Likewise.
5959 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5961 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5962 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5964 * mips-linux-nat.c: Include "gregset.h".
5965 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5966 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5967 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5968 fill_fpregset): Move to mips-linux-nat.c.
5970 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5972 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5974 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5975 (read_register): ... here.
5976 (deprecated_write_register_gen): Remove, inline ...
5977 (write_register): ... here.
5978 * regcache.h (deprecated_read_register_gen): Remove prototype.
5979 (deprecated_write_register_gen): Likewise.
5981 * remote-sim.c (gdbsim_store_register): Replace call to
5982 deprecated_read_register_gen with regcache_cooked_read.
5983 * target.c (debug_print_register): Replace calls to
5984 deprecated_read_register_gen and read_register with
5985 regcache_cooked_read.
5987 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5989 * hpux-thread.c (hpux_thread_store_registers): Use
5990 regcache_raw_collect, not regcache_raw_read.
5991 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5992 not regcache_raw_write.
5994 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5996 * gdbarch.sh: Remove deprecated_register_byte.
5997 * gdbarch.c, gdbarch.h: Regenerate.
5998 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5999 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
6001 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
6002 * regcache.c (regcache_valid_p): Allow to query cooked registers in
6003 read-only register caches. Make REGCACHE parameter const.
6004 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
6006 * mi/mi-main.c (old_regs): Remove.
6007 (mi_setup_architecture_data, _initialize_mi_main): Remove.
6008 (register_changed_p): Reimplement to compare two register caches.
6009 (mi_cmd_data_list_changed_registers): Update caller.
6010 * mi/mi-main.h (mi_setup_architecture_data): Remove.
6011 * mi/mi-interp.c (mi_interpreter_init): Do not call
6012 mi_setup_architecture_data.
6014 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6016 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
6017 inline definition at the places the macros are used.
6018 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
6020 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6022 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
6024 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
6025 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
6026 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
6027 (rs6000_aix_regset_from_core_section): New function.
6028 (rs6000_aix_init_osabi): Register it.
6029 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
6030 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
6031 * rs6000-nat.c (CoreRegs): Do not define type.
6032 (fetch_core_registers, rs6000_core_fns): Remove.
6033 (_initialize_core_rs6000): Do not register it. Rename to ...
6034 (_initialize_rs6000_nat): ... this.
6035 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
6037 2007-04-27 Kevin Buettner <kevinb@redhat.com>
6039 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
6040 (dwarf2_read_address): Sign extend return address as required by
6041 target architecture.
6043 2007-04-27 Kevin Buettner <kevinb@redhat.com>
6045 * solib-frv.c (lm_base): Bail out if the main executable has
6048 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6050 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
6051 of FPCR register in fpregset.
6053 2007-04-27 Maciej W. Rozycki <macro@mips.com>
6055 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
6056 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
6058 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6060 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
6061 * rs6000-nat.c (rs6000_wait): New function.
6062 (_initialize_core_rs6000): Install it as to_wait target method.
6063 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
6065 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6067 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
6068 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
6069 * rs6000-nat.c (super_create_inferior): New variable.
6070 (rs6000_create_inferior): Make static. Adapt argument list. Call
6071 original version of create_inferior via super_create_inferior.
6072 (_initialize_core_rs6000): Install to_create_inferior target method.
6074 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6076 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
6077 (aix_thread_xfer_partial): ... this.
6078 (init_aix_thread_ops): Install to_xfer_partial instead
6079 of deprecated_xfer_memory target method.
6081 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
6082 and inftarg.o, add inf-ptrace.o.
6083 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
6084 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
6085 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
6086 (fetch_inferior_registers): Rename to ...
6087 (rs6000_fetch_inferior_registers): ... this. Make static.
6088 (store_inferior_registers): Rename to ...
6089 (rs6000_store_inferior_registers): ... this. Make static.
6090 (read_word, child_xfer_memory): Remove.
6091 (rs6000_xfer_partial): New function.
6092 (kernel_u_size): Remove.
6093 (_initialize_core_rs6000): Add inf_ptrace-based target.
6094 * Makefile.in (rs6000-nat.o): Update dependencies.
6096 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6098 * inf-ptrace.c: Include "gdb_stdint.h".
6099 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
6100 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
6101 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
6102 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
6103 (inf_ptrace_store_register): Likewise.
6104 * Makefile.in (inf-ptrace.o): Update dependencies.
6106 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6108 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
6109 * configure.tgt (rs6000-*-*): Likewise.
6110 * config/rs6000/aix4.mh: Delete file.
6111 * config/rs6000/aix4.mt: Delete file.
6112 * config/rs6000/rs6000.mh: Delete file.
6113 * config/rs6000/rs6000.mt: Delete file.
6115 * config/powerpc/nm-aix.h: Delete file.
6116 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
6118 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6120 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
6121 Remove obsolete part of comment.
6122 (store_regs_user_thread): Use uint32_t temporaries when calling
6124 (store_regs_kernel_thread): Likewise. Add assertion to verify
6125 correct size of struct ptsprs members.
6126 (aix_thread_xfer_memory): Fix type of myaddr.
6127 (aix_thread_extra_thread_info): Fix compiler warning.
6128 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
6129 (fetch_register, store_register): Adapt callers.
6131 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6133 * vec.h (vec_free): Rename to vec_free_. Adapt users.
6135 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
6137 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
6139 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
6140 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
6141 (alpha_linux_regset_from_core_section): New function.
6142 (alpha_linux_init_abi): Install it.
6143 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
6144 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
6145 <sys/procfs.h>, and "gregset.h".
6146 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
6147 Move from config/alpha/nm-linux.h.
6148 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
6150 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
6151 * alpha-nat.c: Remove #ifdef __linux__ section.
6152 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
6153 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
6154 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
6155 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
6156 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
6157 (NATDEPFILES): Remove alpha-nat.o.
6158 * config/alpha/nm-linux.h: Delete file.
6159 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
6160 * Makefile.in (alpha-linux-nat.o): Update dependencies.
6161 (alpha-linux-tdep.o): Likewise.
6163 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
6165 * mips-linux-nat.c: No longer include "gdbcore.h".
6166 (mips_linux_register_addr): Move from mips-linux-tdep.c.
6167 (mips64_linux_register_addr): Likewise.
6168 (mips_linux_register_u_offset): Call mips_linux_register_addr or
6169 mips64_linux_register_addr instead of register_addr.
6170 * mips-linux-tdep.c (mips_linux_register_addr,
6171 mips64_linux_register_addr): Move to mips-linux-nat.c.
6172 (register_addr): Remove.
6173 (register_addr_data, init_register_addr_data): Remove.
6174 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
6175 (set_mips_linux_register_addr): Remove.
6176 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
6177 * Makefile.in (mips-linux-nat.o): Update dependencies.
6179 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
6181 * linux-nat.c (linux_register_u_offset): Remove.
6182 (linux_target_install_ops): New function.
6183 (linux_target): Use it.
6184 (linux_trad_target): New function.
6185 * linux-nat.h (linux_trad_target): Declare.
6187 * alpha-linux-nat.c: Include "gdbcore.h".
6188 (alpha_linux_register_u_offset): New function.
6189 (_initialize_alpha_linux_nat): Use linux_trad_target.
6191 * mips-linux-nat.c: Include "gdbcore.h".
6192 (mips_linux_register_u_offset): New function.
6193 (_initialize_mips_linux_nat): Use linux_trad_target.
6195 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6196 * config/arm/nm-linux.h: Delete file.
6198 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
6199 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
6201 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6202 * config/ia64/nm-linux.h: Delete file.
6204 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6205 * config/m32r/nm-linux.h: Delete file.
6207 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6208 * config/m68k/nm-linux.h: Delete file.
6210 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6211 * config/pa/nm-linux.h: Delete file.
6213 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6214 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
6215 * config/powerpc/nm-linux.h: Delete file.
6217 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
6218 * config/s390/nm-linux.h: Delete file.
6220 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6221 * config/sparc/linux64.mh (NAT_FILE): Likewise.
6222 * config/sparc/nm-linux.h: Delete file.
6224 * Makefile.in (alpha-linux-nat.o): Update dependencies.
6225 (mips-linux-nat.o): Likewise.
6227 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
6229 * core-aout.c: Delete file.
6230 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
6231 (core-aout.o): Delete rule.
6232 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
6234 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
6236 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
6237 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
6238 KERNEL_U_ADDR): Remove.
6240 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
6241 (cannot_fetch_register, cannot_store_register): Remove.
6242 (fetch_register): Inline cannot_fetch_register and register_addr.
6243 (store_register): Inline cannot_store_register and register_addr.
6244 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
6245 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
6246 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
6249 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
6250 (fetch_register): Inline register_addr.
6251 (store_register): Inline register_addr.
6252 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
6253 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
6254 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
6256 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
6257 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
6258 REGISTER_U_ADDR): Remove.
6260 * hppa-linux-nat.c (register_addr): Rename to ...
6261 (hppa_linux_register_addr): ... this. Make static.
6262 (fetch_register, store_register): Adapt callers.
6263 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
6265 * ppc-linux-nat.c (kernel_u_size): Remove.
6266 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
6268 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
6269 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
6271 * config/vax/nm-vax.h: Delete file.
6273 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
6275 * MAINTAINERS (Write After Approval): Add myself.
6277 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
6279 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
6280 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
6281 (m68k_linux_sigcontext_reg_offset): Fix typo.
6282 (target_is_uclinux): New.
6283 (m68k_linux_inferior_created): New.
6284 (m68k_linux_get_sigtramp_info): Check for uClinux or
6285 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
6287 (_initialize_m68k_linux_tdep): Register
6288 m68k_linux_inferior_created.
6290 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
6292 * win32-nat.c (win32_detach): Remove delete_command call.
6293 Resume inferior with win32_resume instead of win32_continue.
6295 2007-04-19 Jerome Guitton <guitton@adacore.com>
6297 * ser-mingw.c (fd_is_file): New function.
6298 (file_select_thread): New function.
6299 (ser_console_wait_handle): Add special handling for files.
6301 2007-04-18 Denis Pilat <denis.pilat@st.com>
6303 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
6304 when missing from DW_TAG_subrange_type. Remove the handling of null
6305 return from die_type.
6307 2007-04-18 Maciej W. Rozycki <macro@mips.com>
6309 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
6310 change to rearrange some brackets.
6311 (mips_n32n64_push_dummy_call): Likewise.
6312 (mips_o32_push_dummy_call): Likewise.
6313 (mips_o64_push_dummy_call): Likewise.
6315 2007-04-18 Denis Pilat <denis.pilat@st.com>
6317 * infcmd.c (post_create_inferior): Start with a call to
6318 target_terminal_ours.
6320 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6322 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
6324 (mips_n32n64_push_dummy_call): Likewise. Reformat some
6326 (mips_o32_push_dummy_call): Likewise.
6327 (mips_o64_push_dummy_call): Likewise.
6329 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6331 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
6334 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6336 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
6338 (mips_o32_push_dummy_call): Likewise.
6340 2007-04-17 Andreas Schwab <schwab@suse.de>
6342 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
6343 sal to be bigger than the end of the function.
6345 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6346 Nigel Stephens <nigel@mips.com>
6348 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
6349 argument alignment requirements when calculating stack space
6350 required. When aligning an arg register to eight bytes
6351 boundary, align stack_offset too. Write floating-point
6352 arguments to the appropriate integer register if need go there.
6353 (mips_o64_push_dummy_call): Likewise.
6355 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
6357 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
6358 "sig" arguments, add "regcache" argument.
6359 * gdbarch.c, gdbarch.h: Regenerate.
6361 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
6362 (handle_inferior_event): Call remove_single_step_breakpoints directly
6363 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
6365 * alpha-tdep.c (alpha_software_single_step): Update argument list.
6366 Remove handling of !insert_breakpoints_p case.
6367 * arm-tdep.c (arm_software_single_step): Likewise.
6368 * cris-tdep.c (cris_software_single_step): Likewise.
6369 * mips-tdep.c (mips_software_single_step): Likewise.
6370 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6371 * sparc-tdep.c (sparc_software_single_step): Likewise.
6372 * spu-tdep.c (spu_software_single_step): Likewise.
6374 * alpha-tdep.h (alpha_software_single_step): Update prototype.
6375 * mips-tdep.h (mips_software_single_step): Likewise.
6376 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6377 * sparc-tdep.h (sparc_software_single_step): Likewise.
6379 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
6381 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
6382 when removing single-step breakpoints.
6384 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
6386 * varobj.h (varobj_set_frozen): New
6387 (varobj_get_frozen): New.
6388 (varobj_update): New parameter explicit.
6389 * varobj.c (struct varobj): New fields frozen
6391 (varobj_set_frozen, varobj_get_frozen): New.
6392 (install_new_value): Don't fetch values for
6393 frozen variable object, or children thereof. Allow
6394 a frozen variable object to have non-fetched value.
6395 (varobj_update): Allow updating child variables.
6396 Don't traverse frozen children.
6397 (new_variable): Initialize the frozen field.
6398 (c_value_of_variable): Return NULL for frozen
6399 variable without any value yet.
6400 * mi/mi-cmd-var.c (varobj_update_one): New parameter
6402 (mi_cmd_var_create): Output the 'frozen' field,
6403 as soon as testsuite is adjusted to expect that field.
6404 (mi_cmd_var_set_frozen): New.
6405 (mi_cmd_var_update): Pass the 'explicit' parameter to
6407 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
6408 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
6410 2007-04-13 Paul Brook <paul@codesourcery.com>
6412 * target-descriptions.c (tdesc_named_type): Add ieee_single and
6414 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
6416 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6418 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
6419 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
6420 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
6421 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
6422 * Makefile.in: Remove references to deleted files.
6423 * README: Do not mention deleted ROM monitor interfaces.
6424 * defs.h (enum language): Delete language_scm.
6425 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
6426 (dump_subexp_body_standard): Likewise.
6427 * parse.c (operator_length_standard): Likewise.
6428 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
6429 * remote-mips.c: Do not include remote-utils.h.
6430 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
6432 * value.c: Do not include scm-lang.h.
6433 (unpack_long): Delete scm_unpack call.
6434 * config/h8300/h8300.mt, config/mips/embed.mt,
6435 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
6436 config/sh/embed.mt, config/sh/linux.mt: Remove references to
6438 * NEWS: Mention removed files.
6440 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6442 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
6443 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
6445 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6447 * NEWS: Mention removal of HP aCC support.
6449 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6451 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
6452 first entry for static executables.
6453 (breakpoint_addr): Delete unused variable.
6454 (elf_locate_base): Search for _r_debug in static executables.
6455 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
6458 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6460 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
6461 (bpstat_what, print_one_breakpoint, allocate_bp_location)
6462 (mention): Remove bp_through_sigtramp support.
6463 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
6465 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6467 * breakpoint.c (bpstat_what): Give step-resume higher priority than
6470 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6472 * infrun.c: Doc fixes.
6473 (handle_inferior_event): Clarify debug message.
6474 (insert_step_resume_breakpoint_at_sal): Print a debug message.
6476 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6478 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
6480 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6482 * config/m68k/tm-monitor.h: Delete file.
6483 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
6484 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
6486 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
6487 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
6489 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
6491 * gdbarch.sh (software_single_step): Change the return type
6492 from void to int and reformatted some comments to <= 80
6494 * gdbarch.c, gdbarch.h: Regenerated.
6495 * alpha-tdep.c (alpha_software_single_step): Likewise.
6496 * alpha-tdep.h (alpha_software_single_step): Likewise.
6497 * arm-tdep.c (arm_software_single_step): Likewise.
6498 * cris-tdep.c (cris_software_single_step): Likewise.
6499 * mips-tdep.c (mips_software_single_step): Likewise.
6500 * mips-tdep.h (mips_software_single_step): Likewise.
6501 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6502 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6503 * sparc-tdep.c (sparc_software_single_step): Likewise.
6504 * sparc-tdep.h (sparc_software_single_step): Likewise.
6505 * spu-tdep.c (spu_software_single_step): Likewise.
6506 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
6507 and act accordingly.
6509 2007-04-11 Steve Ellcey <sje@cup.hp.com>
6511 * configure.ac (build_warnings): Add -Wno-char-subscripts.
6512 * configure: Regenerate.
6513 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
6515 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6517 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
6519 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6521 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
6523 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
6524 distinct on the TYPE_STUB_SUPPORTED debug targets.
6525 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
6527 2007-04-11 Joel Brobecker <brobecker@adacore.com>
6529 * sparc-tdep.c (X_RS2): New macro.
6530 (sparc_skip_stack_check): New function.
6531 (sparc_analyze_prologue): Adjust PC past stack probing
6532 sequence if necessary.
6534 2007-04-10 Andreas Schwab <schwab@suse.de>
6536 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
6539 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6541 * breakpoint.c (gdb_breakpoint_query): Really return an
6543 (gdb_breakpoint): Likewise.
6544 * thread.c (gdb_list_thread_ids): Likewise.
6545 (gdb_thread_select): Likewise.
6546 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
6547 (mi_cmd_thread_list_ids): Remove bogus initialization.
6549 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6551 * Makefile.in (SFILES): Remove hpacc-abi.c.
6552 (COMMON_OBS): Remove hpacc-abi.o.
6553 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
6554 (hpacc-abi.o, hpread.o): Delete rules.
6555 * somread.c: Delete extern declarations from hpread.c.
6556 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
6557 (som_symfile_finish): Do not call hpread_symfile_finish.
6558 (som_symfile_init): Do not call hpread_symfile_init.
6559 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
6560 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
6561 * hpacc-abi.c, hpread.c: Deleted.
6563 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6565 * solib-svr4.c (enable_break): Simplify return value.
6566 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
6568 2007-04-10 Andreas Schwab <schwab@suse.de>
6570 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
6571 l_ld_size, l_next_size, l_prev_size, l_name_size.
6573 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
6574 to extract addresses from link map.
6575 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
6576 (LM_NEXT): Likewise.
6577 (LM_NAME): Likewise.
6578 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
6579 (elf_locate_base): Likewise.
6580 (open_symbol_file_object): Likewise.
6581 (svr4_fetch_objfile_link_map): Likewise.
6582 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
6583 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
6585 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
6586 (svr4_lp64_fetch_link_map_offsets): Likewise.
6588 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
6589 removed members. Set l_ld_offset to -1 if not present.
6591 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
6593 Pass stderr of program run with "target remote |"
6595 * serial.c (serial_open): Set error_fd to -1.
6596 * serial.h (struct serial): New field error_fd.
6597 (struct serial_opts): New field avail.
6598 * ser-pipe.c (pipe_open): Create another pair
6599 of sockets. Pass stderr to gdb.
6600 * ser-mingw.c (pipe_windows_open): Pass
6601 PEX_STDERR_TO_PIPE to pex_run. Initialize
6604 (_initialize_ser_windows): Hook pipe_avail.
6605 * ser-base.c (generic_readchar): Check if there's
6606 anything in stderr channel and route that to gdb_stderr.
6608 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
6610 * dbxread.c (read_ofile_symtab): Move current_objfile
6611 clearing to after end_stabs.
6613 2007-04-01 Andreas Schwab <schwab@suse.de>
6615 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
6616 gdbarch instead of current_gdbarch.
6618 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
6620 * varobj.c (varobj_create): Keep varobj value
6621 NULL when evaluating the type.
6623 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
6625 * NEWS: Mention new Windows CE support.
6627 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
6629 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
6630 the obsoletion stanza.
6631 * NEWS: Mention deleted targets.
6633 * config/sh/tm-wince.h: Remove.
6634 * config/sh/wince.mt: Remove.
6635 * config/mips/tm-wince.h: Remove.
6636 * config/mips/wince.mt: Remove.
6639 * wince-stub.c: Remove.
6640 * wince-stub.h: Remove.
6641 * Makefile.in (wince.o): Remove rule.
6642 (wince-stub.o): Likewise.
6644 * mips-tdep.c (mips_next_pc): Make static.
6645 * mips-tdep.h (mips_next_pc): Remove declaration.
6646 * arm-tdep.c (arm_pc_is_thumb): Make static.
6647 (thumb_get_next_pc): Likewise.
6648 (arm_get_next_pc): Likewise.
6649 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
6650 (arm_pc_is_thumb): Likewise.
6651 (thumb_get_next_pc): Likewise.
6652 (arm_get_next_pc): Likewise.
6654 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6656 * MAINTAINERS: Remove d10v entry.
6657 * Makefile.in (SFILES): Remove dwarfread.c.
6658 (COMMON_OBS): Remove dwarfread.o.
6659 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
6660 (remote-est.o, rom68k-rom.o): Delete.
6661 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
6662 target est, target rom68k, and DWARF 1.
6663 * configure.tgt: Mark d10v as removed.
6664 * dwarf2read.c: Doc update.
6665 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
6667 (elf_locate_sections): Do not set them.
6668 (elf_symfile_read): Do not call dwarf_build_psymtabs.
6669 * symfile.h (dwarf_build_psymtabs): Delete prototype.
6670 * config/m68k/monitor.mt (TDEPFILES): Prune.
6671 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
6672 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
6674 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6676 * doublest.c (convert_floatformat_to_doublest): Use
6677 floatformat_classify.
6678 (floatformat_is_nan): Rename to...
6679 (floatformat_classify): ...this. Return more information.
6680 * doublest.h (enum float_kind): New.
6681 (floatformat_is_nan): Replace prototype...
6682 (floatformat_classify): ...with this one.
6683 * valprint.c (print_floating): Use floatformat_classify. Handle
6686 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6688 * README: Mention ISO C library requirement.
6690 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6692 * Makefile.in (SFILES): Remove nlmread.c.
6693 (COMMON_OBS): Remove nlmread.o.
6694 (nlmread.o): Delete rule.
6695 * README: Delete reference to remote-st.c.
6696 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
6697 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
6699 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
6700 (_initialize_i386_tdep): Do not reference them.
6701 * nlmread.c: Delete file.
6702 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
6703 * target.c: Doc update.
6704 * thread.c: Delete commented include.
6705 * config/alpha/tm-alpha.h: Doc update.
6707 2007-03-30 Chris Dearman <chris@mips.com>
6709 * utils.c (string_to_core_addr): Comment typo.
6711 2007-03-30 Chris Dearman <chris@mips.com>
6713 * mips-tdep.c: Comment typo.
6715 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
6717 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
6718 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6719 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6720 * config/powerpc/nm-ppc64-linux.h: Remove file.
6721 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
6722 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
6723 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
6724 * infptrace.c (call_ptrace): Likewise.
6725 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
6726 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
6727 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
6728 (store_register): Likewise.
6730 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6732 * Makefile.in (varobj.o): Add missing dependency.
6734 2007-03-29 Michael Snyder <msnyder@access-company.com>
6736 * MAINTAINERS: Update my email address.
6738 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6740 Add support for exception handling with multiple versions of
6742 * ada-lang.c: Update general comments on how Ada exception catchpoints
6744 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6745 (__gnat_raise_nodefer_with_msg): Delete.
6746 (ada_unhandled_exception_name_addr_ftype): New type.
6747 (exception_support_info): New type.
6748 (ada_unhandled_exception_name_addr): Add forward declaration.
6749 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6750 (default_exception_support_info): New constant.
6751 (exception_support_info_fallback): Likewise.
6752 (exception_info): New global variable.
6753 (ada_exception_support_info_sniffer): New function.
6754 (ada_executable_changed_observer): Likewise.
6755 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6756 ada_unhandled_exception_name_addr.
6757 (ada_unhandled_exception_name_addr): Reimplement to match the
6758 latest Ada runtime implementation.
6759 (error_breakpoint_runtime_sym_not_found): Delete.
6760 (ada_exception_sym_name): Get the exception sym name from
6761 exception_info rather than hardcoding it.
6762 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6763 Update error handling.
6764 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6766 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6768 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6769 (remote-st.o, uw-thread.o): Delete.
6770 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6771 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6772 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6773 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6774 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6775 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6776 rs6000-*-lynxos* to an obsoletion stanza.
6777 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6778 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6779 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6780 i[34567]86-*-netware*.
6781 * NEWS: Mention deleted targets.
6783 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6784 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6785 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6786 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6787 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6788 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6789 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6790 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6791 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6792 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6793 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6794 config/rs6000/tm-rs6000ly.h: Delete files.
6796 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6798 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6799 * interps.c (clear_interpreter_hooks): Do not clear
6800 deprecated_registers_changed_hook.
6801 * regcache.c (registers_changed): Do not call it.
6802 * top.c (deprecated_registers_changed_hook): Do not define it.
6803 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6804 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6805 (tui_remove_hooks): Do not remove it.
6806 (tui_selected_frame_level_changed_hook): Check for negative level.
6807 Use get_selected_frame.
6808 (tui_registers_changed_hook): Deleted.
6810 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6812 * stabsread.c (add_undefined_type): Add extra parameter.
6813 Now handles nameless types separately.
6814 (struct nat): New type.
6815 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6816 New static variables.
6817 (read_type): Update calls to add_undefined_type.
6818 (add_undefined_type_noname): New function.
6819 (add_undefined_type_1): Renames from add_undefined_type.
6820 (cleanup_undefined_types_noname): New function.
6821 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6822 (cleanup_undefined_types): New handles nameless types separately.
6823 (_initialize_stabsread): Initialize our new static constants.
6825 2007-03-29 Denis Pilat <denis.pilat@st.com>
6827 * configure.ac: Test for signal.h.
6828 * configure, config.in: Regenerate.
6830 2007-03-29 Denis Pilat <denis.pilat@st.com>
6832 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6833 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6835 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6837 * arm-wince-tdep.c: New.
6838 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6839 (MT_CFLAGS): Delete.
6841 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6842 solib-legacy.o, solib-svr4.o, and remove wince.o.
6843 * configure.tgt (arm*-*-mingw32ce*): Add.
6844 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6845 (do_target_signal_to_host): Silence 'not used' warning.
6846 * config/arm/tm-wince.h: Remove.
6848 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6850 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6851 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6853 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6854 * config/ia64/tm-linux.h: Remove file.
6855 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6856 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6857 legacy_pc_in_sigtramp.
6858 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6859 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6860 Remove func_name argument.
6861 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6863 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6864 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6865 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6866 (HAVE_STEPPABLE_WATCHPOINT): Define.
6868 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6869 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6870 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6871 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6872 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6873 target_insert_watchpoint, target_remove_watchpoint): Remove.
6874 (FETCH_INFERIOR_REGISTERS): Define.
6875 * ia64-linux-nat.c (ia64_register_addr): Make static.
6876 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6877 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6878 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6879 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6880 (ia64_linux_stopped_by_watchpoint): Make static.
6881 (ia64_linux_can_use_hw_breakpoint): New function.
6882 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6883 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6884 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6886 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6888 * linespec.c: Include language.h.
6889 (find_methods): Add language parameter. Call
6890 lookup_symbol_in_language. Pass language down.
6891 (add_matching_methods): Likewise. Call
6892 lookup_symbol_in_language.
6893 (add_constructors): Likewise.
6894 (find_method): Pass sym_class to collect_methods.
6895 (collect_methods): Add sym_class parameter. Pass language
6897 * symtab.c (lookup_symbol): Rename to ...
6898 (lookup_symbol_in_language): ... this. Add language
6899 parameter. Use passed language instead of current_language.
6900 (lookup_symbol): New as wrapper around
6901 lookup_symbol_in_language.
6902 (lookup_symbol_aux): Add language parameter. Use passed
6903 language instead of current_language.
6904 (search_symbols): Indent.
6905 * symtab.h (enum language): Forward declare.
6906 (lookup_symbol_in_language): Declare.
6907 (lookup_symbol): Update description.
6908 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6909 * ada-lang.c (restore_language): Remove.
6910 (lookup_symbol_in_language): Remove.
6912 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6914 * breakpoint.c (bpstat_num): Add int *num parameter.
6915 * breakpoint.h (bpstat_num): Likewise.
6916 * infcmd.c (continue_command): Adjust to new bpstat_num
6918 (program_info): Likewise.
6920 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6922 * config/sh/tm-sh.h: Remove file.
6923 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6924 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6925 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6926 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6928 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6930 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6931 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6932 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6933 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6934 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6935 sequence if target_shortname is "remote".
6937 2007-03-27 Anton Blanchard <anton@samba.org>
6939 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6940 instead of wordsize when looking for the LR in a stack frame.
6942 2007-03-27 Andreas Schwab <schwab@suse.de>
6943 Daniel Jacobowitz <dan@codesourcery.com>
6945 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6946 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6947 argument. Update all callers.
6948 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6949 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6950 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6951 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6952 (dwarf2_frame_set_adjust_regnum): ...this.
6953 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6954 * rs6000-tdep.c: Include "dwarf2-frame.h".
6955 (rs6000_adjust_frame_regnum): Define.
6956 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6957 Register rs6000_adjust_frame_regnum.
6959 * Makefile.in (rs6000-tdep.o): Update dependencies.
6961 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6963 * Makefile.in: Add support for a "pdf" target.
6965 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6967 * amd64-tdep.c (amd64_init_frame_cache): New function.
6968 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6970 2007-03-26 Nigel Stephens <nigel@mips.com>
6971 Maciej W. Rozycki <macro@mips.com>
6973 * ui-out.c (ui_out_field_core_addr): Truncate address to
6974 TARGET_ADDR_BIT size before printing.
6976 2007-03-22 Nigel Stephens <nigel@mips.com>
6977 Maciej W. Rozycki <macro@mips.com>
6979 * remote-mips.c (mips_xfer_memory): Update prototype.
6981 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6983 * symfile.h: #include "symtab.h"
6985 2007-03-22 Denis Pilat <denis.pilat@st.com>
6987 * utils.c (pagination_on_command, pagination_off_command):
6988 Remove useless prototypes.
6990 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6993 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6994 instead of TYPE_NAME for object base class name.
6997 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6999 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
7000 Specify frame type in calls to frame_func_unwind().
7002 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
7004 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
7005 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
7006 (refine_prologue_limit): Delete.
7007 (skip_prologue): Don't call it. Use extract_unsigned_integer.
7008 Assume lim_pc is set. Correct check for incomplete prologues.
7009 Do not skip clobbers of the frame pointer.
7010 * symtab.c (skip_prologue_using_sal): Fail if there is only one
7013 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
7015 * frame.c (frame_pop): Check to see whether there's a frame to
7016 which we can pop first.
7018 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
7020 * MAINTAINERS (Write After Approval): Add myself.
7022 2007-03-09 Markus Deuling <deuling@de.ibm.com>
7024 * infrun.c (breakpoints_failed): Remove unnecessary variable.
7025 (handle_inferior_event): Remove unnecessary braces.
7026 * breakpoint.c (bpstat_what): Remove wrong comment.
7028 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
7030 * spu-tdep.c (spu_in_function_epilogue_p): New function.
7031 (spu_gdbarch_init): Install it.
7033 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
7035 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
7036 object types, not 0.
7038 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
7040 * spu-tdep.c (spu_frame_align): New function.
7041 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
7043 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
7045 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
7046 (spu_software_single_step): Likewise.
7047 (spu_read_pc, spu_write_pc): New functions.
7048 (spu_gdbarch_init): Install them.
7050 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
7052 * cli/cli-dump.c (struct callback_data): load_offset needs to
7053 have signed long type.
7055 2007-03-07 Joel Brobecker <brobecker@adacore.com>
7057 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
7058 Revert the previous change that had some unexpected side-effects
7060 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
7061 function to get the address of the calling instruction.
7063 2007-03-07 Denis Pilat <denis.pilat@st.com>
7065 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
7066 get_selected_frame by deprecated_safe_get_selected_frame.
7068 2007-03-02 Mark Kettenis <kettenis@gnu.org>
7070 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
7071 "gdb_string.h". Don't include "nbsd-tdep.h".
7072 (SIZEOF_STRUCT_REG): Remove.
7073 (SHNBSD_SIZEOF_GREGS): New.
7074 (shnbsd_supply_gregset, shnbsd_collect_gregset)
7075 (shnbsd_regset_from_core_section): New functions.
7076 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
7077 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
7078 shnbsd_supply_gregset, shnbsd_collect_gregset.
7079 (shnbsd_gregset): New variable.
7080 (shnbsd_init_abi): Set regset_from_core_section.
7081 (GDB_OSABI_NETBSD_CORE): New define.
7082 (shnbsd_core_osabi_sniffer): New function.
7083 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
7084 * Makefile.in (shnbsd-tdep.o): Update dependencies.
7085 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
7087 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
7089 2007-02-28 Joel Brobecker <brobecker@adacore.com>
7091 * gdbtypes.c (replace_type): Fix typo that caused us to not update
7092 length of the types referenced by the new type CV ring.
7094 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7096 * frame.c (frame_pop, frame_observer_target_changed): Call
7098 (flush_cached_frames): Rename to reinit_frame_cache and delete
7100 * frame.h (flush_cached_frames): Delete prototype and update comment.
7102 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
7103 reinit_frame_cache instead of flush_cached_frames. Do not call
7104 select_frame after reinit_frame_cache.
7105 * corelow.c (core_open): Likewise.
7106 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
7107 * infrun.c (prepare_to_proceed, context_switch)
7108 (handle_inferior_event): Likewise.
7109 * linux-fork.c (fork_load_infrun_state): Likewise.
7110 * ocd.c (ocd_start_remote): Likewise.
7111 * remote-e7000.c (e7000_start_remote): Likewise.
7112 * remote-mips.c (device): Likewise.
7113 * thread.c (switch_to_thread): Likewise.
7114 * tracepoint.c (finish_tfind_command): Likewise.
7115 * gdbarch.c: Regenerated.
7117 2007-02-28 Jerome Guitton <guitton@adacore.com>
7118 Joel Brobecker <brobecker@adacore.com>
7120 * gdbtypes.c (check_typedef): Do not replace stub type if
7121 the resolved type is not defined in the same objfile.
7123 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7125 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
7127 2007-02-28 Joel Brobecker <brobecker@adacore.com>
7129 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
7130 symbol for Ada units when the symbol is defined using 't' rather
7131 than 'Tt' as symbol descriptor.
7133 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7135 * config/mips/tm-nbsd.h: Delete file.
7136 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
7137 * config/sh/tm-nbsd.h: Delete file.
7138 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
7140 2007-02-28 Joel Brobecker <brobecker@adacore.com>
7142 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
7143 unused WRONG_PARAM value since it was recently deleted.
7145 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
7147 * varobj.c (varobj_update): Free temporary vectors.
7149 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7151 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
7152 * config/powerpc/tm-linux.h: Delete file.
7153 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
7154 (PROCESS_LINENUMBER_HOOK): Do not undefine.
7155 (TEXT_SEGMENT_BASE): Do not redefine.
7156 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
7157 from config/rs6000/tm-rs6000.h.
7158 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
7159 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
7160 (TEXT_SEGMENT_BASE): Remove.
7161 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
7162 (rs6000_in_solib_return_trampoline): Remove.
7163 (SKIP_TRAMPOLINE_CODE): Remove.
7164 (rs6000_skip_trampoline_code): Remove.
7165 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
7166 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
7167 (FP0_REGNUM): Remove.
7168 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
7169 (rs6000_set_host_arch_hook): Remove.
7170 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
7171 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
7172 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
7173 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
7174 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
7175 * rs6000-nat.c: Include "rs6000-tdep.h".
7176 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
7177 (set_host_arch): Rename to ...
7178 (rs6000_create_inferior): ... this. Make public.
7179 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
7180 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
7181 (rs6000_create_inferior): Remove.
7182 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
7183 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
7184 set_gdbarch_in_solib_return_trampoline, and
7185 set_gdbarch_skip_trampoline_code.
7186 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
7187 from config/rs6000/tm-rs6000.h.
7189 2007-02-27 Joel Brobecker <brobecker@adacore.com>
7191 * buildsym.c (record_producer): Do nothing if no producer is provided.
7193 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
7195 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
7196 to check changelist is non-NULL. Call error if the frontend tries
7197 to update a non-root variable.
7199 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
7201 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7203 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
7204 (dwarf2_frame_sniffer): Update.
7205 (dwarf2_signal_frame_this_id): New function.
7206 (dwarf2_signal_frame_unwind): Use it.
7207 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
7208 * frame.c (frame_func_unwind): Add this_type argument.
7209 (get_frame_func): Update.
7210 (frame_unwind_address_in_block): Add this_type argument and check it.
7212 (get_frame_address_in_block): Update.
7213 * frame.h (enum frame_type): Move higher in the file.
7214 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
7217 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
7218 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
7219 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
7220 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
7221 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
7222 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
7223 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
7224 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
7225 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
7226 frame_func_unwind and frame_unwind_address_in_block to specify
7227 the frame type. Use frame_unwind_address_in_block instead of
7228 frame_pc_unwind in sniffers.
7230 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7232 * frame.c (deprecated_selected_frame): Rename to...
7233 (selected_frame): ...this. Make static.
7234 (get_selected_frame, select_frame): Update.
7235 * frame.h (deprected_select_frame): Delete.
7236 (deprecated_safe_get_selected_frame): Update comments.
7238 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
7239 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
7240 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
7241 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
7242 tui/tui.c: Replace references to deprecated_selected_frame.
7244 2007-02-27 Fred Fish <fnf@specifix.com>
7246 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
7247 directly decrement the stack pointer, accumulate their operand into
7248 the stack offset, and mark the function as not being frameless.
7250 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7252 * arch-utils.c (selected_byte_order): New.
7253 * arch-utils.h (selected_byte_order): New prototype.
7254 * remote-sim.c (gdbsim_open): Use selected_byte_order.
7256 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7258 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
7259 (default_symfile_offsets): Check VMA here. Update section VMAs.
7261 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7263 * remote.c (init_remote_state): Add special handling for placeholder
7266 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7268 * Makefile.in (XMLFILES): Include $(TDEP_XML).
7269 (filenames_h): New variable.
7270 (clean): Clean up xml-builtin.c and stamp-xml.
7271 (arm-linux-nat.o): Update.
7272 * config/arm/linux.mh (TDEP_XML): Define.
7273 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
7274 (arm_linux_has_wmmx_registers): New.
7275 (GET_THREAD_ID): Fix typo.
7276 (IWMMXT_REGS_SIZE): Define.
7277 (fetch_wmmx_regs, store_wmmx_regs): New.
7278 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
7279 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
7280 (super_xfer_partial, arm_linux_xfer_partial): New.
7281 (_initialize_arm_linux_nat): Use them.
7282 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
7283 (xml_builtin_xfer_partial): New function.
7284 * xml-support.h (xml_builtin_xfer_partial): New prototype.
7285 * NEWS: Update mention of iWMMXt support.
7287 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7289 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
7290 if there are no FPA registers.
7291 (arm_dwarf_reg_to_regnum): New function.
7292 (arm_register_type, arm_register_name): Return minimal values for
7293 unsupported registers.
7294 (arm_register_sim_regno): Handle iWMMXt registers.
7295 (arm_gdbarch_init): Record missing FPA registers if indicated by
7296 a target description. Recognize iWMMXt registers. Only register
7297 "info float" for FPA. Use ARM_NUM_REGS. Register
7298 arm_dwarf_reg_to_regnum.
7299 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
7301 (struct gdbarch_tdep): Add have_fpa_registers.
7302 * features/xscale-iwmmxt.xml: Update capitalization.
7303 * regformats/arm-with-iwmmxt.dat: Regenerated.
7305 2007-02-24 Kevin Buettner <kevinb@redhat.com>
7307 * NEWS (New targets): Add entry for the Toshiba Media Processor.
7309 2007-02-23 Kevin Buettner <kevinb@redhat.com>
7311 * MAINTAINERS (mep): New target.
7313 2007-02-23 Kevin Buettner <kevinb@redhat.com>
7315 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
7317 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
7318 (mep-tdep.o): New rule.
7319 * configure.tgt (mep-*-*): New target.
7320 * mep-tdep.c: New file.
7321 * config/mep/mep.mt: New file.
7323 2007-02-22 Markus Deuling <deuling@de.ibm.com>
7325 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
7326 BREAKPOINT_HIT and STOP_UNKNOWN.
7328 2007-02-22 Markus Deuling <deuling@de.ibm.com>
7330 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
7332 2007-02-20 Joel Brobecker <brobecker@adacore.com>
7334 * gdb_expat.h (XMLCALL): Define if not already defined.
7336 2007-02-20 Andreas Schwab <schwab@suse.de>
7338 * Makefile.in (symfile.o): Update dependencies.
7340 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
7342 * MAINTAINERS: Disable -Werror for cris simulator. Build
7343 sparc64-solaris2.10 instead of the broken sparc-elf.
7344 * solib-frv.c: Include "solib.h".
7345 * Makefile.in (solib-frv.o): Update.
7346 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
7347 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
7348 (xtensa_frame_this_id, xtensa_frame_prev_register)
7349 (xtensa_push_dummy_call): Use %p.
7351 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7353 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7354 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
7355 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7356 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
7357 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
7358 (sparc-linux-tdep.o): Update.
7360 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
7362 * xtensa-tdep.h (xtensa_reg_mask_t): New.
7363 (xtensa_mask_t): Change mask field to be a separate array.
7364 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
7365 (xtensa_pseudo_register_write, xtensa_unwind_pc)
7366 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
7367 (xtensa_breakpoint_from_pc): Remove implicit type casting.
7368 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
7369 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
7370 (mask14, mask15): Rename to
7371 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
7372 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
7373 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
7374 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
7375 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
7376 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
7377 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
7378 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
7379 (xtensa_submask14, xtensa_submask15): New.
7380 (rmap): Follow strict aliasing rules doing static initialization.
7382 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
7384 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
7385 handling from here...
7386 (tdesc_register_type): ...to here.
7387 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
7388 * features/arm-core.xml: Use code_ptr and data_ptr.
7390 2007-02-13 Denis Pilat <denis.pilat@st.com>
7392 * varobj.h (enum varobj_update_error): New enum.
7393 * varobj.c (struct varobj_root): Add is_valid member.
7394 (varobj_get_type): Check for invalid varobj.
7395 (varobj_get_attributes): Likewise.
7396 (variable_editable):Likewise.
7397 (varobj_update): Likewise. Use varobj_update_error.
7398 (new_root_variable): Set root varobj as valid by default.
7399 (varobj_invalidate): New function.
7400 * symfile.c (clear_symtab_users): Use varobj_invalidate.
7401 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
7402 Use varobj_update_error.
7404 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
7407 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
7408 Pascal language marker.
7409 * dwarf2read.c (set_cu_language): Likewise.
7411 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
7413 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
7414 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
7415 instead of target_terminal_init since inferior_ptid isn't set yet.
7417 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
7419 * MAINTAINERS (Write After Approval): Add myself.
7421 2007-02-09 Fred Fish <fnf@specifix.com>
7423 Based on work by Apple Computer, Inc.
7424 * event-top.c (async_request_quit): Call quit() whenever either
7425 quit_flag is set or immediate_quit is set.
7427 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7429 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
7430 type to a pointer to const struct block.
7431 (ada_lookup_symbol_list): Don't cast away constness when calling
7432 remove_out_of_scope_renamings.
7434 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7436 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
7437 address of 'filename'; it is always non null.
7439 2007-02-09 Joel Brobecker <brobecker@adacore.com>
7441 * exec.c (add_to_section_table): Do not discard empty sections.
7443 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7445 * features/Makefile, features/arm-with-iwmmxt.xml,
7446 features/gdbserver-regs.xsl, features/number-regs.xsl,
7447 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
7448 * regformats/arm-with-iwmmxt.dat: Generate.
7449 * NEWS: Mention iWMMXt.
7451 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7453 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
7454 (xml-tdesc.o): Update.
7455 * xml-support.c: Add a comment.
7456 (gdb_xml_enums_boolean): New variable.
7457 (gdb_xml_parse_attr_enum): Use strcasecmp.
7458 * xml-support.h (gdb_xml_enums_boolean): Declare.
7459 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
7460 next_regnum, and current_union.
7461 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
7462 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
7463 (field_attributes, union_children, reg_attributes, union_attributes)
7464 (vector_attributes, feature_attributes, feature_children): New.
7465 (target_children): Make static. Add <feature>.
7466 (tdesc_elements): Make static.
7467 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
7468 (struct tdesc_feature, tdesc_feature_p): New types.
7469 (struct target_desc): Add features member.
7470 (struct tdesc_arch_data, tdesc_data): New.
7471 (target_find_description): Clarify error message. Warn about
7472 ignored register descriptions.
7473 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7474 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
7475 (tdesc_data_cleanup, tdesc_numbered_register)
7476 (tdesc_numbered_register_choices, tdesc_find_register)
7477 (tdesc_register_name, tdesc_register_type)
7478 (tdesc_remote_register_number, tdesc_register_reggroup_p)
7479 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
7480 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
7481 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
7482 (tdesc_create_feature, tdesc_record_type): New.
7483 (free_target_description): Free features.
7484 (_initialize_target_descriptions): Initialize tdesc_data.
7485 * arch-utils.c (default_remote_register_number): New.
7486 * arch-utils.h (default_remote_register_number): New prototype.
7487 * target-descriptions.h (set_tdesc_pseudo_register_name)
7488 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
7489 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
7490 (tdesc_numbered_register, tdesc_numbered_register_choices)
7491 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7492 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
7493 (tdesc_create_reg): Declare.
7494 * gdbarch.sh (remote_register_number): New entry.
7495 * gdbarch.c, gdbarch.h: Regenerate.
7496 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
7497 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
7499 * arm-tdep.c (arm_register_aliases): New.
7500 (arm_register_name_strings): Rename to...
7501 (arm_register_names): ...this. Make const. Delete the old version.
7502 (current_option, arm_register_byte): Delete.
7503 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
7504 (value_of_arm_user_reg): New.
7505 (arm_gdbarch_init): Verify any described registers. Call
7506 tdesc_use_registers. Don't use arm_register_byte. Create aliases
7507 for standard register names.
7508 (_initialize_arm_tdep): Do not adjust arm_register_names.
7509 * user-regs.c (struct user_reg): Add baton member.
7510 (append_user_reg, user_reg_add_builtin, user_regs_init)
7511 (user_reg_add, value_of_user_reg): Use a baton for user
7513 * std-regs.c: Update.
7514 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
7515 (user_reg_add): Add baton argument.
7516 * NEWS: Mention target description register support.
7517 * features/arm-core.xml, features/arm-fpa.xml: New.
7518 * eval.c (evaluate_subexp_standard): Allow ptype $register
7519 when the program is not running.
7521 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
7523 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
7525 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
7527 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
7528 info->disassembler_options to "any".
7530 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7532 * varobj.c (install_new_value): Only call value_get_print_value
7535 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7537 Reported by timeless@gmail.com:
7538 * gdb/target.c (target_flash_erase): Do not return void value.
7539 (target_flash_done): Likewise.
7540 * gdb/cli/cli-cmds.c (source_command): Likewise.
7542 2007-02-08 Fred Fish <fnf@specifix.com>
7544 Based on work by Apple Computer, Inc.
7545 * event-top.c (handle_sigint): Set quit_flag.
7546 (async_request_quit): Don't set quit_flag. Avoid calling quit()
7547 if quit_flag has already been reset.
7549 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7551 * ser-mingw.c (pipe_windows_close): Move variable initialization back
7554 2007-02-08 Fred Fish <fnf@specifix.com>
7556 * defs.h (request_quit): Remove declaration.
7557 * utils.c (request_quit): Remove definition.
7559 2007-02-08 Joel Brobecker <brobecker@gnat.com>
7560 Jan Kratochvil <jan.kratochvil@redhat.com>
7561 Daniel Jacobowitz <dan@codesourcery.com>
7563 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
7564 (skip_prologue): Allow bl->blrl used by PIC code.
7566 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7567 Daniel Jacobowitz <dan@codesourcery.com>
7569 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
7570 initialize tmp_obstack.
7571 * p-valprint.c (pascal_object_print_value_fields)
7572 (pascal_object_print_value): Likewise.
7574 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7576 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
7578 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7580 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7581 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
7583 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7585 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
7587 (tdesc_parse_xml): Cache expanded descriptions.
7589 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7591 * Makefile.in (XMLFILES): New.
7592 (COMMON_OBS): Add xml-builtin.o.
7593 (xml-builtin.c, stamp-xml): New rules.
7594 (xml-tdesc.o): Update.
7595 * features/feature_to_c.sh: New file.
7596 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
7597 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
7598 (gdb_xml_start_element): Initialize scope after possibly reallocating
7599 scopes. Move cleanup later. Handle the XInclude description
7601 (gdb_xml_end_element): Only parse the body if there is a current element.
7602 Call XML_DefaultCurrent if there is no element.
7603 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
7604 (struct xinclude_parsing_data, xinclude_start_include)
7605 (xinclude_end_include, xml_xinclude_default)
7606 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
7607 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
7608 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
7609 * xml-support.h (xml_fetch_another, xml_process_xincludes)
7610 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
7611 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
7612 XInclude directives. Use the compiled in DTD.
7613 (fetch_xml_from_file): Add baton argument. Treat it as a containing
7614 directory name. Do not warn here.
7615 (file_read_description_xml): Update call. Warn here instead. Pass
7617 (fetch_available_features_from_target): New.
7618 (target_read_description_xml): Use it.
7619 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
7621 * features/xinclude.dtd: New file.
7623 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7625 * linux-thread-db.c (check_for_thread_db): Return early if we have
7626 no libthread_db support.
7628 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7630 * mi/mi-parse.h: Include <sys/time.h>.
7632 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
7634 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
7635 instead of print_variable_value to print values.
7637 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7639 * mi/mi-main.c: Numerous formatting changes.
7640 (mi_cmd_data_write_register_values): Replace clause inadvertantly
7641 removed in my previous change.
7643 2007-02-03 Eli Zaretskii <eliz@gnu.org>
7645 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
7646 Use 1000000L instead of 1000000.
7648 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7650 Based on work by Apple Computer, Inc.
7652 * configure.ac: Test for sys/resource.h and getrusage.
7653 * configure, config.in: Regenerate.
7655 * mi/mi-main.c: Include <sys/resource.h> if present.
7656 (rusage): Declare if HAVE_GETRUSAGE.
7657 (current_command_ts, do_timings): New static variables.
7658 (timestamp, print_diff_now, print_diff, timeval_diff):
7659 New static timing functions.
7660 (mi_cmd_enable_timings): New function for new MI command.
7661 (captured_mi_execute_command, mi_execute_async_cli_command):
7662 Call timing functions.
7664 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
7667 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
7669 * mi/mi-parse.h: (mi_timestamp): New structure.
7670 (mi_parse): Add mi_timestamp* member.
7672 2007-02-02 Denis Pilat <denis.pilat@st.com>
7674 * thread.c (make_cleanup_restore_current_thread): New function.
7675 (info_threads_command): Use of make_cleanup_restore_current_thread
7676 to restore the current thread and the selected frame.
7677 (restore_selected_frame): New function.
7678 (struct current_thread_cleanup): Add frame_id field.
7679 (do_restore_current_thread_cleanup): Add restoring of the selected
7681 (make_cleanup_restore_current_thread): Likewise.
7682 (thread_apply_all_command): backup the selected frame while
7683 entering the function and restore it at exit.
7684 (thread_apply_command): Likewise.
7686 2007-02-02 Denis Pilat <denis.pilat@st.com>
7688 * MAINTAINERS (Write After Approval): Add myself to the list.
7690 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7692 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
7693 (m32r_store_register): Ditto.
7695 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
7697 * ser-mingw.c (pipe_windows_open)
7698 (pipe_windows_read, pipe_windows_write): Declare
7699 variables at the top of the function.
7701 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7703 * doublest.c (floatformat_from_length): Use the right element from
7704 gdbarch floatformats.
7705 (floatformat_from_type, extract_typed_floating)
7706 (store_typed_floating): Likewise.
7707 * doublest.h: Remove declarations for undefined floatformat arrays.
7708 * gdbarch.sh (float_format, double_format, long_double_format): Change
7710 (pformat): Update for pairs.
7711 * gdbarch.c, gdbarch.h: Regenerated.
7712 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
7713 (floatformats_ieee_double_littlebyte_bigword)
7714 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
7715 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
7716 (floatformats_vax_d): New variables.
7717 (builtin_type_ieee_single, builtin_type_ieee_double)
7718 (builtin_type_arm_ext, builtin_type_ia64_spill)
7719 (builtin_type_ia64_quad): Replace arrays with individual types.
7720 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
7721 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
7722 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
7723 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
7724 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
7725 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
7726 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
7727 unused and endian-specific types.
7728 (recursive_dump_type): Update for floatformat pairs.
7729 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
7730 (build_gdbtypes): Use build_flt.
7731 (_initialize_gdbtypes): Update set of initialized types.
7732 * gdbtypes.h: Update declarations to match gdbtypes.c.
7733 (struct main_type): Store a pointer to two floatformats.
7734 * arch-utils.c (default_float_format, default_double_format): Delete.
7735 * arch-utils.h (default_float_format, default_double_format): Delete.
7737 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7738 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7739 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7740 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7741 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7743 2007-01-29 Joel Brobecker <brobecker@adacore.com>
7745 * target.c (maintenance_print_target_stack): New function.
7746 (initialize_targets): Add new "maintenance print target-stack"
7749 2007-01-28 Mark Kettenis <kettenis@gnu.org>
7751 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7753 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7755 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7756 (struct dwarf2_loclist_baton): Likewise.
7758 2007-01-27 Eli Zaretskii <eliz@gnu.org>
7760 * cli/cli-script.c: Include breakpoint.h.
7761 (build_command_line): Require arguments only for if and while
7763 (get_command_line, execute_user_command, execute_control_command):
7764 Fix wording of warning messages.
7765 (print_command_lines): Print breakpoint commands.
7766 (execute_control_command): Call commands_from_control_command to
7767 handle the `commands' command inside a body of a flow-control
7769 (read_next_line): Recognize the `commands' command and build a
7770 command line structure for it.
7771 (recurse_read_control_structure, read_command_lines): Handle
7772 `commands' similarly to `if' and `while'.
7774 * breakpoint.c (get_number_trailer): Document the special meaning
7775 of NULL as the first argument PP.
7776 (commands_from_control_command): New function.
7778 * breakpoint.h (commands_from_control_command): Add prototype.
7780 * defs.h (commands_control): New enumerated value for enum
7781 command_control_type.
7783 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7785 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7786 (ada_exception_sal): Update accordingly.
7788 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7790 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7791 * NEWS: Describe CHAR array vs. string identifcation rules.
7793 2007-01-25 Paul Brook <paul@codesourcery.com>
7795 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7797 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7799 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7800 expression is empty, bother to return the 'optimized out' value we
7801 construct. (Thanks to Carl Burch.)
7803 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7805 * varobj.c (c_value_of_root, c_value_of_child)
7806 (cplus_describe_child): Don't call release_value.
7808 2007-01-24 Thiemo Seufer <ths@mips.com>
7810 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7813 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7815 Refactor getting children name, value and type access
7817 * varobj.c (get_type_deref): Remove.
7818 (adjust_value_for_child_access): New.
7819 (c_number_of_children): Use the above.
7820 (c_describe_child): Likewise.
7821 (enum accessibility): New.
7822 (match_accessibility): New function.
7823 (cplus_describe_child): New function.
7824 (cplus_name_of_child, cplus_value_of_child)
7825 (cplus_type_of_child): Reimplement in terms
7826 of cplus_describe_child.
7827 (cplus_number_of_children): Use
7828 adjust_value_for_child_access.
7830 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7832 Fix computation of the 'editable' attribute and
7833 value changeability for for references.
7834 * varobj.c (get_value_type): New function.
7835 (c_variable_editable): Use get_value_type.
7836 (varobj_value_is_changeable): Likewise.
7838 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7840 * source.c (find_and_open_source): Try rewriting the source
7841 path inside filename if dirname is NULL.
7843 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7845 * dwarf2read.c (add_partial_symbol): Create an extra partial
7846 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7847 (new_symbol): Likewise for symbols.
7849 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7851 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7853 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7855 * value.c (value_primitive_field): Copy the full 'location'
7856 contents, instead of assuming that copying ADDRESS will
7857 bring over everything in the union. Remove obsolete comment.
7859 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7861 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7862 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7863 (m32c_m16c_pointer_to_address): Separate code from declarations.
7865 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7867 * target.c (update_current_target): Correct typo.
7869 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7871 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7874 2007-01-11 Andrew Cagney <cagney@redhat.com>
7875 Daniel Jacobowitz <dan@codesourcery.com>
7876 Jan Kratochvil <jan.kratochvil@redhat.com>
7878 * dwarf2-frame.c (execute_cfa_program): New support of
7879 `DW_CFA_GNU_negative_offset_extended'.
7881 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7883 * NEWS: Mention flash support for "load" and new remote packets.
7885 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7887 * breakpoint.c (delete_command): Skip redundant loop iterations.
7889 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7891 * gdbarch.sh (register_type): Update comment.
7892 * gdbarch.h: Regenerated.
7893 * arch-utils.c (generic_register_size): Call register_type.
7894 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7895 * m32c-tdep.c (check_for_saved): Likewise.
7896 * mips-tdep.c (mips_print_register, print_gp_register_row)
7897 (mips_print_registers_info): Likewise.
7898 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7900 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7901 (sh64_do_register, sh64_print_register)
7902 (sh64_media_print_registers_info): Likewise.
7903 * tui/tui-regs.c (tui_register_format): Likewise.
7905 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7907 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7909 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7910 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7911 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7912 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7913 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7914 (make_symbol_completion_list): Likewise.
7916 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7917 Daniel Jacobowitz <dan@codesourcery.com>
7919 * buildsym.c (end_symtab): Use preallocated symtab if available.
7920 Fill in SYMBOL_SYMTAB.
7921 * buildsym.h (struct subfile): Add symtab member.
7922 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7923 (struct file_entry): Add symtab.
7924 (free_cu_line_header): New function.
7925 (read_file_scope): Use it. Save line_header in the cu. Process
7927 (add_file_name): Initialize new symtab member.
7928 (dwarf_decode_lines): Create symtabs for included files.
7929 (new_symbol): Set SYMBOL_SYMTAB.
7930 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7931 (search_symbols): Likewise.
7932 * symtab.h (struct symbol): Add symtab member.
7933 (SYMBOL_SYMTAB): Define.
7935 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7937 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7939 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7941 * arch-utils.c (show_endian): Correct reversed condition.
7943 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7945 * MAINTAINERS (Write After Approval): Add myself.
7947 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7948 Vladimir Prus <vladimir@codesourcery.com>
7950 Fix 'selected frame' varobjs.
7951 * varobj.c (struct varobj): Remove the error field.
7952 (varobj_set_value): Don't check var->error.
7953 (install_new_value): Don't set var->error.
7954 (varobj_update): Always pass the new value
7955 of the root via install_new_value.
7956 (create_child): Don't set error field.
7957 (new_variable): Likewise.
7958 (c_value_of_root): Always reevaluate the value
7959 of selected frame varobjs in the selected frame.
7960 Don't call reinit_frame_cache.
7962 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7964 * source.c (_initialize_source): Improve the help text of
7965 the substitute-path commands.
7967 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7969 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7970 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7971 (frv_skip_prologue): Remove prototypes.
7972 (frv_adjust_breakpoint_address): Renamed from
7973 frv_gdbarch_adjust_breakpoint_address.
7974 (frv_gdbarch_init): Adjust.
7976 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7978 * gdbarch.sh (deprecated_extract_return_value)
7979 (deprecated_store_return_value): Remove.
7980 (extract_return_value, store_return_value): Remove default values.
7981 * gdbarch.c, gdbarch.h: Regenerate.
7982 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7983 (legacy_store_return_value): Remove.
7984 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7987 * mi/mi-main.c: Remove obsolete comment.
7989 * regcache.c, regcache.h (deprecated_register_bytes)
7990 (deprecated_read_register_bytes)
7991 (deprecated_write_register_bytes): Remove.
7993 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7994 Don't forget to move destination pointer.
7996 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7998 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
8000 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
8002 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
8003 past entry function with recent newlib.
8005 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
8007 * gdb.texinfo (GDB/MI Variable Objects): Improve the
8008 introduction. Specify -var-update more exactly.
8010 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
8012 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
8014 2007-01-10 Jim Blandy <jimb@codesourcery.com>
8016 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
8017 the Global Maintainers' invitation to be a global maintainer.
8019 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
8021 * infrun.c (singlestep_pc): New variable.
8022 (resume): Set singlestep_pc.
8023 (context_switch): Add a debugging message. Flush the frame cache.
8024 (handle_inferior_event): Add debugging messages. Handle thread
8025 hops when a software single step has completed. Let context_switch
8026 handle flushing the frame cache.
8028 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8030 * NEWS: Mention target descriptions, "set tdesc filename",
8031 "unset tdesc filename", "show tdesc filename", and
8032 qXfer:features:read.
8033 * arch-utils.c (choose_architecture_for_target): New function.
8034 (gdbarch_info_fill): Call it.
8035 * target-descriptions.c (struct property): Make members non-const.
8036 (struct target_desc): Add arch member.
8037 (target_description_filename): New variable.
8038 (target_find_description): Try via XML first.
8039 (tdesc_architecture): New.
8040 (free_target_description, make_cleanup_free_target_description): New.
8041 (set_tdesc_property): Call xstrdup.
8042 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
8043 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
8044 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
8045 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
8046 * target-descriptions.h (tdesc_architecture)
8047 (make_cleanup_free_target_description, set_tdesc_architecture): New
8049 * Makefile.in (SFILES): Add xml-tdesc.c.
8050 (COMMON_OBS): Add xml-tdesc.o.
8051 (target-descriptions.o): Update.
8052 (xml-tdesc.o): New rule.
8053 * xml-tdesc.c, xml-tdesc.h: New files.
8054 * remote.c (PACKET_qXfer_features): New enum.
8055 (remote_protocol_features): Add qXfer:features:read.
8056 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
8057 (_initialize_remote): Register qXfer:features:read.
8058 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
8059 * features/gdb-target.dtd: New file.
8061 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8063 * copyright.sh: Clarify error.
8065 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8067 * symtab.c (matching_bfd_sections): Fix VMA matching for
8070 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8072 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
8075 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8077 Updated copyright notices for most files.
8079 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8081 * copyright.sh (prunes): Add step-line.inp and step-line.c.
8083 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8085 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
8087 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
8089 * configure, config.in: Regenerate.
8090 * defs.h (debug_file_directory): Declare.
8091 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
8092 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
8093 relocate it if DEBUGDIR_RELOCATABLE.
8094 * symfile.c (debug_file_directory): Make non-static.
8095 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
8096 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
8097 (_initialize_symfile): Don't initialize debug_file_directory here.
8099 2007-01-09 Jim Blandy <jimb@codesourcery.com>
8101 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
8104 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8106 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
8107 frame_unwind_register to recurse.
8108 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
8109 (alpha_heuristic_frame_prev_register): Likewise.
8110 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
8111 * m32c-tdep.c (m32c_prev_register): Likewise.
8112 * frame.c (frame_register_unwind_location): Remove FIXME.
8114 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8115 Eli Zaretskii <eliz@gnu.org>
8117 * copyright.sh: New file.
8119 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8121 * configure.ac: Check for XML_StopParser.
8122 * xml-support.c (gdb_xml_body_text): Check for an error.
8123 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
8124 (gdb_xml_end_element_wrapper): Likewise.
8125 * config.in, configure: Regenerated.
8127 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
8129 * varobj.c (install_new_value): Always update print_value.
8130 (value_get_print_value): Immediately return NULL for missing
8133 2007-01-08 Jim Blandy <jimb@codesourcery.com>
8135 * configure.ac: Tighten pattern for extracting value of
8136 DEPRECATED_TM_FILE from the target makefile fragment.
8137 * configure: Regenerated.
8139 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
8141 * linux-nat.c (struct simple_pid_list): Add status.
8142 (add_to_pid_list): Record the PID's status.
8143 (linux_record_stopped_pid): Likewise. Make static.
8144 (pull_pid_from_list): Return the saved status.
8145 (linux_nat_handle_extended): Deleted.
8146 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
8147 Make static. Handle non-SIGSTOP for a new thread's first signal.
8148 (flush_callback): Handle unexpected pending signals.
8149 (linux_nat_wait): Update calls to changed functions.
8150 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
8151 Remove prototypes for newly static functions.
8153 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
8155 * gdbarch.sh (value_from_register): New gdbarch function.
8156 * gdbarch.c, gdbarch.h: Regenerate.
8157 * findvar.c (default_value_from_register): New function.
8158 (value_from_register): Use gdbarch_value_from_register.
8159 * value.h (default_value_from_register): Declare.
8160 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
8161 spu_value_to_register): Remove.
8162 (spu_value_from_register): New function.
8163 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
8164 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
8165 Call set_gdbarch_value_from_register.
8166 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
8167 s390_value_to_register): Remove.
8168 (s390_value_from_register): New function.
8169 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
8170 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
8171 Call set_gdbarch_value_from_register.
8173 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
8175 * NEWS: Add "set sysroot" and "show sysroot".
8176 * solib.c (solib_absolute_prefix): Delete. Replace
8177 all uses with gdb_sysroot.
8178 (_initialize_solib): Add "set sysroot" and "show sysroot".
8179 Make "solib-absolute-prefix" an alias to it.
8181 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
8183 * frame.c (get_frame_register_bytes): New function.
8184 (put_frame_register_bytes): Likewise.
8185 * frame.h (get_frame_register_bytes): Declare.
8186 (put_frame_register_bytes): Likewise.
8187 * findvar.c (value_from_register): Always construct lval_register
8188 values. Use get_frame_register_bytes.
8189 * valops.c (value_assign): Use get_frame_register_bytes and
8190 put_frame_register_bytes.
8192 2007-01-08 Jim Blandy <jimb@codesourcery.com>
8194 * MAINTAINERS: Update Stan Shebs' email address.
8196 2007-01-07 Joel Brobecker <brobecker@adacore.com>
8198 * ada-lang.c (is_known_support_routine): Improve the implementation.
8200 2007-01-06 Joel Brobecker <brobecker@adacore.com>
8202 * ada-lang.c: Add include of source.h.
8203 (is_known_support_routine): Improve the check verifying that the file
8204 associated to this frame exists.
8205 * Makefile.in (ada-lang.o): Add dependency on source.h.
8207 2007-01-07 Jim Blandy <jimb@codesourcery.com>
8209 * ax-general.c (ax_const_l): Select proper opcode for the given
8212 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
8214 * varobj.c (c_value_of_root): Don't select frame if variable
8215 object is out of scope.
8217 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
8219 * varobj.c (struct varobj): New member print_value.
8220 (install_new_value): Compare last printed value with current one
8221 instead of contents.
8222 (new_variable): Initialize var->print_value to NULL.
8223 (free_variable): Free var->print_value.
8224 (value_get_print_value): New function derived from
8225 c_value_of_variable.
8226 (c_value_of_variable): Use value_get_print_value.
8228 2007-01-05 Joel Brobecker <brobecker@adacore.com>
8230 * i386-tdep.c (i386_analyze_stack_align): Add comment.
8232 2007-01-05 Joel Brobecker <brobecker@adacore.com>
8234 * NEWS: Add entries for new catch commands.
8236 2007-01-05 Joel Brobecker <brobecker@adacore.com>
8238 * dwarf2read.c (partial_die_info): Add field has_byte_size.
8239 (add_partial_symbol): Correct identification of external references.
8240 (process_structure_scope): Likewise.
8241 (read_partial_die): Handle DW_AT_byte_size attribute.
8243 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
8245 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
8247 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
8249 * varobj.c (get_type_deref): Fix variable objects for references to
8252 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8254 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
8257 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8259 * memory-map.c (struct_memory_map_parsing_data): Remove most
8260 members. Make property_name an array.
8261 (free_memory_map_parsing_data, memory_map_start_element)
8262 (memory_map_end_element, memory_map_character_data): Delete.
8263 (memory_map_start_memory, memory_map_end_memory)
8264 (memory_map_start_property, memory_map_end_property): New functions.
8265 (property_attributes, memory_children, memory_type_enum)
8266 (memory_attributes, memory_map_children, memory_map_elements): New.
8267 (parse_memory_map): Rewrite.
8268 * xml-support.c (debug_xml): New.
8269 (xml_get_required_attribute, xml_get_integer_attribute)
8270 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
8272 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
8273 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
8274 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
8275 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
8276 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
8277 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
8278 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
8280 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
8281 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
8282 (enum gdb_xml_element_flag, struct gdb_xml_element)
8283 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
8284 (struct gdb_xml_enum): New.
8285 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
8286 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
8287 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
8288 (xml_get_required_attribute, xml_get_integer_attribute)
8289 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
8290 * Makefile.in (xml_support_h, xml-support.o): Update.
8292 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8294 * Makefile.in (eval.o): Update dependencies.
8295 * eval.c: Include "ui-out.h" and "exceptions.h".
8296 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
8297 Use value_zero if an error occurs when avoiding side effects.
8298 * varobj.c (c_value_of_root): Initialize new_val.
8300 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8302 * varobj.c (varobj_list_children): Stop if the number of children is
8304 (c_number_of_children):
8306 2007-01-04 Mark Kettenis <kettenis@gnu.org>
8308 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
8309 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
8310 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
8311 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
8312 sizeof, instead of hardcoded constants.
8314 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8316 * CONTRIBUTE: Use sourceware.org.
8318 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8320 * buildsym.c (start_subfile): Handle producer.
8321 (record_producer): New function.
8322 * buildsym.h (struct subfile): Include producer.
8323 (record_producer): New prototype.
8324 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
8325 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
8326 armcc_cfa_offsets_reversed.
8327 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
8328 (dwarf2_frame_find_quirks): New function.
8329 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
8330 (decode_frame_entry_1): Record the CIE version. Record the
8331 augmentation. Skip armcc augmentations.
8332 * dwarf2read.c (read_file_scope): Save the producer.
8333 * symtab.h (struct symtab): Rename unused version member to
8336 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8338 * configure.ac (build_warnings): Use -Wall and
8339 -Wdeclaration-after-statement.
8340 * configure: Regenerated.
8342 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8344 Simplify access to variours properties of child
8345 variable objects in C.
8346 * varobj.c (value_struct_element_index): New function.
8347 (c_describe_child): New function.
8348 (c_name_of_child, c_value_of_child)
8349 (c_type_of_child): Rewrite to use c_describe_child.
8351 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8354 * varobj.c: Include "vec.h".
8355 (varobj_p): New typedef, declare vector of those.
8356 (struct varobj): Use vector for the 'children' member.
8357 (child_exists): Remove.
8358 (save_child_in_parent): Remove.
8359 (remove_child_from_parent): Remove.
8360 (struct varobj_child): Remove.
8361 (struct vstack): Remove.
8362 (vpush, vpop): Remove.
8363 (varobj_list_children): Adjust to work work vector.
8364 (varobj_update): Likewise. Use vectors for
8365 working stack and result.
8366 (delete_variable_1): Likewise.
8367 * Makefile.in (varobj.o): Update dependencies.
8369 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8371 Port from Apple's version.
8373 * varobj.c (type_changeable): Rename to...
8374 (varobj_value_is_changeable_p): ...this. Adjust all callers.
8375 (is_root_p): New function. Use it everywhere.
8377 2007-01-04 Jim Blandy <jimb@codesourcery.com>
8379 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
8382 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8384 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
8386 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8388 * hpread.c (hpread_type_lookup): Fix compilation failure.
8390 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
8392 * NEWS: New port to S+core.
8393 * MAINTAINERS (Write After Approval, Responsible Maintainers):
8396 * Makefile.in: Add dependencies for S+core files.
8397 * configure.tgt (score*, score-*-*): Add S+core target.
8398 * config/score/embed.mt: New file.
8399 * score-tdep.c: New file.
8400 * score-tdep.h: New file.
8402 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8404 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
8405 the appropriate type rather than a bogus void type.
8407 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8409 * ada-lang.h (ada_find_printable_frame): Remove.
8410 (ada_exception_catchpoint_p, ada_decode_exception_location)
8411 (ada_decode_assert_location): Add declaration.
8412 * ada-lang.c: Add include of annotate.h and valprint.h.
8413 (exception_catchpoint_kind): New enum.
8414 (function_name_from_pc, is_known_support_routine)
8415 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
8416 (ada_exception_name_addr_1, ada_exception_name_addr)
8417 (print_it_exception, print_one_exception, print_mention_exception)
8418 (print_it_catch_exception, print_one_catch_exception)
8419 (print_mention_catch_exception, catch_exception_breakpoint_ops)
8420 (print_it_catch_exception_unhandled)
8421 (print_one_catch_exception_unhandled)
8422 (print_mention_catch_exception_unhandled, print_it_catch_assert)
8423 (print_one_catch_assert, print_mention_catch_assert)
8424 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
8425 (ada_get_next_arg, catch_ada_exception_command_split)
8426 (ada_exception_sym_name, ada_exception_sym_name)
8427 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
8428 (ada_parse_catchpoint_condition, ada_exception_sal)
8429 (ada_decode_exception_location)
8430 (ada_decode_assert_location): New function.
8431 (catch_exception_unhandled_breakpoint_ops): New global variable.
8432 (catch_assert_breakpoint_ops): New global variable.
8433 * breakpoint.c: Add include of ada-lang.h.
8434 (print_one_breakpoint): Do not print the condition for Ada
8435 exception catchpoints.
8436 (create_ada_exception_breakpoint): New function.
8437 (catch_ada_exception_command, catch_assert_command): New function.
8438 (catch_command_1): Add support for the new "catch exception" and
8439 "catch assert" commands.
8440 (_initialize_breakpoint): Add help description for the new catch
8442 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
8444 (breakpoint.o): Add dependency on ada-lang.h.
8446 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
8448 * coffread.c (cs_to_section): If bfd_section is found, always
8449 return its section index.
8450 (coff_symtab_read): Determine the minimal_symbol_type using the
8453 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8454 Daniel Jacobowitz <dan@codesourcery.com>
8456 * Makefile.in (top.o): Update.
8457 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
8458 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
8459 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
8461 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
8463 2007-01-03 Mark Kettenis <kettenis@gnu.org>
8465 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
8466 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
8468 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8470 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
8471 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
8472 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
8473 greater than or equal to zero.
8474 * m2-typeprint.c (m2_array): Likewise.
8475 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
8476 * gdbtypes.c (copy_type_recursive): Correct == typo.
8477 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
8478 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
8480 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
8481 (default_macro_scope): Remove unused variable.
8482 * prologue-value.h (pv_area_find_reg): Don't name an argument
8484 * remote-fileio.c (remote_fio_func_map): Add missing braces.
8485 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
8487 (cleanup_sigint_signal_handler): Remove casts.
8488 * valprint.c (val_print): Use a volatile local for the modified
8490 * varobj.c (languages): Remove extra array dimension.
8491 (varobj_create): Correct access to languages array.
8492 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
8494 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
8495 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
8496 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
8497 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
8498 (mi_cmd_data_write_memory): Likewise.
8499 * signals/signals.c (target_signal_to_string): Cast to int before
8501 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
8504 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8506 * NEWS: Mention pointer to member improvements.
8507 * Makefile.in (gnu-v3-abi.o): Delete special rule.
8508 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
8509 * ada-valprint.c (ada_print_scalar): Update for new type codes.
8510 * c-typeprint.c (c_print_type): Update for new type codes.
8511 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
8512 (c_type_print_base): Likewise.
8513 (c_type_print_args): Rewrite.
8514 * c-valprint.c (c_val_print): Update for new type codes. Remove
8515 support for references to members. Treat methods like functions.
8516 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
8517 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
8518 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
8519 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
8520 (struct cp_abi_ops): Add corresponding members.
8521 * cp-valprint.c (cp_print_class_method): Delete.
8522 (cp_find_class_member): New function.
8523 (cp_print_class_member): Use it. Simplify support for bogus
8525 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
8526 lookup_methodptr_type.
8527 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
8528 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
8529 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
8531 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
8532 references returned by user defined operators.
8533 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
8534 (f_type_print_varspec_suffix): Remove support for member pointers.
8535 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
8537 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
8538 (lookup_methodptr_type): New.
8539 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
8540 (recursive_dump_type): Update for new types.
8541 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
8542 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
8543 (lookup_memberptr_type, lookup_methodptr_type)
8544 (smash_to_memberptr_type): New prototypes.
8545 (smash_to_method_type): Formatting fix.
8546 (lookup_member_type, smash_to_member_type): Delete prototypes.
8547 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
8548 Do not rely on debug information for the vptr or the method's
8549 enclosing type. Handle function descriptors for IA64.
8550 (gnuv3_virtual_fn_field): Rewrite using the new functions.
8551 (gnuv3_find_method_in, gnuv3_print_method_ptr)
8552 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
8553 (gnuv3_method_ptr_to_value): New.
8554 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
8555 * hpread.c (hpread_type_lookup): Update for new types.
8556 * infcall.c (value_arg_coerce): Likewise.
8557 * m2-typeprint.c (m2_print_type): Remove explicit support
8558 for member pointers.
8559 * m2-valprint.c (m2_val_print): Likewise.
8560 * p-typeprint.c (pascal_type_print_varspec_prefix)
8561 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
8562 * p-valprint.c (pascal_val_print): Likewise.
8563 (pascal_object_print_class_method, pascal_object_print_class_member):
8565 * p-lang.h (pascal_object_print_class_method)
8566 (pascal_object_print_class_member): Delete prototypes.
8567 * stabsread.c (read_type): Update for new types.
8568 * typeprint.c (print_type_scalar): Likewise.
8569 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
8570 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
8571 argument. Construct a pointer to member if the address of a
8572 function or data member is requested.
8573 (value_cast_pointers): Don't modify the input value.
8574 (value_cast): Adjust pointer to member handling for new types.
8575 Allow null pointer to member constants. Don't modify the input
8577 (value_ind): Remove pointer to member check. Handle function
8578 descriptors for function pointers.
8579 (value_struct_elt, value_find_oload_method_list, check_field):
8580 Remove pointer to member checks.
8581 * value.c (unpack_long): Allow pointers to data members.
8582 (value_from_longest): Allow member pointers.
8583 * value.h (value_aggregate_elt): Add want_address.
8584 * varobj.c (c_variable_editable): Remove check for members.
8585 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
8586 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
8588 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
8589 * c-lang.h (cp_print_class_method): Delete prototype.
8590 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
8591 * mips-tdep.c (mips_gdbarch_init): Likewise.
8592 * gdbarch.c, gdbarch.h: Regenerated.
8594 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8596 * rs6000-tdep.c (rs6000_use_struct_convention)
8597 (rs6000_extract_return_value, rs6000_store_return_value)
8598 (rs6000_extract_struct_value_address): Remove.
8599 (rs6000_return_value): New function.
8600 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
8601 store_return_value, deprecated_extract_struct_value_address and
8602 deprecated_use_struct_convention. Use rs6000_return_value
8605 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
8607 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
8608 -display-disable, -display-enable, -display-insert and
8611 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8613 * breakpoint.c (remove_breakpoint): Remove dead code.
8615 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
8617 * varobj.c: Include block.h.
8618 (c_value_of_root): Check scope within nested statements.
8620 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8622 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
8623 regcache_cooked_write_signed instead of
8624 deprecated_write_register_bytes.
8626 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8628 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
8630 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8632 Followed the Start of New Year Procedure:
8633 * ChangeLog-2006: New file, containing all the entries for 2006.
8634 * ChangeLog: Removed all 2006 entries, and changed the reference
8635 to the previous ChangeLog to point to ChangeLog 2006.
8636 * top.c (print_gdb_version): Update copyright year.
8638 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8640 * Makefile.in (remote-sds.o): Remove.
8641 * remote-sds.c: Delete.
8643 For older changes see ChangeLog-2006.
8649 version-control: never