1 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
3 * avr-tdep.c (avr_return_value): New function.
4 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
5 set_gdbarch_extract_return_value.
7 * fvr-tdep.c (frv_return_value): New function.
8 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
9 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
10 and set_gdbarch_deprecated_use_struct_convention.
12 * ia64-tdep.c (ia64_use_struct_convention): Make static.
13 Add check for structure, union, or array types.
14 (ia64_extract_return_value): Make static.
15 (ia64_store_return_value): Make static. Support multi-word values.
16 (ia64_return_value): New function.
17 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
18 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
19 and set_gdbarch_deprecated_use_struct_convention.
21 2007-10-12 Joel Brobecker <brobecker@adacore.com>
23 * solib-target.c (solib_target_parse_libraries)
24 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
26 2007-10-12 Jim Blandy <jimb@codesourcery.com>
28 * serial.h (struct serial_ops): Document read_prim to return zero
30 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
31 read_prim returns zero, not SERIAL_TIMEOUT.
33 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
35 * alpha-mdebug-tdep.c: Include "gdb_string.h".
36 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
37 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
38 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
40 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
41 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
42 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
43 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
44 * config/alpha/tm-alpha.h: Remove file.
46 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
48 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
49 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
51 * config/pa/tm-hppa.h: Delete file.
52 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
53 * config/pa/hppahpux.mt: Likewise.
54 * config/pa/hppa.mt: Likewise.
55 * config/pa/linux.mt: Likewise.
56 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
58 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
60 * config/arm/nm-nbsdaout.h: Remove file.
61 * config/nm-nbsdaout.h: Likewise.
62 * config/nm-nbsd.h: Likewise.
64 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
66 * block.h (struct block): Remove "gcc_compile_flag" member.
67 (BLOCK_GCC_COMPILED): Remove.
68 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
69 * buildsym.c (finish_block): Do not set it.
70 * symmisc.c (dump_symtab_1): Do not dump it.
72 * value.h (using_struct_return): Remove "gcc_p" argument.
73 * value.c (using_struct_return): Likewise.
74 * eval.c (evaluate_subexp_standard): Adapt callers.
75 * infcall.c (call_function_by_hand): Likewise.
76 * stack.c (return_command): Likewise.
77 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
79 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
80 * gdbarch.c, gdbarch.h: Regenerate.
81 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
82 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
83 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
84 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
85 (push_dummy_code, call_function_by_hand): Adapt callers.
87 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
89 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
90 (finish_command_continuation, finish_command): Adapt callers.
92 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
94 * infcall.c (call_function_by_hand): Remove special handling
95 for HP aCC compiled code.
97 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
99 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
100 reference. Fix endianness bugs.
101 (cris_reg_struct_has_address): Remove.
102 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
103 and set_gdbarch_deprecated_use_struct_convention calls.
105 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
106 * gdbarch.c, gdbarch.h: Regenerate.
107 * infcall.c (call_function_by_hand): Remove handling of
108 deprecated_reg_struct_has_addr.
110 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
111 Kazu Hirata <kazu@codesourcery.com>
113 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
114 checking watchpoint resources.
116 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
118 * memattr.c (inaccessible_by_default): Change the initial
121 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
124 * coffread.c (read_one_sym): Check for read errors.
126 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
128 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
129 instead of "Linux 2.6.19" in comment.
130 (linux_xfer_partial): Use "GNU/Linux target" instead of
131 "Linux target" in comment.
132 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
133 (m68k_linux_get_sigtramp_info): Likewise.
135 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
137 * MAINTAINERS (language support): List Joel and Paul as
140 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
142 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
144 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
145 not set DEPRECATED_TM_FILE.
146 * config/arm/tm-arm.h: Delete file.
148 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
150 * MAINTAINERS (Write After Approval): Add self.
152 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
154 * buildsym.c (record_line): Remove empty lines followed by
155 end-of-sequence markers.
157 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
159 * configure.tgt: Recognize fido-*-elf.
161 2007-10-10 Joel Brobecker <brobecker@adacore.com>
165 2007-10-10 Markus Deuling <deuling@de.ibm.com>
167 * stack.c (print_frame_args, frame_info, return_command): Use
168 get_regcache_arch or get_frame_arch to get at the current architecture
169 by regcache or by frame, respectively.
171 2007-10-10 Markus Deuling <deuling@de.ibm.com>
173 * rs6000-nat.c (fetch_register, store_register)
174 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
175 get_regcache_arch to get at the current architecture by regcache.
177 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
178 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
179 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
180 current_gdbarch by gdbarch.
181 (rs6000_skip_trampoline_code, rs6000_register_to_value)
182 (rs6000_value_to_register): Use get_frame_arch to get at the current
183 architecture by frame_info.
185 2007-10-10 Markus Deuling <deuling@de.ibm.com>
187 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
188 get_regcache_arch to get at the current architecture by regcache.
190 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
191 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
192 get_regcache_arch to get at the current architecture by regcache.
194 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
195 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
196 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
197 current architecture by regcache.
199 2007-10-10 Markus Deuling <deuling@de.ibm.com>
201 * remote-mips.c (mips_wait, mips_fetch_registers)
202 (mips_store_registers): Use get_regcache_arch to get at the
203 current architecture by regcache.
205 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
206 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
207 get at the current architecture by regcache.
208 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
209 architecture by frame_info.
211 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
212 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
213 the current architecture by regcache.
215 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
216 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
217 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
218 current architecture by frame_info.
219 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
220 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
221 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
222 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
223 get at the current architecture by regcache.
225 * mips-linux-nat.c (mips_linux_register_addr)
226 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
227 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
228 (mips64_linux_regsets_fetch_registers)
229 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
230 the current architecture by regcache.
232 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
233 get at the current architecture by frame_info.
235 2007-10-10 Markus Deuling <deuling@de.ibm.com>
237 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
238 current architecture by regcache.
239 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
240 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
241 (mips_stub_frame_cache, mips_read_fp_register_single)
242 (mips_read_fp_register_double, mips_print_fp_register)
243 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
244 at the current architecture by frame_info.
245 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
246 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
247 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
248 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
249 (mips_o32_push_dummy_call, mips_o32_return_value)
250 (mips_o64_push_dummy_call, mips_o64_return_value)
251 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
254 2007-10-10 Markus Deuling <deuling@de.ibm.com>
256 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
257 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
258 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
259 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
260 (xtensa_register_write_masked, xtensa_register_read_masked)
261 (xtensa_supply_gregset, xtensa_store_return_value)
262 (xtensa_extract_return_value): Use get_regcache_arch to get at the
263 current architecture by regcache.
264 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
265 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
266 architecture by frame_info.
268 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
270 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
271 (thumb_analyze_prologue): Move pv_area_store_would_trash call
272 out of loop. Do not set cache->frameoffset.
273 (arm_scan_prologue): Use prologue-value mechanism. Do not set
274 frameoffset. Simplify framesize.
275 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
277 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
279 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
281 * target.c (update_current_target): Call setup_target_debug.
282 (push_target): Do not call it here.
284 2007-10-09 Michael Snyder <msnyder@specifix.com>
286 * MAINTAINERS: Update my email address.
288 2007-10-09 Markus Deuling <deuling@de.ibm.com>
290 * xtensa-tdep.c: Replace following current-gdbarch based macros by
292 (xtensa_pseudo_register_read)
293 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
294 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
295 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
296 (xtensa_pseudo_register_read)
297 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
298 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
299 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
300 (xtensa_frame_prev_register): NUM_AREGS.
301 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
302 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
303 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
304 (xtensa_supply_gregset, xtensa_frame_cache)
305 (xtensa_frame_prev_register): WS_REGNUM.
306 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
307 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
308 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
309 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
310 (xtensa_register_reggroup_p): REGMAP.
311 (call0_track_op): LITBASE_REGNUM.
312 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
313 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
314 (xtensa_frame_prev_register, AREG_NUMBER)
315 (xtensa_register_type): AR_BASE.
316 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
317 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
318 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
319 (xtensa_frame_cache, xtensa_frame_prev_register)
320 (xtensa_extract_return_value, xtensa_store_return_value)
321 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
322 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
323 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
324 (xtensa_frame_prev_register, xtensa_push_dummy_call)
325 (call0_frame_cache): A1_REGNUM.
326 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
327 (xtensa_push_dummy_call): A4_REGNUM.
328 (ARGS_FIRST_REG): A6_REGNUM.
329 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
330 (xtensa_frame_prev_register): A15_REGNUM.
331 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
332 them in the appropriate source file:
333 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
334 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
335 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
336 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
337 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
338 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
339 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
340 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
341 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
342 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
343 A13_REGNUM, A14_REGNUM, A15_REGNUM.
345 2007-10-09 Markus Deuling <deuling@de.ibm.com>
347 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
348 the current architecture by frame_info.
349 (h8300_frame_prev_register
350 (h8300_print_register): Replace current_gdbarch by gdbarch.
351 (h8300_print_registers_info, h8300_register_type)
352 (h8300_register_type): Likewise.
354 2007-10-09 Markus Deuling <deuling@de.ibm.com>
356 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
357 the current architecture by regcache.
358 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
359 (i386_linux_fetch_inferior_registers)
360 (i386_linux_store_inferior_registers): Likewise.
361 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
362 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
363 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
364 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
365 (i386_extract_return_value, i386_store_return_value): Likewise.
366 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
367 the current architecture by frame_info.
368 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
369 (i386_register_to_value, i386_value_to_register): Likewise.
371 2007-10-09 Markus Deuling <deuling@de.ibm.com>
373 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
374 the current architecture by regcache.
375 (monitor_store_register, monitor_store_registers): Likewise.
377 2007-10-09 Markus Deuling <deuling@de.ibm.com>
379 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
380 the current architecture by regcache.
382 2007-10-09 Markus Deuling <deuling@de.ibm.com>
384 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
387 2007-10-09 Markus Deuling <deuling@de.ibm.com>
389 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
390 architecture by frame.
391 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
392 (inside_main_func, frame_sp_unwind): Likewise.
394 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
396 * solib-svr4.c (enable_break): Add the dynamic linker also if
399 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
401 * MAINTAINERS (Write After Approval): Add self.
403 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
405 * stabsread.c (read_huge_number): Initialize local variable to 0.
407 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
409 * p-lang.h (pascal_main_name): Add declaration.
410 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
411 (GPC_MAIN_PROGRAM_NAME_2): New constants.
412 (pascal_main_name): New function.
413 * symtab.c: Include p-lang.h.
414 (find_main_name): Add call to pascal_main_name.
415 * Makefile.in (symtab.o): Add dependency on p-lang.h.
417 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
419 * stabsread.c (read_huge_number): Fix handling of octal
420 representation when the bit width is known.
421 (read_range_type): Record unsigned integral types with their size,
422 when the type size is known.
424 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
426 * MAINTAINERS (Write After Approval): Add self.
428 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
430 * breakpoint.c (print_one_breakpoint_location): ARI fix:
431 Replace asprintf by xstrprintf.
433 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
435 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
436 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
438 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
440 * linux-fork.c: Move "gdb_wait.h" include back to the position of
441 <sys/wait.h> include before last commit.
443 2007-10-08 Maciej W. Rozycki <macro@mips.com>
445 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
447 2007-10-08 Markus Deuling <deuling@de.ibm.com>
449 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
450 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
451 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
452 (store_regs_user_thread, store_regs_kernel_thread): Use
453 get_regcache_arch or get_frame_arch to get at the current architecture
454 by regcache or by frame, respectively.
456 2007-10-08 Markus Deuling <deuling@de.ibm.com>
458 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
459 (sh64_pseudo_register_read, sh64_pseudo_register_write)
460 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
461 (sh64_print_register, sh64_media_print_registers_info)
462 (sh64_compact_print_registers_info, sh64_unwind_sp)
463 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
464 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
465 (sh64_frame_prev_register): Use FRAME to recognize current
468 2007-10-08 Markus Deuling <deuling@de.ibm.com>
470 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
471 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
472 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
473 current_gdbarch by gdbarch.
474 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
475 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
476 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
477 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
478 recognize current architecture.
480 2007-10-08 Markus Deuling <deuling@de.ibm.com>
482 * remote.c (init_remote_state, fetch_register_using_p)
483 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
484 (store_register_using_P, store_registers_using_G)
485 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
486 get at the current architecture by regcache or by frame, respectively.
488 2007-10-08 Markus Deuling <deuling@de.ibm.com>
490 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
491 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
492 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
493 get_regcache_arch or get_frame_arch to get at the current architecture
494 by regcache or by frame, respectively.
495 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
496 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
497 (store_register, old_store_inferior_registers, supply_gregset)
498 (supply_fpregset, fill_fpregset): Likewise.
499 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
500 Replace current_gdbarch by gdbarch.
502 2007-10-08 Markus Deuling <deuling@de.ibm.com>
504 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
505 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
506 get_frame_arch to get at the current architecture by regcache or by
509 2007-10-08 Markus Deuling <deuling@de.ibm.com>
511 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
512 Replace current_gdbarch by gdbarch.
513 * ia64-tdep.c (ia64_frame_prev_register
514 (ia64_sigtramp_frame_prev_register)
515 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
516 get_frame_arch to get at the current architecture by regcache or by
518 * ia64-linux-nat.c (ia64_linux_fetch_register)
519 (ia64_linux_fetch_registers, ia64_linux_store_register)
520 (ia64_linux_store_registers): Likewise.
522 2007-10-08 Markus Deuling <deuling@de.ibm.com>
524 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
525 current_gdbarch by gdbarch.
526 * hppa-linux-nat.c (fetch_register, store_register)
527 (hppa_linux_fetch_inferior_registers)
528 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
529 get_frame_arch to get at the current architecture by regcache or by
531 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
532 (hppa_hpux_unwind_adjust_stub): Likewise.
533 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
534 (hppa_hpux_fetch_inferior_registers)
535 (hppa_hpux_store_inferior_registers): Likewise.
537 2007-10-08 Markus Deuling <deuling@de.ibm.com>
539 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
540 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
541 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
542 or get_frame_arch to get at the current architecture by regcache or by
544 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
545 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
546 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
547 current_gdbarch by gdbarch.
549 2007-10-08 Markus Deuling <deuling@de.ibm.com>
551 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
552 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
553 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
554 get at the current architecture by regcache or by·frame, respectively.
555 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
558 2007-10-08 Markus Deuling <deuling@de.ibm.com>
560 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
561 Use get_regcache_arch or get_frame_arch to get at the current
562 architecture by regcache or by frame, respectively.
563 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
564 * amd64-nat.c (amd64_supply_native_gregset)
565 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
567 2007-10-08 Markus Deuling <deuling@de.ibm.com>
569 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
571 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
572 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
573 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
574 get_frame_arch to get at the current architecture by regcache or by
576 * alpha-nat.c (fetch_osf_core_registers): Likewise.
578 2007-10-08 Markus Deuling <deuling@de.ibm.com>
580 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
581 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
582 current_gdbarch by gdbarch.
583 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
585 2007-10-08 Markus Deuling <deuling@de.ibm.com>
587 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
588 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
589 * regcache.c (regcache_raw_write): Use get_regcache_arch or
590 get_frame_arch to get at the current architecture by regcache or by
593 2007-10-08 Markus Deuling <deuling@de.ibm.com>
595 * findvar.c (value_of_register, locate_var_value): Use
596 get_regcache_arch or get_frame_arch to get at the current architecture
597 by regcache or by frame, respectively.
598 * findvar.c (default_value_from_register, value_from_register): Replace
599 current_gdbarch by gdbarch.
601 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
603 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
605 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
607 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
608 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
610 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
612 * remote.c (get_offsets): Only call free_symfile_segment_data if
615 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
617 * objc-exp.y: ARI fix: remove 4 PARAMS.
619 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
621 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
622 news. Mention XML support for M68K in GDB 6.7.
624 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
626 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
628 (init_vector_type): Use builtin_type_int32.
630 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
632 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
633 size to enable bi-arch generate-core-file support.
635 2007-10-02 Markus Deuling <deuling@de.ibm.com>
637 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
639 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
641 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
643 * tui/tui-win.c (tui_initialize_win): New function for
644 initializing tui's SIGWINCH signal handler.
645 * tui/tui-win.h (tui_initialize_win): Declare.
647 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
649 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
650 pointer to uintptr_t before casting to CORE_ADDR.
652 2007-10-02 Markus Deuling <deuling@de.ibm.com>
654 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
656 2007-10-02 Mark Mitchell <mark@codesourcery.com>
658 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
659 * ser-mingw.c (enum select_thread_state): New type.
660 (struct ser_console_state): Add have_started and thread_state.
661 (select_thread_wait): New function.
662 (thread_fn_type): New type.
663 (create_select_thread): New function.
664 (destroy_select_thread): Likewise.
665 (start_select_thread): Likewise.
666 (stop_select_thread): Likewise.
667 (console_select_thread): Use new functions.
668 (pipe_select_thread): Likewise.
669 (file_select_thread): Likewise.
670 (ser_console_wait_handle): Likewise.
671 (ser_console_done_wait_handle): Likewise.
672 (ser_console_close): Likewise.
673 (free_pipe_state): Likewise.
674 (pipe_wait_handle): Likewise.
675 (pipe_done_wait_handle): Likewise.
676 (struct net_windows_state): Derive from ser_console_state.
677 (net_windows_select_thread): Use new functions.
678 (net_windows_wait_handle): Likewise.
679 (net_windows_done_wait_handle): Likewise.
680 (net_windows_close): Likewise.
682 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
684 * inflow.c (terminal_ours_1): Remove useless line.
686 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
688 * mips-tdep.c (mips_read_fp_register_double): Correct check for
690 (mips_print_fp_register): Correct check for even FP registers.
691 (mips_virtual_frame_pointer): New function.
692 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
694 2007-09-30 Mike Frysinger <vapier@gentoo.org>
696 * value.h (lookup_only_internalvar): New prototype.
697 (create_internalvar): Likewise.
698 * value.c (lookup_only_internalvar): New function.
699 (create_internalvar): Likewise.
700 (lookup_internalvar): Use new lookup_only_internalvar and
701 create_internalvar functions.
702 * parse.c (write_dollar_variable): Look up $ symbols in internal
703 table first rather than last.
705 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
707 * linux-nat.c (linux_nat_new_thread): New variable.
708 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
709 linux_nat_switch_fork.
710 (lwp_list): Make public.
711 (add_lwp): Call linux_nat_new_thread.
712 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
714 (resume_callback): Clear lp->siginfo. Remove unused variable.
715 (linux_nat_resume): Assert that the LWP list is already initialized.
718 (stop_wait_callback, linux_nat_wait): Call it.
719 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
720 * linux-nat.h (struct lwp_info): Add siginfo.
721 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
724 * amd64-linux-nat.c (amd64_linux_dr): New.
725 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
726 (amd64_linux_dr_set): Take a PTID argument.
727 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
728 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
729 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
730 (amd64_linux_new_thread): New.
731 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
732 * i386-linux-nat.c (i386_linux_dr): New.
733 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
734 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
735 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
736 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
737 (i386_linux_new_thread): New.
738 (i386_linux_resume): Remove unnecessary PID check.
739 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
740 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
741 (fetch_debug_register, fetch_debug_register_pair): Delete.
742 (debug_registers): New.
743 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
744 ALL_LWPS and debug_registers.
745 (ia64_linux_new_thread): New.
746 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
747 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
748 * ppc-linux-nat.c (last_stopped_data_address): Delete.
749 (saved_dabr_value): New.
750 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
752 (ppc_linux_new_thread): New.
753 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
754 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
755 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
756 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
758 (s390_fix_watch_points): Take a PTID argument.
759 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
760 (_initialize_s390_nat): Call linux_nat_set_new_thread.
762 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
763 Jeff Johnston <jjohnstn@redhat.com>
765 * breakpoint.c (watchpoints_triggered): New.
766 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
767 Check watchpoint_triggered instead. Combine handling for software
768 and hardware watchpoints. Do not use target_stopped_data_address
769 here. Always check a watchpoint if its scope breakpoint triggers.
770 Do not stop for thread or overlay events. Improve check for
771 triggered watchpoints without a value change.
772 (watch_command_1): Insert the scope breakpoint first. Link the
773 scope breakpoint to the watchpoint.
774 * breakpoint.h (enum watchpoint_triggered): New.
775 (struct breakpoint): Add watchpoint_triggered.
776 (bpstat_stop_status): Update prototype.
777 (watchpoints_triggered): Declare.
778 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
779 (stepped_after_stopped_by_watchpoint): Delete.
780 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
781 local. Handle infwait_step_watch_state. Update calls to
782 bpstat_stop_status. Use watchpoints_triggered to check
784 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
785 (remote_stopped_data_address): Do not check it.
787 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
789 * configure.ac: Add $LIBINTL when testing libbfd.
790 * configure: Regenerated.
792 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
794 * NEW: Mention pending breakpoint changes and
795 support for breakpoints at multiple locations.
797 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
799 * arm-linux-tdep.c (arm_linux_software_single_step): New.
800 (arm_linux_init_abi): Use it.
801 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
803 * arm-tdep.h (arm_get_next_pc): Declare.
804 * Makefile.in (arm-linux-tdep.o): Update.
806 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
808 * varobj.c (install_new_value): Don't
809 call value_get_print_value when a value is
810 lazy. Update the print_value member in a
813 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
815 * breakpoint.c (create_breakpoint): Set
816 condition on each location, not on the first
817 location of breakpoint.
819 2007-09-26 Jim Blandy <jimb@codesourcery.com>
821 * remote.c (getpkt_sane): Fix error message. No animals were
822 harmed in the making of this debugger.
824 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
826 * p-typeprint.c: Fix 11 ARI reported problems.
827 (pascal_print_type): Fix 4 operator at end of line.
828 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
829 using strncmp function.
830 (pascal_type_print_base): Fix 2 operator at end of line.
831 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
832 using strncmp function.
835 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
838 dwarf2read.c (read_subroutine_type):
839 All pascal functions are prototyped.
841 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
844 p-valprint.c (pascal_val_print): correct current language check.
845 Also print array of char as strings.
848 2007-09-26 David Ung <davidu@mips.com>
849 Maciej W. Rozycki <macro@mips.com>
851 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
853 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
855 * p-exp.y: Fix 12 ARI reported problems.
856 (name_not_typename): Fix 2 operator at end of line issues.
857 (yylex): Fix 3 operator at end of line issues.
858 Replace 7 DEPRECATED_STREQ macros using strcmp function.
860 2007-09-25 David Ung <davidu@mips.com>
861 Maciej W. Rozycki <macro@mips.com>
863 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
864 rules return composite types in registers as appropriate.
866 2007-09-24 Jim Blandy <jimb@codesourcery.com>
868 * symfile.h (struct symfile_segment_data): Doc fixes.
869 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
870 Assert that we were passed some loaded segment addresses,
871 and that sections' segment numbers are valid.
872 Simplify offset calculation.
873 * remote.c (get_offsets): Clarify selection of relocate-by-segment
874 strategy, and set num_segments correctly. Delete redundant
875 assignments to do_sections.
877 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
879 * frame.c (get_prev_frame_1): Also check for PC in the same register.
881 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
883 * breakpoint.c (remove_sal): New.
884 (expand_line_sal_maybe): New.
885 (create_breakpoints): Call expand_line_sal_maybe.
886 (clear_command): Add comment.
887 (breakpoint_re_set_one): Call expand_line_sal_maybe.
888 * linespec.c (decode_indirect): Set explicit_pc to 1.
889 (decode_all_digits): Set explicit_line to 1.
890 (append_expanded_sal): New.
891 (expand_line_sal): New.
892 * linespec.h (expand_line_sal): Declare.
893 * symtab.c (init_sal): Initialize explicit_pc
895 * symtab.h (struct symtab_and_line): New fields
896 explicit_pc and explicit_line.
898 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
900 * infcall.c (call_function_by_hand): Handle language-specific
901 pass and return by reference.
903 * cp-abi.c (cp_pass_by_reference): New.
904 * cp-abi.h (cp_pass_by_reference): Declare.
905 (struct cp_abi_ops): Add pass_by_reference.
906 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
907 (init_gnuv3_ops): Set pass_by_reference.
909 * language.c (language_pass_by_reference): New.
910 (default_pass_by_reference): New.
911 (unknown_language_defn, auto_language_defn, local_language_defn): Add
912 default_pass_by_reference.
913 * langauge.h (struct language_defn): Add la_pass_by_reference.
914 (language_pass_by_reference, default_pass_by_reference): Declare.
915 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
916 * c-lang.c (c_language_defn, asm_language_defn)
917 (minimal_language_defn): Likewise.
918 (cplus_language_defn): Add cp_pass_by_reference.
919 * f-lang.c (f_language_defn): Add default_pass_by_reference.
920 * jv-lang.c (java_language_defn): Likewise.
921 * m2-lang.c (m2_language_defn): Likewise.
922 * objc-lang.c (objc_language_defn): Likewise.
923 * p-lang.c (pascal_language_defn): Likewise.
924 * scm-lang.c (scm_language_defn): Likewise
926 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
928 Allow a code breakpoint to have several locations
930 * breakpoint.h (enum enable_state): Remove the
931 bp_shlib_disabled enumerator.
932 (struct bp_location): New members shlib_disabled,
933 global_next, enabled and function_name.
934 Rename pending to condition_not_parsed.
936 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
937 (ALL_BP_LOCATIONS_SAFE): Likewise.
938 (breakpoint_enabled): Don't check for pending.
939 (condition_command): Free and update all locations of
941 (insert_bp_location): Adjust.
942 (software_breakpoint_inserted_here_p): Don't care
943 if breakpoint is enabled, as soon as it's inserted.
944 (print_it_typical): Print bpstat's location, not
945 bpstat's breakpoint's location.
946 (bpstat_stop_status): Iterate over all locations, not
948 (print_breakpoint_location): New.
949 (print_one_breakpoint): Renamed to
950 (print_one_breakpoint_location): ...this. Take
951 parameters to describe which location is being
952 printed. Modify code to properly print header
953 for several locations and individual locations.
954 (print_one_breakpoint): Print all locations.
955 (breakpoint_has_pc): New.
956 (describe_other_breakpoints): Use the above.
957 (check_duplicates): Renamed to...
958 (check_duplicates_for): .. this.
959 (check_duplicates): Use check_duplicates_for.
960 (allocate_bp_location): Adjust.
961 (set_raw_breakpoint_without_location): New,
962 extracted from set_raw_breakpoint.
963 (set_breakpoint_location_function): New.
964 (set_raw_breakpoint): Use
965 set_raw_breakpoint_without_location.
966 (make_breakpoint_permanent): Mark all locations
968 (disable_breakpoints_in_shlibs): Iterate over
970 (disable_breakpoints_in_unloaded_shlib): Likewise.
971 (re_enable_breakpoints_in_shlibs): Likewise.
972 (mention): Say "pending" when breakpoint has
973 zero locations. If breakpoint has more than one
975 (add_location_to_breakpoint): New.
976 (create_breakpoint): Accept symtabs_and_lines, not
977 symtab_and_line. Pass extra sals to
978 add_location_to_breakpoint.
979 (create_breakpoints): Pass symtabs_and_lines to
981 (break_command_1): Make pending breakpoints
983 (do_captured_breakpoint): Remove wrong allocation.
984 (clear_command): Iterate over all locations.
985 (unlink_locations_from_global_list): Renamed
986 from unlink_location_from_global_list. Remove
988 (delete_breakpoint): Remove all locations.
989 Iterate over all locations when deciding which
990 other location to re-enable.
991 (all_locations_are_pending): New.
992 (update_breakpoint_locations): Renamed from
993 update_breakpoint_location. Try to match old
994 and new locations using names of containing
996 (breakpoint_re_set_one): Adjust.
997 (find_location_by_number): New.
998 (disable_command): Allow disabling individual location.
999 (enable_command): Allow enabling individual location.
1000 * breakpoint.c: Adjust all uses of breakpoint's
1001 enable state to for bp_shlib_disabled change.
1003 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1005 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
1006 (resolve_pending_breakpoint): Remove.
1007 (re_enable_breakpoints_in_shlibs): Remove.
1008 (unlink_locations_from_global_list): New.
1009 (update_breakpoint_locations): New.
1010 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
1011 Use parse_condition and update_breakpoint_location to
1012 reset breakpoint. Ignore 'symbol not found' error from
1014 (breakpoint_re_set): Don't emit newline before the
1015 reason why breakpoint is not reset.
1016 (do_enable_breakpoint): Don't specially process pending
1018 (free_bp_location): New.
1019 (break_command_1): For pending breakpoints, initialize
1020 all fields of a sal with zeroes.
1021 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
1022 * infcmd.c (post_create_inferior): Don't call
1023 re_enable_breakpoints_in_shlibs.
1024 * infrun.c (handle_inferior_event): Likewise.
1025 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1026 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1027 * win32-nat.c (get_win32_debug_event): Likewise.
1029 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1031 * breakpoint.c (create_breakpoint): Split from
1032 create_breakpoints, implementing most of its logic.
1033 Take just a single sal, single address string and
1034 single condition. Do not take parsed condition at
1036 (create_breakpoints): Just call create_breakpoint
1038 (find_condition_and_thread): New.
1039 (break_command_1): Use find_condition_and_thread.
1040 Do not keep parsed conditions.
1041 (do_captured_breakpoint): Don't convert
1042 condition string to struct expression.
1044 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1046 * breakpoint.h (struct breakpoint): Move the cond
1048 (struct bp_location): Here.
1049 * breakpoint.c (condition_command, bpstat_stop_status)
1050 (print_one_breakpoint, allocate_bp_location)
1051 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
1052 (create_exec_event_catchpoint, create_breakpoints)
1053 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
1054 (create_ada_exception_breakpoint, set_breakpoint_sal)
1055 (delete_breakpoint, breakpoint_re_set_one): Adjust.
1056 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
1058 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
1060 Associate bp_stat with bp_location, not breakpoint.
1061 * breakpoint.h (breakpoint_at): Change type
1063 * breakpoint.c (bpstat_alloc): Take bp_location,
1065 (bpstat_find_breakpoint): Look at bpstat's location's
1066 owner, not at bpstat->breakpoint_at.
1067 (bpstat_find_step_resume_breakpoint): Likewise.
1068 (bpstat_num): Likewise.
1069 (print_it_typical): Likewise.
1070 (print_bp_stop_message): Likewise.
1071 (watchpoint_check): Likewise.
1072 (bpstat_what): Likewise.
1073 (bpstat_get_triggered_catchpoints): Likewise.
1074 (breakpoint_auto_delete): Likewise.
1075 (delete_breakpoint): Likewise.
1076 (bpstat_stop_status): Pass location, not breakpoint,
1077 to bpstat_alloc. Look at bpstat's location's
1078 owner, not at bpstat->breakpoint_at.
1080 2007-09-21 Jim Blandy <jimb@codesourcery.com>
1082 * macrotab.h (new_macro_table): Document that removing information
1083 from an obstack/bcache-managed macro table leaks memory.
1084 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
1085 that data is never freed in obstack/bcache-managed macro tables,
1086 just leak the storage.
1087 (macro_undef): If we're undefining a macro at exactly the same
1088 source location that we defined it, simply remove the definition
1091 2007-09-21 Joel Brobecker <brobecker@adacore.com>
1093 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
1094 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
1095 Adjust the struct sym_fns object accordingly by setting
1096 the new field to NULL.
1097 * xcoffread.c (aix_process_linenos): Make static.
1098 (xcoff_sym_fns): Set new field to aix_process_linenos.
1099 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
1100 by call to new the new sym_fns sym_read_linetable function.
1101 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
1102 * config/rs6000/tm-rs6000.h: Delete.
1104 2007-09-21 David Ung <davidu@mips.com>
1105 Maciej W. Rozycki <macro@mips.com>
1107 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
1108 rules do not treat composite types specially.
1110 2007-09-20 Maciej W. Rozycki <macro@mips.com>
1112 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
1113 (mips16_in_function_epilogue_p): Likewise.
1114 (mips_in_function_epilogue_p): Likewise.
1115 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
1117 2007-09-19 Joel Brobecker <brobecker@adacore.com>
1119 * configure.ac: Add check for "etext".
1120 * configure, config.in: Regenerate.
1121 * maint.c (TEXTEND): Only define if either _etext or etext
1123 Disable the profiling functionality if TEXTEND is not defined.
1125 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
1127 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
1128 address register. Correct the call to frame_id_build.
1129 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
1132 2007-09-18 Joel Brobecker <brobecker@adacore.com>
1134 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
1135 the linetable past the function end.
1137 2007-09-18 James E. Wilson <wilson@specifix.com>
1139 * MAINTAINERS: Update my email address.
1141 2007-09-18 Jerome Guitton <guitton@adacore.com>
1143 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
1144 (inf_ttrace_delete_dying_threads_callback): New function.
1145 (inf_ttrace_resume): After resuming the execution, iterate over
1146 the dying threads to delete them for the thread list.
1147 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
1148 mark the corresponding thread as dying instead of removing it
1149 from the thread list.
1150 (inf_ttrace_thread_alive): return 0 for dying threads.
1152 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1154 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
1155 that return_frame is not null.
1157 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1159 * solib-svr4.c: Add include of "auxv.h".
1160 (enable_break): Use the AT_BASE auxiliary entry if available.
1161 * Makefile.in (solib-svr4.o): Update dependencies.
1163 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1165 * NEWS: Create a new section for the next release branch.
1166 Rename the section of the current branch, now that it has
1169 2007-09-17 Jerome Guitton <guitton@adacore.com>
1171 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1172 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1174 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1176 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1177 * mi/mi-cmds.h (mi_cmd_list_features): New.
1178 * mi/mi-main.c (mi_cmd_list_features): New.
1180 2007-09-11 Joel Brobecker <brobecker@adacore.com>
1182 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1183 * version.in: Bump version to 6.7.50-20070911-cvs.
1185 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1187 * thread.c (free_thread): Do not delete the step resume breakpoint
1190 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1192 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1193 * corelow.c (core_read_description): New.
1194 (init_core_ops): Set to_read_description.
1195 * gdbarch.sh: Add gdbarch_core_read_description.
1196 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1197 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1198 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1199 (mips_register_g_packet_guesses): Use them.
1200 (_initialize_mips_tdep): Initialize them.
1201 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1202 * gdbarch.h, gdbarch.c: Regenerated.
1204 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1206 * infrun.c (stepping_past_breakpoint): New global variable.
1207 (stepping_past_breakpoint_ptid): Likewise.
1208 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1209 Only switch threads if we need to single-step over a breakpoint hit
1210 in the previously selected thread. If stepping, remember previous
1211 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1212 switch_to_thread instead of copying its contents.
1213 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1214 prepare_to_proceed returns true.
1215 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1216 (context_switch): Call switch_to_thread.
1217 (handle_inferior_event): Switch back to previous thread if requested
1218 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1219 * gdbthread.h (switch_to_thread): Add prototype.
1220 * thread.c (switch_to_thread): Make global.
1222 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1224 * p-valprint.c: Fix 7 ARI reported problems.
1225 (pascal_val_print): Fix one operator at end of line issue.
1226 Use paddress function to remove use of
1227 deprecated_print_address_numeric function (2 times).
1228 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1229 (pascal_value_print): Fix 3 operator at end of line issues.
1231 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1234 * arm-tdep.c (arm_in_call_stub): Delete.
1235 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1237 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1239 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1242 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1243 Jim Blandy <jimb@codesourcery.com>
1245 * NEWS: Update description of string changes. Mention print/s.
1246 * c-valprint.c (textual_element_type): New.
1247 (c_val_print): Use it. Do not skip address printing for pointers
1248 with a string format.
1249 (c_value_print): Doc update.
1250 * dwarf2read.c (read_array_type): Use make_vector_type.
1251 * gdbtypes.c (make_vector_type): New.
1252 (init_vector_type): Use it.
1253 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1254 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1255 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1256 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1257 (make_vector_type): New.
1258 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1259 Call the language print routine for string format.
1260 (print_scalar_formatted): Call val_print for string format. Handle
1261 unsigned original types for char format.
1262 (validate_format): Do not reject string format.
1263 * stabsread.c (read_type): Use make_vector_type.
1264 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1266 2007-09-04 Michael Snyder <msnyder@access-company.com>
1268 * expprint.c (print_subexp_standard): Check strchr for null.
1269 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1271 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1273 * stabsread.c (patch_block_status): Guard against null.
1274 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1276 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1278 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1279 in internal error message.
1281 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1282 Daniel Jacobowitz <dan@codesourcery.com>
1284 * infcmd.c (post_create_inferior): Update comment.
1285 (run_command_1): Always call post_create_inferior with 0 as
1288 * i386-cygwin-tdep.h: New.
1289 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1290 (win32_xfer_shared_library): Make it extern.
1292 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1294 (win32_so_ops): Delete.
1295 (get_relocated_section_addrs): Delete.
1296 (solib_symbols_add): Delete.
1297 (register_loaded_dll): Delete.
1298 (win32_make_so): New.
1299 (handle_load_dll): Use win32_make_so.
1300 (win32_free_so): Free the passed in so.
1301 (win32_relocate_section_addresses): Delete.
1302 (win32_solib_create_inferior_hook): Delete.
1303 (handle_unload_dll): Don't add PE offset here. Free so with
1304 win32_free_so instead of free_so.
1305 (win32_special_symbol_handling): Delete.
1306 (get_win32_debug_event): Remove unneeded calls. Set state to
1307 TARGET_WAITKIND_LOADED on a dll unload.
1308 (do_initial_win32_stuff): Clear cygwin_load_start and
1310 (map_code_section_args): Delete.
1311 (dll_code_sections_add): Delete.
1312 (core_section_load_dll_symbols): Delete.
1313 (win32_xfer_shared_libraries): New.
1314 (win32_current_sos): Delete.
1315 (win32_xfer_partial): New.
1316 (open_symbol_file_object): Delete.
1317 (in_dynsym_resolve_code): Delete.
1318 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1319 of win32_ops. Remove win32_so_ops settings. Don't set
1320 current_target_so_ops here.
1322 * Makefile.in (i386_cygwin_tdep_h): New variable.
1323 (i386-cygwin-tdep.o): Update dependencies.
1324 (win32-nat.o): Update dependencies.
1326 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1327 Daniel Jacobowitz <dan@codesourcery.com>
1329 * gdbarch.sh (core_xfer_shared_libraries): New.
1331 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1333 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1335 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1336 (xml_escape_text): New.
1337 * xml-support.h (xml_escape_text): Declare.
1339 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1340 * config/i386/cygwin.mt (TDEPFILES): ... here.
1342 * win32-nat.c: (fetch_elf_core_registers): Delete.
1343 (win32_elf_core_fn): Delete.
1344 (_initialize_core_win32): Delete.
1346 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1347 "xml-support.h" and "gdbcore.h".
1348 (i386_win32_gregset_reg_offset): New.
1349 (I386_WIN32_SIZEOF_GREGSET): New.
1350 (i386_win32_regset_from_core_section): New.
1351 (win32_xfer_shared_library): New.
1352 (struct cpms_data): New.
1353 (core_process_module_section): New.
1354 (win32_core_xfer_shared_libraries): New.
1355 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1356 gregset_num_regs, sizeof_gregset members of tdep. Register
1357 regset_from_core_section and core_xfer_shared_libraries callbacks.
1359 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1360 * gdbarch.h, gdbarch.c: Regenerate.
1362 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1364 * corelow.c (core_xfer_partial): Pass writebuf to
1365 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1367 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1369 * arm-tdep.h (arm_skip_stub): Declare.
1370 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1372 (arm_pe_skip_trampoline_code): New function.
1373 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1374 gdbarch_skip_trampoline_code callback.
1375 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1377 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1379 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1381 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1383 * configure.ac: Add --with-expat.
1384 * configure: Regenerated.
1386 2007-09-03 Andreas Schwab <schwab@suse.de>
1388 * configure.ac: Accept --with-system-readline.
1389 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1390 * configure: Regenerate.
1391 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1393 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1395 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1396 Daniel Jacobowitz <dan@codesourcery.com>
1398 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1400 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1402 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1404 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1406 * top.c (print_gdb_version): Update for GPL version 3.
1408 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1410 * NEWS: Mention the build-id .debug files verification.
1412 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1414 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1416 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1418 * Makefile.in (symfile.o): Update dependencies.
1419 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1420 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1421 (struct build_id): New structure.
1422 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1423 (find_separate_debug_file): New variable BUILD_ID.
1424 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1426 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1428 * varobj.c (struct varobj): Fix comment
1429 for the type member not to lie when it can be
1432 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1434 Implement -var-info-path-expression.
1436 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1438 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1439 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1440 * varobj.c (struct varobj): New field 'path_expr'.
1441 (c_path_expr_of_child, cplus_path_expr_of_child)
1442 (java_path_expr_of_child): New.
1443 (struct language_specific): New field path_expr_of_child.
1444 (varobj_create): Initialize the path_expr field.
1445 (varobj_get_path_expr): New.
1446 (new_variable): Initialize the path_expr field.
1447 (free_variable): Free the path_expr field.
1448 (adjust_value_for_children_access): New parameter
1450 (c_number_of_children): Adjust.
1451 (c_describe_child): New parameter CFULL_EXPRESSION.
1452 Compute full expression.
1453 (c_value_of_child, c_type_of_child): Adjust.
1454 (cplus_number_of_children): Adjust.
1455 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1456 Compute full expression.
1457 (cplus_name_of_child, cplus_value_of_child)
1458 (cplus_type_of_child): Adjust.
1459 * varobj.h (varobj_get_path_expr): Declare.
1461 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1463 * mi/mi-cmd-var.c (print_varobj): If a varobj
1464 type is NULL, don't try to print it.
1466 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1468 * ppc-linux-nat.c (right_fill_reg): Delete.
1469 (supply_gregset): Use ppc_supply_gregset.
1470 (supply_fpregset): Use ppc_supply_fpregset.
1471 (fill_gregset): Use ppc_collect_gregset.
1472 (fill_fpregset): Use ppc_collect_fpregset.
1473 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1474 (right_supply_register, ppc_linux_supply_gregset): Delete.
1475 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1476 (ppc_linux_supply_fpregset): Delete.
1477 (ppc_linux_collect_gregset): New function.
1478 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1479 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1480 ppc_linux_supply_gregset, and ppc_collect_gregset.
1481 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1482 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1483 (ppc_linux_regset_from_core_section): Update.
1484 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1485 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1486 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1487 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1488 (ppcobsd_collect_gregset): Likewise.
1489 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1490 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1491 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1492 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1493 (rs6000_aix64_reg_offsets): Likewise.
1494 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1495 ppc_floating_point_unit_p.
1496 (rs6000_aix_collect_regset): Similarly.
1497 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1498 when regsize is larger than regcache register size.
1499 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1500 regcache register size.
1501 (ppc_greg_offset): New function, split out from..
1502 (ppc_supply_gregset): ..here. Separate code handling all regs from
1503 single reg case. Correct xer offset.
1504 (ppc_fpreg_offset): New function, split out from..
1505 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1507 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1508 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1509 a fp unit, instead return if no fp.
1511 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1513 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1514 this code has not been compiled for two years.
1516 2007-08-29 Michael Snyder <msnyder@access-company.com>
1518 * event-top.c (gdb_readline2): Return after EOF.
1520 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1522 * symtab.c: Remove a function that has been commented out 3 years ago.
1524 2007-08-29 Randolph Chung <tausq@debian.org>
1526 * hppa-tdep.c (hppa32_cannot_fetch_register)
1527 (hppa64_cannot_fetch_register): New functions.
1528 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1529 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1531 2007-08-28 Michael Snyder <msnyder@access-company.com>
1533 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1534 check for null before calling check_typedef.
1536 * NEWS: Mention Coverity bug fixes.
1538 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1540 * spu-tdep.c (spu_pointer_to_address): New function.
1541 (spu_integer_to_address): Likewise.
1542 (spu_gdbarch_init): Add spu_pointer_to_address and
1543 spu_integer_to_address to gdbarch.
1545 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1547 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1549 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1551 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1552 that contains the GDB license.
1553 * copying.awk: Adjust to the GPLv3 wording.
1554 * copying.c: Regenerate.
1556 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1558 * copying.awk: Protoization, and i18n markup.
1560 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1562 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1563 * copyright.sh: Likewise.
1564 * gdb-events.sh: Likewise.
1565 * gdb_gcore.sh: Likewise.
1566 * gdb_mbuild.sh: Likewise.
1567 * gdbarch.sh: Likewise.
1568 * observer.sh: Likewise.
1569 * features/feature_to_c.sh: Likewise.
1570 * regformats/regdat.sh: Likewise.
1572 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1574 Switch the license of all .c files to GPLv3.
1575 Switch the license of all .h files to GPLv3.
1576 Switch the license of all .cc files to GPLv3.
1578 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1580 * configure.ac: Switch license to GPLv3.
1582 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1584 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1585 determine the file's FPU type.
1587 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1589 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1590 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1591 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1593 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1595 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1597 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1598 (elf_lookup_lib_symbol): Fix formatting.
1600 2007-08-21 Michael Snyder <msnyder@access-company.com>
1602 * dbxread.c (read_dbx_symtab): Guard null deref.
1605 * valops.c (find_overload_match): Guard against NULL.
1607 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1609 * MAINTAINERS (Patch Champions): Remove self.
1611 2007-08-21 Chris Smith <chris.smith@st.com>
1613 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1616 2007-08-18 Michael Snyder <msnyder@access-company.com>
1618 * stabsread.c (dbx_lookup_type): Memory leak.
1620 * event-loop.c (delete_async_signal_handler): Move pointer null
1621 test to before pointer dereference.
1623 * ui-out.c (append_header_to_list): Possible cut and paste error.
1625 * MAINTAINERS: white space tweak.
1627 2007-08-17 Michael Snyder <msnyder@access-company.com>
1629 * stack.c (print_frame): Memory leak.
1631 * completer.c (filename_completer): Avoid memory leak.
1632 Remove unnecessary nested block.
1634 * c-exp.y (parse_number): Memory leak.
1636 * completer.c (location_completer): Must free 'fn_list', except
1637 in the one case where it is returned (as 'list').
1639 * varobj.c (value_of_root): Memory leak.
1641 * gdbtypes.h (virtual_base_list): Remove export decl.
1642 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1643 (virtual_base_index): Memory leak.
1644 (virtual_base_index_skip_primaries): Ditto.
1646 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1648 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1649 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1650 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1651 (xtensa_read_register): New function.
1652 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1653 (xtensa_insn_kind): New types.
1654 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1655 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1656 (xtensa_verify_config, xtensa_pseudo_register_read)
1657 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1658 (xtensa_store_return_value)
1659 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1660 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1661 (xtensa_frame_this_id, xtensa_frame_prev_register)
1662 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1663 (call0_frame_cache, call0_frame_get_reg_at_entry)
1664 (call0_classify_opcode, call0_track_op)
1665 (call0_analyze_prologue, call0_frame_cache): New functions.
1667 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1669 * breakpoint.c (bpstat_free): New.
1670 (bpstat_clear): Use bpstat_free.
1671 (delete_breakpoint): Document why we cannot
1672 remove bpstats from stop_bpstat.
1673 * breakpoint.h (bpstat_free): Declare.
1675 2007-08-16 Michael Snyder <msnyder@access-company.com>
1677 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1679 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1680 Joel Brobecker <brobecker@adacore.com>
1682 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1684 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1685 Joel Brobecker <brobecker@adacore.com>
1687 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1688 checkin guarding against NULL.
1690 2007-08-14 Michael Snyder <msnyder@access-company.com>
1692 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1693 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1694 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1695 go at beginning of new line.
1697 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1698 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1699 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1700 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1701 tui-winsource.h, tui.c, tui.h: Function declarations and
1702 definitions, wrap long lines.
1704 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1705 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1706 Reformat block comments to GNU standard.
1708 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1709 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1710 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1711 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1712 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1713 spaces after periods, etc).
1715 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1716 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1717 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1718 tui-winsource.h: Whitespace changes, fix pointer declarations
1721 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1722 Michael Snyder <msnyder@access-company.com>
1724 * ada-lang.c (field_alignment): Guard against NULL.
1726 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1728 * MAINTAINERS (Global Maintainers): Add self.
1730 2007-08-14 Michael Snyder <msnyder@access-company.com>
1732 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1734 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1736 * varobj.c (cplus_describe_child): Guard against null.
1737 Use "NULL" instead of "0" to initialize pointers.
1739 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1741 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1742 to match any gdbarch with matching OSABI. Set default ABI and FPU
1743 after running the OSABI handler.
1745 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1747 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1748 * config/i386/linux.mt (TDEPFILES): ...to here.
1750 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1752 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1753 the 'silent' parameter and code to implement that.
1754 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1756 * win32-nat.c: Adjust.
1759 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1761 * breakpoint.c (update_breakpoints_after_exec): Don't
1762 set address to zero.
1764 2007-08-13 Michael Snyder <msnyder@access-company.com>
1766 * valops.c: Whitespace clean-up.
1768 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1770 * event-top.c (command_line_handler): Memory leak.
1772 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1773 No need to make copy.
1775 * source.c (find_source_lines): Require symtab 's'.
1777 2007-08-11 Michael Snyder <msnyder@access-company.com>
1779 * completer.c: Spelling fix in comments.
1781 2007-08-10 Michael Snyder <msnyder@access-company.com>
1783 * gdbtypes.c: Coding standard cleanup.
1784 * gdbtypes.c: Comment/whitespace cleanup.
1786 * stabsread.c (read_huge_number): Attempt to compute value before
1787 values that it depends on.
1789 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1790 (decode_objc): Use "NULL" instead of 0.
1791 (find_method): Ditto.
1792 (decode_all_digits): Ditto.
1793 (decode_dollar): Ditto.
1795 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1797 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1799 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1802 * completer.c: Comment/whitespace cleanup.
1804 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1806 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1808 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
1810 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1811 allocated file descriptors.
1813 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1815 * Makefile.in: Minor cleanup throughout; add some missing variables,
1816 add some missing rules, remove some rules that are no longer needed,
1817 and fix the dependencies in several rules.
1819 2007-08-10 Ludovic Courtès <ludo@gnu.org>
1821 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1822 (scm_lang_h, scm_tags_h): New.
1823 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1824 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1825 * defs.h (enum language): Add `language_scm'.
1827 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1830 2007-08-09 Ludovic Courtès <ludo@gnu.org>
1832 * MAINTAINERS (Write After Approval): Add myself.
1834 2007-08-09 Michael Snyder <msnyder@access-company.com>
1836 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1838 2007-08-09 Joel Brobecker <brobecker@adacore.com>
1840 * solib-som.c (som_relocate_section_addresses): Stop saving
1841 the $CODE$ section in the so_list structure.
1843 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
1845 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1846 (xtensa_register_group_t): Add entries for coprocessors.
1847 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1848 (xtensa_add_reggroups): Likewise.
1849 (xtensa_register_reggroup_p): Likewise.
1850 (xtensa_coprocessor_register_group): New function.
1853 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1855 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1857 2007-08-08 Michael Snyder <msnyder@access-company.com>
1859 * target.c (target_read_string): Guard against null.
1861 * varobj.c (value_of_root): Move alloc after return to avoid leak.
1863 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
1864 (tui_set_layout_for_display_command): Mem leak.
1866 * top.c (command_line_input): Memory leak.
1868 * solib-svr4.c (open_symbol_file_object): Memory leak.
1869 (svr4_current_sos): Ditto.
1870 (enable_break): Ditto.
1872 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1874 * dwarf2read.c (add_partial_symbol): Memory leak.
1876 2007-08-06 Michael Snyder <msnyder@access-company.com>
1878 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1880 2007-08-05 Jim Blandy <jimb@codesourcery.com>
1882 * macroexp.c (init_buffer): Remove testing code that overrides the
1883 caller's length guess.
1884 (gather_arguments): Use a larger initial size, now that the vector
1885 growth code has been exercised.
1887 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1889 * solib-target.c (solib_target_relocate_section_addresses): Add
1890 orig_delta to addr_high.
1892 2007-08-04 Michael Snyder <msnyder@access-company.com>
1894 * remote-fileio.c (remote_fileio_func_write): Memory leak.
1896 * breakpoint.c (print_one_breakpoint): Off by one error.
1898 * tracepoint.c (add_register): Off by one error.
1899 (stringify_collection_list): Free malloc buffer.
1901 2007-08-03 Michael Snyder <msnyder@access-company.com>
1903 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1904 stop memory leak, straighten out cleanups.
1906 * jv-lang.c (java_link_class_type): Guard against NULL.
1908 2007-08-02 Michael Snyder <msnyder@access-company.com>
1910 * gdbtypes.c (create_set_type): Test should only be done within
1911 the preceeding if block. Otherwise, variable is uninitialized.
1913 * gdbtypes.c (check_typedef): Guard NULL.
1915 2007-08-01 Michael Snyder <msnyder@access-company.com>
1917 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
1918 avoid dereference in lookup_cmd_1.
1920 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
1921 clean up long lines.
1922 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1923 (tui_alloc_win_info): Ditto.
1924 (tui_add_content_elements): Ditto.
1925 * tui/tui-file.c (tui_file_magic): Ditto.
1927 2007-07-31 Michael Snyder <msnyder@access-company.com>
1929 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1930 True and false paths are mutually exclusive.
1932 * event-top.c (command_line_handler): Add pedantic return.
1934 * f-valprint.c (info_common_command): Bail out to prevent null
1935 pointer deref. Break up a long line.
1937 * exec.c (xfer_memory): Remove redundant condition from 'if'.
1939 * symfile.c (reread_separate_symbols): Free xmalloced memory.
1941 * printcmd.c (build_address_symbolic): Remove dead code and dead
1944 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
1946 * linespec.c (minsym_found): Advance to the next line if possible.
1948 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
1950 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
1951 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
1952 solib-svr4.o, and add solib-target.o
1954 2007-07-27 Michael Snyder <msnyder@access-company.com>
1956 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
1958 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
1960 * MAINTAINERS (Write After Approval): Add myself.
1962 2007-07-26 Maciej W. Rozycki <macro@mips.com>
1964 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
1967 2007-07-25 Maciej W. Rozycki <macro@mips.com>
1969 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
1971 2007-07-24 Michael Snyder <msnyder@access-company.com>
1973 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
1974 'buffer' must cover both branches that call strcmp (Coverity).
1976 * stack.c (print_frame_args): Check return value of lookup_symbol.
1978 * ax-gdb.c (find_field): Guard against null ptr.
1980 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1982 * regformats/reg-spu.dat: Fix order of npc, id registers.
1984 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1986 * target.c (memory_xfer_partial): Accesses to unmapped overlay
1987 sections should always go to the executable file.
1989 2004-07-20 Chris Dearman <chris@mips.com>
1991 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
1992 prologue instructions.
1994 2007-07-20 Maciej W. Rozycki <macro@mips.com>
1996 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
1999 2007-07-20 Chris Dearman <chris@mips.com>
2000 Maciej W. Rozycki <macro@mips.com>
2002 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
2005 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
2006 Daniel Jacobowitz <dan@codesourcery.com>
2008 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
2009 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
2011 * NEWS: Mention gdbserver DLL support.
2013 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
2015 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
2017 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
2019 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
2022 2007-07-13 Kevin Buettner <kevinb@redhat.com>
2024 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
2027 2007-07-12 Kevin Buettner <kevinb@redhat.com>
2029 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
2030 (mep_analyze_prologue): Add case for BRA instruction.
2032 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2034 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
2036 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
2038 * breakpoint.c: Include "top.h".
2039 (breakpoint_1): Don't set convenience variable $_ if server prefix
2041 (_initialize_breakpoint): Describe this behaviour in command help.
2043 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
2045 * solib-target.c (library_list_start_segment): Cast address to
2048 2007-07-06 Mark Kettenis <kettenis@gnu.org>
2050 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
2051 for terminated processes.
2053 2007-07-05 Michael Snyder <msnyder@access-company.com>
2055 * event-top.c (cli_command_loop): Prompt string can (and should)
2056 be freed after call to readline (Coverity). Also move local var
2057 declarations into block where they are used.
2059 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
2060 should) be freed after call to readline (Coverity). Also move
2061 local var declarations into block where they are used.
2063 2007-07-03 Andreas Schwab <schwab@suse.de>
2065 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
2068 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
2069 Thiago Bauermann <bauerman@br.ibm.com>
2070 Joseph S. Myers <joseph@codesourcery.com>
2071 Daniel Jacobowitz <dan@codesourcery.com>
2073 * remote.c (remote_check_symbols): Use
2074 gdbarch_convert_from_func_ptr_addr.
2075 * infcall.c (find_function_addr): Handle function descriptors
2076 without debugging information.
2077 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
2078 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
2079 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
2080 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
2081 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
2082 allow SEC_CODE and SEC_DATA.
2083 (enable_break): Update calls. Pass current_target to solib_add.
2084 Use gdbarch_convert_from_func_ptr_addr.
2086 2007-07-03 Ilko Iliev <iliev@ronetix.at>
2087 Daniel Jacobowitz <dan@codesourcery.com>
2089 * symfile.c (print_transfer_performance): Avoid integer overflow.
2092 2007-07-03 Markus Deuling <deuling@de.ibm.com>
2094 * cp-namespace.c (lookup_symbol_file): Add block to
2095 lookup_symbol_global call.
2096 * Makefile.in (solist_h): Add dependency on symtab header.
2097 (symtab.o): Add dependency on solist header.
2098 * solib.c (solib_global_lookup): New function.
2099 * solib-svr4.c (scan_dyntag): Likewise.
2100 (elf_locate_base): Call helper routine scan_dyntag.
2101 (elf_lookup_lib_symbol): New function.
2102 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
2103 * solist.h (symtab.h): New include.
2104 (struct target_so_ops): New member lookup_lib_global_symbol.
2105 (solib_global_lookup): New prototype.
2106 * symtab.c: New include solist.h.
2107 (lookup_objfile_from_block): New function.
2108 (lookup_global_symbol_from_objfile): New function.
2109 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
2110 (lookup_symbol_global): Call library-specific lookup procedure.
2111 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
2113 * NEWS: Document framework.
2115 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2117 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
2120 * cli/cli-script.c (build_command_line): Update NULL check.
2122 2007-07-02 Michael Snyder <msnyder@access-company.com>
2124 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
2126 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2128 * Makefile.in (XMLFILES): Add library-list.dtd.
2129 (ALLDEPFILES): Add solib-target.o.
2130 (solib-target.o): New rule.
2131 * remote.c (PACKET_qXfer_libraries): New constant.
2132 (remote_protocol_features): Add qXfer:libraries:read.
2133 (remote_wait): Recognize library stop replies.
2134 (remote_async_wait): Likewise. Fix typo.
2135 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2136 (init_remote_async_ops): Fix typo.
2137 (_initialize_remote): Register "set remote library-info-packet".
2138 * solib-som.c (som_current_sos): Set addr_low and addr_high.
2139 * solib-target.c: New file.
2140 * solib.c (solib_map_sections): Use addr_low and addr_high instead
2142 (info_sharedlibrary_command): Likewise.
2143 (solib_add_library, solib_remove_library): New.
2144 * solist.h (struct so_list): Replace textsection with addr_low and
2146 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
2147 * NEWS: Describe new qXfer:libraries:read and shared library
2149 * features/library-list.dtd: New.
2151 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2153 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
2154 (start_remote): Use STOP_QUIETLY_REMOTE.
2155 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2156 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2157 Update to match shared library event breakpoint support. Only
2158 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2159 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2160 * fork-child.c (startup_inferior): Do not set
2161 inferior_ignoring_startup_exec_events
2162 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2164 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2166 2007-07-02 Markus Deuling <deuling@de.ibm.com>
2168 * breakpoint.c (insert_bp_location): Remove dead code
2169 (DISABLE_UNSETTABLE_BREAK).
2170 (disable_breakpoints_in_shlibs)
2171 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2173 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2175 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2176 Call insert_bp_location.
2178 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2180 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2183 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2185 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2188 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2190 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2191 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2192 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2193 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2194 to display_gdb_prompt.
2196 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2199 * target.c (memory_xfer_partial): Do not continue past targets with
2202 2007-06-30 Andreas Schwab <schwab@suse.de>
2204 * m68k-tdep.c (m68k_ps_type): New.
2205 (m68k_init_types): New.
2206 (m68k_register_type): Use m68k_ps_type for PS register.
2207 (_initialize_m68k_tdep): Call m68k_init_types.
2209 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2210 from the generic m68k arch.
2212 2007-06-28 Michael Snyder <msnyder@access-company.com>
2214 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2217 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2218 gdb_assert before using return value of find_thread_pid (Coverity).
2220 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2222 * cli/cli-script.c (build_command_line): Add null pointer guard
2225 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2227 * linux-thread-db.c (thread_db_attach): Delete.
2228 (thread_db_detach): Typo fix. Call target_mourn_inferior
2229 instead of fixing up proc_handle.
2230 (have_threads_callback, have_threads): New functions.
2231 (thread_db_wait): Remove dead proc_handle.pid check. Only
2232 translate PTIDs if we have registered threads. Check for new
2233 threads if we have none.
2234 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2235 (find_new_threads_callback): Only enable event reporting if TID == 0.
2236 (same_ptid_callback): New.
2237 (thread_db_get_thread_local_address): Check for new threads.
2238 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2239 or to_post_startup_inferior.
2241 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2243 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2244 is always active if SOFTWARE_SINGLE_STEP_P is true.
2245 (resume): Use gdbarch_software_single_step[_p] instead of
2246 SOFTWARE_SINGLE_STEP[_P].
2247 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2249 * gdbarch.sh (software_single_step): Remove target macro.
2250 * gdbarch.h, gdbarch.c: Regenerate.
2252 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2254 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2255 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2256 (struct gdbarch_swap, struct gdbarch_swap_registration,
2257 struct gdbarch_swap_registry, gdbarch_swap_registry,
2258 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2259 current_gdbarch_swap_in_hack): Remove.
2260 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2261 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2262 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2263 (deprecated_current_gdbarch_select_hack): Likewise.
2264 * gdbarch.h, gdbarch.c: Regenerate.
2266 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2268 * infrun.c (clear_proceed_status): Clean up stop_registers.
2269 (normal_stop): Allocate regcache for stop_registers.
2270 (struct inferior_status): Remove stop_registers member.
2271 (save_inferior_status): Do not save stop_registers.
2272 (restore_inferior_status): Do not restore stop_registers.
2273 (discard_inferior_status): Do not discard stop_registers.
2274 (build_infrun): Remove.
2275 (_initialize_infrun): Do not swap stop_registers.
2277 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2279 * remote.c (remote_address_masked): If remote_address_size is zero,
2280 default to target address size.
2281 (build_remote_gdbarch_data): Remove.
2282 (_initialize_remote): Do not swap remote_address_size.
2284 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2286 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2287 builtin_type_char, builtin_type_short, builtin_type_int,
2288 builtin_type_long, builtin_type_signed_char,
2289 builtin_type_unsigned_char, builtin_type_unsigned_short,
2290 builtin_type_unsigned_int, builtin_type_unsigned_long,
2291 builtin_type_float, builtin_type_double, builtin_type_long_double,
2292 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2293 builtin_type_bool, builtin_type_long_long,
2294 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2295 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2296 variable declaration with compatibility macro.
2297 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2298 builtin_type_char, builtin_type_short, builtin_type_int,
2299 builtin_type_long, builtin_type_signed_char,
2300 builtin_type_unsigned_char, builtin_type_unsigned_short,
2301 builtin_type_unsigned_int, builtin_type_unsigned_long,
2302 builtin_type_float, builtin_type_double, builtin_type_long_double,
2303 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2304 builtin_type_bool, builtin_type_long_long,
2305 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2306 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2307 (build_gdbtypes): Remove.
2308 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2309 opaque-type-resolution command here. Do not call
2310 deprecated_register_gdbarch_swap.
2312 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2314 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2315 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2316 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2318 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2319 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2320 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2321 (build_parse): Remove.
2322 (_initialize_parse): Do not call build_parse. Do not register
2323 msym_ types for gdbarch-swapping.
2325 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2326 instead of creating private type.
2328 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2329 (_initialize_xcoffread): Do not initialized them.
2330 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2332 * mdebugread.c (nodebug_func_symbol_type): Remove.
2333 (nodebug_var_symbol_type): Remove.
2334 (_initialize_mdebugread): Do not initialize them.
2335 (parse_symbol): Use builtin nodebug_ type instead of them.
2336 (parse_procedure): Likewise.
2338 2007-06-21 Chris Dearman <chris@mips.com>
2340 * printcmd.c (do_one_display): If display/i, start with an initial
2341 line feed to avoid bad layout if there is a branch delay slot.
2343 2007-06-21 Nigel Stephens <nigel@mips.com>
2344 Maciej W. Rozycki <macro@mips.com>
2346 * disasm.c (gdb_print_insn): Return the number of branch delay
2347 slot instructions too.
2348 * disasm.h (gdb_print_insn): Update prototype.
2349 * printcmd.c (branch_delay_insns): New variable to record the
2350 number of delay slot instructions after disassembling a branch.
2351 (print_formatted): Record the number of branch delay slot
2353 (do_examine): When disassembling, if the last instruction
2354 disassembled has any branch delay slots, then bump the count so
2355 that they get disassembled too.
2356 * tui/tui-disasm.c (tui_disassemble): Update the call to
2358 * NEWS: Document the new behaviour.
2360 2007-06-21 Andreas Schwab <schwab@suse.de>
2362 * regcache.c (write_pc_pid): Restore missing else.
2364 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2366 * regcache.c (regcache_print): Use get_current_regcache ()
2367 instead of current_regcache.
2369 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2372 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2373 instead of bfd_make_section_anyway.
2374 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2375 when clearing SEC_LOAD.
2377 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2379 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2380 registers for big-endian.
2382 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2384 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2385 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2386 * gdbarch.c, gdbarch.h: Regenerate.
2388 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2390 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2391 gdbarch_believe_pcc_promotion.
2392 * stabsread.c (define_symbol): Likewise.
2393 Remove unnecessary definition.
2394 * coffread.c (process_coff_symbol): Remove unnecessary code.
2395 * gdbarch.c, gdbarch.h: Regenerate.
2397 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2399 * configure.ac: Do not use ${objdir}.
2400 * configure: Regenerated.
2402 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2404 * gdbarch.sh (deprecated_register_size): Remove.
2405 * gdbarch.h, gdbarch.c: Regenerate.
2407 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2408 by INT_REGISTER_SIZE.
2409 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2410 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2411 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2412 set_gdbarch_deprecated_register_size.
2414 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2416 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2417 gdbarch_deprecated_fp_regnum.
2418 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2419 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2420 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2421 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2423 * gdbarch.c, gdbarch.h: Regenerate.
2425 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2427 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2428 gdbarch_extract_return_value.
2429 * value.c (generic_use_struct_convention): Likewise (comment).
2430 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2431 * arch-utils.c (legacy_return_value): Likewise.
2432 * arch-utils.h (legacy_return_value): Likewise (comment).
2433 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2434 gdbarch_store_return_value.
2435 * stack.c (return_command): Likewise (comment).
2436 * arch-utils.h (legacy_return_value): Likewise (comment).
2437 * arch-utils.c (legacy_return_value): Likewise.
2438 * gdbarch.c, gdbarch.h: Regenerate.
2440 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2442 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2443 gdbarch_deprecated_use_struct_convention.
2444 * arch-utils.c (legacy_return_value): Likewise.
2445 * gdbarch.c, gdbarch.h: Regenerate.
2447 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2449 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2450 gdbarch_deprecated_function_start_offset.
2451 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2452 * linespec.c (minsym_found): Likewise.
2453 * infrun.c (handle_inferior_event): Likewise.
2454 * infcall.c (find_function_addr): Likewise.
2455 * cli/cli-cmds.c (disassemble_command): Likewise.
2456 * gdbarch.c, gdbarch.h: Regenerate.
2458 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2460 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2461 gdbarch_deprecated_reg_struct_has_addr.
2462 * infcall.c (call_function_by_hand): Likewise.
2463 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2464 * gdbarch_deprecated_reg_struct_has_addr_p.
2465 * infcall.c (call_function_by_hand): Likewise.
2466 * gdbarch.c, gdbarch.h: Regenerate.
2468 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2470 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2471 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2472 (sh_gdbarch_init): Remove
2473 set_gdbarch_deprecated_extract_struct_value_address.
2474 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2475 (sh64_gdbarch_init): Remove
2476 set_gdbarch_deprecated_extract_struct_value_address.
2477 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2478 (ia64_gdbarch_init): Remove
2479 set_gdbarch_deprecated_extract_struct_value_address.
2480 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2481 (frv_gdbarch_init): Remove
2482 set_gdbarch_deprecated_extract_struct_value_address.
2483 * gdbarch.c, gdbarch.h: Regenerate.
2485 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2487 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2488 * v850-tdep.c (v850_unwind_sp): Likewise.
2489 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2490 * stack.c (frame_info): Likewise.
2491 * stabsread.c (define_symbol): Likewise.
2492 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2493 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2494 (sh_unwind_sp): Likewise.
2495 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2496 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2497 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2498 (rs6000_frame_cache): Likewise.
2499 * rs6000-nat.c (store_register): Likewise.
2500 * remote-mips.c (mips_wait): Likewise.
2501 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2502 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2503 (ppc64_sysv_abi_push_dummy_call): Likewise.
2504 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2505 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2506 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2507 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2508 * m32r-rom.c (m32r_supply_register): Likewise.
2509 * frame.c (frame_sp_unwind): Likewise.
2510 * mips-tdep.c (mips_insn16_frame_cache)
2511 (mips_insn32_frame_cache): Likewise (comment).
2512 * m68klinux-nat.c (supply_gregset): Likewise.
2513 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2514 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2515 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2516 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2517 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2518 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2519 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2520 (cris_register_type, crisv32_register_type)
2521 (cris_dwarf2_frame_init_reg): Likewise.
2522 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2523 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2524 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2525 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2527 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2528 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2529 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2530 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2531 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2532 * v850-tdep.c (v850_unwind_pc): Likewise.
2533 * stack.c (frame_info): Likewise.
2534 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2535 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2536 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2537 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2538 (sh_dsp_show_regs): Likewise.
2539 * shnbsd-tdep.c (shnbsd_supply_gregset)
2540 (shnbsd_collect_gregset): Likewise.
2541 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2542 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2543 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2544 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2545 (6000_register_reggroup_p, rs6000_unwind_pc)
2546 (rs6000_frame_cache): Likewise.
2547 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2548 (rs6000_store_inferior_registers): Likewise.
2549 * remote-mips.c (mips_wait, mips_load): Likewise.
2550 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2551 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2552 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2553 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2554 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2555 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2556 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2557 (store_ppc_registers, fill_gregset): Likewise.
2558 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2559 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2560 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2561 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2562 * m68klinux-nat.c (supply_gregset): Likewise.
2563 * irix5-nat.c (fill_gregset): Likewise.
2564 * i386-tdep.c (i386_unwind_pc): Likewise.
2565 * i386-linux-nat.c (i386_linux_resume): Likewise.
2566 * frame.c (get_prev_frame_1): Likewise.
2567 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2568 * dbug-rom.c (dbug_supply_register): Likewise.
2569 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2570 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2571 (cris_register_type, crisv32_register_type, crisv32_register_name)
2572 (cris_dwarf2_frame_init_reg, find_step_target)
2573 (cris_software_single_step, cris_supply_gregset)
2574 (cris_regnums): Likewise.
2575 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2576 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2577 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2578 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2579 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2581 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2582 * dbug-rom.c (dbug_supply_register): Likewise.
2583 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2584 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2585 * win32-nat.c (win32_resume): Likewise.
2586 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2587 * m68k-tdep.c (m68k_register_type): Likewise.
2588 * m68klinux-nat.c (supply_gregset): Likewise.
2590 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2591 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2592 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2593 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2594 (fv_reg_base_num, dr_reg_base_num): Likewise.
2595 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2596 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2597 (sh64_extract_return_value, sh64_store_return_value)
2598 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2599 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2600 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2601 (invalidate_cache): Likewise.
2602 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2603 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2604 (mipsnbsd_fill_fpreg): Likewise.
2605 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2606 (mipsnbsd_store_inferior_registers): Likewise.
2607 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2608 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2609 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2610 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2611 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2612 (fill_fpregset): Likewise.
2613 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2614 * i386-tdep.h (struct_return): Likewise (comment).
2615 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2616 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2617 (go32_store_registers): Likewise.
2618 * alpha-tdep.c (alpha_next_pc): Likewise.
2619 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2620 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2621 (alphabsd_store_inferior_registers): Likewise.
2622 * core-regset.c (fetch_core_registers): Likewise.
2623 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2625 * gdbarch.c, gdbarch.h: Regenerate.
2627 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2629 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2630 * dbxread.c (start_psymtab): Check HAVE_ELF.
2631 (aout_sym_fns): Likewise.
2632 * elfread.c (elf_symfile_segments): New.
2633 (elf_sym_fns): Add elf_symfile_segments.
2634 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2635 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2636 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2637 * somread.c (som_sym_fns): Use default_symfile_segments.
2638 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2639 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2640 (default_symfile_segments): New function.
2641 (syms_from_objfile): Update call to find_sym_fns.
2642 (symfile_get_segment_data, free_symfile_segment_data): New.
2643 (symfile_map_offsets_to_segments): New.
2644 (symfile_find_segment_sections): New.
2645 * symfile.h (struct symfile_segment_data): New.
2646 (struct sym_fns): Add sym_segments.
2647 (default_symfile_segments, symfile_get_segment_data)
2648 (free_symfile_segment_data): New prototypes.
2649 (symfile_map_offsets_to_segments): Likewise.
2650 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2651 * Makefile.in (COMMON_OBS): Remove elfread.o.
2652 (elf_internal_h): New.
2653 (elfread.o): Update.
2654 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2656 * config.in, configure: Regenerated.
2657 * NEWS: Mention qOffsets changes.
2659 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2661 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2662 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2663 Replace global variable declaration with compatibility macro.
2664 (struct builtin_m2_type): New data type.
2665 (builtin_m2_type): Add prototype.
2666 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2667 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2668 Remove global variables.
2669 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2670 (build_m2_types): New function.
2671 (m2_type_data): New variable.
2672 (builtin_m2_type): New function.
2673 (_initialize_m2_language): Do not build data types. Register
2674 m2_type_data per-gdbarch data.
2676 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2678 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2679 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2680 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2681 builtin_type_f_real_s8, builtin_type_f_real_s16,
2682 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2683 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2684 variable declaration with compatibility macro.
2685 (struct builtin_f_type): New data type.
2686 (builtin_f_type): Add prototype.
2687 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2688 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2689 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2690 builtin_type_f_real_s8, builtin_type_f_real_s16,
2691 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2692 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2693 (f_language_arch_info): Use builtin_f_type instead of variables.
2694 (build_fortran_types): Build builtin_f_type structure instead of
2695 setting global type variables.
2696 (f_type_data): New variable.
2697 (builtin_f_type): New function.
2698 (_initialize_f_language): Do not call build_fortran_types. Do not
2699 swap global type variables. Register f_type_data per-gdbarch data.
2701 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2703 * f-lang.c (_initialize_f_language): Do not initialize or
2704 swap builtin_type_string.
2706 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2708 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2709 value_of_builtin_frame_reg): Remove.
2710 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2711 inactive call to value_of_builtin_frame_reg.
2713 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2715 * gdbarch.sh (bfd_vma_bit): Remove.
2716 * gdbarch.c, gdbarch.h: Regenerate.
2718 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2719 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2720 (build_gdbtypes): Do not initialize it.
2721 (_initialize_gdbtypes): Do not swap it.
2723 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2725 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2726 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2727 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2728 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2729 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2730 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2731 builtin_type_vec64, builtin_type_vec128): Remove.
2732 (init_simd_type): Remove.
2733 (init_vector_type): Make global.
2734 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2735 (build_gdbtypes): Do not build vector types.
2736 (_initialize_gdbtypes): Do not swap vector types.
2737 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2738 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2739 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2740 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2741 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2742 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2743 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2744 (init_vector_type): Add prototype.
2746 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2747 i386_sse_type members.
2748 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2749 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2750 (i386_init_types): Do not build vector types.
2751 (i386_mmx_type, i386_sse_type): New functions.
2752 (i386_register_type): Call them instead of using global variables.
2753 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2754 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2755 of using global variable.
2757 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2758 and ppc_builtin_type_vec128 members.
2759 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2760 (rs6000_builtin_type_vec128): Likewise.
2761 (rs6000_register_type): Call them instead of using builtin_type_vec64
2762 and builtin_type_vec128.
2763 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2765 * spu-tdep.c (struct gdbarch_tdep): New data type.
2766 (spu_builtin_type_vec128): Remove variable.
2767 (spu_builtin_type_vec128): New function.
2768 (spu_register_type): Call it instead of using global variable.
2769 (spu_gdbarch_init): Allocate tdep structure.
2770 (spu_init_vector_type): Remove function.
2771 (_initialize_spu_tdep): Do not call it.
2773 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2775 * amd64-tdep.c (struct amd64_register_info): Remove.
2776 (amd64_register_info): Remove.
2777 (amd64_register_names): New static variable.
2778 (AMD64_NUM_REGS): Use amd64_register_names instead of
2779 amd64_register_info.
2780 (amd64_register_name): Likewise.
2781 (amd64_register_type): Do not refer to amd64_register_info.
2783 * s390-tdep.c (struct s390_register_info): Remove.
2784 (s390_register_info): Remove.
2785 (s390_register_name): Do not refer to s390_register_info.
2786 (s390_register_type): Likewise.
2788 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2789 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2790 (sparc64_register_names, sparc64_pseudo_register_names): New.
2791 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2792 sparc64_register_names and sparc64_pseudo_register_names instead of
2793 sparc64_register_info and sparc64_pseudo_register_info.
2794 (sparc64_register_name): Likewise.
2795 (sparc64_register_type): Do not refer to sparc64_register_info
2796 and sparc64_pseudo_register_info.
2798 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2800 * c-lang.c (cplus_builtin_types): Remove.
2801 (enum cplus_primitive_types): New data type.
2802 (cplus_language_arch_info): New function.
2803 (cplus_language_defn): Set la_language_arch_info member. Do not set
2804 la_builtin_type_vector and string_char_type members.
2806 * f-lang.c (f_builtin_types): Remove.
2807 (enum f_primitive_types): New data type.
2808 (f_language_arch_info): New function.
2809 (f_language_de): Set la_language_arch_info member. Do not set
2810 la_builtin_type_vector and string_char_type members.
2812 * m2-lang.c (m2_builtin_types): Remove.
2813 (enum m2_primitive_types): New data type.
2814 (m2_language_arch_info): New function.
2815 (m2_language_defn): Set la_language_arch_info member. Do not set
2816 la_builtin_type_vector and string_char_type members.
2818 * objc-lang.c (objc_builtin_types): Remove.
2819 (objc_language): Set la_language_arch_info member. Do not set
2820 la_builtin_type_vector and string_char_type members.
2822 * p-lang.c (pascal_builtin_types): Remove.
2823 (enum pascal_primitive_types): New data type.
2824 (pascal_language_arch_info): New function.
2825 (pascal_language_defn): Set la_language_arch_info member. Do not set
2826 la_builtin_type_vector and string_char_type members.
2828 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2830 * regcache.c (struct regcache): Add ptid_t member.
2831 (regcache_xmalloc): Initialize it.
2832 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2833 (regcache_dup): Likewise.
2834 (regcache_dup_no_passthrough): Likewise.
2835 (current_regcache): Make static.
2836 (registers_ptid): Remove variable.
2837 (get_thread_regcache): New function.
2838 (get_current_regcache): New function.
2839 (registers_changed): Implement by freeing current regcache.
2840 (regcache_raw_read): Do not refer to current_regcache. Set
2841 inferior_ptid to regcache->ptid while calling target routines.
2842 (regcache_raw_write): Likewise.
2843 (regcache_raw_supply): Do not refer to current_regcache.
2844 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
2845 (write_pc_pid): Likewise.
2846 (build_regcache): Remove.
2847 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2848 or deprecated_register_gdbarch_swap. Do not initialize
2850 * regcache.h (get_current_regcache): Add prototype.
2851 (get_thread_regcache): Likewise.
2852 (current_regcache): Remove declaration.
2854 * corelow.c (core_open): Replace current_regcache by
2855 get_current_regcache ().
2856 * frame.c (frame_pop): Likewise.
2857 (put_frame_register): Likewise.
2858 (get_current_frame, create_new_frame): Likewise.
2859 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2860 * stack.c (return_command): Likewise.
2861 * infcall.c (call_function_by_hand): Likewise.
2862 * infrun.c (resume): Likewise.
2863 (save_inferior_status, restore_inferior_status): Likewise.
2864 * linux-fork.c (fork_load_infrun_state): Likewise.
2865 (fork_save_infrun_state): Likewise.
2866 * win32-nat.c (win32_resume): Likewise.
2867 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2868 * monitor.c (monitor_wait): Likewise.
2869 * remote.c (remote_wait): Likewise.
2870 * remote-mips.c (mips_wait): Likewise.
2872 * bsd-kvm.c (bsd_kvm_open): Likewise
2873 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2874 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2875 * i386-linux-nat.c (i386_linux_resume): Likewise.
2876 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2877 (ia64_linux_stopped_data_address): Likewise.
2879 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2880 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2881 * mep-tdep.c (current_me_module, current_options): Likewise.
2882 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2884 * linux-nat.c (linux_nat_do_thread_registers): Use thread
2885 regcache instead of current_regcache. Call target_fetch_registers.
2886 (linux_nat_corefile_thread_callback): Update call site.
2887 (linux_nat_do_registers): Likewise.
2888 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2889 of current_regcache.
2890 (procfs_make_note_section): Likewise.
2891 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2892 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2893 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2894 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2896 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2898 * regcache.c (read_register, read_register_pid): Remove.
2899 (write_register, write_register_pid): Likewise.
2900 * regcache.h (read_register, read_register_pid): Remove prototype.
2901 (write_register, write_register_pid): Likewise.
2903 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2905 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
2906 (write_pc): Likewise. Remove default implementation, add predicate.
2907 * gdbarch.c, gdbarch.h: Regenerate.
2908 * regcache.c (read_pc_pid): Use current regcache instead of calling
2910 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2912 (generic_target_write_pc): Remove.
2913 * inferior.h (generic_target_write_pc): Remove.
2914 * frv-tdep.c (frv_gdbarch_init): Do not install it.
2915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2916 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2917 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2918 * sh-tdep.c (sh_gdbarch_init): Likewise.
2919 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2921 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
2922 argument. Use REGCACHE instead of calling read_register_pid.
2923 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2924 * hppa-tdep.c (hppa_read_pc): Likewise.
2925 * hppa-tdep.h (hppa_read_pc): Likewise.
2926 * ia64-tdep.c (ia64_read_pc): Likewise.
2927 * m32r-tdep.c (m32r_read_pc): Likewise.
2928 * mep-tdep.c (mep_read_pc): Likewise.
2929 * mn10300-tdep.c (mn10300_read_pc): Likewise.
2930 * spu-tdep.c (spu_read_pc): Likewise.
2932 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
2933 argument. Use REGCACHE instead of calling write_register_pid.
2934 * avr-tdep.c (avr_write_pc): Likewise.
2935 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
2936 * hppa-tdep.c (hppa_write_pc): Likewise.
2937 * hppa-tdep.h (hppa_write_pc): Likewise.
2938 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
2939 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
2940 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
2941 * ia64-tdep.c (ia64_write_pc): Likewise.
2942 * ia64-tdep.h (ia64_write_pc): Likewise.
2943 * m32r-tdep.c (m32r_write_pc): Likewise.
2944 * m88k-tdep.c (m88k_write_pc): Likewise.
2945 * mep-tdep.c (mep_write_pc): Likewise.
2946 * mips-tdep.c (mips_write_pc): Likewise.
2947 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2948 * mn10300-tdep.c (mn10300_write_pc): Likewise.
2949 * sparc-tdep.c (sparc_write_pc): Likewise.
2950 * spu-tdep.c (spu_write_pc): Likewise.
2952 * mips-tdep.c (read_signed_register): Remove.
2953 (read_signed_register_pid): Likewise.
2954 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
2955 Use REGCACHE instead of calling read_signed_register_pid.
2957 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2959 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
2960 * gdbarch.c, gdbarch.h: Regenerate.
2961 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
2962 (push_dummy_code): Likewise. Pass it to callee.
2963 (call_function_by_hand): Pass current regcache to push_dummy_code.
2965 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
2966 argument. Use it instead of current_regcache.
2968 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
2969 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2971 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2973 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
2974 * gdbarch.c, gdbarch.h: Regenerate.
2975 * infrun.c (handle_inferior_event): Pass current frame to
2976 gdbarch_get_longjmp_target.
2978 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
2979 Read registers from FRAME instead of using read_register.
2980 Use get_frame_arch instead of current_gdbarch.
2981 * arm-tdep.c (arm_get_longjmp_target): Likewise.
2982 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2983 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2984 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
2985 (mips64_linux_get_longjmp_target): Likewise.
2986 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2988 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2990 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
2991 * gdbarch.c, gdbarch.h: Regenerate.
2992 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
2993 * arch-utils.h (generic_skip_trampoline_code): Likewise.
2994 * infrun.c (handle_inferior_event): Pass current frame to
2995 gdbarch_skip_trampoline_code and skip_language_trampoline.
2997 * language.c (unk_lang_trampoline): Add FRAME argument.
2998 (skip_language_trampoline): Add FRAME argument. Pass it to
2999 skip_trampoline callback.
3000 * language.h: Add forward declaration of struct frame_info.
3001 (struct language_defn): Add FRAME argument to skip_trampoline.
3002 (skip_language_trampoline): Add FRAME argument.
3003 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
3004 to skip_trampoline callback.
3005 * cp-abi.h: Add forward declaration of struct frame_info.
3006 (cplus_skip_trampoline): Add FRAME argument.
3007 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
3008 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
3009 to gdbarch_skip_trampoline_code.
3010 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
3011 to gdbarch_skip_trampoline_code.
3013 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
3014 * symtab.h (find_solib_trampoline_target): Likewise.
3015 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
3016 find_solib_trampoline_target.
3018 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
3019 from FRAME instead of calling read_register.
3021 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
3022 argument. Read registers from FRAME instead of using read_register.
3023 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
3024 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
3026 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
3029 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
3031 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
3032 registers from FRAME instead of using read_signed_register.
3034 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
3036 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
3037 instead of using read_register.
3038 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
3039 ppc64_standard_linkage_target.
3040 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
3041 Pass it to find_solib_trampoline_target. Read registers from FRAME
3042 instead of using read_register.
3044 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
3047 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3049 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
3051 * gdbarch.c, gdbarch.h: Regenerate.
3052 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
3054 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
3055 registers from FRAME instead of using read_register.
3056 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3057 to alpha_next_pc. Use get_frame_pc instead of read_pc.
3058 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
3061 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
3062 from FRAME instead of using read_register.
3063 (thumb_get_next_pc): Likewise.
3064 (arm_get_next_pc): Likewise.
3065 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3066 to arm_get_next_pc. Use get_frame_pc instead of read_register.
3067 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
3070 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
3071 from FRAME instead of using read_register.
3072 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3073 to find_step_target.
3075 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
3076 from FRAME instead of using read_register / read_signed_register.
3077 (extended_mips16_next_pc): Likewise.
3078 (mips16_next_pc): Likewise.
3079 (mips_next_pc): Likewise.
3080 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3081 to mips_next_pc. Use get_frame_pc instead of read_pc.
3082 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
3085 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
3086 of current frame. Read registers from FRAME.
3087 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
3088 branch_dest. Use get_frame_pc instead of read_pc.
3089 (rs6000_software_single_step): Likewise.
3090 (bl_to_blrl_insn_p): Do not call branch_dest.
3091 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
3094 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
3095 Read registers from FRAME instead of current regcache.
3096 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
3097 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
3098 * sparc-tdep.c (sparc_address_from_register): Remove.
3099 (sparc_analyze_control_transfer): Pass FRAME argument instead of
3100 GDBARCH. Pass FRAME to step_trap callback.
3101 (sparc_step_trap): Add FRAME argument.
3102 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
3103 to sparc_analyze_control_transfer. Read registers from FRAME instead
3104 of calling sparc_address_from_register.
3105 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
3107 (sparc_address_from_register): Remove prototype.
3108 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
3109 (sparcnbsd_step_trap): Add FRAME argument.
3111 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
3112 by FRAME. Read registers from FRAME instead of REGCACHE.
3114 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3116 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
3117 instead of calling read_register.
3119 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
3120 calling write_register.
3122 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
3123 calling write_register.
3125 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
3126 instead of calling read_register.
3127 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
3128 instead of calling read_register and write_register.
3130 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
3131 instead of current_regcache.
3133 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
3134 of calling write_register.
3135 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
3136 parameter instead of current_regcache.
3138 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
3139 instead of calling read_register.
3140 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
3141 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
3142 (mips_n32n64_push_dummy_call): Likewise.
3143 (mips_o32_push_dummy_call): Likewise.
3144 (mips_o64_push_dummy_call): Likewise.
3146 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
3147 parameter instead of current_regcache.
3149 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
3150 Use it instead of read_register and write_register.
3151 (xtensa_register_read_masked): Likewise.
3152 (xtensa_pseudo_register_read): Update call.
3153 (xtensa_pseudo_register_write): Likewise.
3154 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
3155 instead of calling read_register.
3156 (xtensa_push_dummy_call): Update comment.
3158 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3160 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3161 by frame_unwind_register_signed calls.
3162 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3163 frame allocations when called with NULL NEXT_FRAME parameter.
3164 (read_next_frame_reg): Remove.
3166 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3167 instead of reading the FPSCR register.
3168 (sh_frame_cache): Pass unwound FPSCR register value to
3169 sh_analyze_prologue.
3170 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3172 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3173 instead of reading the CTBP register.
3174 (v850_frame_cache): Pass unwound CTBP register value to
3175 v850_analyze_prologue.
3177 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3179 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3180 * sh-tdep.c (sh_show_regs): Likewise.
3181 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3182 (sh_generic_show_regs): Add FRAME parameter. Use register
3183 values from that frame instead of calling read_register.
3184 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3185 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3186 sh_dsp_show_regs): Likewise.
3187 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3188 sh64_show_regs): Likewise.
3190 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3192 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3193 current regcache instead of calling read_register.
3195 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3197 * mep-tdep.c (current_me_module): Read from current regcache
3198 instead of calling read_register.
3199 (current_options): Likewise.
3201 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3203 * cris-tdep.c (cris_stopped_data_address): Read register values
3204 from current frame instead of calling read_register.
3205 * frv-tdep.c (frv_stopped_data_address): Likewise.
3207 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3209 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3210 instead of write_register (PC_REGNUM, ...).
3212 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3214 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3215 explaining why the PC adjustment code is necessary.
3217 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3219 * m68k-tdep.h (enum m68k_flavour): New.
3220 (struct gdbarch_tdep): New fields
3221 float_return, flavour and fpregs_present.
3222 * m68k-tdep.c (m68k_register_type): Use
3223 fpregs_present and conditionalize floating
3224 registers type on flavour.
3225 (m68k_register_names): New.
3226 (m68k_register_name): Use the above.
3227 (m68k_convert_register_p): Consult fpregs_present.
3228 (m68k_register_to_value, m68k_value_to_register):
3229 Use register_type to obtain the type of floating
3231 (m68k_svr4_extract_return_value): Check tdep->float_return.
3232 Use register_type to get the type of floating
3234 (m68k_svr4_store_return_value): Likewise.
3235 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3236 (m68k_analyze_register_saves): Likewise.
3237 (m68k_gdbarch_init): Extract infromation
3238 from XML description, if present. Guess coldfire by
3239 looking at the file, if present. Conditionalize
3240 setting of long double format. Set decr_pc_after_break
3241 to 2 on coldfire and fido. Enable XML-driven
3242 register description.
3243 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3244 size of tdep->fpreg_type, as opposed to hardcoded value.
3245 * Makefile.in (m68k-tdep.o): Update dependencies.
3247 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3249 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3250 qXfer:spu:write remote packet types.
3252 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3254 * xml-tdesc.c (tdesc_start_target): New.
3255 (target_attributes): New.
3256 (tdesc_elements): Use it.
3257 * features/gdb-target.dtd: Add #FIXED version attribute for
3260 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3262 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3264 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3266 * fork-child.c (fork_inferior): Update comment.
3268 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3270 * features/Makefile: Generate regformats for mips-linux and
3272 * features/sort-regs.xsl: Correct typo.
3273 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3274 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3277 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3279 * config/mips/linux.mh (TDEP_XML): New.
3280 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3281 * mips-linux-nat.c (mips_linux_register_addr): Handle
3282 MIPS_RESTART_REGNUM.
3283 (mips64_linux_register_addr): Likewise.
3284 (super_xfer_partial, mips_linux_xfer_partial): New.
3285 (_initialize_mips_linux_nat): Add them to the target_ops.
3286 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3287 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3288 (mips_linux_o32_sigframe_init)
3289 (mips_linux_n32n64_sigframe_init): Likewise.
3290 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3291 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3292 "org.gnu.gdb.mips.linux" feature.
3293 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3294 (mips_linux_restart_reg_p): New prototype.
3295 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3296 initialization routine.
3297 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3299 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3301 * Makefile.in (mips-tdep.o): Update.
3302 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3303 (mips_n32_n64_aliases, mips_register_aliases): New.
3304 (mips_register_name): Call tdesc_register_name.
3305 (mips_tdesc_register_reggroup_p): New.
3306 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3307 (mips_gdbarch_init): Add target-described register support.
3308 Register aliases for register names.
3309 * target-descriptions.c (tdesc_register_name): Make global.
3310 (tdesc_register_in_reggroup_p): New function, broken out from
3311 tdesc_register_reggroup_p.
3312 (tdesc_register_reggroup_p): Use it.
3313 * target-descriptions.h (tdesc_register_name)
3314 (tdesc_register_in_reggroup_p): New prototypes.
3315 * NEWS: Correct formatting. Mention MIPS register support.
3316 * features/mips-cp0.xml, features/mips-fpu.xml,
3317 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3318 features/mips64-cpu.xml: New files.
3320 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3322 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3323 * valops.c (value_cast): Likewise.
3324 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3325 * ui-out.c (ui_out_field_core_addr): Likewise.
3326 * tracepoint.c (tracepoints_info): Likewise.
3327 * symtab.c (print_msymbol_info): Likewise.
3328 * solib-irix.c (irix_current_sos)
3329 (irix_open_symbol_file_object): Likewise.
3330 * remote.c (build_remote_gdbarch_data): Likewise.
3331 * prologue-value.c (make_pv_area): Likewise.
3332 * procfs.c (info_mappings_callback): Likewise.
3333 * printcmd.c (print_scalar_formatted)
3334 (deprecated_print_address_numeric): Likewise.
3335 * memattr.c (mem_info_command): Likewise.
3336 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3337 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3338 * exec.c (print_section_info): Likewise.
3339 * dwarf2read.c (read_subrange_type): Likewise.
3340 * dwarf2loc.c (find_location_expression): Likewise.
3341 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3342 (signed_address_type, execute_stack_op): Likewise.
3343 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3344 * gdbarch.c, gdbarch.h: Regenerate.
3346 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3348 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3349 * arch-utils.c (show_architecture): Likewise.
3350 * remote-mips.c (mips_open): Likewise
3351 * nto-tdep.c (nto_find_and_open_solib)
3352 (nto_init_solib_absolute_prefix): Likewise.
3353 * nto-procfs (procfs_open): Likewise.
3354 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3355 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3356 * gdbarch.c, gdbarch.h: Regenerate.
3358 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3360 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3361 * gdbtypes.c (build_flt): Likewise.
3362 * gdbarch.c, gdbarch.h: Regenerate.
3364 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3366 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3367 gdbarch_breakpoint_from_pc.
3368 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3369 * remote.c (remote_insert_breakpoint)
3370 (remote_insert_hw_breakpoint): Likewise.
3371 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3372 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3373 * breakpoint.h (bp_target_info): Likewise (comment).
3374 * breakpoint.c (read_memory_nobpt): Likewise.
3375 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3376 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3377 * gdbarch.c, gdbarch.h: Regenerate.
3379 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3381 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3382 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3383 * solib-pa64.c (read_dynamic_info): Likewise.
3384 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3385 * solib.c (info_sharedlibrary_command): Likewise.
3386 * s390-nat.c (SUBOFF): Likewise.
3387 * p-valprint.c (pascal_val_print): Likewise.
3388 * procfs.c (info_proc_mappings): Likewise.
3389 * printcmd.c (decode_format): Likewise.
3390 * nto-tdep.c (nto_truncate_ptr): Likewise.
3391 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3392 (mips64_linux_get_longjmp_target): Likewise.
3393 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3394 * jv-valprint.c (java_value_print): Likewise.
3395 * jv-lang.c (get_java_object_header_size): Likewise.
3396 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3397 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3398 (hppa_hpux_unwind_adjust_stub): Likewise.
3399 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3400 * gdbtypes.c (make_pointer_type, make_reference_type)
3401 (smash_to_memberptr_type): Likewise.
3402 * gdbarch.c, gdbarch.h: Regenerate.
3404 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3406 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3407 (print_gp_register_row): Stop before printing a register bigger
3408 than the ABI register size.
3409 (mips_print_registers_info): Update call to mips_print_register.
3411 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3413 * expression.h (enum exp_opcode): Document a register name for
3415 * parse.c (write_dollar_variable): Write the register name for
3417 (operator_length_standard): Expect the register name following
3419 * ada-lang.c (resolve_subexp): Likewise.
3420 * ax-gdb.c (gen_expr): Likewise.
3421 * eval.c (evaluate_subexp_standard): Likewise.
3422 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3424 * tracepoint.c (encode_actions): Likewise.
3426 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3428 * utils.c (set_screen_size): Use INT_MAX for default columns.
3430 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3432 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3433 qXfer:spu:write packet types.
3435 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3437 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3438 * gdbarch.c, gdbarch.h: Regenerate.
3440 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3442 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3443 gdbarch_stab_reg_to_regnum.
3444 * stabsread.c (define_symbol): Likewise.
3445 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3446 gdbarch_ecoff_reg_to_regnum.
3447 * mdebugread.c (parse_symbol): Likewise.
3448 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3449 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3450 gdbarch_dwarf_reg_to_regnum.
3451 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3452 * coffread.c (process_coff_symbol): Likewise.
3453 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3454 gdbarch_dwarf2_reg_to_regnum.
3455 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3456 (locexpr_describe_location): Likewise.
3457 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3458 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3459 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3460 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3461 * gdbarch.c, gdbarch.h: Regenerate.
3463 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3465 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3466 gdbarch_smash_text_address.
3467 * somread.c (som_symtab_read): Likewise.
3468 * elfread.c (record_minimal_symbol): Likewise.
3469 * dbxread.c (process_one_symbol): Likewise.
3470 * coffread.c (coff_symtab_read): Likewise.
3471 * gdbarch.c, gdbarch.h: Regenerate.
3473 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3475 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3476 * findvar.c (value_from_register): Likewise.
3477 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3478 * valops.c (value_assign): Likewise.
3479 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3480 gdbarch_convert_register_p.
3481 * findvar.c (value_from_register): Likewise.
3482 * valops.c (value_assign): Likewise.
3483 * gdbarch.c, gdbarch.h: Regenerate.
3485 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3487 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3488 gdbarch_register_sim_regno.
3489 * sim-regno.h (sim_regno): Likewise (comment).
3490 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3491 * gdbarch.c, gdbarch.h: Regenerate.
3493 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3495 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3496 gdbarch_virtual_frame_pointer.
3497 * tracepoint.c (encode_actions): Likewise.
3498 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3499 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3500 * gdbarch.c, gdbarch.h: Regenerate.
3502 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3504 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3505 * p-lang.c (pascal_create_fundamental_type): Likewise.
3506 * objc-lang.c (objc_create_fundamental_type): Likewise.
3507 * mdebugread.c (_initialize_mdebugread): Likewise.
3508 * m2-lang.c (m2_create_fundamental_type)
3509 (_initialize_m2_language): Likewise.
3510 * gdbtypes.c (build_gdbtypes): Likewise.
3511 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3512 * doublest.c (floatformat_from_length): Likewise.
3513 * c-lang.c (c_create_fundamental_type): Likewise.
3514 * ada-lang.c (ada_create_fundamental_type)
3515 (ada_language_arch_info): Likewise.
3516 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3517 * value.c (unpack_double): Likewise (comment).
3518 * gdbtypes.c (build_gdbtypes): Likewise.
3519 * doublest.c (floatformat_from_length): Likewise.
3520 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3521 * valarith.c (value_binop): Likewise.
3522 * p-lang.c (pascal_create_fundamental_type): Likewise.
3523 * objc-lang.c (objc_create_fundamental_type): Likewise.
3524 * mdebugread.c (_initialize_mdebugread): Likewise.
3525 * m2-lang.c (m2_create_fundamental_type): Likewise.
3526 * gdbtypes.c (build_gdbtypes): Likewise.
3527 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3528 * doublest.c (floatformat_from_length): Likewise.
3529 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3530 * c-lang.c (c_create_fundamental_type): Likewise.
3531 * ada-lex.l (processReal): Likewise.
3532 * ada-lang.c (ada_create_fundamental_type)
3533 (ada_language_arch_info): Likewise.
3534 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3535 * value.c (unpack_double): Likewise (comment).
3536 * gdbtypes.c (build_gdbtypes): Likewise.
3537 * doublest.c (floatformat_from_length): Likewise.
3538 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3539 gdbarch_long_double_bit.
3540 * p-lang.c (pascal_create_fundamental_type): Likewise.
3541 * objc-lang.c (objc_create_fundamental_type): Likewise.
3542 * m2-lang.c (m2_create_fundamental_type): Likewise.
3543 * gdbtypes.c (build_gdbtypes): Likewise.
3544 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3545 * doublest.c (floatformat_from_length): Likewise.
3546 * c-lang.c (c_create_fundamental_type): Likewise.
3547 * ada-lex.l (processReal): Likewise.
3548 * ada-lang.c (ada_create_fundamental_type)
3549 (ada_language_arch_info): Likewise.
3550 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3551 gdbarch_long_double_format.
3552 * gdbtypes.c (build_gdbtypes): Likewise.
3553 * doublest.c (floatformat_from_length): Likewise.
3554 * gdbarch.c, gdbarch.h: Regenerate.
3556 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3558 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3559 * ada-lang.c (ada_create_fundamental_type)
3560 (ada_language_arch_info): Likewise.
3561 * c-lang.c (c_create_fundamental_type): Likewise.
3562 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3563 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3564 * m2-lang.c (m2_create_fundamental_type): Likewise.
3565 * objc-lang.c (objc_create_fundamental_type): Likewise.
3566 * p-lang.c (pascal_create_fundamental_type): Likewise.
3567 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3568 * c-exp.y (parse_number): Likewise.
3569 * objc-exp.y (parse_number): Likewise.
3570 * ada-lex.l (processInt): Likewise.
3571 * f-exp.y (parse_number): Likewise.
3572 * p-exp.y (parse_number): Likewise.
3573 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3574 (gdbtypes_post_init, build_gdbtypes): Likewise.
3575 * p-lang.c (pascal_create_fundamental_type): Likewise.
3576 * parse.c (build_parse): Likewise.
3577 * xcoffread.c (_initialize_xcoffread): Likewise.
3578 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3579 (read_range_type): Likewise.
3580 * objc-lang.c (objc_create_fundamental_type): Likewise.
3581 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3582 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3583 (m2_create_fundamental_type): Likewise.
3584 * c-lang.c (c_create_fundamental_type): Likewise.
3585 * coffread.c (coff_read_enum_type): Likewise.
3586 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3587 * dwarf2read.c (new_symbol): Likewise.
3588 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3589 * c-exp.y (parse_number): Likewise.
3590 * objc-exp.y (parse_number): Likewise.
3591 * ada-lex.l (processInt): Likewise.
3592 * f-exp.y (parse_number): Likewise.
3593 * p-exp.y (parse_number): Likewise.
3594 * valarith.c (value_binop): Likewise.
3595 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3596 * ada-lang.c (ada_create_fundamental_type)
3597 (ada_language_arch_info): Likewise.
3598 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3599 * symfile.c (TARGET_LONG_BYTES): Likewise.
3600 * p-lang.c (pascal_create_fundamental_type): Likewise.
3601 * objc-lang.c (objc_create_fundamental_type): Likewise.
3602 * m2-lang.c (m2_create_fundamental_type): Likewise.
3603 * f-lang.c (f_create_fundamental_type): Likewise.
3604 * c-lang.c (c_create_fundamental_type): Likewise.
3605 * coffread.c (decode_base_type): Likewise.
3606 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3607 * c-exp.y (parse_number): Likewise.
3608 * objc-exp.y (parse_number): Likewise.
3609 * p-exp.y (parse_number): Likewise.
3610 * ada-lang.c (ada_create_fundamental_type)
3611 (ada_language_arch_info): Likewise.
3612 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3613 * stabsread.c (read_range_type): Likewise.
3614 * p-lang.c (pascal_create_fundamental_type): Likewise.
3615 * objc-lang.c (objc_create_fundamental_type): Likewise.
3616 * m2-lang.c (m2_create_fundamental_type): Likewise.
3617 * f-lang.c (f_create_fundamental_type): Likewise.
3618 * c-lang.c (c_create_fundamental_type): Likewise.
3619 * gdbarch.c, gdbarch.h: Regenerate.
3621 2007-06-12 Andreas Schwab <schwab@suse.de>
3623 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3624 (struct frame_unwind): Add dealloc_cache.
3625 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3627 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3628 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3629 (libunwind_frame_unwind): Set dealloc_cache.
3630 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3632 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3633 Markus Deuling <deuling@de.ibm.com>
3635 * remote.c (remote_write_qxfer): New function.
3636 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3637 (remote_read_qxfer): Do not cache empty objects.
3638 (_initialize_remote): Add PACKET_qXfer_spu_read and
3639 PACKET_qXfer_spu_write.
3641 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3643 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3644 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3646 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3647 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3648 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3649 * spu-tdep.c (infospucmdlist): New variable.
3650 (spu_register_name): Handle additional pseudo registers.
3651 (spu_register_type): Likewise.
3652 (spu_pseudo_register_read): Likewise.
3653 (spu_pseudo_register_write): Likewise.
3654 (spu_pseudo_register_read_spu): New function.
3655 (spu_pseudo_register_write_spu): Likewise.
3656 (info_spu_event_command): New function.
3657 (info_spu_signal_command): Likewise.
3658 (info_spu_mailbox_list): Likewise.
3659 (info_spu_mailbox_command): Likewise.
3660 (spu_mfc_get_bitfield): Likewise.
3661 (info_spu_dma_cmdlist): Likewise.
3662 (info_spu_dma_command): Likewise.
3663 (info_spu_proxydma_command): Likewise.
3664 (info_spu_command): Likewise.
3665 (_initialize_spu_tdep): Install "info spu" commands.
3667 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3669 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3670 accessing non-seekable spufs files.
3672 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3674 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3675 gdbarch_skip_trampoline_code.
3676 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3677 * objc-lang.c (objc_skip_trampoline)
3678 (objc_submethod_helper_data): Likewise.
3679 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3680 * infrun.c (handle_inferior_event): Likewise.
3681 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3682 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3683 gdbarch_in_solib_return_trampoline.
3684 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3685 * infrun.c (handle_inferior_event): Likewise.
3686 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3687 * gdbarch.c, gdbarch.h: Regenerate.
3689 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3691 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3692 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3693 * linespec.c (minsym_found): Likewise.
3694 * infrun.c (step_into_function): Likewise.
3695 * gdbarch.c, gdbarch.h: Regenerate.
3697 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3699 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3700 * valops.c (value_allocate_space_in_inferior): Likewise.
3701 * gdbarch.c, gdbarch.h: Regenerate.
3703 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3705 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3706 gdbarch_memory_insert_breakpoint.
3707 * mem-break.c (memory_insert_breakpoint): Likewise.
3708 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3709 gdbarch_memory_remove_breakpoint.
3710 * mem-break.c (memory_remove_breakpoint): Likewise.
3711 * gdbarch.c, gdbarch.h: Regenerate.
3713 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3715 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3716 gdbarch_fetch_tls_load_module_address.
3717 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3718 gdbarch_fetch_tls_load_module_address_p.
3719 * gdbarch.c, gdbarch.h: Regenerate.
3721 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3723 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3724 gdbarch_decr_pc_after_break.
3725 * tracepoint.c (trace_dump_command): Likewise.
3726 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3727 * linux-thread-db.c (check_event): Likewise.
3728 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3729 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3730 * frame.h: Likewise (comment).
3731 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3732 * aix-thread.c (aix_thread_wait): Likewise.
3733 * gdbarch.c, gdbarch.h: Regenerate.
3735 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3737 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3738 gdbarch_address_class_type_flags.
3739 * dwarf2read.c (read_tag_pointer_type): Likewise.
3740 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3741 gdbarch_address_class_type_flags_p.
3742 * dwarf2read.c (read_tag_pointer_type): Likewise.
3743 * gdbarch.c, gdbarch.h: Regenerate.
3745 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3747 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3748 * value.c (value_as_address): Likewise (comment).
3749 * remote-mips.c (common_breakpoint): Likewise.
3750 * regcache.c (read_pc_pid): Likewise.
3751 * printcmd.c (do_one_display): Likewise.
3752 * monitor.c (monitor_write_memory, monitor_read_memory)
3753 (monitor_insert_breakpoint): Likewise.
3754 * mips-tdep.c (heuristic_proc_start): Likewise.
3755 * infrun.c (insert_step_resume_breakpoint_at_frame)
3756 (insert_step_resume_breakpoint_at_caller): Likewise.
3757 * buildsym.c (record_line): Likewise.
3758 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3759 (arm_get_next_pc): Likewise.
3760 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3761 (store_regs): Likewise.
3762 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3763 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3764 * gdbarch.c, gdbarch.h: Regenerate.
3766 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3768 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3769 * tracepoint.c (scope_info): Likewise.
3770 * target.c (debug_print_register): Likewise.
3771 * stack.c (frame_info): Likewise.
3772 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3773 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3774 (sh64_media_print_registers_info)
3775 (sh64_compact_print_registers_info): Likewise.
3776 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3777 * remote-sim.c (gdbsim_fetch_register): Likewise.
3778 * remote.c (packet_reg): Likewise (comment).
3779 * reggroups.c (default_register_reggroup_p): Likewise.
3780 * regcache.c (regcache_dump): Likewise.
3781 * printcmd.c (address_info): Likewise.
3782 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3783 * mt-dep.c (mt_registers_info): Likewise.
3784 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3785 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3786 (mips_read_fp_register_double, mips_print_fp_register)
3787 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3788 (mips_register_sim_regno): Likewise.
3789 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3790 * inf-ptrace.c (inf_ptrace_fetch_register)
3791 (inf_ptrace_store_register): Likewise.
3792 * infcmd.c (default_print_registers_info): Likewise.
3793 * ia64-linux-nat.c (ia64_linux_fetch_register)
3794 (ia64_linux_store_register): Likewise.
3795 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3796 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3797 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3798 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3799 (hppa_hpux_store_register): Likewise.
3800 * findvar.c (locate_var_value): Likewise.
3801 * dwarf2loc.c (locexpr_describe_location): Likewise.
3802 * dwarf2-frame.c (execute_cfa_program): Likewise.
3803 * arm-tdep.c (arm_push_dummy_call): Likewise.
3804 * arch-utils.c (legacy_register_sim_regno): Likewise.
3805 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3806 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3807 * mi/mi-main.c (mi_cmd_data_list_register_names)
3808 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3809 (mi_cmd_data_write_register_values): Likewise.
3810 * gdbarch.c, gdbarch.h: Regenerate.
3812 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3814 * target-memory.c (blocks_to_erase): Correct off-by-one error.
3816 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
3818 * remote.c (process_g_packet): Don't check size.
3819 * gdbarch.sh: Remove register_bytes_ok.
3820 * gdbarch.c: Regenerated.
3821 * gdbarch.h: Regenerated.
3822 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3823 (m68k_register_bytes_ok): Remove.
3824 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3826 2007-06-06 Andreas Schwab <schwab@suse.de>
3828 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3829 (destroy_addr_space_name): Define.
3830 (libunwind_load): Get address of destroy_addr_space function.
3831 (libunwind_frame_cache): Destroy unw_addr_space_t object before
3832 returning unsuccessfully.
3833 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3835 (libunwind_sigtramp_frame_sniffer): Likewise.
3836 (libunwind_get_reg_special): Likewise.
3838 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3840 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3841 gdbarch_fetch_pointer_argument.
3842 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3843 * gdbarch.c, gdbarch.h: Regenerate.
3845 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3847 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3848 gdbarch_have_nonsteppable_watchpoint.
3849 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3850 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3851 gdbarch_cannot_step_breakpoint.
3852 * infrun.c (resume): Likewise.
3853 * gdbarch.c, gdbarch.h: Regenerate.
3855 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3857 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3858 * stack.c (print_frame_args): Likewise.
3859 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3860 * stack.c (print_args_stub, frame_info): Likewise.
3861 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3862 * stack.c (print_args_stub, frame_info): Likewise.
3863 * gdbarch.c, gdbarch.h: Regenerate.
3865 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3867 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3868 gdbarch_coff_make_msymbol_special.
3869 * coffread.c (coff_symtab_read): Likewise.
3870 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3871 gdbarch_elf_make_msymbol_special.
3872 * elfread.c (elf_symtab_read): Likewise.
3873 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3874 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3875 * gdbarch.c, gdbarch.h: Regenerate.
3877 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3879 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3880 gdbarch_frame_red_zone_size.
3881 * gdbarch.c, gdbarch.h: Regenerate.
3883 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3885 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3886 * infcall.c (call_function_by_hand): Likewise.
3887 * gcore.c (derive_stack_segment): Likewise.
3888 * frame.c (frame_id_inner): Likewise.
3889 * arch-utils.c (core_addr_lessthan): Likewise (comment).
3890 * ada-lang.c (ensure_lval): Likewise.
3891 * gdbarch.c, gdbarch.h: Regenerate.
3893 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3895 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3896 gdbarch_address_to_pointer.
3897 * findvar.c (store_typed_address): Likewise.
3898 * gdbtypes.c (make_pointer_type): Likewise (comment).
3899 * procfs.c (procfs_address_to_host_pointer): Likewise.
3900 * std-regs.c (value_of_builtin_frame_reg): Likewise.
3901 (value_of_builtin_frame_fp_reg): Likewise.
3902 (value_of_builtin_frame_pc_reg): Likewise.
3903 * utils.c (paddress): Likewise (comment).
3904 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3905 gdbarch_pointer_to_address.
3906 * findvar.c (extract_typed_address): Likewise.
3907 * gdbtypes.c (make_pointer_type): Likewise (comment).
3908 * valops.c (value_cast): Likewise (comment).
3909 * gdbarch.c, gdbarch.h: Regenerate.
3911 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3913 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3914 * infrun.c (handle_inferior_event): Likewise.
3915 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3916 gdbarch_get_longjmp_target_p.
3917 * breakpoint.c (breakpoint_re_set): Likewise.
3918 * infrun.c (handle_inferior_event): Likewise.
3919 * gdbarch.c, gdbarch.h: Regenerate.
3921 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3923 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3924 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3925 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3926 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3927 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3928 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3929 find_stub_with_shl_get, cover_find_stub_with_shl_get,
3930 initialize_hp_cxx_exception_support, child_enable_exception_callback,
3931 current_ex_event, child_get_current_exception_event): Remove.
3932 (hppa_hpux_inferior_created): Remove.
3933 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3935 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
3936 (deprecated_exception_support_initialized): Remove.
3937 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
3938 (deprecated_exception_support_initialized): Remove.
3939 (breakpoint_init_inferior): Remove handling of non-zero
3940 deprecated_exception_catchpoints_are_fragile.
3942 * symtab.h (deprecated_hp_som_som_object_present): Remove.
3943 * symtab.c (deprecated_hp_som_som_object_present): Remove.
3944 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
3945 deprecated_hp_som_som_object_present.
3946 * eval.c (evaluate_subexp_standard): Likewise.
3947 * valops.c (value_cast): Likewise.
3949 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
3950 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
3951 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
3953 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3955 * objfiles.h (ImportEntry, ExportEntry): Remove types.
3956 (struct objfile): Remove import_list, import_list_size,
3957 export_list, export_list_size members.
3958 (is_in_import_list): Remove prototype.
3959 * objfiles.c (is_in_import_list): Remove.
3960 * somread.c (init_import_symbols, init_export_symbols): Remove.
3961 (som_symfile_read): Do not call init_import_symbols. Do not
3962 set objfile->export_list and objfile->export_list_size.
3964 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3966 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
3967 Use the original objfile if necessary.
3969 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
3971 * defs.h (ldirname): New prototype.
3972 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
3974 * utils.c (ldirname): New function.
3975 * xml-tdesc.c (file_read_description_xml): Use ldirname.
3977 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3979 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
3981 2007-06-01 Joel Brobecker <brobecker@adacore.com>
3983 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
3985 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3987 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
3989 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3991 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
3992 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
3993 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
3994 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
3995 (ppc_linux_in_sigtramp, insn_is_sigreturn,
3996 ppc_linux_at_sigtramp_return_path): Remove.
3998 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4000 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
4001 (xtensa_register_write_masked, xtensa_register_read_masked)
4002 (xtensa_extract_return_value, xtensa_store_return_value
4003 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
4004 TARGET_BYTE_ORDER by gdbarch_byte_order.
4005 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
4006 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
4007 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
4008 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
4009 (sh64_push_dummy_call, sh64_extract_return_value)
4010 (sh64_store_return_value, sh64_register_convert_to_virtual)
4011 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
4012 (sh64_pseudo_register_write, sh64_do_fp_register)
4013 (sh64_frame_prev_register): Likewise.
4014 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
4015 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
4016 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
4017 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
4018 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
4019 * ppc-linux-nat.c (store_register): Likewise.
4020 * nto-tdep.c (nto_find_and_open_solib)
4021 (nto_init_solib_absolute_prefix): Likewise.
4022 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
4023 (mips_convert_register_p, mips_eabi_push_dummy_call)
4024 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
4025 (mips_o32_push_dummy_call, mips_o32_return_value)
4026 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
4027 (mips_read_fp_register_single, mips_read_fp_register_double)
4028 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
4029 (mips_breakpoint_from_pc): Likewise.
4030 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
4031 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
4032 (mips_linux_o32_sigframe_init): Likewise.
4033 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4034 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
4035 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
4036 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
4037 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
4038 * coffread.c (process_coff_symbol): Likewise.
4039 * arm-tdep.c (convert_from_extended, convert_to_extended)
4040 (gdb_print_insn_arm): Likewise.
4042 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4044 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
4045 * i386-tdep.c (i386_dbx_reg_to_regnum)
4046 (i386_svr4_reg_to_regnum): Likewise.
4047 * inf-ptrace.c (inf_ptrace_fetch_registers)
4048 (inf_ptrace_store_registers): Likewise.
4049 * corelow.c (get_core_registers): Likewise.
4050 * i386-linux-nat.c (supply_gregset, fill_gregset)
4051 (i386_linux_fetch_inferior_registers)
4052 (i386_linux_store_inferior_registers): Likewise.
4053 * remote.c (init_remote_state,packet_reg_from_regnum)
4054 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
4055 (remote_prepare_to_store,store_registers_using_G)
4056 (remote_store_registers,remote_arch_state): Likewise.
4057 * tracepoint.c (encode_actions): Likewise.
4058 * mi/mi-main.c (mi_cmd_data_list_register_names)
4059 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4060 (mi_cmd_data_write_register_values): Likewise.
4061 * tui/tui-regs.c (tui_show_register_group)
4062 (tui_show_register_group): Likewise.
4063 * xtensa-tdep.h (FP_ALIAS): Likewise.
4064 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
4065 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
4066 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
4067 * win32-nat.c (do_win32_fetch_inferior_registers)
4068 (do_win32_store_inferior_registers,fetch_elf_core_registers
4069 * user-regs.h: Likewise (comment).
4070 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4071 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4072 * target-descriptions.h: Likewise (comment).
4073 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
4074 * target.c (debug_print_register): Likewise.
4075 * stack.c (frame_info): Likewise.
4076 * stabsread.c (define_symbol): Likewise.
4077 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
4078 (sh64_media_print_registers_info)
4079 (sh64_compact_print_registers_info): Likewise.
4080 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4081 * rs6000-nat.c (fetch_register,store_register): Likewise.
4082 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
4083 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
4084 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
4085 * remote-m32r-sdi.c (m32r_fetch_registers)
4086 (m32r_store_registers): Likewise.
4087 * reggroups.c (default_register_reggroup_p): Likewise.
4088 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
4089 (regcache_restore,regcache_dump): Likewise.
4090 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
4091 * mips-tdep.c (mips_xfer_register,mips_register_name)
4092 (mips_register_reggroup_p,mips_pseudo_register_read)
4093 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
4094 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
4095 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
4096 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
4097 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
4098 (print_gp_register_row,mips_print_registers_info)
4099 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4100 (mips_register_sim_regno): Likewise.
4101 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
4102 (mips_linux_n32n64_sigframe_init): Likewise.
4103 * mips-linux-nat.c (mips_linux_register_addr)
4104 (mips64_linux_register_addr): Likewise.
4105 * findvar.c (value_of_register): Likewise.
4106 * infcmd.c (default_print_registers_info,registers_info)
4107 (print_vector_info,print_float_info): Likewise.
4108 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
4109 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4110 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4111 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
4112 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4113 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
4114 (ia64_cannot_store_register,ia64_linux_fetch_registers)
4115 (ia64_linux_store_registers): Likewise.
4116 * hpux-thread.c (hpux_thread_fetch_registers)
4117 (hpux_thread_store_registers): Likewise.
4118 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
4119 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
4120 (h8300_register_type): Likewise.
4121 * dwarf2-frame.c (dwarf2_frame_cache)
4122 (dwarf2_frame_state_alloc_regs): Likewise.
4123 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
4124 (cris_cannot_store_register,crisv32_cannot_fetch_register)
4125 (crisv32_cannot_store_register,cris_register_name): Likewise.
4126 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
4127 * arch-utils.c (legacy_register_sim_regno)
4128 (legacy_virtual_frame_pointer): Likewise.
4129 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
4130 * arm-tdep.h: Likewise (comment).
4131 * frv-tdep.c (frv_register_sim_regno): Likewise.
4132 * m68klinux-nat.c (old_fetch_inferior_registers)
4133 (old_store_inferior_registers): Likewise.
4134 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4135 * irix5-nat.c (fetch_core_registers): Likewise.
4136 * hppa-tdep.c (hppa_frame_cache): Likewise.
4137 * hppa-linux-nat.c (hppa_linux_register_addr)
4138 (hppa_linux_fetch_inferior_registers)
4139 (hppa_linux_store_inferior_registers): Likewise.
4140 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
4141 (hppa_hpux_store_inferior_registers): Likewise.
4142 * amd64-nat.c (amd64_native_gregset_reg_offset)
4143 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
4144 * dbug-rom.c (dbug_regname): Likewise.
4145 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
4146 (HARD_PAGE_REGNUM (comment)): Likewise.
4147 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
4148 * i386-tdep.c (i386_dbx_reg_to_regnum)
4149 (i386_svr4_reg_to_regnum): Likewise.
4150 * mi/mi-main.c (mi_cmd_data_list_register_names)
4151 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4152 (mi_cmd_data_write_register_values): Likewise.
4153 * gdbarch.c, gdbarch.h: Regenerate.
4154 * tui/tui-regs.c (tui_show_register_group): Likewise.
4155 * xtensa-tdep.h (FP_ALIAS): Likewise.
4156 * user-regs.h: Likewise (comment).
4157 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4158 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4159 * target-descriptions.h: Likewise (comment).
4160 * target.c (debug_print_register): Likewise.
4161 * stack.c (frame_info): Likewise.
4162 * stabsread.c (define_symbol): Likewise.
4163 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4164 (sh64_compact_print_registers_info): Likewise.
4165 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4166 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4167 (regcache_restore,regcache_dump): Likewise.
4168 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4169 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4170 (mips_stab_reg_to_regnum): Likewise.
4171 * findvar.c (value_of_register): Likewise.
4172 * infcmd.c (default_print_registers_info,registers_info)
4173 (print_vector_info,print_float_info): Likewise.
4174 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4175 * h8300-tdep.c (h8300_register_type): Likewise.
4176 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4177 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4178 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4179 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4180 * parse.c: Remove comment.
4181 * gdbarch.c, gdbarch.h: Regenerate
4183 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4185 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4186 gdbarch_cannot_fetch_register.
4187 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4188 * hppa-linux-nat.c (fetch_register): Likewise.
4189 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4190 * m68klinux-nat.c (fetch_register): Likewise.
4191 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4193 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4194 gdbarch_cannot_store_register.
4195 * hppa-linux-nat.c (store_register): Likewise.
4196 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4197 * regcache.c (regcache_raw_write): Likewise.
4198 * m68klinux-nat.c (store_register): Likewise.
4199 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4200 * gdbarch.c, gdbarch.h: Regenerate.
4202 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4204 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4205 * gdbarch.c, gdbarch.h: Regenerate.
4207 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4209 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4210 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4211 * gdbarch.c, gdbarch.h: Regenerate.
4213 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4215 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4216 * ax-gdb.c (gen_bitfield_ref): Likewise.
4217 * mi/mi-main.c (get_register): Likewise.
4218 * findvar.c (default_value_from_register, extract_signed_integer)
4219 (extract_unsigned_integer, extract_long_unsigned_integer)
4220 (store_signed_integer, store_unsigned_integer): Likewise.
4221 * regcache.c (regcache_dump): Likewise.
4222 * value.c (lookup_internalvar, value_of_internalvar)
4223 (set_internalvar): Likewise.
4225 * valprint.c (print_binary_chars, print_octal_chars)
4226 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4227 * infcmd.c (default_print_registers_info): Likewise.
4228 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4229 * stabsread.c (define_symbol): Likewise.
4230 * doublest.c (floatformat_from_length, floatformat_from_type)
4231 (extract_typed_floating, store_typed_floating): Likewise.
4232 * gdbarch.c, gdbarch.h: Regenerate.
4234 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4236 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4237 gdbarch_call_dummy_location.
4238 * infcall.c (call_function_by_hand): Likewise.
4239 * inferior.h: Change comment.
4240 * arch-utils.c: Change comment.
4241 * gdbarch.c, gdbarch.h: Regenerate.
4243 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4245 * solib-aix5.c: Delete.
4246 * Makefile.in (solib-aix5.o): Delete rule.
4248 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4250 * breakpoint.h (enum bpstat_what_main_action): Remove
4251 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4252 * infrun.c (process_event_stop_test): Do not check for it.
4254 2007-05-22 Chris Dearman <chris@mips.com>
4255 Maciej W. Rozycki <macro@mips.com>
4257 * ser-unix.c (show_serial_hwflow): New function.
4258 (hardwire_raw): Add hardware flow control support.
4259 (_initialize_ser_hardwire): Add "set/show remoteflow".
4260 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4261 * NEWS: Document the new command.
4263 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4265 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4266 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4267 define for i[[3456]]86-*-linux* native configurations.
4268 * config.in, configure: Regenerate.
4270 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4272 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4273 a core file. Add comment in the function description.
4275 2007-05-18 Caroline Tice <ctice@apple.com>
4277 * c-valprint.c (c_value_print): If the initialized field of the
4278 value struct is 0, print out "[uninitialized]" before the value.
4279 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4280 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4281 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4282 ctx->initialized appropriately. Verify no location op follows
4284 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4285 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4286 set_value_initialized.
4287 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4288 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4289 * value.c (struct value): New field, initialized.
4290 (allocate_value): Initialize new field.
4291 (set_value_initialized): New function.
4292 (value_initialized): New function.
4293 * value.h (value_initialized): New extern declaration.
4294 (set_value_initialized): Likewise.
4296 2007-05-18 Caroline Tice <ctice@apple.com>
4298 * MAINTAINERS (Write After Approval): Add self.
4300 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4302 * gdbtypes.c (make_reference_type): Preserve the type chain
4303 and set the length of all the variants of the pointer type.
4305 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4307 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4308 and set the length of all the variants of the pointer type.
4310 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4312 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4314 (mips_o64_push_dummy_call): Reformat a comment.
4316 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4318 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4319 (score_prologue_frame_base_address): Return fp to keep gdb print
4320 local variables correctly when debugging information is stabs.
4322 (score_analyze_prologue): For software watchpoint, fetch all the
4323 instructions from range [startaddr, pc] once and identify them locally
4324 to reduce memory access.
4325 (score_malloc_and_get_memblock, score_free_memblock)
4326 (score_adjust_memblock_ptr): New functions.
4327 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4329 (score_target_can_use_watch, score_stopped_by_watch)
4330 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4331 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4332 New functions for remote & local hw-watchpoint and hw-breakpoint.
4334 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4336 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4337 declarations as well.
4339 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4341 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4342 * config/arm/tm-embed.h: Delete file.
4344 * arm-tdep.h (arm_software_single_step): Declare.
4345 * arm-tdep.c (arm_software_single_step): Make global.
4346 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4348 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4349 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4350 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4351 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4353 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4354 allow defines to be overriden by TM file.
4355 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4356 change default to {0xbe,0xbe}.
4357 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4358 arm_obsd_thumb_be_breakpoint): New global variables.
4359 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4360 tdep->thumb_breakpoint_size.
4361 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4362 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4363 tdep->thumb_breakpoint_size.
4365 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4367 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4369 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4372 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4373 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4374 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4375 (mips_abi_regsize): Simplify.
4376 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4377 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4378 (mips_o32_return_value, mips_o64_push_dummy_call)
4379 (mips_o64_return_value): Propogate constant register sizes. Use the
4380 ABI register size instead of mips_stack_argsize.
4381 (mips_dump_tdep): Don't print mips_stack_argsize.
4382 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4385 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4387 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4388 * config/mips/tm-linux.h: Delete.
4389 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4390 (mips_linux_in_dynsym_resolve_code): Make static. Use
4391 svr4_in_dynsym_resolve_code.
4392 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4394 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4396 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4397 * Makefile.in (mips-linux-tdep.o): Update.
4398 * solib.c (set_solib_ops): New.
4399 (current_target_so_ops): Update comment.
4400 * solib.h (set_solib_ops): New prototype.
4402 2007-05-16 Chris Dearman <chris@mips.com>
4404 * printcmd.c (do_examine): Fix typos in a comment.
4406 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4408 * configure.ac: Allow sysroots to be relocated under $prefix as
4409 well as $exec_prefix.
4410 * configure: Regenerate.
4412 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4414 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4415 (offsetof): Do not define.
4416 (find_stub_with_shl_get): Use numerical value 3 instead of
4417 symbolic value TYPE_PROCEDURE.
4419 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4421 * gdb_proc_service.h (paddr_t): Delete typedef.
4422 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4423 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4424 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4425 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4426 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4427 * Makefile.in (proc-service.o): Update.
4429 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4431 * Makefile.in (mips-tdep.o): Update.
4432 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4435 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4437 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4438 instead of store_typed_address.
4439 * value.c (pack_long): New.
4440 (value_from_longest): Use it.
4441 * value.h (pack_long): New prototype.
4443 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4445 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4446 DW_EH_PE_signed if appropriate.
4448 2007-05-14 Paul Brook <paul@codesourcery.com>
4449 Daniel Jacobowitz <dan@codesourcery.com>
4451 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4453 (dwarf_decode_lines): Check for line info without a file.
4455 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4457 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4460 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4462 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4464 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4466 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4468 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4470 * gdbarch.sh (read_sp): Remove.
4471 * gdbarch.c, gdbarch.h: Regenerate.
4472 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4474 * avr-tdep.c (avr_read_sp): Remove.
4475 (avr_unwind_sp): New function.
4476 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4477 * mips-tdep.c (mips_read_sp): Remove.
4478 (mips_unwind_sp): New function.
4479 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4480 * score-tdep.c (score_read_unsigned_register): Remove.
4481 (score_read_sp): Remove.
4482 (score_unwind_sp): New function.
4483 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4485 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4487 * buildsym.c (start_subfile): Handle absolute pathnames
4488 while comparing subfile names.
4490 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4492 * hppa-hpux-tdep.c: Include "regcache.h".
4493 * hppa-linux-tdep.c: Likewise.
4494 * hppa-tdep.c: Include "gdb_stdint.h".
4495 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4497 * Makefile.in: Update dependencies.
4499 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4501 * blockframe.c: Remove obsolete comments.
4502 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4503 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4504 * hppa-tdep.h (enum hppa_regnum): Likewise.
4505 * mips-tdep.h: Likewise.
4506 * m68hc11-tdep.c: Likewise.
4508 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4510 * inferior.h (read_sp): Remove prototype.
4511 * regcache.c (read_sp): Remove.
4512 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4513 * infcall.c (call_function_by_hand): Likewise.
4514 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4516 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4518 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4520 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4521 instead of read_register and read_register_pid.
4523 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4524 argument instead of PTID. Use regcache functions instead of
4526 (ia64_linux_insert_watchpoint): Update call.
4527 (ia64_linux_stopped_data_address): Use regcache functions
4528 instead of read_register_pid and write_register_pid.
4530 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4532 * libunwind-frame.h (struct regcache): Add forward declaration.
4533 (libunwind_get_reg_special): Add REGCACHE argument.
4534 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4535 argument. Pass it to unw_init_remote_p.
4537 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4538 libunwind_get_reg_special.
4539 (ia64_access_reg): Remove "write" case.
4540 (ia64_access_fpreg): Likewise. Read from next_frame passed
4541 as callback argument instead of from current_regcache.
4542 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4543 passed as callback argument instead of from current_regcache.
4544 (ia64_access_rse_fpreg): New function.
4545 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4547 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4549 * NEWS: Mention SPU overlay support.
4551 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4553 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4555 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4557 * breakpoint.c (remove_breakpoint): Do not remove software
4558 breakpoints in unmapped overlay sections.
4560 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4562 * spu-tdep.c: Include "observer.h".
4563 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4564 (spu_overlay_data): New variable.
4565 (struct spu_overlay_table): New type.
4566 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4567 spu_overlay_new_objfile): New functions.
4568 (spu_gdbarch_init): Install spu_overlay_update.
4569 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4570 allocate spu_overlay_data objfile data.
4572 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4574 * gdbarch.sh (overlay_update): New gdbarch function.
4575 (struct obj_section): Add forward declaration.
4576 * gdbarch.c, gdbarch.h: Regenerate.
4578 * symfile.c (simple_overlay_update): Make global.
4579 (target_overlay_update): Remove variable.
4580 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4581 target_overlay_update.
4582 (overlay_load_command): Likewise.
4583 * symfile.h (struct obj_section): Add forward declaration.
4584 (simple_overlay_update): Add prototype.
4586 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4588 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4590 * observer.sh: Add "struct objfile" forward declaration.
4591 * target.h (deprecated_target_new_objfile_hook): Remove.
4592 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4593 (clear_symtab_users): Call observer_notify_new_objfile.
4594 (symbol_file_add_with_addrs_or_offsets): Likewise.
4595 * rs6000-nat.c: Include "observer.h".
4596 (vmap_ldinfo): Call observer_notify_new_objfile.
4597 (xcoff_relocate_core): Likewise.
4598 * remote.c (remote_new_objfile_chain): Remove.
4599 (remote_new_objfile): Do not call remote_new_objfile_chain.
4600 (_initialize_remote): Use observer_attach_new_objfile.
4601 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4602 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4603 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4604 * aix-thread.c: Include "observer.h".
4605 (target_new_objfile_chain): Remove.
4606 (new_objfile): Do not call target_new_objfile_chain.
4607 (_initialize_aix_thread): Use observer_attach_new_objfile.
4608 * hpux-thread.c: Include "observer.h"
4609 (target_new_objfile_chain): Remove.
4610 (hpux_thread_new_objfile): Make static. Do not call
4611 target_new_objfile_chain.
4612 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4613 * linux-thread-db.c: Include "observer.h".
4614 (target_new_objfile_chain): Remove.
4615 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4616 (_initialize_thread_db): Use observer_attach_new_objfile.
4617 * sol-thread.c: Include "observer.h".
4618 (target_new_objfile_chain): Remove.
4619 (sol_thread_new_objfile): Make static. Do not call
4620 target_new_objfile_chain.
4621 (_initialize_sol_thread): Use observer_attach_new_objfile.
4622 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4623 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4626 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4628 * gdbarch.sh (remote_translate_xfer_address): Remove.
4629 * gdbarch.h, gdbarch.c: Regenerate.
4630 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4631 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4632 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4633 call gdbarch_remote_translate_xfer_address.
4634 * frv-tdep.c (frv_gdbarch_init): Do not call
4635 set_gdbarch_remote_translate_xfer_address.
4636 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4637 (ia64_gdbarch_init): Do not install it.
4639 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4641 * NEWS: Mention change in handling the -tui option.
4643 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4645 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4648 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4650 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4651 (breakpoint_inserted_here_p): Call it.
4652 (software_breakpoint_inserted_here_p): Likewise.
4654 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4656 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4657 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4658 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4659 (inf_ptrace_store_register): Likewise.
4660 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4661 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4663 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4665 * linux-nat.c (linux_trad_target): Adapt parameter list.
4666 * linux-nat.h (linux_trad_target): Likewise.
4668 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4670 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4671 (mips_linux_cannot_store_register): Likewise.
4672 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4673 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4674 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4675 (mips64_linux_register_addr): Likewise.
4676 (mips_linux_register_u_offset): Adapt parameter list. Pass
4677 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4679 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4680 * config/mips/nm-linux.h: Delete file.
4682 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4684 * remote.c (remote_detach): Error out if remote can't detach.
4686 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4688 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4689 instruction's opcode in the "opcode" variable and declares new
4690 variable "closing_insn".
4692 2007-05-10 Chris Dearman <chris@mips.com>
4693 Maciej W. Rozycki <macro@mips.com>
4695 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4696 whitespace when setting a var_filename.
4698 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4700 * main.c (captured_main): Recognize -tui option and print an error
4701 message when the TUI is not configured.
4703 2007-05-09 Andreas Schwab <schwab@suse.de>
4705 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4706 set removed members.
4707 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4709 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4711 * gdbarch.sh (deprecated_store_struct_return): Remove.
4712 * gdbarch.c, gdbarch.h: Regenerate.
4713 * frv-tdep.c (frv_store_struct_return): Remove.
4714 (frv_gdbarch_init): Do not install it.
4716 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4718 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4719 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4720 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4722 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4724 * spu-linux-nat.c: Include "gdb_stdint.h".
4725 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4726 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4727 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4728 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4729 (spu_child_wait): Mark up string for translation.
4731 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4732 Luis Machado <luisgpm@br.ibm.com>
4734 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4735 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4736 BC_INSTRUCTION): Define.
4737 (deal_with_atomic_sequence): New function.
4738 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4739 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4740 gdbarch_software_single_step routine.
4742 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4744 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4745 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4746 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4747 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4748 spu_child_post_attach, spu_fetch_inferior_registers,
4749 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4750 memory addresses as ULONGEST, not CORE_ADDR.
4752 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4754 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4755 * gdbarch.h, gdbarch.c: Regenerate.
4757 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4758 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4759 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4761 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4762 Add REGCACHE argument. Use it instead of read/write_register.
4763 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4765 * config/pa/tm-hppah.h: Delete file.
4766 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4767 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4769 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4771 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4772 * NEWS: Mention improved C++ thunk support.
4773 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4774 * cp-abi.c (cplus_skip_trampoline): New.
4775 * cp-abi.h (cplus_skip_trampoline): New prototype.
4776 (struct cp_abi_ops): Add skip_trampoline member.
4777 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4778 (init_gnuv3_ops): Set skip_trampoline.
4780 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4782 * rs6000-tdep.c (struct frame_extra_info): Delete.
4784 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4786 * linux-thread-db.c: Update some FIXME comments.
4787 (thread_db_xfer_partial): Delete.
4788 (init_thread_db_ops): Do not set to_xfer_partial.
4790 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4792 * inftarg.c, infptrace.c: Remove files.
4793 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4794 (inftarg.o, infptrace.o): Remove rules.
4795 * gdbcore.h (register_addr): Remove prototype.
4796 * inferior.h (kill_inferior, store_inferior_registers,
4797 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4798 call_ptrace, pre_fork_inferior): Remove prototypes.
4799 * target.h (child_xfer_memory, child_pid_to_exec_file,
4800 child_core_file_to_sym_file, child_post_attach,
4801 child_post_startup_inferior, child_acknowledge_created_inferior,
4802 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4803 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4804 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4805 child_follow_fork, child_reported_exec_events_per_exec_call,
4806 child_has_exited, child_thread_alive): Remove prototypes.
4808 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4810 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4811 (sparc_store_inferior_registers): Likewise.
4812 * sparc-nat.c (fetch_inferior_registers): Rename to ...
4813 (sparc_fetch_inferior_registers): ... this.
4814 (store_inferior_registers): Rename to ...
4815 (sparc_store_inferior_registers): ... this.
4816 (sparc_target): Update callback names.
4817 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
4818 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
4820 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4822 * linux-nat.c (child_post_attach): Rename to ...
4823 (linux_child_post_attach): ... this. Make static.
4824 (child_follow_fork): Rename to ...
4825 (linux_child_follow_fork): ... this. Make static.
4826 (child_insert_fork_catchpoint): Rename to ...
4827 (linux_child_insert_fork_catchpoint): ... this. Make static.
4828 (child_insert_vfork_catchpoint): Rename to ...
4829 (linux_child_insert_vfork_catchpoint): ... this. Make static.
4830 (child_insert_exec_catchpoint): Rename to ...
4831 (linux_child_insert_exec_catchpoint): ... this. Make static.
4832 (child_pid_to_exec_file): Rename to ...
4833 (linux_child_pid_to_exec_file): ... this. Make static.
4835 (linux_handle_extended_wait): Update call.
4836 (linux_xfer_partial): Update callback routine names.
4838 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4840 * configure.host (alpha*-*-osf[12]*): Remove support.
4841 * NEWS: Mention removed configurations.
4843 * config/alpha/alpha-osf1.mh: Delete file.
4844 * config/alpha/alpha-osf2.mh: Delete file.
4845 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4847 * config/alpha/nm-osf.h: Delete file.
4848 * config/alpha/nm-osf2.h: Delete file.
4849 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4850 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4851 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4853 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4854 (register_addr, kernel_u_size): Remove.
4855 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4857 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4859 * regcache.c (regcache_invalidate): New function.
4860 (register_cached): Remove.
4861 (set_register_cached): Remove.
4862 (deprecated_registers_fetched): Remove.
4863 (registers_changed): Use regcache_invalidate instead
4864 of set_register_cached.
4865 (regcache_raw_read): Update comment.
4867 * regcache.h (regcache_invalidate): Add prototype.
4868 (register_cached): Remove.
4869 (set_register_cached): Remove.
4870 (deprecated_registers_fetched): Remove.
4872 * findvar.c (value_of_register): Do not call register_cached.
4873 * frame.c (frame_register): Likewise.
4874 * tui/tui-regs.c (tui_get_register): Likewise.
4876 * remote.c (fetch_register_using_p): Do not call set_register_cached.
4877 (process_g_packet): Likewise.
4878 (remote_fetch_registers): Likewise.
4879 * remote-sim.c (gdbsim_fetch_register): Likewise.
4880 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4881 by regcache_invalidate.
4882 (mt_pseudo_register_write): Likewise.
4883 * sh-tdep.c (sh_pseudo_register_write): Likewise.
4885 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4886 call by loop over regcache_raw_supply (..., NULL).
4888 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4890 * target.h (struct target_ops): Add REGCACHE parameter to
4891 to_prepare_to_store.
4892 (target_prepare_to_store): Likewise.
4893 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4894 (update_current_target): Adapt prepare_to_store de_fault rule.
4896 * regcache.c (regcache_raw_write): Pass regcache to
4897 target_prepare_to_store.
4899 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4900 Do not call CHILD_PREPARE_TO_STORE.
4901 * gnu-nat.c (gnu_prepare_to_store): Likewise.
4902 * procfs.c (procfs_prepare_to_store): Likewise.
4904 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4905 * go32-nat.c (go32_prepare_to_store): Likewise.
4906 * monitor.c (monitor_prepare_to_store): Likewise.
4907 * nto-procfs.c (procfs_prepare_to_store): Likewise.
4908 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4909 * remote-mips.c (mips_prepare_to_store): Likewise.
4910 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4911 * win32-nat.c (win32_prepare_to_store): Likewise.
4913 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4914 Use it instead of current_regcache.
4916 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4917 parameter. Pass it on to next target.
4918 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4920 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4922 * target.h (struct regcache): Add forward declaration.
4923 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4924 and to_store_registers target operations.
4925 (target_fetch_registers, target_store_registers): Update.
4927 * regcache.c (regcache_raw_read): Replace register_cached by
4928 regcache_valid_p. Pass regcache to target_fetch_registers.
4929 (regcache_raw_write): Pass regcache to target_store_registers.
4931 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4932 store_regs, store_wmmx_regs): Replace register_cached by
4935 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
4936 to target_fetch_registers calls.
4937 * corelow.c (core_open): Likewise.
4938 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
4939 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4940 ps_lsetfpregs): Likewise.
4941 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4942 ps_lsetfpregs): Likewise.
4943 * win32-nat.c (win32_resume): Likewise.
4944 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
4945 to target_store_registers call.
4946 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4948 * inferior.h (store_inferior_registers): Update prototype.
4949 (fetch_inferior_registers): Likewise.
4950 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
4951 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
4952 Update function pointer signatures.
4954 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
4955 use it instead of current_regcache, update calls.
4956 (aix_thread_store_registers): Likewise.
4957 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4958 (alphabsd_store_inferior_registers): Likewise.
4959 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4960 (amd64bsd_store_inferior_registers): Likewise.
4961 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
4962 (amd64_linux_store_inferior_registers): Likewise.
4963 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
4964 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
4965 fetch_wmmx_regs, store_wmmx_regs): Likewise.
4966 (arm_linux_fetch_inferior_registers): Likewise.
4967 (arm_linux_store_inferior_registers): Likewise.
4968 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4969 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
4970 (store_register, store_regs, store_fp_register, store_fp_regs,
4971 armnbsd_store_registers): Likewise.
4972 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
4973 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4974 (bsd_uthread_store_registers): Likewise.
4975 * corelow.c (get_core_registers): Likewise.
4976 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
4977 go32_store_registers): Likewise.
4978 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
4979 (hppabsd_store_registers): Likewise.
4980 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
4981 (hppa_hpux_fetch_inferior_registers): Likewise.
4982 (hppa_hpux_store_register): Likewise.
4983 (hppa_hpux_store_inferior_registers): Likewise.
4984 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4985 (hppa_linux_fetch_inferior_registers): Likewise.
4986 (hppa_linux_store_inferior_registers): Likewise.
4987 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
4988 (hpux_thread_store_registers): Likewise.
4989 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
4990 (i386bsd_store_inferior_registers): Likewise.
4991 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
4992 gnu_store_registers): Likewise.
4993 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
4994 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
4996 (i386_linux_fetch_inferior_registers): Likewise.
4997 (i386_linux_store_inferior_registers): Likewise.
4998 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4999 (ia64_linux_fetch_registers): Likewise.
5000 (ia64_linux_store_register): Likewise.
5001 (ia64_linux_store_registers): Likewise.
5002 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5003 (inf_child_store_inferior_registers): Likewise.
5004 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5005 (inf_ptrace_fetch_registers): Likewise.
5006 (inf_ptrace_store_register): Likewise.
5007 (inf_ptrace_store_registers): Likewise.
5008 * infptrace.c (fetch_register, store_register): Likewise.
5009 (fetch_inferior_registers, store_inferior_registers): Likewise.
5010 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
5011 (m32r_linux_fetch_inferior_registers): Likewise.
5012 (m32r_linux_store_inferior_registers): Likewise.
5013 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
5014 (m68kbsd_store_inferior_registers): Likewise.
5015 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
5016 store_register, old_store_inferior_registers, fetch_regs, store_regs,
5017 fetch_fpregs, store_fpregs): Likewise.
5018 (m68k_linux_fetch_inferior_registers): Likewise.
5019 (m68k_linux_store_inferior_registers): Likewise.
5020 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
5021 (m88kbsd_store_inferior_registers): Likewise.
5022 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
5023 (mips64obsd_store_inferior_registers): Likewise.
5024 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
5025 (mips64_linux_regsets_store_registers): Likewise.
5026 (mips64_linux_fetch_registers): Likewise.
5027 (mips64_linux_store_registers): Likewise.
5028 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
5029 (mipsnbsd_store_inferior_registers): Likewise.
5030 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
5031 (monitor_fetch_registers, monitor_store_registers): Likewise.
5032 * nto-procfs.c (procfs_fetch_registers): Likewise.
5033 (procfs_store_registers): Likewise.
5034 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
5035 fetch_register, supply_vrregset, fetch_altivec_registers,
5036 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
5037 (store_altivec_register, store_spe_register, store_register,
5038 fill_vrregset, store_altivec_registers, store_ppc_registers,
5039 ppc_linux_store_inferior_registers): Likewise.
5040 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
5041 (ppcnbsd_store_inferior_registers): Likewise.
5042 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
5043 (ppcobsd_store_registers): Likewise.
5044 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5045 * remote.c (fetch_register_using_p, process_g_packet,
5046 fetch_registers_using_g, remote_fetch_registers): Likewise.
5047 (store_register_using_P, store_registers_using_G,
5048 remote_store_registers): Likewise.
5049 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
5050 m32r_store_register, m32r_store_register): Likewise.
5051 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
5052 * remote-sim.c (gdbsim_fetch_register): Likewise.
5053 (gdbsim_store_register): Likewise.
5054 * rs6000-nat.c (fetch_register, store_register): Likewise.
5055 (rs6000_fetch_inferior_registers): Likewise.
5056 (rs6000_store_inferior_registers): Likewise.
5057 * s390-nat.c (fetch_regs, store_regs): Likewise.
5058 (fetch_fpregs, store_fpregs): Likewise.
5059 (s390_linux_fetch_inferior_registers): Likewise.
5060 (s390_linux_store_inferior_registers): Likewise.
5061 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
5062 (shnbsd_store_inferior_registers): Likewise.
5063 * sol-thread.c (sol_thread_fetch_registers): Likewise.
5064 (sol_thread_store_registers): Likewise.
5065 * sparc-nat.c (fetch_inferior_registers): Likewise.
5066 (store_inferior_registers): Likewise.
5067 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5068 (spu_store_inferior_registers): Likewise.
5069 * target.c (debug_print_register): Likewise.
5070 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
5071 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
5072 (vaxbsd_store_inferior_registers): Likewise.
5073 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
5074 (win32_fetch_inferior_registers): Likewise.
5075 (win32_store_inferior_registers): Likewise.
5077 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5079 * gdbcore.h (struct regcache): Add forward declaration.
5080 (struct core_fns): Add REGCACHE argument to core_read_registers
5082 * corelow.c (get_core_register_section): Add REGCACHE argument,
5083 use it instead of current_regcache, pass it to core_read_registers
5085 (get_core_registers): Add current_regcache as parameter to
5086 get_core_register_section calls.
5088 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
5089 use it instead of current_regcache.
5090 * armnbsd-nat.c (fetch_core_registers): Likewise.
5091 (fetch_elfcore_registers): Likewise.
5092 * core-regset.c (fetch_core_registers): Likewise.
5093 * cris-tdep.c (fetch_core_registers): Likewise.
5094 * irix5-nat.c (fetch_core_registers): Likewise.
5095 * m68klinux-nat.c (fetch_core_registers): Likewise.
5096 * mips-linux-tdep.c (fetch_core_registers): Likewise.
5097 * win32-nat.c (fetch_elf_core_registers): Likewise.
5099 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5101 * gregset.h (struct regcache): Add forward declaration.
5102 (supply_gregset): Add REGCACHE parameter, make GREGS const.
5103 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
5104 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
5105 (fill_gregset): Add REGCACHE parameter.
5106 (fill_fpregset): Likewise.
5107 (fill_fpxregset): Likewise.
5109 Update all definitions accordingly:
5110 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
5111 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
5112 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
5113 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
5114 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
5115 (supply_gregset): Add REGCACHE parameter, use it instead of
5116 current_regcache. Make GREGSETP parameter const, adapt casts.
5117 (supply_fpregset): Add REGCACHE parameter, use it instead of
5118 current_regcache. Make FPREGSETP parameter const, adapt casts.
5119 (fill_gregset): Add REGCACHE parameter, use it instead of
5121 (fill_fpregset): Likewise.
5123 Update all callers to pass in current_regcache as the new argument:
5124 * core-regset.c: Include "regcache.h".
5125 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
5126 * procfs.c: Include "regcache.h".
5127 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
5128 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
5129 (procfs_do_thread_registers): Likewise.
5130 (procfs_make_note_section): Likewise.
5131 * proc-service.c: Include "regcache.h".
5132 (ps_lgetregs): Update fill_gregset call.
5133 (ps_lsetregs): Update supply_gregset call.
5134 (ps_lgetfpregs): Update fill_fpregset call.
5135 (ps_lsetfpregs): Update supply_fpregset call.
5136 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
5137 supply_fpregset calls.
5138 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
5139 (ps_lgetregs): Update fill_gregset call.
5140 (ps_lsetregs): Update supply_gregset call.
5141 (ps_lgetfpregs): Update fill_fpregset call.
5142 (ps_lsetfpregs): Update supply_fpregset call.
5144 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
5145 fill_fpregset, and fill_fpxregset calls.
5146 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
5147 (store_regs): Update fill_gregset call.
5148 (fetch_fpregs): Update supply_fpregset call.
5149 (store_fpregs): Update fill_fpregset call.
5150 (fetch_fpxregs): Update supply_fpxregset call.
5151 (store_fpxregs): Update fill_fpxregset call.
5152 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
5153 (store_regs): Update fill_gregset call.
5154 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
5155 (store_regs): Update fill_gregset call.
5156 (fetch_fpregs): Update supply_fpregset call.
5157 (store_fpregs): Update fill_fpregset call.
5158 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5159 * s390-nat.c (fetch_regs): Update supply_gregset call.
5160 (store_regs): Update fill_gregset call.
5161 (fetch_fpregs): Update supply_fpregset call.
5162 (store_fpregs): Update fill_fpregset call.
5164 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5167 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5169 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5170 it instead of current_regcache.
5171 (parse_register_dump): Add REGCACHE parameter, pass it to
5172 supply_register callback.
5173 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5174 parse_register_dump.
5175 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5176 parse_register_dump and dumpregs callback.
5177 (monitor_wait): Pass current_regcache to parse_register_dump and
5179 (monitor_fetch_register): Pass current_regcache to
5180 monitor_supply_register.
5181 (monitor_fetch_registers): Pass current_regcache to
5183 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5184 supply_register and dumpregs callbacks.
5185 (monitor_supply_register, monitor_dump_reg_block): Update
5187 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5188 it to monitor_supply_register.
5189 * dink32-rom.c (dink32_supply_register): Likewise.
5190 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5191 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5192 instead of current_regcache.
5194 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5196 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5197 Add REGCACHE parameter. Use it instead of current_regcache.
5198 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5199 i386nto_supply_gregset and i386nto_supply_fpregset.
5200 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5201 of current_regcache.
5203 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5204 nto_supply_ helper functions.
5205 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5207 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5209 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5210 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5211 and regset_fill member function pointers.
5212 (nto_dummy_supply_regset): Adapt prototype.
5214 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5216 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5217 instead of current_regcache. Make REGS const.
5218 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5219 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5221 * shnbsd-nat.c: Include "regcache.h".
5222 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5224 (shnbsd_store_inferior_registers): Pass current_regcache to
5226 * Makefile.in (shbsd-nat.o): Update dependencies.
5228 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5230 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5231 instead of current_regcache.
5232 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5233 Make GREGSETP const, remove superfluous casts.
5234 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5235 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5237 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5238 (supply_64bit_reg): Likewise
5239 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5240 Make GREGSETP const, adapt casts accordingly.
5241 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5242 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5244 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5245 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5247 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5248 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5249 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5251 * mips-linux-nat.c: Include "regcache.h".
5252 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5253 current_regcache to mips{64}_(supply|fill)_ helper routines.
5254 (mips64_linux_regsets_fetch_registers): Likewise.
5255 (mips64_linux_regsets_store_registers): Likewise.
5257 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5258 REGCACHE argument; replace current_regcache. Make REGS const.
5259 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5260 replace current_regcache.
5261 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5262 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5263 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5264 mipsnbsd_store_inferior_registers): Pass current_regcache to
5265 mipsnbsd_(supply|fill)_... helper routines.
5267 * Makefile.in (mips-linux-nat.o): Update dependencies.
5269 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5271 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5272 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5273 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5274 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5275 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5276 * i386gnu-nat.c (store_fpregs): Likewise.
5277 * i386v4-nat.c (fill_fpregset): Likewise.
5278 * go32-nat.c (store_register, go32_store_registers): Likewise.
5280 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5282 * cris-tdep.c (supply_gregset): Rename to ...
5283 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5284 instead of current_regcache.
5285 (fetch_core_registers): Update call. Pass current_regcache.
5287 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5289 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5290 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5291 Use it instead of current_regcache.
5292 (supply_fparegset): Rename to ...
5293 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5294 Use it instead of current_regcache.
5295 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5296 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5298 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5300 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5301 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5302 use it instead of current_regcache.
5303 * alpha-tdep.h (struct regcache): Add forward declaration.
5304 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5305 alpha_fill_fp_regs): Update prototypes.
5307 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5308 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5309 * alpha-linux-nat.c: Include "regcache.h".
5310 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5311 current_regcache to alpha_supply/fill_ routines.
5313 * alphabsd-tdep.c: Include "regcache.h".
5314 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5315 pass it to alpha_supply_ routines. Make REGS const.
5316 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5317 pass it to alpha_fill_ routines.
5318 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5319 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5320 alphabsd_fill_fpreg): Update prototypes.
5322 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5323 fill_fpregset, alphabsd_fetch_inferior_registers,
5324 alphabsd_store_inferior_registers): Pass current_regcache to
5325 alphabsd_supply/fill_ routines.
5327 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5330 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5332 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5333 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5334 instead of current_regcache.
5335 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5336 REGCACHE parameter, pass it to supply_ routines.
5337 (aix_thread_fetch_registers): Pass current_regcache to
5338 fetch_regs_user_thread and fetch_regs_kernel_thread.
5340 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5341 Add REGCACHE parameter, use it instead of current_regcache.
5342 Call regcache_valid_p instead of register_cached.
5343 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5344 Also, pass REGCACHE to fill_ routines.
5345 (aix_thread_store_registers): Pass current_regcache to
5346 store_regs_user_thread and store_regs_kernel_thread.
5348 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5350 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5351 pointed to by GREGSETP.
5353 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5355 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5356 of regcache_raw_read_signed.
5357 (fill_fpregset): Use regcache_raw_collect instead of
5360 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5362 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5363 point arguments, test explicitly for use of the EABI32 ABI
5364 instead of inferring this condition from tests on register
5367 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5369 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5370 prior to allocating its location.
5372 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5374 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5375 based on mips_abi_regsize() whose result is known in advance.
5376 (mips_o64_push_dummy_call): Likewise.
5378 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5380 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5381 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5383 * mips-linux-nat.c: Include "gregset.h".
5384 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5385 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5386 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5387 fill_fpregset): Move to mips-linux-nat.c.
5389 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5391 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5393 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5394 (read_register): ... here.
5395 (deprecated_write_register_gen): Remove, inline ...
5396 (write_register): ... here.
5397 * regcache.h (deprecated_read_register_gen): Remove prototype.
5398 (deprecated_write_register_gen): Likewise.
5400 * remote-sim.c (gdbsim_store_register): Replace call to
5401 deprecated_read_register_gen with regcache_cooked_read.
5402 * target.c (debug_print_register): Replace calls to
5403 deprecated_read_register_gen and read_register with
5404 regcache_cooked_read.
5406 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5408 * hpux-thread.c (hpux_thread_store_registers): Use
5409 regcache_raw_collect, not regcache_raw_read.
5410 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5411 not regcache_raw_write.
5413 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5415 * gdbarch.sh: Remove deprecated_register_byte.
5416 * gdbarch.c, gdbarch.h: Regenerate.
5417 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5418 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5420 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5421 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5422 read-only register caches. Make REGCACHE parameter const.
5423 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5425 * mi/mi-main.c (old_regs): Remove.
5426 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5427 (register_changed_p): Reimplement to compare two register caches.
5428 (mi_cmd_data_list_changed_registers): Update caller.
5429 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5430 * mi/mi-interp.c (mi_interpreter_init): Do not call
5431 mi_setup_architecture_data.
5433 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5435 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5436 inline definition at the places the macros are used.
5437 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5439 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5441 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5443 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5444 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5445 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5446 (rs6000_aix_regset_from_core_section): New function.
5447 (rs6000_aix_init_osabi): Register it.
5448 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5449 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5450 * rs6000-nat.c (CoreRegs): Do not define type.
5451 (fetch_core_registers, rs6000_core_fns): Remove.
5452 (_initialize_core_rs6000): Do not register it. Rename to ...
5453 (_initialize_rs6000_nat): ... this.
5454 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5456 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5458 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5459 (dwarf2_read_address): Sign extend return address as required by
5460 target architecture.
5462 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5464 * solib-frv.c (lm_base): Bail out if the main executable has
5467 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5469 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5470 of FPCR register in fpregset.
5472 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5474 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5475 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5477 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5479 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5480 * rs6000-nat.c (rs6000_wait): New function.
5481 (_initialize_core_rs6000): Install it as to_wait target method.
5482 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5484 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5486 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5487 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5488 * rs6000-nat.c (super_create_inferior): New variable.
5489 (rs6000_create_inferior): Make static. Adapt argument list. Call
5490 original version of create_inferior via super_create_inferior.
5491 (_initialize_core_rs6000): Install to_create_inferior target method.
5493 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5495 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5496 (aix_thread_xfer_partial): ... this.
5497 (init_aix_thread_ops): Install to_xfer_partial instead
5498 of deprecated_xfer_memory target method.
5500 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5501 and inftarg.o, add inf-ptrace.o.
5502 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5503 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5504 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5505 (fetch_inferior_registers): Rename to ...
5506 (rs6000_fetch_inferior_registers): ... this. Make static.
5507 (store_inferior_registers): Rename to ...
5508 (rs6000_store_inferior_registers): ... this. Make static.
5509 (read_word, child_xfer_memory): Remove.
5510 (rs6000_xfer_partial): New function.
5511 (kernel_u_size): Remove.
5512 (_initialize_core_rs6000): Add inf_ptrace-based target.
5513 * Makefile.in (rs6000-nat.o): Update dependencies.
5515 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5517 * inf-ptrace.c: Include "gdb_stdint.h".
5518 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5519 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5520 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5521 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5522 (inf_ptrace_store_register): Likewise.
5523 * Makefile.in (inf-ptrace.o): Update dependencies.
5525 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5527 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5528 * configure.tgt (rs6000-*-*): Likewise.
5529 * config/rs6000/aix4.mh: Delete file.
5530 * config/rs6000/aix4.mt: Delete file.
5531 * config/rs6000/rs6000.mh: Delete file.
5532 * config/rs6000/rs6000.mt: Delete file.
5534 * config/powerpc/nm-aix.h: Delete file.
5535 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5537 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5539 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5540 Remove obsolete part of comment.
5541 (store_regs_user_thread): Use uint32_t temporaries when calling
5543 (store_regs_kernel_thread): Likewise. Add assertion to verify
5544 correct size of struct ptsprs members.
5545 (aix_thread_xfer_memory): Fix type of myaddr.
5546 (aix_thread_extra_thread_info): Fix compiler warning.
5547 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5548 (fetch_register, store_register): Adapt callers.
5550 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5552 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5554 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5556 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5558 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5559 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5560 (alpha_linux_regset_from_core_section): New function.
5561 (alpha_linux_init_abi): Install it.
5562 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5563 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5564 <sys/procfs.h>, and "gregset.h".
5565 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5566 Move from config/alpha/nm-linux.h.
5567 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5569 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5570 * alpha-nat.c: Remove #ifdef __linux__ section.
5571 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5572 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5573 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5574 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5575 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5576 (NATDEPFILES): Remove alpha-nat.o.
5577 * config/alpha/nm-linux.h: Delete file.
5578 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5579 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5580 (alpha-linux-tdep.o): Likewise.
5582 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5584 * mips-linux-nat.c: No longer include "gdbcore.h".
5585 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5586 (mips64_linux_register_addr): Likewise.
5587 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5588 mips64_linux_register_addr instead of register_addr.
5589 * mips-linux-tdep.c (mips_linux_register_addr,
5590 mips64_linux_register_addr): Move to mips-linux-nat.c.
5591 (register_addr): Remove.
5592 (register_addr_data, init_register_addr_data): Remove.
5593 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5594 (set_mips_linux_register_addr): Remove.
5595 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5596 * Makefile.in (mips-linux-nat.o): Update dependencies.
5598 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5600 * linux-nat.c (linux_register_u_offset): Remove.
5601 (linux_target_install_ops): New function.
5602 (linux_target): Use it.
5603 (linux_trad_target): New function.
5604 * linux-nat.h (linux_trad_target): Declare.
5606 * alpha-linux-nat.c: Include "gdbcore.h".
5607 (alpha_linux_register_u_offset): New function.
5608 (_initialize_alpha_linux_nat): Use linux_trad_target.
5610 * mips-linux-nat.c: Include "gdbcore.h".
5611 (mips_linux_register_u_offset): New function.
5612 (_initialize_mips_linux_nat): Use linux_trad_target.
5614 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5615 * config/arm/nm-linux.h: Delete file.
5617 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5618 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5620 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5621 * config/ia64/nm-linux.h: Delete file.
5623 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5624 * config/m32r/nm-linux.h: Delete file.
5626 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5627 * config/m68k/nm-linux.h: Delete file.
5629 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5630 * config/pa/nm-linux.h: Delete file.
5632 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5633 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5634 * config/powerpc/nm-linux.h: Delete file.
5636 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5637 * config/s390/nm-linux.h: Delete file.
5639 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5640 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5641 * config/sparc/nm-linux.h: Delete file.
5643 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5644 (mips-linux-nat.o): Likewise.
5646 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5648 * core-aout.c: Delete file.
5649 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5650 (core-aout.o): Delete rule.
5651 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5653 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5655 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5656 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5657 KERNEL_U_ADDR): Remove.
5659 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5660 (cannot_fetch_register, cannot_store_register): Remove.
5661 (fetch_register): Inline cannot_fetch_register and register_addr.
5662 (store_register): Inline cannot_store_register and register_addr.
5663 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5664 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5665 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5668 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5669 (fetch_register): Inline register_addr.
5670 (store_register): Inline register_addr.
5671 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5672 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5673 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5675 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5676 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5677 REGISTER_U_ADDR): Remove.
5679 * hppa-linux-nat.c (register_addr): Rename to ...
5680 (hppa_linux_register_addr): ... this. Make static.
5681 (fetch_register, store_register): Adapt callers.
5682 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5684 * ppc-linux-nat.c (kernel_u_size): Remove.
5685 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5687 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5688 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5690 * config/vax/nm-vax.h: Delete file.
5692 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5694 * MAINTAINERS (Write After Approval): Add myself.
5696 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5698 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5699 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5700 (m68k_linux_sigcontext_reg_offset): Fix typo.
5701 (target_is_uclinux): New.
5702 (m68k_linux_inferior_created): New.
5703 (m68k_linux_get_sigtramp_info): Check for uClinux or
5704 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5706 (_initialize_m68k_linux_tdep): Register
5707 m68k_linux_inferior_created.
5709 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5711 * win32-nat.c (win32_detach): Remove delete_command call.
5712 Resume inferior with win32_resume instead of win32_continue.
5714 2007-04-19 Jerome Guitton <guitton@adacore.com>
5716 * ser-mingw.c (fd_is_file): New function.
5717 (file_select_thread): New function.
5718 (ser_console_wait_handle): Add special handling for files.
5720 2007-04-18 Denis Pilat <denis.pilat@st.com>
5722 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5723 when missing from DW_TAG_subrange_type. Remove the handling of null
5724 return from die_type.
5726 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5728 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5729 change to rearrange some brackets.
5730 (mips_n32n64_push_dummy_call): Likewise.
5731 (mips_o32_push_dummy_call): Likewise.
5732 (mips_o64_push_dummy_call): Likewise.
5734 2007-04-18 Denis Pilat <denis.pilat@st.com>
5736 * infcmd.c (post_create_inferior): Start with a call to
5737 target_terminal_ours.
5739 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5741 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5743 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5745 (mips_o32_push_dummy_call): Likewise.
5746 (mips_o64_push_dummy_call): Likewise.
5748 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5750 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5753 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5755 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5757 (mips_o32_push_dummy_call): Likewise.
5759 2007-04-17 Andreas Schwab <schwab@suse.de>
5761 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5762 sal to be bigger than the end of the function.
5764 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5765 Nigel Stephens <nigel@mips.com>
5767 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5768 argument alignment requirements when calculating stack space
5769 required. When aligning an arg register to eight bytes
5770 boundary, align stack_offset too. Write floating-point
5771 arguments to the appropriate integer register if need go there.
5772 (mips_o64_push_dummy_call): Likewise.
5774 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5776 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5777 "sig" arguments, add "regcache" argument.
5778 * gdbarch.c, gdbarch.h: Regenerate.
5780 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5781 (handle_inferior_event): Call remove_single_step_breakpoints directly
5782 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5784 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5785 Remove handling of !insert_breakpoints_p case.
5786 * arm-tdep.c (arm_software_single_step): Likewise.
5787 * cris-tdep.c (cris_software_single_step): Likewise.
5788 * mips-tdep.c (mips_software_single_step): Likewise.
5789 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5790 * sparc-tdep.c (sparc_software_single_step): Likewise.
5791 * spu-tdep.c (spu_software_single_step): Likewise.
5793 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5794 * mips-tdep.h (mips_software_single_step): Likewise.
5795 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5796 * sparc-tdep.h (sparc_software_single_step): Likewise.
5798 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5800 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5801 when removing single-step breakpoints.
5803 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5805 * varobj.h (varobj_set_frozen): New
5806 (varobj_get_frozen): New.
5807 (varobj_update): New parameter explicit.
5808 * varobj.c (struct varobj): New fields frozen
5810 (varobj_set_frozen, varobj_get_frozen): New.
5811 (install_new_value): Don't fetch values for
5812 frozen variable object, or children thereof. Allow
5813 a frozen variable object to have non-fetched value.
5814 (varobj_update): Allow updating child variables.
5815 Don't traverse frozen children.
5816 (new_variable): Initialize the frozen field.
5817 (c_value_of_variable): Return NULL for frozen
5818 variable without any value yet.
5819 * mi/mi-cmd-var.c (varobj_update_one): New parameter
5821 (mi_cmd_var_create): Output the 'frozen' field,
5822 as soon as testsuite is adjusted to expect that field.
5823 (mi_cmd_var_set_frozen): New.
5824 (mi_cmd_var_update): Pass the 'explicit' parameter to
5826 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5827 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5829 2007-04-13 Paul Brook <paul@codesourcery.com>
5831 * target-descriptions.c (tdesc_named_type): Add ieee_single and
5833 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5835 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5837 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5838 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5839 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5840 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5841 * Makefile.in: Remove references to deleted files.
5842 * README: Do not mention deleted ROM monitor interfaces.
5843 * defs.h (enum language): Delete language_scm.
5844 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5845 (dump_subexp_body_standard): Likewise.
5846 * parse.c (operator_length_standard): Likewise.
5847 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5848 * remote-mips.c: Do not include remote-utils.h.
5849 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
5851 * value.c: Do not include scm-lang.h.
5852 (unpack_long): Delete scm_unpack call.
5853 * config/h8300/h8300.mt, config/mips/embed.mt,
5854 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5855 config/sh/embed.mt, config/sh/linux.mt: Remove references to
5857 * NEWS: Mention removed files.
5859 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5861 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5862 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5864 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5866 * NEWS: Mention removal of HP aCC support.
5868 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5870 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5871 first entry for static executables.
5872 (breakpoint_addr): Delete unused variable.
5873 (elf_locate_base): Search for _r_debug in static executables.
5874 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
5877 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5879 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5880 (bpstat_what, print_one_breakpoint, allocate_bp_location)
5881 (mention): Remove bp_through_sigtramp support.
5882 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5884 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5886 * breakpoint.c (bpstat_what): Give step-resume higher priority than
5889 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5891 * infrun.c: Doc fixes.
5892 (handle_inferior_event): Clarify debug message.
5893 (insert_step_resume_breakpoint_at_sal): Print a debug message.
5895 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5897 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5899 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5901 * config/m68k/tm-monitor.h: Delete file.
5902 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5903 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5905 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5906 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5908 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
5910 * gdbarch.sh (software_single_step): Change the return type
5911 from void to int and reformatted some comments to <= 80
5913 * gdbarch.c, gdbarch.h: Regenerated.
5914 * alpha-tdep.c (alpha_software_single_step): Likewise.
5915 * alpha-tdep.h (alpha_software_single_step): Likewise.
5916 * arm-tdep.c (arm_software_single_step): Likewise.
5917 * cris-tdep.c (cris_software_single_step): Likewise.
5918 * mips-tdep.c (mips_software_single_step): Likewise.
5919 * mips-tdep.h (mips_software_single_step): Likewise.
5920 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5921 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5922 * sparc-tdep.c (sparc_software_single_step): Likewise.
5923 * sparc-tdep.h (sparc_software_single_step): Likewise.
5924 * spu-tdep.c (spu_software_single_step): Likewise.
5925 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5926 and act accordingly.
5928 2007-04-11 Steve Ellcey <sje@cup.hp.com>
5930 * configure.ac (build_warnings): Add -Wno-char-subscripts.
5931 * configure: Regenerate.
5932 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5934 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5936 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
5938 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5940 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
5942 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
5943 distinct on the TYPE_STUB_SUPPORTED debug targets.
5944 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
5946 2007-04-11 Joel Brobecker <brobecker@adacore.com>
5948 * sparc-tdep.c (X_RS2): New macro.
5949 (sparc_skip_stack_check): New function.
5950 (sparc_analyze_prologue): Adjust PC past stack probing
5951 sequence if necessary.
5953 2007-04-10 Andreas Schwab <schwab@suse.de>
5955 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
5958 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5960 * breakpoint.c (gdb_breakpoint_query): Really return an
5962 (gdb_breakpoint): Likewise.
5963 * thread.c (gdb_list_thread_ids): Likewise.
5964 (gdb_thread_select): Likewise.
5965 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
5966 (mi_cmd_thread_list_ids): Remove bogus initialization.
5968 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5970 * Makefile.in (SFILES): Remove hpacc-abi.c.
5971 (COMMON_OBS): Remove hpacc-abi.o.
5972 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
5973 (hpacc-abi.o, hpread.o): Delete rules.
5974 * somread.c: Delete extern declarations from hpread.c.
5975 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
5976 (som_symfile_finish): Do not call hpread_symfile_finish.
5977 (som_symfile_init): Do not call hpread_symfile_init.
5978 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
5979 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
5980 * hpacc-abi.c, hpread.c: Deleted.
5982 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5984 * solib-svr4.c (enable_break): Simplify return value.
5985 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
5987 2007-04-10 Andreas Schwab <schwab@suse.de>
5989 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
5990 l_ld_size, l_next_size, l_prev_size, l_name_size.
5992 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
5993 to extract addresses from link map.
5994 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
5995 (LM_NEXT): Likewise.
5996 (LM_NAME): Likewise.
5997 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
5998 (elf_locate_base): Likewise.
5999 (open_symbol_file_object): Likewise.
6000 (svr4_fetch_objfile_link_map): Likewise.
6001 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
6002 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
6004 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
6005 (svr4_lp64_fetch_link_map_offsets): Likewise.
6007 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
6008 removed members. Set l_ld_offset to -1 if not present.
6010 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
6012 Pass stderr of program run with "target remote |"
6014 * serial.c (serial_open): Set error_fd to -1.
6015 * serial.h (struct serial): New field error_fd.
6016 (struct serial_opts): New field avail.
6017 * ser-pipe.c (pipe_open): Create another pair
6018 of sockets. Pass stderr to gdb.
6019 * ser-mingw.c (pipe_windows_open): Pass
6020 PEX_STDERR_TO_PIPE to pex_run. Initialize
6023 (_initialize_ser_windows): Hook pipe_avail.
6024 * ser-base.c (generic_readchar): Check if there's
6025 anything in stderr channel and route that to gdb_stderr.
6027 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
6029 * dbxread.c (read_ofile_symtab): Move current_objfile
6030 clearing to after end_stabs.
6032 2007-04-01 Andreas Schwab <schwab@suse.de>
6034 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
6035 gdbarch instead of current_gdbarch.
6037 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
6039 * varobj.c (varobj_create): Keep varobj value
6040 NULL when evaluating the type.
6042 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
6044 * NEWS: Mention new Windows CE support.
6046 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
6048 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
6049 the obsoletion stanza.
6050 * NEWS: Mention deleted targets.
6052 * config/sh/tm-wince.h: Remove.
6053 * config/sh/wince.mt: Remove.
6054 * config/mips/tm-wince.h: Remove.
6055 * config/mips/wince.mt: Remove.
6058 * wince-stub.c: Remove.
6059 * wince-stub.h: Remove.
6060 * Makefile.in (wince.o): Remove rule.
6061 (wince-stub.o): Likewise.
6063 * mips-tdep.c (mips_next_pc): Make static.
6064 * mips-tdep.h (mips_next_pc): Remove declaration.
6065 * arm-tdep.c (arm_pc_is_thumb): Make static.
6066 (thumb_get_next_pc): Likewise.
6067 (arm_get_next_pc): Likewise.
6068 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
6069 (arm_pc_is_thumb): Likewise.
6070 (thumb_get_next_pc): Likewise.
6071 (arm_get_next_pc): Likewise.
6073 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6075 * MAINTAINERS: Remove d10v entry.
6076 * Makefile.in (SFILES): Remove dwarfread.c.
6077 (COMMON_OBS): Remove dwarfread.o.
6078 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
6079 (remote-est.o, rom68k-rom.o): Delete.
6080 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
6081 target est, target rom68k, and DWARF 1.
6082 * configure.tgt: Mark d10v as removed.
6083 * dwarf2read.c: Doc update.
6084 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
6086 (elf_locate_sections): Do not set them.
6087 (elf_symfile_read): Do not call dwarf_build_psymtabs.
6088 * symfile.h (dwarf_build_psymtabs): Delete prototype.
6089 * config/m68k/monitor.mt (TDEPFILES): Prune.
6090 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
6091 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
6093 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6095 * doublest.c (convert_floatformat_to_doublest): Use
6096 floatformat_classify.
6097 (floatformat_is_nan): Rename to...
6098 (floatformat_classify): ...this. Return more information.
6099 * doublest.h (enum float_kind): New.
6100 (floatformat_is_nan): Replace prototype...
6101 (floatformat_classify): ...with this one.
6102 * valprint.c (print_floating): Use floatformat_classify. Handle
6105 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6107 * README: Mention ISO C library requirement.
6109 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6111 * Makefile.in (SFILES): Remove nlmread.c.
6112 (COMMON_OBS): Remove nlmread.o.
6113 (nlmread.o): Delete rule.
6114 * README: Delete reference to remote-st.c.
6115 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
6116 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
6118 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
6119 (_initialize_i386_tdep): Do not reference them.
6120 * nlmread.c: Delete file.
6121 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
6122 * target.c: Doc update.
6123 * thread.c: Delete commented include.
6124 * config/alpha/tm-alpha.h: Doc update.
6126 2007-03-30 Chris Dearman <chris@mips.com>
6128 * utils.c (string_to_core_addr): Comment typo.
6130 2007-03-30 Chris Dearman <chris@mips.com>
6132 * mips-tdep.c: Comment typo.
6134 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
6136 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
6137 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6138 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6139 * config/powerpc/nm-ppc64-linux.h: Remove file.
6140 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
6141 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
6142 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
6143 * infptrace.c (call_ptrace): Likewise.
6144 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
6145 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
6146 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
6147 (store_register): Likewise.
6149 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6151 * Makefile.in (varobj.o): Add missing dependency.
6153 2007-03-29 Michael Snyder <msnyder@access-company.com>
6155 * MAINTAINERS: Update my email address.
6157 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6159 Add support for exception handling with multiple versions of
6161 * ada-lang.c: Update general comments on how Ada exception catchpoints
6163 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6164 (__gnat_raise_nodefer_with_msg): Delete.
6165 (ada_unhandled_exception_name_addr_ftype): New type.
6166 (exception_support_info): New type.
6167 (ada_unhandled_exception_name_addr): Add forward declaration.
6168 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6169 (default_exception_support_info): New constant.
6170 (exception_support_info_fallback): Likewise.
6171 (exception_info): New global variable.
6172 (ada_exception_support_info_sniffer): New function.
6173 (ada_executable_changed_observer): Likewise.
6174 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6175 ada_unhandled_exception_name_addr.
6176 (ada_unhandled_exception_name_addr): Reimplement to match the
6177 latest Ada runtime implementation.
6178 (error_breakpoint_runtime_sym_not_found): Delete.
6179 (ada_exception_sym_name): Get the exception sym name from
6180 exception_info rather than hardcoding it.
6181 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6182 Update error handling.
6183 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6185 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6187 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6188 (remote-st.o, uw-thread.o): Delete.
6189 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6190 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6191 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6192 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6193 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6194 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6195 rs6000-*-lynxos* to an obsoletion stanza.
6196 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6197 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6198 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6199 i[34567]86-*-netware*.
6200 * NEWS: Mention deleted targets.
6202 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6203 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6204 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6205 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6206 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6207 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6208 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6209 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6210 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6211 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6212 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6213 config/rs6000/tm-rs6000ly.h: Delete files.
6215 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6217 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6218 * interps.c (clear_interpreter_hooks): Do not clear
6219 deprecated_registers_changed_hook.
6220 * regcache.c (registers_changed): Do not call it.
6221 * top.c (deprecated_registers_changed_hook): Do not define it.
6222 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6223 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6224 (tui_remove_hooks): Do not remove it.
6225 (tui_selected_frame_level_changed_hook): Check for negative level.
6226 Use get_selected_frame.
6227 (tui_registers_changed_hook): Deleted.
6229 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6231 * stabsread.c (add_undefined_type): Add extra parameter.
6232 Now handles nameless types separately.
6233 (struct nat): New type.
6234 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6235 New static variables.
6236 (read_type): Update calls to add_undefined_type.
6237 (add_undefined_type_noname): New function.
6238 (add_undefined_type_1): Renames from add_undefined_type.
6239 (cleanup_undefined_types_noname): New function.
6240 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6241 (cleanup_undefined_types): New handles nameless types separately.
6242 (_initialize_stabsread): Initialize our new static constants.
6244 2007-03-29 Denis Pilat <denis.pilat@st.com>
6246 * configure.ac: Test for signal.h.
6247 * configure, config.in: Regenerate.
6249 2007-03-29 Denis Pilat <denis.pilat@st.com>
6251 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6252 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6254 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6256 * arm-wince-tdep.c: New.
6257 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6258 (MT_CFLAGS): Delete.
6260 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6261 solib-legacy.o, solib-svr4.o, and remove wince.o.
6262 * configure.tgt (arm*-*-mingw32ce*): Add.
6263 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6264 (do_target_signal_to_host): Silence 'not used' warning.
6265 * config/arm/tm-wince.h: Remove.
6267 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6269 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6270 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6272 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6273 * config/ia64/tm-linux.h: Remove file.
6274 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6275 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6276 legacy_pc_in_sigtramp.
6277 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6278 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6279 Remove func_name argument.
6280 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6282 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6283 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6284 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6285 (HAVE_STEPPABLE_WATCHPOINT): Define.
6287 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6288 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6289 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6290 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6291 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6292 target_insert_watchpoint, target_remove_watchpoint): Remove.
6293 (FETCH_INFERIOR_REGISTERS): Define.
6294 * ia64-linux-nat.c (ia64_register_addr): Make static.
6295 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6296 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6297 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6298 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6299 (ia64_linux_stopped_by_watchpoint): Make static.
6300 (ia64_linux_can_use_hw_breakpoint): New function.
6301 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6302 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6303 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6305 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6307 * linespec.c: Include language.h.
6308 (find_methods): Add language parameter. Call
6309 lookup_symbol_in_language. Pass language down.
6310 (add_matching_methods): Likewise. Call
6311 lookup_symbol_in_language.
6312 (add_constructors): Likewise.
6313 (find_method): Pass sym_class to collect_methods.
6314 (collect_methods): Add sym_class parameter. Pass language
6316 * symtab.c (lookup_symbol): Rename to ...
6317 (lookup_symbol_in_language): ... this. Add language
6318 parameter. Use passed language instead of current_language.
6319 (lookup_symbol): New as wrapper around
6320 lookup_symbol_in_language.
6321 (lookup_symbol_aux): Add language parameter. Use passed
6322 language instead of current_language.
6323 (search_symbols): Indent.
6324 * symtab.h (enum language): Forward declare.
6325 (lookup_symbol_in_language): Declare.
6326 (lookup_symbol): Update description.
6327 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6328 * ada-lang.c (restore_language): Remove.
6329 (lookup_symbol_in_language): Remove.
6331 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6333 * breakpoint.c (bpstat_num): Add int *num parameter.
6334 * breakpoint.h (bpstat_num): Likewise.
6335 * infcmd.c (continue_command): Adjust to new bpstat_num
6337 (program_info): Likewise.
6339 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6341 * config/sh/tm-sh.h: Remove file.
6342 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6343 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6344 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6345 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6347 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6349 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6350 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6351 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6352 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6353 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6354 sequence if target_shortname is "remote".
6356 2007-03-27 Anton Blanchard <anton@samba.org>
6358 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6359 instead of wordsize when looking for the LR in a stack frame.
6361 2007-03-27 Andreas Schwab <schwab@suse.de>
6362 Daniel Jacobowitz <dan@codesourcery.com>
6364 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6365 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6366 argument. Update all callers.
6367 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6368 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6369 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6370 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6371 (dwarf2_frame_set_adjust_regnum): ...this.
6372 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6373 * rs6000-tdep.c: Include "dwarf2-frame.h".
6374 (rs6000_adjust_frame_regnum): Define.
6375 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6376 Register rs6000_adjust_frame_regnum.
6378 * Makefile.in (rs6000-tdep.o): Update dependencies.
6380 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6382 * Makefile.in: Add support for a "pdf" target.
6384 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6386 * amd64-tdep.c (amd64_init_frame_cache): New function.
6387 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6389 2007-03-26 Nigel Stephens <nigel@mips.com>
6390 Maciej W. Rozycki <macro@mips.com>
6392 * ui-out.c (ui_out_field_core_addr): Truncate address to
6393 TARGET_ADDR_BIT size before printing.
6395 2007-03-22 Nigel Stephens <nigel@mips.com>
6396 Maciej W. Rozycki <macro@mips.com>
6398 * remote-mips.c (mips_xfer_memory): Update prototype.
6400 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6402 * symfile.h: #include "symtab.h"
6404 2007-03-22 Denis Pilat <denis.pilat@st.com>
6406 * utils.c (pagination_on_command, pagination_off_command):
6407 Remove useless prototypes.
6409 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6412 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6413 instead of TYPE_NAME for object base class name.
6416 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6418 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6419 Specify frame type in calls to frame_func_unwind().
6421 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6423 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6424 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6425 (refine_prologue_limit): Delete.
6426 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6427 Assume lim_pc is set. Correct check for incomplete prologues.
6428 Do not skip clobbers of the frame pointer.
6429 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6432 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6434 * frame.c (frame_pop): Check to see whether there's a frame to
6435 which we can pop first.
6437 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6439 * MAINTAINERS (Write After Approval): Add myself.
6441 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6443 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6444 (handle_inferior_event): Remove unnecessary braces.
6445 * breakpoint.c (bpstat_what): Remove wrong comment.
6447 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6449 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6450 (spu_gdbarch_init): Install it.
6452 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6454 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6455 object types, not 0.
6457 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6459 * spu-tdep.c (spu_frame_align): New function.
6460 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6462 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6464 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6465 (spu_software_single_step): Likewise.
6466 (spu_read_pc, spu_write_pc): New functions.
6467 (spu_gdbarch_init): Install them.
6469 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6471 * cli/cli-dump.c (struct callback_data): load_offset needs to
6472 have signed long type.
6474 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6476 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6477 Revert the previous change that had some unexpected side-effects
6479 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6480 function to get the address of the calling instruction.
6482 2007-03-07 Denis Pilat <denis.pilat@st.com>
6484 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6485 get_selected_frame by deprecated_safe_get_selected_frame.
6487 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6489 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6490 "gdb_string.h". Don't include "nbsd-tdep.h".
6491 (SIZEOF_STRUCT_REG): Remove.
6492 (SHNBSD_SIZEOF_GREGS): New.
6493 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6494 (shnbsd_regset_from_core_section): New functions.
6495 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6496 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6497 shnbsd_supply_gregset, shnbsd_collect_gregset.
6498 (shnbsd_gregset): New variable.
6499 (shnbsd_init_abi): Set regset_from_core_section.
6500 (GDB_OSABI_NETBSD_CORE): New define.
6501 (shnbsd_core_osabi_sniffer): New function.
6502 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6503 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6504 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6506 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6508 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6510 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6511 length of the types referenced by the new type CV ring.
6513 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6515 * frame.c (frame_pop, frame_observer_target_changed): Call
6517 (flush_cached_frames): Rename to reinit_frame_cache and delete
6519 * frame.h (flush_cached_frames): Delete prototype and update comment.
6521 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6522 reinit_frame_cache instead of flush_cached_frames. Do not call
6523 select_frame after reinit_frame_cache.
6524 * corelow.c (core_open): Likewise.
6525 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6526 * infrun.c (prepare_to_proceed, context_switch)
6527 (handle_inferior_event): Likewise.
6528 * linux-fork.c (fork_load_infrun_state): Likewise.
6529 * ocd.c (ocd_start_remote): Likewise.
6530 * remote-e7000.c (e7000_start_remote): Likewise.
6531 * remote-mips.c (device): Likewise.
6532 * thread.c (switch_to_thread): Likewise.
6533 * tracepoint.c (finish_tfind_command): Likewise.
6534 * gdbarch.c: Regenerated.
6536 2007-02-28 Jerome Guitton <guitton@adacore.com>
6537 Joel Brobecker <brobecker@adacore.com>
6539 * gdbtypes.c (check_typedef): Do not replace stub type if
6540 the resolved type is not defined in the same objfile.
6542 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6544 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6546 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6548 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6549 symbol for Ada units when the symbol is defined using 't' rather
6550 than 'Tt' as symbol descriptor.
6552 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6554 * config/mips/tm-nbsd.h: Delete file.
6555 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6556 * config/sh/tm-nbsd.h: Delete file.
6557 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6559 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6561 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6562 unused WRONG_PARAM value since it was recently deleted.
6564 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6566 * varobj.c (varobj_update): Free temporary vectors.
6568 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6570 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6571 * config/powerpc/tm-linux.h: Delete file.
6572 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6573 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6574 (TEXT_SEGMENT_BASE): Do not redefine.
6575 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6576 from config/rs6000/tm-rs6000.h.
6577 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6578 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6579 (TEXT_SEGMENT_BASE): Remove.
6580 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6581 (rs6000_in_solib_return_trampoline): Remove.
6582 (SKIP_TRAMPOLINE_CODE): Remove.
6583 (rs6000_skip_trampoline_code): Remove.
6584 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6585 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6586 (FP0_REGNUM): Remove.
6587 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6588 (rs6000_set_host_arch_hook): Remove.
6589 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6590 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6591 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6592 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6593 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6594 * rs6000-nat.c: Include "rs6000-tdep.h".
6595 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6596 (set_host_arch): Rename to ...
6597 (rs6000_create_inferior): ... this. Make public.
6598 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6599 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6600 (rs6000_create_inferior): Remove.
6601 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6602 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6603 set_gdbarch_in_solib_return_trampoline, and
6604 set_gdbarch_skip_trampoline_code.
6605 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6606 from config/rs6000/tm-rs6000.h.
6608 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6610 * buildsym.c (record_producer): Do nothing if no producer is provided.
6612 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6614 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6615 to check changelist is non-NULL. Call error if the frontend tries
6616 to update a non-root variable.
6618 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6620 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6622 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6623 (dwarf2_frame_sniffer): Update.
6624 (dwarf2_signal_frame_this_id): New function.
6625 (dwarf2_signal_frame_unwind): Use it.
6626 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6627 * frame.c (frame_func_unwind): Add this_type argument.
6628 (get_frame_func): Update.
6629 (frame_unwind_address_in_block): Add this_type argument and check it.
6631 (get_frame_address_in_block): Update.
6632 * frame.h (enum frame_type): Move higher in the file.
6633 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6636 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6637 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6638 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6639 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6640 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6641 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6642 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6643 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6644 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6645 frame_func_unwind and frame_unwind_address_in_block to specify
6646 the frame type. Use frame_unwind_address_in_block instead of
6647 frame_pc_unwind in sniffers.
6649 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6651 * frame.c (deprecated_selected_frame): Rename to...
6652 (selected_frame): ...this. Make static.
6653 (get_selected_frame, select_frame): Update.
6654 * frame.h (deprected_select_frame): Delete.
6655 (deprecated_safe_get_selected_frame): Update comments.
6657 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6658 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6659 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6660 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6661 tui/tui.c: Replace references to deprecated_selected_frame.
6663 2007-02-27 Fred Fish <fnf@specifix.com>
6665 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6666 directly decrement the stack pointer, accumulate their operand into
6667 the stack offset, and mark the function as not being frameless.
6669 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6671 * arch-utils.c (selected_byte_order): New.
6672 * arch-utils.h (selected_byte_order): New prototype.
6673 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6675 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6677 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6678 (default_symfile_offsets): Check VMA here. Update section VMAs.
6680 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6682 * remote.c (init_remote_state): Add special handling for placeholder
6685 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6687 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6688 (filenames_h): New variable.
6689 (clean): Clean up xml-builtin.c and stamp-xml.
6690 (arm-linux-nat.o): Update.
6691 * config/arm/linux.mh (TDEP_XML): Define.
6692 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6693 (arm_linux_has_wmmx_registers): New.
6694 (GET_THREAD_ID): Fix typo.
6695 (IWMMXT_REGS_SIZE): Define.
6696 (fetch_wmmx_regs, store_wmmx_regs): New.
6697 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6698 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6699 (super_xfer_partial, arm_linux_xfer_partial): New.
6700 (_initialize_arm_linux_nat): Use them.
6701 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6702 (xml_builtin_xfer_partial): New function.
6703 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6704 * NEWS: Update mention of iWMMXt support.
6706 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6708 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6709 if there are no FPA registers.
6710 (arm_dwarf_reg_to_regnum): New function.
6711 (arm_register_type, arm_register_name): Return minimal values for
6712 unsupported registers.
6713 (arm_register_sim_regno): Handle iWMMXt registers.
6714 (arm_gdbarch_init): Record missing FPA registers if indicated by
6715 a target description. Recognize iWMMXt registers. Only register
6716 "info float" for FPA. Use ARM_NUM_REGS. Register
6717 arm_dwarf_reg_to_regnum.
6718 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6720 (struct gdbarch_tdep): Add have_fpa_registers.
6721 * features/xscale-iwmmxt.xml: Update capitalization.
6722 * regformats/arm-with-iwmmxt.dat: Regenerated.
6724 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6726 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6728 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6730 * MAINTAINERS (mep): New target.
6732 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6734 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6736 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6737 (mep-tdep.o): New rule.
6738 * configure.tgt (mep-*-*): New target.
6739 * mep-tdep.c: New file.
6740 * config/mep/mep.mt: New file.
6742 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6744 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6745 BREAKPOINT_HIT and STOP_UNKNOWN.
6747 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6749 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6751 2007-02-20 Joel Brobecker <brobecker@adacore.com>
6753 * gdb_expat.h (XMLCALL): Define if not already defined.
6755 2007-02-20 Andreas Schwab <schwab@suse.de>
6757 * Makefile.in (symfile.o): Update dependencies.
6759 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6761 * MAINTAINERS: Disable -Werror for cris simulator. Build
6762 sparc64-solaris2.10 instead of the broken sparc-elf.
6763 * solib-frv.c: Include "solib.h".
6764 * Makefile.in (solib-frv.o): Update.
6765 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6766 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6767 (xtensa_frame_this_id, xtensa_frame_prev_register)
6768 (xtensa_push_dummy_call): Use %p.
6770 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6772 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6773 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6774 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6775 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6776 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6777 (sparc-linux-tdep.o): Update.
6779 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6781 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6782 (xtensa_mask_t): Change mask field to be a separate array.
6783 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6784 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6785 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6786 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6787 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6788 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6789 (mask14, mask15): Rename to
6790 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6791 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6792 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6793 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6794 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6795 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6796 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6797 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6798 (xtensa_submask14, xtensa_submask15): New.
6799 (rmap): Follow strict aliasing rules doing static initialization.
6801 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6803 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6804 handling from here...
6805 (tdesc_register_type): ...to here.
6806 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6807 * features/arm-core.xml: Use code_ptr and data_ptr.
6809 2007-02-13 Denis Pilat <denis.pilat@st.com>
6811 * varobj.h (enum varobj_update_error): New enum.
6812 * varobj.c (struct varobj_root): Add is_valid member.
6813 (varobj_get_type): Check for invalid varobj.
6814 (varobj_get_attributes): Likewise.
6815 (variable_editable):Likewise.
6816 (varobj_update): Likewise. Use varobj_update_error.
6817 (new_root_variable): Set root varobj as valid by default.
6818 (varobj_invalidate): New function.
6819 * symfile.c (clear_symtab_users): Use varobj_invalidate.
6820 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6821 Use varobj_update_error.
6823 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
6826 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6827 Pascal language marker.
6828 * dwarf2read.c (set_cu_language): Likewise.
6830 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
6832 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6833 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6834 instead of target_terminal_init since inferior_ptid isn't set yet.
6836 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
6838 * MAINTAINERS (Write After Approval): Add myself.
6840 2007-02-09 Fred Fish <fnf@specifix.com>
6842 Based on work by Apple Computer, Inc.
6843 * event-top.c (async_request_quit): Call quit() whenever either
6844 quit_flag is set or immediate_quit is set.
6846 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6848 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6849 type to a pointer to const struct block.
6850 (ada_lookup_symbol_list): Don't cast away constness when calling
6851 remove_out_of_scope_renamings.
6853 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6855 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6856 address of 'filename'; it is always non null.
6858 2007-02-09 Joel Brobecker <brobecker@adacore.com>
6860 * exec.c (add_to_section_table): Do not discard empty sections.
6862 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6864 * features/Makefile, features/arm-with-iwmmxt.xml,
6865 features/gdbserver-regs.xsl, features/number-regs.xsl,
6866 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6867 * regformats/arm-with-iwmmxt.dat: Generate.
6868 * NEWS: Mention iWMMXt.
6870 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6872 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6873 (xml-tdesc.o): Update.
6874 * xml-support.c: Add a comment.
6875 (gdb_xml_enums_boolean): New variable.
6876 (gdb_xml_parse_attr_enum): Use strcasecmp.
6877 * xml-support.h (gdb_xml_enums_boolean): Declare.
6878 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6879 next_regnum, and current_union.
6880 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6881 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6882 (field_attributes, union_children, reg_attributes, union_attributes)
6883 (vector_attributes, feature_attributes, feature_children): New.
6884 (target_children): Make static. Add <feature>.
6885 (tdesc_elements): Make static.
6886 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6887 (struct tdesc_feature, tdesc_feature_p): New types.
6888 (struct target_desc): Add features member.
6889 (struct tdesc_arch_data, tdesc_data): New.
6890 (target_find_description): Clarify error message. Warn about
6891 ignored register descriptions.
6892 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6893 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6894 (tdesc_data_cleanup, tdesc_numbered_register)
6895 (tdesc_numbered_register_choices, tdesc_find_register)
6896 (tdesc_register_name, tdesc_register_type)
6897 (tdesc_remote_register_number, tdesc_register_reggroup_p)
6898 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6899 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6900 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6901 (tdesc_create_feature, tdesc_record_type): New.
6902 (free_target_description): Free features.
6903 (_initialize_target_descriptions): Initialize tdesc_data.
6904 * arch-utils.c (default_remote_register_number): New.
6905 * arch-utils.h (default_remote_register_number): New prototype.
6906 * target-descriptions.h (set_tdesc_pseudo_register_name)
6907 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6908 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6909 (tdesc_numbered_register, tdesc_numbered_register_choices)
6910 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6911 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6912 (tdesc_create_reg): Declare.
6913 * gdbarch.sh (remote_register_number): New entry.
6914 * gdbarch.c, gdbarch.h: Regenerate.
6915 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6916 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6918 * arm-tdep.c (arm_register_aliases): New.
6919 (arm_register_name_strings): Rename to...
6920 (arm_register_names): ...this. Make const. Delete the old version.
6921 (current_option, arm_register_byte): Delete.
6922 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
6923 (value_of_arm_user_reg): New.
6924 (arm_gdbarch_init): Verify any described registers. Call
6925 tdesc_use_registers. Don't use arm_register_byte. Create aliases
6926 for standard register names.
6927 (_initialize_arm_tdep): Do not adjust arm_register_names.
6928 * user-regs.c (struct user_reg): Add baton member.
6929 (append_user_reg, user_reg_add_builtin, user_regs_init)
6930 (user_reg_add, value_of_user_reg): Use a baton for user
6932 * std-regs.c: Update.
6933 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6934 (user_reg_add): Add baton argument.
6935 * NEWS: Mention target description register support.
6936 * features/arm-core.xml, features/arm-fpa.xml: New.
6937 * eval.c (evaluate_subexp_standard): Allow ptype $register
6938 when the program is not running.
6940 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
6942 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
6944 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6946 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
6947 info->disassembler_options to "any".
6949 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6951 * varobj.c (install_new_value): Only call value_get_print_value
6954 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6956 Reported by timeless@gmail.com:
6957 * gdb/target.c (target_flash_erase): Do not return void value.
6958 (target_flash_done): Likewise.
6959 * gdb/cli/cli-cmds.c (source_command): Likewise.
6961 2007-02-08 Fred Fish <fnf@specifix.com>
6963 Based on work by Apple Computer, Inc.
6964 * event-top.c (handle_sigint): Set quit_flag.
6965 (async_request_quit): Don't set quit_flag. Avoid calling quit()
6966 if quit_flag has already been reset.
6968 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6970 * ser-mingw.c (pipe_windows_close): Move variable initialization back
6973 2007-02-08 Fred Fish <fnf@specifix.com>
6975 * defs.h (request_quit): Remove declaration.
6976 * utils.c (request_quit): Remove definition.
6978 2007-02-08 Joel Brobecker <brobecker@gnat.com>
6979 Jan Kratochvil <jan.kratochvil@redhat.com>
6980 Daniel Jacobowitz <dan@codesourcery.com>
6982 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
6983 (skip_prologue): Allow bl->blrl used by PIC code.
6985 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6986 Daniel Jacobowitz <dan@codesourcery.com>
6988 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
6989 initialize tmp_obstack.
6990 * p-valprint.c (pascal_object_print_value_fields)
6991 (pascal_object_print_value): Likewise.
6993 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6995 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
6997 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6999 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7000 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
7002 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7004 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
7006 (tdesc_parse_xml): Cache expanded descriptions.
7008 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
7010 * Makefile.in (XMLFILES): New.
7011 (COMMON_OBS): Add xml-builtin.o.
7012 (xml-builtin.c, stamp-xml): New rules.
7013 (xml-tdesc.o): Update.
7014 * features/feature_to_c.sh: New file.
7015 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
7016 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
7017 (gdb_xml_start_element): Initialize scope after possibly reallocating
7018 scopes. Move cleanup later. Handle the XInclude description
7020 (gdb_xml_end_element): Only parse the body if there is a current element.
7021 Call XML_DefaultCurrent if there is no element.
7022 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
7023 (struct xinclude_parsing_data, xinclude_start_include)
7024 (xinclude_end_include, xml_xinclude_default)
7025 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
7026 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
7027 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
7028 * xml-support.h (xml_fetch_another, xml_process_xincludes)
7029 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
7030 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
7031 XInclude directives. Use the compiled in DTD.
7032 (fetch_xml_from_file): Add baton argument. Treat it as a containing
7033 directory name. Do not warn here.
7034 (file_read_description_xml): Update call. Warn here instead. Pass
7036 (fetch_available_features_from_target): New.
7037 (target_read_description_xml): Use it.
7038 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
7040 * features/xinclude.dtd: New file.
7042 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7044 * linux-thread-db.c (check_for_thread_db): Return early if we have
7045 no libthread_db support.
7047 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
7049 * mi/mi-parse.h: Include <sys/time.h>.
7051 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
7053 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
7054 instead of print_variable_value to print values.
7056 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7058 * mi/mi-main.c: Numerous formatting changes.
7059 (mi_cmd_data_write_register_values): Replace clause inadvertantly
7060 removed in my previous change.
7062 2007-02-03 Eli Zaretskii <eliz@gnu.org>
7064 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
7065 Use 1000000L instead of 1000000.
7067 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
7069 Based on work by Apple Computer, Inc.
7071 * configure.ac: Test for sys/resource.h and getrusage.
7072 * configure, config.in: Regenerate.
7074 * mi/mi-main.c: Include <sys/resource.h> if present.
7075 (rusage): Declare if HAVE_GETRUSAGE.
7076 (current_command_ts, do_timings): New static variables.
7077 (timestamp, print_diff_now, print_diff, timeval_diff):
7078 New static timing functions.
7079 (mi_cmd_enable_timings): New function for new MI command.
7080 (captured_mi_execute_command, mi_execute_async_cli_command):
7081 Call timing functions.
7083 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
7086 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
7088 * mi/mi-parse.h: (mi_timestamp): New structure.
7089 (mi_parse): Add mi_timestamp* member.
7091 2007-02-02 Denis Pilat <denis.pilat@st.com>
7093 * thread.c (make_cleanup_restore_current_thread): New function.
7094 (info_threads_command): Use of make_cleanup_restore_current_thread
7095 to restore the current thread and the selected frame.
7096 (restore_selected_frame): New function.
7097 (struct current_thread_cleanup): Add frame_id field.
7098 (do_restore_current_thread_cleanup): Add restoring of the selected
7100 (make_cleanup_restore_current_thread): Likewise.
7101 (thread_apply_all_command): backup the selected frame while
7102 entering the function and restore it at exit.
7103 (thread_apply_command): Likewise.
7105 2007-02-02 Denis Pilat <denis.pilat@st.com>
7107 * MAINTAINERS (Write After Approval): Add myself to the list.
7109 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7111 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
7112 (m32r_store_register): Ditto.
7114 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
7116 * ser-mingw.c (pipe_windows_open)
7117 (pipe_windows_read, pipe_windows_write): Declare
7118 variables at the top of the function.
7120 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7122 * doublest.c (floatformat_from_length): Use the right element from
7123 gdbarch floatformats.
7124 (floatformat_from_type, extract_typed_floating)
7125 (store_typed_floating): Likewise.
7126 * doublest.h: Remove declarations for undefined floatformat arrays.
7127 * gdbarch.sh (float_format, double_format, long_double_format): Change
7129 (pformat): Update for pairs.
7130 * gdbarch.c, gdbarch.h: Regenerated.
7131 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
7132 (floatformats_ieee_double_littlebyte_bigword)
7133 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
7134 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
7135 (floatformats_vax_d): New variables.
7136 (builtin_type_ieee_single, builtin_type_ieee_double)
7137 (builtin_type_arm_ext, builtin_type_ia64_spill)
7138 (builtin_type_ia64_quad): Replace arrays with individual types.
7139 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
7140 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
7141 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
7142 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
7143 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
7144 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
7145 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
7146 unused and endian-specific types.
7147 (recursive_dump_type): Update for floatformat pairs.
7148 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
7149 (build_gdbtypes): Use build_flt.
7150 (_initialize_gdbtypes): Update set of initialized types.
7151 * gdbtypes.h: Update declarations to match gdbtypes.c.
7152 (struct main_type): Store a pointer to two floatformats.
7153 * arch-utils.c (default_float_format, default_double_format): Delete.
7154 * arch-utils.h (default_float_format, default_double_format): Delete.
7156 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7157 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7158 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7159 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7160 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7162 2007-01-29 Joel Brobecker <brobecker@adacore.com>
7164 * target.c (maintenance_print_target_stack): New function.
7165 (initialize_targets): Add new "maintenance print target-stack"
7168 2007-01-28 Mark Kettenis <kettenis@gnu.org>
7170 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7172 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7174 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7175 (struct dwarf2_loclist_baton): Likewise.
7177 2007-01-27 Eli Zaretskii <eliz@gnu.org>
7179 * cli/cli-script.c: Include breakpoint.h.
7180 (build_command_line): Require arguments only for if and while
7182 (get_command_line, execute_user_command, execute_control_command):
7183 Fix wording of warning messages.
7184 (print_command_lines): Print breakpoint commands.
7185 (execute_control_command): Call commands_from_control_command to
7186 handle the `commands' command inside a body of a flow-control
7188 (read_next_line): Recognize the `commands' command and build a
7189 command line structure for it.
7190 (recurse_read_control_structure, read_command_lines): Handle
7191 `commands' similarly to `if' and `while'.
7193 * breakpoint.c (get_number_trailer): Document the special meaning
7194 of NULL as the first argument PP.
7195 (commands_from_control_command): New function.
7197 * breakpoint.h (commands_from_control_command): Add prototype.
7199 * defs.h (commands_control): New enumerated value for enum
7200 command_control_type.
7202 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7204 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7205 (ada_exception_sal): Update accordingly.
7207 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7209 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7210 * NEWS: Describe CHAR array vs. string identifcation rules.
7212 2007-01-25 Paul Brook <paul@codesourcery.com>
7214 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7216 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7218 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7219 expression is empty, bother to return the 'optimized out' value we
7220 construct. (Thanks to Carl Burch.)
7222 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7224 * varobj.c (c_value_of_root, c_value_of_child)
7225 (cplus_describe_child): Don't call release_value.
7227 2007-01-24 Thiemo Seufer <ths@mips.com>
7229 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7232 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7234 Refactor getting children name, value and type access
7236 * varobj.c (get_type_deref): Remove.
7237 (adjust_value_for_child_access): New.
7238 (c_number_of_children): Use the above.
7239 (c_describe_child): Likewise.
7240 (enum accessibility): New.
7241 (match_accessibility): New function.
7242 (cplus_describe_child): New function.
7243 (cplus_name_of_child, cplus_value_of_child)
7244 (cplus_type_of_child): Reimplement in terms
7245 of cplus_describe_child.
7246 (cplus_number_of_children): Use
7247 adjust_value_for_child_access.
7249 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7251 Fix computation of the 'editable' attribute and
7252 value changeability for for references.
7253 * varobj.c (get_value_type): New function.
7254 (c_variable_editable): Use get_value_type.
7255 (varobj_value_is_changeable): Likewise.
7257 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7259 * source.c (find_and_open_source): Try rewriting the source
7260 path inside filename if dirname is NULL.
7262 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7264 * dwarf2read.c (add_partial_symbol): Create an extra partial
7265 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7266 (new_symbol): Likewise for symbols.
7268 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7270 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7272 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7274 * value.c (value_primitive_field): Copy the full 'location'
7275 contents, instead of assuming that copying ADDRESS will
7276 bring over everything in the union. Remove obsolete comment.
7278 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7280 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7281 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7282 (m32c_m16c_pointer_to_address): Separate code from declarations.
7284 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7286 * target.c (update_current_target): Correct typo.
7288 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7290 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7293 2007-01-11 Andrew Cagney <cagney@redhat.com>
7294 Daniel Jacobowitz <dan@codesourcery.com>
7295 Jan Kratochvil <jan.kratochvil@redhat.com>
7297 * dwarf2-frame.c (execute_cfa_program): New support of
7298 `DW_CFA_GNU_negative_offset_extended'.
7300 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7302 * NEWS: Mention flash support for "load" and new remote packets.
7304 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7306 * breakpoint.c (delete_command): Skip redundant loop iterations.
7308 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7310 * gdbarch.sh (register_type): Update comment.
7311 * gdbarch.h: Regenerated.
7312 * arch-utils.c (generic_register_size): Call register_type.
7313 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7314 * m32c-tdep.c (check_for_saved): Likewise.
7315 * mips-tdep.c (mips_print_register, print_gp_register_row)
7316 (mips_print_registers_info): Likewise.
7317 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7319 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7320 (sh64_do_register, sh64_print_register)
7321 (sh64_media_print_registers_info): Likewise.
7322 * tui/tui-regs.c (tui_register_format): Likewise.
7324 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7326 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7328 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7329 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7330 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7331 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7332 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7333 (make_symbol_completion_list): Likewise.
7335 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7336 Daniel Jacobowitz <dan@codesourcery.com>
7338 * buildsym.c (end_symtab): Use preallocated symtab if available.
7339 Fill in SYMBOL_SYMTAB.
7340 * buildsym.h (struct subfile): Add symtab member.
7341 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7342 (struct file_entry): Add symtab.
7343 (free_cu_line_header): New function.
7344 (read_file_scope): Use it. Save line_header in the cu. Process
7346 (add_file_name): Initialize new symtab member.
7347 (dwarf_decode_lines): Create symtabs for included files.
7348 (new_symbol): Set SYMBOL_SYMTAB.
7349 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7350 (search_symbols): Likewise.
7351 * symtab.h (struct symbol): Add symtab member.
7352 (SYMBOL_SYMTAB): Define.
7354 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7356 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7358 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7360 * arch-utils.c (show_endian): Correct reversed condition.
7362 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7364 * MAINTAINERS (Write After Approval): Add myself.
7366 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7367 Vladimir Prus <vladimir@codesourcery.com>
7369 Fix 'selected frame' varobjs.
7370 * varobj.c (struct varobj): Remove the error field.
7371 (varobj_set_value): Don't check var->error.
7372 (install_new_value): Don't set var->error.
7373 (varobj_update): Always pass the new value
7374 of the root via install_new_value.
7375 (create_child): Don't set error field.
7376 (new_variable): Likewise.
7377 (c_value_of_root): Always reevaluate the value
7378 of selected frame varobjs in the selected frame.
7379 Don't call reinit_frame_cache.
7381 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7383 * source.c (_initialize_source): Improve the help text of
7384 the substitute-path commands.
7386 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7388 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7389 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7390 (frv_skip_prologue): Remove prototypes.
7391 (frv_adjust_breakpoint_address): Renamed from
7392 frv_gdbarch_adjust_breakpoint_address.
7393 (frv_gdbarch_init): Adjust.
7395 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7397 * gdbarch.sh (deprecated_extract_return_value)
7398 (deprecated_store_return_value): Remove.
7399 (extract_return_value, store_return_value): Remove default values.
7400 * gdbarch.c, gdbarch.h: Regenerate.
7401 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7402 (legacy_store_return_value): Remove.
7403 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7406 * mi/mi-main.c: Remove obsolete comment.
7408 * regcache.c, regcache.h (deprecated_register_bytes)
7409 (deprecated_read_register_bytes)
7410 (deprecated_write_register_bytes): Remove.
7412 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7413 Don't forget to move destination pointer.
7415 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7417 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7419 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7421 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7422 past entry function with recent newlib.
7424 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7426 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7427 introduction. Specify -var-update more exactly.
7429 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7431 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7433 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7435 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7436 the Global Maintainers' invitation to be a global maintainer.
7438 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7440 * infrun.c (singlestep_pc): New variable.
7441 (resume): Set singlestep_pc.
7442 (context_switch): Add a debugging message. Flush the frame cache.
7443 (handle_inferior_event): Add debugging messages. Handle thread
7444 hops when a software single step has completed. Let context_switch
7445 handle flushing the frame cache.
7447 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7449 * NEWS: Mention target descriptions, "set tdesc filename",
7450 "unset tdesc filename", "show tdesc filename", and
7451 qXfer:features:read.
7452 * arch-utils.c (choose_architecture_for_target): New function.
7453 (gdbarch_info_fill): Call it.
7454 * target-descriptions.c (struct property): Make members non-const.
7455 (struct target_desc): Add arch member.
7456 (target_description_filename): New variable.
7457 (target_find_description): Try via XML first.
7458 (tdesc_architecture): New.
7459 (free_target_description, make_cleanup_free_target_description): New.
7460 (set_tdesc_property): Call xstrdup.
7461 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7462 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7463 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7464 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7465 * target-descriptions.h (tdesc_architecture)
7466 (make_cleanup_free_target_description, set_tdesc_architecture): New
7468 * Makefile.in (SFILES): Add xml-tdesc.c.
7469 (COMMON_OBS): Add xml-tdesc.o.
7470 (target-descriptions.o): Update.
7471 (xml-tdesc.o): New rule.
7472 * xml-tdesc.c, xml-tdesc.h: New files.
7473 * remote.c (PACKET_qXfer_features): New enum.
7474 (remote_protocol_features): Add qXfer:features:read.
7475 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7476 (_initialize_remote): Register qXfer:features:read.
7477 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7478 * features/gdb-target.dtd: New file.
7480 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7482 * copyright.sh: Clarify error.
7484 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7486 * symtab.c (matching_bfd_sections): Fix VMA matching for
7489 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7491 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7494 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7496 Updated copyright notices for most files.
7498 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7500 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7502 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7504 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7506 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7508 * configure, config.in: Regenerate.
7509 * defs.h (debug_file_directory): Declare.
7510 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7511 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7512 relocate it if DEBUGDIR_RELOCATABLE.
7513 * symfile.c (debug_file_directory): Make non-static.
7514 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7515 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7516 (_initialize_symfile): Don't initialize debug_file_directory here.
7518 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7520 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7523 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7525 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7526 frame_unwind_register to recurse.
7527 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7528 (alpha_heuristic_frame_prev_register): Likewise.
7529 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7530 * m32c-tdep.c (m32c_prev_register): Likewise.
7531 * frame.c (frame_register_unwind_location): Remove FIXME.
7533 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7534 Eli Zaretskii <eliz@gnu.org>
7536 * copyright.sh: New file.
7538 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7540 * configure.ac: Check for XML_StopParser.
7541 * xml-support.c (gdb_xml_body_text): Check for an error.
7542 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7543 (gdb_xml_end_element_wrapper): Likewise.
7544 * config.in, configure: Regenerated.
7546 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7548 * varobj.c (install_new_value): Always update print_value.
7549 (value_get_print_value): Immediately return NULL for missing
7552 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7554 * configure.ac: Tighten pattern for extracting value of
7555 DEPRECATED_TM_FILE from the target makefile fragment.
7556 * configure: Regenerated.
7558 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7560 * linux-nat.c (struct simple_pid_list): Add status.
7561 (add_to_pid_list): Record the PID's status.
7562 (linux_record_stopped_pid): Likewise. Make static.
7563 (pull_pid_from_list): Return the saved status.
7564 (linux_nat_handle_extended): Deleted.
7565 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7566 Make static. Handle non-SIGSTOP for a new thread's first signal.
7567 (flush_callback): Handle unexpected pending signals.
7568 (linux_nat_wait): Update calls to changed functions.
7569 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7570 Remove prototypes for newly static functions.
7572 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7574 * gdbarch.sh (value_from_register): New gdbarch function.
7575 * gdbarch.c, gdbarch.h: Regenerate.
7576 * findvar.c (default_value_from_register): New function.
7577 (value_from_register): Use gdbarch_value_from_register.
7578 * value.h (default_value_from_register): Declare.
7579 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7580 spu_value_to_register): Remove.
7581 (spu_value_from_register): New function.
7582 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7583 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7584 Call set_gdbarch_value_from_register.
7585 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7586 s390_value_to_register): Remove.
7587 (s390_value_from_register): New function.
7588 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7589 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7590 Call set_gdbarch_value_from_register.
7592 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7594 * NEWS: Add "set sysroot" and "show sysroot".
7595 * solib.c (solib_absolute_prefix): Delete. Replace
7596 all uses with gdb_sysroot.
7597 (_initialize_solib): Add "set sysroot" and "show sysroot".
7598 Make "solib-absolute-prefix" an alias to it.
7600 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7602 * frame.c (get_frame_register_bytes): New function.
7603 (put_frame_register_bytes): Likewise.
7604 * frame.h (get_frame_register_bytes): Declare.
7605 (put_frame_register_bytes): Likewise.
7606 * findvar.c (value_from_register): Always construct lval_register
7607 values. Use get_frame_register_bytes.
7608 * valops.c (value_assign): Use get_frame_register_bytes and
7609 put_frame_register_bytes.
7611 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7613 * MAINTAINERS: Update Stan Shebs' email address.
7615 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7617 * ada-lang.c (is_known_support_routine): Improve the implementation.
7619 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7621 * ada-lang.c: Add include of source.h.
7622 (is_known_support_routine): Improve the check verifying that the file
7623 associated to this frame exists.
7624 * Makefile.in (ada-lang.o): Add dependency on source.h.
7626 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7628 * ax-general.c (ax_const_l): Select proper opcode for the given
7631 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7633 * varobj.c (c_value_of_root): Don't select frame if variable
7634 object is out of scope.
7636 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7638 * varobj.c (struct varobj): New member print_value.
7639 (install_new_value): Compare last printed value with current one
7640 instead of contents.
7641 (new_variable): Initialize var->print_value to NULL.
7642 (free_variable): Free var->print_value.
7643 (value_get_print_value): New function derived from
7644 c_value_of_variable.
7645 (c_value_of_variable): Use value_get_print_value.
7647 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7649 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7651 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7653 * NEWS: Add entries for new catch commands.
7655 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7657 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7658 (add_partial_symbol): Correct identification of external references.
7659 (process_structure_scope): Likewise.
7660 (read_partial_die): Handle DW_AT_byte_size attribute.
7662 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7664 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7666 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7668 * varobj.c (get_type_deref): Fix variable objects for references to
7671 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7673 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7676 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7678 * memory-map.c (struct_memory_map_parsing_data): Remove most
7679 members. Make property_name an array.
7680 (free_memory_map_parsing_data, memory_map_start_element)
7681 (memory_map_end_element, memory_map_character_data): Delete.
7682 (memory_map_start_memory, memory_map_end_memory)
7683 (memory_map_start_property, memory_map_end_property): New functions.
7684 (property_attributes, memory_children, memory_type_enum)
7685 (memory_attributes, memory_map_children, memory_map_elements): New.
7686 (parse_memory_map): Rewrite.
7687 * xml-support.c (debug_xml): New.
7688 (xml_get_required_attribute, xml_get_integer_attribute)
7689 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7691 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7692 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7693 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7694 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7695 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7696 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7697 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7699 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7700 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7701 (enum gdb_xml_element_flag, struct gdb_xml_element)
7702 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7703 (struct gdb_xml_enum): New.
7704 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7705 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7706 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7707 (xml_get_required_attribute, xml_get_integer_attribute)
7708 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7709 * Makefile.in (xml_support_h, xml-support.o): Update.
7711 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7713 * Makefile.in (eval.o): Update dependencies.
7714 * eval.c: Include "ui-out.h" and "exceptions.h".
7715 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7716 Use value_zero if an error occurs when avoiding side effects.
7717 * varobj.c (c_value_of_root): Initialize new_val.
7719 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7721 * varobj.c (varobj_list_children): Stop if the number of children is
7723 (c_number_of_children):
7725 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7727 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7728 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7729 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7730 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7731 sizeof, instead of hardcoded constants.
7733 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7735 * CONTRIBUTE: Use sourceware.org.
7737 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7739 * buildsym.c (start_subfile): Handle producer.
7740 (record_producer): New function.
7741 * buildsym.h (struct subfile): Include producer.
7742 (record_producer): New prototype.
7743 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7744 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7745 armcc_cfa_offsets_reversed.
7746 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7747 (dwarf2_frame_find_quirks): New function.
7748 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7749 (decode_frame_entry_1): Record the CIE version. Record the
7750 augmentation. Skip armcc augmentations.
7751 * dwarf2read.c (read_file_scope): Save the producer.
7752 * symtab.h (struct symtab): Rename unused version member to
7755 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7757 * configure.ac (build_warnings): Use -Wall and
7758 -Wdeclaration-after-statement.
7759 * configure: Regenerated.
7761 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7763 Simplify access to variours properties of child
7764 variable objects in C.
7765 * varobj.c (value_struct_element_index): New function.
7766 (c_describe_child): New function.
7767 (c_name_of_child, c_value_of_child)
7768 (c_type_of_child): Rewrite to use c_describe_child.
7770 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7773 * varobj.c: Include "vec.h".
7774 (varobj_p): New typedef, declare vector of those.
7775 (struct varobj): Use vector for the 'children' member.
7776 (child_exists): Remove.
7777 (save_child_in_parent): Remove.
7778 (remove_child_from_parent): Remove.
7779 (struct varobj_child): Remove.
7780 (struct vstack): Remove.
7781 (vpush, vpop): Remove.
7782 (varobj_list_children): Adjust to work work vector.
7783 (varobj_update): Likewise. Use vectors for
7784 working stack and result.
7785 (delete_variable_1): Likewise.
7786 * Makefile.in (varobj.o): Update dependencies.
7788 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7790 Port from Apple's version.
7792 * varobj.c (type_changeable): Rename to...
7793 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7794 (is_root_p): New function. Use it everywhere.
7796 2007-01-04 Jim Blandy <jimb@codesourcery.com>
7798 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7801 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7803 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7805 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7807 * hpread.c (hpread_type_lookup): Fix compilation failure.
7809 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7811 * NEWS: New port to S+core.
7812 * MAINTAINERS (Write After Approval, Responsible Maintainers):
7815 * Makefile.in: Add dependencies for S+core files.
7816 * configure.tgt (score*, score-*-*): Add S+core target.
7817 * config/score/embed.mt: New file.
7818 * score-tdep.c: New file.
7819 * score-tdep.h: New file.
7821 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7823 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7824 the appropriate type rather than a bogus void type.
7826 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7828 * ada-lang.h (ada_find_printable_frame): Remove.
7829 (ada_exception_catchpoint_p, ada_decode_exception_location)
7830 (ada_decode_assert_location): Add declaration.
7831 * ada-lang.c: Add include of annotate.h and valprint.h.
7832 (exception_catchpoint_kind): New enum.
7833 (function_name_from_pc, is_known_support_routine)
7834 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7835 (ada_exception_name_addr_1, ada_exception_name_addr)
7836 (print_it_exception, print_one_exception, print_mention_exception)
7837 (print_it_catch_exception, print_one_catch_exception)
7838 (print_mention_catch_exception, catch_exception_breakpoint_ops)
7839 (print_it_catch_exception_unhandled)
7840 (print_one_catch_exception_unhandled)
7841 (print_mention_catch_exception_unhandled, print_it_catch_assert)
7842 (print_one_catch_assert, print_mention_catch_assert)
7843 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7844 (ada_get_next_arg, catch_ada_exception_command_split)
7845 (ada_exception_sym_name, ada_exception_sym_name)
7846 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7847 (ada_parse_catchpoint_condition, ada_exception_sal)
7848 (ada_decode_exception_location)
7849 (ada_decode_assert_location): New function.
7850 (catch_exception_unhandled_breakpoint_ops): New global variable.
7851 (catch_assert_breakpoint_ops): New global variable.
7852 * breakpoint.c: Add include of ada-lang.h.
7853 (print_one_breakpoint): Do not print the condition for Ada
7854 exception catchpoints.
7855 (create_ada_exception_breakpoint): New function.
7856 (catch_ada_exception_command, catch_assert_command): New function.
7857 (catch_command_1): Add support for the new "catch exception" and
7858 "catch assert" commands.
7859 (_initialize_breakpoint): Add help description for the new catch
7861 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7863 (breakpoint.o): Add dependency on ada-lang.h.
7865 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
7867 * coffread.c (cs_to_section): If bfd_section is found, always
7868 return its section index.
7869 (coff_symtab_read): Determine the minimal_symbol_type using the
7872 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7873 Daniel Jacobowitz <dan@codesourcery.com>
7875 * Makefile.in (top.o): Update.
7876 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7877 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7878 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7880 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7882 2007-01-03 Mark Kettenis <kettenis@gnu.org>
7884 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7885 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7887 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7889 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7890 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7891 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7892 greater than or equal to zero.
7893 * m2-typeprint.c (m2_array): Likewise.
7894 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7895 * gdbtypes.c (copy_type_recursive): Correct == typo.
7896 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7897 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7899 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7900 (default_macro_scope): Remove unused variable.
7901 * prologue-value.h (pv_area_find_reg): Don't name an argument
7903 * remote-fileio.c (remote_fio_func_map): Add missing braces.
7904 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7906 (cleanup_sigint_signal_handler): Remove casts.
7907 * valprint.c (val_print): Use a volatile local for the modified
7909 * varobj.c (languages): Remove extra array dimension.
7910 (varobj_create): Correct access to languages array.
7911 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7913 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7914 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7915 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7916 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7917 (mi_cmd_data_write_memory): Likewise.
7918 * signals/signals.c (target_signal_to_string): Cast to int before
7920 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7923 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7925 * NEWS: Mention pointer to member improvements.
7926 * Makefile.in (gnu-v3-abi.o): Delete special rule.
7927 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7928 * ada-valprint.c (ada_print_scalar): Update for new type codes.
7929 * c-typeprint.c (c_print_type): Update for new type codes.
7930 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7931 (c_type_print_base): Likewise.
7932 (c_type_print_args): Rewrite.
7933 * c-valprint.c (c_val_print): Update for new type codes. Remove
7934 support for references to members. Treat methods like functions.
7935 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
7936 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
7937 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
7938 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
7939 (struct cp_abi_ops): Add corresponding members.
7940 * cp-valprint.c (cp_print_class_method): Delete.
7941 (cp_find_class_member): New function.
7942 (cp_print_class_member): Use it. Simplify support for bogus
7944 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
7945 lookup_methodptr_type.
7946 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
7947 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
7948 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
7950 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
7951 references returned by user defined operators.
7952 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
7953 (f_type_print_varspec_suffix): Remove support for member pointers.
7954 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
7956 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
7957 (lookup_methodptr_type): New.
7958 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
7959 (recursive_dump_type): Update for new types.
7960 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
7961 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
7962 (lookup_memberptr_type, lookup_methodptr_type)
7963 (smash_to_memberptr_type): New prototypes.
7964 (smash_to_method_type): Formatting fix.
7965 (lookup_member_type, smash_to_member_type): Delete prototypes.
7966 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
7967 Do not rely on debug information for the vptr or the method's
7968 enclosing type. Handle function descriptors for IA64.
7969 (gnuv3_virtual_fn_field): Rewrite using the new functions.
7970 (gnuv3_find_method_in, gnuv3_print_method_ptr)
7971 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
7972 (gnuv3_method_ptr_to_value): New.
7973 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
7974 * hpread.c (hpread_type_lookup): Update for new types.
7975 * infcall.c (value_arg_coerce): Likewise.
7976 * m2-typeprint.c (m2_print_type): Remove explicit support
7977 for member pointers.
7978 * m2-valprint.c (m2_val_print): Likewise.
7979 * p-typeprint.c (pascal_type_print_varspec_prefix)
7980 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
7981 * p-valprint.c (pascal_val_print): Likewise.
7982 (pascal_object_print_class_method, pascal_object_print_class_member):
7984 * p-lang.h (pascal_object_print_class_method)
7985 (pascal_object_print_class_member): Delete prototypes.
7986 * stabsread.c (read_type): Update for new types.
7987 * typeprint.c (print_type_scalar): Likewise.
7988 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
7989 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
7990 argument. Construct a pointer to member if the address of a
7991 function or data member is requested.
7992 (value_cast_pointers): Don't modify the input value.
7993 (value_cast): Adjust pointer to member handling for new types.
7994 Allow null pointer to member constants. Don't modify the input
7996 (value_ind): Remove pointer to member check. Handle function
7997 descriptors for function pointers.
7998 (value_struct_elt, value_find_oload_method_list, check_field):
7999 Remove pointer to member checks.
8000 * value.c (unpack_long): Allow pointers to data members.
8001 (value_from_longest): Allow member pointers.
8002 * value.h (value_aggregate_elt): Add want_address.
8003 * varobj.c (c_variable_editable): Remove check for members.
8004 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
8005 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
8007 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
8008 * c-lang.h (cp_print_class_method): Delete prototype.
8009 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
8010 * mips-tdep.c (mips_gdbarch_init): Likewise.
8011 * gdbarch.c, gdbarch.h: Regenerated.
8013 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8015 * rs6000-tdep.c (rs6000_use_struct_convention)
8016 (rs6000_extract_return_value, rs6000_store_return_value)
8017 (rs6000_extract_struct_value_address): Remove.
8018 (rs6000_return_value): New function.
8019 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
8020 store_return_value, deprecated_extract_struct_value_address and
8021 deprecated_use_struct_convention. Use rs6000_return_value
8024 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
8026 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
8027 -display-disable, -display-enable, -display-insert and
8030 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8032 * breakpoint.c (remove_breakpoint): Remove dead code.
8034 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
8036 * varobj.c: Include block.h.
8037 (c_value_of_root): Check scope within nested statements.
8039 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8041 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
8042 regcache_cooked_write_signed instead of
8043 deprecated_write_register_bytes.
8045 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8047 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
8049 2007-01-01 Joel Brobecker <brobecker@adacore.com>
8051 Followed the Start of New Year Procedure:
8052 * ChangeLog-2006: New file, containing all the entries for 2006.
8053 * ChangeLog: Removed all 2006 entries, and changed the reference
8054 to the previous ChangeLog to point to ChangeLog 2006.
8055 * top.c (print_gdb_version): Update copyright year.
8057 2007-01-01 Mark Kettenis <kettenis@gnu.org>
8059 * Makefile.in (remote-sds.o): Remove.
8060 * remote-sds.c: Delete.
8062 For older changes see ChangeLog-2006.
8068 version-control: never