1 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
3 * frame.c (frame_unwind_unsigned_register): Delete.
4 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
5 * frame.h (frame_unwind_unsigned_register): Delete prototype.
7 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
8 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
9 mt-tdep.c: Replace frame_unwind_unsigned_register with
10 frame_unwind_register_unsigned.
12 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
14 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
15 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
16 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
18 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
19 if not building on Cygwin.
20 (win32_make_so, handle_output_debug_string, handle_exception)
21 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
22 (win32_attach): Only fallback to Cygwin pids if building on
24 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
26 (win32_create_inferior): Disable starting the inferior through a
27 shell, environment var processing and tty handling if not building
29 (cygwin_pid_to_str): Rename to ...
30 (win32_pid_to_str): ... this.
31 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
32 and "cygwin-exceptions" commands if not building on Cygwin.
34 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
36 * doc/gdb.texinfo: Add TSIZE definition, removed
37 statement about unbounded arrays being unimplemented.
38 * m2-valprint.c (m2_print_array_contents): New function.
39 (m2_print_unbounded_array): New function.
40 (m2_print_array_contents): New function.
41 * m2-typeprint.c (m2_unbounded_array): New function.
42 (m2_is_unbounded_array): New function.
43 (m2_print_type): Test for unbounded array when walking
45 * m2-lang.h: Added extern m2_is_unbounded_array.
46 * m2-lang.c (evaluate_subexp_modula2): New function.
47 (exp_descriptor_modula2): New structure.
48 (m2_language_defn): Use exp_descriptor_modula2.
49 * m2-exp.y: Added TSIZE and binary subscript.
51 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
53 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
56 2007-10-16 Kevin Buettner <kevinb@redhat.com>
58 * m32r-tdep.c (decode_prologue): Sign extend offset for
60 (m32r_frame_unwind_cache): Likewise.
62 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
64 * rs6000-tdep.c (skip_prologue): Restore comment with
65 function description to its proper place.
67 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
69 * NEWS: Mention gdbserver PowerPC improvements.
71 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
73 * features/Makefile (WHICH): Add PowerPC register definitions.
74 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
75 (rs6000/powerpc-64-expedite): New macros.
76 ($(outdir)/%.dat): Handle subdirectories.
77 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
78 regformats/rs6000/powerpc-e500.dat: New generated files.
80 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
82 * ppc-linux-nat.c (ppc_linux_read_description): New.
83 (_initialize_ppc_linux_nat): Set to_read_description.
84 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
86 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
88 * NEWS: Document target described register support for PowerPC.
89 * ppc-tdep.h: Remove ppc_spr constants.
90 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
91 ppc_builtin_type_vec128 members.
92 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
93 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
94 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
95 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
96 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
97 * rs6000-tdep.c: Include preparsed descriptions.
98 (init_sim_regno_table): Do not iterate over pseudo registers.
99 Look up segment registers by name. Use sim_spr_register_name
101 (rs6000_register_sim_regno): Call init_sim_regno_table here.
102 (rs6000_builtin_type_vec128): Delete.
103 (rs6000_register_name): Only handle SPE pseudo registers and upper
104 halves. Call tdesc_register_name for everything else.
105 (rs6000_register_type): Delete. Replace with...
106 (rs6000_pseudo_register_type): ...this new function. Only handle
107 SPE pseudo registers.
108 (rs6000_register_reggroup_p): Delete. Replace with...
109 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
110 handle SPE pseudo registers.
111 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
113 (rs6000_register_to_value, rs6000_value_to_register): Remove check
115 (e500_register_reggroup_p): Delete.
116 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
117 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
118 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
119 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
120 (registers_powerpc, registers_403, registers_403GC, registers_505)
121 (registers_860, registers_601, registers_602, registers_603)
122 (registers_604, registers_750, registers_7400, registers_e500): Delete
124 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
126 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
127 (variants): Delete outdated comment. Use standard target descriptions
128 instead of "struct reg" arrays.
129 (init_variants): Delete.
130 (rs6000_gdbarch_init): Do not guess word size from the BFD
131 architecture if we have a target description. Select a variant
132 before creating a new architecture. Use the variant's target
133 description if the target did not define a register layout.
134 Validate target-supplied registers. Reject mismatches. Use
135 fixed register numbers and new constants instead of magic
136 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
137 (_initialize_rs6000_tdep): Initialize the preparsed target
139 * target-descriptions.c (tdesc_predefined_types): Add int128 and
141 (tdesc_find_register_early): New function.
142 (tdesc_numbered_register): Use it.
143 (tdesc_register_size): New function.
144 (tdesc_use_registers): Take a target_desc argument. Do not use
146 * target-descriptions.h (tdesc_use_registers): Update prototype
148 (tdesc_register_size): New prototype.
149 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
150 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
151 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
152 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
153 (rs6000-tdep.o): Update.
154 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
155 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
156 * mips-tdep.c (mips_gdbarch_init): Likewise.
158 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
160 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
161 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
162 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
163 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
164 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
165 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
166 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
169 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
171 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
172 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
173 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
174 feature descriptions for standard PowerPC register sets.
176 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
177 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
178 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
179 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
180 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
181 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
182 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
183 target descriptions for PowerPC processors.
185 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
187 * target-descriptions.c (tdesc_predefined_types): New.
188 (tdesc_named_type): Use it.
189 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
190 (_intialize_target_descriptions): Register "maint print c-tdesc".
191 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
192 (cfiles, %.c): New rules.
193 * features/arm-with-iwmmxt.c, features/mips-linux.c,
194 features/mips64-linux.c: New generated files.
196 * arm-linux-nat.c: Include preparsed description instead of
198 (super_xfer_partial, arm_linux_xfer_partial): Remove.
199 (arm_linux_read_description): New function.
200 (_initialize_arm_linux_nat): Set to_read_description instead of
201 to_xfer_partial. Initialize preparsed description.
202 * config/arm/linux.mh (TDEP_XML): Delete.
203 * mips-linux-nat.c: Include preparsed descriptions instead of
205 (super_xfer_partial, mips_linux_xfer_partial): Remove.
206 (mips_linux_read_description): New function.
207 (_initialize_mips_linux_nat): Set to_read_description instead of
208 to_xfer_partial. Initialize preparsed description.
209 * config/mips/linux.mh (TDEP_XML): Delete.
210 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
211 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
212 (mips64_linux_c): New macros.
213 (arm-linux-nat.o, mips-linux-nat.o): Update.
215 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
217 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
218 Replace xasprintf by xstrprintf.
219 symfile-mem.c (add_vsyscall_page): Ditto.
221 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
223 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
224 replacing use of global current_gdbarch.
225 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
226 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
228 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
229 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
230 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
231 (ia64_sigtramp_frame_cache): Update caller.
233 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
235 * gdbarch.sh (deprecated_use_struct_convention): Remove.
236 (extract_return_value, store_return_value): Remove.
237 (return_value): Remove default implementation.
238 * gdbarch.c, gdbarch.h: Regenerate.
240 * stack.c (return_command): Remove compatibility hack.
241 * arch-utils.c (legacy_return_value): Remove.
242 * arch-utils.h (legacy_return_value): Likewise.
244 * arch-utils.c (always_use_struct_convention): Remove.
245 * arch-utils.h (always_use_struct_convention): Likewise.
246 * value.c (generic_use_struct_convention): Remove.
247 * defs.h (generic_use_struct_convention): Likewise.
249 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
251 * avr-tdep.c (avr_return_value): New function.
252 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
253 set_gdbarch_extract_return_value.
255 * fvr-tdep.c (frv_return_value): New function.
256 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
257 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
258 and set_gdbarch_deprecated_use_struct_convention.
260 * ia64-tdep.c (ia64_use_struct_convention): Make static.
261 Add check for structure, union, or array types.
262 (ia64_extract_return_value): Make static.
263 (ia64_store_return_value): Make static. Support multi-word values.
264 (ia64_return_value): New function.
265 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
266 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
267 and set_gdbarch_deprecated_use_struct_convention.
269 2007-10-12 Joel Brobecker <brobecker@adacore.com>
271 * solib-target.c (solib_target_parse_libraries)
272 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
274 2007-10-12 Jim Blandy <jimb@codesourcery.com>
276 * serial.h (struct serial_ops): Document read_prim to return zero
278 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
279 read_prim returns zero, not SERIAL_TIMEOUT.
281 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
283 * alpha-mdebug-tdep.c: Include "gdb_string.h".
284 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
285 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
286 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
288 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
289 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
290 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
291 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
292 * config/alpha/tm-alpha.h: Remove file.
294 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
296 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
297 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
299 * config/pa/tm-hppa.h: Delete file.
300 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
301 * config/pa/hppahpux.mt: Likewise.
302 * config/pa/hppa.mt: Likewise.
303 * config/pa/linux.mt: Likewise.
304 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
306 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
308 * config/arm/nm-nbsdaout.h: Remove file.
309 * config/nm-nbsdaout.h: Likewise.
310 * config/nm-nbsd.h: Likewise.
312 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
314 * block.h (struct block): Remove "gcc_compile_flag" member.
315 (BLOCK_GCC_COMPILED): Remove.
316 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
317 * buildsym.c (finish_block): Do not set it.
318 * symmisc.c (dump_symtab_1): Do not dump it.
320 * value.h (using_struct_return): Remove "gcc_p" argument.
321 * value.c (using_struct_return): Likewise.
322 * eval.c (evaluate_subexp_standard): Adapt callers.
323 * infcall.c (call_function_by_hand): Likewise.
324 * stack.c (return_command): Likewise.
325 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
327 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
328 * gdbarch.c, gdbarch.h: Regenerate.
329 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
330 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
331 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
332 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
333 (push_dummy_code, call_function_by_hand): Adapt callers.
335 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
337 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
338 (finish_command_continuation, finish_command): Adapt callers.
340 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
342 * infcall.c (call_function_by_hand): Remove special handling
343 for HP aCC compiled code.
345 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
347 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
348 reference. Fix endianness bugs.
349 (cris_reg_struct_has_address): Remove.
350 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
351 and set_gdbarch_deprecated_use_struct_convention calls.
353 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
354 * gdbarch.c, gdbarch.h: Regenerate.
355 * infcall.c (call_function_by_hand): Remove handling of
356 deprecated_reg_struct_has_addr.
358 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
359 Kazu Hirata <kazu@codesourcery.com>
361 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
362 checking watchpoint resources.
364 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
366 * memattr.c (inaccessible_by_default): Change the initial
369 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
372 * coffread.c (read_one_sym): Check for read errors.
374 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
376 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
377 instead of "Linux 2.6.19" in comment.
378 (linux_xfer_partial): Use "GNU/Linux target" instead of
379 "Linux target" in comment.
380 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
381 (m68k_linux_get_sigtramp_info): Likewise.
383 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
385 * MAINTAINERS (language support): List Joel and Paul as
388 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
390 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
392 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
393 not set DEPRECATED_TM_FILE.
394 * config/arm/tm-arm.h: Delete file.
396 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
398 * MAINTAINERS (Write After Approval): Add self.
400 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
402 * buildsym.c (record_line): Remove empty lines followed by
403 end-of-sequence markers.
405 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
407 * configure.tgt: Recognize fido-*-elf.
409 2007-10-10 Joel Brobecker <brobecker@adacore.com>
413 2007-10-10 Markus Deuling <deuling@de.ibm.com>
415 * stack.c (print_frame_args, frame_info, return_command): Use
416 get_regcache_arch or get_frame_arch to get at the current architecture
417 by regcache or by frame, respectively.
419 2007-10-10 Markus Deuling <deuling@de.ibm.com>
421 * rs6000-nat.c (fetch_register, store_register)
422 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
423 get_regcache_arch to get at the current architecture by regcache.
425 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
426 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
427 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
428 current_gdbarch by gdbarch.
429 (rs6000_skip_trampoline_code, rs6000_register_to_value)
430 (rs6000_value_to_register): Use get_frame_arch to get at the current
431 architecture by frame_info.
433 2007-10-10 Markus Deuling <deuling@de.ibm.com>
435 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
436 get_regcache_arch to get at the current architecture by regcache.
438 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
439 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
440 get_regcache_arch to get at the current architecture by regcache.
442 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
443 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
444 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
445 current architecture by regcache.
447 2007-10-10 Markus Deuling <deuling@de.ibm.com>
449 * remote-mips.c (mips_wait, mips_fetch_registers)
450 (mips_store_registers): Use get_regcache_arch to get at the
451 current architecture by regcache.
453 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
454 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
455 get at the current architecture by regcache.
456 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
457 architecture by frame_info.
459 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
460 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
461 the current architecture by regcache.
463 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
464 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
465 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
466 current architecture by frame_info.
467 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
468 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
469 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
470 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
471 get at the current architecture by regcache.
473 * mips-linux-nat.c (mips_linux_register_addr)
474 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
475 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
476 (mips64_linux_regsets_fetch_registers)
477 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
478 the current architecture by regcache.
480 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
481 get at the current architecture by frame_info.
483 2007-10-10 Markus Deuling <deuling@de.ibm.com>
485 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
486 current architecture by regcache.
487 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
488 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
489 (mips_stub_frame_cache, mips_read_fp_register_single)
490 (mips_read_fp_register_double, mips_print_fp_register)
491 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
492 at the current architecture by frame_info.
493 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
494 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
495 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
496 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
497 (mips_o32_push_dummy_call, mips_o32_return_value)
498 (mips_o64_push_dummy_call, mips_o64_return_value)
499 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
502 2007-10-10 Markus Deuling <deuling@de.ibm.com>
504 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
505 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
506 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
507 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
508 (xtensa_register_write_masked, xtensa_register_read_masked)
509 (xtensa_supply_gregset, xtensa_store_return_value)
510 (xtensa_extract_return_value): Use get_regcache_arch to get at the
511 current architecture by regcache.
512 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
513 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
514 architecture by frame_info.
516 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
518 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
519 (thumb_analyze_prologue): Move pv_area_store_would_trash call
520 out of loop. Do not set cache->frameoffset.
521 (arm_scan_prologue): Use prologue-value mechanism. Do not set
522 frameoffset. Simplify framesize.
523 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
525 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
527 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
529 * target.c (update_current_target): Call setup_target_debug.
530 (push_target): Do not call it here.
532 2007-10-09 Michael Snyder <msnyder@specifix.com>
534 * MAINTAINERS: Update my email address.
536 2007-10-09 Markus Deuling <deuling@de.ibm.com>
538 * xtensa-tdep.c: Replace following current-gdbarch based macros by
540 (xtensa_pseudo_register_read)
541 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
542 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
543 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
544 (xtensa_pseudo_register_read)
545 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
546 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
547 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
548 (xtensa_frame_prev_register): NUM_AREGS.
549 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
550 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
551 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
552 (xtensa_supply_gregset, xtensa_frame_cache)
553 (xtensa_frame_prev_register): WS_REGNUM.
554 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
555 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
556 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
557 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
558 (xtensa_register_reggroup_p): REGMAP.
559 (call0_track_op): LITBASE_REGNUM.
560 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
561 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
562 (xtensa_frame_prev_register, AREG_NUMBER)
563 (xtensa_register_type): AR_BASE.
564 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
565 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
566 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
567 (xtensa_frame_cache, xtensa_frame_prev_register)
568 (xtensa_extract_return_value, xtensa_store_return_value)
569 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
570 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
571 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
572 (xtensa_frame_prev_register, xtensa_push_dummy_call)
573 (call0_frame_cache): A1_REGNUM.
574 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
575 (xtensa_push_dummy_call): A4_REGNUM.
576 (ARGS_FIRST_REG): A6_REGNUM.
577 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
578 (xtensa_frame_prev_register): A15_REGNUM.
579 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
580 them in the appropriate source file:
581 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
582 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
583 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
584 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
585 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
586 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
587 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
588 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
589 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
590 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
591 A13_REGNUM, A14_REGNUM, A15_REGNUM.
593 2007-10-09 Markus Deuling <deuling@de.ibm.com>
595 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
596 the current architecture by frame_info.
597 (h8300_frame_prev_register
598 (h8300_print_register): Replace current_gdbarch by gdbarch.
599 (h8300_print_registers_info, h8300_register_type)
600 (h8300_register_type): Likewise.
602 2007-10-09 Markus Deuling <deuling@de.ibm.com>
604 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
605 the current architecture by regcache.
606 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
607 (i386_linux_fetch_inferior_registers)
608 (i386_linux_store_inferior_registers): Likewise.
609 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
610 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
611 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
612 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
613 (i386_extract_return_value, i386_store_return_value): Likewise.
614 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
615 the current architecture by frame_info.
616 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
617 (i386_register_to_value, i386_value_to_register): Likewise.
619 2007-10-09 Markus Deuling <deuling@de.ibm.com>
621 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
622 the current architecture by regcache.
623 (monitor_store_register, monitor_store_registers): Likewise.
625 2007-10-09 Markus Deuling <deuling@de.ibm.com>
627 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
628 the current architecture by regcache.
630 2007-10-09 Markus Deuling <deuling@de.ibm.com>
632 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
635 2007-10-09 Markus Deuling <deuling@de.ibm.com>
637 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
638 architecture by frame.
639 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
640 (inside_main_func, frame_sp_unwind): Likewise.
642 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
644 * solib-svr4.c (enable_break): Add the dynamic linker also if
647 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
649 * MAINTAINERS (Write After Approval): Add self.
651 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
653 * stabsread.c (read_huge_number): Initialize local variable to 0.
655 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
657 * p-lang.h (pascal_main_name): Add declaration.
658 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
659 (GPC_MAIN_PROGRAM_NAME_2): New constants.
660 (pascal_main_name): New function.
661 * symtab.c: Include p-lang.h.
662 (find_main_name): Add call to pascal_main_name.
663 * Makefile.in (symtab.o): Add dependency on p-lang.h.
665 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
667 * stabsread.c (read_huge_number): Fix handling of octal
668 representation when the bit width is known.
669 (read_range_type): Record unsigned integral types with their size,
670 when the type size is known.
672 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
674 * MAINTAINERS (Write After Approval): Add self.
676 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
678 * breakpoint.c (print_one_breakpoint_location): ARI fix:
679 Replace asprintf by xstrprintf.
681 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
683 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
684 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
686 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
688 * linux-fork.c: Move "gdb_wait.h" include back to the position of
689 <sys/wait.h> include before last commit.
691 2007-10-08 Maciej W. Rozycki <macro@mips.com>
693 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
695 2007-10-08 Markus Deuling <deuling@de.ibm.com>
697 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
698 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
699 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
700 (store_regs_user_thread, store_regs_kernel_thread): Use
701 get_regcache_arch or get_frame_arch to get at the current architecture
702 by regcache or by frame, respectively.
704 2007-10-08 Markus Deuling <deuling@de.ibm.com>
706 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
707 (sh64_pseudo_register_read, sh64_pseudo_register_write)
708 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
709 (sh64_print_register, sh64_media_print_registers_info)
710 (sh64_compact_print_registers_info, sh64_unwind_sp)
711 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
712 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
713 (sh64_frame_prev_register): Use FRAME to recognize current
716 2007-10-08 Markus Deuling <deuling@de.ibm.com>
718 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
719 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
720 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
721 current_gdbarch by gdbarch.
722 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
723 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
724 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
725 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
726 recognize current architecture.
728 2007-10-08 Markus Deuling <deuling@de.ibm.com>
730 * remote.c (init_remote_state, fetch_register_using_p)
731 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
732 (store_register_using_P, store_registers_using_G)
733 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
734 get at the current architecture by regcache or by frame, respectively.
736 2007-10-08 Markus Deuling <deuling@de.ibm.com>
738 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
739 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
740 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
741 get_regcache_arch or get_frame_arch to get at the current architecture
742 by regcache or by frame, respectively.
743 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
744 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
745 (store_register, old_store_inferior_registers, supply_gregset)
746 (supply_fpregset, fill_fpregset): Likewise.
747 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
748 Replace current_gdbarch by gdbarch.
750 2007-10-08 Markus Deuling <deuling@de.ibm.com>
752 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
753 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
754 get_frame_arch to get at the current architecture by regcache or by
757 2007-10-08 Markus Deuling <deuling@de.ibm.com>
759 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
760 Replace current_gdbarch by gdbarch.
761 * ia64-tdep.c (ia64_frame_prev_register
762 (ia64_sigtramp_frame_prev_register)
763 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
764 get_frame_arch to get at the current architecture by regcache or by
766 * ia64-linux-nat.c (ia64_linux_fetch_register)
767 (ia64_linux_fetch_registers, ia64_linux_store_register)
768 (ia64_linux_store_registers): Likewise.
770 2007-10-08 Markus Deuling <deuling@de.ibm.com>
772 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
773 current_gdbarch by gdbarch.
774 * hppa-linux-nat.c (fetch_register, store_register)
775 (hppa_linux_fetch_inferior_registers)
776 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
777 get_frame_arch to get at the current architecture by regcache or by
779 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
780 (hppa_hpux_unwind_adjust_stub): Likewise.
781 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
782 (hppa_hpux_fetch_inferior_registers)
783 (hppa_hpux_store_inferior_registers): Likewise.
785 2007-10-08 Markus Deuling <deuling@de.ibm.com>
787 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
788 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
789 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
790 or get_frame_arch to get at the current architecture by regcache or by
792 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
793 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
794 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
795 current_gdbarch by gdbarch.
797 2007-10-08 Markus Deuling <deuling@de.ibm.com>
799 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
800 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
801 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
802 get at the current architecture by regcache or by·frame, respectively.
803 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
806 2007-10-08 Markus Deuling <deuling@de.ibm.com>
808 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
809 Use get_regcache_arch or get_frame_arch to get at the current
810 architecture by regcache or by frame, respectively.
811 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
812 * amd64-nat.c (amd64_supply_native_gregset)
813 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
815 2007-10-08 Markus Deuling <deuling@de.ibm.com>
817 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
819 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
820 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
821 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
822 get_frame_arch to get at the current architecture by regcache or by
824 * alpha-nat.c (fetch_osf_core_registers): Likewise.
826 2007-10-08 Markus Deuling <deuling@de.ibm.com>
828 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
829 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
830 current_gdbarch by gdbarch.
831 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
833 2007-10-08 Markus Deuling <deuling@de.ibm.com>
835 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
836 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
837 * regcache.c (regcache_raw_write): Use get_regcache_arch or
838 get_frame_arch to get at the current architecture by regcache or by
841 2007-10-08 Markus Deuling <deuling@de.ibm.com>
843 * findvar.c (value_of_register, locate_var_value): Use
844 get_regcache_arch or get_frame_arch to get at the current architecture
845 by regcache or by frame, respectively.
846 * findvar.c (default_value_from_register, value_from_register): Replace
847 current_gdbarch by gdbarch.
849 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
851 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
853 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
855 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
856 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
858 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
860 * remote.c (get_offsets): Only call free_symfile_segment_data if
863 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
865 * objc-exp.y: ARI fix: remove 4 PARAMS.
867 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
869 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
870 news. Mention XML support for M68K in GDB 6.7.
872 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
874 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
876 (init_vector_type): Use builtin_type_int32.
878 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
880 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
881 size to enable bi-arch generate-core-file support.
883 2007-10-02 Markus Deuling <deuling@de.ibm.com>
885 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
887 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
889 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
891 * tui/tui-win.c (tui_initialize_win): New function for
892 initializing tui's SIGWINCH signal handler.
893 * tui/tui-win.h (tui_initialize_win): Declare.
895 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
897 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
898 pointer to uintptr_t before casting to CORE_ADDR.
900 2007-10-02 Markus Deuling <deuling@de.ibm.com>
902 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
904 2007-10-02 Mark Mitchell <mark@codesourcery.com>
906 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
907 * ser-mingw.c (enum select_thread_state): New type.
908 (struct ser_console_state): Add have_started and thread_state.
909 (select_thread_wait): New function.
910 (thread_fn_type): New type.
911 (create_select_thread): New function.
912 (destroy_select_thread): Likewise.
913 (start_select_thread): Likewise.
914 (stop_select_thread): Likewise.
915 (console_select_thread): Use new functions.
916 (pipe_select_thread): Likewise.
917 (file_select_thread): Likewise.
918 (ser_console_wait_handle): Likewise.
919 (ser_console_done_wait_handle): Likewise.
920 (ser_console_close): Likewise.
921 (free_pipe_state): Likewise.
922 (pipe_wait_handle): Likewise.
923 (pipe_done_wait_handle): Likewise.
924 (struct net_windows_state): Derive from ser_console_state.
925 (net_windows_select_thread): Use new functions.
926 (net_windows_wait_handle): Likewise.
927 (net_windows_done_wait_handle): Likewise.
928 (net_windows_close): Likewise.
930 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
932 * inflow.c (terminal_ours_1): Remove useless line.
934 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
936 * mips-tdep.c (mips_read_fp_register_double): Correct check for
938 (mips_print_fp_register): Correct check for even FP registers.
939 (mips_virtual_frame_pointer): New function.
940 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
942 2007-09-30 Mike Frysinger <vapier@gentoo.org>
944 * value.h (lookup_only_internalvar): New prototype.
945 (create_internalvar): Likewise.
946 * value.c (lookup_only_internalvar): New function.
947 (create_internalvar): Likewise.
948 (lookup_internalvar): Use new lookup_only_internalvar and
949 create_internalvar functions.
950 * parse.c (write_dollar_variable): Look up $ symbols in internal
951 table first rather than last.
953 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
955 * linux-nat.c (linux_nat_new_thread): New variable.
956 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
957 linux_nat_switch_fork.
958 (lwp_list): Make public.
959 (add_lwp): Call linux_nat_new_thread.
960 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
962 (resume_callback): Clear lp->siginfo. Remove unused variable.
963 (linux_nat_resume): Assert that the LWP list is already initialized.
966 (stop_wait_callback, linux_nat_wait): Call it.
967 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
968 * linux-nat.h (struct lwp_info): Add siginfo.
969 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
972 * amd64-linux-nat.c (amd64_linux_dr): New.
973 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
974 (amd64_linux_dr_set): Take a PTID argument.
975 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
976 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
977 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
978 (amd64_linux_new_thread): New.
979 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
980 * i386-linux-nat.c (i386_linux_dr): New.
981 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
982 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
983 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
984 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
985 (i386_linux_new_thread): New.
986 (i386_linux_resume): Remove unnecessary PID check.
987 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
988 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
989 (fetch_debug_register, fetch_debug_register_pair): Delete.
990 (debug_registers): New.
991 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
992 ALL_LWPS and debug_registers.
993 (ia64_linux_new_thread): New.
994 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
995 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
996 * ppc-linux-nat.c (last_stopped_data_address): Delete.
997 (saved_dabr_value): New.
998 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1000 (ppc_linux_new_thread): New.
1001 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
1002 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
1003 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
1004 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
1006 (s390_fix_watch_points): Take a PTID argument.
1007 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
1008 (_initialize_s390_nat): Call linux_nat_set_new_thread.
1010 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
1011 Jeff Johnston <jjohnstn@redhat.com>
1013 * breakpoint.c (watchpoints_triggered): New.
1014 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
1015 Check watchpoint_triggered instead. Combine handling for software
1016 and hardware watchpoints. Do not use target_stopped_data_address
1017 here. Always check a watchpoint if its scope breakpoint triggers.
1018 Do not stop for thread or overlay events. Improve check for
1019 triggered watchpoints without a value change.
1020 (watch_command_1): Insert the scope breakpoint first. Link the
1021 scope breakpoint to the watchpoint.
1022 * breakpoint.h (enum watchpoint_triggered): New.
1023 (struct breakpoint): Add watchpoint_triggered.
1024 (bpstat_stop_status): Update prototype.
1025 (watchpoints_triggered): Declare.
1026 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
1027 (stepped_after_stopped_by_watchpoint): Delete.
1028 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
1029 local. Handle infwait_step_watch_state. Update calls to
1030 bpstat_stop_status. Use watchpoints_triggered to check
1032 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
1033 (remote_stopped_data_address): Do not check it.
1035 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
1037 * configure.ac: Add $LIBINTL when testing libbfd.
1038 * configure: Regenerated.
1040 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
1042 * NEW: Mention pending breakpoint changes and
1043 support for breakpoints at multiple locations.
1045 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
1047 * arm-linux-tdep.c (arm_linux_software_single_step): New.
1048 (arm_linux_init_abi): Use it.
1049 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
1050 condition correctly.
1051 * arm-tdep.h (arm_get_next_pc): Declare.
1052 * Makefile.in (arm-linux-tdep.o): Update.
1054 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1056 * varobj.c (install_new_value): Don't
1057 call value_get_print_value when a value is
1058 lazy. Update the print_value member in a
1061 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1063 * breakpoint.c (create_breakpoint): Set
1064 condition on each location, not on the first
1065 location of breakpoint.
1067 2007-09-26 Jim Blandy <jimb@codesourcery.com>
1069 * remote.c (getpkt_sane): Fix error message. No animals were
1070 harmed in the making of this debugger.
1072 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1074 * p-typeprint.c: Fix 11 ARI reported problems.
1075 (pascal_print_type): Fix 4 operator at end of line.
1076 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
1077 using strncmp function.
1078 (pascal_type_print_base): Fix 2 operator at end of line.
1079 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
1080 using strncmp function.
1083 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1085 * Fix PR pascal/2231
1086 dwarf2read.c (read_subroutine_type):
1087 All pascal functions are prototyped.
1089 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1091 * Fix PR pascal/2283
1092 p-valprint.c (pascal_val_print): correct current language check.
1093 Also print array of char as strings.
1096 2007-09-26 David Ung <davidu@mips.com>
1097 Maciej W. Rozycki <macro@mips.com>
1099 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
1101 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
1103 * p-exp.y: Fix 12 ARI reported problems.
1104 (name_not_typename): Fix 2 operator at end of line issues.
1105 (yylex): Fix 3 operator at end of line issues.
1106 Replace 7 DEPRECATED_STREQ macros using strcmp function.
1108 2007-09-25 David Ung <davidu@mips.com>
1109 Maciej W. Rozycki <macro@mips.com>
1111 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
1112 rules return composite types in registers as appropriate.
1114 2007-09-24 Jim Blandy <jimb@codesourcery.com>
1116 * symfile.h (struct symfile_segment_data): Doc fixes.
1117 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
1118 Assert that we were passed some loaded segment addresses,
1119 and that sections' segment numbers are valid.
1120 Simplify offset calculation.
1121 * remote.c (get_offsets): Clarify selection of relocate-by-segment
1122 strategy, and set num_segments correctly. Delete redundant
1123 assignments to do_sections.
1125 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
1127 * frame.c (get_prev_frame_1): Also check for PC in the same register.
1129 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
1131 * breakpoint.c (remove_sal): New.
1132 (expand_line_sal_maybe): New.
1133 (create_breakpoints): Call expand_line_sal_maybe.
1134 (clear_command): Add comment.
1135 (breakpoint_re_set_one): Call expand_line_sal_maybe.
1136 * linespec.c (decode_indirect): Set explicit_pc to 1.
1137 (decode_all_digits): Set explicit_line to 1.
1138 (append_expanded_sal): New.
1139 (expand_line_sal): New.
1140 * linespec.h (expand_line_sal): Declare.
1141 * symtab.c (init_sal): Initialize explicit_pc
1143 * symtab.h (struct symtab_and_line): New fields
1144 explicit_pc and explicit_line.
1146 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
1148 * infcall.c (call_function_by_hand): Handle language-specific
1149 pass and return by reference.
1151 * cp-abi.c (cp_pass_by_reference): New.
1152 * cp-abi.h (cp_pass_by_reference): Declare.
1153 (struct cp_abi_ops): Add pass_by_reference.
1154 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
1155 (init_gnuv3_ops): Set pass_by_reference.
1157 * language.c (language_pass_by_reference): New.
1158 (default_pass_by_reference): New.
1159 (unknown_language_defn, auto_language_defn, local_language_defn): Add
1160 default_pass_by_reference.
1161 * langauge.h (struct language_defn): Add la_pass_by_reference.
1162 (language_pass_by_reference, default_pass_by_reference): Declare.
1163 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
1164 * c-lang.c (c_language_defn, asm_language_defn)
1165 (minimal_language_defn): Likewise.
1166 (cplus_language_defn): Add cp_pass_by_reference.
1167 * f-lang.c (f_language_defn): Add default_pass_by_reference.
1168 * jv-lang.c (java_language_defn): Likewise.
1169 * m2-lang.c (m2_language_defn): Likewise.
1170 * objc-lang.c (objc_language_defn): Likewise.
1171 * p-lang.c (pascal_language_defn): Likewise.
1172 * scm-lang.c (scm_language_defn): Likewise
1174 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
1176 Allow a code breakpoint to have several locations
1178 * breakpoint.h (enum enable_state): Remove the
1179 bp_shlib_disabled enumerator.
1180 (struct bp_location): New members shlib_disabled,
1181 global_next, enabled and function_name.
1182 Rename pending to condition_not_parsed.
1184 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
1185 (ALL_BP_LOCATIONS_SAFE): Likewise.
1186 (breakpoint_enabled): Don't check for pending.
1187 (condition_command): Free and update all locations of
1189 (insert_bp_location): Adjust.
1190 (software_breakpoint_inserted_here_p): Don't care
1191 if breakpoint is enabled, as soon as it's inserted.
1192 (print_it_typical): Print bpstat's location, not
1193 bpstat's breakpoint's location.
1194 (bpstat_stop_status): Iterate over all locations, not
1196 (print_breakpoint_location): New.
1197 (print_one_breakpoint): Renamed to
1198 (print_one_breakpoint_location): ...this. Take
1199 parameters to describe which location is being
1200 printed. Modify code to properly print header
1201 for several locations and individual locations.
1202 (print_one_breakpoint): Print all locations.
1203 (breakpoint_has_pc): New.
1204 (describe_other_breakpoints): Use the above.
1205 (check_duplicates): Renamed to...
1206 (check_duplicates_for): .. this.
1207 (check_duplicates): Use check_duplicates_for.
1208 (allocate_bp_location): Adjust.
1209 (set_raw_breakpoint_without_location): New,
1210 extracted from set_raw_breakpoint.
1211 (set_breakpoint_location_function): New.
1212 (set_raw_breakpoint): Use
1213 set_raw_breakpoint_without_location.
1214 (make_breakpoint_permanent): Mark all locations
1216 (disable_breakpoints_in_shlibs): Iterate over
1218 (disable_breakpoints_in_unloaded_shlib): Likewise.
1219 (re_enable_breakpoints_in_shlibs): Likewise.
1220 (mention): Say "pending" when breakpoint has
1221 zero locations. If breakpoint has more than one
1223 (add_location_to_breakpoint): New.
1224 (create_breakpoint): Accept symtabs_and_lines, not
1225 symtab_and_line. Pass extra sals to
1226 add_location_to_breakpoint.
1227 (create_breakpoints): Pass symtabs_and_lines to
1229 (break_command_1): Make pending breakpoints
1230 have zero locations.
1231 (do_captured_breakpoint): Remove wrong allocation.
1232 (clear_command): Iterate over all locations.
1233 (unlink_locations_from_global_list): Renamed
1234 from unlink_location_from_global_list. Remove
1236 (delete_breakpoint): Remove all locations.
1237 Iterate over all locations when deciding which
1238 other location to re-enable.
1239 (all_locations_are_pending): New.
1240 (update_breakpoint_locations): Renamed from
1241 update_breakpoint_location. Try to match old
1242 and new locations using names of containing
1244 (breakpoint_re_set_one): Adjust.
1245 (find_location_by_number): New.
1246 (disable_command): Allow disabling individual location.
1247 (enable_command): Allow enabling individual location.
1248 * breakpoint.c: Adjust all uses of breakpoint's
1249 enable state to for bp_shlib_disabled change.
1251 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1253 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
1254 (resolve_pending_breakpoint): Remove.
1255 (re_enable_breakpoints_in_shlibs): Remove.
1256 (unlink_locations_from_global_list): New.
1257 (update_breakpoint_locations): New.
1258 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
1259 Use parse_condition and update_breakpoint_location to
1260 reset breakpoint. Ignore 'symbol not found' error from
1262 (breakpoint_re_set): Don't emit newline before the
1263 reason why breakpoint is not reset.
1264 (do_enable_breakpoint): Don't specially process pending
1266 (free_bp_location): New.
1267 (break_command_1): For pending breakpoints, initialize
1268 all fields of a sal with zeroes.
1269 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
1270 * infcmd.c (post_create_inferior): Don't call
1271 re_enable_breakpoints_in_shlibs.
1272 * infrun.c (handle_inferior_event): Likewise.
1273 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1274 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1275 * win32-nat.c (get_win32_debug_event): Likewise.
1277 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1279 * breakpoint.c (create_breakpoint): Split from
1280 create_breakpoints, implementing most of its logic.
1281 Take just a single sal, single address string and
1282 single condition. Do not take parsed condition at
1284 (create_breakpoints): Just call create_breakpoint
1286 (find_condition_and_thread): New.
1287 (break_command_1): Use find_condition_and_thread.
1288 Do not keep parsed conditions.
1289 (do_captured_breakpoint): Don't convert
1290 condition string to struct expression.
1292 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1294 * breakpoint.h (struct breakpoint): Move the cond
1296 (struct bp_location): Here.
1297 * breakpoint.c (condition_command, bpstat_stop_status)
1298 (print_one_breakpoint, allocate_bp_location)
1299 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
1300 (create_exec_event_catchpoint, create_breakpoints)
1301 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
1302 (create_ada_exception_breakpoint, set_breakpoint_sal)
1303 (delete_breakpoint, breakpoint_re_set_one): Adjust.
1304 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
1306 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1308 Associate bp_stat with bp_location, not breakpoint.
1309 * breakpoint.h (breakpoint_at): Change type
1311 * breakpoint.c (bpstat_alloc): Take bp_location,
1313 (bpstat_find_breakpoint): Look at bpstat's location's
1314 owner, not at bpstat->breakpoint_at.
1315 (bpstat_find_step_resume_breakpoint): Likewise.
1316 (bpstat_num): Likewise.
1317 (print_it_typical): Likewise.
1318 (print_bp_stop_message): Likewise.
1319 (watchpoint_check): Likewise.
1320 (bpstat_what): Likewise.
1321 (bpstat_get_triggered_catchpoints): Likewise.
1322 (breakpoint_auto_delete): Likewise.
1323 (delete_breakpoint): Likewise.
1324 (bpstat_stop_status): Pass location, not breakpoint,
1325 to bpstat_alloc. Look at bpstat's location's
1326 owner, not at bpstat->breakpoint_at.
1328 2007-09-21 Jim Blandy <jimb@codesourcery.com>
1330 * macrotab.h (new_macro_table): Document that removing information
1331 from an obstack/bcache-managed macro table leaks memory.
1332 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
1333 that data is never freed in obstack/bcache-managed macro tables,
1334 just leak the storage.
1335 (macro_undef): If we're undefining a macro at exactly the same
1336 source location that we defined it, simply remove the definition
1339 2007-09-21 Joel Brobecker <brobecker@adacore.com>
1341 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
1342 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
1343 Adjust the struct sym_fns object accordingly by setting
1344 the new field to NULL.
1345 * xcoffread.c (aix_process_linenos): Make static.
1346 (xcoff_sym_fns): Set new field to aix_process_linenos.
1347 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
1348 by call to new the new sym_fns sym_read_linetable function.
1349 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
1350 * config/rs6000/tm-rs6000.h: Delete.
1352 2007-09-21 David Ung <davidu@mips.com>
1353 Maciej W. Rozycki <macro@mips.com>
1355 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
1356 rules do not treat composite types specially.
1358 2007-09-20 Maciej W. Rozycki <macro@mips.com>
1360 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
1361 (mips16_in_function_epilogue_p): Likewise.
1362 (mips_in_function_epilogue_p): Likewise.
1363 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
1365 2007-09-19 Joel Brobecker <brobecker@adacore.com>
1367 * configure.ac: Add check for "etext".
1368 * configure, config.in: Regenerate.
1369 * maint.c (TEXTEND): Only define if either _etext or etext
1371 Disable the profiling functionality if TEXTEND is not defined.
1373 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
1375 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
1376 address register. Correct the call to frame_id_build.
1377 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
1380 2007-09-18 Joel Brobecker <brobecker@adacore.com>
1382 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
1383 the linetable past the function end.
1385 2007-09-18 James E. Wilson <wilson@specifix.com>
1387 * MAINTAINERS: Update my email address.
1389 2007-09-18 Jerome Guitton <guitton@adacore.com>
1391 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
1392 (inf_ttrace_delete_dying_threads_callback): New function.
1393 (inf_ttrace_resume): After resuming the execution, iterate over
1394 the dying threads to delete them for the thread list.
1395 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
1396 mark the corresponding thread as dying instead of removing it
1397 from the thread list.
1398 (inf_ttrace_thread_alive): return 0 for dying threads.
1400 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1402 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
1403 that return_frame is not null.
1405 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1407 * solib-svr4.c: Add include of "auxv.h".
1408 (enable_break): Use the AT_BASE auxiliary entry if available.
1409 * Makefile.in (solib-svr4.o): Update dependencies.
1411 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1413 * NEWS: Create a new section for the next release branch.
1414 Rename the section of the current branch, now that it has
1417 2007-09-17 Jerome Guitton <guitton@adacore.com>
1419 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1420 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1422 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1424 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1425 * mi/mi-cmds.h (mi_cmd_list_features): New.
1426 * mi/mi-main.c (mi_cmd_list_features): New.
1428 2007-09-11 Joel Brobecker <brobecker@adacore.com>
1430 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1431 * version.in: Bump version to 6.7.50-20070911-cvs.
1433 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1435 * thread.c (free_thread): Do not delete the step resume breakpoint
1438 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1440 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1441 * corelow.c (core_read_description): New.
1442 (init_core_ops): Set to_read_description.
1443 * gdbarch.sh: Add gdbarch_core_read_description.
1444 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1445 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1446 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1447 (mips_register_g_packet_guesses): Use them.
1448 (_initialize_mips_tdep): Initialize them.
1449 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1450 * gdbarch.h, gdbarch.c: Regenerated.
1452 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1454 * infrun.c (stepping_past_breakpoint): New global variable.
1455 (stepping_past_breakpoint_ptid): Likewise.
1456 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1457 Only switch threads if we need to single-step over a breakpoint hit
1458 in the previously selected thread. If stepping, remember previous
1459 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1460 switch_to_thread instead of copying its contents.
1461 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1462 prepare_to_proceed returns true.
1463 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1464 (context_switch): Call switch_to_thread.
1465 (handle_inferior_event): Switch back to previous thread if requested
1466 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1467 * gdbthread.h (switch_to_thread): Add prototype.
1468 * thread.c (switch_to_thread): Make global.
1470 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1472 * p-valprint.c: Fix 7 ARI reported problems.
1473 (pascal_val_print): Fix one operator at end of line issue.
1474 Use paddress function to remove use of
1475 deprecated_print_address_numeric function (2 times).
1476 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1477 (pascal_value_print): Fix 3 operator at end of line issues.
1479 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1482 * arm-tdep.c (arm_in_call_stub): Delete.
1483 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1485 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1487 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1490 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1491 Jim Blandy <jimb@codesourcery.com>
1493 * NEWS: Update description of string changes. Mention print/s.
1494 * c-valprint.c (textual_element_type): New.
1495 (c_val_print): Use it. Do not skip address printing for pointers
1496 with a string format.
1497 (c_value_print): Doc update.
1498 * dwarf2read.c (read_array_type): Use make_vector_type.
1499 * gdbtypes.c (make_vector_type): New.
1500 (init_vector_type): Use it.
1501 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1502 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1503 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1504 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1505 (make_vector_type): New.
1506 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1507 Call the language print routine for string format.
1508 (print_scalar_formatted): Call val_print for string format. Handle
1509 unsigned original types for char format.
1510 (validate_format): Do not reject string format.
1511 * stabsread.c (read_type): Use make_vector_type.
1512 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1514 2007-09-04 Michael Snyder <msnyder@access-company.com>
1516 * expprint.c (print_subexp_standard): Check strchr for null.
1517 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1519 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1521 * stabsread.c (patch_block_status): Guard against null.
1522 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1524 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1526 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1527 in internal error message.
1529 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1530 Daniel Jacobowitz <dan@codesourcery.com>
1532 * infcmd.c (post_create_inferior): Update comment.
1533 (run_command_1): Always call post_create_inferior with 0 as
1536 * i386-cygwin-tdep.h: New.
1537 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1538 (win32_xfer_shared_library): Make it extern.
1540 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1542 (win32_so_ops): Delete.
1543 (get_relocated_section_addrs): Delete.
1544 (solib_symbols_add): Delete.
1545 (register_loaded_dll): Delete.
1546 (win32_make_so): New.
1547 (handle_load_dll): Use win32_make_so.
1548 (win32_free_so): Free the passed in so.
1549 (win32_relocate_section_addresses): Delete.
1550 (win32_solib_create_inferior_hook): Delete.
1551 (handle_unload_dll): Don't add PE offset here. Free so with
1552 win32_free_so instead of free_so.
1553 (win32_special_symbol_handling): Delete.
1554 (get_win32_debug_event): Remove unneeded calls. Set state to
1555 TARGET_WAITKIND_LOADED on a dll unload.
1556 (do_initial_win32_stuff): Clear cygwin_load_start and
1558 (map_code_section_args): Delete.
1559 (dll_code_sections_add): Delete.
1560 (core_section_load_dll_symbols): Delete.
1561 (win32_xfer_shared_libraries): New.
1562 (win32_current_sos): Delete.
1563 (win32_xfer_partial): New.
1564 (open_symbol_file_object): Delete.
1565 (in_dynsym_resolve_code): Delete.
1566 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1567 of win32_ops. Remove win32_so_ops settings. Don't set
1568 current_target_so_ops here.
1570 * Makefile.in (i386_cygwin_tdep_h): New variable.
1571 (i386-cygwin-tdep.o): Update dependencies.
1572 (win32-nat.o): Update dependencies.
1574 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1575 Daniel Jacobowitz <dan@codesourcery.com>
1577 * gdbarch.sh (core_xfer_shared_libraries): New.
1579 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1581 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1583 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1584 (xml_escape_text): New.
1585 * xml-support.h (xml_escape_text): Declare.
1587 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1588 * config/i386/cygwin.mt (TDEPFILES): ... here.
1590 * win32-nat.c: (fetch_elf_core_registers): Delete.
1591 (win32_elf_core_fn): Delete.
1592 (_initialize_core_win32): Delete.
1594 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1595 "xml-support.h" and "gdbcore.h".
1596 (i386_win32_gregset_reg_offset): New.
1597 (I386_WIN32_SIZEOF_GREGSET): New.
1598 (i386_win32_regset_from_core_section): New.
1599 (win32_xfer_shared_library): New.
1600 (struct cpms_data): New.
1601 (core_process_module_section): New.
1602 (win32_core_xfer_shared_libraries): New.
1603 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1604 gregset_num_regs, sizeof_gregset members of tdep. Register
1605 regset_from_core_section and core_xfer_shared_libraries callbacks.
1607 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1608 * gdbarch.h, gdbarch.c: Regenerate.
1610 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1612 * corelow.c (core_xfer_partial): Pass writebuf to
1613 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1615 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1617 * arm-tdep.h (arm_skip_stub): Declare.
1618 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1620 (arm_pe_skip_trampoline_code): New function.
1621 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1622 gdbarch_skip_trampoline_code callback.
1623 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1625 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1627 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1629 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1631 * configure.ac: Add --with-expat.
1632 * configure: Regenerated.
1634 2007-09-03 Andreas Schwab <schwab@suse.de>
1636 * configure.ac: Accept --with-system-readline.
1637 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1638 * configure: Regenerate.
1639 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1641 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1643 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1644 Daniel Jacobowitz <dan@codesourcery.com>
1646 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1648 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1650 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1652 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1654 * top.c (print_gdb_version): Update for GPL version 3.
1656 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1658 * NEWS: Mention the build-id .debug files verification.
1660 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1662 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1664 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1666 * Makefile.in (symfile.o): Update dependencies.
1667 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1668 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1669 (struct build_id): New structure.
1670 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1671 (find_separate_debug_file): New variable BUILD_ID.
1672 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1674 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1676 * varobj.c (struct varobj): Fix comment
1677 for the type member not to lie when it can be
1680 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1682 Implement -var-info-path-expression.
1684 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1686 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1687 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1688 * varobj.c (struct varobj): New field 'path_expr'.
1689 (c_path_expr_of_child, cplus_path_expr_of_child)
1690 (java_path_expr_of_child): New.
1691 (struct language_specific): New field path_expr_of_child.
1692 (varobj_create): Initialize the path_expr field.
1693 (varobj_get_path_expr): New.
1694 (new_variable): Initialize the path_expr field.
1695 (free_variable): Free the path_expr field.
1696 (adjust_value_for_children_access): New parameter
1698 (c_number_of_children): Adjust.
1699 (c_describe_child): New parameter CFULL_EXPRESSION.
1700 Compute full expression.
1701 (c_value_of_child, c_type_of_child): Adjust.
1702 (cplus_number_of_children): Adjust.
1703 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1704 Compute full expression.
1705 (cplus_name_of_child, cplus_value_of_child)
1706 (cplus_type_of_child): Adjust.
1707 * varobj.h (varobj_get_path_expr): Declare.
1709 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1711 * mi/mi-cmd-var.c (print_varobj): If a varobj
1712 type is NULL, don't try to print it.
1714 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1716 * ppc-linux-nat.c (right_fill_reg): Delete.
1717 (supply_gregset): Use ppc_supply_gregset.
1718 (supply_fpregset): Use ppc_supply_fpregset.
1719 (fill_gregset): Use ppc_collect_gregset.
1720 (fill_fpregset): Use ppc_collect_fpregset.
1721 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1722 (right_supply_register, ppc_linux_supply_gregset): Delete.
1723 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1724 (ppc_linux_supply_fpregset): Delete.
1725 (ppc_linux_collect_gregset): New function.
1726 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1727 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1728 ppc_linux_supply_gregset, and ppc_collect_gregset.
1729 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1730 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1731 (ppc_linux_regset_from_core_section): Update.
1732 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1733 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1734 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1735 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1736 (ppcobsd_collect_gregset): Likewise.
1737 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1738 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1739 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1740 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1741 (rs6000_aix64_reg_offsets): Likewise.
1742 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1743 ppc_floating_point_unit_p.
1744 (rs6000_aix_collect_regset): Similarly.
1745 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1746 when regsize is larger than regcache register size.
1747 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1748 regcache register size.
1749 (ppc_greg_offset): New function, split out from..
1750 (ppc_supply_gregset): ..here. Separate code handling all regs from
1751 single reg case. Correct xer offset.
1752 (ppc_fpreg_offset): New function, split out from..
1753 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1755 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1756 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1757 a fp unit, instead return if no fp.
1759 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1761 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1762 this code has not been compiled for two years.
1764 2007-08-29 Michael Snyder <msnyder@access-company.com>
1766 * event-top.c (gdb_readline2): Return after EOF.
1768 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1770 * symtab.c: Remove a function that has been commented out 3 years ago.
1772 2007-08-29 Randolph Chung <tausq@debian.org>
1774 * hppa-tdep.c (hppa32_cannot_fetch_register)
1775 (hppa64_cannot_fetch_register): New functions.
1776 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1777 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1779 2007-08-28 Michael Snyder <msnyder@access-company.com>
1781 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1782 check for null before calling check_typedef.
1784 * NEWS: Mention Coverity bug fixes.
1786 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1788 * spu-tdep.c (spu_pointer_to_address): New function.
1789 (spu_integer_to_address): Likewise.
1790 (spu_gdbarch_init): Add spu_pointer_to_address and
1791 spu_integer_to_address to gdbarch.
1793 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1795 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1797 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1799 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1800 that contains the GDB license.
1801 * copying.awk: Adjust to the GPLv3 wording.
1802 * copying.c: Regenerate.
1804 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1806 * copying.awk: Protoization, and i18n markup.
1808 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1810 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1811 * copyright.sh: Likewise.
1812 * gdb-events.sh: Likewise.
1813 * gdb_gcore.sh: Likewise.
1814 * gdb_mbuild.sh: Likewise.
1815 * gdbarch.sh: Likewise.
1816 * observer.sh: Likewise.
1817 * features/feature_to_c.sh: Likewise.
1818 * regformats/regdat.sh: Likewise.
1820 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1822 Switch the license of all .c files to GPLv3.
1823 Switch the license of all .h files to GPLv3.
1824 Switch the license of all .cc files to GPLv3.
1826 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1828 * configure.ac: Switch license to GPLv3.
1830 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1832 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1833 determine the file's FPU type.
1835 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1837 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1838 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1839 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1841 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1843 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1845 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1846 (elf_lookup_lib_symbol): Fix formatting.
1848 2007-08-21 Michael Snyder <msnyder@access-company.com>
1850 * dbxread.c (read_dbx_symtab): Guard null deref.
1853 * valops.c (find_overload_match): Guard against NULL.
1855 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1857 * MAINTAINERS (Patch Champions): Remove self.
1859 2007-08-21 Chris Smith <chris.smith@st.com>
1861 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1864 2007-08-18 Michael Snyder <msnyder@access-company.com>
1866 * stabsread.c (dbx_lookup_type): Memory leak.
1868 * event-loop.c (delete_async_signal_handler): Move pointer null
1869 test to before pointer dereference.
1871 * ui-out.c (append_header_to_list): Possible cut and paste error.
1873 * MAINTAINERS: white space tweak.
1875 2007-08-17 Michael Snyder <msnyder@access-company.com>
1877 * stack.c (print_frame): Memory leak.
1879 * completer.c (filename_completer): Avoid memory leak.
1880 Remove unnecessary nested block.
1882 * c-exp.y (parse_number): Memory leak.
1884 * completer.c (location_completer): Must free 'fn_list', except
1885 in the one case where it is returned (as 'list').
1887 * varobj.c (value_of_root): Memory leak.
1889 * gdbtypes.h (virtual_base_list): Remove export decl.
1890 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1891 (virtual_base_index): Memory leak.
1892 (virtual_base_index_skip_primaries): Ditto.
1894 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1896 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1897 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1898 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1899 (xtensa_read_register): New function.
1900 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1901 (xtensa_insn_kind): New types.
1902 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1903 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1904 (xtensa_verify_config, xtensa_pseudo_register_read)
1905 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1906 (xtensa_store_return_value)
1907 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1908 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1909 (xtensa_frame_this_id, xtensa_frame_prev_register)
1910 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1911 (call0_frame_cache, call0_frame_get_reg_at_entry)
1912 (call0_classify_opcode, call0_track_op)
1913 (call0_analyze_prologue, call0_frame_cache): New functions.
1915 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1917 * breakpoint.c (bpstat_free): New.
1918 (bpstat_clear): Use bpstat_free.
1919 (delete_breakpoint): Document why we cannot
1920 remove bpstats from stop_bpstat.
1921 * breakpoint.h (bpstat_free): Declare.
1923 2007-08-16 Michael Snyder <msnyder@access-company.com>
1925 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1927 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1928 Joel Brobecker <brobecker@adacore.com>
1930 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1932 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1933 Joel Brobecker <brobecker@adacore.com>
1935 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1936 checkin guarding against NULL.
1938 2007-08-14 Michael Snyder <msnyder@access-company.com>
1940 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1941 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1942 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1943 go at beginning of new line.
1945 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1946 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1947 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1948 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1949 tui-winsource.h, tui.c, tui.h: Function declarations and
1950 definitions, wrap long lines.
1952 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1953 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1954 Reformat block comments to GNU standard.
1956 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1957 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1958 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1959 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1960 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1961 spaces after periods, etc).
1963 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1964 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1965 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1966 tui-winsource.h: Whitespace changes, fix pointer declarations
1969 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1970 Michael Snyder <msnyder@access-company.com>
1972 * ada-lang.c (field_alignment): Guard against NULL.
1974 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1976 * MAINTAINERS (Global Maintainers): Add self.
1978 2007-08-14 Michael Snyder <msnyder@access-company.com>
1980 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1982 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1984 * varobj.c (cplus_describe_child): Guard against null.
1985 Use "NULL" instead of "0" to initialize pointers.
1987 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1989 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1990 to match any gdbarch with matching OSABI. Set default ABI and FPU
1991 after running the OSABI handler.
1993 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1995 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1996 * config/i386/linux.mt (TDEPFILES): ...to here.
1998 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
2000 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
2001 the 'silent' parameter and code to implement that.
2002 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
2004 * win32-nat.c: Adjust.
2007 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
2009 * breakpoint.c (update_breakpoints_after_exec): Don't
2010 set address to zero.
2012 2007-08-13 Michael Snyder <msnyder@access-company.com>
2014 * valops.c: Whitespace clean-up.
2016 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
2018 * event-top.c (command_line_handler): Memory leak.
2020 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
2021 No need to make copy.
2023 * source.c (find_source_lines): Require symtab 's'.
2025 2007-08-11 Michael Snyder <msnyder@access-company.com>
2027 * completer.c: Spelling fix in comments.
2029 2007-08-10 Michael Snyder <msnyder@access-company.com>
2031 * gdbtypes.c: Coding standard cleanup.
2032 * gdbtypes.c: Comment/whitespace cleanup.
2034 * stabsread.c (read_huge_number): Attempt to compute value before
2035 values that it depends on.
2037 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
2038 (decode_objc): Use "NULL" instead of 0.
2039 (find_method): Ditto.
2040 (decode_all_digits): Ditto.
2041 (decode_dollar): Ditto.
2043 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
2045 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
2047 * solib-svr4.c (enable_break): Don't free tmp_pathname until
2050 * completer.c: Comment/whitespace cleanup.
2052 2007-08-10 Joel Brobecker <brobecker@adacore.com>
2054 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
2056 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
2058 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
2059 allocated file descriptors.
2061 2007-08-10 Joel Brobecker <brobecker@adacore.com>
2063 * Makefile.in: Minor cleanup throughout; add some missing variables,
2064 add some missing rules, remove some rules that are no longer needed,
2065 and fix the dependencies in several rules.
2067 2007-08-10 Ludovic Courtès <ludo@gnu.org>
2069 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
2070 (scm_lang_h, scm_tags_h): New.
2071 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
2072 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
2073 * defs.h (enum language): Add `language_scm'.
2075 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
2078 2007-08-09 Ludovic Courtès <ludo@gnu.org>
2080 * MAINTAINERS (Write After Approval): Add myself.
2082 2007-08-09 Michael Snyder <msnyder@access-company.com>
2084 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
2086 2007-08-09 Joel Brobecker <brobecker@adacore.com>
2088 * solib-som.c (som_relocate_section_addresses): Stop saving
2089 the $CODE$ section in the so_list structure.
2091 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
2093 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
2094 (xtensa_register_group_t): Add entries for coprocessors.
2095 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
2096 (xtensa_add_reggroups): Likewise.
2097 (xtensa_register_reggroup_p): Likewise.
2098 (xtensa_coprocessor_register_group): New function.
2101 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2103 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
2105 2007-08-08 Michael Snyder <msnyder@access-company.com>
2107 * target.c (target_read_string): Guard against null.
2109 * varobj.c (value_of_root): Move alloc after return to avoid leak.
2111 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
2112 (tui_set_layout_for_display_command): Mem leak.
2114 * top.c (command_line_input): Memory leak.
2116 * solib-svr4.c (open_symbol_file_object): Memory leak.
2117 (svr4_current_sos): Ditto.
2118 (enable_break): Ditto.
2120 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
2122 * dwarf2read.c (add_partial_symbol): Memory leak.
2124 2007-08-06 Michael Snyder <msnyder@access-company.com>
2126 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
2128 2007-08-05 Jim Blandy <jimb@codesourcery.com>
2130 * macroexp.c (init_buffer): Remove testing code that overrides the
2131 caller's length guess.
2132 (gather_arguments): Use a larger initial size, now that the vector
2133 growth code has been exercised.
2135 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
2137 * solib-target.c (solib_target_relocate_section_addresses): Add
2138 orig_delta to addr_high.
2140 2007-08-04 Michael Snyder <msnyder@access-company.com>
2142 * remote-fileio.c (remote_fileio_func_write): Memory leak.
2144 * breakpoint.c (print_one_breakpoint): Off by one error.
2146 * tracepoint.c (add_register): Off by one error.
2147 (stringify_collection_list): Free malloc buffer.
2149 2007-08-03 Michael Snyder <msnyder@access-company.com>
2151 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
2152 stop memory leak, straighten out cleanups.
2154 * jv-lang.c (java_link_class_type): Guard against NULL.
2156 2007-08-02 Michael Snyder <msnyder@access-company.com>
2158 * gdbtypes.c (create_set_type): Test should only be done within
2159 the preceeding if block. Otherwise, variable is uninitialized.
2161 * gdbtypes.c (check_typedef): Guard NULL.
2163 2007-08-01 Michael Snyder <msnyder@access-company.com>
2165 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
2166 avoid dereference in lookup_cmd_1.
2168 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
2169 clean up long lines.
2170 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
2171 (tui_alloc_win_info): Ditto.
2172 (tui_add_content_elements): Ditto.
2173 * tui/tui-file.c (tui_file_magic): Ditto.
2175 2007-07-31 Michael Snyder <msnyder@access-company.com>
2177 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
2178 True and false paths are mutually exclusive.
2180 * event-top.c (command_line_handler): Add pedantic return.
2182 * f-valprint.c (info_common_command): Bail out to prevent null
2183 pointer deref. Break up a long line.
2185 * exec.c (xfer_memory): Remove redundant condition from 'if'.
2187 * symfile.c (reread_separate_symbols): Free xmalloced memory.
2189 * printcmd.c (build_address_symbolic): Remove dead code and dead
2192 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
2194 * linespec.c (minsym_found): Advance to the next line if possible.
2196 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
2198 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
2199 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
2200 solib-svr4.o, and add solib-target.o
2202 2007-07-27 Michael Snyder <msnyder@access-company.com>
2204 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
2206 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
2208 * MAINTAINERS (Write After Approval): Add myself.
2210 2007-07-26 Maciej W. Rozycki <macro@mips.com>
2212 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
2215 2007-07-25 Maciej W. Rozycki <macro@mips.com>
2217 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
2219 2007-07-24 Michael Snyder <msnyder@access-company.com>
2221 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
2222 'buffer' must cover both branches that call strcmp (Coverity).
2224 * stack.c (print_frame_args): Check return value of lookup_symbol.
2226 * ax-gdb.c (find_field): Guard against null ptr.
2228 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2230 * regformats/reg-spu.dat: Fix order of npc, id registers.
2232 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
2234 * target.c (memory_xfer_partial): Accesses to unmapped overlay
2235 sections should always go to the executable file.
2237 2004-07-20 Chris Dearman <chris@mips.com>
2239 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
2240 prologue instructions.
2242 2007-07-20 Maciej W. Rozycki <macro@mips.com>
2244 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
2247 2007-07-20 Chris Dearman <chris@mips.com>
2248 Maciej W. Rozycki <macro@mips.com>
2250 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
2253 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
2254 Daniel Jacobowitz <dan@codesourcery.com>
2256 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
2257 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
2259 * NEWS: Mention gdbserver DLL support.
2261 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
2263 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
2265 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
2267 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
2270 2007-07-13 Kevin Buettner <kevinb@redhat.com>
2272 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
2275 2007-07-12 Kevin Buettner <kevinb@redhat.com>
2277 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
2278 (mep_analyze_prologue): Add case for BRA instruction.
2280 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2282 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
2284 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
2286 * breakpoint.c: Include "top.h".
2287 (breakpoint_1): Don't set convenience variable $_ if server prefix
2289 (_initialize_breakpoint): Describe this behaviour in command help.
2291 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
2293 * solib-target.c (library_list_start_segment): Cast address to
2296 2007-07-06 Mark Kettenis <kettenis@gnu.org>
2298 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
2299 for terminated processes.
2301 2007-07-05 Michael Snyder <msnyder@access-company.com>
2303 * event-top.c (cli_command_loop): Prompt string can (and should)
2304 be freed after call to readline (Coverity). Also move local var
2305 declarations into block where they are used.
2307 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
2308 should) be freed after call to readline (Coverity). Also move
2309 local var declarations into block where they are used.
2311 2007-07-03 Andreas Schwab <schwab@suse.de>
2313 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
2316 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
2317 Thiago Bauermann <bauerman@br.ibm.com>
2318 Joseph S. Myers <joseph@codesourcery.com>
2319 Daniel Jacobowitz <dan@codesourcery.com>
2321 * remote.c (remote_check_symbols): Use
2322 gdbarch_convert_from_func_ptr_addr.
2323 * infcall.c (find_function_addr): Handle function descriptors
2324 without debugging information.
2325 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
2326 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
2327 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
2328 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
2329 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
2330 allow SEC_CODE and SEC_DATA.
2331 (enable_break): Update calls. Pass current_target to solib_add.
2332 Use gdbarch_convert_from_func_ptr_addr.
2334 2007-07-03 Ilko Iliev <iliev@ronetix.at>
2335 Daniel Jacobowitz <dan@codesourcery.com>
2337 * symfile.c (print_transfer_performance): Avoid integer overflow.
2340 2007-07-03 Markus Deuling <deuling@de.ibm.com>
2342 * cp-namespace.c (lookup_symbol_file): Add block to
2343 lookup_symbol_global call.
2344 * Makefile.in (solist_h): Add dependency on symtab header.
2345 (symtab.o): Add dependency on solist header.
2346 * solib.c (solib_global_lookup): New function.
2347 * solib-svr4.c (scan_dyntag): Likewise.
2348 (elf_locate_base): Call helper routine scan_dyntag.
2349 (elf_lookup_lib_symbol): New function.
2350 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
2351 * solist.h (symtab.h): New include.
2352 (struct target_so_ops): New member lookup_lib_global_symbol.
2353 (solib_global_lookup): New prototype.
2354 * symtab.c: New include solist.h.
2355 (lookup_objfile_from_block): New function.
2356 (lookup_global_symbol_from_objfile): New function.
2357 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
2358 (lookup_symbol_global): Call library-specific lookup procedure.
2359 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
2361 * NEWS: Document framework.
2363 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2365 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
2368 * cli/cli-script.c (build_command_line): Update NULL check.
2370 2007-07-02 Michael Snyder <msnyder@access-company.com>
2372 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
2374 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2376 * Makefile.in (XMLFILES): Add library-list.dtd.
2377 (ALLDEPFILES): Add solib-target.o.
2378 (solib-target.o): New rule.
2379 * remote.c (PACKET_qXfer_libraries): New constant.
2380 (remote_protocol_features): Add qXfer:libraries:read.
2381 (remote_wait): Recognize library stop replies.
2382 (remote_async_wait): Likewise. Fix typo.
2383 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2384 (init_remote_async_ops): Fix typo.
2385 (_initialize_remote): Register "set remote library-info-packet".
2386 * solib-som.c (som_current_sos): Set addr_low and addr_high.
2387 * solib-target.c: New file.
2388 * solib.c (solib_map_sections): Use addr_low and addr_high instead
2390 (info_sharedlibrary_command): Likewise.
2391 (solib_add_library, solib_remove_library): New.
2392 * solist.h (struct so_list): Replace textsection with addr_low and
2394 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
2395 * NEWS: Describe new qXfer:libraries:read and shared library
2397 * features/library-list.dtd: New.
2399 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2401 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
2402 (start_remote): Use STOP_QUIETLY_REMOTE.
2403 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2404 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2405 Update to match shared library event breakpoint support. Only
2406 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2407 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2408 * fork-child.c (startup_inferior): Do not set
2409 inferior_ignoring_startup_exec_events
2410 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2412 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2414 2007-07-02 Markus Deuling <deuling@de.ibm.com>
2416 * breakpoint.c (insert_bp_location): Remove dead code
2417 (DISABLE_UNSETTABLE_BREAK).
2418 (disable_breakpoints_in_shlibs)
2419 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2421 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2423 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2424 Call insert_bp_location.
2426 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2428 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2431 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2433 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2436 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2438 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2439 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2440 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2441 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2442 to display_gdb_prompt.
2444 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2447 * target.c (memory_xfer_partial): Do not continue past targets with
2450 2007-06-30 Andreas Schwab <schwab@suse.de>
2452 * m68k-tdep.c (m68k_ps_type): New.
2453 (m68k_init_types): New.
2454 (m68k_register_type): Use m68k_ps_type for PS register.
2455 (_initialize_m68k_tdep): Call m68k_init_types.
2457 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2458 from the generic m68k arch.
2460 2007-06-28 Michael Snyder <msnyder@access-company.com>
2462 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2465 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2466 gdb_assert before using return value of find_thread_pid (Coverity).
2468 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2470 * cli/cli-script.c (build_command_line): Add null pointer guard
2473 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2475 * linux-thread-db.c (thread_db_attach): Delete.
2476 (thread_db_detach): Typo fix. Call target_mourn_inferior
2477 instead of fixing up proc_handle.
2478 (have_threads_callback, have_threads): New functions.
2479 (thread_db_wait): Remove dead proc_handle.pid check. Only
2480 translate PTIDs if we have registered threads. Check for new
2481 threads if we have none.
2482 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2483 (find_new_threads_callback): Only enable event reporting if TID == 0.
2484 (same_ptid_callback): New.
2485 (thread_db_get_thread_local_address): Check for new threads.
2486 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2487 or to_post_startup_inferior.
2489 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2491 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2492 is always active if SOFTWARE_SINGLE_STEP_P is true.
2493 (resume): Use gdbarch_software_single_step[_p] instead of
2494 SOFTWARE_SINGLE_STEP[_P].
2495 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2497 * gdbarch.sh (software_single_step): Remove target macro.
2498 * gdbarch.h, gdbarch.c: Regenerate.
2500 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2502 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2503 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2504 (struct gdbarch_swap, struct gdbarch_swap_registration,
2505 struct gdbarch_swap_registry, gdbarch_swap_registry,
2506 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2507 current_gdbarch_swap_in_hack): Remove.
2508 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2509 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2510 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2511 (deprecated_current_gdbarch_select_hack): Likewise.
2512 * gdbarch.h, gdbarch.c: Regenerate.
2514 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2516 * infrun.c (clear_proceed_status): Clean up stop_registers.
2517 (normal_stop): Allocate regcache for stop_registers.
2518 (struct inferior_status): Remove stop_registers member.
2519 (save_inferior_status): Do not save stop_registers.
2520 (restore_inferior_status): Do not restore stop_registers.
2521 (discard_inferior_status): Do not discard stop_registers.
2522 (build_infrun): Remove.
2523 (_initialize_infrun): Do not swap stop_registers.
2525 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2527 * remote.c (remote_address_masked): If remote_address_size is zero,
2528 default to target address size.
2529 (build_remote_gdbarch_data): Remove.
2530 (_initialize_remote): Do not swap remote_address_size.
2532 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2534 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2535 builtin_type_char, builtin_type_short, builtin_type_int,
2536 builtin_type_long, builtin_type_signed_char,
2537 builtin_type_unsigned_char, builtin_type_unsigned_short,
2538 builtin_type_unsigned_int, builtin_type_unsigned_long,
2539 builtin_type_float, builtin_type_double, builtin_type_long_double,
2540 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2541 builtin_type_bool, builtin_type_long_long,
2542 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2543 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2544 variable declaration with compatibility macro.
2545 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2546 builtin_type_char, builtin_type_short, builtin_type_int,
2547 builtin_type_long, builtin_type_signed_char,
2548 builtin_type_unsigned_char, builtin_type_unsigned_short,
2549 builtin_type_unsigned_int, builtin_type_unsigned_long,
2550 builtin_type_float, builtin_type_double, builtin_type_long_double,
2551 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2552 builtin_type_bool, builtin_type_long_long,
2553 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2554 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2555 (build_gdbtypes): Remove.
2556 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2557 opaque-type-resolution command here. Do not call
2558 deprecated_register_gdbarch_swap.
2560 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2562 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2563 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2564 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2566 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2567 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2568 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2569 (build_parse): Remove.
2570 (_initialize_parse): Do not call build_parse. Do not register
2571 msym_ types for gdbarch-swapping.
2573 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2574 instead of creating private type.
2576 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2577 (_initialize_xcoffread): Do not initialized them.
2578 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2580 * mdebugread.c (nodebug_func_symbol_type): Remove.
2581 (nodebug_var_symbol_type): Remove.
2582 (_initialize_mdebugread): Do not initialize them.
2583 (parse_symbol): Use builtin nodebug_ type instead of them.
2584 (parse_procedure): Likewise.
2586 2007-06-21 Chris Dearman <chris@mips.com>
2588 * printcmd.c (do_one_display): If display/i, start with an initial
2589 line feed to avoid bad layout if there is a branch delay slot.
2591 2007-06-21 Nigel Stephens <nigel@mips.com>
2592 Maciej W. Rozycki <macro@mips.com>
2594 * disasm.c (gdb_print_insn): Return the number of branch delay
2595 slot instructions too.
2596 * disasm.h (gdb_print_insn): Update prototype.
2597 * printcmd.c (branch_delay_insns): New variable to record the
2598 number of delay slot instructions after disassembling a branch.
2599 (print_formatted): Record the number of branch delay slot
2601 (do_examine): When disassembling, if the last instruction
2602 disassembled has any branch delay slots, then bump the count so
2603 that they get disassembled too.
2604 * tui/tui-disasm.c (tui_disassemble): Update the call to
2606 * NEWS: Document the new behaviour.
2608 2007-06-21 Andreas Schwab <schwab@suse.de>
2610 * regcache.c (write_pc_pid): Restore missing else.
2612 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2614 * regcache.c (regcache_print): Use get_current_regcache ()
2615 instead of current_regcache.
2617 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2620 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2621 instead of bfd_make_section_anyway.
2622 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2623 when clearing SEC_LOAD.
2625 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2627 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2628 registers for big-endian.
2630 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2632 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2633 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2634 * gdbarch.c, gdbarch.h: Regenerate.
2636 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2638 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2639 gdbarch_believe_pcc_promotion.
2640 * stabsread.c (define_symbol): Likewise.
2641 Remove unnecessary definition.
2642 * coffread.c (process_coff_symbol): Remove unnecessary code.
2643 * gdbarch.c, gdbarch.h: Regenerate.
2645 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2647 * configure.ac: Do not use ${objdir}.
2648 * configure: Regenerated.
2650 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2652 * gdbarch.sh (deprecated_register_size): Remove.
2653 * gdbarch.h, gdbarch.c: Regenerate.
2655 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2656 by INT_REGISTER_SIZE.
2657 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2658 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2659 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2660 set_gdbarch_deprecated_register_size.
2662 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2664 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2665 gdbarch_deprecated_fp_regnum.
2666 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2667 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2668 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2669 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2671 * gdbarch.c, gdbarch.h: Regenerate.
2673 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2675 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2676 gdbarch_extract_return_value.
2677 * value.c (generic_use_struct_convention): Likewise (comment).
2678 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2679 * arch-utils.c (legacy_return_value): Likewise.
2680 * arch-utils.h (legacy_return_value): Likewise (comment).
2681 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2682 gdbarch_store_return_value.
2683 * stack.c (return_command): Likewise (comment).
2684 * arch-utils.h (legacy_return_value): Likewise (comment).
2685 * arch-utils.c (legacy_return_value): Likewise.
2686 * gdbarch.c, gdbarch.h: Regenerate.
2688 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2690 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2691 gdbarch_deprecated_use_struct_convention.
2692 * arch-utils.c (legacy_return_value): Likewise.
2693 * gdbarch.c, gdbarch.h: Regenerate.
2695 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2697 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2698 gdbarch_deprecated_function_start_offset.
2699 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2700 * linespec.c (minsym_found): Likewise.
2701 * infrun.c (handle_inferior_event): Likewise.
2702 * infcall.c (find_function_addr): Likewise.
2703 * cli/cli-cmds.c (disassemble_command): Likewise.
2704 * gdbarch.c, gdbarch.h: Regenerate.
2706 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2708 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2709 gdbarch_deprecated_reg_struct_has_addr.
2710 * infcall.c (call_function_by_hand): Likewise.
2711 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2712 * gdbarch_deprecated_reg_struct_has_addr_p.
2713 * infcall.c (call_function_by_hand): Likewise.
2714 * gdbarch.c, gdbarch.h: Regenerate.
2716 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2718 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2719 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2720 (sh_gdbarch_init): Remove
2721 set_gdbarch_deprecated_extract_struct_value_address.
2722 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2723 (sh64_gdbarch_init): Remove
2724 set_gdbarch_deprecated_extract_struct_value_address.
2725 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2726 (ia64_gdbarch_init): Remove
2727 set_gdbarch_deprecated_extract_struct_value_address.
2728 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2729 (frv_gdbarch_init): Remove
2730 set_gdbarch_deprecated_extract_struct_value_address.
2731 * gdbarch.c, gdbarch.h: Regenerate.
2733 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2735 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2736 * v850-tdep.c (v850_unwind_sp): Likewise.
2737 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2738 * stack.c (frame_info): Likewise.
2739 * stabsread.c (define_symbol): Likewise.
2740 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2741 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2742 (sh_unwind_sp): Likewise.
2743 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2744 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2745 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2746 (rs6000_frame_cache): Likewise.
2747 * rs6000-nat.c (store_register): Likewise.
2748 * remote-mips.c (mips_wait): Likewise.
2749 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2750 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2751 (ppc64_sysv_abi_push_dummy_call): Likewise.
2752 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2753 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2754 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2755 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2756 * m32r-rom.c (m32r_supply_register): Likewise.
2757 * frame.c (frame_sp_unwind): Likewise.
2758 * mips-tdep.c (mips_insn16_frame_cache)
2759 (mips_insn32_frame_cache): Likewise (comment).
2760 * m68klinux-nat.c (supply_gregset): Likewise.
2761 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2762 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2763 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2764 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2765 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2766 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2767 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2768 (cris_register_type, crisv32_register_type)
2769 (cris_dwarf2_frame_init_reg): Likewise.
2770 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2771 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2772 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2773 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2775 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2776 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2777 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2778 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2779 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2780 * v850-tdep.c (v850_unwind_pc): Likewise.
2781 * stack.c (frame_info): Likewise.
2782 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2783 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2784 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2785 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2786 (sh_dsp_show_regs): Likewise.
2787 * shnbsd-tdep.c (shnbsd_supply_gregset)
2788 (shnbsd_collect_gregset): Likewise.
2789 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2790 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2791 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2792 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2793 (6000_register_reggroup_p, rs6000_unwind_pc)
2794 (rs6000_frame_cache): Likewise.
2795 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2796 (rs6000_store_inferior_registers): Likewise.
2797 * remote-mips.c (mips_wait, mips_load): Likewise.
2798 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2799 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2800 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2801 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2802 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2803 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2804 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2805 (store_ppc_registers, fill_gregset): Likewise.
2806 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2807 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2808 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2809 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2810 * m68klinux-nat.c (supply_gregset): Likewise.
2811 * irix5-nat.c (fill_gregset): Likewise.
2812 * i386-tdep.c (i386_unwind_pc): Likewise.
2813 * i386-linux-nat.c (i386_linux_resume): Likewise.
2814 * frame.c (get_prev_frame_1): Likewise.
2815 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2816 * dbug-rom.c (dbug_supply_register): Likewise.
2817 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2818 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2819 (cris_register_type, crisv32_register_type, crisv32_register_name)
2820 (cris_dwarf2_frame_init_reg, find_step_target)
2821 (cris_software_single_step, cris_supply_gregset)
2822 (cris_regnums): Likewise.
2823 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2824 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2825 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2826 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2827 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2829 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2830 * dbug-rom.c (dbug_supply_register): Likewise.
2831 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2832 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2833 * win32-nat.c (win32_resume): Likewise.
2834 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2835 * m68k-tdep.c (m68k_register_type): Likewise.
2836 * m68klinux-nat.c (supply_gregset): Likewise.
2838 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2839 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2840 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2841 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2842 (fv_reg_base_num, dr_reg_base_num): Likewise.
2843 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2844 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2845 (sh64_extract_return_value, sh64_store_return_value)
2846 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2847 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2848 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2849 (invalidate_cache): Likewise.
2850 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2851 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2852 (mipsnbsd_fill_fpreg): Likewise.
2853 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2854 (mipsnbsd_store_inferior_registers): Likewise.
2855 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2856 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2857 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2858 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2859 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2860 (fill_fpregset): Likewise.
2861 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2862 * i386-tdep.h (struct_return): Likewise (comment).
2863 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2864 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2865 (go32_store_registers): Likewise.
2866 * alpha-tdep.c (alpha_next_pc): Likewise.
2867 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2868 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2869 (alphabsd_store_inferior_registers): Likewise.
2870 * core-regset.c (fetch_core_registers): Likewise.
2871 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2873 * gdbarch.c, gdbarch.h: Regenerate.
2875 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2877 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2878 * dbxread.c (start_psymtab): Check HAVE_ELF.
2879 (aout_sym_fns): Likewise.
2880 * elfread.c (elf_symfile_segments): New.
2881 (elf_sym_fns): Add elf_symfile_segments.
2882 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2883 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2884 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2885 * somread.c (som_sym_fns): Use default_symfile_segments.
2886 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2887 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2888 (default_symfile_segments): New function.
2889 (syms_from_objfile): Update call to find_sym_fns.
2890 (symfile_get_segment_data, free_symfile_segment_data): New.
2891 (symfile_map_offsets_to_segments): New.
2892 (symfile_find_segment_sections): New.
2893 * symfile.h (struct symfile_segment_data): New.
2894 (struct sym_fns): Add sym_segments.
2895 (default_symfile_segments, symfile_get_segment_data)
2896 (free_symfile_segment_data): New prototypes.
2897 (symfile_map_offsets_to_segments): Likewise.
2898 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2899 * Makefile.in (COMMON_OBS): Remove elfread.o.
2900 (elf_internal_h): New.
2901 (elfread.o): Update.
2902 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2904 * config.in, configure: Regenerated.
2905 * NEWS: Mention qOffsets changes.
2907 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2909 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2910 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2911 Replace global variable declaration with compatibility macro.
2912 (struct builtin_m2_type): New data type.
2913 (builtin_m2_type): Add prototype.
2914 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2915 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2916 Remove global variables.
2917 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2918 (build_m2_types): New function.
2919 (m2_type_data): New variable.
2920 (builtin_m2_type): New function.
2921 (_initialize_m2_language): Do not build data types. Register
2922 m2_type_data per-gdbarch data.
2924 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2926 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2927 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2928 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2929 builtin_type_f_real_s8, builtin_type_f_real_s16,
2930 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2931 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2932 variable declaration with compatibility macro.
2933 (struct builtin_f_type): New data type.
2934 (builtin_f_type): Add prototype.
2935 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2936 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2937 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2938 builtin_type_f_real_s8, builtin_type_f_real_s16,
2939 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2940 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2941 (f_language_arch_info): Use builtin_f_type instead of variables.
2942 (build_fortran_types): Build builtin_f_type structure instead of
2943 setting global type variables.
2944 (f_type_data): New variable.
2945 (builtin_f_type): New function.
2946 (_initialize_f_language): Do not call build_fortran_types. Do not
2947 swap global type variables. Register f_type_data per-gdbarch data.
2949 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2951 * f-lang.c (_initialize_f_language): Do not initialize or
2952 swap builtin_type_string.
2954 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2956 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2957 value_of_builtin_frame_reg): Remove.
2958 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2959 inactive call to value_of_builtin_frame_reg.
2961 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2963 * gdbarch.sh (bfd_vma_bit): Remove.
2964 * gdbarch.c, gdbarch.h: Regenerate.
2966 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2967 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2968 (build_gdbtypes): Do not initialize it.
2969 (_initialize_gdbtypes): Do not swap it.
2971 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2973 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2974 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2975 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2976 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2977 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2978 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2979 builtin_type_vec64, builtin_type_vec128): Remove.
2980 (init_simd_type): Remove.
2981 (init_vector_type): Make global.
2982 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2983 (build_gdbtypes): Do not build vector types.
2984 (_initialize_gdbtypes): Do not swap vector types.
2985 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2986 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2987 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2988 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2989 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2990 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2991 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2992 (init_vector_type): Add prototype.
2994 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2995 i386_sse_type members.
2996 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2997 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2998 (i386_init_types): Do not build vector types.
2999 (i386_mmx_type, i386_sse_type): New functions.
3000 (i386_register_type): Call them instead of using global variables.
3001 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
3002 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
3003 of using global variable.
3005 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
3006 and ppc_builtin_type_vec128 members.
3007 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
3008 (rs6000_builtin_type_vec128): Likewise.
3009 (rs6000_register_type): Call them instead of using builtin_type_vec64
3010 and builtin_type_vec128.
3011 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
3013 * spu-tdep.c (struct gdbarch_tdep): New data type.
3014 (spu_builtin_type_vec128): Remove variable.
3015 (spu_builtin_type_vec128): New function.
3016 (spu_register_type): Call it instead of using global variable.
3017 (spu_gdbarch_init): Allocate tdep structure.
3018 (spu_init_vector_type): Remove function.
3019 (_initialize_spu_tdep): Do not call it.
3021 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3023 * amd64-tdep.c (struct amd64_register_info): Remove.
3024 (amd64_register_info): Remove.
3025 (amd64_register_names): New static variable.
3026 (AMD64_NUM_REGS): Use amd64_register_names instead of
3027 amd64_register_info.
3028 (amd64_register_name): Likewise.
3029 (amd64_register_type): Do not refer to amd64_register_info.
3031 * s390-tdep.c (struct s390_register_info): Remove.
3032 (s390_register_info): Remove.
3033 (s390_register_name): Do not refer to s390_register_info.
3034 (s390_register_type): Likewise.
3036 * sparc64-tdep.c (struct sparc64_register_info): Remove.
3037 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
3038 (sparc64_register_names, sparc64_pseudo_register_names): New.
3039 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
3040 sparc64_register_names and sparc64_pseudo_register_names instead of
3041 sparc64_register_info and sparc64_pseudo_register_info.
3042 (sparc64_register_name): Likewise.
3043 (sparc64_register_type): Do not refer to sparc64_register_info
3044 and sparc64_pseudo_register_info.
3046 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3048 * c-lang.c (cplus_builtin_types): Remove.
3049 (enum cplus_primitive_types): New data type.
3050 (cplus_language_arch_info): New function.
3051 (cplus_language_defn): Set la_language_arch_info member. Do not set
3052 la_builtin_type_vector and string_char_type members.
3054 * f-lang.c (f_builtin_types): Remove.
3055 (enum f_primitive_types): New data type.
3056 (f_language_arch_info): New function.
3057 (f_language_de): Set la_language_arch_info member. Do not set
3058 la_builtin_type_vector and string_char_type members.
3060 * m2-lang.c (m2_builtin_types): Remove.
3061 (enum m2_primitive_types): New data type.
3062 (m2_language_arch_info): New function.
3063 (m2_language_defn): Set la_language_arch_info member. Do not set
3064 la_builtin_type_vector and string_char_type members.
3066 * objc-lang.c (objc_builtin_types): Remove.
3067 (objc_language): Set la_language_arch_info member. Do not set
3068 la_builtin_type_vector and string_char_type members.
3070 * p-lang.c (pascal_builtin_types): Remove.
3071 (enum pascal_primitive_types): New data type.
3072 (pascal_language_arch_info): New function.
3073 (pascal_language_defn): Set la_language_arch_info member. Do not set
3074 la_builtin_type_vector and string_char_type members.
3076 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3078 * regcache.c (struct regcache): Add ptid_t member.
3079 (regcache_xmalloc): Initialize it.
3080 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
3081 (regcache_dup): Likewise.
3082 (regcache_dup_no_passthrough): Likewise.
3083 (current_regcache): Make static.
3084 (registers_ptid): Remove variable.
3085 (get_thread_regcache): New function.
3086 (get_current_regcache): New function.
3087 (registers_changed): Implement by freeing current regcache.
3088 (regcache_raw_read): Do not refer to current_regcache. Set
3089 inferior_ptid to regcache->ptid while calling target routines.
3090 (regcache_raw_write): Likewise.
3091 (regcache_raw_supply): Do not refer to current_regcache.
3092 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
3093 (write_pc_pid): Likewise.
3094 (build_regcache): Remove.
3095 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
3096 or deprecated_register_gdbarch_swap. Do not initialize
3098 * regcache.h (get_current_regcache): Add prototype.
3099 (get_thread_regcache): Likewise.
3100 (current_regcache): Remove declaration.
3102 * corelow.c (core_open): Replace current_regcache by
3103 get_current_regcache ().
3104 * frame.c (frame_pop): Likewise.
3105 (put_frame_register): Likewise.
3106 (get_current_frame, create_new_frame): Likewise.
3107 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
3108 * stack.c (return_command): Likewise.
3109 * infcall.c (call_function_by_hand): Likewise.
3110 * infrun.c (resume): Likewise.
3111 (save_inferior_status, restore_inferior_status): Likewise.
3112 * linux-fork.c (fork_load_infrun_state): Likewise.
3113 (fork_save_infrun_state): Likewise.
3114 * win32-nat.c (win32_resume): Likewise.
3115 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
3116 * monitor.c (monitor_wait): Likewise.
3117 * remote.c (remote_wait): Likewise.
3118 * remote-mips.c (mips_wait): Likewise.
3120 * bsd-kvm.c (bsd_kvm_open): Likewise
3121 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
3122 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
3123 * i386-linux-nat.c (i386_linux_resume): Likewise.
3124 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
3125 (ia64_linux_stopped_data_address): Likewise.
3127 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
3128 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3129 * mep-tdep.c (current_me_module, current_options): Likewise.
3130 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
3132 * linux-nat.c (linux_nat_do_thread_registers): Use thread
3133 regcache instead of current_regcache. Call target_fetch_registers.
3134 (linux_nat_corefile_thread_callback): Update call site.
3135 (linux_nat_do_registers): Likewise.
3136 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
3137 of current_regcache.
3138 (procfs_make_note_section): Likewise.
3139 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
3140 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3141 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
3142 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
3144 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3146 * regcache.c (read_register, read_register_pid): Remove.
3147 (write_register, write_register_pid): Likewise.
3148 * regcache.h (read_register, read_register_pid): Remove prototype.
3149 (write_register, write_register_pid): Likewise.
3151 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3153 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
3154 (write_pc): Likewise. Remove default implementation, add predicate.
3155 * gdbarch.c, gdbarch.h: Regenerate.
3156 * regcache.c (read_pc_pid): Use current regcache instead of calling
3158 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
3160 (generic_target_write_pc): Remove.
3161 * inferior.h (generic_target_write_pc): Remove.
3162 * frv-tdep.c (frv_gdbarch_init): Do not install it.
3163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3164 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3165 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3166 * sh-tdep.c (sh_gdbarch_init): Likewise.
3167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3169 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
3170 argument. Use REGCACHE instead of calling read_register_pid.
3171 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
3172 * hppa-tdep.c (hppa_read_pc): Likewise.
3173 * hppa-tdep.h (hppa_read_pc): Likewise.
3174 * ia64-tdep.c (ia64_read_pc): Likewise.
3175 * m32r-tdep.c (m32r_read_pc): Likewise.
3176 * mep-tdep.c (mep_read_pc): Likewise.
3177 * mn10300-tdep.c (mn10300_read_pc): Likewise.
3178 * spu-tdep.c (spu_read_pc): Likewise.
3180 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
3181 argument. Use REGCACHE instead of calling write_register_pid.
3182 * avr-tdep.c (avr_write_pc): Likewise.
3183 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
3184 * hppa-tdep.c (hppa_write_pc): Likewise.
3185 * hppa-tdep.h (hppa_write_pc): Likewise.
3186 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
3187 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
3188 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
3189 * ia64-tdep.c (ia64_write_pc): Likewise.
3190 * ia64-tdep.h (ia64_write_pc): Likewise.
3191 * m32r-tdep.c (m32r_write_pc): Likewise.
3192 * m88k-tdep.c (m88k_write_pc): Likewise.
3193 * mep-tdep.c (mep_write_pc): Likewise.
3194 * mips-tdep.c (mips_write_pc): Likewise.
3195 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
3196 * mn10300-tdep.c (mn10300_write_pc): Likewise.
3197 * sparc-tdep.c (sparc_write_pc): Likewise.
3198 * spu-tdep.c (spu_write_pc): Likewise.
3200 * mips-tdep.c (read_signed_register): Remove.
3201 (read_signed_register_pid): Likewise.
3202 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
3203 Use REGCACHE instead of calling read_signed_register_pid.
3205 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3207 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
3208 * gdbarch.c, gdbarch.h: Regenerate.
3209 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
3210 (push_dummy_code): Likewise. Pass it to callee.
3211 (call_function_by_hand): Pass current regcache to push_dummy_code.
3213 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
3214 argument. Use it instead of current_regcache.
3216 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
3217 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
3219 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3221 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
3222 * gdbarch.c, gdbarch.h: Regenerate.
3223 * infrun.c (handle_inferior_event): Pass current frame to
3224 gdbarch_get_longjmp_target.
3226 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
3227 Read registers from FRAME instead of using read_register.
3228 Use get_frame_arch instead of current_gdbarch.
3229 * arm-tdep.c (arm_get_longjmp_target): Likewise.
3230 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3231 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3232 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
3233 (mips64_linux_get_longjmp_target): Likewise.
3234 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3236 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3238 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
3239 * gdbarch.c, gdbarch.h: Regenerate.
3240 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
3241 * arch-utils.h (generic_skip_trampoline_code): Likewise.
3242 * infrun.c (handle_inferior_event): Pass current frame to
3243 gdbarch_skip_trampoline_code and skip_language_trampoline.
3245 * language.c (unk_lang_trampoline): Add FRAME argument.
3246 (skip_language_trampoline): Add FRAME argument. Pass it to
3247 skip_trampoline callback.
3248 * language.h: Add forward declaration of struct frame_info.
3249 (struct language_defn): Add FRAME argument to skip_trampoline.
3250 (skip_language_trampoline): Add FRAME argument.
3251 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
3252 to skip_trampoline callback.
3253 * cp-abi.h: Add forward declaration of struct frame_info.
3254 (cplus_skip_trampoline): Add FRAME argument.
3255 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
3256 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
3257 to gdbarch_skip_trampoline_code.
3258 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
3259 to gdbarch_skip_trampoline_code.
3261 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
3262 * symtab.h (find_solib_trampoline_target): Likewise.
3263 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
3264 find_solib_trampoline_target.
3266 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
3267 from FRAME instead of calling read_register.
3269 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
3270 argument. Read registers from FRAME instead of using read_register.
3271 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
3272 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
3274 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
3277 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
3279 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
3280 registers from FRAME instead of using read_signed_register.
3282 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
3284 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
3285 instead of using read_register.
3286 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
3287 ppc64_standard_linkage_target.
3288 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
3289 Pass it to find_solib_trampoline_target. Read registers from FRAME
3290 instead of using read_register.
3292 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
3295 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3297 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
3299 * gdbarch.c, gdbarch.h: Regenerate.
3300 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
3302 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
3303 registers from FRAME instead of using read_register.
3304 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3305 to alpha_next_pc. Use get_frame_pc instead of read_pc.
3306 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
3309 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
3310 from FRAME instead of using read_register.
3311 (thumb_get_next_pc): Likewise.
3312 (arm_get_next_pc): Likewise.
3313 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3314 to arm_get_next_pc. Use get_frame_pc instead of read_register.
3315 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
3318 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
3319 from FRAME instead of using read_register.
3320 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3321 to find_step_target.
3323 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
3324 from FRAME instead of using read_register / read_signed_register.
3325 (extended_mips16_next_pc): Likewise.
3326 (mips16_next_pc): Likewise.
3327 (mips_next_pc): Likewise.
3328 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3329 to mips_next_pc. Use get_frame_pc instead of read_pc.
3330 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
3333 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
3334 of current frame. Read registers from FRAME.
3335 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
3336 branch_dest. Use get_frame_pc instead of read_pc.
3337 (rs6000_software_single_step): Likewise.
3338 (bl_to_blrl_insn_p): Do not call branch_dest.
3339 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
3342 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
3343 Read registers from FRAME instead of current regcache.
3344 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
3345 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
3346 * sparc-tdep.c (sparc_address_from_register): Remove.
3347 (sparc_analyze_control_transfer): Pass FRAME argument instead of
3348 GDBARCH. Pass FRAME to step_trap callback.
3349 (sparc_step_trap): Add FRAME argument.
3350 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3351 to sparc_analyze_control_transfer. Read registers from FRAME instead
3352 of calling sparc_address_from_register.
3353 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
3355 (sparc_address_from_register): Remove prototype.
3356 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
3357 (sparcnbsd_step_trap): Add FRAME argument.
3359 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
3360 by FRAME. Read registers from FRAME instead of REGCACHE.
3362 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3364 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
3365 instead of calling read_register.
3367 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
3368 calling write_register.
3370 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
3371 calling write_register.
3373 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
3374 instead of calling read_register.
3375 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
3376 instead of calling read_register and write_register.
3378 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
3379 instead of current_regcache.
3381 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
3382 of calling write_register.
3383 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
3384 parameter instead of current_regcache.
3386 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
3387 instead of calling read_register.
3388 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
3389 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
3390 (mips_n32n64_push_dummy_call): Likewise.
3391 (mips_o32_push_dummy_call): Likewise.
3392 (mips_o64_push_dummy_call): Likewise.
3394 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
3395 parameter instead of current_regcache.
3397 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
3398 Use it instead of read_register and write_register.
3399 (xtensa_register_read_masked): Likewise.
3400 (xtensa_pseudo_register_read): Update call.
3401 (xtensa_pseudo_register_write): Likewise.
3402 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
3403 instead of calling read_register.
3404 (xtensa_push_dummy_call): Update comment.
3406 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3408 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3409 by frame_unwind_register_signed calls.
3410 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3411 frame allocations when called with NULL NEXT_FRAME parameter.
3412 (read_next_frame_reg): Remove.
3414 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3415 instead of reading the FPSCR register.
3416 (sh_frame_cache): Pass unwound FPSCR register value to
3417 sh_analyze_prologue.
3418 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3420 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3421 instead of reading the CTBP register.
3422 (v850_frame_cache): Pass unwound CTBP register value to
3423 v850_analyze_prologue.
3425 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3427 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3428 * sh-tdep.c (sh_show_regs): Likewise.
3429 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3430 (sh_generic_show_regs): Add FRAME parameter. Use register
3431 values from that frame instead of calling read_register.
3432 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3433 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3434 sh_dsp_show_regs): Likewise.
3435 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3436 sh64_show_regs): Likewise.
3438 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3440 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3441 current regcache instead of calling read_register.
3443 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3445 * mep-tdep.c (current_me_module): Read from current regcache
3446 instead of calling read_register.
3447 (current_options): Likewise.
3449 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3451 * cris-tdep.c (cris_stopped_data_address): Read register values
3452 from current frame instead of calling read_register.
3453 * frv-tdep.c (frv_stopped_data_address): Likewise.
3455 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3457 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3458 instead of write_register (PC_REGNUM, ...).
3460 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3462 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3463 explaining why the PC adjustment code is necessary.
3465 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3467 * m68k-tdep.h (enum m68k_flavour): New.
3468 (struct gdbarch_tdep): New fields
3469 float_return, flavour and fpregs_present.
3470 * m68k-tdep.c (m68k_register_type): Use
3471 fpregs_present and conditionalize floating
3472 registers type on flavour.
3473 (m68k_register_names): New.
3474 (m68k_register_name): Use the above.
3475 (m68k_convert_register_p): Consult fpregs_present.
3476 (m68k_register_to_value, m68k_value_to_register):
3477 Use register_type to obtain the type of floating
3479 (m68k_svr4_extract_return_value): Check tdep->float_return.
3480 Use register_type to get the type of floating
3482 (m68k_svr4_store_return_value): Likewise.
3483 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3484 (m68k_analyze_register_saves): Likewise.
3485 (m68k_gdbarch_init): Extract infromation
3486 from XML description, if present. Guess coldfire by
3487 looking at the file, if present. Conditionalize
3488 setting of long double format. Set decr_pc_after_break
3489 to 2 on coldfire and fido. Enable XML-driven
3490 register description.
3491 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3492 size of tdep->fpreg_type, as opposed to hardcoded value.
3493 * Makefile.in (m68k-tdep.o): Update dependencies.
3495 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3497 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3498 qXfer:spu:write remote packet types.
3500 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3502 * xml-tdesc.c (tdesc_start_target): New.
3503 (target_attributes): New.
3504 (tdesc_elements): Use it.
3505 * features/gdb-target.dtd: Add #FIXED version attribute for
3508 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3510 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3512 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3514 * fork-child.c (fork_inferior): Update comment.
3516 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3518 * features/Makefile: Generate regformats for mips-linux and
3520 * features/sort-regs.xsl: Correct typo.
3521 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3522 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3525 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3527 * config/mips/linux.mh (TDEP_XML): New.
3528 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3529 * mips-linux-nat.c (mips_linux_register_addr): Handle
3530 MIPS_RESTART_REGNUM.
3531 (mips64_linux_register_addr): Likewise.
3532 (super_xfer_partial, mips_linux_xfer_partial): New.
3533 (_initialize_mips_linux_nat): Add them to the target_ops.
3534 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3535 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3536 (mips_linux_o32_sigframe_init)
3537 (mips_linux_n32n64_sigframe_init): Likewise.
3538 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3539 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3540 "org.gnu.gdb.mips.linux" feature.
3541 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3542 (mips_linux_restart_reg_p): New prototype.
3543 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3544 initialization routine.
3545 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3547 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3549 * Makefile.in (mips-tdep.o): Update.
3550 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3551 (mips_n32_n64_aliases, mips_register_aliases): New.
3552 (mips_register_name): Call tdesc_register_name.
3553 (mips_tdesc_register_reggroup_p): New.
3554 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3555 (mips_gdbarch_init): Add target-described register support.
3556 Register aliases for register names.
3557 * target-descriptions.c (tdesc_register_name): Make global.
3558 (tdesc_register_in_reggroup_p): New function, broken out from
3559 tdesc_register_reggroup_p.
3560 (tdesc_register_reggroup_p): Use it.
3561 * target-descriptions.h (tdesc_register_name)
3562 (tdesc_register_in_reggroup_p): New prototypes.
3563 * NEWS: Correct formatting. Mention MIPS register support.
3564 * features/mips-cp0.xml, features/mips-fpu.xml,
3565 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3566 features/mips64-cpu.xml: New files.
3568 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3570 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3571 * valops.c (value_cast): Likewise.
3572 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3573 * ui-out.c (ui_out_field_core_addr): Likewise.
3574 * tracepoint.c (tracepoints_info): Likewise.
3575 * symtab.c (print_msymbol_info): Likewise.
3576 * solib-irix.c (irix_current_sos)
3577 (irix_open_symbol_file_object): Likewise.
3578 * remote.c (build_remote_gdbarch_data): Likewise.
3579 * prologue-value.c (make_pv_area): Likewise.
3580 * procfs.c (info_mappings_callback): Likewise.
3581 * printcmd.c (print_scalar_formatted)
3582 (deprecated_print_address_numeric): Likewise.
3583 * memattr.c (mem_info_command): Likewise.
3584 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3585 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3586 * exec.c (print_section_info): Likewise.
3587 * dwarf2read.c (read_subrange_type): Likewise.
3588 * dwarf2loc.c (find_location_expression): Likewise.
3589 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3590 (signed_address_type, execute_stack_op): Likewise.
3591 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3592 * gdbarch.c, gdbarch.h: Regenerate.
3594 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3596 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3597 * arch-utils.c (show_architecture): Likewise.
3598 * remote-mips.c (mips_open): Likewise
3599 * nto-tdep.c (nto_find_and_open_solib)
3600 (nto_init_solib_absolute_prefix): Likewise.
3601 * nto-procfs (procfs_open): Likewise.
3602 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3603 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3604 * gdbarch.c, gdbarch.h: Regenerate.
3606 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3608 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3609 * gdbtypes.c (build_flt): Likewise.
3610 * gdbarch.c, gdbarch.h: Regenerate.
3612 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3614 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3615 gdbarch_breakpoint_from_pc.
3616 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3617 * remote.c (remote_insert_breakpoint)
3618 (remote_insert_hw_breakpoint): Likewise.
3619 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3620 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3621 * breakpoint.h (bp_target_info): Likewise (comment).
3622 * breakpoint.c (read_memory_nobpt): Likewise.
3623 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3624 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3625 * gdbarch.c, gdbarch.h: Regenerate.
3627 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3629 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3630 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3631 * solib-pa64.c (read_dynamic_info): Likewise.
3632 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3633 * solib.c (info_sharedlibrary_command): Likewise.
3634 * s390-nat.c (SUBOFF): Likewise.
3635 * p-valprint.c (pascal_val_print): Likewise.
3636 * procfs.c (info_proc_mappings): Likewise.
3637 * printcmd.c (decode_format): Likewise.
3638 * nto-tdep.c (nto_truncate_ptr): Likewise.
3639 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3640 (mips64_linux_get_longjmp_target): Likewise.
3641 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3642 * jv-valprint.c (java_value_print): Likewise.
3643 * jv-lang.c (get_java_object_header_size): Likewise.
3644 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3645 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3646 (hppa_hpux_unwind_adjust_stub): Likewise.
3647 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3648 * gdbtypes.c (make_pointer_type, make_reference_type)
3649 (smash_to_memberptr_type): Likewise.
3650 * gdbarch.c, gdbarch.h: Regenerate.
3652 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3654 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3655 (print_gp_register_row): Stop before printing a register bigger
3656 than the ABI register size.
3657 (mips_print_registers_info): Update call to mips_print_register.
3659 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3661 * expression.h (enum exp_opcode): Document a register name for
3663 * parse.c (write_dollar_variable): Write the register name for
3665 (operator_length_standard): Expect the register name following
3667 * ada-lang.c (resolve_subexp): Likewise.
3668 * ax-gdb.c (gen_expr): Likewise.
3669 * eval.c (evaluate_subexp_standard): Likewise.
3670 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3672 * tracepoint.c (encode_actions): Likewise.
3674 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3676 * utils.c (set_screen_size): Use INT_MAX for default columns.
3678 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3680 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3681 qXfer:spu:write packet types.
3683 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3685 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3686 * gdbarch.c, gdbarch.h: Regenerate.
3688 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3690 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3691 gdbarch_stab_reg_to_regnum.
3692 * stabsread.c (define_symbol): Likewise.
3693 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3694 gdbarch_ecoff_reg_to_regnum.
3695 * mdebugread.c (parse_symbol): Likewise.
3696 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3697 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3698 gdbarch_dwarf_reg_to_regnum.
3699 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3700 * coffread.c (process_coff_symbol): Likewise.
3701 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3702 gdbarch_dwarf2_reg_to_regnum.
3703 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3704 (locexpr_describe_location): Likewise.
3705 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3706 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3707 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3708 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3709 * gdbarch.c, gdbarch.h: Regenerate.
3711 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3713 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3714 gdbarch_smash_text_address.
3715 * somread.c (som_symtab_read): Likewise.
3716 * elfread.c (record_minimal_symbol): Likewise.
3717 * dbxread.c (process_one_symbol): Likewise.
3718 * coffread.c (coff_symtab_read): Likewise.
3719 * gdbarch.c, gdbarch.h: Regenerate.
3721 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3723 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3724 * findvar.c (value_from_register): Likewise.
3725 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3726 * valops.c (value_assign): Likewise.
3727 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3728 gdbarch_convert_register_p.
3729 * findvar.c (value_from_register): Likewise.
3730 * valops.c (value_assign): Likewise.
3731 * gdbarch.c, gdbarch.h: Regenerate.
3733 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3735 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3736 gdbarch_register_sim_regno.
3737 * sim-regno.h (sim_regno): Likewise (comment).
3738 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3739 * gdbarch.c, gdbarch.h: Regenerate.
3741 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3743 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3744 gdbarch_virtual_frame_pointer.
3745 * tracepoint.c (encode_actions): Likewise.
3746 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3747 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3748 * gdbarch.c, gdbarch.h: Regenerate.
3750 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3752 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3753 * p-lang.c (pascal_create_fundamental_type): Likewise.
3754 * objc-lang.c (objc_create_fundamental_type): Likewise.
3755 * mdebugread.c (_initialize_mdebugread): Likewise.
3756 * m2-lang.c (m2_create_fundamental_type)
3757 (_initialize_m2_language): Likewise.
3758 * gdbtypes.c (build_gdbtypes): Likewise.
3759 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3760 * doublest.c (floatformat_from_length): Likewise.
3761 * c-lang.c (c_create_fundamental_type): Likewise.
3762 * ada-lang.c (ada_create_fundamental_type)
3763 (ada_language_arch_info): Likewise.
3764 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3765 * value.c (unpack_double): Likewise (comment).
3766 * gdbtypes.c (build_gdbtypes): Likewise.
3767 * doublest.c (floatformat_from_length): Likewise.
3768 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3769 * valarith.c (value_binop): Likewise.
3770 * p-lang.c (pascal_create_fundamental_type): Likewise.
3771 * objc-lang.c (objc_create_fundamental_type): Likewise.
3772 * mdebugread.c (_initialize_mdebugread): Likewise.
3773 * m2-lang.c (m2_create_fundamental_type): Likewise.
3774 * gdbtypes.c (build_gdbtypes): Likewise.
3775 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3776 * doublest.c (floatformat_from_length): Likewise.
3777 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3778 * c-lang.c (c_create_fundamental_type): Likewise.
3779 * ada-lex.l (processReal): Likewise.
3780 * ada-lang.c (ada_create_fundamental_type)
3781 (ada_language_arch_info): Likewise.
3782 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3783 * value.c (unpack_double): Likewise (comment).
3784 * gdbtypes.c (build_gdbtypes): Likewise.
3785 * doublest.c (floatformat_from_length): Likewise.
3786 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3787 gdbarch_long_double_bit.
3788 * p-lang.c (pascal_create_fundamental_type): Likewise.
3789 * objc-lang.c (objc_create_fundamental_type): Likewise.
3790 * m2-lang.c (m2_create_fundamental_type): Likewise.
3791 * gdbtypes.c (build_gdbtypes): Likewise.
3792 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3793 * doublest.c (floatformat_from_length): Likewise.
3794 * c-lang.c (c_create_fundamental_type): Likewise.
3795 * ada-lex.l (processReal): Likewise.
3796 * ada-lang.c (ada_create_fundamental_type)
3797 (ada_language_arch_info): Likewise.
3798 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3799 gdbarch_long_double_format.
3800 * gdbtypes.c (build_gdbtypes): Likewise.
3801 * doublest.c (floatformat_from_length): Likewise.
3802 * gdbarch.c, gdbarch.h: Regenerate.
3804 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3806 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3807 * ada-lang.c (ada_create_fundamental_type)
3808 (ada_language_arch_info): Likewise.
3809 * c-lang.c (c_create_fundamental_type): Likewise.
3810 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3811 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3812 * m2-lang.c (m2_create_fundamental_type): Likewise.
3813 * objc-lang.c (objc_create_fundamental_type): Likewise.
3814 * p-lang.c (pascal_create_fundamental_type): Likewise.
3815 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3816 * c-exp.y (parse_number): Likewise.
3817 * objc-exp.y (parse_number): Likewise.
3818 * ada-lex.l (processInt): Likewise.
3819 * f-exp.y (parse_number): Likewise.
3820 * p-exp.y (parse_number): Likewise.
3821 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3822 (gdbtypes_post_init, build_gdbtypes): Likewise.
3823 * p-lang.c (pascal_create_fundamental_type): Likewise.
3824 * parse.c (build_parse): Likewise.
3825 * xcoffread.c (_initialize_xcoffread): Likewise.
3826 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3827 (read_range_type): Likewise.
3828 * objc-lang.c (objc_create_fundamental_type): Likewise.
3829 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3830 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3831 (m2_create_fundamental_type): Likewise.
3832 * c-lang.c (c_create_fundamental_type): Likewise.
3833 * coffread.c (coff_read_enum_type): Likewise.
3834 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3835 * dwarf2read.c (new_symbol): Likewise.
3836 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3837 * c-exp.y (parse_number): Likewise.
3838 * objc-exp.y (parse_number): Likewise.
3839 * ada-lex.l (processInt): Likewise.
3840 * f-exp.y (parse_number): Likewise.
3841 * p-exp.y (parse_number): Likewise.
3842 * valarith.c (value_binop): Likewise.
3843 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3844 * ada-lang.c (ada_create_fundamental_type)
3845 (ada_language_arch_info): Likewise.
3846 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3847 * symfile.c (TARGET_LONG_BYTES): Likewise.
3848 * p-lang.c (pascal_create_fundamental_type): Likewise.
3849 * objc-lang.c (objc_create_fundamental_type): Likewise.
3850 * m2-lang.c (m2_create_fundamental_type): Likewise.
3851 * f-lang.c (f_create_fundamental_type): Likewise.
3852 * c-lang.c (c_create_fundamental_type): Likewise.
3853 * coffread.c (decode_base_type): Likewise.
3854 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3855 * c-exp.y (parse_number): Likewise.
3856 * objc-exp.y (parse_number): Likewise.
3857 * p-exp.y (parse_number): Likewise.
3858 * ada-lang.c (ada_create_fundamental_type)
3859 (ada_language_arch_info): Likewise.
3860 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3861 * stabsread.c (read_range_type): Likewise.
3862 * p-lang.c (pascal_create_fundamental_type): Likewise.
3863 * objc-lang.c (objc_create_fundamental_type): Likewise.
3864 * m2-lang.c (m2_create_fundamental_type): Likewise.
3865 * f-lang.c (f_create_fundamental_type): Likewise.
3866 * c-lang.c (c_create_fundamental_type): Likewise.
3867 * gdbarch.c, gdbarch.h: Regenerate.
3869 2007-06-12 Andreas Schwab <schwab@suse.de>
3871 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3872 (struct frame_unwind): Add dealloc_cache.
3873 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3875 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3876 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3877 (libunwind_frame_unwind): Set dealloc_cache.
3878 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3880 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3881 Markus Deuling <deuling@de.ibm.com>
3883 * remote.c (remote_write_qxfer): New function.
3884 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3885 (remote_read_qxfer): Do not cache empty objects.
3886 (_initialize_remote): Add PACKET_qXfer_spu_read and
3887 PACKET_qXfer_spu_write.
3889 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3891 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3892 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3894 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3895 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3896 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3897 * spu-tdep.c (infospucmdlist): New variable.
3898 (spu_register_name): Handle additional pseudo registers.
3899 (spu_register_type): Likewise.
3900 (spu_pseudo_register_read): Likewise.
3901 (spu_pseudo_register_write): Likewise.
3902 (spu_pseudo_register_read_spu): New function.
3903 (spu_pseudo_register_write_spu): Likewise.
3904 (info_spu_event_command): New function.
3905 (info_spu_signal_command): Likewise.
3906 (info_spu_mailbox_list): Likewise.
3907 (info_spu_mailbox_command): Likewise.
3908 (spu_mfc_get_bitfield): Likewise.
3909 (info_spu_dma_cmdlist): Likewise.
3910 (info_spu_dma_command): Likewise.
3911 (info_spu_proxydma_command): Likewise.
3912 (info_spu_command): Likewise.
3913 (_initialize_spu_tdep): Install "info spu" commands.
3915 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3917 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3918 accessing non-seekable spufs files.
3920 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3922 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3923 gdbarch_skip_trampoline_code.
3924 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3925 * objc-lang.c (objc_skip_trampoline)
3926 (objc_submethod_helper_data): Likewise.
3927 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3928 * infrun.c (handle_inferior_event): Likewise.
3929 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3930 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3931 gdbarch_in_solib_return_trampoline.
3932 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3933 * infrun.c (handle_inferior_event): Likewise.
3934 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3935 * gdbarch.c, gdbarch.h: Regenerate.
3937 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3939 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3940 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3941 * linespec.c (minsym_found): Likewise.
3942 * infrun.c (step_into_function): Likewise.
3943 * gdbarch.c, gdbarch.h: Regenerate.
3945 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3947 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3948 * valops.c (value_allocate_space_in_inferior): Likewise.
3949 * gdbarch.c, gdbarch.h: Regenerate.
3951 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3953 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3954 gdbarch_memory_insert_breakpoint.
3955 * mem-break.c (memory_insert_breakpoint): Likewise.
3956 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3957 gdbarch_memory_remove_breakpoint.
3958 * mem-break.c (memory_remove_breakpoint): Likewise.
3959 * gdbarch.c, gdbarch.h: Regenerate.
3961 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3963 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3964 gdbarch_fetch_tls_load_module_address.
3965 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3966 gdbarch_fetch_tls_load_module_address_p.
3967 * gdbarch.c, gdbarch.h: Regenerate.
3969 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3971 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3972 gdbarch_decr_pc_after_break.
3973 * tracepoint.c (trace_dump_command): Likewise.
3974 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3975 * linux-thread-db.c (check_event): Likewise.
3976 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3977 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3978 * frame.h: Likewise (comment).
3979 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3980 * aix-thread.c (aix_thread_wait): Likewise.
3981 * gdbarch.c, gdbarch.h: Regenerate.
3983 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3985 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3986 gdbarch_address_class_type_flags.
3987 * dwarf2read.c (read_tag_pointer_type): Likewise.
3988 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3989 gdbarch_address_class_type_flags_p.
3990 * dwarf2read.c (read_tag_pointer_type): Likewise.
3991 * gdbarch.c, gdbarch.h: Regenerate.
3993 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3995 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3996 * value.c (value_as_address): Likewise (comment).
3997 * remote-mips.c (common_breakpoint): Likewise.
3998 * regcache.c (read_pc_pid): Likewise.
3999 * printcmd.c (do_one_display): Likewise.
4000 * monitor.c (monitor_write_memory, monitor_read_memory)
4001 (monitor_insert_breakpoint): Likewise.
4002 * mips-tdep.c (heuristic_proc_start): Likewise.
4003 * infrun.c (insert_step_resume_breakpoint_at_frame)
4004 (insert_step_resume_breakpoint_at_caller): Likewise.
4005 * buildsym.c (record_line): Likewise.
4006 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
4007 (arm_get_next_pc): Likewise.
4008 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
4009 (store_regs): Likewise.
4010 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4011 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
4012 * gdbarch.c, gdbarch.h: Regenerate.
4014 2007-06-09 Markus Deuling <deuling@de.ibm.com>
4016 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
4017 * tracepoint.c (scope_info): Likewise.
4018 * target.c (debug_print_register): Likewise.
4019 * stack.c (frame_info): Likewise.
4020 * sh-tdep.c (sh_register_reggroup_p): Likewise.
4021 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
4022 (sh64_media_print_registers_info)
4023 (sh64_compact_print_registers_info): Likewise.
4024 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
4025 * remote-sim.c (gdbsim_fetch_register): Likewise.
4026 * remote.c (packet_reg): Likewise (comment).
4027 * reggroups.c (default_register_reggroup_p): Likewise.
4028 * regcache.c (regcache_dump): Likewise.
4029 * printcmd.c (address_info): Likewise.
4030 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
4031 * mt-dep.c (mt_registers_info): Likewise.
4032 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
4033 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
4034 (mips_read_fp_register_double, mips_print_fp_register)
4035 (mips_print_register, print_gp_register_row, mips_print_registers_info)
4036 (mips_register_sim_regno): Likewise.
4037 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
4038 * inf-ptrace.c (inf_ptrace_fetch_register)
4039 (inf_ptrace_store_register): Likewise.
4040 * infcmd.c (default_print_registers_info): Likewise.
4041 * ia64-linux-nat.c (ia64_linux_fetch_register)
4042 (ia64_linux_store_register): Likewise.
4043 * i386-linux-nat.c (fetch_register, store_register): Likewise.
4044 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
4045 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4046 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
4047 (hppa_hpux_store_register): Likewise.
4048 * findvar.c (locate_var_value): Likewise.
4049 * dwarf2loc.c (locexpr_describe_location): Likewise.
4050 * dwarf2-frame.c (execute_cfa_program): Likewise.
4051 * arm-tdep.c (arm_push_dummy_call): Likewise.
4052 * arch-utils.c (legacy_register_sim_regno): Likewise.
4053 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
4054 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4055 * mi/mi-main.c (mi_cmd_data_list_register_names)
4056 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
4057 (mi_cmd_data_write_register_values): Likewise.
4058 * gdbarch.c, gdbarch.h: Regenerate.
4060 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
4062 * target-memory.c (blocks_to_erase): Correct off-by-one error.
4064 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
4066 * remote.c (process_g_packet): Don't check size.
4067 * gdbarch.sh: Remove register_bytes_ok.
4068 * gdbarch.c: Regenerated.
4069 * gdbarch.h: Regenerated.
4070 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
4071 (m68k_register_bytes_ok): Remove.
4072 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
4074 2007-06-06 Andreas Schwab <schwab@suse.de>
4076 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
4077 (destroy_addr_space_name): Define.
4078 (libunwind_load): Get address of destroy_addr_space function.
4079 (libunwind_frame_cache): Destroy unw_addr_space_t object before
4080 returning unsuccessfully.
4081 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
4083 (libunwind_sigtramp_frame_sniffer): Likewise.
4084 (libunwind_get_reg_special): Likewise.
4086 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4088 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
4089 gdbarch_fetch_pointer_argument.
4090 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
4091 * gdbarch.c, gdbarch.h: Regenerate.
4093 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4095 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
4096 gdbarch_have_nonsteppable_watchpoint.
4097 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
4098 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
4099 gdbarch_cannot_step_breakpoint.
4100 * infrun.c (resume): Likewise.
4101 * gdbarch.c, gdbarch.h: Regenerate.
4103 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4105 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
4106 * stack.c (print_frame_args): Likewise.
4107 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
4108 * stack.c (print_args_stub, frame_info): Likewise.
4109 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
4110 * stack.c (print_args_stub, frame_info): Likewise.
4111 * gdbarch.c, gdbarch.h: Regenerate.
4113 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4115 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
4116 gdbarch_coff_make_msymbol_special.
4117 * coffread.c (coff_symtab_read): Likewise.
4118 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
4119 gdbarch_elf_make_msymbol_special.
4120 * elfread.c (elf_symtab_read): Likewise.
4121 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
4122 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
4123 * gdbarch.c, gdbarch.h: Regenerate.
4125 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4127 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
4128 gdbarch_frame_red_zone_size.
4129 * gdbarch.c, gdbarch.h: Regenerate.
4131 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4133 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
4134 * infcall.c (call_function_by_hand): Likewise.
4135 * gcore.c (derive_stack_segment): Likewise.
4136 * frame.c (frame_id_inner): Likewise.
4137 * arch-utils.c (core_addr_lessthan): Likewise (comment).
4138 * ada-lang.c (ensure_lval): Likewise.
4139 * gdbarch.c, gdbarch.h: Regenerate.
4141 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4143 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
4144 gdbarch_address_to_pointer.
4145 * findvar.c (store_typed_address): Likewise.
4146 * gdbtypes.c (make_pointer_type): Likewise (comment).
4147 * procfs.c (procfs_address_to_host_pointer): Likewise.
4148 * std-regs.c (value_of_builtin_frame_reg): Likewise.
4149 (value_of_builtin_frame_fp_reg): Likewise.
4150 (value_of_builtin_frame_pc_reg): Likewise.
4151 * utils.c (paddress): Likewise (comment).
4152 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
4153 gdbarch_pointer_to_address.
4154 * findvar.c (extract_typed_address): Likewise.
4155 * gdbtypes.c (make_pointer_type): Likewise (comment).
4156 * valops.c (value_cast): Likewise (comment).
4157 * gdbarch.c, gdbarch.h: Regenerate.
4159 2007-06-06 Markus Deuling <deuling@de.ibm.com>
4161 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
4162 * infrun.c (handle_inferior_event): Likewise.
4163 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
4164 gdbarch_get_longjmp_target_p.
4165 * breakpoint.c (breakpoint_re_set): Likewise.
4166 * infrun.c (handle_inferior_event): Likewise.
4167 * gdbarch.c, gdbarch.h: Regenerate.
4169 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4171 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
4172 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
4173 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
4174 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
4175 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
4176 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
4177 find_stub_with_shl_get, cover_find_stub_with_shl_get,
4178 initialize_hp_cxx_exception_support, child_enable_exception_callback,
4179 current_ex_event, child_get_current_exception_event): Remove.
4180 (hppa_hpux_inferior_created): Remove.
4181 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
4183 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
4184 (deprecated_exception_support_initialized): Remove.
4185 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
4186 (deprecated_exception_support_initialized): Remove.
4187 (breakpoint_init_inferior): Remove handling of non-zero
4188 deprecated_exception_catchpoints_are_fragile.
4190 * symtab.h (deprecated_hp_som_som_object_present): Remove.
4191 * symtab.c (deprecated_hp_som_som_object_present): Remove.
4192 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
4193 deprecated_hp_som_som_object_present.
4194 * eval.c (evaluate_subexp_standard): Likewise.
4195 * valops.c (value_cast): Likewise.
4197 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
4198 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
4199 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
4201 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
4203 * objfiles.h (ImportEntry, ExportEntry): Remove types.
4204 (struct objfile): Remove import_list, import_list_size,
4205 export_list, export_list_size members.
4206 (is_in_import_list): Remove prototype.
4207 * objfiles.c (is_in_import_list): Remove.
4208 * somread.c (init_import_symbols, init_export_symbols): Remove.
4209 (som_symfile_read): Do not call init_import_symbols. Do not
4210 set objfile->export_list and objfile->export_list_size.
4212 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
4214 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
4215 Use the original objfile if necessary.
4217 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
4219 * defs.h (ldirname): New prototype.
4220 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
4222 * utils.c (ldirname): New function.
4223 * xml-tdesc.c (file_read_description_xml): Use ldirname.
4225 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4227 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
4229 2007-06-01 Joel Brobecker <brobecker@adacore.com>
4231 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
4233 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4235 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
4237 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
4239 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
4240 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
4241 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
4242 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
4243 (ppc_linux_in_sigtramp, insn_is_sigreturn,
4244 ppc_linux_at_sigtramp_return_path): Remove.
4246 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4248 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
4249 (xtensa_register_write_masked, xtensa_register_read_masked)
4250 (xtensa_extract_return_value, xtensa_store_return_value
4251 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
4252 TARGET_BYTE_ORDER by gdbarch_byte_order.
4253 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
4254 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
4255 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
4256 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
4257 (sh64_push_dummy_call, sh64_extract_return_value)
4258 (sh64_store_return_value, sh64_register_convert_to_virtual)
4259 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
4260 (sh64_pseudo_register_write, sh64_do_fp_register)
4261 (sh64_frame_prev_register): Likewise.
4262 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
4263 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
4264 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
4265 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
4266 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
4267 * ppc-linux-nat.c (store_register): Likewise.
4268 * nto-tdep.c (nto_find_and_open_solib)
4269 (nto_init_solib_absolute_prefix): Likewise.
4270 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
4271 (mips_convert_register_p, mips_eabi_push_dummy_call)
4272 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
4273 (mips_o32_push_dummy_call, mips_o32_return_value)
4274 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
4275 (mips_read_fp_register_single, mips_read_fp_register_double)
4276 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
4277 (mips_breakpoint_from_pc): Likewise.
4278 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
4279 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
4280 (mips_linux_o32_sigframe_init): Likewise.
4281 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4282 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
4283 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
4284 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
4285 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
4286 * coffread.c (process_coff_symbol): Likewise.
4287 * arm-tdep.c (convert_from_extended, convert_to_extended)
4288 (gdb_print_insn_arm): Likewise.
4290 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4292 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
4293 * i386-tdep.c (i386_dbx_reg_to_regnum)
4294 (i386_svr4_reg_to_regnum): Likewise.
4295 * inf-ptrace.c (inf_ptrace_fetch_registers)
4296 (inf_ptrace_store_registers): Likewise.
4297 * corelow.c (get_core_registers): Likewise.
4298 * i386-linux-nat.c (supply_gregset, fill_gregset)
4299 (i386_linux_fetch_inferior_registers)
4300 (i386_linux_store_inferior_registers): Likewise.
4301 * remote.c (init_remote_state,packet_reg_from_regnum)
4302 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
4303 (remote_prepare_to_store,store_registers_using_G)
4304 (remote_store_registers,remote_arch_state): Likewise.
4305 * tracepoint.c (encode_actions): Likewise.
4306 * mi/mi-main.c (mi_cmd_data_list_register_names)
4307 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4308 (mi_cmd_data_write_register_values): Likewise.
4309 * tui/tui-regs.c (tui_show_register_group)
4310 (tui_show_register_group): Likewise.
4311 * xtensa-tdep.h (FP_ALIAS): Likewise.
4312 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
4313 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
4314 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
4315 * win32-nat.c (do_win32_fetch_inferior_registers)
4316 (do_win32_store_inferior_registers,fetch_elf_core_registers
4317 * user-regs.h: Likewise (comment).
4318 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4319 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4320 * target-descriptions.h: Likewise (comment).
4321 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
4322 * target.c (debug_print_register): Likewise.
4323 * stack.c (frame_info): Likewise.
4324 * stabsread.c (define_symbol): Likewise.
4325 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
4326 (sh64_media_print_registers_info)
4327 (sh64_compact_print_registers_info): Likewise.
4328 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4329 * rs6000-nat.c (fetch_register,store_register): Likewise.
4330 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
4331 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
4332 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
4333 * remote-m32r-sdi.c (m32r_fetch_registers)
4334 (m32r_store_registers): Likewise.
4335 * reggroups.c (default_register_reggroup_p): Likewise.
4336 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
4337 (regcache_restore,regcache_dump): Likewise.
4338 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
4339 * mips-tdep.c (mips_xfer_register,mips_register_name)
4340 (mips_register_reggroup_p,mips_pseudo_register_read)
4341 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
4342 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
4343 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
4344 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
4345 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
4346 (print_gp_register_row,mips_print_registers_info)
4347 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4348 (mips_register_sim_regno): Likewise.
4349 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
4350 (mips_linux_n32n64_sigframe_init): Likewise.
4351 * mips-linux-nat.c (mips_linux_register_addr)
4352 (mips64_linux_register_addr): Likewise.
4353 * findvar.c (value_of_register): Likewise.
4354 * infcmd.c (default_print_registers_info,registers_info)
4355 (print_vector_info,print_float_info): Likewise.
4356 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
4357 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4358 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4359 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
4360 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4361 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
4362 (ia64_cannot_store_register,ia64_linux_fetch_registers)
4363 (ia64_linux_store_registers): Likewise.
4364 * hpux-thread.c (hpux_thread_fetch_registers)
4365 (hpux_thread_store_registers): Likewise.
4366 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
4367 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
4368 (h8300_register_type): Likewise.
4369 * dwarf2-frame.c (dwarf2_frame_cache)
4370 (dwarf2_frame_state_alloc_regs): Likewise.
4371 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
4372 (cris_cannot_store_register,crisv32_cannot_fetch_register)
4373 (crisv32_cannot_store_register,cris_register_name): Likewise.
4374 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
4375 * arch-utils.c (legacy_register_sim_regno)
4376 (legacy_virtual_frame_pointer): Likewise.
4377 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
4378 * arm-tdep.h: Likewise (comment).
4379 * frv-tdep.c (frv_register_sim_regno): Likewise.
4380 * m68klinux-nat.c (old_fetch_inferior_registers)
4381 (old_store_inferior_registers): Likewise.
4382 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4383 * irix5-nat.c (fetch_core_registers): Likewise.
4384 * hppa-tdep.c (hppa_frame_cache): Likewise.
4385 * hppa-linux-nat.c (hppa_linux_register_addr)
4386 (hppa_linux_fetch_inferior_registers)
4387 (hppa_linux_store_inferior_registers): Likewise.
4388 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
4389 (hppa_hpux_store_inferior_registers): Likewise.
4390 * amd64-nat.c (amd64_native_gregset_reg_offset)
4391 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
4392 * dbug-rom.c (dbug_regname): Likewise.
4393 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
4394 (HARD_PAGE_REGNUM (comment)): Likewise.
4395 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
4396 * i386-tdep.c (i386_dbx_reg_to_regnum)
4397 (i386_svr4_reg_to_regnum): Likewise.
4398 * mi/mi-main.c (mi_cmd_data_list_register_names)
4399 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4400 (mi_cmd_data_write_register_values): Likewise.
4401 * gdbarch.c, gdbarch.h: Regenerate.
4402 * tui/tui-regs.c (tui_show_register_group): Likewise.
4403 * xtensa-tdep.h (FP_ALIAS): Likewise.
4404 * user-regs.h: Likewise (comment).
4405 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4406 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4407 * target-descriptions.h: Likewise (comment).
4408 * target.c (debug_print_register): Likewise.
4409 * stack.c (frame_info): Likewise.
4410 * stabsread.c (define_symbol): Likewise.
4411 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4412 (sh64_compact_print_registers_info): Likewise.
4413 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4414 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4415 (regcache_restore,regcache_dump): Likewise.
4416 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4417 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4418 (mips_stab_reg_to_regnum): Likewise.
4419 * findvar.c (value_of_register): Likewise.
4420 * infcmd.c (default_print_registers_info,registers_info)
4421 (print_vector_info,print_float_info): Likewise.
4422 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4423 * h8300-tdep.c (h8300_register_type): Likewise.
4424 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4425 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4426 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4427 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4428 * parse.c: Remove comment.
4429 * gdbarch.c, gdbarch.h: Regenerate
4431 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4433 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4434 gdbarch_cannot_fetch_register.
4435 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4436 * hppa-linux-nat.c (fetch_register): Likewise.
4437 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4438 * m68klinux-nat.c (fetch_register): Likewise.
4439 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4441 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4442 gdbarch_cannot_store_register.
4443 * hppa-linux-nat.c (store_register): Likewise.
4444 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4445 * regcache.c (regcache_raw_write): Likewise.
4446 * m68klinux-nat.c (store_register): Likewise.
4447 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4448 * gdbarch.c, gdbarch.h: Regenerate.
4450 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4452 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4453 * gdbarch.c, gdbarch.h: Regenerate.
4455 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4457 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4458 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4459 * gdbarch.c, gdbarch.h: Regenerate.
4461 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4463 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4464 * ax-gdb.c (gen_bitfield_ref): Likewise.
4465 * mi/mi-main.c (get_register): Likewise.
4466 * findvar.c (default_value_from_register, extract_signed_integer)
4467 (extract_unsigned_integer, extract_long_unsigned_integer)
4468 (store_signed_integer, store_unsigned_integer): Likewise.
4469 * regcache.c (regcache_dump): Likewise.
4470 * value.c (lookup_internalvar, value_of_internalvar)
4471 (set_internalvar): Likewise.
4473 * valprint.c (print_binary_chars, print_octal_chars)
4474 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4475 * infcmd.c (default_print_registers_info): Likewise.
4476 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4477 * stabsread.c (define_symbol): Likewise.
4478 * doublest.c (floatformat_from_length, floatformat_from_type)
4479 (extract_typed_floating, store_typed_floating): Likewise.
4480 * gdbarch.c, gdbarch.h: Regenerate.
4482 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4484 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4485 gdbarch_call_dummy_location.
4486 * infcall.c (call_function_by_hand): Likewise.
4487 * inferior.h: Change comment.
4488 * arch-utils.c: Change comment.
4489 * gdbarch.c, gdbarch.h: Regenerate.
4491 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4493 * solib-aix5.c: Delete.
4494 * Makefile.in (solib-aix5.o): Delete rule.
4496 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4498 * breakpoint.h (enum bpstat_what_main_action): Remove
4499 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4500 * infrun.c (process_event_stop_test): Do not check for it.
4502 2007-05-22 Chris Dearman <chris@mips.com>
4503 Maciej W. Rozycki <macro@mips.com>
4505 * ser-unix.c (show_serial_hwflow): New function.
4506 (hardwire_raw): Add hardware flow control support.
4507 (_initialize_ser_hardwire): Add "set/show remoteflow".
4508 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4509 * NEWS: Document the new command.
4511 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4513 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4514 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4515 define for i[[3456]]86-*-linux* native configurations.
4516 * config.in, configure: Regenerate.
4518 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4520 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4521 a core file. Add comment in the function description.
4523 2007-05-18 Caroline Tice <ctice@apple.com>
4525 * c-valprint.c (c_value_print): If the initialized field of the
4526 value struct is 0, print out "[uninitialized]" before the value.
4527 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4528 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4529 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4530 ctx->initialized appropriately. Verify no location op follows
4532 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4533 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4534 set_value_initialized.
4535 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4536 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4537 * value.c (struct value): New field, initialized.
4538 (allocate_value): Initialize new field.
4539 (set_value_initialized): New function.
4540 (value_initialized): New function.
4541 * value.h (value_initialized): New extern declaration.
4542 (set_value_initialized): Likewise.
4544 2007-05-18 Caroline Tice <ctice@apple.com>
4546 * MAINTAINERS (Write After Approval): Add self.
4548 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4550 * gdbtypes.c (make_reference_type): Preserve the type chain
4551 and set the length of all the variants of the pointer type.
4553 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4555 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4556 and set the length of all the variants of the pointer type.
4558 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4560 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4562 (mips_o64_push_dummy_call): Reformat a comment.
4564 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4566 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4567 (score_prologue_frame_base_address): Return fp to keep gdb print
4568 local variables correctly when debugging information is stabs.
4570 (score_analyze_prologue): For software watchpoint, fetch all the
4571 instructions from range [startaddr, pc] once and identify them locally
4572 to reduce memory access.
4573 (score_malloc_and_get_memblock, score_free_memblock)
4574 (score_adjust_memblock_ptr): New functions.
4575 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4577 (score_target_can_use_watch, score_stopped_by_watch)
4578 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4579 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4580 New functions for remote & local hw-watchpoint and hw-breakpoint.
4582 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4584 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4585 declarations as well.
4587 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4589 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4590 * config/arm/tm-embed.h: Delete file.
4592 * arm-tdep.h (arm_software_single_step): Declare.
4593 * arm-tdep.c (arm_software_single_step): Make global.
4594 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4596 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4597 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4598 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4599 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4601 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4602 allow defines to be overriden by TM file.
4603 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4604 change default to {0xbe,0xbe}.
4605 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4606 arm_obsd_thumb_be_breakpoint): New global variables.
4607 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4608 tdep->thumb_breakpoint_size.
4609 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4610 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4611 tdep->thumb_breakpoint_size.
4613 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4615 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4617 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4620 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4621 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4622 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4623 (mips_abi_regsize): Simplify.
4624 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4625 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4626 (mips_o32_return_value, mips_o64_push_dummy_call)
4627 (mips_o64_return_value): Propogate constant register sizes. Use the
4628 ABI register size instead of mips_stack_argsize.
4629 (mips_dump_tdep): Don't print mips_stack_argsize.
4630 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4633 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4635 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4636 * config/mips/tm-linux.h: Delete.
4637 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4638 (mips_linux_in_dynsym_resolve_code): Make static. Use
4639 svr4_in_dynsym_resolve_code.
4640 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4642 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4644 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4645 * Makefile.in (mips-linux-tdep.o): Update.
4646 * solib.c (set_solib_ops): New.
4647 (current_target_so_ops): Update comment.
4648 * solib.h (set_solib_ops): New prototype.
4650 2007-05-16 Chris Dearman <chris@mips.com>
4652 * printcmd.c (do_examine): Fix typos in a comment.
4654 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4656 * configure.ac: Allow sysroots to be relocated under $prefix as
4657 well as $exec_prefix.
4658 * configure: Regenerate.
4660 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4662 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4663 (offsetof): Do not define.
4664 (find_stub_with_shl_get): Use numerical value 3 instead of
4665 symbolic value TYPE_PROCEDURE.
4667 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4669 * gdb_proc_service.h (paddr_t): Delete typedef.
4670 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4671 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4672 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4673 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4674 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4675 * Makefile.in (proc-service.o): Update.
4677 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4679 * Makefile.in (mips-tdep.o): Update.
4680 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4683 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4685 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4686 instead of store_typed_address.
4687 * value.c (pack_long): New.
4688 (value_from_longest): Use it.
4689 * value.h (pack_long): New prototype.
4691 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4693 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4694 DW_EH_PE_signed if appropriate.
4696 2007-05-14 Paul Brook <paul@codesourcery.com>
4697 Daniel Jacobowitz <dan@codesourcery.com>
4699 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4701 (dwarf_decode_lines): Check for line info without a file.
4703 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4705 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4708 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4710 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4712 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4714 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4716 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4718 * gdbarch.sh (read_sp): Remove.
4719 * gdbarch.c, gdbarch.h: Regenerate.
4720 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4722 * avr-tdep.c (avr_read_sp): Remove.
4723 (avr_unwind_sp): New function.
4724 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4725 * mips-tdep.c (mips_read_sp): Remove.
4726 (mips_unwind_sp): New function.
4727 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4728 * score-tdep.c (score_read_unsigned_register): Remove.
4729 (score_read_sp): Remove.
4730 (score_unwind_sp): New function.
4731 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4733 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4735 * buildsym.c (start_subfile): Handle absolute pathnames
4736 while comparing subfile names.
4738 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4740 * hppa-hpux-tdep.c: Include "regcache.h".
4741 * hppa-linux-tdep.c: Likewise.
4742 * hppa-tdep.c: Include "gdb_stdint.h".
4743 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4745 * Makefile.in: Update dependencies.
4747 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4749 * blockframe.c: Remove obsolete comments.
4750 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4751 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4752 * hppa-tdep.h (enum hppa_regnum): Likewise.
4753 * mips-tdep.h: Likewise.
4754 * m68hc11-tdep.c: Likewise.
4756 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4758 * inferior.h (read_sp): Remove prototype.
4759 * regcache.c (read_sp): Remove.
4760 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4761 * infcall.c (call_function_by_hand): Likewise.
4762 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4764 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4766 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4768 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4769 instead of read_register and read_register_pid.
4771 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4772 argument instead of PTID. Use regcache functions instead of
4774 (ia64_linux_insert_watchpoint): Update call.
4775 (ia64_linux_stopped_data_address): Use regcache functions
4776 instead of read_register_pid and write_register_pid.
4778 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4780 * libunwind-frame.h (struct regcache): Add forward declaration.
4781 (libunwind_get_reg_special): Add REGCACHE argument.
4782 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4783 argument. Pass it to unw_init_remote_p.
4785 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4786 libunwind_get_reg_special.
4787 (ia64_access_reg): Remove "write" case.
4788 (ia64_access_fpreg): Likewise. Read from next_frame passed
4789 as callback argument instead of from current_regcache.
4790 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4791 passed as callback argument instead of from current_regcache.
4792 (ia64_access_rse_fpreg): New function.
4793 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4795 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4797 * NEWS: Mention SPU overlay support.
4799 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4801 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4803 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4805 * breakpoint.c (remove_breakpoint): Do not remove software
4806 breakpoints in unmapped overlay sections.
4808 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4810 * spu-tdep.c: Include "observer.h".
4811 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4812 (spu_overlay_data): New variable.
4813 (struct spu_overlay_table): New type.
4814 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4815 spu_overlay_new_objfile): New functions.
4816 (spu_gdbarch_init): Install spu_overlay_update.
4817 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4818 allocate spu_overlay_data objfile data.
4820 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4822 * gdbarch.sh (overlay_update): New gdbarch function.
4823 (struct obj_section): Add forward declaration.
4824 * gdbarch.c, gdbarch.h: Regenerate.
4826 * symfile.c (simple_overlay_update): Make global.
4827 (target_overlay_update): Remove variable.
4828 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4829 target_overlay_update.
4830 (overlay_load_command): Likewise.
4831 * symfile.h (struct obj_section): Add forward declaration.
4832 (simple_overlay_update): Add prototype.
4834 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4836 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4838 * observer.sh: Add "struct objfile" forward declaration.
4839 * target.h (deprecated_target_new_objfile_hook): Remove.
4840 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4841 (clear_symtab_users): Call observer_notify_new_objfile.
4842 (symbol_file_add_with_addrs_or_offsets): Likewise.
4843 * rs6000-nat.c: Include "observer.h".
4844 (vmap_ldinfo): Call observer_notify_new_objfile.
4845 (xcoff_relocate_core): Likewise.
4846 * remote.c (remote_new_objfile_chain): Remove.
4847 (remote_new_objfile): Do not call remote_new_objfile_chain.
4848 (_initialize_remote): Use observer_attach_new_objfile.
4849 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4850 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4851 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4852 * aix-thread.c: Include "observer.h".
4853 (target_new_objfile_chain): Remove.
4854 (new_objfile): Do not call target_new_objfile_chain.
4855 (_initialize_aix_thread): Use observer_attach_new_objfile.
4856 * hpux-thread.c: Include "observer.h"
4857 (target_new_objfile_chain): Remove.
4858 (hpux_thread_new_objfile): Make static. Do not call
4859 target_new_objfile_chain.
4860 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4861 * linux-thread-db.c: Include "observer.h".
4862 (target_new_objfile_chain): Remove.
4863 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4864 (_initialize_thread_db): Use observer_attach_new_objfile.
4865 * sol-thread.c: Include "observer.h".
4866 (target_new_objfile_chain): Remove.
4867 (sol_thread_new_objfile): Make static. Do not call
4868 target_new_objfile_chain.
4869 (_initialize_sol_thread): Use observer_attach_new_objfile.
4870 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4871 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4874 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4876 * gdbarch.sh (remote_translate_xfer_address): Remove.
4877 * gdbarch.h, gdbarch.c: Regenerate.
4878 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4879 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4880 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4881 call gdbarch_remote_translate_xfer_address.
4882 * frv-tdep.c (frv_gdbarch_init): Do not call
4883 set_gdbarch_remote_translate_xfer_address.
4884 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4885 (ia64_gdbarch_init): Do not install it.
4887 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4889 * NEWS: Mention change in handling the -tui option.
4891 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4893 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4896 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4898 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4899 (breakpoint_inserted_here_p): Call it.
4900 (software_breakpoint_inserted_here_p): Likewise.
4902 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4904 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4905 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4906 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4907 (inf_ptrace_store_register): Likewise.
4908 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4909 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4911 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4913 * linux-nat.c (linux_trad_target): Adapt parameter list.
4914 * linux-nat.h (linux_trad_target): Likewise.
4916 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4918 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4919 (mips_linux_cannot_store_register): Likewise.
4920 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4921 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4922 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4923 (mips64_linux_register_addr): Likewise.
4924 (mips_linux_register_u_offset): Adapt parameter list. Pass
4925 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4927 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4928 * config/mips/nm-linux.h: Delete file.
4930 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4932 * remote.c (remote_detach): Error out if remote can't detach.
4934 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4936 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4937 instruction's opcode in the "opcode" variable and declares new
4938 variable "closing_insn".
4940 2007-05-10 Chris Dearman <chris@mips.com>
4941 Maciej W. Rozycki <macro@mips.com>
4943 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4944 whitespace when setting a var_filename.
4946 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4948 * main.c (captured_main): Recognize -tui option and print an error
4949 message when the TUI is not configured.
4951 2007-05-09 Andreas Schwab <schwab@suse.de>
4953 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4954 set removed members.
4955 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4957 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4959 * gdbarch.sh (deprecated_store_struct_return): Remove.
4960 * gdbarch.c, gdbarch.h: Regenerate.
4961 * frv-tdep.c (frv_store_struct_return): Remove.
4962 (frv_gdbarch_init): Do not install it.
4964 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4966 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4967 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4968 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4970 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4972 * spu-linux-nat.c: Include "gdb_stdint.h".
4973 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4974 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4975 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4976 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4977 (spu_child_wait): Mark up string for translation.
4979 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4980 Luis Machado <luisgpm@br.ibm.com>
4982 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4983 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4984 BC_INSTRUCTION): Define.
4985 (deal_with_atomic_sequence): New function.
4986 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4987 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4988 gdbarch_software_single_step routine.
4990 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4992 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4993 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4994 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4995 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4996 spu_child_post_attach, spu_fetch_inferior_registers,
4997 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4998 memory addresses as ULONGEST, not CORE_ADDR.
5000 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
5002 * gdbarch.sh: Add skip_permanent_breakpoint callback.
5003 * gdbarch.h, gdbarch.c: Regenerate.
5005 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
5006 (resume): Call gdbarch_skip_permanent_breakpoint instead of
5007 SKIP_PERMANENT_BREAKPOINT. Inline default case.
5009 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
5010 Add REGCACHE argument. Use it instead of read/write_register.
5011 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
5013 * config/pa/tm-hppah.h: Delete file.
5014 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
5015 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
5017 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
5019 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
5020 * NEWS: Mention improved C++ thunk support.
5021 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
5022 * cp-abi.c (cplus_skip_trampoline): New.
5023 * cp-abi.h (cplus_skip_trampoline): New prototype.
5024 (struct cp_abi_ops): Add skip_trampoline member.
5025 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
5026 (init_gnuv3_ops): Set skip_trampoline.
5028 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
5030 * rs6000-tdep.c (struct frame_extra_info): Delete.
5032 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
5034 * linux-thread-db.c: Update some FIXME comments.
5035 (thread_db_xfer_partial): Delete.
5036 (init_thread_db_ops): Do not set to_xfer_partial.
5038 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5040 * inftarg.c, infptrace.c: Remove files.
5041 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
5042 (inftarg.o, infptrace.o): Remove rules.
5043 * gdbcore.h (register_addr): Remove prototype.
5044 * inferior.h (kill_inferior, store_inferior_registers,
5045 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
5046 call_ptrace, pre_fork_inferior): Remove prototypes.
5047 * target.h (child_xfer_memory, child_pid_to_exec_file,
5048 child_core_file_to_sym_file, child_post_attach,
5049 child_post_startup_inferior, child_acknowledge_created_inferior,
5050 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
5051 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
5052 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
5053 child_follow_fork, child_reported_exec_events_per_exec_call,
5054 child_has_exited, child_thread_alive): Remove prototypes.
5056 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5058 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
5059 (sparc_store_inferior_registers): Likewise.
5060 * sparc-nat.c (fetch_inferior_registers): Rename to ...
5061 (sparc_fetch_inferior_registers): ... this.
5062 (store_inferior_registers): Rename to ...
5063 (sparc_store_inferior_registers): ... this.
5064 (sparc_target): Update callback names.
5065 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
5066 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
5068 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5070 * linux-nat.c (child_post_attach): Rename to ...
5071 (linux_child_post_attach): ... this. Make static.
5072 (child_follow_fork): Rename to ...
5073 (linux_child_follow_fork): ... this. Make static.
5074 (child_insert_fork_catchpoint): Rename to ...
5075 (linux_child_insert_fork_catchpoint): ... this. Make static.
5076 (child_insert_vfork_catchpoint): Rename to ...
5077 (linux_child_insert_vfork_catchpoint): ... this. Make static.
5078 (child_insert_exec_catchpoint): Rename to ...
5079 (linux_child_insert_exec_catchpoint): ... this. Make static.
5080 (child_pid_to_exec_file): Rename to ...
5081 (linux_child_pid_to_exec_file): ... this. Make static.
5083 (linux_handle_extended_wait): Update call.
5084 (linux_xfer_partial): Update callback routine names.
5086 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5088 * configure.host (alpha*-*-osf[12]*): Remove support.
5089 * NEWS: Mention removed configurations.
5091 * config/alpha/alpha-osf1.mh: Delete file.
5092 * config/alpha/alpha-osf2.mh: Delete file.
5093 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
5095 * config/alpha/nm-osf.h: Delete file.
5096 * config/alpha/nm-osf2.h: Delete file.
5097 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
5098 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
5099 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
5101 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
5102 (register_addr, kernel_u_size): Remove.
5103 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
5105 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5107 * regcache.c (regcache_invalidate): New function.
5108 (register_cached): Remove.
5109 (set_register_cached): Remove.
5110 (deprecated_registers_fetched): Remove.
5111 (registers_changed): Use regcache_invalidate instead
5112 of set_register_cached.
5113 (regcache_raw_read): Update comment.
5115 * regcache.h (regcache_invalidate): Add prototype.
5116 (register_cached): Remove.
5117 (set_register_cached): Remove.
5118 (deprecated_registers_fetched): Remove.
5120 * findvar.c (value_of_register): Do not call register_cached.
5121 * frame.c (frame_register): Likewise.
5122 * tui/tui-regs.c (tui_get_register): Likewise.
5124 * remote.c (fetch_register_using_p): Do not call set_register_cached.
5125 (process_g_packet): Likewise.
5126 (remote_fetch_registers): Likewise.
5127 * remote-sim.c (gdbsim_fetch_register): Likewise.
5128 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
5129 by regcache_invalidate.
5130 (mt_pseudo_register_write): Likewise.
5131 * sh-tdep.c (sh_pseudo_register_write): Likewise.
5133 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
5134 call by loop over regcache_raw_supply (..., NULL).
5136 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5138 * target.h (struct target_ops): Add REGCACHE parameter to
5139 to_prepare_to_store.
5140 (target_prepare_to_store): Likewise.
5141 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
5142 (update_current_target): Adapt prepare_to_store de_fault rule.
5144 * regcache.c (regcache_raw_write): Pass regcache to
5145 target_prepare_to_store.
5147 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
5148 Do not call CHILD_PREPARE_TO_STORE.
5149 * gnu-nat.c (gnu_prepare_to_store): Likewise.
5150 * procfs.c (procfs_prepare_to_store): Likewise.
5152 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
5153 * go32-nat.c (go32_prepare_to_store): Likewise.
5154 * monitor.c (monitor_prepare_to_store): Likewise.
5155 * nto-procfs.c (procfs_prepare_to_store): Likewise.
5156 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
5157 * remote-mips.c (mips_prepare_to_store): Likewise.
5158 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
5159 * win32-nat.c (win32_prepare_to_store): Likewise.
5161 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
5162 Use it instead of current_regcache.
5164 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
5165 parameter. Pass it on to next target.
5166 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
5168 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5170 * target.h (struct regcache): Add forward declaration.
5171 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
5172 and to_store_registers target operations.
5173 (target_fetch_registers, target_store_registers): Update.
5175 * regcache.c (regcache_raw_read): Replace register_cached by
5176 regcache_valid_p. Pass regcache to target_fetch_registers.
5177 (regcache_raw_write): Pass regcache to target_store_registers.
5179 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
5180 store_regs, store_wmmx_regs): Replace register_cached by
5183 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
5184 to target_fetch_registers calls.
5185 * corelow.c (core_open): Likewise.
5186 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
5187 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5188 ps_lsetfpregs): Likewise.
5189 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
5190 ps_lsetfpregs): Likewise.
5191 * win32-nat.c (win32_resume): Likewise.
5192 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
5193 to target_store_registers call.
5194 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5196 * inferior.h (store_inferior_registers): Update prototype.
5197 (fetch_inferior_registers): Likewise.
5198 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
5199 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
5200 Update function pointer signatures.
5202 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
5203 use it instead of current_regcache, update calls.
5204 (aix_thread_store_registers): Likewise.
5205 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
5206 (alphabsd_store_inferior_registers): Likewise.
5207 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
5208 (amd64bsd_store_inferior_registers): Likewise.
5209 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
5210 (amd64_linux_store_inferior_registers): Likewise.
5211 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
5212 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
5213 fetch_wmmx_regs, store_wmmx_regs): Likewise.
5214 (arm_linux_fetch_inferior_registers): Likewise.
5215 (arm_linux_store_inferior_registers): Likewise.
5216 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
5217 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
5218 (store_register, store_regs, store_fp_register, store_fp_regs,
5219 armnbsd_store_registers): Likewise.
5220 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
5221 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
5222 (bsd_uthread_store_registers): Likewise.
5223 * corelow.c (get_core_registers): Likewise.
5224 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
5225 go32_store_registers): Likewise.
5226 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
5227 (hppabsd_store_registers): Likewise.
5228 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
5229 (hppa_hpux_fetch_inferior_registers): Likewise.
5230 (hppa_hpux_store_register): Likewise.
5231 (hppa_hpux_store_inferior_registers): Likewise.
5232 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5233 (hppa_linux_fetch_inferior_registers): Likewise.
5234 (hppa_linux_store_inferior_registers): Likewise.
5235 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
5236 (hpux_thread_store_registers): Likewise.
5237 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
5238 (i386bsd_store_inferior_registers): Likewise.
5239 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
5240 gnu_store_registers): Likewise.
5241 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
5242 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
5244 (i386_linux_fetch_inferior_registers): Likewise.
5245 (i386_linux_store_inferior_registers): Likewise.
5246 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
5247 (ia64_linux_fetch_registers): Likewise.
5248 (ia64_linux_store_register): Likewise.
5249 (ia64_linux_store_registers): Likewise.
5250 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5251 (inf_child_store_inferior_registers): Likewise.
5252 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5253 (inf_ptrace_fetch_registers): Likewise.
5254 (inf_ptrace_store_register): Likewise.
5255 (inf_ptrace_store_registers): Likewise.
5256 * infptrace.c (fetch_register, store_register): Likewise.
5257 (fetch_inferior_registers, store_inferior_registers): Likewise.
5258 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
5259 (m32r_linux_fetch_inferior_registers): Likewise.
5260 (m32r_linux_store_inferior_registers): Likewise.
5261 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
5262 (m68kbsd_store_inferior_registers): Likewise.
5263 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
5264 store_register, old_store_inferior_registers, fetch_regs, store_regs,
5265 fetch_fpregs, store_fpregs): Likewise.
5266 (m68k_linux_fetch_inferior_registers): Likewise.
5267 (m68k_linux_store_inferior_registers): Likewise.
5268 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
5269 (m88kbsd_store_inferior_registers): Likewise.
5270 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
5271 (mips64obsd_store_inferior_registers): Likewise.
5272 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
5273 (mips64_linux_regsets_store_registers): Likewise.
5274 (mips64_linux_fetch_registers): Likewise.
5275 (mips64_linux_store_registers): Likewise.
5276 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
5277 (mipsnbsd_store_inferior_registers): Likewise.
5278 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
5279 (monitor_fetch_registers, monitor_store_registers): Likewise.
5280 * nto-procfs.c (procfs_fetch_registers): Likewise.
5281 (procfs_store_registers): Likewise.
5282 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
5283 fetch_register, supply_vrregset, fetch_altivec_registers,
5284 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
5285 (store_altivec_register, store_spe_register, store_register,
5286 fill_vrregset, store_altivec_registers, store_ppc_registers,
5287 ppc_linux_store_inferior_registers): Likewise.
5288 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
5289 (ppcnbsd_store_inferior_registers): Likewise.
5290 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
5291 (ppcobsd_store_registers): Likewise.
5292 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5293 * remote.c (fetch_register_using_p, process_g_packet,
5294 fetch_registers_using_g, remote_fetch_registers): Likewise.
5295 (store_register_using_P, store_registers_using_G,
5296 remote_store_registers): Likewise.
5297 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
5298 m32r_store_register, m32r_store_register): Likewise.
5299 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
5300 * remote-sim.c (gdbsim_fetch_register): Likewise.
5301 (gdbsim_store_register): Likewise.
5302 * rs6000-nat.c (fetch_register, store_register): Likewise.
5303 (rs6000_fetch_inferior_registers): Likewise.
5304 (rs6000_store_inferior_registers): Likewise.
5305 * s390-nat.c (fetch_regs, store_regs): Likewise.
5306 (fetch_fpregs, store_fpregs): Likewise.
5307 (s390_linux_fetch_inferior_registers): Likewise.
5308 (s390_linux_store_inferior_registers): Likewise.
5309 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
5310 (shnbsd_store_inferior_registers): Likewise.
5311 * sol-thread.c (sol_thread_fetch_registers): Likewise.
5312 (sol_thread_store_registers): Likewise.
5313 * sparc-nat.c (fetch_inferior_registers): Likewise.
5314 (store_inferior_registers): Likewise.
5315 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5316 (spu_store_inferior_registers): Likewise.
5317 * target.c (debug_print_register): Likewise.
5318 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
5319 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
5320 (vaxbsd_store_inferior_registers): Likewise.
5321 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
5322 (win32_fetch_inferior_registers): Likewise.
5323 (win32_store_inferior_registers): Likewise.
5325 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5327 * gdbcore.h (struct regcache): Add forward declaration.
5328 (struct core_fns): Add REGCACHE argument to core_read_registers
5330 * corelow.c (get_core_register_section): Add REGCACHE argument,
5331 use it instead of current_regcache, pass it to core_read_registers
5333 (get_core_registers): Add current_regcache as parameter to
5334 get_core_register_section calls.
5336 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
5337 use it instead of current_regcache.
5338 * armnbsd-nat.c (fetch_core_registers): Likewise.
5339 (fetch_elfcore_registers): Likewise.
5340 * core-regset.c (fetch_core_registers): Likewise.
5341 * cris-tdep.c (fetch_core_registers): Likewise.
5342 * irix5-nat.c (fetch_core_registers): Likewise.
5343 * m68klinux-nat.c (fetch_core_registers): Likewise.
5344 * mips-linux-tdep.c (fetch_core_registers): Likewise.
5345 * win32-nat.c (fetch_elf_core_registers): Likewise.
5347 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5349 * gregset.h (struct regcache): Add forward declaration.
5350 (supply_gregset): Add REGCACHE parameter, make GREGS const.
5351 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
5352 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
5353 (fill_gregset): Add REGCACHE parameter.
5354 (fill_fpregset): Likewise.
5355 (fill_fpxregset): Likewise.
5357 Update all definitions accordingly:
5358 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
5359 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
5360 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
5361 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
5362 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
5363 (supply_gregset): Add REGCACHE parameter, use it instead of
5364 current_regcache. Make GREGSETP parameter const, adapt casts.
5365 (supply_fpregset): Add REGCACHE parameter, use it instead of
5366 current_regcache. Make FPREGSETP parameter const, adapt casts.
5367 (fill_gregset): Add REGCACHE parameter, use it instead of
5369 (fill_fpregset): Likewise.
5371 Update all callers to pass in current_regcache as the new argument:
5372 * core-regset.c: Include "regcache.h".
5373 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
5374 * procfs.c: Include "regcache.h".
5375 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
5376 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
5377 (procfs_do_thread_registers): Likewise.
5378 (procfs_make_note_section): Likewise.
5379 * proc-service.c: Include "regcache.h".
5380 (ps_lgetregs): Update fill_gregset call.
5381 (ps_lsetregs): Update supply_gregset call.
5382 (ps_lgetfpregs): Update fill_fpregset call.
5383 (ps_lsetfpregs): Update supply_fpregset call.
5384 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
5385 supply_fpregset calls.
5386 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
5387 (ps_lgetregs): Update fill_gregset call.
5388 (ps_lsetregs): Update supply_gregset call.
5389 (ps_lgetfpregs): Update fill_fpregset call.
5390 (ps_lsetfpregs): Update supply_fpregset call.
5392 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
5393 fill_fpregset, and fill_fpxregset calls.
5394 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
5395 (store_regs): Update fill_gregset call.
5396 (fetch_fpregs): Update supply_fpregset call.
5397 (store_fpregs): Update fill_fpregset call.
5398 (fetch_fpxregs): Update supply_fpxregset call.
5399 (store_fpxregs): Update fill_fpxregset call.
5400 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
5401 (store_regs): Update fill_gregset call.
5402 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
5403 (store_regs): Update fill_gregset call.
5404 (fetch_fpregs): Update supply_fpregset call.
5405 (store_fpregs): Update fill_fpregset call.
5406 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5407 * s390-nat.c (fetch_regs): Update supply_gregset call.
5408 (store_regs): Update fill_gregset call.
5409 (fetch_fpregs): Update supply_fpregset call.
5410 (store_fpregs): Update fill_fpregset call.
5412 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5415 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5417 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5418 it instead of current_regcache.
5419 (parse_register_dump): Add REGCACHE parameter, pass it to
5420 supply_register callback.
5421 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5422 parse_register_dump.
5423 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5424 parse_register_dump and dumpregs callback.
5425 (monitor_wait): Pass current_regcache to parse_register_dump and
5427 (monitor_fetch_register): Pass current_regcache to
5428 monitor_supply_register.
5429 (monitor_fetch_registers): Pass current_regcache to
5431 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5432 supply_register and dumpregs callbacks.
5433 (monitor_supply_register, monitor_dump_reg_block): Update
5435 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5436 it to monitor_supply_register.
5437 * dink32-rom.c (dink32_supply_register): Likewise.
5438 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5439 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5440 instead of current_regcache.
5442 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5444 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5445 Add REGCACHE parameter. Use it instead of current_regcache.
5446 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5447 i386nto_supply_gregset and i386nto_supply_fpregset.
5448 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5449 of current_regcache.
5451 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5452 nto_supply_ helper functions.
5453 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5455 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5457 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5458 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5459 and regset_fill member function pointers.
5460 (nto_dummy_supply_regset): Adapt prototype.
5462 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5464 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5465 instead of current_regcache. Make REGS const.
5466 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5467 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5469 * shnbsd-nat.c: Include "regcache.h".
5470 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5472 (shnbsd_store_inferior_registers): Pass current_regcache to
5474 * Makefile.in (shbsd-nat.o): Update dependencies.
5476 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5478 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5479 instead of current_regcache.
5480 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5481 Make GREGSETP const, remove superfluous casts.
5482 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5483 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5485 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5486 (supply_64bit_reg): Likewise
5487 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5488 Make GREGSETP const, adapt casts accordingly.
5489 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5490 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5492 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5493 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5495 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5496 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5497 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5499 * mips-linux-nat.c: Include "regcache.h".
5500 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5501 current_regcache to mips{64}_(supply|fill)_ helper routines.
5502 (mips64_linux_regsets_fetch_registers): Likewise.
5503 (mips64_linux_regsets_store_registers): Likewise.
5505 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5506 REGCACHE argument; replace current_regcache. Make REGS const.
5507 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5508 replace current_regcache.
5509 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5510 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5511 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5512 mipsnbsd_store_inferior_registers): Pass current_regcache to
5513 mipsnbsd_(supply|fill)_... helper routines.
5515 * Makefile.in (mips-linux-nat.o): Update dependencies.
5517 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5519 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5520 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5521 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5522 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5523 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5524 * i386gnu-nat.c (store_fpregs): Likewise.
5525 * i386v4-nat.c (fill_fpregset): Likewise.
5526 * go32-nat.c (store_register, go32_store_registers): Likewise.
5528 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5530 * cris-tdep.c (supply_gregset): Rename to ...
5531 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5532 instead of current_regcache.
5533 (fetch_core_registers): Update call. Pass current_regcache.
5535 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5537 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5538 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5539 Use it instead of current_regcache.
5540 (supply_fparegset): Rename to ...
5541 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5542 Use it instead of current_regcache.
5543 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5544 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5546 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5548 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5549 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5550 use it instead of current_regcache.
5551 * alpha-tdep.h (struct regcache): Add forward declaration.
5552 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5553 alpha_fill_fp_regs): Update prototypes.
5555 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5556 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5557 * alpha-linux-nat.c: Include "regcache.h".
5558 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5559 current_regcache to alpha_supply/fill_ routines.
5561 * alphabsd-tdep.c: Include "regcache.h".
5562 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5563 pass it to alpha_supply_ routines. Make REGS const.
5564 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5565 pass it to alpha_fill_ routines.
5566 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5567 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5568 alphabsd_fill_fpreg): Update prototypes.
5570 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5571 fill_fpregset, alphabsd_fetch_inferior_registers,
5572 alphabsd_store_inferior_registers): Pass current_regcache to
5573 alphabsd_supply/fill_ routines.
5575 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5578 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5580 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5581 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5582 instead of current_regcache.
5583 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5584 REGCACHE parameter, pass it to supply_ routines.
5585 (aix_thread_fetch_registers): Pass current_regcache to
5586 fetch_regs_user_thread and fetch_regs_kernel_thread.
5588 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5589 Add REGCACHE parameter, use it instead of current_regcache.
5590 Call regcache_valid_p instead of register_cached.
5591 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5592 Also, pass REGCACHE to fill_ routines.
5593 (aix_thread_store_registers): Pass current_regcache to
5594 store_regs_user_thread and store_regs_kernel_thread.
5596 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5598 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5599 pointed to by GREGSETP.
5601 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5603 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5604 of regcache_raw_read_signed.
5605 (fill_fpregset): Use regcache_raw_collect instead of
5608 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5610 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5611 point arguments, test explicitly for use of the EABI32 ABI
5612 instead of inferring this condition from tests on register
5615 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5617 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5618 prior to allocating its location.
5620 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5622 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5623 based on mips_abi_regsize() whose result is known in advance.
5624 (mips_o64_push_dummy_call): Likewise.
5626 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5628 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5629 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5631 * mips-linux-nat.c: Include "gregset.h".
5632 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5633 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5634 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5635 fill_fpregset): Move to mips-linux-nat.c.
5637 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5639 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5641 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5642 (read_register): ... here.
5643 (deprecated_write_register_gen): Remove, inline ...
5644 (write_register): ... here.
5645 * regcache.h (deprecated_read_register_gen): Remove prototype.
5646 (deprecated_write_register_gen): Likewise.
5648 * remote-sim.c (gdbsim_store_register): Replace call to
5649 deprecated_read_register_gen with regcache_cooked_read.
5650 * target.c (debug_print_register): Replace calls to
5651 deprecated_read_register_gen and read_register with
5652 regcache_cooked_read.
5654 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5656 * hpux-thread.c (hpux_thread_store_registers): Use
5657 regcache_raw_collect, not regcache_raw_read.
5658 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5659 not regcache_raw_write.
5661 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5663 * gdbarch.sh: Remove deprecated_register_byte.
5664 * gdbarch.c, gdbarch.h: Regenerate.
5665 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5666 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5668 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5669 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5670 read-only register caches. Make REGCACHE parameter const.
5671 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5673 * mi/mi-main.c (old_regs): Remove.
5674 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5675 (register_changed_p): Reimplement to compare two register caches.
5676 (mi_cmd_data_list_changed_registers): Update caller.
5677 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5678 * mi/mi-interp.c (mi_interpreter_init): Do not call
5679 mi_setup_architecture_data.
5681 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5683 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5684 inline definition at the places the macros are used.
5685 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5687 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5689 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5691 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5692 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5693 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5694 (rs6000_aix_regset_from_core_section): New function.
5695 (rs6000_aix_init_osabi): Register it.
5696 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5697 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5698 * rs6000-nat.c (CoreRegs): Do not define type.
5699 (fetch_core_registers, rs6000_core_fns): Remove.
5700 (_initialize_core_rs6000): Do not register it. Rename to ...
5701 (_initialize_rs6000_nat): ... this.
5702 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5704 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5706 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5707 (dwarf2_read_address): Sign extend return address as required by
5708 target architecture.
5710 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5712 * solib-frv.c (lm_base): Bail out if the main executable has
5715 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5717 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5718 of FPCR register in fpregset.
5720 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5722 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5723 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5725 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5727 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5728 * rs6000-nat.c (rs6000_wait): New function.
5729 (_initialize_core_rs6000): Install it as to_wait target method.
5730 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5732 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5734 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5735 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5736 * rs6000-nat.c (super_create_inferior): New variable.
5737 (rs6000_create_inferior): Make static. Adapt argument list. Call
5738 original version of create_inferior via super_create_inferior.
5739 (_initialize_core_rs6000): Install to_create_inferior target method.
5741 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5743 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5744 (aix_thread_xfer_partial): ... this.
5745 (init_aix_thread_ops): Install to_xfer_partial instead
5746 of deprecated_xfer_memory target method.
5748 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5749 and inftarg.o, add inf-ptrace.o.
5750 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5751 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5752 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5753 (fetch_inferior_registers): Rename to ...
5754 (rs6000_fetch_inferior_registers): ... this. Make static.
5755 (store_inferior_registers): Rename to ...
5756 (rs6000_store_inferior_registers): ... this. Make static.
5757 (read_word, child_xfer_memory): Remove.
5758 (rs6000_xfer_partial): New function.
5759 (kernel_u_size): Remove.
5760 (_initialize_core_rs6000): Add inf_ptrace-based target.
5761 * Makefile.in (rs6000-nat.o): Update dependencies.
5763 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5765 * inf-ptrace.c: Include "gdb_stdint.h".
5766 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5767 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5768 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5769 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5770 (inf_ptrace_store_register): Likewise.
5771 * Makefile.in (inf-ptrace.o): Update dependencies.
5773 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5775 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5776 * configure.tgt (rs6000-*-*): Likewise.
5777 * config/rs6000/aix4.mh: Delete file.
5778 * config/rs6000/aix4.mt: Delete file.
5779 * config/rs6000/rs6000.mh: Delete file.
5780 * config/rs6000/rs6000.mt: Delete file.
5782 * config/powerpc/nm-aix.h: Delete file.
5783 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5785 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5787 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5788 Remove obsolete part of comment.
5789 (store_regs_user_thread): Use uint32_t temporaries when calling
5791 (store_regs_kernel_thread): Likewise. Add assertion to verify
5792 correct size of struct ptsprs members.
5793 (aix_thread_xfer_memory): Fix type of myaddr.
5794 (aix_thread_extra_thread_info): Fix compiler warning.
5795 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5796 (fetch_register, store_register): Adapt callers.
5798 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5800 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5802 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5804 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5806 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5807 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5808 (alpha_linux_regset_from_core_section): New function.
5809 (alpha_linux_init_abi): Install it.
5810 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5811 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5812 <sys/procfs.h>, and "gregset.h".
5813 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5814 Move from config/alpha/nm-linux.h.
5815 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5817 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5818 * alpha-nat.c: Remove #ifdef __linux__ section.
5819 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5820 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5821 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5822 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5823 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5824 (NATDEPFILES): Remove alpha-nat.o.
5825 * config/alpha/nm-linux.h: Delete file.
5826 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5827 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5828 (alpha-linux-tdep.o): Likewise.
5830 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5832 * mips-linux-nat.c: No longer include "gdbcore.h".
5833 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5834 (mips64_linux_register_addr): Likewise.
5835 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5836 mips64_linux_register_addr instead of register_addr.
5837 * mips-linux-tdep.c (mips_linux_register_addr,
5838 mips64_linux_register_addr): Move to mips-linux-nat.c.
5839 (register_addr): Remove.
5840 (register_addr_data, init_register_addr_data): Remove.
5841 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5842 (set_mips_linux_register_addr): Remove.
5843 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5844 * Makefile.in (mips-linux-nat.o): Update dependencies.
5846 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5848 * linux-nat.c (linux_register_u_offset): Remove.
5849 (linux_target_install_ops): New function.
5850 (linux_target): Use it.
5851 (linux_trad_target): New function.
5852 * linux-nat.h (linux_trad_target): Declare.
5854 * alpha-linux-nat.c: Include "gdbcore.h".
5855 (alpha_linux_register_u_offset): New function.
5856 (_initialize_alpha_linux_nat): Use linux_trad_target.
5858 * mips-linux-nat.c: Include "gdbcore.h".
5859 (mips_linux_register_u_offset): New function.
5860 (_initialize_mips_linux_nat): Use linux_trad_target.
5862 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5863 * config/arm/nm-linux.h: Delete file.
5865 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5866 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5868 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5869 * config/ia64/nm-linux.h: Delete file.
5871 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5872 * config/m32r/nm-linux.h: Delete file.
5874 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5875 * config/m68k/nm-linux.h: Delete file.
5877 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5878 * config/pa/nm-linux.h: Delete file.
5880 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5881 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5882 * config/powerpc/nm-linux.h: Delete file.
5884 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5885 * config/s390/nm-linux.h: Delete file.
5887 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5888 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5889 * config/sparc/nm-linux.h: Delete file.
5891 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5892 (mips-linux-nat.o): Likewise.
5894 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5896 * core-aout.c: Delete file.
5897 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5898 (core-aout.o): Delete rule.
5899 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5901 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5903 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5904 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5905 KERNEL_U_ADDR): Remove.
5907 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5908 (cannot_fetch_register, cannot_store_register): Remove.
5909 (fetch_register): Inline cannot_fetch_register and register_addr.
5910 (store_register): Inline cannot_store_register and register_addr.
5911 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5912 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5913 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5916 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5917 (fetch_register): Inline register_addr.
5918 (store_register): Inline register_addr.
5919 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5920 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5921 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5923 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5924 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5925 REGISTER_U_ADDR): Remove.
5927 * hppa-linux-nat.c (register_addr): Rename to ...
5928 (hppa_linux_register_addr): ... this. Make static.
5929 (fetch_register, store_register): Adapt callers.
5930 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5932 * ppc-linux-nat.c (kernel_u_size): Remove.
5933 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5935 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5936 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5938 * config/vax/nm-vax.h: Delete file.
5940 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5942 * MAINTAINERS (Write After Approval): Add myself.
5944 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5946 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5947 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5948 (m68k_linux_sigcontext_reg_offset): Fix typo.
5949 (target_is_uclinux): New.
5950 (m68k_linux_inferior_created): New.
5951 (m68k_linux_get_sigtramp_info): Check for uClinux or
5952 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5954 (_initialize_m68k_linux_tdep): Register
5955 m68k_linux_inferior_created.
5957 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5959 * win32-nat.c (win32_detach): Remove delete_command call.
5960 Resume inferior with win32_resume instead of win32_continue.
5962 2007-04-19 Jerome Guitton <guitton@adacore.com>
5964 * ser-mingw.c (fd_is_file): New function.
5965 (file_select_thread): New function.
5966 (ser_console_wait_handle): Add special handling for files.
5968 2007-04-18 Denis Pilat <denis.pilat@st.com>
5970 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5971 when missing from DW_TAG_subrange_type. Remove the handling of null
5972 return from die_type.
5974 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5976 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5977 change to rearrange some brackets.
5978 (mips_n32n64_push_dummy_call): Likewise.
5979 (mips_o32_push_dummy_call): Likewise.
5980 (mips_o64_push_dummy_call): Likewise.
5982 2007-04-18 Denis Pilat <denis.pilat@st.com>
5984 * infcmd.c (post_create_inferior): Start with a call to
5985 target_terminal_ours.
5987 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5989 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5991 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5993 (mips_o32_push_dummy_call): Likewise.
5994 (mips_o64_push_dummy_call): Likewise.
5996 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5998 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
6001 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6003 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
6005 (mips_o32_push_dummy_call): Likewise.
6007 2007-04-17 Andreas Schwab <schwab@suse.de>
6009 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
6010 sal to be bigger than the end of the function.
6012 2007-04-17 Maciej W. Rozycki <macro@mips.com>
6013 Nigel Stephens <nigel@mips.com>
6015 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
6016 argument alignment requirements when calculating stack space
6017 required. When aligning an arg register to eight bytes
6018 boundary, align stack_offset too. Write floating-point
6019 arguments to the appropriate integer register if need go there.
6020 (mips_o64_push_dummy_call): Likewise.
6022 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
6024 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
6025 "sig" arguments, add "regcache" argument.
6026 * gdbarch.c, gdbarch.h: Regenerate.
6028 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
6029 (handle_inferior_event): Call remove_single_step_breakpoints directly
6030 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
6032 * alpha-tdep.c (alpha_software_single_step): Update argument list.
6033 Remove handling of !insert_breakpoints_p case.
6034 * arm-tdep.c (arm_software_single_step): Likewise.
6035 * cris-tdep.c (cris_software_single_step): Likewise.
6036 * mips-tdep.c (mips_software_single_step): Likewise.
6037 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6038 * sparc-tdep.c (sparc_software_single_step): Likewise.
6039 * spu-tdep.c (spu_software_single_step): Likewise.
6041 * alpha-tdep.h (alpha_software_single_step): Update prototype.
6042 * mips-tdep.h (mips_software_single_step): Likewise.
6043 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6044 * sparc-tdep.h (sparc_software_single_step): Likewise.
6046 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
6048 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
6049 when removing single-step breakpoints.
6051 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
6053 * varobj.h (varobj_set_frozen): New
6054 (varobj_get_frozen): New.
6055 (varobj_update): New parameter explicit.
6056 * varobj.c (struct varobj): New fields frozen
6058 (varobj_set_frozen, varobj_get_frozen): New.
6059 (install_new_value): Don't fetch values for
6060 frozen variable object, or children thereof. Allow
6061 a frozen variable object to have non-fetched value.
6062 (varobj_update): Allow updating child variables.
6063 Don't traverse frozen children.
6064 (new_variable): Initialize the frozen field.
6065 (c_value_of_variable): Return NULL for frozen
6066 variable without any value yet.
6067 * mi/mi-cmd-var.c (varobj_update_one): New parameter
6069 (mi_cmd_var_create): Output the 'frozen' field,
6070 as soon as testsuite is adjusted to expect that field.
6071 (mi_cmd_var_set_frozen): New.
6072 (mi_cmd_var_update): Pass the 'explicit' parameter to
6074 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
6075 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
6077 2007-04-13 Paul Brook <paul@codesourcery.com>
6079 * target-descriptions.c (tdesc_named_type): Add ieee_single and
6081 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
6083 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6085 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
6086 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
6087 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
6088 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
6089 * Makefile.in: Remove references to deleted files.
6090 * README: Do not mention deleted ROM monitor interfaces.
6091 * defs.h (enum language): Delete language_scm.
6092 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
6093 (dump_subexp_body_standard): Likewise.
6094 * parse.c (operator_length_standard): Likewise.
6095 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
6096 * remote-mips.c: Do not include remote-utils.h.
6097 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
6099 * value.c: Do not include scm-lang.h.
6100 (unpack_long): Delete scm_unpack call.
6101 * config/h8300/h8300.mt, config/mips/embed.mt,
6102 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
6103 config/sh/embed.mt, config/sh/linux.mt: Remove references to
6105 * NEWS: Mention removed files.
6107 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6109 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
6110 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
6112 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6114 * NEWS: Mention removal of HP aCC support.
6116 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6118 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
6119 first entry for static executables.
6120 (breakpoint_addr): Delete unused variable.
6121 (elf_locate_base): Search for _r_debug in static executables.
6122 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
6125 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6127 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
6128 (bpstat_what, print_one_breakpoint, allocate_bp_location)
6129 (mention): Remove bp_through_sigtramp support.
6130 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
6132 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6134 * breakpoint.c (bpstat_what): Give step-resume higher priority than
6137 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
6139 * infrun.c: Doc fixes.
6140 (handle_inferior_event): Clarify debug message.
6141 (insert_step_resume_breakpoint_at_sal): Print a debug message.
6143 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6145 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
6147 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
6149 * config/m68k/tm-monitor.h: Delete file.
6150 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
6151 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
6153 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
6154 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
6156 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
6158 * gdbarch.sh (software_single_step): Change the return type
6159 from void to int and reformatted some comments to <= 80
6161 * gdbarch.c, gdbarch.h: Regenerated.
6162 * alpha-tdep.c (alpha_software_single_step): Likewise.
6163 * alpha-tdep.h (alpha_software_single_step): Likewise.
6164 * arm-tdep.c (arm_software_single_step): Likewise.
6165 * cris-tdep.c (cris_software_single_step): Likewise.
6166 * mips-tdep.c (mips_software_single_step): Likewise.
6167 * mips-tdep.h (mips_software_single_step): Likewise.
6168 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6169 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6170 * sparc-tdep.c (sparc_software_single_step): Likewise.
6171 * sparc-tdep.h (sparc_software_single_step): Likewise.
6172 * spu-tdep.c (spu_software_single_step): Likewise.
6173 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
6174 and act accordingly.
6176 2007-04-11 Steve Ellcey <sje@cup.hp.com>
6178 * configure.ac (build_warnings): Add -Wno-char-subscripts.
6179 * configure: Regenerate.
6180 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
6182 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6184 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
6186 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6188 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
6190 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
6191 distinct on the TYPE_STUB_SUPPORTED debug targets.
6192 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
6194 2007-04-11 Joel Brobecker <brobecker@adacore.com>
6196 * sparc-tdep.c (X_RS2): New macro.
6197 (sparc_skip_stack_check): New function.
6198 (sparc_analyze_prologue): Adjust PC past stack probing
6199 sequence if necessary.
6201 2007-04-10 Andreas Schwab <schwab@suse.de>
6203 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
6206 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6208 * breakpoint.c (gdb_breakpoint_query): Really return an
6210 (gdb_breakpoint): Likewise.
6211 * thread.c (gdb_list_thread_ids): Likewise.
6212 (gdb_thread_select): Likewise.
6213 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
6214 (mi_cmd_thread_list_ids): Remove bogus initialization.
6216 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6218 * Makefile.in (SFILES): Remove hpacc-abi.c.
6219 (COMMON_OBS): Remove hpacc-abi.o.
6220 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
6221 (hpacc-abi.o, hpread.o): Delete rules.
6222 * somread.c: Delete extern declarations from hpread.c.
6223 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
6224 (som_symfile_finish): Do not call hpread_symfile_finish.
6225 (som_symfile_init): Do not call hpread_symfile_init.
6226 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
6227 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
6228 * hpacc-abi.c, hpread.c: Deleted.
6230 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
6232 * solib-svr4.c (enable_break): Simplify return value.
6233 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
6235 2007-04-10 Andreas Schwab <schwab@suse.de>
6237 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
6238 l_ld_size, l_next_size, l_prev_size, l_name_size.
6240 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
6241 to extract addresses from link map.
6242 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
6243 (LM_NEXT): Likewise.
6244 (LM_NAME): Likewise.
6245 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
6246 (elf_locate_base): Likewise.
6247 (open_symbol_file_object): Likewise.
6248 (svr4_fetch_objfile_link_map): Likewise.
6249 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
6250 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
6252 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
6253 (svr4_lp64_fetch_link_map_offsets): Likewise.
6255 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
6256 removed members. Set l_ld_offset to -1 if not present.
6258 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
6260 Pass stderr of program run with "target remote |"
6262 * serial.c (serial_open): Set error_fd to -1.
6263 * serial.h (struct serial): New field error_fd.
6264 (struct serial_opts): New field avail.
6265 * ser-pipe.c (pipe_open): Create another pair
6266 of sockets. Pass stderr to gdb.
6267 * ser-mingw.c (pipe_windows_open): Pass
6268 PEX_STDERR_TO_PIPE to pex_run. Initialize
6271 (_initialize_ser_windows): Hook pipe_avail.
6272 * ser-base.c (generic_readchar): Check if there's
6273 anything in stderr channel and route that to gdb_stderr.
6275 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
6277 * dbxread.c (read_ofile_symtab): Move current_objfile
6278 clearing to after end_stabs.
6280 2007-04-01 Andreas Schwab <schwab@suse.de>
6282 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
6283 gdbarch instead of current_gdbarch.
6285 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
6287 * varobj.c (varobj_create): Keep varobj value
6288 NULL when evaluating the type.
6290 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
6292 * NEWS: Mention new Windows CE support.
6294 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
6296 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
6297 the obsoletion stanza.
6298 * NEWS: Mention deleted targets.
6300 * config/sh/tm-wince.h: Remove.
6301 * config/sh/wince.mt: Remove.
6302 * config/mips/tm-wince.h: Remove.
6303 * config/mips/wince.mt: Remove.
6306 * wince-stub.c: Remove.
6307 * wince-stub.h: Remove.
6308 * Makefile.in (wince.o): Remove rule.
6309 (wince-stub.o): Likewise.
6311 * mips-tdep.c (mips_next_pc): Make static.
6312 * mips-tdep.h (mips_next_pc): Remove declaration.
6313 * arm-tdep.c (arm_pc_is_thumb): Make static.
6314 (thumb_get_next_pc): Likewise.
6315 (arm_get_next_pc): Likewise.
6316 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
6317 (arm_pc_is_thumb): Likewise.
6318 (thumb_get_next_pc): Likewise.
6319 (arm_get_next_pc): Likewise.
6321 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6323 * MAINTAINERS: Remove d10v entry.
6324 * Makefile.in (SFILES): Remove dwarfread.c.
6325 (COMMON_OBS): Remove dwarfread.o.
6326 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
6327 (remote-est.o, rom68k-rom.o): Delete.
6328 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
6329 target est, target rom68k, and DWARF 1.
6330 * configure.tgt: Mark d10v as removed.
6331 * dwarf2read.c: Doc update.
6332 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
6334 (elf_locate_sections): Do not set them.
6335 (elf_symfile_read): Do not call dwarf_build_psymtabs.
6336 * symfile.h (dwarf_build_psymtabs): Delete prototype.
6337 * config/m68k/monitor.mt (TDEPFILES): Prune.
6338 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
6339 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
6341 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6343 * doublest.c (convert_floatformat_to_doublest): Use
6344 floatformat_classify.
6345 (floatformat_is_nan): Rename to...
6346 (floatformat_classify): ...this. Return more information.
6347 * doublest.h (enum float_kind): New.
6348 (floatformat_is_nan): Replace prototype...
6349 (floatformat_classify): ...with this one.
6350 * valprint.c (print_floating): Use floatformat_classify. Handle
6353 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6355 * README: Mention ISO C library requirement.
6357 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6359 * Makefile.in (SFILES): Remove nlmread.c.
6360 (COMMON_OBS): Remove nlmread.o.
6361 (nlmread.o): Delete rule.
6362 * README: Delete reference to remote-st.c.
6363 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
6364 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
6366 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
6367 (_initialize_i386_tdep): Do not reference them.
6368 * nlmread.c: Delete file.
6369 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
6370 * target.c: Doc update.
6371 * thread.c: Delete commented include.
6372 * config/alpha/tm-alpha.h: Doc update.
6374 2007-03-30 Chris Dearman <chris@mips.com>
6376 * utils.c (string_to_core_addr): Comment typo.
6378 2007-03-30 Chris Dearman <chris@mips.com>
6380 * mips-tdep.c: Comment typo.
6382 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
6384 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
6385 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6386 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6387 * config/powerpc/nm-ppc64-linux.h: Remove file.
6388 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
6389 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
6390 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
6391 * infptrace.c (call_ptrace): Likewise.
6392 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
6393 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
6394 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
6395 (store_register): Likewise.
6397 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6399 * Makefile.in (varobj.o): Add missing dependency.
6401 2007-03-29 Michael Snyder <msnyder@access-company.com>
6403 * MAINTAINERS: Update my email address.
6405 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6407 Add support for exception handling with multiple versions of
6409 * ada-lang.c: Update general comments on how Ada exception catchpoints
6411 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6412 (__gnat_raise_nodefer_with_msg): Delete.
6413 (ada_unhandled_exception_name_addr_ftype): New type.
6414 (exception_support_info): New type.
6415 (ada_unhandled_exception_name_addr): Add forward declaration.
6416 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6417 (default_exception_support_info): New constant.
6418 (exception_support_info_fallback): Likewise.
6419 (exception_info): New global variable.
6420 (ada_exception_support_info_sniffer): New function.
6421 (ada_executable_changed_observer): Likewise.
6422 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6423 ada_unhandled_exception_name_addr.
6424 (ada_unhandled_exception_name_addr): Reimplement to match the
6425 latest Ada runtime implementation.
6426 (error_breakpoint_runtime_sym_not_found): Delete.
6427 (ada_exception_sym_name): Get the exception sym name from
6428 exception_info rather than hardcoding it.
6429 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6430 Update error handling.
6431 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6433 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6435 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6436 (remote-st.o, uw-thread.o): Delete.
6437 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6438 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6439 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6440 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6441 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6442 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6443 rs6000-*-lynxos* to an obsoletion stanza.
6444 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6445 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6446 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6447 i[34567]86-*-netware*.
6448 * NEWS: Mention deleted targets.
6450 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6451 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6452 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6453 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6454 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6455 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6456 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6457 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6458 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6459 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6460 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6461 config/rs6000/tm-rs6000ly.h: Delete files.
6463 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6465 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6466 * interps.c (clear_interpreter_hooks): Do not clear
6467 deprecated_registers_changed_hook.
6468 * regcache.c (registers_changed): Do not call it.
6469 * top.c (deprecated_registers_changed_hook): Do not define it.
6470 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6471 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6472 (tui_remove_hooks): Do not remove it.
6473 (tui_selected_frame_level_changed_hook): Check for negative level.
6474 Use get_selected_frame.
6475 (tui_registers_changed_hook): Deleted.
6477 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6479 * stabsread.c (add_undefined_type): Add extra parameter.
6480 Now handles nameless types separately.
6481 (struct nat): New type.
6482 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6483 New static variables.
6484 (read_type): Update calls to add_undefined_type.
6485 (add_undefined_type_noname): New function.
6486 (add_undefined_type_1): Renames from add_undefined_type.
6487 (cleanup_undefined_types_noname): New function.
6488 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6489 (cleanup_undefined_types): New handles nameless types separately.
6490 (_initialize_stabsread): Initialize our new static constants.
6492 2007-03-29 Denis Pilat <denis.pilat@st.com>
6494 * configure.ac: Test for signal.h.
6495 * configure, config.in: Regenerate.
6497 2007-03-29 Denis Pilat <denis.pilat@st.com>
6499 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6500 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6502 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6504 * arm-wince-tdep.c: New.
6505 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6506 (MT_CFLAGS): Delete.
6508 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6509 solib-legacy.o, solib-svr4.o, and remove wince.o.
6510 * configure.tgt (arm*-*-mingw32ce*): Add.
6511 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6512 (do_target_signal_to_host): Silence 'not used' warning.
6513 * config/arm/tm-wince.h: Remove.
6515 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6517 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6518 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6520 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6521 * config/ia64/tm-linux.h: Remove file.
6522 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6523 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6524 legacy_pc_in_sigtramp.
6525 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6526 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6527 Remove func_name argument.
6528 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6530 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6531 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6532 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6533 (HAVE_STEPPABLE_WATCHPOINT): Define.
6535 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6536 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6537 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6538 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6539 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6540 target_insert_watchpoint, target_remove_watchpoint): Remove.
6541 (FETCH_INFERIOR_REGISTERS): Define.
6542 * ia64-linux-nat.c (ia64_register_addr): Make static.
6543 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6544 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6545 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6546 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6547 (ia64_linux_stopped_by_watchpoint): Make static.
6548 (ia64_linux_can_use_hw_breakpoint): New function.
6549 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6550 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6551 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6553 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6555 * linespec.c: Include language.h.
6556 (find_methods): Add language parameter. Call
6557 lookup_symbol_in_language. Pass language down.
6558 (add_matching_methods): Likewise. Call
6559 lookup_symbol_in_language.
6560 (add_constructors): Likewise.
6561 (find_method): Pass sym_class to collect_methods.
6562 (collect_methods): Add sym_class parameter. Pass language
6564 * symtab.c (lookup_symbol): Rename to ...
6565 (lookup_symbol_in_language): ... this. Add language
6566 parameter. Use passed language instead of current_language.
6567 (lookup_symbol): New as wrapper around
6568 lookup_symbol_in_language.
6569 (lookup_symbol_aux): Add language parameter. Use passed
6570 language instead of current_language.
6571 (search_symbols): Indent.
6572 * symtab.h (enum language): Forward declare.
6573 (lookup_symbol_in_language): Declare.
6574 (lookup_symbol): Update description.
6575 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6576 * ada-lang.c (restore_language): Remove.
6577 (lookup_symbol_in_language): Remove.
6579 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6581 * breakpoint.c (bpstat_num): Add int *num parameter.
6582 * breakpoint.h (bpstat_num): Likewise.
6583 * infcmd.c (continue_command): Adjust to new bpstat_num
6585 (program_info): Likewise.
6587 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6589 * config/sh/tm-sh.h: Remove file.
6590 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6591 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6592 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6593 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6595 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6597 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6598 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6599 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6600 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6601 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6602 sequence if target_shortname is "remote".
6604 2007-03-27 Anton Blanchard <anton@samba.org>
6606 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6607 instead of wordsize when looking for the LR in a stack frame.
6609 2007-03-27 Andreas Schwab <schwab@suse.de>
6610 Daniel Jacobowitz <dan@codesourcery.com>
6612 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6613 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6614 argument. Update all callers.
6615 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6616 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6617 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6618 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6619 (dwarf2_frame_set_adjust_regnum): ...this.
6620 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6621 * rs6000-tdep.c: Include "dwarf2-frame.h".
6622 (rs6000_adjust_frame_regnum): Define.
6623 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6624 Register rs6000_adjust_frame_regnum.
6626 * Makefile.in (rs6000-tdep.o): Update dependencies.
6628 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6630 * Makefile.in: Add support for a "pdf" target.
6632 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6634 * amd64-tdep.c (amd64_init_frame_cache): New function.
6635 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6637 2007-03-26 Nigel Stephens <nigel@mips.com>
6638 Maciej W. Rozycki <macro@mips.com>
6640 * ui-out.c (ui_out_field_core_addr): Truncate address to
6641 TARGET_ADDR_BIT size before printing.
6643 2007-03-22 Nigel Stephens <nigel@mips.com>
6644 Maciej W. Rozycki <macro@mips.com>
6646 * remote-mips.c (mips_xfer_memory): Update prototype.
6648 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6650 * symfile.h: #include "symtab.h"
6652 2007-03-22 Denis Pilat <denis.pilat@st.com>
6654 * utils.c (pagination_on_command, pagination_off_command):
6655 Remove useless prototypes.
6657 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6660 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6661 instead of TYPE_NAME for object base class name.
6664 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6666 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6667 Specify frame type in calls to frame_func_unwind().
6669 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6671 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6672 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6673 (refine_prologue_limit): Delete.
6674 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6675 Assume lim_pc is set. Correct check for incomplete prologues.
6676 Do not skip clobbers of the frame pointer.
6677 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6680 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6682 * frame.c (frame_pop): Check to see whether there's a frame to
6683 which we can pop first.
6685 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6687 * MAINTAINERS (Write After Approval): Add myself.
6689 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6691 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6692 (handle_inferior_event): Remove unnecessary braces.
6693 * breakpoint.c (bpstat_what): Remove wrong comment.
6695 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6697 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6698 (spu_gdbarch_init): Install it.
6700 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6702 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6703 object types, not 0.
6705 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6707 * spu-tdep.c (spu_frame_align): New function.
6708 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6710 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6712 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6713 (spu_software_single_step): Likewise.
6714 (spu_read_pc, spu_write_pc): New functions.
6715 (spu_gdbarch_init): Install them.
6717 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6719 * cli/cli-dump.c (struct callback_data): load_offset needs to
6720 have signed long type.
6722 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6724 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6725 Revert the previous change that had some unexpected side-effects
6727 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6728 function to get the address of the calling instruction.
6730 2007-03-07 Denis Pilat <denis.pilat@st.com>
6732 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6733 get_selected_frame by deprecated_safe_get_selected_frame.
6735 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6737 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6738 "gdb_string.h". Don't include "nbsd-tdep.h".
6739 (SIZEOF_STRUCT_REG): Remove.
6740 (SHNBSD_SIZEOF_GREGS): New.
6741 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6742 (shnbsd_regset_from_core_section): New functions.
6743 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6744 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6745 shnbsd_supply_gregset, shnbsd_collect_gregset.
6746 (shnbsd_gregset): New variable.
6747 (shnbsd_init_abi): Set regset_from_core_section.
6748 (GDB_OSABI_NETBSD_CORE): New define.
6749 (shnbsd_core_osabi_sniffer): New function.
6750 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6751 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6752 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6754 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6756 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6758 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6759 length of the types referenced by the new type CV ring.
6761 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6763 * frame.c (frame_pop, frame_observer_target_changed): Call
6765 (flush_cached_frames): Rename to reinit_frame_cache and delete
6767 * frame.h (flush_cached_frames): Delete prototype and update comment.
6769 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6770 reinit_frame_cache instead of flush_cached_frames. Do not call
6771 select_frame after reinit_frame_cache.
6772 * corelow.c (core_open): Likewise.
6773 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6774 * infrun.c (prepare_to_proceed, context_switch)
6775 (handle_inferior_event): Likewise.
6776 * linux-fork.c (fork_load_infrun_state): Likewise.
6777 * ocd.c (ocd_start_remote): Likewise.
6778 * remote-e7000.c (e7000_start_remote): Likewise.
6779 * remote-mips.c (device): Likewise.
6780 * thread.c (switch_to_thread): Likewise.
6781 * tracepoint.c (finish_tfind_command): Likewise.
6782 * gdbarch.c: Regenerated.
6784 2007-02-28 Jerome Guitton <guitton@adacore.com>
6785 Joel Brobecker <brobecker@adacore.com>
6787 * gdbtypes.c (check_typedef): Do not replace stub type if
6788 the resolved type is not defined in the same objfile.
6790 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6792 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6794 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6796 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6797 symbol for Ada units when the symbol is defined using 't' rather
6798 than 'Tt' as symbol descriptor.
6800 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6802 * config/mips/tm-nbsd.h: Delete file.
6803 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6804 * config/sh/tm-nbsd.h: Delete file.
6805 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6807 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6809 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6810 unused WRONG_PARAM value since it was recently deleted.
6812 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6814 * varobj.c (varobj_update): Free temporary vectors.
6816 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6818 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6819 * config/powerpc/tm-linux.h: Delete file.
6820 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6821 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6822 (TEXT_SEGMENT_BASE): Do not redefine.
6823 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6824 from config/rs6000/tm-rs6000.h.
6825 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6826 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6827 (TEXT_SEGMENT_BASE): Remove.
6828 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6829 (rs6000_in_solib_return_trampoline): Remove.
6830 (SKIP_TRAMPOLINE_CODE): Remove.
6831 (rs6000_skip_trampoline_code): Remove.
6832 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6833 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6834 (FP0_REGNUM): Remove.
6835 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6836 (rs6000_set_host_arch_hook): Remove.
6837 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6838 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6839 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6840 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6841 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6842 * rs6000-nat.c: Include "rs6000-tdep.h".
6843 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6844 (set_host_arch): Rename to ...
6845 (rs6000_create_inferior): ... this. Make public.
6846 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6847 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6848 (rs6000_create_inferior): Remove.
6849 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6850 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6851 set_gdbarch_in_solib_return_trampoline, and
6852 set_gdbarch_skip_trampoline_code.
6853 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6854 from config/rs6000/tm-rs6000.h.
6856 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6858 * buildsym.c (record_producer): Do nothing if no producer is provided.
6860 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6862 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6863 to check changelist is non-NULL. Call error if the frontend tries
6864 to update a non-root variable.
6866 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6868 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6870 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6871 (dwarf2_frame_sniffer): Update.
6872 (dwarf2_signal_frame_this_id): New function.
6873 (dwarf2_signal_frame_unwind): Use it.
6874 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6875 * frame.c (frame_func_unwind): Add this_type argument.
6876 (get_frame_func): Update.
6877 (frame_unwind_address_in_block): Add this_type argument and check it.
6879 (get_frame_address_in_block): Update.
6880 * frame.h (enum frame_type): Move higher in the file.
6881 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6884 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6885 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6886 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6887 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6888 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6889 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6890 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6891 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6892 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6893 frame_func_unwind and frame_unwind_address_in_block to specify
6894 the frame type. Use frame_unwind_address_in_block instead of
6895 frame_pc_unwind in sniffers.
6897 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6899 * frame.c (deprecated_selected_frame): Rename to...
6900 (selected_frame): ...this. Make static.
6901 (get_selected_frame, select_frame): Update.
6902 * frame.h (deprected_select_frame): Delete.
6903 (deprecated_safe_get_selected_frame): Update comments.
6905 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6906 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6907 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6908 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6909 tui/tui.c: Replace references to deprecated_selected_frame.
6911 2007-02-27 Fred Fish <fnf@specifix.com>
6913 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6914 directly decrement the stack pointer, accumulate their operand into
6915 the stack offset, and mark the function as not being frameless.
6917 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6919 * arch-utils.c (selected_byte_order): New.
6920 * arch-utils.h (selected_byte_order): New prototype.
6921 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6923 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6925 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6926 (default_symfile_offsets): Check VMA here. Update section VMAs.
6928 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6930 * remote.c (init_remote_state): Add special handling for placeholder
6933 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6935 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6936 (filenames_h): New variable.
6937 (clean): Clean up xml-builtin.c and stamp-xml.
6938 (arm-linux-nat.o): Update.
6939 * config/arm/linux.mh (TDEP_XML): Define.
6940 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6941 (arm_linux_has_wmmx_registers): New.
6942 (GET_THREAD_ID): Fix typo.
6943 (IWMMXT_REGS_SIZE): Define.
6944 (fetch_wmmx_regs, store_wmmx_regs): New.
6945 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6946 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6947 (super_xfer_partial, arm_linux_xfer_partial): New.
6948 (_initialize_arm_linux_nat): Use them.
6949 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6950 (xml_builtin_xfer_partial): New function.
6951 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6952 * NEWS: Update mention of iWMMXt support.
6954 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6956 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6957 if there are no FPA registers.
6958 (arm_dwarf_reg_to_regnum): New function.
6959 (arm_register_type, arm_register_name): Return minimal values for
6960 unsupported registers.
6961 (arm_register_sim_regno): Handle iWMMXt registers.
6962 (arm_gdbarch_init): Record missing FPA registers if indicated by
6963 a target description. Recognize iWMMXt registers. Only register
6964 "info float" for FPA. Use ARM_NUM_REGS. Register
6965 arm_dwarf_reg_to_regnum.
6966 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6968 (struct gdbarch_tdep): Add have_fpa_registers.
6969 * features/xscale-iwmmxt.xml: Update capitalization.
6970 * regformats/arm-with-iwmmxt.dat: Regenerated.
6972 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6974 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6976 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6978 * MAINTAINERS (mep): New target.
6980 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6982 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6984 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6985 (mep-tdep.o): New rule.
6986 * configure.tgt (mep-*-*): New target.
6987 * mep-tdep.c: New file.
6988 * config/mep/mep.mt: New file.
6990 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6992 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6993 BREAKPOINT_HIT and STOP_UNKNOWN.
6995 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6997 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6999 2007-02-20 Joel Brobecker <brobecker@adacore.com>
7001 * gdb_expat.h (XMLCALL): Define if not already defined.
7003 2007-02-20 Andreas Schwab <schwab@suse.de>
7005 * Makefile.in (symfile.o): Update dependencies.
7007 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
7009 * MAINTAINERS: Disable -Werror for cris simulator. Build
7010 sparc64-solaris2.10 instead of the broken sparc-elf.
7011 * solib-frv.c: Include "solib.h".
7012 * Makefile.in (solib-frv.o): Update.
7013 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
7014 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
7015 (xtensa_frame_this_id, xtensa_frame_prev_register)
7016 (xtensa_push_dummy_call): Use %p.
7018 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7020 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7021 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
7022 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7023 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
7024 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
7025 (sparc-linux-tdep.o): Update.
7027 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
7029 * xtensa-tdep.h (xtensa_reg_mask_t): New.
7030 (xtensa_mask_t): Change mask field to be a separate array.
7031 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
7032 (xtensa_pseudo_register_write, xtensa_unwind_pc)
7033 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
7034 (xtensa_breakpoint_from_pc): Remove implicit type casting.
7035 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
7036 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
7037 (mask14, mask15): Rename to
7038 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
7039 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
7040 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
7041 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
7042 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
7043 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
7044 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
7045 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
7046 (xtensa_submask14, xtensa_submask15): New.
7047 (rmap): Follow strict aliasing rules doing static initialization.
7049 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
7051 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
7052 handling from here...
7053 (tdesc_register_type): ...to here.
7054 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
7055 * features/arm-core.xml: Use code_ptr and data_ptr.
7057 2007-02-13 Denis Pilat <denis.pilat@st.com>
7059 * varobj.h (enum varobj_update_error): New enum.
7060 * varobj.c (struct varobj_root): Add is_valid member.
7061 (varobj_get_type): Check for invalid varobj.
7062 (varobj_get_attributes): Likewise.
7063 (variable_editable):Likewise.
7064 (varobj_update): Likewise. Use varobj_update_error.
7065 (new_root_variable): Set root varobj as valid by default.
7066 (varobj_invalidate): New function.
7067 * symfile.c (clear_symtab_users): Use varobj_invalidate.
7068 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
7069 Use varobj_update_error.
7071 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
7074 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
7075 Pascal language marker.
7076 * dwarf2read.c (set_cu_language): Likewise.
7078 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
7080 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
7081 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
7082 instead of target_terminal_init since inferior_ptid isn't set yet.
7084 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
7086 * MAINTAINERS (Write After Approval): Add myself.
7088 2007-02-09 Fred Fish <fnf@specifix.com>
7090 Based on work by Apple Computer, Inc.
7091 * event-top.c (async_request_quit): Call quit() whenever either
7092 quit_flag is set or immediate_quit is set.
7094 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7096 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
7097 type to a pointer to const struct block.
7098 (ada_lookup_symbol_list): Don't cast away constness when calling
7099 remove_out_of_scope_renamings.
7101 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7103 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
7104 address of 'filename'; it is always non null.
7106 2007-02-09 Joel Brobecker <brobecker@adacore.com>
7108 * exec.c (add_to_section_table): Do not discard empty sections.
7110 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7112 * features/Makefile, features/arm-with-iwmmxt.xml,
7113 features/gdbserver-regs.xsl, features/number-regs.xsl,
7114 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
7115 * regformats/arm-with-iwmmxt.dat: Generate.
7116 * NEWS: Mention iWMMXt.
7118 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7120 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
7121 (xml-tdesc.o): Update.
7122 * xml-support.c: Add a comment.
7123 (gdb_xml_enums_boolean): New variable.
7124 (gdb_xml_parse_attr_enum): Use strcasecmp.
7125 * xml-support.h (gdb_xml_enums_boolean): Declare.
7126 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
7127 next_regnum, and current_union.
7128 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
7129 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
7130 (field_attributes, union_children, reg_attributes, union_attributes)
7131 (vector_attributes, feature_attributes, feature_children): New.
7132 (target_children): Make static. Add <feature>.
7133 (tdesc_elements): Make static.
7134 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
7135 (struct tdesc_feature, tdesc_feature_p): New types.
7136 (struct target_desc): Add features member.
7137 (struct tdesc_arch_data, tdesc_data): New.
7138 (target_find_description): Clarify error message. Warn about
7139 ignored register descriptions.
7140 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7141 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
7142 (tdesc_data_cleanup, tdesc_numbered_register)
7143 (tdesc_numbered_register_choices, tdesc_find_register)
7144 (tdesc_register_name, tdesc_register_type)
7145 (tdesc_remote_register_number, tdesc_register_reggroup_p)
7146 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
7147 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
7148 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
7149 (tdesc_create_feature, tdesc_record_type): New.
7150 (free_target_description): Free features.
7151 (_initialize_target_descriptions): Initialize tdesc_data.
7152 * arch-utils.c (default_remote_register_number): New.
7153 * arch-utils.h (default_remote_register_number): New prototype.
7154 * target-descriptions.h (set_tdesc_pseudo_register_name)
7155 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
7156 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
7157 (tdesc_numbered_register, tdesc_numbered_register_choices)
7158 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
7159 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
7160 (tdesc_create_reg): Declare.
7161 * gdbarch.sh (remote_register_number): New entry.
7162 * gdbarch.c, gdbarch.h: Regenerate.
7163 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
7164 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
7166 * arm-tdep.c (arm_register_aliases): New.
7167 (arm_register_name_strings): Rename to...
7168 (arm_register_names): ...this. Make const. Delete the old version.
7169 (current_option, arm_register_byte): Delete.
7170 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
7171 (value_of_arm_user_reg): New.
7172 (arm_gdbarch_init): Verify any described registers. Call
7173 tdesc_use_registers. Don't use arm_register_byte. Create aliases
7174 for standard register names.
7175 (_initialize_arm_tdep): Do not adjust arm_register_names.
7176 * user-regs.c (struct user_reg): Add baton member.
7177 (append_user_reg, user_reg_add_builtin, user_regs_init)
7178 (user_reg_add, value_of_user_reg): Use a baton for user
7180 * std-regs.c: Update.
7181 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
7182 (user_reg_add): Add baton argument.
7183 * NEWS: Mention target description register support.
7184 * features/arm-core.xml, features/arm-fpa.xml: New.
7185 * eval.c (evaluate_subexp_standard): Allow ptype $register
7186 when the program is not running.
7188 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
7190 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
7192 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
7194 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
7195 info->disassembler_options to "any".
7197 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7199 * varobj.c (install_new_value): Only call value_get_print_value
7202 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7204 Reported by timeless@gmail.com:
7205 * gdb/target.c (target_flash_erase): Do not return void value.
7206 (target_flash_done): Likewise.
7207 * gdb/cli/cli-cmds.c (source_command): Likewise.
7209 2007-02-08 Fred Fish <fnf@specifix.com>
7211 Based on work by Apple Computer, Inc.
7212 * event-top.c (handle_sigint): Set quit_flag.
7213 (async_request_quit): Don't set quit_flag. Avoid calling quit()
7214 if quit_flag has already been reset.
7216 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7218 * ser-mingw.c (pipe_windows_close): Move variable initialization back
7221 2007-02-08 Fred Fish <fnf@specifix.com>
7223 * defs.h (request_quit): Remove declaration.
7224 * utils.c (request_quit): Remove definition.
7226 2007-02-08 Joel Brobecker <brobecker@gnat.com>
7227 Jan Kratochvil <jan.kratochvil@redhat.com>
7228 Daniel Jacobowitz <dan@codesourcery.com>
7230 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
7231 (skip_prologue): Allow bl->blrl used by PIC code.
7233 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7234 Daniel Jacobowitz <dan@codesourcery.com>
7236 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
7237 initialize tmp_obstack.
7238 * p-valprint.c (pascal_object_print_value_fields)
7239 (pascal_object_print_value): Likewise.
7241 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
7243 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
7245 2007-02-08 Mark Kettenis <kettenis@gnu.org>
7247 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7248 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
7250 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7252 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
7254 (tdesc_parse_xml): Cache expanded descriptions.
7256 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7258 * Makefile.in (XMLFILES): New.
7259 (COMMON_OBS): Add xml-builtin.o.
7260 (xml-builtin.c, stamp-xml): New rules.
7261 (xml-tdesc.o): Update.
7262 * features/feature_to_c.sh: New file.
7263 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
7264 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
7265 (gdb_xml_start_element): Initialize scope after possibly reallocating
7266 scopes. Move cleanup later. Handle the XInclude description
7268 (gdb_xml_end_element): Only parse the body if there is a current element.
7269 Call XML_DefaultCurrent if there is no element.
7270 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
7271 (struct xinclude_parsing_data, xinclude_start_include)
7272 (xinclude_end_include, xml_xinclude_default)
7273 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
7274 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
7275 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
7276 * xml-support.h (xml_fetch_another, xml_process_xincludes)
7277 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
7278 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
7279 XInclude directives. Use the compiled in DTD.
7280 (fetch_xml_from_file): Add baton argument. Treat it as a containing
7281 directory name. Do not warn here.
7282 (file_read_description_xml): Update call. Warn here instead. Pass
7284 (fetch_available_features_from_target): New.
7285 (target_read_description_xml): Use it.
7286 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
7288 * features/xinclude.dtd: New file.
7290 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7292 * linux-thread-db.c (check_for_thread_db): Return early if we have
7293 no libthread_db support.
7295 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7297 * mi/mi-parse.h: Include <sys/time.h>.
7299 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
7301 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
7302 instead of print_variable_value to print values.
7304 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7306 * mi/mi-main.c: Numerous formatting changes.
7307 (mi_cmd_data_write_register_values): Replace clause inadvertantly
7308 removed in my previous change.
7310 2007-02-03 Eli Zaretskii <eliz@gnu.org>
7312 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
7313 Use 1000000L instead of 1000000.
7315 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7317 Based on work by Apple Computer, Inc.
7319 * configure.ac: Test for sys/resource.h and getrusage.
7320 * configure, config.in: Regenerate.
7322 * mi/mi-main.c: Include <sys/resource.h> if present.
7323 (rusage): Declare if HAVE_GETRUSAGE.
7324 (current_command_ts, do_timings): New static variables.
7325 (timestamp, print_diff_now, print_diff, timeval_diff):
7326 New static timing functions.
7327 (mi_cmd_enable_timings): New function for new MI command.
7328 (captured_mi_execute_command, mi_execute_async_cli_command):
7329 Call timing functions.
7331 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
7334 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
7336 * mi/mi-parse.h: (mi_timestamp): New structure.
7337 (mi_parse): Add mi_timestamp* member.
7339 2007-02-02 Denis Pilat <denis.pilat@st.com>
7341 * thread.c (make_cleanup_restore_current_thread): New function.
7342 (info_threads_command): Use of make_cleanup_restore_current_thread
7343 to restore the current thread and the selected frame.
7344 (restore_selected_frame): New function.
7345 (struct current_thread_cleanup): Add frame_id field.
7346 (do_restore_current_thread_cleanup): Add restoring of the selected
7348 (make_cleanup_restore_current_thread): Likewise.
7349 (thread_apply_all_command): backup the selected frame while
7350 entering the function and restore it at exit.
7351 (thread_apply_command): Likewise.
7353 2007-02-02 Denis Pilat <denis.pilat@st.com>
7355 * MAINTAINERS (Write After Approval): Add myself to the list.
7357 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7359 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
7360 (m32r_store_register): Ditto.
7362 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
7364 * ser-mingw.c (pipe_windows_open)
7365 (pipe_windows_read, pipe_windows_write): Declare
7366 variables at the top of the function.
7368 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7370 * doublest.c (floatformat_from_length): Use the right element from
7371 gdbarch floatformats.
7372 (floatformat_from_type, extract_typed_floating)
7373 (store_typed_floating): Likewise.
7374 * doublest.h: Remove declarations for undefined floatformat arrays.
7375 * gdbarch.sh (float_format, double_format, long_double_format): Change
7377 (pformat): Update for pairs.
7378 * gdbarch.c, gdbarch.h: Regenerated.
7379 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
7380 (floatformats_ieee_double_littlebyte_bigword)
7381 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
7382 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
7383 (floatformats_vax_d): New variables.
7384 (builtin_type_ieee_single, builtin_type_ieee_double)
7385 (builtin_type_arm_ext, builtin_type_ia64_spill)
7386 (builtin_type_ia64_quad): Replace arrays with individual types.
7387 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
7388 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
7389 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
7390 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
7391 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
7392 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
7393 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
7394 unused and endian-specific types.
7395 (recursive_dump_type): Update for floatformat pairs.
7396 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
7397 (build_gdbtypes): Use build_flt.
7398 (_initialize_gdbtypes): Update set of initialized types.
7399 * gdbtypes.h: Update declarations to match gdbtypes.c.
7400 (struct main_type): Store a pointer to two floatformats.
7401 * arch-utils.c (default_float_format, default_double_format): Delete.
7402 * arch-utils.h (default_float_format, default_double_format): Delete.
7404 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7405 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7406 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7407 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7408 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7410 2007-01-29 Joel Brobecker <brobecker@adacore.com>
7412 * target.c (maintenance_print_target_stack): New function.
7413 (initialize_targets): Add new "maintenance print target-stack"
7416 2007-01-28 Mark Kettenis <kettenis@gnu.org>
7418 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7420 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7422 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7423 (struct dwarf2_loclist_baton): Likewise.
7425 2007-01-27 Eli Zaretskii <eliz@gnu.org>
7427 * cli/cli-script.c: Include breakpoint.h.
7428 (build_command_line): Require arguments only for if and while
7430 (get_command_line, execute_user_command, execute_control_command):
7431 Fix wording of warning messages.
7432 (print_command_lines): Print breakpoint commands.
7433 (execute_control_command): Call commands_from_control_command to
7434 handle the `commands' command inside a body of a flow-control
7436 (read_next_line): Recognize the `commands' command and build a
7437 command line structure for it.
7438 (recurse_read_control_structure, read_command_lines): Handle
7439 `commands' similarly to `if' and `while'.
7441 * breakpoint.c (get_number_trailer): Document the special meaning
7442 of NULL as the first argument PP.
7443 (commands_from_control_command): New function.
7445 * breakpoint.h (commands_from_control_command): Add prototype.
7447 * defs.h (commands_control): New enumerated value for enum
7448 command_control_type.
7450 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7452 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7453 (ada_exception_sal): Update accordingly.
7455 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7457 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7458 * NEWS: Describe CHAR array vs. string identifcation rules.
7460 2007-01-25 Paul Brook <paul@codesourcery.com>
7462 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7464 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7466 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7467 expression is empty, bother to return the 'optimized out' value we
7468 construct. (Thanks to Carl Burch.)
7470 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7472 * varobj.c (c_value_of_root, c_value_of_child)
7473 (cplus_describe_child): Don't call release_value.
7475 2007-01-24 Thiemo Seufer <ths@mips.com>
7477 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7480 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7482 Refactor getting children name, value and type access
7484 * varobj.c (get_type_deref): Remove.
7485 (adjust_value_for_child_access): New.
7486 (c_number_of_children): Use the above.
7487 (c_describe_child): Likewise.
7488 (enum accessibility): New.
7489 (match_accessibility): New function.
7490 (cplus_describe_child): New function.
7491 (cplus_name_of_child, cplus_value_of_child)
7492 (cplus_type_of_child): Reimplement in terms
7493 of cplus_describe_child.
7494 (cplus_number_of_children): Use
7495 adjust_value_for_child_access.
7497 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7499 Fix computation of the 'editable' attribute and
7500 value changeability for for references.
7501 * varobj.c (get_value_type): New function.
7502 (c_variable_editable): Use get_value_type.
7503 (varobj_value_is_changeable): Likewise.
7505 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7507 * source.c (find_and_open_source): Try rewriting the source
7508 path inside filename if dirname is NULL.
7510 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7512 * dwarf2read.c (add_partial_symbol): Create an extra partial
7513 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7514 (new_symbol): Likewise for symbols.
7516 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7518 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7520 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7522 * value.c (value_primitive_field): Copy the full 'location'
7523 contents, instead of assuming that copying ADDRESS will
7524 bring over everything in the union. Remove obsolete comment.
7526 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7528 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7529 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7530 (m32c_m16c_pointer_to_address): Separate code from declarations.
7532 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7534 * target.c (update_current_target): Correct typo.
7536 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7538 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7541 2007-01-11 Andrew Cagney <cagney@redhat.com>
7542 Daniel Jacobowitz <dan@codesourcery.com>
7543 Jan Kratochvil <jan.kratochvil@redhat.com>
7545 * dwarf2-frame.c (execute_cfa_program): New support of
7546 `DW_CFA_GNU_negative_offset_extended'.
7548 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7550 * NEWS: Mention flash support for "load" and new remote packets.
7552 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7554 * breakpoint.c (delete_command): Skip redundant loop iterations.
7556 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7558 * gdbarch.sh (register_type): Update comment.
7559 * gdbarch.h: Regenerated.
7560 * arch-utils.c (generic_register_size): Call register_type.
7561 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7562 * m32c-tdep.c (check_for_saved): Likewise.
7563 * mips-tdep.c (mips_print_register, print_gp_register_row)
7564 (mips_print_registers_info): Likewise.
7565 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7567 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7568 (sh64_do_register, sh64_print_register)
7569 (sh64_media_print_registers_info): Likewise.
7570 * tui/tui-regs.c (tui_register_format): Likewise.
7572 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7574 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7576 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7577 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7578 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7579 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7580 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7581 (make_symbol_completion_list): Likewise.
7583 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7584 Daniel Jacobowitz <dan@codesourcery.com>
7586 * buildsym.c (end_symtab): Use preallocated symtab if available.
7587 Fill in SYMBOL_SYMTAB.
7588 * buildsym.h (struct subfile): Add symtab member.
7589 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7590 (struct file_entry): Add symtab.
7591 (free_cu_line_header): New function.
7592 (read_file_scope): Use it. Save line_header in the cu. Process
7594 (add_file_name): Initialize new symtab member.
7595 (dwarf_decode_lines): Create symtabs for included files.
7596 (new_symbol): Set SYMBOL_SYMTAB.
7597 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7598 (search_symbols): Likewise.
7599 * symtab.h (struct symbol): Add symtab member.
7600 (SYMBOL_SYMTAB): Define.
7602 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7604 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7606 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7608 * arch-utils.c (show_endian): Correct reversed condition.
7610 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7612 * MAINTAINERS (Write After Approval): Add myself.
7614 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7615 Vladimir Prus <vladimir@codesourcery.com>
7617 Fix 'selected frame' varobjs.
7618 * varobj.c (struct varobj): Remove the error field.
7619 (varobj_set_value): Don't check var->error.
7620 (install_new_value): Don't set var->error.
7621 (varobj_update): Always pass the new value
7622 of the root via install_new_value.
7623 (create_child): Don't set error field.
7624 (new_variable): Likewise.
7625 (c_value_of_root): Always reevaluate the value
7626 of selected frame varobjs in the selected frame.
7627 Don't call reinit_frame_cache.
7629 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7631 * source.c (_initialize_source): Improve the help text of
7632 the substitute-path commands.
7634 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7636 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7637 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7638 (frv_skip_prologue): Remove prototypes.
7639 (frv_adjust_breakpoint_address): Renamed from
7640 frv_gdbarch_adjust_breakpoint_address.
7641 (frv_gdbarch_init): Adjust.
7643 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7645 * gdbarch.sh (deprecated_extract_return_value)
7646 (deprecated_store_return_value): Remove.
7647 (extract_return_value, store_return_value): Remove default values.
7648 * gdbarch.c, gdbarch.h: Regenerate.
7649 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7650 (legacy_store_return_value): Remove.
7651 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7654 * mi/mi-main.c: Remove obsolete comment.
7656 * regcache.c, regcache.h (deprecated_register_bytes)
7657 (deprecated_read_register_bytes)
7658 (deprecated_write_register_bytes): Remove.
7660 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7661 Don't forget to move destination pointer.
7663 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7665 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7667 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7669 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7670 past entry function with recent newlib.
7672 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7674 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7675 introduction. Specify -var-update more exactly.
7677 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7679 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7681 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7683 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7684 the Global Maintainers' invitation to be a global maintainer.
7686 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7688 * infrun.c (singlestep_pc): New variable.
7689 (resume): Set singlestep_pc.
7690 (context_switch): Add a debugging message. Flush the frame cache.
7691 (handle_inferior_event): Add debugging messages. Handle thread
7692 hops when a software single step has completed. Let context_switch
7693 handle flushing the frame cache.
7695 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7697 * NEWS: Mention target descriptions, "set tdesc filename",
7698 "unset tdesc filename", "show tdesc filename", and
7699 qXfer:features:read.
7700 * arch-utils.c (choose_architecture_for_target): New function.
7701 (gdbarch_info_fill): Call it.
7702 * target-descriptions.c (struct property): Make members non-const.
7703 (struct target_desc): Add arch member.
7704 (target_description_filename): New variable.
7705 (target_find_description): Try via XML first.
7706 (tdesc_architecture): New.
7707 (free_target_description, make_cleanup_free_target_description): New.
7708 (set_tdesc_property): Call xstrdup.
7709 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7710 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7711 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7712 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7713 * target-descriptions.h (tdesc_architecture)
7714 (make_cleanup_free_target_description, set_tdesc_architecture): New
7716 * Makefile.in (SFILES): Add xml-tdesc.c.
7717 (COMMON_OBS): Add xml-tdesc.o.
7718 (target-descriptions.o): Update.
7719 (xml-tdesc.o): New rule.
7720 * xml-tdesc.c, xml-tdesc.h: New files.
7721 * remote.c (PACKET_qXfer_features): New enum.
7722 (remote_protocol_features): Add qXfer:features:read.
7723 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7724 (_initialize_remote): Register qXfer:features:read.
7725 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7726 * features/gdb-target.dtd: New file.
7728 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7730 * copyright.sh: Clarify error.
7732 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7734 * symtab.c (matching_bfd_sections): Fix VMA matching for
7737 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7739 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7742 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7744 Updated copyright notices for most files.
7746 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7748 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7750 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7752 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7754 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7756 * configure, config.in: Regenerate.
7757 * defs.h (debug_file_directory): Declare.
7758 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7759 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7760 relocate it if DEBUGDIR_RELOCATABLE.
7761 * symfile.c (debug_file_directory): Make non-static.
7762 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7763 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7764 (_initialize_symfile): Don't initialize debug_file_directory here.
7766 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7768 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7771 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7773 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7774 frame_unwind_register to recurse.
7775 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7776 (alpha_heuristic_frame_prev_register): Likewise.
7777 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7778 * m32c-tdep.c (m32c_prev_register): Likewise.
7779 * frame.c (frame_register_unwind_location): Remove FIXME.
7781 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7782 Eli Zaretskii <eliz@gnu.org>
7784 * copyright.sh: New file.
7786 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7788 * configure.ac: Check for XML_StopParser.
7789 * xml-support.c (gdb_xml_body_text): Check for an error.
7790 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7791 (gdb_xml_end_element_wrapper): Likewise.
7792 * config.in, configure: Regenerated.
7794 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7796 * varobj.c (install_new_value): Always update print_value.
7797 (value_get_print_value): Immediately return NULL for missing
7800 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7802 * configure.ac: Tighten pattern for extracting value of
7803 DEPRECATED_TM_FILE from the target makefile fragment.
7804 * configure: Regenerated.
7806 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7808 * linux-nat.c (struct simple_pid_list): Add status.
7809 (add_to_pid_list): Record the PID's status.
7810 (linux_record_stopped_pid): Likewise. Make static.
7811 (pull_pid_from_list): Return the saved status.
7812 (linux_nat_handle_extended): Deleted.
7813 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7814 Make static. Handle non-SIGSTOP for a new thread's first signal.
7815 (flush_callback): Handle unexpected pending signals.
7816 (linux_nat_wait): Update calls to changed functions.
7817 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7818 Remove prototypes for newly static functions.
7820 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7822 * gdbarch.sh (value_from_register): New gdbarch function.
7823 * gdbarch.c, gdbarch.h: Regenerate.
7824 * findvar.c (default_value_from_register): New function.
7825 (value_from_register): Use gdbarch_value_from_register.
7826 * value.h (default_value_from_register): Declare.
7827 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7828 spu_value_to_register): Remove.
7829 (spu_value_from_register): New function.
7830 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7831 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7832 Call set_gdbarch_value_from_register.
7833 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7834 s390_value_to_register): Remove.
7835 (s390_value_from_register): New function.
7836 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7837 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7838 Call set_gdbarch_value_from_register.
7840 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7842 * NEWS: Add "set sysroot" and "show sysroot".
7843 * solib.c (solib_absolute_prefix): Delete. Replace
7844 all uses with gdb_sysroot.
7845 (_initialize_solib): Add "set sysroot" and "show sysroot".
7846 Make "solib-absolute-prefix" an alias to it.
7848 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7850 * frame.c (get_frame_register_bytes): New function.
7851 (put_frame_register_bytes): Likewise.
7852 * frame.h (get_frame_register_bytes): Declare.
7853 (put_frame_register_bytes): Likewise.
7854 * findvar.c (value_from_register): Always construct lval_register
7855 values. Use get_frame_register_bytes.
7856 * valops.c (value_assign): Use get_frame_register_bytes and
7857 put_frame_register_bytes.
7859 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7861 * MAINTAINERS: Update Stan Shebs' email address.
7863 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7865 * ada-lang.c (is_known_support_routine): Improve the implementation.
7867 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7869 * ada-lang.c: Add include of source.h.
7870 (is_known_support_routine): Improve the check verifying that the file
7871 associated to this frame exists.
7872 * Makefile.in (ada-lang.o): Add dependency on source.h.
7874 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7876 * ax-general.c (ax_const_l): Select proper opcode for the given
7879 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7881 * varobj.c (c_value_of_root): Don't select frame if variable
7882 object is out of scope.
7884 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7886 * varobj.c (struct varobj): New member print_value.
7887 (install_new_value): Compare last printed value with current one
7888 instead of contents.
7889 (new_variable): Initialize var->print_value to NULL.
7890 (free_variable): Free var->print_value.
7891 (value_get_print_value): New function derived from
7892 c_value_of_variable.
7893 (c_value_of_variable): Use value_get_print_value.
7895 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7897 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7899 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7901 * NEWS: Add entries for new catch commands.
7903 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7905 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7906 (add_partial_symbol): Correct identification of external references.
7907 (process_structure_scope): Likewise.
7908 (read_partial_die): Handle DW_AT_byte_size attribute.
7910 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7912 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7914 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7916 * varobj.c (get_type_deref): Fix variable objects for references to
7919 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7921 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7924 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7926 * memory-map.c (struct_memory_map_parsing_data): Remove most
7927 members. Make property_name an array.
7928 (free_memory_map_parsing_data, memory_map_start_element)
7929 (memory_map_end_element, memory_map_character_data): Delete.
7930 (memory_map_start_memory, memory_map_end_memory)
7931 (memory_map_start_property, memory_map_end_property): New functions.
7932 (property_attributes, memory_children, memory_type_enum)
7933 (memory_attributes, memory_map_children, memory_map_elements): New.
7934 (parse_memory_map): Rewrite.
7935 * xml-support.c (debug_xml): New.
7936 (xml_get_required_attribute, xml_get_integer_attribute)
7937 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7939 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7940 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7941 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7942 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7943 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7944 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7945 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7947 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7948 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7949 (enum gdb_xml_element_flag, struct gdb_xml_element)
7950 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7951 (struct gdb_xml_enum): New.
7952 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7953 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7954 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7955 (xml_get_required_attribute, xml_get_integer_attribute)
7956 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7957 * Makefile.in (xml_support_h, xml-support.o): Update.
7959 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7961 * Makefile.in (eval.o): Update dependencies.
7962 * eval.c: Include "ui-out.h" and "exceptions.h".
7963 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7964 Use value_zero if an error occurs when avoiding side effects.
7965 * varobj.c (c_value_of_root): Initialize new_val.
7967 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7969 * varobj.c (varobj_list_children): Stop if the number of children is
7971 (c_number_of_children):
7973 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7975 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7976 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7977 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7978 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7979 sizeof, instead of hardcoded constants.
7981 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7983 * CONTRIBUTE: Use sourceware.org.
7985 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7987 * buildsym.c (start_subfile): Handle producer.
7988 (record_producer): New function.
7989 * buildsym.h (struct subfile): Include producer.
7990 (record_producer): New prototype.
7991 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7992 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7993 armcc_cfa_offsets_reversed.
7994 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7995 (dwarf2_frame_find_quirks): New function.
7996 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7997 (decode_frame_entry_1): Record the CIE version. Record the
7998 augmentation. Skip armcc augmentations.
7999 * dwarf2read.c (read_file_scope): Save the producer.
8000 * symtab.h (struct symtab): Rename unused version member to
8003 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8005 * configure.ac (build_warnings): Use -Wall and
8006 -Wdeclaration-after-statement.
8007 * configure: Regenerated.
8009 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8011 Simplify access to variours properties of child
8012 variable objects in C.
8013 * varobj.c (value_struct_element_index): New function.
8014 (c_describe_child): New function.
8015 (c_name_of_child, c_value_of_child)
8016 (c_type_of_child): Rewrite to use c_describe_child.
8018 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8021 * varobj.c: Include "vec.h".
8022 (varobj_p): New typedef, declare vector of those.
8023 (struct varobj): Use vector for the 'children' member.
8024 (child_exists): Remove.
8025 (save_child_in_parent): Remove.
8026 (remove_child_from_parent): Remove.
8027 (struct varobj_child): Remove.
8028 (struct vstack): Remove.
8029 (vpush, vpop): Remove.
8030 (varobj_list_children): Adjust to work work vector.
8031 (varobj_update): Likewise. Use vectors for
8032 working stack and result.
8033 (delete_variable_1): Likewise.
8034 * Makefile.in (varobj.o): Update dependencies.
8036 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8038 Port from Apple's version.
8040 * varobj.c (type_changeable): Rename to...
8041 (varobj_value_is_changeable_p): ...this. Adjust all callers.
8042 (is_root_p): New function. Use it everywhere.
8044 2007-01-04 Jim Blandy <jimb@codesourcery.com>
8046 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
8049 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8051 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
8053 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8055 * hpread.c (hpread_type_lookup): Fix compilation failure.
8057 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
8059 * NEWS: New port to S+core.
8060 * MAINTAINERS (Write After Approval, Responsible Maintainers):
8063 * Makefile.in: Add dependencies for S+core files.
8064 * configure.tgt (score*, score-*-*): Add S+core target.
8065 * config/score/embed.mt: New file.
8066 * score-tdep.c: New file.
8067 * score-tdep.h: New file.
8069 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8071 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
8072 the appropriate type rather than a bogus void type.
8074 2007-01-04 Joel Brobecker <brobecker@adacore.com>
8076 * ada-lang.h (ada_find_printable_frame): Remove.
8077 (ada_exception_catchpoint_p, ada_decode_exception_location)
8078 (ada_decode_assert_location): Add declaration.
8079 * ada-lang.c: Add include of annotate.h and valprint.h.
8080 (exception_catchpoint_kind): New enum.
8081 (function_name_from_pc, is_known_support_routine)
8082 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
8083 (ada_exception_name_addr_1, ada_exception_name_addr)
8084 (print_it_exception, print_one_exception, print_mention_exception)
8085 (print_it_catch_exception, print_one_catch_exception)
8086 (print_mention_catch_exception, catch_exception_breakpoint_ops)
8087 (print_it_catch_exception_unhandled)
8088 (print_one_catch_exception_unhandled)
8089 (print_mention_catch_exception_unhandled, print_it_catch_assert)
8090 (print_one_catch_assert, print_mention_catch_assert)
8091 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
8092 (ada_get_next_arg, catch_ada_exception_command_split)
8093 (ada_exception_sym_name, ada_exception_sym_name)
8094 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
8095 (ada_parse_catchpoint_condition, ada_exception_sal)
8096 (ada_decode_exception_location)
8097 (ada_decode_assert_location): New function.
8098 (catch_exception_unhandled_breakpoint_ops): New global variable.
8099 (catch_assert_breakpoint_ops): New global variable.
8100 * breakpoint.c: Add include of ada-lang.h.
8101 (print_one_breakpoint): Do not print the condition for Ada
8102 exception catchpoints.
8103 (create_ada_exception_breakpoint): New function.
8104 (catch_ada_exception_command, catch_assert_command): New function.
8105 (catch_command_1): Add support for the new "catch exception" and
8106 "catch assert" commands.
8107 (_initialize_breakpoint): Add help description for the new catch
8109 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
8111 (breakpoint.o): Add dependency on ada-lang.h.
8113 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
8115 * coffread.c (cs_to_section): If bfd_section is found, always
8116 return its section index.
8117 (coff_symtab_read): Determine the minimal_symbol_type using the
8120 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8121 Daniel Jacobowitz <dan@codesourcery.com>
8123 * Makefile.in (top.o): Update.
8124 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
8125 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
8126 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
8128 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
8130 2007-01-03 Mark Kettenis <kettenis@gnu.org>
8132 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
8133 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
8135 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8137 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
8138 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
8139 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
8140 greater than or equal to zero.
8141 * m2-typeprint.c (m2_array): Likewise.
8142 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
8143 * gdbtypes.c (copy_type_recursive): Correct == typo.
8144 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
8145 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
8147 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
8148 (default_macro_scope): Remove unused variable.
8149 * prologue-value.h (pv_area_find_reg): Don't name an argument
8151 * remote-fileio.c (remote_fio_func_map): Add missing braces.
8152 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
8154 (cleanup_sigint_signal_handler): Remove casts.
8155 * valprint.c (val_print): Use a volatile local for the modified
8157 * varobj.c (languages): Remove extra array dimension.
8158 (varobj_create): Correct access to languages array.
8159 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
8161 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
8162 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
8163 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
8164 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
8165 (mi_cmd_data_write_memory): Likewise.
8166 * signals/signals.c (target_signal_to_string): Cast to int before
8168 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
8171 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8173 * NEWS: Mention pointer to member improvements.
8174 * Makefile.in (gnu-v3-abi.o): Delete special rule.
8175 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
8176 * ada-valprint.c (ada_print_scalar): Update for new type codes.
8177 * c-typeprint.c (c_print_type): Update for new type codes.
8178 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
8179 (c_type_print_base): Likewise.
8180 (c_type_print_args): Rewrite.
8181 * c-valprint.c (c_val_print): Update for new type codes. Remove
8182 support for references to members. Treat methods like functions.
8183 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
8184 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
8185 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
8186 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
8187 (struct cp_abi_ops): Add corresponding members.
8188 * cp-valprint.c (cp_print_class_method): Delete.
8189 (cp_find_class_member): New function.
8190 (cp_print_class_member): Use it. Simplify support for bogus
8192 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
8193 lookup_methodptr_type.
8194 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
8195 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
8196 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
8198 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
8199 references returned by user defined operators.
8200 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
8201 (f_type_print_varspec_suffix): Remove support for member pointers.
8202 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
8204 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
8205 (lookup_methodptr_type): New.
8206 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
8207 (recursive_dump_type): Update for new types.
8208 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
8209 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
8210 (lookup_memberptr_type, lookup_methodptr_type)
8211 (smash_to_memberptr_type): New prototypes.
8212 (smash_to_method_type): Formatting fix.
8213 (lookup_member_type, smash_to_member_type): Delete prototypes.
8214 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
8215 Do not rely on debug information for the vptr or the method's
8216 enclosing type. Handle function descriptors for IA64.
8217 (gnuv3_virtual_fn_field): Rewrite using the new functions.
8218 (gnuv3_find_method_in, gnuv3_print_method_ptr)
8219 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
8220 (gnuv3_method_ptr_to_value): New.
8221 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
8222 * hpread.c (hpread_type_lookup): Update for new types.
8223 * infcall.c (value_arg_coerce): Likewise.
8224 * m2-typeprint.c (m2_print_type): Remove explicit support
8225 for member pointers.
8226 * m2-valprint.c (m2_val_print): Likewise.
8227 * p-typeprint.c (pascal_type_print_varspec_prefix)
8228 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
8229 * p-valprint.c (pascal_val_print): Likewise.
8230 (pascal_object_print_class_method, pascal_object_print_class_member):
8232 * p-lang.h (pascal_object_print_class_method)
8233 (pascal_object_print_class_member): Delete prototypes.
8234 * stabsread.c (read_type): Update for new types.
8235 * typeprint.c (print_type_scalar): Likewise.
8236 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
8237 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
8238 argument. Construct a pointer to member if the address of a
8239 function or data member is requested.
8240 (value_cast_pointers): Don't modify the input value.
8241 (value_cast): Adjust pointer to member handling for new types.
8242 Allow null pointer to member constants. Don't modify the input
8244 (value_ind): Remove pointer to member check. Handle function
8245 descriptors for function pointers.
8246 (value_struct_elt, value_find_oload_method_list, check_field):
8247 Remove pointer to member checks.
8248 * value.c (unpack_long): Allow pointers to data members.
8249 (value_from_longest): Allow member pointers.
8250 * value.h (value_aggregate_elt): Add want_address.
8251 * varobj.c (c_variable_editable): Remove check for members.
8252 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
8253 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
8255 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
8256 * c-lang.h (cp_print_class_method): Delete prototype.
8257 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
8258 * mips-tdep.c (mips_gdbarch_init): Likewise.
8259 * gdbarch.c, gdbarch.h: Regenerated.
8261 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8263 * rs6000-tdep.c (rs6000_use_struct_convention)
8264 (rs6000_extract_return_value, rs6000_store_return_value)
8265 (rs6000_extract_struct_value_address): Remove.
8266 (rs6000_return_value): New function.
8267 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
8268 store_return_value, deprecated_extract_struct_value_address and
8269 deprecated_use_struct_convention. Use rs6000_return_value
8272 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
8274 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
8275 -display-disable, -display-enable, -display-insert and
8278 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8280 * breakpoint.c (remove_breakpoint): Remove dead code.
8282 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
8284 * varobj.c: Include block.h.
8285 (c_value_of_root): Check scope within nested statements.
8287 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8289 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
8290 regcache_cooked_write_signed instead of
8291 deprecated_write_register_bytes.
8293 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8295 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
8297 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8299 Followed the Start of New Year Procedure:
8300 * ChangeLog-2006: New file, containing all the entries for 2006.
8301 * ChangeLog: Removed all 2006 entries, and changed the reference
8302 to the previous ChangeLog to point to ChangeLog 2006.
8303 * top.c (print_gdb_version): Update copyright year.
8305 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8307 * Makefile.in (remote-sds.o): Remove.
8308 * remote-sds.c: Delete.
8310 For older changes see ChangeLog-2006.
8316 version-control: never