1 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
3 * memattr.c (inaccessible_by_default): Change the initial
6 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
9 * coffread.c (read_one_sym): Check for read errors.
11 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
13 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
14 instead of "Linux 2.6.19" in comment.
15 (linux_xfer_partial): Use "GNU/Linux target" instead of
16 "Linux target" in comment.
17 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
18 (m68k_linux_get_sigtramp_info): Likewise.
20 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
22 * MAINTAINERS (language support): List Joel and Paul as
25 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
27 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
29 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
30 not set DEPRECATED_TM_FILE.
31 * config/arm/tm-arm.h: Delete file.
33 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
35 * MAINTAINERS (Write After Approval): Add self.
37 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
39 * buildsym.c (record_line): Remove empty lines followed by
40 end-of-sequence markers.
42 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
44 * configure.tgt: Recognize fido-*-elf.
46 2007-10-10 Joel Brobecker <brobecker@adacore.com>
50 2007-10-10 Markus Deuling <deuling@de.ibm.com>
52 * stack.c (print_frame_args, frame_info, return_command): Use
53 get_regcache_arch or get_frame_arch to get at the current architecture
54 by regcache or by frame, respectively.
56 2007-10-10 Markus Deuling <deuling@de.ibm.com>
58 * rs6000-nat.c (fetch_register, store_register)
59 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
60 get_regcache_arch to get at the current architecture by regcache.
62 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
63 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
64 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
65 current_gdbarch by gdbarch.
66 (rs6000_skip_trampoline_code, rs6000_register_to_value)
67 (rs6000_value_to_register): Use get_frame_arch to get at the current
68 architecture by frame_info.
70 2007-10-10 Markus Deuling <deuling@de.ibm.com>
72 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
73 get_regcache_arch to get at the current architecture by regcache.
75 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
76 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
77 get_regcache_arch to get at the current architecture by regcache.
79 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
80 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
81 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
82 current architecture by regcache.
84 2007-10-10 Markus Deuling <deuling@de.ibm.com>
86 * remote-mips.c (mips_wait, mips_fetch_registers)
87 (mips_store_registers): Use get_regcache_arch to get at the
88 current architecture by regcache.
90 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
91 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
92 get at the current architecture by regcache.
93 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
94 architecture by frame_info.
96 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
97 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
98 the current architecture by regcache.
100 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
101 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
102 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
103 current architecture by frame_info.
104 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
105 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
106 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
107 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
108 get at the current architecture by regcache.
110 * mips-linux-nat.c (mips_linux_register_addr)
111 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
112 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
113 (mips64_linux_regsets_fetch_registers)
114 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
115 the current architecture by regcache.
117 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
118 get at the current architecture by frame_info.
120 2007-10-10 Markus Deuling <deuling@de.ibm.com>
122 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
123 current architecture by regcache.
124 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
125 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
126 (mips_stub_frame_cache, mips_read_fp_register_single)
127 (mips_read_fp_register_double, mips_print_fp_register)
128 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
129 at the current architecture by frame_info.
130 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
131 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
132 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
133 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
134 (mips_o32_push_dummy_call, mips_o32_return_value)
135 (mips_o64_push_dummy_call, mips_o64_return_value)
136 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
139 2007-10-10 Markus Deuling <deuling@de.ibm.com>
141 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
142 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
143 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
144 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
145 (xtensa_register_write_masked, xtensa_register_read_masked)
146 (xtensa_supply_gregset, xtensa_store_return_value)
147 (xtensa_extract_return_value): Use get_regcache_arch to get at the
148 current architecture by regcache.
149 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
150 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
151 architecture by frame_info.
153 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
155 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
156 (thumb_analyze_prologue): Move pv_area_store_would_trash call
157 out of loop. Do not set cache->frameoffset.
158 (arm_scan_prologue): Use prologue-value mechanism. Do not set
159 frameoffset. Simplify framesize.
160 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
162 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
164 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
166 * target.c (update_current_target): Call setup_target_debug.
167 (push_target): Do not call it here.
169 2007-10-09 Michael Snyder <msnyder@specifix.com>
171 * MAINTAINERS: Update my email address.
173 2007-10-09 Markus Deuling <deuling@de.ibm.com>
175 * xtensa-tdep.c: Replace following current-gdbarch based macros by
177 (xtensa_pseudo_register_read)
178 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
179 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
180 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
181 (xtensa_pseudo_register_read)
182 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
183 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
184 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
185 (xtensa_frame_prev_register): NUM_AREGS.
186 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
187 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
188 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
189 (xtensa_supply_gregset, xtensa_frame_cache)
190 (xtensa_frame_prev_register): WS_REGNUM.
191 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
192 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
193 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
194 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
195 (xtensa_register_reggroup_p): REGMAP.
196 (call0_track_op): LITBASE_REGNUM.
197 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
198 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
199 (xtensa_frame_prev_register, AREG_NUMBER)
200 (xtensa_register_type): AR_BASE.
201 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
202 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
203 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
204 (xtensa_frame_cache, xtensa_frame_prev_register)
205 (xtensa_extract_return_value, xtensa_store_return_value)
206 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
207 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
208 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
209 (xtensa_frame_prev_register, xtensa_push_dummy_call)
210 (call0_frame_cache): A1_REGNUM.
211 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
212 (xtensa_push_dummy_call): A4_REGNUM.
213 (ARGS_FIRST_REG): A6_REGNUM.
214 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
215 (xtensa_frame_prev_register): A15_REGNUM.
216 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
217 them in the appropriate source file:
218 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
219 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
220 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
221 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
222 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
223 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
224 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
225 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
226 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
227 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
228 A13_REGNUM, A14_REGNUM, A15_REGNUM.
230 2007-10-09 Markus Deuling <deuling@de.ibm.com>
232 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
233 the current architecture by frame_info.
234 (h8300_frame_prev_register
235 (h8300_print_register): Replace current_gdbarch by gdbarch.
236 (h8300_print_registers_info, h8300_register_type)
237 (h8300_register_type): Likewise.
239 2007-10-09 Markus Deuling <deuling@de.ibm.com>
241 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
242 the current architecture by regcache.
243 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
244 (i386_linux_fetch_inferior_registers)
245 (i386_linux_store_inferior_registers): Likewise.
246 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
247 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
248 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
249 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
250 (i386_extract_return_value, i386_store_return_value): Likewise.
251 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
252 the current architecture by frame_info.
253 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
254 (i386_register_to_value, i386_value_to_register): Likewise.
256 2007-10-09 Markus Deuling <deuling@de.ibm.com>
258 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
259 the current architecture by regcache.
260 (monitor_store_register, monitor_store_registers): Likewise.
262 2007-10-09 Markus Deuling <deuling@de.ibm.com>
264 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
265 the current architecture by regcache.
267 2007-10-09 Markus Deuling <deuling@de.ibm.com>
269 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
272 2007-10-09 Markus Deuling <deuling@de.ibm.com>
274 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
275 architecture by frame.
276 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
277 (inside_main_func, frame_sp_unwind): Likewise.
279 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
281 * solib-svr4.c (enable_break): Add the dynamic linker also if
284 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
286 * MAINTAINERS (Write After Approval): Add self.
288 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
290 * stabsread.c (read_huge_number): Initialize local variable to 0.
292 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
294 * p-lang.h (pascal_main_name): Add declaration.
295 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
296 (GPC_MAIN_PROGRAM_NAME_2): New constants.
297 (pascal_main_name): New function.
298 * symtab.c: Include p-lang.h.
299 (find_main_name): Add call to pascal_main_name.
300 * Makefile.in (symtab.o): Add dependency on p-lang.h.
302 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
304 * stabsread.c (read_huge_number): Fix handling of octal
305 representation when the bit width is known.
306 (read_range_type): Record unsigned integral types with their size,
307 when the type size is known.
309 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
311 * MAINTAINERS (Write After Approval): Add self.
313 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
315 * breakpoint.c (print_one_breakpoint_location): ARI fix:
316 Replace asprintf by xstrprintf.
318 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
320 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
321 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
323 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
325 * linux-fork.c: Move "gdb_wait.h" include back to the position of
326 <sys/wait.h> include before last commit.
328 2007-10-08 Maciej W. Rozycki <macro@mips.com>
330 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
332 2007-10-08 Markus Deuling <deuling@de.ibm.com>
334 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
335 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
336 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
337 (store_regs_user_thread, store_regs_kernel_thread): Use
338 get_regcache_arch or get_frame_arch to get at the current architecture
339 by regcache or by frame, respectively.
341 2007-10-08 Markus Deuling <deuling@de.ibm.com>
343 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
344 (sh64_pseudo_register_read, sh64_pseudo_register_write)
345 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
346 (sh64_print_register, sh64_media_print_registers_info)
347 (sh64_compact_print_registers_info, sh64_unwind_sp)
348 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
349 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
350 (sh64_frame_prev_register): Use FRAME to recognize current
353 2007-10-08 Markus Deuling <deuling@de.ibm.com>
355 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
356 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
357 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
358 current_gdbarch by gdbarch.
359 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
360 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
361 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
362 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
363 recognize current architecture.
365 2007-10-08 Markus Deuling <deuling@de.ibm.com>
367 * remote.c (init_remote_state, fetch_register_using_p)
368 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
369 (store_register_using_P, store_registers_using_G)
370 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
371 get at the current architecture by regcache or by frame, respectively.
373 2007-10-08 Markus Deuling <deuling@de.ibm.com>
375 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
376 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
377 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
378 get_regcache_arch or get_frame_arch to get at the current architecture
379 by regcache or by frame, respectively.
380 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
381 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
382 (store_register, old_store_inferior_registers, supply_gregset)
383 (supply_fpregset, fill_fpregset): Likewise.
384 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
385 Replace current_gdbarch by gdbarch.
387 2007-10-08 Markus Deuling <deuling@de.ibm.com>
389 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
390 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
391 get_frame_arch to get at the current architecture by regcache or by
394 2007-10-08 Markus Deuling <deuling@de.ibm.com>
396 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
397 Replace current_gdbarch by gdbarch.
398 * ia64-tdep.c (ia64_frame_prev_register
399 (ia64_sigtramp_frame_prev_register)
400 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
401 get_frame_arch to get at the current architecture by regcache or by
403 * ia64-linux-nat.c (ia64_linux_fetch_register)
404 (ia64_linux_fetch_registers, ia64_linux_store_register)
405 (ia64_linux_store_registers): Likewise.
407 2007-10-08 Markus Deuling <deuling@de.ibm.com>
409 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
410 current_gdbarch by gdbarch.
411 * hppa-linux-nat.c (fetch_register, store_register)
412 (hppa_linux_fetch_inferior_registers)
413 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
414 get_frame_arch to get at the current architecture by regcache or by
416 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
417 (hppa_hpux_unwind_adjust_stub): Likewise.
418 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
419 (hppa_hpux_fetch_inferior_registers)
420 (hppa_hpux_store_inferior_registers): Likewise.
422 2007-10-08 Markus Deuling <deuling@de.ibm.com>
424 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
425 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
426 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
427 or get_frame_arch to get at the current architecture by regcache or by
429 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
430 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
431 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
432 current_gdbarch by gdbarch.
434 2007-10-08 Markus Deuling <deuling@de.ibm.com>
436 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
437 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
438 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
439 get at the current architecture by regcache or by·frame, respectively.
440 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
443 2007-10-08 Markus Deuling <deuling@de.ibm.com>
445 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
446 Use get_regcache_arch or get_frame_arch to get at the current
447 architecture by regcache or by frame, respectively.
448 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
449 * amd64-nat.c (amd64_supply_native_gregset)
450 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
452 2007-10-08 Markus Deuling <deuling@de.ibm.com>
454 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
456 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
457 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
458 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
459 get_frame_arch to get at the current architecture by regcache or by
461 * alpha-nat.c (fetch_osf_core_registers): Likewise.
463 2007-10-08 Markus Deuling <deuling@de.ibm.com>
465 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
466 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
467 current_gdbarch by gdbarch.
468 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
470 2007-10-08 Markus Deuling <deuling@de.ibm.com>
472 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
473 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
474 * regcache.c (regcache_raw_write): Use get_regcache_arch or
475 get_frame_arch to get at the current architecture by regcache or by
478 2007-10-08 Markus Deuling <deuling@de.ibm.com>
480 * findvar.c (value_of_register, locate_var_value): Use
481 get_regcache_arch or get_frame_arch to get at the current architecture
482 by regcache or by frame, respectively.
483 * findvar.c (default_value_from_register, value_from_register): Replace
484 current_gdbarch by gdbarch.
486 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
488 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
490 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
492 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
493 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
495 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
497 * remote.c (get_offsets): Only call free_symfile_segment_data if
500 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
502 * objc-exp.y: ARI fix: remove 4 PARAMS.
504 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
506 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
507 news. Mention XML support for M68K in GDB 6.7.
509 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
511 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
513 (init_vector_type): Use builtin_type_int32.
515 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
517 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
518 size to enable bi-arch generate-core-file support.
520 2007-10-02 Markus Deuling <deuling@de.ibm.com>
522 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
524 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
526 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
528 * tui/tui-win.c (tui_initialize_win): New function for
529 initializing tui's SIGWINCH signal handler.
530 * tui/tui-win.h (tui_initialize_win): Declare.
532 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
534 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
535 pointer to uintptr_t before casting to CORE_ADDR.
537 2007-10-02 Markus Deuling <deuling@de.ibm.com>
539 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
541 2007-10-02 Mark Mitchell <mark@codesourcery.com>
543 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
544 * ser-mingw.c (enum select_thread_state): New type.
545 (struct ser_console_state): Add have_started and thread_state.
546 (select_thread_wait): New function.
547 (thread_fn_type): New type.
548 (create_select_thread): New function.
549 (destroy_select_thread): Likewise.
550 (start_select_thread): Likewise.
551 (stop_select_thread): Likewise.
552 (console_select_thread): Use new functions.
553 (pipe_select_thread): Likewise.
554 (file_select_thread): Likewise.
555 (ser_console_wait_handle): Likewise.
556 (ser_console_done_wait_handle): Likewise.
557 (ser_console_close): Likewise.
558 (free_pipe_state): Likewise.
559 (pipe_wait_handle): Likewise.
560 (pipe_done_wait_handle): Likewise.
561 (struct net_windows_state): Derive from ser_console_state.
562 (net_windows_select_thread): Use new functions.
563 (net_windows_wait_handle): Likewise.
564 (net_windows_done_wait_handle): Likewise.
565 (net_windows_close): Likewise.
567 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
569 * inflow.c (terminal_ours_1): Remove useless line.
571 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
573 * mips-tdep.c (mips_read_fp_register_double): Correct check for
575 (mips_print_fp_register): Correct check for even FP registers.
576 (mips_virtual_frame_pointer): New function.
577 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
579 2007-09-30 Mike Frysinger <vapier@gentoo.org>
581 * value.h (lookup_only_internalvar): New prototype.
582 (create_internalvar): Likewise.
583 * value.c (lookup_only_internalvar): New function.
584 (create_internalvar): Likewise.
585 (lookup_internalvar): Use new lookup_only_internalvar and
586 create_internalvar functions.
587 * parse.c (write_dollar_variable): Look up $ symbols in internal
588 table first rather than last.
590 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
592 * linux-nat.c (linux_nat_new_thread): New variable.
593 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
594 linux_nat_switch_fork.
595 (lwp_list): Make public.
596 (add_lwp): Call linux_nat_new_thread.
597 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
599 (resume_callback): Clear lp->siginfo. Remove unused variable.
600 (linux_nat_resume): Assert that the LWP list is already initialized.
603 (stop_wait_callback, linux_nat_wait): Call it.
604 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
605 * linux-nat.h (struct lwp_info): Add siginfo.
606 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
609 * amd64-linux-nat.c (amd64_linux_dr): New.
610 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
611 (amd64_linux_dr_set): Take a PTID argument.
612 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
613 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
614 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
615 (amd64_linux_new_thread): New.
616 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
617 * i386-linux-nat.c (i386_linux_dr): New.
618 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
619 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
620 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
621 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
622 (i386_linux_new_thread): New.
623 (i386_linux_resume): Remove unnecessary PID check.
624 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
625 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
626 (fetch_debug_register, fetch_debug_register_pair): Delete.
627 (debug_registers): New.
628 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
629 ALL_LWPS and debug_registers.
630 (ia64_linux_new_thread): New.
631 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
632 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
633 * ppc-linux-nat.c (last_stopped_data_address): Delete.
634 (saved_dabr_value): New.
635 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
637 (ppc_linux_new_thread): New.
638 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
639 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
640 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
641 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
643 (s390_fix_watch_points): Take a PTID argument.
644 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
645 (_initialize_s390_nat): Call linux_nat_set_new_thread.
647 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
648 Jeff Johnston <jjohnstn@redhat.com>
650 * breakpoint.c (watchpoints_triggered): New.
651 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
652 Check watchpoint_triggered instead. Combine handling for software
653 and hardware watchpoints. Do not use target_stopped_data_address
654 here. Always check a watchpoint if its scope breakpoint triggers.
655 Do not stop for thread or overlay events. Improve check for
656 triggered watchpoints without a value change.
657 (watch_command_1): Insert the scope breakpoint first. Link the
658 scope breakpoint to the watchpoint.
659 * breakpoint.h (enum watchpoint_triggered): New.
660 (struct breakpoint): Add watchpoint_triggered.
661 (bpstat_stop_status): Update prototype.
662 (watchpoints_triggered): Declare.
663 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
664 (stepped_after_stopped_by_watchpoint): Delete.
665 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
666 local. Handle infwait_step_watch_state. Update calls to
667 bpstat_stop_status. Use watchpoints_triggered to check
669 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
670 (remote_stopped_data_address): Do not check it.
672 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
674 * configure.ac: Add $LIBINTL when testing libbfd.
675 * configure: Regenerated.
677 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
679 * NEW: Mention pending breakpoint changes and
680 support for breakpoints at multiple locations.
682 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
684 * arm-linux-tdep.c (arm_linux_software_single_step): New.
685 (arm_linux_init_abi): Use it.
686 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
688 * arm-tdep.h (arm_get_next_pc): Declare.
689 * Makefile.in (arm-linux-tdep.o): Update.
691 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
693 * varobj.c (install_new_value): Don't
694 call value_get_print_value when a value is
695 lazy. Update the print_value member in a
698 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
700 * breakpoint.c (create_breakpoint): Set
701 condition on each location, not on the first
702 location of breakpoint.
704 2007-09-26 Jim Blandy <jimb@codesourcery.com>
706 * remote.c (getpkt_sane): Fix error message. No animals were
707 harmed in the making of this debugger.
709 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
711 * p-typeprint.c: Fix 11 ARI reported problems.
712 (pascal_print_type): Fix 4 operator at end of line.
713 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
714 using strncmp function.
715 (pascal_type_print_base): Fix 2 operator at end of line.
716 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
717 using strncmp function.
720 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
723 dwarf2read.c (read_subroutine_type):
724 All pascal functions are prototyped.
726 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
729 p-valprint.c (pascal_val_print): correct current language check.
730 Also print array of char as strings.
733 2007-09-26 David Ung <davidu@mips.com>
734 Maciej W. Rozycki <macro@mips.com>
736 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
738 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
740 * p-exp.y: Fix 12 ARI reported problems.
741 (name_not_typename): Fix 2 operator at end of line issues.
742 (yylex): Fix 3 operator at end of line issues.
743 Replace 7 DEPRECATED_STREQ macros using strcmp function.
745 2007-09-25 David Ung <davidu@mips.com>
746 Maciej W. Rozycki <macro@mips.com>
748 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
749 rules return composite types in registers as appropriate.
751 2007-09-24 Jim Blandy <jimb@codesourcery.com>
753 * symfile.h (struct symfile_segment_data): Doc fixes.
754 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
755 Assert that we were passed some loaded segment addresses,
756 and that sections' segment numbers are valid.
757 Simplify offset calculation.
758 * remote.c (get_offsets): Clarify selection of relocate-by-segment
759 strategy, and set num_segments correctly. Delete redundant
760 assignments to do_sections.
762 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
764 * frame.c (get_prev_frame_1): Also check for PC in the same register.
766 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
768 * breakpoint.c (remove_sal): New.
769 (expand_line_sal_maybe): New.
770 (create_breakpoints): Call expand_line_sal_maybe.
771 (clear_command): Add comment.
772 (breakpoint_re_set_one): Call expand_line_sal_maybe.
773 * linespec.c (decode_indirect): Set explicit_pc to 1.
774 (decode_all_digits): Set explicit_line to 1.
775 (append_expanded_sal): New.
776 (expand_line_sal): New.
777 * linespec.h (expand_line_sal): Declare.
778 * symtab.c (init_sal): Initialize explicit_pc
780 * symtab.h (struct symtab_and_line): New fields
781 explicit_pc and explicit_line.
783 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
785 * infcall.c (call_function_by_hand): Handle language-specific
786 pass and return by reference.
788 * cp-abi.c (cp_pass_by_reference): New.
789 * cp-abi.h (cp_pass_by_reference): Declare.
790 (struct cp_abi_ops): Add pass_by_reference.
791 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
792 (init_gnuv3_ops): Set pass_by_reference.
794 * language.c (language_pass_by_reference): New.
795 (default_pass_by_reference): New.
796 (unknown_language_defn, auto_language_defn, local_language_defn): Add
797 default_pass_by_reference.
798 * langauge.h (struct language_defn): Add la_pass_by_reference.
799 (language_pass_by_reference, default_pass_by_reference): Declare.
800 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
801 * c-lang.c (c_language_defn, asm_language_defn)
802 (minimal_language_defn): Likewise.
803 (cplus_language_defn): Add cp_pass_by_reference.
804 * f-lang.c (f_language_defn): Add default_pass_by_reference.
805 * jv-lang.c (java_language_defn): Likewise.
806 * m2-lang.c (m2_language_defn): Likewise.
807 * objc-lang.c (objc_language_defn): Likewise.
808 * p-lang.c (pascal_language_defn): Likewise.
809 * scm-lang.c (scm_language_defn): Likewise
811 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
813 Allow a code breakpoint to have several locations
815 * breakpoint.h (enum enable_state): Remove the
816 bp_shlib_disabled enumerator.
817 (struct bp_location): New members shlib_disabled,
818 global_next, enabled and function_name.
819 Rename pending to condition_not_parsed.
821 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
822 (ALL_BP_LOCATIONS_SAFE): Likewise.
823 (breakpoint_enabled): Don't check for pending.
824 (condition_command): Free and update all locations of
826 (insert_bp_location): Adjust.
827 (software_breakpoint_inserted_here_p): Don't care
828 if breakpoint is enabled, as soon as it's inserted.
829 (print_it_typical): Print bpstat's location, not
830 bpstat's breakpoint's location.
831 (bpstat_stop_status): Iterate over all locations, not
833 (print_breakpoint_location): New.
834 (print_one_breakpoint): Renamed to
835 (print_one_breakpoint_location): ...this. Take
836 parameters to describe which location is being
837 printed. Modify code to properly print header
838 for several locations and individual locations.
839 (print_one_breakpoint): Print all locations.
840 (breakpoint_has_pc): New.
841 (describe_other_breakpoints): Use the above.
842 (check_duplicates): Renamed to...
843 (check_duplicates_for): .. this.
844 (check_duplicates): Use check_duplicates_for.
845 (allocate_bp_location): Adjust.
846 (set_raw_breakpoint_without_location): New,
847 extracted from set_raw_breakpoint.
848 (set_breakpoint_location_function): New.
849 (set_raw_breakpoint): Use
850 set_raw_breakpoint_without_location.
851 (make_breakpoint_permanent): Mark all locations
853 (disable_breakpoints_in_shlibs): Iterate over
855 (disable_breakpoints_in_unloaded_shlib): Likewise.
856 (re_enable_breakpoints_in_shlibs): Likewise.
857 (mention): Say "pending" when breakpoint has
858 zero locations. If breakpoint has more than one
860 (add_location_to_breakpoint): New.
861 (create_breakpoint): Accept symtabs_and_lines, not
862 symtab_and_line. Pass extra sals to
863 add_location_to_breakpoint.
864 (create_breakpoints): Pass symtabs_and_lines to
866 (break_command_1): Make pending breakpoints
868 (do_captured_breakpoint): Remove wrong allocation.
869 (clear_command): Iterate over all locations.
870 (unlink_locations_from_global_list): Renamed
871 from unlink_location_from_global_list. Remove
873 (delete_breakpoint): Remove all locations.
874 Iterate over all locations when deciding which
875 other location to re-enable.
876 (all_locations_are_pending): New.
877 (update_breakpoint_locations): Renamed from
878 update_breakpoint_location. Try to match old
879 and new locations using names of containing
881 (breakpoint_re_set_one): Adjust.
882 (find_location_by_number): New.
883 (disable_command): Allow disabling individual location.
884 (enable_command): Allow enabling individual location.
885 * breakpoint.c: Adjust all uses of breakpoint's
886 enable state to for bp_shlib_disabled change.
888 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
890 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
891 (resolve_pending_breakpoint): Remove.
892 (re_enable_breakpoints_in_shlibs): Remove.
893 (unlink_locations_from_global_list): New.
894 (update_breakpoint_locations): New.
895 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
896 Use parse_condition and update_breakpoint_location to
897 reset breakpoint. Ignore 'symbol not found' error from
899 (breakpoint_re_set): Don't emit newline before the
900 reason why breakpoint is not reset.
901 (do_enable_breakpoint): Don't specially process pending
903 (free_bp_location): New.
904 (break_command_1): For pending breakpoints, initialize
905 all fields of a sal with zeroes.
906 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
907 * infcmd.c (post_create_inferior): Don't call
908 re_enable_breakpoints_in_shlibs.
909 * infrun.c (handle_inferior_event): Likewise.
910 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
911 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
912 * win32-nat.c (get_win32_debug_event): Likewise.
914 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
916 * breakpoint.c (create_breakpoint): Split from
917 create_breakpoints, implementing most of its logic.
918 Take just a single sal, single address string and
919 single condition. Do not take parsed condition at
921 (create_breakpoints): Just call create_breakpoint
923 (find_condition_and_thread): New.
924 (break_command_1): Use find_condition_and_thread.
925 Do not keep parsed conditions.
926 (do_captured_breakpoint): Don't convert
927 condition string to struct expression.
929 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
931 * breakpoint.h (struct breakpoint): Move the cond
933 (struct bp_location): Here.
934 * breakpoint.c (condition_command, bpstat_stop_status)
935 (print_one_breakpoint, allocate_bp_location)
936 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
937 (create_exec_event_catchpoint, create_breakpoints)
938 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
939 (create_ada_exception_breakpoint, set_breakpoint_sal)
940 (delete_breakpoint, breakpoint_re_set_one): Adjust.
941 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
943 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
945 Associate bp_stat with bp_location, not breakpoint.
946 * breakpoint.h (breakpoint_at): Change type
948 * breakpoint.c (bpstat_alloc): Take bp_location,
950 (bpstat_find_breakpoint): Look at bpstat's location's
951 owner, not at bpstat->breakpoint_at.
952 (bpstat_find_step_resume_breakpoint): Likewise.
953 (bpstat_num): Likewise.
954 (print_it_typical): Likewise.
955 (print_bp_stop_message): Likewise.
956 (watchpoint_check): Likewise.
957 (bpstat_what): Likewise.
958 (bpstat_get_triggered_catchpoints): Likewise.
959 (breakpoint_auto_delete): Likewise.
960 (delete_breakpoint): Likewise.
961 (bpstat_stop_status): Pass location, not breakpoint,
962 to bpstat_alloc. Look at bpstat's location's
963 owner, not at bpstat->breakpoint_at.
965 2007-09-21 Jim Blandy <jimb@codesourcery.com>
967 * macrotab.h (new_macro_table): Document that removing information
968 from an obstack/bcache-managed macro table leaks memory.
969 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
970 that data is never freed in obstack/bcache-managed macro tables,
971 just leak the storage.
972 (macro_undef): If we're undefining a macro at exactly the same
973 source location that we defined it, simply remove the definition
976 2007-09-21 Joel Brobecker <brobecker@adacore.com>
978 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
979 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
980 Adjust the struct sym_fns object accordingly by setting
981 the new field to NULL.
982 * xcoffread.c (aix_process_linenos): Make static.
983 (xcoff_sym_fns): Set new field to aix_process_linenos.
984 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
985 by call to new the new sym_fns sym_read_linetable function.
986 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
987 * config/rs6000/tm-rs6000.h: Delete.
989 2007-09-21 David Ung <davidu@mips.com>
990 Maciej W. Rozycki <macro@mips.com>
992 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
993 rules do not treat composite types specially.
995 2007-09-20 Maciej W. Rozycki <macro@mips.com>
997 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
998 (mips16_in_function_epilogue_p): Likewise.
999 (mips_in_function_epilogue_p): Likewise.
1000 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
1002 2007-09-19 Joel Brobecker <brobecker@adacore.com>
1004 * configure.ac: Add check for "etext".
1005 * configure, config.in: Regenerate.
1006 * maint.c (TEXTEND): Only define if either _etext or etext
1008 Disable the profiling functionality if TEXTEND is not defined.
1010 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
1012 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
1013 address register. Correct the call to frame_id_build.
1014 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
1017 2007-09-18 Joel Brobecker <brobecker@adacore.com>
1019 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
1020 the linetable past the function end.
1022 2007-09-18 James E. Wilson <wilson@specifix.com>
1024 * MAINTAINERS: Update my email address.
1026 2007-09-18 Jerome Guitton <guitton@adacore.com>
1028 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
1029 (inf_ttrace_delete_dying_threads_callback): New function.
1030 (inf_ttrace_resume): After resuming the execution, iterate over
1031 the dying threads to delete them for the thread list.
1032 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
1033 mark the corresponding thread as dying instead of removing it
1034 from the thread list.
1035 (inf_ttrace_thread_alive): return 0 for dying threads.
1037 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1039 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
1040 that return_frame is not null.
1042 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1044 * solib-svr4.c: Add include of "auxv.h".
1045 (enable_break): Use the AT_BASE auxiliary entry if available.
1046 * Makefile.in (solib-svr4.o): Update dependencies.
1048 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1050 * NEWS: Create a new section for the next release branch.
1051 Rename the section of the current branch, now that it has
1054 2007-09-17 Jerome Guitton <guitton@adacore.com>
1056 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1057 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1059 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1061 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1062 * mi/mi-cmds.h (mi_cmd_list_features): New.
1063 * mi/mi-main.c (mi_cmd_list_features): New.
1065 2007-09-11 Joel Brobecker <brobecker@adacore.com>
1067 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1068 * version.in: Bump version to 6.7.50-20070911-cvs.
1070 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1072 * thread.c (free_thread): Do not delete the step resume breakpoint
1075 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1077 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1078 * corelow.c (core_read_description): New.
1079 (init_core_ops): Set to_read_description.
1080 * gdbarch.sh: Add gdbarch_core_read_description.
1081 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1082 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1083 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1084 (mips_register_g_packet_guesses): Use them.
1085 (_initialize_mips_tdep): Initialize them.
1086 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1087 * gdbarch.h, gdbarch.c: Regenerated.
1089 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1091 * infrun.c (stepping_past_breakpoint): New global variable.
1092 (stepping_past_breakpoint_ptid): Likewise.
1093 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1094 Only switch threads if we need to single-step over a breakpoint hit
1095 in the previously selected thread. If stepping, remember previous
1096 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1097 switch_to_thread instead of copying its contents.
1098 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1099 prepare_to_proceed returns true.
1100 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1101 (context_switch): Call switch_to_thread.
1102 (handle_inferior_event): Switch back to previous thread if requested
1103 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1104 * gdbthread.h (switch_to_thread): Add prototype.
1105 * thread.c (switch_to_thread): Make global.
1107 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1109 * p-valprint.c: Fix 7 ARI reported problems.
1110 (pascal_val_print): Fix one operator at end of line issue.
1111 Use paddress function to remove use of
1112 deprecated_print_address_numeric function (2 times).
1113 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1114 (pascal_value_print): Fix 3 operator at end of line issues.
1116 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1119 * arm-tdep.c (arm_in_call_stub): Delete.
1120 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1122 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1124 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1127 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1128 Jim Blandy <jimb@codesourcery.com>
1130 * NEWS: Update description of string changes. Mention print/s.
1131 * c-valprint.c (textual_element_type): New.
1132 (c_val_print): Use it. Do not skip address printing for pointers
1133 with a string format.
1134 (c_value_print): Doc update.
1135 * dwarf2read.c (read_array_type): Use make_vector_type.
1136 * gdbtypes.c (make_vector_type): New.
1137 (init_vector_type): Use it.
1138 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1139 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1140 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1141 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1142 (make_vector_type): New.
1143 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1144 Call the language print routine for string format.
1145 (print_scalar_formatted): Call val_print for string format. Handle
1146 unsigned original types for char format.
1147 (validate_format): Do not reject string format.
1148 * stabsread.c (read_type): Use make_vector_type.
1149 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1151 2007-09-04 Michael Snyder <msnyder@access-company.com>
1153 * expprint.c (print_subexp_standard): Check strchr for null.
1154 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1156 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1158 * stabsread.c (patch_block_status): Guard against null.
1159 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1161 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1163 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1164 in internal error message.
1166 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1167 Daniel Jacobowitz <dan@codesourcery.com>
1169 * infcmd.c (post_create_inferior): Update comment.
1170 (run_command_1): Always call post_create_inferior with 0 as
1173 * i386-cygwin-tdep.h: New.
1174 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1175 (win32_xfer_shared_library): Make it extern.
1177 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1179 (win32_so_ops): Delete.
1180 (get_relocated_section_addrs): Delete.
1181 (solib_symbols_add): Delete.
1182 (register_loaded_dll): Delete.
1183 (win32_make_so): New.
1184 (handle_load_dll): Use win32_make_so.
1185 (win32_free_so): Free the passed in so.
1186 (win32_relocate_section_addresses): Delete.
1187 (win32_solib_create_inferior_hook): Delete.
1188 (handle_unload_dll): Don't add PE offset here. Free so with
1189 win32_free_so instead of free_so.
1190 (win32_special_symbol_handling): Delete.
1191 (get_win32_debug_event): Remove unneeded calls. Set state to
1192 TARGET_WAITKIND_LOADED on a dll unload.
1193 (do_initial_win32_stuff): Clear cygwin_load_start and
1195 (map_code_section_args): Delete.
1196 (dll_code_sections_add): Delete.
1197 (core_section_load_dll_symbols): Delete.
1198 (win32_xfer_shared_libraries): New.
1199 (win32_current_sos): Delete.
1200 (win32_xfer_partial): New.
1201 (open_symbol_file_object): Delete.
1202 (in_dynsym_resolve_code): Delete.
1203 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1204 of win32_ops. Remove win32_so_ops settings. Don't set
1205 current_target_so_ops here.
1207 * Makefile.in (i386_cygwin_tdep_h): New variable.
1208 (i386-cygwin-tdep.o): Update dependencies.
1209 (win32-nat.o): Update dependencies.
1211 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1212 Daniel Jacobowitz <dan@codesourcery.com>
1214 * gdbarch.sh (core_xfer_shared_libraries): New.
1216 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1218 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1220 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1221 (xml_escape_text): New.
1222 * xml-support.h (xml_escape_text): Declare.
1224 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1225 * config/i386/cygwin.mt (TDEPFILES): ... here.
1227 * win32-nat.c: (fetch_elf_core_registers): Delete.
1228 (win32_elf_core_fn): Delete.
1229 (_initialize_core_win32): Delete.
1231 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1232 "xml-support.h" and "gdbcore.h".
1233 (i386_win32_gregset_reg_offset): New.
1234 (I386_WIN32_SIZEOF_GREGSET): New.
1235 (i386_win32_regset_from_core_section): New.
1236 (win32_xfer_shared_library): New.
1237 (struct cpms_data): New.
1238 (core_process_module_section): New.
1239 (win32_core_xfer_shared_libraries): New.
1240 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1241 gregset_num_regs, sizeof_gregset members of tdep. Register
1242 regset_from_core_section and core_xfer_shared_libraries callbacks.
1244 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1245 * gdbarch.h, gdbarch.c: Regenerate.
1247 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1249 * corelow.c (core_xfer_partial): Pass writebuf to
1250 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1252 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1254 * arm-tdep.h (arm_skip_stub): Declare.
1255 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1257 (arm_pe_skip_trampoline_code): New function.
1258 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1259 gdbarch_skip_trampoline_code callback.
1260 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1262 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1264 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1266 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1268 * configure.ac: Add --with-expat.
1269 * configure: Regenerated.
1271 2007-09-03 Andreas Schwab <schwab@suse.de>
1273 * configure.ac: Accept --with-system-readline.
1274 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1275 * configure: Regenerate.
1276 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1278 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1280 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1281 Daniel Jacobowitz <dan@codesourcery.com>
1283 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1285 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1287 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1289 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1291 * top.c (print_gdb_version): Update for GPL version 3.
1293 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1295 * NEWS: Mention the build-id .debug files verification.
1297 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1299 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1301 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1303 * Makefile.in (symfile.o): Update dependencies.
1304 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1305 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1306 (struct build_id): New structure.
1307 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1308 (find_separate_debug_file): New variable BUILD_ID.
1309 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1311 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1313 * varobj.c (struct varobj): Fix comment
1314 for the type member not to lie when it can be
1317 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1319 Implement -var-info-path-expression.
1321 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1323 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1324 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1325 * varobj.c (struct varobj): New field 'path_expr'.
1326 (c_path_expr_of_child, cplus_path_expr_of_child)
1327 (java_path_expr_of_child): New.
1328 (struct language_specific): New field path_expr_of_child.
1329 (varobj_create): Initialize the path_expr field.
1330 (varobj_get_path_expr): New.
1331 (new_variable): Initialize the path_expr field.
1332 (free_variable): Free the path_expr field.
1333 (adjust_value_for_children_access): New parameter
1335 (c_number_of_children): Adjust.
1336 (c_describe_child): New parameter CFULL_EXPRESSION.
1337 Compute full expression.
1338 (c_value_of_child, c_type_of_child): Adjust.
1339 (cplus_number_of_children): Adjust.
1340 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1341 Compute full expression.
1342 (cplus_name_of_child, cplus_value_of_child)
1343 (cplus_type_of_child): Adjust.
1344 * varobj.h (varobj_get_path_expr): Declare.
1346 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1348 * mi/mi-cmd-var.c (print_varobj): If a varobj
1349 type is NULL, don't try to print it.
1351 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1353 * ppc-linux-nat.c (right_fill_reg): Delete.
1354 (supply_gregset): Use ppc_supply_gregset.
1355 (supply_fpregset): Use ppc_supply_fpregset.
1356 (fill_gregset): Use ppc_collect_gregset.
1357 (fill_fpregset): Use ppc_collect_fpregset.
1358 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1359 (right_supply_register, ppc_linux_supply_gregset): Delete.
1360 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1361 (ppc_linux_supply_fpregset): Delete.
1362 (ppc_linux_collect_gregset): New function.
1363 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1364 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1365 ppc_linux_supply_gregset, and ppc_collect_gregset.
1366 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1367 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1368 (ppc_linux_regset_from_core_section): Update.
1369 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1370 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1371 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1372 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1373 (ppcobsd_collect_gregset): Likewise.
1374 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1375 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1376 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1377 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1378 (rs6000_aix64_reg_offsets): Likewise.
1379 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1380 ppc_floating_point_unit_p.
1381 (rs6000_aix_collect_regset): Similarly.
1382 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1383 when regsize is larger than regcache register size.
1384 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1385 regcache register size.
1386 (ppc_greg_offset): New function, split out from..
1387 (ppc_supply_gregset): ..here. Separate code handling all regs from
1388 single reg case. Correct xer offset.
1389 (ppc_fpreg_offset): New function, split out from..
1390 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1392 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1393 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1394 a fp unit, instead return if no fp.
1396 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1398 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1399 this code has not been compiled for two years.
1401 2007-08-29 Michael Snyder <msnyder@access-company.com>
1403 * event-top.c (gdb_readline2): Return after EOF.
1405 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1407 * symtab.c: Remove a function that has been commented out 3 years ago.
1409 2007-08-29 Randolph Chung <tausq@debian.org>
1411 * hppa-tdep.c (hppa32_cannot_fetch_register)
1412 (hppa64_cannot_fetch_register): New functions.
1413 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1414 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1416 2007-08-28 Michael Snyder <msnyder@access-company.com>
1418 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1419 check for null before calling check_typedef.
1421 * NEWS: Mention Coverity bug fixes.
1423 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1425 * spu-tdep.c (spu_pointer_to_address): New function.
1426 (spu_integer_to_address): Likewise.
1427 (spu_gdbarch_init): Add spu_pointer_to_address and
1428 spu_integer_to_address to gdbarch.
1430 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1432 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1434 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1436 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1437 that contains the GDB license.
1438 * copying.awk: Adjust to the GPLv3 wording.
1439 * copying.c: Regenerate.
1441 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1443 * copying.awk: Protoization, and i18n markup.
1445 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1447 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1448 * copyright.sh: Likewise.
1449 * gdb-events.sh: Likewise.
1450 * gdb_gcore.sh: Likewise.
1451 * gdb_mbuild.sh: Likewise.
1452 * gdbarch.sh: Likewise.
1453 * observer.sh: Likewise.
1454 * features/feature_to_c.sh: Likewise.
1455 * regformats/regdat.sh: Likewise.
1457 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1459 Switch the license of all .c files to GPLv3.
1460 Switch the license of all .h files to GPLv3.
1461 Switch the license of all .cc files to GPLv3.
1463 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1465 * configure.ac: Switch license to GPLv3.
1467 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1469 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1470 determine the file's FPU type.
1472 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1474 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1475 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1476 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1478 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1480 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1482 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1483 (elf_lookup_lib_symbol): Fix formatting.
1485 2007-08-21 Michael Snyder <msnyder@access-company.com>
1487 * dbxread.c (read_dbx_symtab): Guard null deref.
1490 * valops.c (find_overload_match): Guard against NULL.
1492 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1494 * MAINTAINERS (Patch Champions): Remove self.
1496 2007-08-21 Chris Smith <chris.smith@st.com>
1498 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1501 2007-08-18 Michael Snyder <msnyder@access-company.com>
1503 * stabsread.c (dbx_lookup_type): Memory leak.
1505 * event-loop.c (delete_async_signal_handler): Move pointer null
1506 test to before pointer dereference.
1508 * ui-out.c (append_header_to_list): Possible cut and paste error.
1510 * MAINTAINERS: white space tweak.
1512 2007-08-17 Michael Snyder <msnyder@access-company.com>
1514 * stack.c (print_frame): Memory leak.
1516 * completer.c (filename_completer): Avoid memory leak.
1517 Remove unnecessary nested block.
1519 * c-exp.y (parse_number): Memory leak.
1521 * completer.c (location_completer): Must free 'fn_list', except
1522 in the one case where it is returned (as 'list').
1524 * varobj.c (value_of_root): Memory leak.
1526 * gdbtypes.h (virtual_base_list): Remove export decl.
1527 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1528 (virtual_base_index): Memory leak.
1529 (virtual_base_index_skip_primaries): Ditto.
1531 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1533 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1534 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1535 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1536 (xtensa_read_register): New function.
1537 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1538 (xtensa_insn_kind): New types.
1539 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1540 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1541 (xtensa_verify_config, xtensa_pseudo_register_read)
1542 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1543 (xtensa_store_return_value)
1544 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1545 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1546 (xtensa_frame_this_id, xtensa_frame_prev_register)
1547 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1548 (call0_frame_cache, call0_frame_get_reg_at_entry)
1549 (call0_classify_opcode, call0_track_op)
1550 (call0_analyze_prologue, call0_frame_cache): New functions.
1552 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1554 * breakpoint.c (bpstat_free): New.
1555 (bpstat_clear): Use bpstat_free.
1556 (delete_breakpoint): Document why we cannot
1557 remove bpstats from stop_bpstat.
1558 * breakpoint.h (bpstat_free): Declare.
1560 2007-08-16 Michael Snyder <msnyder@access-company.com>
1562 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1564 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1565 Joel Brobecker <brobecker@adacore.com>
1567 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1569 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1570 Joel Brobecker <brobecker@adacore.com>
1572 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1573 checkin guarding against NULL.
1575 2007-08-14 Michael Snyder <msnyder@access-company.com>
1577 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1578 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1579 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1580 go at beginning of new line.
1582 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1583 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1584 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1585 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1586 tui-winsource.h, tui.c, tui.h: Function declarations and
1587 definitions, wrap long lines.
1589 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1590 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1591 Reformat block comments to GNU standard.
1593 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1594 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1595 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1596 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1597 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1598 spaces after periods, etc).
1600 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1601 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1602 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1603 tui-winsource.h: Whitespace changes, fix pointer declarations
1606 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1607 Michael Snyder <msnyder@access-company.com>
1609 * ada-lang.c (field_alignment): Guard against NULL.
1611 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1613 * MAINTAINERS (Global Maintainers): Add self.
1615 2007-08-14 Michael Snyder <msnyder@access-company.com>
1617 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1619 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1621 * varobj.c (cplus_describe_child): Guard against null.
1622 Use "NULL" instead of "0" to initialize pointers.
1624 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1626 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1627 to match any gdbarch with matching OSABI. Set default ABI and FPU
1628 after running the OSABI handler.
1630 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1632 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1633 * config/i386/linux.mt (TDEPFILES): ...to here.
1635 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1637 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1638 the 'silent' parameter and code to implement that.
1639 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1641 * win32-nat.c: Adjust.
1644 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1646 * breakpoint.c (update_breakpoints_after_exec): Don't
1647 set address to zero.
1649 2007-08-13 Michael Snyder <msnyder@access-company.com>
1651 * valops.c: Whitespace clean-up.
1653 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1655 * event-top.c (command_line_handler): Memory leak.
1657 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1658 No need to make copy.
1660 * source.c (find_source_lines): Require symtab 's'.
1662 2007-08-11 Michael Snyder <msnyder@access-company.com>
1664 * completer.c: Spelling fix in comments.
1666 2007-08-10 Michael Snyder <msnyder@access-company.com>
1668 * gdbtypes.c: Coding standard cleanup.
1669 * gdbtypes.c: Comment/whitespace cleanup.
1671 * stabsread.c (read_huge_number): Attempt to compute value before
1672 values that it depends on.
1674 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1675 (decode_objc): Use "NULL" instead of 0.
1676 (find_method): Ditto.
1677 (decode_all_digits): Ditto.
1678 (decode_dollar): Ditto.
1680 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1682 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1684 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1687 * completer.c: Comment/whitespace cleanup.
1689 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1691 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1693 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
1695 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1696 allocated file descriptors.
1698 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1700 * Makefile.in: Minor cleanup throughout; add some missing variables,
1701 add some missing rules, remove some rules that are no longer needed,
1702 and fix the dependencies in several rules.
1704 2007-08-10 Ludovic Courtès <ludo@gnu.org>
1706 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1707 (scm_lang_h, scm_tags_h): New.
1708 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1709 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1710 * defs.h (enum language): Add `language_scm'.
1712 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1715 2007-08-09 Ludovic Courtès <ludo@gnu.org>
1717 * MAINTAINERS (Write After Approval): Add myself.
1719 2007-08-09 Michael Snyder <msnyder@access-company.com>
1721 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1723 2007-08-09 Joel Brobecker <brobecker@adacore.com>
1725 * solib-som.c (som_relocate_section_addresses): Stop saving
1726 the $CODE$ section in the so_list structure.
1728 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
1730 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1731 (xtensa_register_group_t): Add entries for coprocessors.
1732 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1733 (xtensa_add_reggroups): Likewise.
1734 (xtensa_register_reggroup_p): Likewise.
1735 (xtensa_coprocessor_register_group): New function.
1738 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1740 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1742 2007-08-08 Michael Snyder <msnyder@access-company.com>
1744 * target.c (target_read_string): Guard against null.
1746 * varobj.c (value_of_root): Move alloc after return to avoid leak.
1748 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
1749 (tui_set_layout_for_display_command): Mem leak.
1751 * top.c (command_line_input): Memory leak.
1753 * solib-svr4.c (open_symbol_file_object): Memory leak.
1754 (svr4_current_sos): Ditto.
1755 (enable_break): Ditto.
1757 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1759 * dwarf2read.c (add_partial_symbol): Memory leak.
1761 2007-08-06 Michael Snyder <msnyder@access-company.com>
1763 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1765 2007-08-05 Jim Blandy <jimb@codesourcery.com>
1767 * macroexp.c (init_buffer): Remove testing code that overrides the
1768 caller's length guess.
1769 (gather_arguments): Use a larger initial size, now that the vector
1770 growth code has been exercised.
1772 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1774 * solib-target.c (solib_target_relocate_section_addresses): Add
1775 orig_delta to addr_high.
1777 2007-08-04 Michael Snyder <msnyder@access-company.com>
1779 * remote-fileio.c (remote_fileio_func_write): Memory leak.
1781 * breakpoint.c (print_one_breakpoint): Off by one error.
1783 * tracepoint.c (add_register): Off by one error.
1784 (stringify_collection_list): Free malloc buffer.
1786 2007-08-03 Michael Snyder <msnyder@access-company.com>
1788 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1789 stop memory leak, straighten out cleanups.
1791 * jv-lang.c (java_link_class_type): Guard against NULL.
1793 2007-08-02 Michael Snyder <msnyder@access-company.com>
1795 * gdbtypes.c (create_set_type): Test should only be done within
1796 the preceeding if block. Otherwise, variable is uninitialized.
1798 * gdbtypes.c (check_typedef): Guard NULL.
1800 2007-08-01 Michael Snyder <msnyder@access-company.com>
1802 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
1803 avoid dereference in lookup_cmd_1.
1805 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
1806 clean up long lines.
1807 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1808 (tui_alloc_win_info): Ditto.
1809 (tui_add_content_elements): Ditto.
1810 * tui/tui-file.c (tui_file_magic): Ditto.
1812 2007-07-31 Michael Snyder <msnyder@access-company.com>
1814 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1815 True and false paths are mutually exclusive.
1817 * event-top.c (command_line_handler): Add pedantic return.
1819 * f-valprint.c (info_common_command): Bail out to prevent null
1820 pointer deref. Break up a long line.
1822 * exec.c (xfer_memory): Remove redundant condition from 'if'.
1824 * symfile.c (reread_separate_symbols): Free xmalloced memory.
1826 * printcmd.c (build_address_symbolic): Remove dead code and dead
1829 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
1831 * linespec.c (minsym_found): Advance to the next line if possible.
1833 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
1835 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
1836 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
1837 solib-svr4.o, and add solib-target.o
1839 2007-07-27 Michael Snyder <msnyder@access-company.com>
1841 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
1843 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
1845 * MAINTAINERS (Write After Approval): Add myself.
1847 2007-07-26 Maciej W. Rozycki <macro@mips.com>
1849 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
1852 2007-07-25 Maciej W. Rozycki <macro@mips.com>
1854 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
1856 2007-07-24 Michael Snyder <msnyder@access-company.com>
1858 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
1859 'buffer' must cover both branches that call strcmp (Coverity).
1861 * stack.c (print_frame_args): Check return value of lookup_symbol.
1863 * ax-gdb.c (find_field): Guard against null ptr.
1865 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1867 * regformats/reg-spu.dat: Fix order of npc, id registers.
1869 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1871 * target.c (memory_xfer_partial): Accesses to unmapped overlay
1872 sections should always go to the executable file.
1874 2004-07-20 Chris Dearman <chris@mips.com>
1876 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
1877 prologue instructions.
1879 2007-07-20 Maciej W. Rozycki <macro@mips.com>
1881 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
1884 2007-07-20 Chris Dearman <chris@mips.com>
1885 Maciej W. Rozycki <macro@mips.com>
1887 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
1890 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
1891 Daniel Jacobowitz <dan@codesourcery.com>
1893 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
1894 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
1896 * NEWS: Mention gdbserver DLL support.
1898 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
1900 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
1902 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
1904 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
1907 2007-07-13 Kevin Buettner <kevinb@redhat.com>
1909 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
1912 2007-07-12 Kevin Buettner <kevinb@redhat.com>
1914 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
1915 (mep_analyze_prologue): Add case for BRA instruction.
1917 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
1919 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
1921 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
1923 * breakpoint.c: Include "top.h".
1924 (breakpoint_1): Don't set convenience variable $_ if server prefix
1926 (_initialize_breakpoint): Describe this behaviour in command help.
1928 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
1930 * solib-target.c (library_list_start_segment): Cast address to
1933 2007-07-06 Mark Kettenis <kettenis@gnu.org>
1935 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
1936 for terminated processes.
1938 2007-07-05 Michael Snyder <msnyder@access-company.com>
1940 * event-top.c (cli_command_loop): Prompt string can (and should)
1941 be freed after call to readline (Coverity). Also move local var
1942 declarations into block where they are used.
1944 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
1945 should) be freed after call to readline (Coverity). Also move
1946 local var declarations into block where they are used.
1948 2007-07-03 Andreas Schwab <schwab@suse.de>
1950 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
1953 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
1954 Thiago Bauermann <bauerman@br.ibm.com>
1955 Joseph S. Myers <joseph@codesourcery.com>
1956 Daniel Jacobowitz <dan@codesourcery.com>
1958 * remote.c (remote_check_symbols): Use
1959 gdbarch_convert_from_func_ptr_addr.
1960 * infcall.c (find_function_addr): Handle function descriptors
1961 without debugging information.
1962 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
1963 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
1964 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
1965 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
1966 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
1967 allow SEC_CODE and SEC_DATA.
1968 (enable_break): Update calls. Pass current_target to solib_add.
1969 Use gdbarch_convert_from_func_ptr_addr.
1971 2007-07-03 Ilko Iliev <iliev@ronetix.at>
1972 Daniel Jacobowitz <dan@codesourcery.com>
1974 * symfile.c (print_transfer_performance): Avoid integer overflow.
1977 2007-07-03 Markus Deuling <deuling@de.ibm.com>
1979 * cp-namespace.c (lookup_symbol_file): Add block to
1980 lookup_symbol_global call.
1981 * Makefile.in (solist_h): Add dependency on symtab header.
1982 (symtab.o): Add dependency on solist header.
1983 * solib.c (solib_global_lookup): New function.
1984 * solib-svr4.c (scan_dyntag): Likewise.
1985 (elf_locate_base): Call helper routine scan_dyntag.
1986 (elf_lookup_lib_symbol): New function.
1987 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
1988 * solist.h (symtab.h): New include.
1989 (struct target_so_ops): New member lookup_lib_global_symbol.
1990 (solib_global_lookup): New prototype.
1991 * symtab.c: New include solist.h.
1992 (lookup_objfile_from_block): New function.
1993 (lookup_global_symbol_from_objfile): New function.
1994 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
1995 (lookup_symbol_global): Call library-specific lookup procedure.
1996 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
1998 * NEWS: Document framework.
2000 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2002 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
2005 * cli/cli-script.c (build_command_line): Update NULL check.
2007 2007-07-02 Michael Snyder <msnyder@access-company.com>
2009 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
2011 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2013 * Makefile.in (XMLFILES): Add library-list.dtd.
2014 (ALLDEPFILES): Add solib-target.o.
2015 (solib-target.o): New rule.
2016 * remote.c (PACKET_qXfer_libraries): New constant.
2017 (remote_protocol_features): Add qXfer:libraries:read.
2018 (remote_wait): Recognize library stop replies.
2019 (remote_async_wait): Likewise. Fix typo.
2020 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2021 (init_remote_async_ops): Fix typo.
2022 (_initialize_remote): Register "set remote library-info-packet".
2023 * solib-som.c (som_current_sos): Set addr_low and addr_high.
2024 * solib-target.c: New file.
2025 * solib.c (solib_map_sections): Use addr_low and addr_high instead
2027 (info_sharedlibrary_command): Likewise.
2028 (solib_add_library, solib_remove_library): New.
2029 * solist.h (struct so_list): Replace textsection with addr_low and
2031 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
2032 * NEWS: Describe new qXfer:libraries:read and shared library
2034 * features/library-list.dtd: New.
2036 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2038 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
2039 (start_remote): Use STOP_QUIETLY_REMOTE.
2040 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2041 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2042 Update to match shared library event breakpoint support. Only
2043 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2044 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2045 * fork-child.c (startup_inferior): Do not set
2046 inferior_ignoring_startup_exec_events
2047 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2049 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2051 2007-07-02 Markus Deuling <deuling@de.ibm.com>
2053 * breakpoint.c (insert_bp_location): Remove dead code
2054 (DISABLE_UNSETTABLE_BREAK).
2055 (disable_breakpoints_in_shlibs)
2056 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2058 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2060 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2061 Call insert_bp_location.
2063 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2065 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2068 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2070 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2073 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2075 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2076 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2077 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2078 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2079 to display_gdb_prompt.
2081 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2084 * target.c (memory_xfer_partial): Do not continue past targets with
2087 2007-06-30 Andreas Schwab <schwab@suse.de>
2089 * m68k-tdep.c (m68k_ps_type): New.
2090 (m68k_init_types): New.
2091 (m68k_register_type): Use m68k_ps_type for PS register.
2092 (_initialize_m68k_tdep): Call m68k_init_types.
2094 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2095 from the generic m68k arch.
2097 2007-06-28 Michael Snyder <msnyder@access-company.com>
2099 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2102 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2103 gdb_assert before using return value of find_thread_pid (Coverity).
2105 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2107 * cli/cli-script.c (build_command_line): Add null pointer guard
2110 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2112 * linux-thread-db.c (thread_db_attach): Delete.
2113 (thread_db_detach): Typo fix. Call target_mourn_inferior
2114 instead of fixing up proc_handle.
2115 (have_threads_callback, have_threads): New functions.
2116 (thread_db_wait): Remove dead proc_handle.pid check. Only
2117 translate PTIDs if we have registered threads. Check for new
2118 threads if we have none.
2119 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2120 (find_new_threads_callback): Only enable event reporting if TID == 0.
2121 (same_ptid_callback): New.
2122 (thread_db_get_thread_local_address): Check for new threads.
2123 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2124 or to_post_startup_inferior.
2126 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2128 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2129 is always active if SOFTWARE_SINGLE_STEP_P is true.
2130 (resume): Use gdbarch_software_single_step[_p] instead of
2131 SOFTWARE_SINGLE_STEP[_P].
2132 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2134 * gdbarch.sh (software_single_step): Remove target macro.
2135 * gdbarch.h, gdbarch.c: Regenerate.
2137 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2139 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2140 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2141 (struct gdbarch_swap, struct gdbarch_swap_registration,
2142 struct gdbarch_swap_registry, gdbarch_swap_registry,
2143 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2144 current_gdbarch_swap_in_hack): Remove.
2145 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2146 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2147 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2148 (deprecated_current_gdbarch_select_hack): Likewise.
2149 * gdbarch.h, gdbarch.c: Regenerate.
2151 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2153 * infrun.c (clear_proceed_status): Clean up stop_registers.
2154 (normal_stop): Allocate regcache for stop_registers.
2155 (struct inferior_status): Remove stop_registers member.
2156 (save_inferior_status): Do not save stop_registers.
2157 (restore_inferior_status): Do not restore stop_registers.
2158 (discard_inferior_status): Do not discard stop_registers.
2159 (build_infrun): Remove.
2160 (_initialize_infrun): Do not swap stop_registers.
2162 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2164 * remote.c (remote_address_masked): If remote_address_size is zero,
2165 default to target address size.
2166 (build_remote_gdbarch_data): Remove.
2167 (_initialize_remote): Do not swap remote_address_size.
2169 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2171 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2172 builtin_type_char, builtin_type_short, builtin_type_int,
2173 builtin_type_long, builtin_type_signed_char,
2174 builtin_type_unsigned_char, builtin_type_unsigned_short,
2175 builtin_type_unsigned_int, builtin_type_unsigned_long,
2176 builtin_type_float, builtin_type_double, builtin_type_long_double,
2177 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2178 builtin_type_bool, builtin_type_long_long,
2179 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2180 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2181 variable declaration with compatibility macro.
2182 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2183 builtin_type_char, builtin_type_short, builtin_type_int,
2184 builtin_type_long, builtin_type_signed_char,
2185 builtin_type_unsigned_char, builtin_type_unsigned_short,
2186 builtin_type_unsigned_int, builtin_type_unsigned_long,
2187 builtin_type_float, builtin_type_double, builtin_type_long_double,
2188 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2189 builtin_type_bool, builtin_type_long_long,
2190 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2191 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2192 (build_gdbtypes): Remove.
2193 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2194 opaque-type-resolution command here. Do not call
2195 deprecated_register_gdbarch_swap.
2197 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2199 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2200 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2201 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2203 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2204 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2205 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2206 (build_parse): Remove.
2207 (_initialize_parse): Do not call build_parse. Do not register
2208 msym_ types for gdbarch-swapping.
2210 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2211 instead of creating private type.
2213 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2214 (_initialize_xcoffread): Do not initialized them.
2215 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2217 * mdebugread.c (nodebug_func_symbol_type): Remove.
2218 (nodebug_var_symbol_type): Remove.
2219 (_initialize_mdebugread): Do not initialize them.
2220 (parse_symbol): Use builtin nodebug_ type instead of them.
2221 (parse_procedure): Likewise.
2223 2007-06-21 Chris Dearman <chris@mips.com>
2225 * printcmd.c (do_one_display): If display/i, start with an initial
2226 line feed to avoid bad layout if there is a branch delay slot.
2228 2007-06-21 Nigel Stephens <nigel@mips.com>
2229 Maciej W. Rozycki <macro@mips.com>
2231 * disasm.c (gdb_print_insn): Return the number of branch delay
2232 slot instructions too.
2233 * disasm.h (gdb_print_insn): Update prototype.
2234 * printcmd.c (branch_delay_insns): New variable to record the
2235 number of delay slot instructions after disassembling a branch.
2236 (print_formatted): Record the number of branch delay slot
2238 (do_examine): When disassembling, if the last instruction
2239 disassembled has any branch delay slots, then bump the count so
2240 that they get disassembled too.
2241 * tui/tui-disasm.c (tui_disassemble): Update the call to
2243 * NEWS: Document the new behaviour.
2245 2007-06-21 Andreas Schwab <schwab@suse.de>
2247 * regcache.c (write_pc_pid): Restore missing else.
2249 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2251 * regcache.c (regcache_print): Use get_current_regcache ()
2252 instead of current_regcache.
2254 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2257 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2258 instead of bfd_make_section_anyway.
2259 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2260 when clearing SEC_LOAD.
2262 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2264 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2265 registers for big-endian.
2267 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2269 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2270 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2271 * gdbarch.c, gdbarch.h: Regenerate.
2273 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2275 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2276 gdbarch_believe_pcc_promotion.
2277 * stabsread.c (define_symbol): Likewise.
2278 Remove unnecessary definition.
2279 * coffread.c (process_coff_symbol): Remove unnecessary code.
2280 * gdbarch.c, gdbarch.h: Regenerate.
2282 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2284 * configure.ac: Do not use ${objdir}.
2285 * configure: Regenerated.
2287 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2289 * gdbarch.sh (deprecated_register_size): Remove.
2290 * gdbarch.h, gdbarch.c: Regenerate.
2292 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2293 by INT_REGISTER_SIZE.
2294 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2295 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2296 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2297 set_gdbarch_deprecated_register_size.
2299 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2301 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2302 gdbarch_deprecated_fp_regnum.
2303 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2304 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2305 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2306 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2308 * gdbarch.c, gdbarch.h: Regenerate.
2310 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2312 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2313 gdbarch_extract_return_value.
2314 * value.c (generic_use_struct_convention): Likewise (comment).
2315 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2316 * arch-utils.c (legacy_return_value): Likewise.
2317 * arch-utils.h (legacy_return_value): Likewise (comment).
2318 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2319 gdbarch_store_return_value.
2320 * stack.c (return_command): Likewise (comment).
2321 * arch-utils.h (legacy_return_value): Likewise (comment).
2322 * arch-utils.c (legacy_return_value): Likewise.
2323 * gdbarch.c, gdbarch.h: Regenerate.
2325 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2327 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2328 gdbarch_deprecated_use_struct_convention.
2329 * arch-utils.c (legacy_return_value): Likewise.
2330 * gdbarch.c, gdbarch.h: Regenerate.
2332 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2334 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2335 gdbarch_deprecated_function_start_offset.
2336 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2337 * linespec.c (minsym_found): Likewise.
2338 * infrun.c (handle_inferior_event): Likewise.
2339 * infcall.c (find_function_addr): Likewise.
2340 * cli/cli-cmds.c (disassemble_command): Likewise.
2341 * gdbarch.c, gdbarch.h: Regenerate.
2343 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2345 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2346 gdbarch_deprecated_reg_struct_has_addr.
2347 * infcall.c (call_function_by_hand): Likewise.
2348 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2349 * gdbarch_deprecated_reg_struct_has_addr_p.
2350 * infcall.c (call_function_by_hand): Likewise.
2351 * gdbarch.c, gdbarch.h: Regenerate.
2353 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2355 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2356 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2357 (sh_gdbarch_init): Remove
2358 set_gdbarch_deprecated_extract_struct_value_address.
2359 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2360 (sh64_gdbarch_init): Remove
2361 set_gdbarch_deprecated_extract_struct_value_address.
2362 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2363 (ia64_gdbarch_init): Remove
2364 set_gdbarch_deprecated_extract_struct_value_address.
2365 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2366 (frv_gdbarch_init): Remove
2367 set_gdbarch_deprecated_extract_struct_value_address.
2368 * gdbarch.c, gdbarch.h: Regenerate.
2370 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2372 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2373 * v850-tdep.c (v850_unwind_sp): Likewise.
2374 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2375 * stack.c (frame_info): Likewise.
2376 * stabsread.c (define_symbol): Likewise.
2377 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2378 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2379 (sh_unwind_sp): Likewise.
2380 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2381 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2382 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2383 (rs6000_frame_cache): Likewise.
2384 * rs6000-nat.c (store_register): Likewise.
2385 * remote-mips.c (mips_wait): Likewise.
2386 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2387 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2388 (ppc64_sysv_abi_push_dummy_call): Likewise.
2389 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2390 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2391 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2392 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2393 * m32r-rom.c (m32r_supply_register): Likewise.
2394 * frame.c (frame_sp_unwind): Likewise.
2395 * mips-tdep.c (mips_insn16_frame_cache)
2396 (mips_insn32_frame_cache): Likewise (comment).
2397 * m68klinux-nat.c (supply_gregset): Likewise.
2398 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2399 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2400 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2401 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2402 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2403 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2404 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2405 (cris_register_type, crisv32_register_type)
2406 (cris_dwarf2_frame_init_reg): Likewise.
2407 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2408 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2409 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2410 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2412 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2413 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2414 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2415 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2416 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2417 * v850-tdep.c (v850_unwind_pc): Likewise.
2418 * stack.c (frame_info): Likewise.
2419 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2420 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2421 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2422 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2423 (sh_dsp_show_regs): Likewise.
2424 * shnbsd-tdep.c (shnbsd_supply_gregset)
2425 (shnbsd_collect_gregset): Likewise.
2426 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2427 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2428 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2429 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2430 (6000_register_reggroup_p, rs6000_unwind_pc)
2431 (rs6000_frame_cache): Likewise.
2432 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2433 (rs6000_store_inferior_registers): Likewise.
2434 * remote-mips.c (mips_wait, mips_load): Likewise.
2435 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2436 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2437 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2438 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2439 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2440 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2441 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2442 (store_ppc_registers, fill_gregset): Likewise.
2443 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2444 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2445 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2446 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2447 * m68klinux-nat.c (supply_gregset): Likewise.
2448 * irix5-nat.c (fill_gregset): Likewise.
2449 * i386-tdep.c (i386_unwind_pc): Likewise.
2450 * i386-linux-nat.c (i386_linux_resume): Likewise.
2451 * frame.c (get_prev_frame_1): Likewise.
2452 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2453 * dbug-rom.c (dbug_supply_register): Likewise.
2454 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2455 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2456 (cris_register_type, crisv32_register_type, crisv32_register_name)
2457 (cris_dwarf2_frame_init_reg, find_step_target)
2458 (cris_software_single_step, cris_supply_gregset)
2459 (cris_regnums): Likewise.
2460 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2461 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2462 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2463 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2464 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2466 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2467 * dbug-rom.c (dbug_supply_register): Likewise.
2468 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2469 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2470 * win32-nat.c (win32_resume): Likewise.
2471 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2472 * m68k-tdep.c (m68k_register_type): Likewise.
2473 * m68klinux-nat.c (supply_gregset): Likewise.
2475 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2476 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2477 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2478 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2479 (fv_reg_base_num, dr_reg_base_num): Likewise.
2480 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2481 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2482 (sh64_extract_return_value, sh64_store_return_value)
2483 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2484 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2485 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2486 (invalidate_cache): Likewise.
2487 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2488 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2489 (mipsnbsd_fill_fpreg): Likewise.
2490 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2491 (mipsnbsd_store_inferior_registers): Likewise.
2492 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2493 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2494 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2495 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2496 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2497 (fill_fpregset): Likewise.
2498 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2499 * i386-tdep.h (struct_return): Likewise (comment).
2500 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2501 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2502 (go32_store_registers): Likewise.
2503 * alpha-tdep.c (alpha_next_pc): Likewise.
2504 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2505 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2506 (alphabsd_store_inferior_registers): Likewise.
2507 * core-regset.c (fetch_core_registers): Likewise.
2508 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2510 * gdbarch.c, gdbarch.h: Regenerate.
2512 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2514 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2515 * dbxread.c (start_psymtab): Check HAVE_ELF.
2516 (aout_sym_fns): Likewise.
2517 * elfread.c (elf_symfile_segments): New.
2518 (elf_sym_fns): Add elf_symfile_segments.
2519 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2520 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2521 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2522 * somread.c (som_sym_fns): Use default_symfile_segments.
2523 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2524 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2525 (default_symfile_segments): New function.
2526 (syms_from_objfile): Update call to find_sym_fns.
2527 (symfile_get_segment_data, free_symfile_segment_data): New.
2528 (symfile_map_offsets_to_segments): New.
2529 (symfile_find_segment_sections): New.
2530 * symfile.h (struct symfile_segment_data): New.
2531 (struct sym_fns): Add sym_segments.
2532 (default_symfile_segments, symfile_get_segment_data)
2533 (free_symfile_segment_data): New prototypes.
2534 (symfile_map_offsets_to_segments): Likewise.
2535 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2536 * Makefile.in (COMMON_OBS): Remove elfread.o.
2537 (elf_internal_h): New.
2538 (elfread.o): Update.
2539 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2541 * config.in, configure: Regenerated.
2542 * NEWS: Mention qOffsets changes.
2544 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2546 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2547 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2548 Replace global variable declaration with compatibility macro.
2549 (struct builtin_m2_type): New data type.
2550 (builtin_m2_type): Add prototype.
2551 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2552 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2553 Remove global variables.
2554 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2555 (build_m2_types): New function.
2556 (m2_type_data): New variable.
2557 (builtin_m2_type): New function.
2558 (_initialize_m2_language): Do not build data types. Register
2559 m2_type_data per-gdbarch data.
2561 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2563 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2564 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2565 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2566 builtin_type_f_real_s8, builtin_type_f_real_s16,
2567 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2568 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2569 variable declaration with compatibility macro.
2570 (struct builtin_f_type): New data type.
2571 (builtin_f_type): Add prototype.
2572 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2573 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2574 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2575 builtin_type_f_real_s8, builtin_type_f_real_s16,
2576 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2577 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2578 (f_language_arch_info): Use builtin_f_type instead of variables.
2579 (build_fortran_types): Build builtin_f_type structure instead of
2580 setting global type variables.
2581 (f_type_data): New variable.
2582 (builtin_f_type): New function.
2583 (_initialize_f_language): Do not call build_fortran_types. Do not
2584 swap global type variables. Register f_type_data per-gdbarch data.
2586 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2588 * f-lang.c (_initialize_f_language): Do not initialize or
2589 swap builtin_type_string.
2591 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2593 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2594 value_of_builtin_frame_reg): Remove.
2595 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2596 inactive call to value_of_builtin_frame_reg.
2598 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2600 * gdbarch.sh (bfd_vma_bit): Remove.
2601 * gdbarch.c, gdbarch.h: Regenerate.
2603 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2604 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2605 (build_gdbtypes): Do not initialize it.
2606 (_initialize_gdbtypes): Do not swap it.
2608 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2610 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2611 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2612 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2613 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2614 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2615 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2616 builtin_type_vec64, builtin_type_vec128): Remove.
2617 (init_simd_type): Remove.
2618 (init_vector_type): Make global.
2619 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2620 (build_gdbtypes): Do not build vector types.
2621 (_initialize_gdbtypes): Do not swap vector types.
2622 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2623 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2624 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2625 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2626 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2627 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2628 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2629 (init_vector_type): Add prototype.
2631 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2632 i386_sse_type members.
2633 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2634 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2635 (i386_init_types): Do not build vector types.
2636 (i386_mmx_type, i386_sse_type): New functions.
2637 (i386_register_type): Call them instead of using global variables.
2638 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2639 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2640 of using global variable.
2642 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2643 and ppc_builtin_type_vec128 members.
2644 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2645 (rs6000_builtin_type_vec128): Likewise.
2646 (rs6000_register_type): Call them instead of using builtin_type_vec64
2647 and builtin_type_vec128.
2648 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2650 * spu-tdep.c (struct gdbarch_tdep): New data type.
2651 (spu_builtin_type_vec128): Remove variable.
2652 (spu_builtin_type_vec128): New function.
2653 (spu_register_type): Call it instead of using global variable.
2654 (spu_gdbarch_init): Allocate tdep structure.
2655 (spu_init_vector_type): Remove function.
2656 (_initialize_spu_tdep): Do not call it.
2658 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2660 * amd64-tdep.c (struct amd64_register_info): Remove.
2661 (amd64_register_info): Remove.
2662 (amd64_register_names): New static variable.
2663 (AMD64_NUM_REGS): Use amd64_register_names instead of
2664 amd64_register_info.
2665 (amd64_register_name): Likewise.
2666 (amd64_register_type): Do not refer to amd64_register_info.
2668 * s390-tdep.c (struct s390_register_info): Remove.
2669 (s390_register_info): Remove.
2670 (s390_register_name): Do not refer to s390_register_info.
2671 (s390_register_type): Likewise.
2673 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2674 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2675 (sparc64_register_names, sparc64_pseudo_register_names): New.
2676 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2677 sparc64_register_names and sparc64_pseudo_register_names instead of
2678 sparc64_register_info and sparc64_pseudo_register_info.
2679 (sparc64_register_name): Likewise.
2680 (sparc64_register_type): Do not refer to sparc64_register_info
2681 and sparc64_pseudo_register_info.
2683 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2685 * c-lang.c (cplus_builtin_types): Remove.
2686 (enum cplus_primitive_types): New data type.
2687 (cplus_language_arch_info): New function.
2688 (cplus_language_defn): Set la_language_arch_info member. Do not set
2689 la_builtin_type_vector and string_char_type members.
2691 * f-lang.c (f_builtin_types): Remove.
2692 (enum f_primitive_types): New data type.
2693 (f_language_arch_info): New function.
2694 (f_language_de): Set la_language_arch_info member. Do not set
2695 la_builtin_type_vector and string_char_type members.
2697 * m2-lang.c (m2_builtin_types): Remove.
2698 (enum m2_primitive_types): New data type.
2699 (m2_language_arch_info): New function.
2700 (m2_language_defn): Set la_language_arch_info member. Do not set
2701 la_builtin_type_vector and string_char_type members.
2703 * objc-lang.c (objc_builtin_types): Remove.
2704 (objc_language): Set la_language_arch_info member. Do not set
2705 la_builtin_type_vector and string_char_type members.
2707 * p-lang.c (pascal_builtin_types): Remove.
2708 (enum pascal_primitive_types): New data type.
2709 (pascal_language_arch_info): New function.
2710 (pascal_language_defn): Set la_language_arch_info member. Do not set
2711 la_builtin_type_vector and string_char_type members.
2713 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2715 * regcache.c (struct regcache): Add ptid_t member.
2716 (regcache_xmalloc): Initialize it.
2717 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2718 (regcache_dup): Likewise.
2719 (regcache_dup_no_passthrough): Likewise.
2720 (current_regcache): Make static.
2721 (registers_ptid): Remove variable.
2722 (get_thread_regcache): New function.
2723 (get_current_regcache): New function.
2724 (registers_changed): Implement by freeing current regcache.
2725 (regcache_raw_read): Do not refer to current_regcache. Set
2726 inferior_ptid to regcache->ptid while calling target routines.
2727 (regcache_raw_write): Likewise.
2728 (regcache_raw_supply): Do not refer to current_regcache.
2729 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
2730 (write_pc_pid): Likewise.
2731 (build_regcache): Remove.
2732 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2733 or deprecated_register_gdbarch_swap. Do not initialize
2735 * regcache.h (get_current_regcache): Add prototype.
2736 (get_thread_regcache): Likewise.
2737 (current_regcache): Remove declaration.
2739 * corelow.c (core_open): Replace current_regcache by
2740 get_current_regcache ().
2741 * frame.c (frame_pop): Likewise.
2742 (put_frame_register): Likewise.
2743 (get_current_frame, create_new_frame): Likewise.
2744 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2745 * stack.c (return_command): Likewise.
2746 * infcall.c (call_function_by_hand): Likewise.
2747 * infrun.c (resume): Likewise.
2748 (save_inferior_status, restore_inferior_status): Likewise.
2749 * linux-fork.c (fork_load_infrun_state): Likewise.
2750 (fork_save_infrun_state): Likewise.
2751 * win32-nat.c (win32_resume): Likewise.
2752 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2753 * monitor.c (monitor_wait): Likewise.
2754 * remote.c (remote_wait): Likewise.
2755 * remote-mips.c (mips_wait): Likewise.
2757 * bsd-kvm.c (bsd_kvm_open): Likewise
2758 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2759 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2760 * i386-linux-nat.c (i386_linux_resume): Likewise.
2761 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2762 (ia64_linux_stopped_data_address): Likewise.
2764 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2765 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2766 * mep-tdep.c (current_me_module, current_options): Likewise.
2767 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2769 * linux-nat.c (linux_nat_do_thread_registers): Use thread
2770 regcache instead of current_regcache. Call target_fetch_registers.
2771 (linux_nat_corefile_thread_callback): Update call site.
2772 (linux_nat_do_registers): Likewise.
2773 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2774 of current_regcache.
2775 (procfs_make_note_section): Likewise.
2776 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2777 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2778 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2779 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2781 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2783 * regcache.c (read_register, read_register_pid): Remove.
2784 (write_register, write_register_pid): Likewise.
2785 * regcache.h (read_register, read_register_pid): Remove prototype.
2786 (write_register, write_register_pid): Likewise.
2788 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2790 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
2791 (write_pc): Likewise. Remove default implementation, add predicate.
2792 * gdbarch.c, gdbarch.h: Regenerate.
2793 * regcache.c (read_pc_pid): Use current regcache instead of calling
2795 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2797 (generic_target_write_pc): Remove.
2798 * inferior.h (generic_target_write_pc): Remove.
2799 * frv-tdep.c (frv_gdbarch_init): Do not install it.
2800 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2801 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2802 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2803 * sh-tdep.c (sh_gdbarch_init): Likewise.
2804 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2806 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
2807 argument. Use REGCACHE instead of calling read_register_pid.
2808 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2809 * hppa-tdep.c (hppa_read_pc): Likewise.
2810 * hppa-tdep.h (hppa_read_pc): Likewise.
2811 * ia64-tdep.c (ia64_read_pc): Likewise.
2812 * m32r-tdep.c (m32r_read_pc): Likewise.
2813 * mep-tdep.c (mep_read_pc): Likewise.
2814 * mn10300-tdep.c (mn10300_read_pc): Likewise.
2815 * spu-tdep.c (spu_read_pc): Likewise.
2817 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
2818 argument. Use REGCACHE instead of calling write_register_pid.
2819 * avr-tdep.c (avr_write_pc): Likewise.
2820 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
2821 * hppa-tdep.c (hppa_write_pc): Likewise.
2822 * hppa-tdep.h (hppa_write_pc): Likewise.
2823 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
2824 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
2825 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
2826 * ia64-tdep.c (ia64_write_pc): Likewise.
2827 * ia64-tdep.h (ia64_write_pc): Likewise.
2828 * m32r-tdep.c (m32r_write_pc): Likewise.
2829 * m88k-tdep.c (m88k_write_pc): Likewise.
2830 * mep-tdep.c (mep_write_pc): Likewise.
2831 * mips-tdep.c (mips_write_pc): Likewise.
2832 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2833 * mn10300-tdep.c (mn10300_write_pc): Likewise.
2834 * sparc-tdep.c (sparc_write_pc): Likewise.
2835 * spu-tdep.c (spu_write_pc): Likewise.
2837 * mips-tdep.c (read_signed_register): Remove.
2838 (read_signed_register_pid): Likewise.
2839 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
2840 Use REGCACHE instead of calling read_signed_register_pid.
2842 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2844 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
2845 * gdbarch.c, gdbarch.h: Regenerate.
2846 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
2847 (push_dummy_code): Likewise. Pass it to callee.
2848 (call_function_by_hand): Pass current regcache to push_dummy_code.
2850 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
2851 argument. Use it instead of current_regcache.
2853 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
2854 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2856 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2858 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
2859 * gdbarch.c, gdbarch.h: Regenerate.
2860 * infrun.c (handle_inferior_event): Pass current frame to
2861 gdbarch_get_longjmp_target.
2863 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
2864 Read registers from FRAME instead of using read_register.
2865 Use get_frame_arch instead of current_gdbarch.
2866 * arm-tdep.c (arm_get_longjmp_target): Likewise.
2867 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2868 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2869 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
2870 (mips64_linux_get_longjmp_target): Likewise.
2871 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2873 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2875 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
2876 * gdbarch.c, gdbarch.h: Regenerate.
2877 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
2878 * arch-utils.h (generic_skip_trampoline_code): Likewise.
2879 * infrun.c (handle_inferior_event): Pass current frame to
2880 gdbarch_skip_trampoline_code and skip_language_trampoline.
2882 * language.c (unk_lang_trampoline): Add FRAME argument.
2883 (skip_language_trampoline): Add FRAME argument. Pass it to
2884 skip_trampoline callback.
2885 * language.h: Add forward declaration of struct frame_info.
2886 (struct language_defn): Add FRAME argument to skip_trampoline.
2887 (skip_language_trampoline): Add FRAME argument.
2888 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
2889 to skip_trampoline callback.
2890 * cp-abi.h: Add forward declaration of struct frame_info.
2891 (cplus_skip_trampoline): Add FRAME argument.
2892 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
2893 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
2894 to gdbarch_skip_trampoline_code.
2895 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
2896 to gdbarch_skip_trampoline_code.
2898 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
2899 * symtab.h (find_solib_trampoline_target): Likewise.
2900 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
2901 find_solib_trampoline_target.
2903 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
2904 from FRAME instead of calling read_register.
2906 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
2907 argument. Read registers from FRAME instead of using read_register.
2908 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
2909 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
2911 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
2914 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
2916 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
2917 registers from FRAME instead of using read_signed_register.
2919 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
2921 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
2922 instead of using read_register.
2923 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
2924 ppc64_standard_linkage_target.
2925 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
2926 Pass it to find_solib_trampoline_target. Read registers from FRAME
2927 instead of using read_register.
2929 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
2932 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2934 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
2936 * gdbarch.c, gdbarch.h: Regenerate.
2937 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
2939 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
2940 registers from FRAME instead of using read_register.
2941 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2942 to alpha_next_pc. Use get_frame_pc instead of read_pc.
2943 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
2946 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
2947 from FRAME instead of using read_register.
2948 (thumb_get_next_pc): Likewise.
2949 (arm_get_next_pc): Likewise.
2950 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2951 to arm_get_next_pc. Use get_frame_pc instead of read_register.
2952 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
2955 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
2956 from FRAME instead of using read_register.
2957 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2958 to find_step_target.
2960 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
2961 from FRAME instead of using read_register / read_signed_register.
2962 (extended_mips16_next_pc): Likewise.
2963 (mips16_next_pc): Likewise.
2964 (mips_next_pc): Likewise.
2965 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2966 to mips_next_pc. Use get_frame_pc instead of read_pc.
2967 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
2970 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
2971 of current frame. Read registers from FRAME.
2972 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
2973 branch_dest. Use get_frame_pc instead of read_pc.
2974 (rs6000_software_single_step): Likewise.
2975 (bl_to_blrl_insn_p): Do not call branch_dest.
2976 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
2979 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
2980 Read registers from FRAME instead of current regcache.
2981 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
2982 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
2983 * sparc-tdep.c (sparc_address_from_register): Remove.
2984 (sparc_analyze_control_transfer): Pass FRAME argument instead of
2985 GDBARCH. Pass FRAME to step_trap callback.
2986 (sparc_step_trap): Add FRAME argument.
2987 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2988 to sparc_analyze_control_transfer. Read registers from FRAME instead
2989 of calling sparc_address_from_register.
2990 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
2992 (sparc_address_from_register): Remove prototype.
2993 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
2994 (sparcnbsd_step_trap): Add FRAME argument.
2996 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
2997 by FRAME. Read registers from FRAME instead of REGCACHE.
2999 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3001 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
3002 instead of calling read_register.
3004 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
3005 calling write_register.
3007 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
3008 calling write_register.
3010 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
3011 instead of calling read_register.
3012 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
3013 instead of calling read_register and write_register.
3015 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
3016 instead of current_regcache.
3018 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
3019 of calling write_register.
3020 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
3021 parameter instead of current_regcache.
3023 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
3024 instead of calling read_register.
3025 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
3026 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
3027 (mips_n32n64_push_dummy_call): Likewise.
3028 (mips_o32_push_dummy_call): Likewise.
3029 (mips_o64_push_dummy_call): Likewise.
3031 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
3032 parameter instead of current_regcache.
3034 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
3035 Use it instead of read_register and write_register.
3036 (xtensa_register_read_masked): Likewise.
3037 (xtensa_pseudo_register_read): Update call.
3038 (xtensa_pseudo_register_write): Likewise.
3039 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
3040 instead of calling read_register.
3041 (xtensa_push_dummy_call): Update comment.
3043 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3045 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3046 by frame_unwind_register_signed calls.
3047 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3048 frame allocations when called with NULL NEXT_FRAME parameter.
3049 (read_next_frame_reg): Remove.
3051 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3052 instead of reading the FPSCR register.
3053 (sh_frame_cache): Pass unwound FPSCR register value to
3054 sh_analyze_prologue.
3055 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3057 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3058 instead of reading the CTBP register.
3059 (v850_frame_cache): Pass unwound CTBP register value to
3060 v850_analyze_prologue.
3062 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3064 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3065 * sh-tdep.c (sh_show_regs): Likewise.
3066 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3067 (sh_generic_show_regs): Add FRAME parameter. Use register
3068 values from that frame instead of calling read_register.
3069 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3070 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3071 sh_dsp_show_regs): Likewise.
3072 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3073 sh64_show_regs): Likewise.
3075 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3077 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3078 current regcache instead of calling read_register.
3080 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3082 * mep-tdep.c (current_me_module): Read from current regcache
3083 instead of calling read_register.
3084 (current_options): Likewise.
3086 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3088 * cris-tdep.c (cris_stopped_data_address): Read register values
3089 from current frame instead of calling read_register.
3090 * frv-tdep.c (frv_stopped_data_address): Likewise.
3092 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3094 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3095 instead of write_register (PC_REGNUM, ...).
3097 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3099 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3100 explaining why the PC adjustment code is necessary.
3102 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3104 * m68k-tdep.h (enum m68k_flavour): New.
3105 (struct gdbarch_tdep): New fields
3106 float_return, flavour and fpregs_present.
3107 * m68k-tdep.c (m68k_register_type): Use
3108 fpregs_present and conditionalize floating
3109 registers type on flavour.
3110 (m68k_register_names): New.
3111 (m68k_register_name): Use the above.
3112 (m68k_convert_register_p): Consult fpregs_present.
3113 (m68k_register_to_value, m68k_value_to_register):
3114 Use register_type to obtain the type of floating
3116 (m68k_svr4_extract_return_value): Check tdep->float_return.
3117 Use register_type to get the type of floating
3119 (m68k_svr4_store_return_value): Likewise.
3120 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3121 (m68k_analyze_register_saves): Likewise.
3122 (m68k_gdbarch_init): Extract infromation
3123 from XML description, if present. Guess coldfire by
3124 looking at the file, if present. Conditionalize
3125 setting of long double format. Set decr_pc_after_break
3126 to 2 on coldfire and fido. Enable XML-driven
3127 register description.
3128 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3129 size of tdep->fpreg_type, as opposed to hardcoded value.
3130 * Makefile.in (m68k-tdep.o): Update dependencies.
3132 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3134 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3135 qXfer:spu:write remote packet types.
3137 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3139 * xml-tdesc.c (tdesc_start_target): New.
3140 (target_attributes): New.
3141 (tdesc_elements): Use it.
3142 * features/gdb-target.dtd: Add #FIXED version attribute for
3145 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3147 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3149 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3151 * fork-child.c (fork_inferior): Update comment.
3153 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3155 * features/Makefile: Generate regformats for mips-linux and
3157 * features/sort-regs.xsl: Correct typo.
3158 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3159 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3162 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3164 * config/mips/linux.mh (TDEP_XML): New.
3165 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3166 * mips-linux-nat.c (mips_linux_register_addr): Handle
3167 MIPS_RESTART_REGNUM.
3168 (mips64_linux_register_addr): Likewise.
3169 (super_xfer_partial, mips_linux_xfer_partial): New.
3170 (_initialize_mips_linux_nat): Add them to the target_ops.
3171 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3172 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3173 (mips_linux_o32_sigframe_init)
3174 (mips_linux_n32n64_sigframe_init): Likewise.
3175 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3176 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3177 "org.gnu.gdb.mips.linux" feature.
3178 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3179 (mips_linux_restart_reg_p): New prototype.
3180 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3181 initialization routine.
3182 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3184 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3186 * Makefile.in (mips-tdep.o): Update.
3187 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3188 (mips_n32_n64_aliases, mips_register_aliases): New.
3189 (mips_register_name): Call tdesc_register_name.
3190 (mips_tdesc_register_reggroup_p): New.
3191 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3192 (mips_gdbarch_init): Add target-described register support.
3193 Register aliases for register names.
3194 * target-descriptions.c (tdesc_register_name): Make global.
3195 (tdesc_register_in_reggroup_p): New function, broken out from
3196 tdesc_register_reggroup_p.
3197 (tdesc_register_reggroup_p): Use it.
3198 * target-descriptions.h (tdesc_register_name)
3199 (tdesc_register_in_reggroup_p): New prototypes.
3200 * NEWS: Correct formatting. Mention MIPS register support.
3201 * features/mips-cp0.xml, features/mips-fpu.xml,
3202 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3203 features/mips64-cpu.xml: New files.
3205 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3207 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3208 * valops.c (value_cast): Likewise.
3209 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3210 * ui-out.c (ui_out_field_core_addr): Likewise.
3211 * tracepoint.c (tracepoints_info): Likewise.
3212 * symtab.c (print_msymbol_info): Likewise.
3213 * solib-irix.c (irix_current_sos)
3214 (irix_open_symbol_file_object): Likewise.
3215 * remote.c (build_remote_gdbarch_data): Likewise.
3216 * prologue-value.c (make_pv_area): Likewise.
3217 * procfs.c (info_mappings_callback): Likewise.
3218 * printcmd.c (print_scalar_formatted)
3219 (deprecated_print_address_numeric): Likewise.
3220 * memattr.c (mem_info_command): Likewise.
3221 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3222 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3223 * exec.c (print_section_info): Likewise.
3224 * dwarf2read.c (read_subrange_type): Likewise.
3225 * dwarf2loc.c (find_location_expression): Likewise.
3226 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3227 (signed_address_type, execute_stack_op): Likewise.
3228 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3229 * gdbarch.c, gdbarch.h: Regenerate.
3231 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3233 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3234 * arch-utils.c (show_architecture): Likewise.
3235 * remote-mips.c (mips_open): Likewise
3236 * nto-tdep.c (nto_find_and_open_solib)
3237 (nto_init_solib_absolute_prefix): Likewise.
3238 * nto-procfs (procfs_open): Likewise.
3239 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3240 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3241 * gdbarch.c, gdbarch.h: Regenerate.
3243 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3245 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3246 * gdbtypes.c (build_flt): Likewise.
3247 * gdbarch.c, gdbarch.h: Regenerate.
3249 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3251 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3252 gdbarch_breakpoint_from_pc.
3253 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3254 * remote.c (remote_insert_breakpoint)
3255 (remote_insert_hw_breakpoint): Likewise.
3256 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3257 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3258 * breakpoint.h (bp_target_info): Likewise (comment).
3259 * breakpoint.c (read_memory_nobpt): Likewise.
3260 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3261 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3262 * gdbarch.c, gdbarch.h: Regenerate.
3264 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3266 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3267 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3268 * solib-pa64.c (read_dynamic_info): Likewise.
3269 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3270 * solib.c (info_sharedlibrary_command): Likewise.
3271 * s390-nat.c (SUBOFF): Likewise.
3272 * p-valprint.c (pascal_val_print): Likewise.
3273 * procfs.c (info_proc_mappings): Likewise.
3274 * printcmd.c (decode_format): Likewise.
3275 * nto-tdep.c (nto_truncate_ptr): Likewise.
3276 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3277 (mips64_linux_get_longjmp_target): Likewise.
3278 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3279 * jv-valprint.c (java_value_print): Likewise.
3280 * jv-lang.c (get_java_object_header_size): Likewise.
3281 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3282 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3283 (hppa_hpux_unwind_adjust_stub): Likewise.
3284 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3285 * gdbtypes.c (make_pointer_type, make_reference_type)
3286 (smash_to_memberptr_type): Likewise.
3287 * gdbarch.c, gdbarch.h: Regenerate.
3289 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3291 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3292 (print_gp_register_row): Stop before printing a register bigger
3293 than the ABI register size.
3294 (mips_print_registers_info): Update call to mips_print_register.
3296 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3298 * expression.h (enum exp_opcode): Document a register name for
3300 * parse.c (write_dollar_variable): Write the register name for
3302 (operator_length_standard): Expect the register name following
3304 * ada-lang.c (resolve_subexp): Likewise.
3305 * ax-gdb.c (gen_expr): Likewise.
3306 * eval.c (evaluate_subexp_standard): Likewise.
3307 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3309 * tracepoint.c (encode_actions): Likewise.
3311 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3313 * utils.c (set_screen_size): Use INT_MAX for default columns.
3315 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3317 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3318 qXfer:spu:write packet types.
3320 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3322 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3323 * gdbarch.c, gdbarch.h: Regenerate.
3325 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3327 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3328 gdbarch_stab_reg_to_regnum.
3329 * stabsread.c (define_symbol): Likewise.
3330 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3331 gdbarch_ecoff_reg_to_regnum.
3332 * mdebugread.c (parse_symbol): Likewise.
3333 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3334 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3335 gdbarch_dwarf_reg_to_regnum.
3336 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3337 * coffread.c (process_coff_symbol): Likewise.
3338 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3339 gdbarch_dwarf2_reg_to_regnum.
3340 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3341 (locexpr_describe_location): Likewise.
3342 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3343 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3344 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3345 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3346 * gdbarch.c, gdbarch.h: Regenerate.
3348 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3350 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3351 gdbarch_smash_text_address.
3352 * somread.c (som_symtab_read): Likewise.
3353 * elfread.c (record_minimal_symbol): Likewise.
3354 * dbxread.c (process_one_symbol): Likewise.
3355 * coffread.c (coff_symtab_read): Likewise.
3356 * gdbarch.c, gdbarch.h: Regenerate.
3358 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3360 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3361 * findvar.c (value_from_register): Likewise.
3362 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3363 * valops.c (value_assign): Likewise.
3364 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3365 gdbarch_convert_register_p.
3366 * findvar.c (value_from_register): Likewise.
3367 * valops.c (value_assign): Likewise.
3368 * gdbarch.c, gdbarch.h: Regenerate.
3370 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3372 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3373 gdbarch_register_sim_regno.
3374 * sim-regno.h (sim_regno): Likewise (comment).
3375 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3376 * gdbarch.c, gdbarch.h: Regenerate.
3378 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3380 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3381 gdbarch_virtual_frame_pointer.
3382 * tracepoint.c (encode_actions): Likewise.
3383 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3384 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3385 * gdbarch.c, gdbarch.h: Regenerate.
3387 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3389 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3390 * p-lang.c (pascal_create_fundamental_type): Likewise.
3391 * objc-lang.c (objc_create_fundamental_type): Likewise.
3392 * mdebugread.c (_initialize_mdebugread): Likewise.
3393 * m2-lang.c (m2_create_fundamental_type)
3394 (_initialize_m2_language): Likewise.
3395 * gdbtypes.c (build_gdbtypes): Likewise.
3396 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3397 * doublest.c (floatformat_from_length): Likewise.
3398 * c-lang.c (c_create_fundamental_type): Likewise.
3399 * ada-lang.c (ada_create_fundamental_type)
3400 (ada_language_arch_info): Likewise.
3401 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3402 * value.c (unpack_double): Likewise (comment).
3403 * gdbtypes.c (build_gdbtypes): Likewise.
3404 * doublest.c (floatformat_from_length): Likewise.
3405 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3406 * valarith.c (value_binop): Likewise.
3407 * p-lang.c (pascal_create_fundamental_type): Likewise.
3408 * objc-lang.c (objc_create_fundamental_type): Likewise.
3409 * mdebugread.c (_initialize_mdebugread): Likewise.
3410 * m2-lang.c (m2_create_fundamental_type): Likewise.
3411 * gdbtypes.c (build_gdbtypes): Likewise.
3412 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3413 * doublest.c (floatformat_from_length): Likewise.
3414 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3415 * c-lang.c (c_create_fundamental_type): Likewise.
3416 * ada-lex.l (processReal): Likewise.
3417 * ada-lang.c (ada_create_fundamental_type)
3418 (ada_language_arch_info): Likewise.
3419 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3420 * value.c (unpack_double): Likewise (comment).
3421 * gdbtypes.c (build_gdbtypes): Likewise.
3422 * doublest.c (floatformat_from_length): Likewise.
3423 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3424 gdbarch_long_double_bit.
3425 * p-lang.c (pascal_create_fundamental_type): Likewise.
3426 * objc-lang.c (objc_create_fundamental_type): Likewise.
3427 * m2-lang.c (m2_create_fundamental_type): Likewise.
3428 * gdbtypes.c (build_gdbtypes): Likewise.
3429 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3430 * doublest.c (floatformat_from_length): Likewise.
3431 * c-lang.c (c_create_fundamental_type): Likewise.
3432 * ada-lex.l (processReal): Likewise.
3433 * ada-lang.c (ada_create_fundamental_type)
3434 (ada_language_arch_info): Likewise.
3435 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3436 gdbarch_long_double_format.
3437 * gdbtypes.c (build_gdbtypes): Likewise.
3438 * doublest.c (floatformat_from_length): Likewise.
3439 * gdbarch.c, gdbarch.h: Regenerate.
3441 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3443 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3444 * ada-lang.c (ada_create_fundamental_type)
3445 (ada_language_arch_info): Likewise.
3446 * c-lang.c (c_create_fundamental_type): Likewise.
3447 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3448 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3449 * m2-lang.c (m2_create_fundamental_type): Likewise.
3450 * objc-lang.c (objc_create_fundamental_type): Likewise.
3451 * p-lang.c (pascal_create_fundamental_type): Likewise.
3452 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3453 * c-exp.y (parse_number): Likewise.
3454 * objc-exp.y (parse_number): Likewise.
3455 * ada-lex.l (processInt): Likewise.
3456 * f-exp.y (parse_number): Likewise.
3457 * p-exp.y (parse_number): Likewise.
3458 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3459 (gdbtypes_post_init, build_gdbtypes): Likewise.
3460 * p-lang.c (pascal_create_fundamental_type): Likewise.
3461 * parse.c (build_parse): Likewise.
3462 * xcoffread.c (_initialize_xcoffread): Likewise.
3463 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3464 (read_range_type): Likewise.
3465 * objc-lang.c (objc_create_fundamental_type): Likewise.
3466 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3467 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3468 (m2_create_fundamental_type): Likewise.
3469 * c-lang.c (c_create_fundamental_type): Likewise.
3470 * coffread.c (coff_read_enum_type): Likewise.
3471 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3472 * dwarf2read.c (new_symbol): Likewise.
3473 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3474 * c-exp.y (parse_number): Likewise.
3475 * objc-exp.y (parse_number): Likewise.
3476 * ada-lex.l (processInt): Likewise.
3477 * f-exp.y (parse_number): Likewise.
3478 * p-exp.y (parse_number): Likewise.
3479 * valarith.c (value_binop): Likewise.
3480 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3481 * ada-lang.c (ada_create_fundamental_type)
3482 (ada_language_arch_info): Likewise.
3483 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3484 * symfile.c (TARGET_LONG_BYTES): Likewise.
3485 * p-lang.c (pascal_create_fundamental_type): Likewise.
3486 * objc-lang.c (objc_create_fundamental_type): Likewise.
3487 * m2-lang.c (m2_create_fundamental_type): Likewise.
3488 * f-lang.c (f_create_fundamental_type): Likewise.
3489 * c-lang.c (c_create_fundamental_type): Likewise.
3490 * coffread.c (decode_base_type): Likewise.
3491 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3492 * c-exp.y (parse_number): Likewise.
3493 * objc-exp.y (parse_number): Likewise.
3494 * p-exp.y (parse_number): Likewise.
3495 * ada-lang.c (ada_create_fundamental_type)
3496 (ada_language_arch_info): Likewise.
3497 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3498 * stabsread.c (read_range_type): Likewise.
3499 * p-lang.c (pascal_create_fundamental_type): Likewise.
3500 * objc-lang.c (objc_create_fundamental_type): Likewise.
3501 * m2-lang.c (m2_create_fundamental_type): Likewise.
3502 * f-lang.c (f_create_fundamental_type): Likewise.
3503 * c-lang.c (c_create_fundamental_type): Likewise.
3504 * gdbarch.c, gdbarch.h: Regenerate.
3506 2007-06-12 Andreas Schwab <schwab@suse.de>
3508 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3509 (struct frame_unwind): Add dealloc_cache.
3510 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3512 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3513 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3514 (libunwind_frame_unwind): Set dealloc_cache.
3515 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3517 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3518 Markus Deuling <deuling@de.ibm.com>
3520 * remote.c (remote_write_qxfer): New function.
3521 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3522 (remote_read_qxfer): Do not cache empty objects.
3523 (_initialize_remote): Add PACKET_qXfer_spu_read and
3524 PACKET_qXfer_spu_write.
3526 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3528 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3529 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3531 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3532 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3533 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3534 * spu-tdep.c (infospucmdlist): New variable.
3535 (spu_register_name): Handle additional pseudo registers.
3536 (spu_register_type): Likewise.
3537 (spu_pseudo_register_read): Likewise.
3538 (spu_pseudo_register_write): Likewise.
3539 (spu_pseudo_register_read_spu): New function.
3540 (spu_pseudo_register_write_spu): Likewise.
3541 (info_spu_event_command): New function.
3542 (info_spu_signal_command): Likewise.
3543 (info_spu_mailbox_list): Likewise.
3544 (info_spu_mailbox_command): Likewise.
3545 (spu_mfc_get_bitfield): Likewise.
3546 (info_spu_dma_cmdlist): Likewise.
3547 (info_spu_dma_command): Likewise.
3548 (info_spu_proxydma_command): Likewise.
3549 (info_spu_command): Likewise.
3550 (_initialize_spu_tdep): Install "info spu" commands.
3552 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3554 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3555 accessing non-seekable spufs files.
3557 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3559 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3560 gdbarch_skip_trampoline_code.
3561 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3562 * objc-lang.c (objc_skip_trampoline)
3563 (objc_submethod_helper_data): Likewise.
3564 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3565 * infrun.c (handle_inferior_event): Likewise.
3566 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3567 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3568 gdbarch_in_solib_return_trampoline.
3569 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3570 * infrun.c (handle_inferior_event): Likewise.
3571 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3572 * gdbarch.c, gdbarch.h: Regenerate.
3574 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3576 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3577 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3578 * linespec.c (minsym_found): Likewise.
3579 * infrun.c (step_into_function): Likewise.
3580 * gdbarch.c, gdbarch.h: Regenerate.
3582 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3584 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3585 * valops.c (value_allocate_space_in_inferior): Likewise.
3586 * gdbarch.c, gdbarch.h: Regenerate.
3588 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3590 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3591 gdbarch_memory_insert_breakpoint.
3592 * mem-break.c (memory_insert_breakpoint): Likewise.
3593 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3594 gdbarch_memory_remove_breakpoint.
3595 * mem-break.c (memory_remove_breakpoint): Likewise.
3596 * gdbarch.c, gdbarch.h: Regenerate.
3598 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3600 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3601 gdbarch_fetch_tls_load_module_address.
3602 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3603 gdbarch_fetch_tls_load_module_address_p.
3604 * gdbarch.c, gdbarch.h: Regenerate.
3606 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3608 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3609 gdbarch_decr_pc_after_break.
3610 * tracepoint.c (trace_dump_command): Likewise.
3611 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3612 * linux-thread-db.c (check_event): Likewise.
3613 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3614 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3615 * frame.h: Likewise (comment).
3616 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3617 * aix-thread.c (aix_thread_wait): Likewise.
3618 * gdbarch.c, gdbarch.h: Regenerate.
3620 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3622 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3623 gdbarch_address_class_type_flags.
3624 * dwarf2read.c (read_tag_pointer_type): Likewise.
3625 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3626 gdbarch_address_class_type_flags_p.
3627 * dwarf2read.c (read_tag_pointer_type): Likewise.
3628 * gdbarch.c, gdbarch.h: Regenerate.
3630 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3632 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3633 * value.c (value_as_address): Likewise (comment).
3634 * remote-mips.c (common_breakpoint): Likewise.
3635 * regcache.c (read_pc_pid): Likewise.
3636 * printcmd.c (do_one_display): Likewise.
3637 * monitor.c (monitor_write_memory, monitor_read_memory)
3638 (monitor_insert_breakpoint): Likewise.
3639 * mips-tdep.c (heuristic_proc_start): Likewise.
3640 * infrun.c (insert_step_resume_breakpoint_at_frame)
3641 (insert_step_resume_breakpoint_at_caller): Likewise.
3642 * buildsym.c (record_line): Likewise.
3643 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3644 (arm_get_next_pc): Likewise.
3645 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3646 (store_regs): Likewise.
3647 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3648 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3649 * gdbarch.c, gdbarch.h: Regenerate.
3651 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3653 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3654 * tracepoint.c (scope_info): Likewise.
3655 * target.c (debug_print_register): Likewise.
3656 * stack.c (frame_info): Likewise.
3657 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3658 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3659 (sh64_media_print_registers_info)
3660 (sh64_compact_print_registers_info): Likewise.
3661 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3662 * remote-sim.c (gdbsim_fetch_register): Likewise.
3663 * remote.c (packet_reg): Likewise (comment).
3664 * reggroups.c (default_register_reggroup_p): Likewise.
3665 * regcache.c (regcache_dump): Likewise.
3666 * printcmd.c (address_info): Likewise.
3667 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3668 * mt-dep.c (mt_registers_info): Likewise.
3669 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3670 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3671 (mips_read_fp_register_double, mips_print_fp_register)
3672 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3673 (mips_register_sim_regno): Likewise.
3674 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3675 * inf-ptrace.c (inf_ptrace_fetch_register)
3676 (inf_ptrace_store_register): Likewise.
3677 * infcmd.c (default_print_registers_info): Likewise.
3678 * ia64-linux-nat.c (ia64_linux_fetch_register)
3679 (ia64_linux_store_register): Likewise.
3680 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3681 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3682 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3683 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3684 (hppa_hpux_store_register): Likewise.
3685 * findvar.c (locate_var_value): Likewise.
3686 * dwarf2loc.c (locexpr_describe_location): Likewise.
3687 * dwarf2-frame.c (execute_cfa_program): Likewise.
3688 * arm-tdep.c (arm_push_dummy_call): Likewise.
3689 * arch-utils.c (legacy_register_sim_regno): Likewise.
3690 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3691 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3692 * mi/mi-main.c (mi_cmd_data_list_register_names)
3693 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3694 (mi_cmd_data_write_register_values): Likewise.
3695 * gdbarch.c, gdbarch.h: Regenerate.
3697 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3699 * target-memory.c (blocks_to_erase): Correct off-by-one error.
3701 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
3703 * remote.c (process_g_packet): Don't check size.
3704 * gdbarch.sh: Remove register_bytes_ok.
3705 * gdbarch.c: Regenerated.
3706 * gdbarch.h: Regenerated.
3707 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3708 (m68k_register_bytes_ok): Remove.
3709 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3711 2007-06-06 Andreas Schwab <schwab@suse.de>
3713 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3714 (destroy_addr_space_name): Define.
3715 (libunwind_load): Get address of destroy_addr_space function.
3716 (libunwind_frame_cache): Destroy unw_addr_space_t object before
3717 returning unsuccessfully.
3718 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3720 (libunwind_sigtramp_frame_sniffer): Likewise.
3721 (libunwind_get_reg_special): Likewise.
3723 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3725 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3726 gdbarch_fetch_pointer_argument.
3727 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3728 * gdbarch.c, gdbarch.h: Regenerate.
3730 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3732 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3733 gdbarch_have_nonsteppable_watchpoint.
3734 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3735 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3736 gdbarch_cannot_step_breakpoint.
3737 * infrun.c (resume): Likewise.
3738 * gdbarch.c, gdbarch.h: Regenerate.
3740 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3742 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3743 * stack.c (print_frame_args): Likewise.
3744 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3745 * stack.c (print_args_stub, frame_info): Likewise.
3746 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3747 * stack.c (print_args_stub, frame_info): Likewise.
3748 * gdbarch.c, gdbarch.h: Regenerate.
3750 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3752 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3753 gdbarch_coff_make_msymbol_special.
3754 * coffread.c (coff_symtab_read): Likewise.
3755 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3756 gdbarch_elf_make_msymbol_special.
3757 * elfread.c (elf_symtab_read): Likewise.
3758 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3759 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3760 * gdbarch.c, gdbarch.h: Regenerate.
3762 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3764 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3765 gdbarch_frame_red_zone_size.
3766 * gdbarch.c, gdbarch.h: Regenerate.
3768 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3770 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3771 * infcall.c (call_function_by_hand): Likewise.
3772 * gcore.c (derive_stack_segment): Likewise.
3773 * frame.c (frame_id_inner): Likewise.
3774 * arch-utils.c (core_addr_lessthan): Likewise (comment).
3775 * ada-lang.c (ensure_lval): Likewise.
3776 * gdbarch.c, gdbarch.h: Regenerate.
3778 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3780 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3781 gdbarch_address_to_pointer.
3782 * findvar.c (store_typed_address): Likewise.
3783 * gdbtypes.c (make_pointer_type): Likewise (comment).
3784 * procfs.c (procfs_address_to_host_pointer): Likewise.
3785 * std-regs.c (value_of_builtin_frame_reg): Likewise.
3786 (value_of_builtin_frame_fp_reg): Likewise.
3787 (value_of_builtin_frame_pc_reg): Likewise.
3788 * utils.c (paddress): Likewise (comment).
3789 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3790 gdbarch_pointer_to_address.
3791 * findvar.c (extract_typed_address): Likewise.
3792 * gdbtypes.c (make_pointer_type): Likewise (comment).
3793 * valops.c (value_cast): Likewise (comment).
3794 * gdbarch.c, gdbarch.h: Regenerate.
3796 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3798 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3799 * infrun.c (handle_inferior_event): Likewise.
3800 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3801 gdbarch_get_longjmp_target_p.
3802 * breakpoint.c (breakpoint_re_set): Likewise.
3803 * infrun.c (handle_inferior_event): Likewise.
3804 * gdbarch.c, gdbarch.h: Regenerate.
3806 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3808 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3809 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3810 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3811 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3812 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3813 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3814 find_stub_with_shl_get, cover_find_stub_with_shl_get,
3815 initialize_hp_cxx_exception_support, child_enable_exception_callback,
3816 current_ex_event, child_get_current_exception_event): Remove.
3817 (hppa_hpux_inferior_created): Remove.
3818 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3820 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
3821 (deprecated_exception_support_initialized): Remove.
3822 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
3823 (deprecated_exception_support_initialized): Remove.
3824 (breakpoint_init_inferior): Remove handling of non-zero
3825 deprecated_exception_catchpoints_are_fragile.
3827 * symtab.h (deprecated_hp_som_som_object_present): Remove.
3828 * symtab.c (deprecated_hp_som_som_object_present): Remove.
3829 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
3830 deprecated_hp_som_som_object_present.
3831 * eval.c (evaluate_subexp_standard): Likewise.
3832 * valops.c (value_cast): Likewise.
3834 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
3835 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
3836 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
3838 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3840 * objfiles.h (ImportEntry, ExportEntry): Remove types.
3841 (struct objfile): Remove import_list, import_list_size,
3842 export_list, export_list_size members.
3843 (is_in_import_list): Remove prototype.
3844 * objfiles.c (is_in_import_list): Remove.
3845 * somread.c (init_import_symbols, init_export_symbols): Remove.
3846 (som_symfile_read): Do not call init_import_symbols. Do not
3847 set objfile->export_list and objfile->export_list_size.
3849 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3851 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
3852 Use the original objfile if necessary.
3854 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
3856 * defs.h (ldirname): New prototype.
3857 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
3859 * utils.c (ldirname): New function.
3860 * xml-tdesc.c (file_read_description_xml): Use ldirname.
3862 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3864 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
3866 2007-06-01 Joel Brobecker <brobecker@adacore.com>
3868 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
3870 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3872 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
3874 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3876 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
3877 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
3878 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
3879 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
3880 (ppc_linux_in_sigtramp, insn_is_sigreturn,
3881 ppc_linux_at_sigtramp_return_path): Remove.
3883 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3885 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
3886 (xtensa_register_write_masked, xtensa_register_read_masked)
3887 (xtensa_extract_return_value, xtensa_store_return_value
3888 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
3889 TARGET_BYTE_ORDER by gdbarch_byte_order.
3890 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
3891 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
3892 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
3893 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
3894 (sh64_push_dummy_call, sh64_extract_return_value)
3895 (sh64_store_return_value, sh64_register_convert_to_virtual)
3896 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
3897 (sh64_pseudo_register_write, sh64_do_fp_register)
3898 (sh64_frame_prev_register): Likewise.
3899 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
3900 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
3901 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
3902 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
3903 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3904 * ppc-linux-nat.c (store_register): Likewise.
3905 * nto-tdep.c (nto_find_and_open_solib)
3906 (nto_init_solib_absolute_prefix): Likewise.
3907 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
3908 (mips_convert_register_p, mips_eabi_push_dummy_call)
3909 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
3910 (mips_o32_push_dummy_call, mips_o32_return_value)
3911 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
3912 (mips_read_fp_register_single, mips_read_fp_register_double)
3913 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
3914 (mips_breakpoint_from_pc): Likewise.
3915 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
3916 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
3917 (mips_linux_o32_sigframe_init): Likewise.
3918 * m32r-tdep.c (m32r_memory_insert_breakpoint)
3919 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
3920 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
3921 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
3922 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
3923 * coffread.c (process_coff_symbol): Likewise.
3924 * arm-tdep.c (convert_from_extended, convert_to_extended)
3925 (gdb_print_insn_arm): Likewise.
3927 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3929 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
3930 * i386-tdep.c (i386_dbx_reg_to_regnum)
3931 (i386_svr4_reg_to_regnum): Likewise.
3932 * inf-ptrace.c (inf_ptrace_fetch_registers)
3933 (inf_ptrace_store_registers): Likewise.
3934 * corelow.c (get_core_registers): Likewise.
3935 * i386-linux-nat.c (supply_gregset, fill_gregset)
3936 (i386_linux_fetch_inferior_registers)
3937 (i386_linux_store_inferior_registers): Likewise.
3938 * remote.c (init_remote_state,packet_reg_from_regnum)
3939 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
3940 (remote_prepare_to_store,store_registers_using_G)
3941 (remote_store_registers,remote_arch_state): Likewise.
3942 * tracepoint.c (encode_actions): Likewise.
3943 * mi/mi-main.c (mi_cmd_data_list_register_names)
3944 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3945 (mi_cmd_data_write_register_values): Likewise.
3946 * tui/tui-regs.c (tui_show_register_group)
3947 (tui_show_register_group): Likewise.
3948 * xtensa-tdep.h (FP_ALIAS): Likewise.
3949 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
3950 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
3951 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
3952 * win32-nat.c (do_win32_fetch_inferior_registers)
3953 (do_win32_store_inferior_registers,fetch_elf_core_registers
3954 * user-regs.h: Likewise (comment).
3955 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3956 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3957 * target-descriptions.h: Likewise (comment).
3958 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
3959 * target.c (debug_print_register): Likewise.
3960 * stack.c (frame_info): Likewise.
3961 * stabsread.c (define_symbol): Likewise.
3962 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
3963 (sh64_media_print_registers_info)
3964 (sh64_compact_print_registers_info): Likewise.
3965 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3966 * rs6000-nat.c (fetch_register,store_register): Likewise.
3967 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
3968 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
3969 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
3970 * remote-m32r-sdi.c (m32r_fetch_registers)
3971 (m32r_store_registers): Likewise.
3972 * reggroups.c (default_register_reggroup_p): Likewise.
3973 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
3974 (regcache_restore,regcache_dump): Likewise.
3975 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
3976 * mips-tdep.c (mips_xfer_register,mips_register_name)
3977 (mips_register_reggroup_p,mips_pseudo_register_read)
3978 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
3979 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
3980 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
3981 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
3982 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
3983 (print_gp_register_row,mips_print_registers_info)
3984 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3985 (mips_register_sim_regno): Likewise.
3986 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
3987 (mips_linux_n32n64_sigframe_init): Likewise.
3988 * mips-linux-nat.c (mips_linux_register_addr)
3989 (mips64_linux_register_addr): Likewise.
3990 * findvar.c (value_of_register): Likewise.
3991 * infcmd.c (default_print_registers_info,registers_info)
3992 (print_vector_info,print_float_info): Likewise.
3993 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
3994 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3995 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3996 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
3997 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3998 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
3999 (ia64_cannot_store_register,ia64_linux_fetch_registers)
4000 (ia64_linux_store_registers): Likewise.
4001 * hpux-thread.c (hpux_thread_fetch_registers)
4002 (hpux_thread_store_registers): Likewise.
4003 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
4004 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
4005 (h8300_register_type): Likewise.
4006 * dwarf2-frame.c (dwarf2_frame_cache)
4007 (dwarf2_frame_state_alloc_regs): Likewise.
4008 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
4009 (cris_cannot_store_register,crisv32_cannot_fetch_register)
4010 (crisv32_cannot_store_register,cris_register_name): Likewise.
4011 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
4012 * arch-utils.c (legacy_register_sim_regno)
4013 (legacy_virtual_frame_pointer): Likewise.
4014 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
4015 * arm-tdep.h: Likewise (comment).
4016 * frv-tdep.c (frv_register_sim_regno): Likewise.
4017 * m68klinux-nat.c (old_fetch_inferior_registers)
4018 (old_store_inferior_registers): Likewise.
4019 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4020 * irix5-nat.c (fetch_core_registers): Likewise.
4021 * hppa-tdep.c (hppa_frame_cache): Likewise.
4022 * hppa-linux-nat.c (hppa_linux_register_addr)
4023 (hppa_linux_fetch_inferior_registers)
4024 (hppa_linux_store_inferior_registers): Likewise.
4025 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
4026 (hppa_hpux_store_inferior_registers): Likewise.
4027 * amd64-nat.c (amd64_native_gregset_reg_offset)
4028 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
4029 * dbug-rom.c (dbug_regname): Likewise.
4030 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
4031 (HARD_PAGE_REGNUM (comment)): Likewise.
4032 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
4033 * i386-tdep.c (i386_dbx_reg_to_regnum)
4034 (i386_svr4_reg_to_regnum): Likewise.
4035 * mi/mi-main.c (mi_cmd_data_list_register_names)
4036 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4037 (mi_cmd_data_write_register_values): Likewise.
4038 * gdbarch.c, gdbarch.h: Regenerate.
4039 * tui/tui-regs.c (tui_show_register_group): Likewise.
4040 * xtensa-tdep.h (FP_ALIAS): Likewise.
4041 * user-regs.h: Likewise (comment).
4042 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4043 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4044 * target-descriptions.h: Likewise (comment).
4045 * target.c (debug_print_register): Likewise.
4046 * stack.c (frame_info): Likewise.
4047 * stabsread.c (define_symbol): Likewise.
4048 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4049 (sh64_compact_print_registers_info): Likewise.
4050 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4051 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4052 (regcache_restore,regcache_dump): Likewise.
4053 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4054 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4055 (mips_stab_reg_to_regnum): Likewise.
4056 * findvar.c (value_of_register): Likewise.
4057 * infcmd.c (default_print_registers_info,registers_info)
4058 (print_vector_info,print_float_info): Likewise.
4059 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4060 * h8300-tdep.c (h8300_register_type): Likewise.
4061 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4062 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4063 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4064 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4065 * parse.c: Remove comment.
4066 * gdbarch.c, gdbarch.h: Regenerate
4068 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4070 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4071 gdbarch_cannot_fetch_register.
4072 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4073 * hppa-linux-nat.c (fetch_register): Likewise.
4074 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4075 * m68klinux-nat.c (fetch_register): Likewise.
4076 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4078 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4079 gdbarch_cannot_store_register.
4080 * hppa-linux-nat.c (store_register): Likewise.
4081 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4082 * regcache.c (regcache_raw_write): Likewise.
4083 * m68klinux-nat.c (store_register): Likewise.
4084 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4085 * gdbarch.c, gdbarch.h: Regenerate.
4087 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4089 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4090 * gdbarch.c, gdbarch.h: Regenerate.
4092 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4094 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4095 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4096 * gdbarch.c, gdbarch.h: Regenerate.
4098 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4100 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4101 * ax-gdb.c (gen_bitfield_ref): Likewise.
4102 * mi/mi-main.c (get_register): Likewise.
4103 * findvar.c (default_value_from_register, extract_signed_integer)
4104 (extract_unsigned_integer, extract_long_unsigned_integer)
4105 (store_signed_integer, store_unsigned_integer): Likewise.
4106 * regcache.c (regcache_dump): Likewise.
4107 * value.c (lookup_internalvar, value_of_internalvar)
4108 (set_internalvar): Likewise.
4110 * valprint.c (print_binary_chars, print_octal_chars)
4111 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4112 * infcmd.c (default_print_registers_info): Likewise.
4113 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4114 * stabsread.c (define_symbol): Likewise.
4115 * doublest.c (floatformat_from_length, floatformat_from_type)
4116 (extract_typed_floating, store_typed_floating): Likewise.
4117 * gdbarch.c, gdbarch.h: Regenerate.
4119 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4121 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4122 gdbarch_call_dummy_location.
4123 * infcall.c (call_function_by_hand): Likewise.
4124 * inferior.h: Change comment.
4125 * arch-utils.c: Change comment.
4126 * gdbarch.c, gdbarch.h: Regenerate.
4128 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4130 * solib-aix5.c: Delete.
4131 * Makefile.in (solib-aix5.o): Delete rule.
4133 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4135 * breakpoint.h (enum bpstat_what_main_action): Remove
4136 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4137 * infrun.c (process_event_stop_test): Do not check for it.
4139 2007-05-22 Chris Dearman <chris@mips.com>
4140 Maciej W. Rozycki <macro@mips.com>
4142 * ser-unix.c (show_serial_hwflow): New function.
4143 (hardwire_raw): Add hardware flow control support.
4144 (_initialize_ser_hardwire): Add "set/show remoteflow".
4145 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4146 * NEWS: Document the new command.
4148 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4150 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4151 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4152 define for i[[3456]]86-*-linux* native configurations.
4153 * config.in, configure: Regenerate.
4155 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4157 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4158 a core file. Add comment in the function description.
4160 2007-05-18 Caroline Tice <ctice@apple.com>
4162 * c-valprint.c (c_value_print): If the initialized field of the
4163 value struct is 0, print out "[uninitialized]" before the value.
4164 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4165 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4166 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4167 ctx->initialized appropriately. Verify no location op follows
4169 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4170 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4171 set_value_initialized.
4172 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4173 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4174 * value.c (struct value): New field, initialized.
4175 (allocate_value): Initialize new field.
4176 (set_value_initialized): New function.
4177 (value_initialized): New function.
4178 * value.h (value_initialized): New extern declaration.
4179 (set_value_initialized): Likewise.
4181 2007-05-18 Caroline Tice <ctice@apple.com>
4183 * MAINTAINERS (Write After Approval): Add self.
4185 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4187 * gdbtypes.c (make_reference_type): Preserve the type chain
4188 and set the length of all the variants of the pointer type.
4190 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4192 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4193 and set the length of all the variants of the pointer type.
4195 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4197 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4199 (mips_o64_push_dummy_call): Reformat a comment.
4201 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4203 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4204 (score_prologue_frame_base_address): Return fp to keep gdb print
4205 local variables correctly when debugging information is stabs.
4207 (score_analyze_prologue): For software watchpoint, fetch all the
4208 instructions from range [startaddr, pc] once and identify them locally
4209 to reduce memory access.
4210 (score_malloc_and_get_memblock, score_free_memblock)
4211 (score_adjust_memblock_ptr): New functions.
4212 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4214 (score_target_can_use_watch, score_stopped_by_watch)
4215 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4216 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4217 New functions for remote & local hw-watchpoint and hw-breakpoint.
4219 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4221 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4222 declarations as well.
4224 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4226 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4227 * config/arm/tm-embed.h: Delete file.
4229 * arm-tdep.h (arm_software_single_step): Declare.
4230 * arm-tdep.c (arm_software_single_step): Make global.
4231 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4233 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4234 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4235 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4236 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4238 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4239 allow defines to be overriden by TM file.
4240 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4241 change default to {0xbe,0xbe}.
4242 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4243 arm_obsd_thumb_be_breakpoint): New global variables.
4244 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4245 tdep->thumb_breakpoint_size.
4246 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4247 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4248 tdep->thumb_breakpoint_size.
4250 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4252 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4254 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4257 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4258 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4259 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4260 (mips_abi_regsize): Simplify.
4261 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4262 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4263 (mips_o32_return_value, mips_o64_push_dummy_call)
4264 (mips_o64_return_value): Propogate constant register sizes. Use the
4265 ABI register size instead of mips_stack_argsize.
4266 (mips_dump_tdep): Don't print mips_stack_argsize.
4267 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4270 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4272 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4273 * config/mips/tm-linux.h: Delete.
4274 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4275 (mips_linux_in_dynsym_resolve_code): Make static. Use
4276 svr4_in_dynsym_resolve_code.
4277 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4279 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4281 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4282 * Makefile.in (mips-linux-tdep.o): Update.
4283 * solib.c (set_solib_ops): New.
4284 (current_target_so_ops): Update comment.
4285 * solib.h (set_solib_ops): New prototype.
4287 2007-05-16 Chris Dearman <chris@mips.com>
4289 * printcmd.c (do_examine): Fix typos in a comment.
4291 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4293 * configure.ac: Allow sysroots to be relocated under $prefix as
4294 well as $exec_prefix.
4295 * configure: Regenerate.
4297 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4299 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4300 (offsetof): Do not define.
4301 (find_stub_with_shl_get): Use numerical value 3 instead of
4302 symbolic value TYPE_PROCEDURE.
4304 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4306 * gdb_proc_service.h (paddr_t): Delete typedef.
4307 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4308 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4309 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4310 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4311 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4312 * Makefile.in (proc-service.o): Update.
4314 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4316 * Makefile.in (mips-tdep.o): Update.
4317 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4320 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4322 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4323 instead of store_typed_address.
4324 * value.c (pack_long): New.
4325 (value_from_longest): Use it.
4326 * value.h (pack_long): New prototype.
4328 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4330 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4331 DW_EH_PE_signed if appropriate.
4333 2007-05-14 Paul Brook <paul@codesourcery.com>
4334 Daniel Jacobowitz <dan@codesourcery.com>
4336 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4338 (dwarf_decode_lines): Check for line info without a file.
4340 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4342 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4345 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4347 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4349 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4351 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4353 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4355 * gdbarch.sh (read_sp): Remove.
4356 * gdbarch.c, gdbarch.h: Regenerate.
4357 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4359 * avr-tdep.c (avr_read_sp): Remove.
4360 (avr_unwind_sp): New function.
4361 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4362 * mips-tdep.c (mips_read_sp): Remove.
4363 (mips_unwind_sp): New function.
4364 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4365 * score-tdep.c (score_read_unsigned_register): Remove.
4366 (score_read_sp): Remove.
4367 (score_unwind_sp): New function.
4368 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4370 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4372 * buildsym.c (start_subfile): Handle absolute pathnames
4373 while comparing subfile names.
4375 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4377 * hppa-hpux-tdep.c: Include "regcache.h".
4378 * hppa-linux-tdep.c: Likewise.
4379 * hppa-tdep.c: Include "gdb_stdint.h".
4380 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4382 * Makefile.in: Update dependencies.
4384 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4386 * blockframe.c: Remove obsolete comments.
4387 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4388 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4389 * hppa-tdep.h (enum hppa_regnum): Likewise.
4390 * mips-tdep.h: Likewise.
4391 * m68hc11-tdep.c: Likewise.
4393 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4395 * inferior.h (read_sp): Remove prototype.
4396 * regcache.c (read_sp): Remove.
4397 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4398 * infcall.c (call_function_by_hand): Likewise.
4399 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4401 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4403 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4405 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4406 instead of read_register and read_register_pid.
4408 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4409 argument instead of PTID. Use regcache functions instead of
4411 (ia64_linux_insert_watchpoint): Update call.
4412 (ia64_linux_stopped_data_address): Use regcache functions
4413 instead of read_register_pid and write_register_pid.
4415 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4417 * libunwind-frame.h (struct regcache): Add forward declaration.
4418 (libunwind_get_reg_special): Add REGCACHE argument.
4419 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4420 argument. Pass it to unw_init_remote_p.
4422 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4423 libunwind_get_reg_special.
4424 (ia64_access_reg): Remove "write" case.
4425 (ia64_access_fpreg): Likewise. Read from next_frame passed
4426 as callback argument instead of from current_regcache.
4427 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4428 passed as callback argument instead of from current_regcache.
4429 (ia64_access_rse_fpreg): New function.
4430 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4432 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4434 * NEWS: Mention SPU overlay support.
4436 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4438 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4440 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4442 * breakpoint.c (remove_breakpoint): Do not remove software
4443 breakpoints in unmapped overlay sections.
4445 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4447 * spu-tdep.c: Include "observer.h".
4448 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4449 (spu_overlay_data): New variable.
4450 (struct spu_overlay_table): New type.
4451 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4452 spu_overlay_new_objfile): New functions.
4453 (spu_gdbarch_init): Install spu_overlay_update.
4454 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4455 allocate spu_overlay_data objfile data.
4457 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4459 * gdbarch.sh (overlay_update): New gdbarch function.
4460 (struct obj_section): Add forward declaration.
4461 * gdbarch.c, gdbarch.h: Regenerate.
4463 * symfile.c (simple_overlay_update): Make global.
4464 (target_overlay_update): Remove variable.
4465 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4466 target_overlay_update.
4467 (overlay_load_command): Likewise.
4468 * symfile.h (struct obj_section): Add forward declaration.
4469 (simple_overlay_update): Add prototype.
4471 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4473 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4475 * observer.sh: Add "struct objfile" forward declaration.
4476 * target.h (deprecated_target_new_objfile_hook): Remove.
4477 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4478 (clear_symtab_users): Call observer_notify_new_objfile.
4479 (symbol_file_add_with_addrs_or_offsets): Likewise.
4480 * rs6000-nat.c: Include "observer.h".
4481 (vmap_ldinfo): Call observer_notify_new_objfile.
4482 (xcoff_relocate_core): Likewise.
4483 * remote.c (remote_new_objfile_chain): Remove.
4484 (remote_new_objfile): Do not call remote_new_objfile_chain.
4485 (_initialize_remote): Use observer_attach_new_objfile.
4486 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4487 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4488 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4489 * aix-thread.c: Include "observer.h".
4490 (target_new_objfile_chain): Remove.
4491 (new_objfile): Do not call target_new_objfile_chain.
4492 (_initialize_aix_thread): Use observer_attach_new_objfile.
4493 * hpux-thread.c: Include "observer.h"
4494 (target_new_objfile_chain): Remove.
4495 (hpux_thread_new_objfile): Make static. Do not call
4496 target_new_objfile_chain.
4497 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4498 * linux-thread-db.c: Include "observer.h".
4499 (target_new_objfile_chain): Remove.
4500 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4501 (_initialize_thread_db): Use observer_attach_new_objfile.
4502 * sol-thread.c: Include "observer.h".
4503 (target_new_objfile_chain): Remove.
4504 (sol_thread_new_objfile): Make static. Do not call
4505 target_new_objfile_chain.
4506 (_initialize_sol_thread): Use observer_attach_new_objfile.
4507 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4508 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4511 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4513 * gdbarch.sh (remote_translate_xfer_address): Remove.
4514 * gdbarch.h, gdbarch.c: Regenerate.
4515 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4516 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4517 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4518 call gdbarch_remote_translate_xfer_address.
4519 * frv-tdep.c (frv_gdbarch_init): Do not call
4520 set_gdbarch_remote_translate_xfer_address.
4521 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4522 (ia64_gdbarch_init): Do not install it.
4524 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4526 * NEWS: Mention change in handling the -tui option.
4528 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4530 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4533 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4535 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4536 (breakpoint_inserted_here_p): Call it.
4537 (software_breakpoint_inserted_here_p): Likewise.
4539 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4541 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4542 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4543 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4544 (inf_ptrace_store_register): Likewise.
4545 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4546 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4548 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4550 * linux-nat.c (linux_trad_target): Adapt parameter list.
4551 * linux-nat.h (linux_trad_target): Likewise.
4553 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4555 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4556 (mips_linux_cannot_store_register): Likewise.
4557 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4558 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4559 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4560 (mips64_linux_register_addr): Likewise.
4561 (mips_linux_register_u_offset): Adapt parameter list. Pass
4562 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4564 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4565 * config/mips/nm-linux.h: Delete file.
4567 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4569 * remote.c (remote_detach): Error out if remote can't detach.
4571 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4573 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4574 instruction's opcode in the "opcode" variable and declares new
4575 variable "closing_insn".
4577 2007-05-10 Chris Dearman <chris@mips.com>
4578 Maciej W. Rozycki <macro@mips.com>
4580 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4581 whitespace when setting a var_filename.
4583 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4585 * main.c (captured_main): Recognize -tui option and print an error
4586 message when the TUI is not configured.
4588 2007-05-09 Andreas Schwab <schwab@suse.de>
4590 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4591 set removed members.
4592 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4594 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4596 * gdbarch.sh (deprecated_store_struct_return): Remove.
4597 * gdbarch.c, gdbarch.h: Regenerate.
4598 * frv-tdep.c (frv_store_struct_return): Remove.
4599 (frv_gdbarch_init): Do not install it.
4601 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4603 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4604 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4605 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4607 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4609 * spu-linux-nat.c: Include "gdb_stdint.h".
4610 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4611 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4612 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4613 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4614 (spu_child_wait): Mark up string for translation.
4616 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4617 Luis Machado <luisgpm@br.ibm.com>
4619 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4620 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4621 BC_INSTRUCTION): Define.
4622 (deal_with_atomic_sequence): New function.
4623 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4624 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4625 gdbarch_software_single_step routine.
4627 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4629 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4630 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4631 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4632 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4633 spu_child_post_attach, spu_fetch_inferior_registers,
4634 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4635 memory addresses as ULONGEST, not CORE_ADDR.
4637 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4639 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4640 * gdbarch.h, gdbarch.c: Regenerate.
4642 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4643 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4644 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4646 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4647 Add REGCACHE argument. Use it instead of read/write_register.
4648 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4650 * config/pa/tm-hppah.h: Delete file.
4651 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4652 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4654 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4656 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4657 * NEWS: Mention improved C++ thunk support.
4658 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4659 * cp-abi.c (cplus_skip_trampoline): New.
4660 * cp-abi.h (cplus_skip_trampoline): New prototype.
4661 (struct cp_abi_ops): Add skip_trampoline member.
4662 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4663 (init_gnuv3_ops): Set skip_trampoline.
4665 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4667 * rs6000-tdep.c (struct frame_extra_info): Delete.
4669 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4671 * linux-thread-db.c: Update some FIXME comments.
4672 (thread_db_xfer_partial): Delete.
4673 (init_thread_db_ops): Do not set to_xfer_partial.
4675 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4677 * inftarg.c, infptrace.c: Remove files.
4678 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4679 (inftarg.o, infptrace.o): Remove rules.
4680 * gdbcore.h (register_addr): Remove prototype.
4681 * inferior.h (kill_inferior, store_inferior_registers,
4682 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4683 call_ptrace, pre_fork_inferior): Remove prototypes.
4684 * target.h (child_xfer_memory, child_pid_to_exec_file,
4685 child_core_file_to_sym_file, child_post_attach,
4686 child_post_startup_inferior, child_acknowledge_created_inferior,
4687 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4688 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4689 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4690 child_follow_fork, child_reported_exec_events_per_exec_call,
4691 child_has_exited, child_thread_alive): Remove prototypes.
4693 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4695 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4696 (sparc_store_inferior_registers): Likewise.
4697 * sparc-nat.c (fetch_inferior_registers): Rename to ...
4698 (sparc_fetch_inferior_registers): ... this.
4699 (store_inferior_registers): Rename to ...
4700 (sparc_store_inferior_registers): ... this.
4701 (sparc_target): Update callback names.
4702 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
4703 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
4705 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4707 * linux-nat.c (child_post_attach): Rename to ...
4708 (linux_child_post_attach): ... this. Make static.
4709 (child_follow_fork): Rename to ...
4710 (linux_child_follow_fork): ... this. Make static.
4711 (child_insert_fork_catchpoint): Rename to ...
4712 (linux_child_insert_fork_catchpoint): ... this. Make static.
4713 (child_insert_vfork_catchpoint): Rename to ...
4714 (linux_child_insert_vfork_catchpoint): ... this. Make static.
4715 (child_insert_exec_catchpoint): Rename to ...
4716 (linux_child_insert_exec_catchpoint): ... this. Make static.
4717 (child_pid_to_exec_file): Rename to ...
4718 (linux_child_pid_to_exec_file): ... this. Make static.
4720 (linux_handle_extended_wait): Update call.
4721 (linux_xfer_partial): Update callback routine names.
4723 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4725 * configure.host (alpha*-*-osf[12]*): Remove support.
4726 * NEWS: Mention removed configurations.
4728 * config/alpha/alpha-osf1.mh: Delete file.
4729 * config/alpha/alpha-osf2.mh: Delete file.
4730 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4732 * config/alpha/nm-osf.h: Delete file.
4733 * config/alpha/nm-osf2.h: Delete file.
4734 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4735 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4736 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4738 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4739 (register_addr, kernel_u_size): Remove.
4740 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4742 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4744 * regcache.c (regcache_invalidate): New function.
4745 (register_cached): Remove.
4746 (set_register_cached): Remove.
4747 (deprecated_registers_fetched): Remove.
4748 (registers_changed): Use regcache_invalidate instead
4749 of set_register_cached.
4750 (regcache_raw_read): Update comment.
4752 * regcache.h (regcache_invalidate): Add prototype.
4753 (register_cached): Remove.
4754 (set_register_cached): Remove.
4755 (deprecated_registers_fetched): Remove.
4757 * findvar.c (value_of_register): Do not call register_cached.
4758 * frame.c (frame_register): Likewise.
4759 * tui/tui-regs.c (tui_get_register): Likewise.
4761 * remote.c (fetch_register_using_p): Do not call set_register_cached.
4762 (process_g_packet): Likewise.
4763 (remote_fetch_registers): Likewise.
4764 * remote-sim.c (gdbsim_fetch_register): Likewise.
4765 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4766 by regcache_invalidate.
4767 (mt_pseudo_register_write): Likewise.
4768 * sh-tdep.c (sh_pseudo_register_write): Likewise.
4770 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4771 call by loop over regcache_raw_supply (..., NULL).
4773 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4775 * target.h (struct target_ops): Add REGCACHE parameter to
4776 to_prepare_to_store.
4777 (target_prepare_to_store): Likewise.
4778 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4779 (update_current_target): Adapt prepare_to_store de_fault rule.
4781 * regcache.c (regcache_raw_write): Pass regcache to
4782 target_prepare_to_store.
4784 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4785 Do not call CHILD_PREPARE_TO_STORE.
4786 * gnu-nat.c (gnu_prepare_to_store): Likewise.
4787 * procfs.c (procfs_prepare_to_store): Likewise.
4789 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4790 * go32-nat.c (go32_prepare_to_store): Likewise.
4791 * monitor.c (monitor_prepare_to_store): Likewise.
4792 * nto-procfs.c (procfs_prepare_to_store): Likewise.
4793 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4794 * remote-mips.c (mips_prepare_to_store): Likewise.
4795 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4796 * win32-nat.c (win32_prepare_to_store): Likewise.
4798 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4799 Use it instead of current_regcache.
4801 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4802 parameter. Pass it on to next target.
4803 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4805 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4807 * target.h (struct regcache): Add forward declaration.
4808 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4809 and to_store_registers target operations.
4810 (target_fetch_registers, target_store_registers): Update.
4812 * regcache.c (regcache_raw_read): Replace register_cached by
4813 regcache_valid_p. Pass regcache to target_fetch_registers.
4814 (regcache_raw_write): Pass regcache to target_store_registers.
4816 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4817 store_regs, store_wmmx_regs): Replace register_cached by
4820 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
4821 to target_fetch_registers calls.
4822 * corelow.c (core_open): Likewise.
4823 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
4824 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4825 ps_lsetfpregs): Likewise.
4826 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4827 ps_lsetfpregs): Likewise.
4828 * win32-nat.c (win32_resume): Likewise.
4829 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
4830 to target_store_registers call.
4831 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4833 * inferior.h (store_inferior_registers): Update prototype.
4834 (fetch_inferior_registers): Likewise.
4835 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
4836 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
4837 Update function pointer signatures.
4839 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
4840 use it instead of current_regcache, update calls.
4841 (aix_thread_store_registers): Likewise.
4842 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4843 (alphabsd_store_inferior_registers): Likewise.
4844 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4845 (amd64bsd_store_inferior_registers): Likewise.
4846 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
4847 (amd64_linux_store_inferior_registers): Likewise.
4848 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
4849 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
4850 fetch_wmmx_regs, store_wmmx_regs): Likewise.
4851 (arm_linux_fetch_inferior_registers): Likewise.
4852 (arm_linux_store_inferior_registers): Likewise.
4853 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4854 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
4855 (store_register, store_regs, store_fp_register, store_fp_regs,
4856 armnbsd_store_registers): Likewise.
4857 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
4858 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4859 (bsd_uthread_store_registers): Likewise.
4860 * corelow.c (get_core_registers): Likewise.
4861 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
4862 go32_store_registers): Likewise.
4863 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
4864 (hppabsd_store_registers): Likewise.
4865 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
4866 (hppa_hpux_fetch_inferior_registers): Likewise.
4867 (hppa_hpux_store_register): Likewise.
4868 (hppa_hpux_store_inferior_registers): Likewise.
4869 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4870 (hppa_linux_fetch_inferior_registers): Likewise.
4871 (hppa_linux_store_inferior_registers): Likewise.
4872 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
4873 (hpux_thread_store_registers): Likewise.
4874 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
4875 (i386bsd_store_inferior_registers): Likewise.
4876 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
4877 gnu_store_registers): Likewise.
4878 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
4879 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
4881 (i386_linux_fetch_inferior_registers): Likewise.
4882 (i386_linux_store_inferior_registers): Likewise.
4883 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4884 (ia64_linux_fetch_registers): Likewise.
4885 (ia64_linux_store_register): Likewise.
4886 (ia64_linux_store_registers): Likewise.
4887 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4888 (inf_child_store_inferior_registers): Likewise.
4889 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4890 (inf_ptrace_fetch_registers): Likewise.
4891 (inf_ptrace_store_register): Likewise.
4892 (inf_ptrace_store_registers): Likewise.
4893 * infptrace.c (fetch_register, store_register): Likewise.
4894 (fetch_inferior_registers, store_inferior_registers): Likewise.
4895 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
4896 (m32r_linux_fetch_inferior_registers): Likewise.
4897 (m32r_linux_store_inferior_registers): Likewise.
4898 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
4899 (m68kbsd_store_inferior_registers): Likewise.
4900 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
4901 store_register, old_store_inferior_registers, fetch_regs, store_regs,
4902 fetch_fpregs, store_fpregs): Likewise.
4903 (m68k_linux_fetch_inferior_registers): Likewise.
4904 (m68k_linux_store_inferior_registers): Likewise.
4905 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
4906 (m88kbsd_store_inferior_registers): Likewise.
4907 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
4908 (mips64obsd_store_inferior_registers): Likewise.
4909 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
4910 (mips64_linux_regsets_store_registers): Likewise.
4911 (mips64_linux_fetch_registers): Likewise.
4912 (mips64_linux_store_registers): Likewise.
4913 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4914 (mipsnbsd_store_inferior_registers): Likewise.
4915 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
4916 (monitor_fetch_registers, monitor_store_registers): Likewise.
4917 * nto-procfs.c (procfs_fetch_registers): Likewise.
4918 (procfs_store_registers): Likewise.
4919 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
4920 fetch_register, supply_vrregset, fetch_altivec_registers,
4921 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
4922 (store_altivec_register, store_spe_register, store_register,
4923 fill_vrregset, store_altivec_registers, store_ppc_registers,
4924 ppc_linux_store_inferior_registers): Likewise.
4925 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
4926 (ppcnbsd_store_inferior_registers): Likewise.
4927 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
4928 (ppcobsd_store_registers): Likewise.
4929 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4930 * remote.c (fetch_register_using_p, process_g_packet,
4931 fetch_registers_using_g, remote_fetch_registers): Likewise.
4932 (store_register_using_P, store_registers_using_G,
4933 remote_store_registers): Likewise.
4934 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
4935 m32r_store_register, m32r_store_register): Likewise.
4936 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
4937 * remote-sim.c (gdbsim_fetch_register): Likewise.
4938 (gdbsim_store_register): Likewise.
4939 * rs6000-nat.c (fetch_register, store_register): Likewise.
4940 (rs6000_fetch_inferior_registers): Likewise.
4941 (rs6000_store_inferior_registers): Likewise.
4942 * s390-nat.c (fetch_regs, store_regs): Likewise.
4943 (fetch_fpregs, store_fpregs): Likewise.
4944 (s390_linux_fetch_inferior_registers): Likewise.
4945 (s390_linux_store_inferior_registers): Likewise.
4946 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4947 (shnbsd_store_inferior_registers): Likewise.
4948 * sol-thread.c (sol_thread_fetch_registers): Likewise.
4949 (sol_thread_store_registers): Likewise.
4950 * sparc-nat.c (fetch_inferior_registers): Likewise.
4951 (store_inferior_registers): Likewise.
4952 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4953 (spu_store_inferior_registers): Likewise.
4954 * target.c (debug_print_register): Likewise.
4955 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
4956 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
4957 (vaxbsd_store_inferior_registers): Likewise.
4958 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
4959 (win32_fetch_inferior_registers): Likewise.
4960 (win32_store_inferior_registers): Likewise.
4962 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4964 * gdbcore.h (struct regcache): Add forward declaration.
4965 (struct core_fns): Add REGCACHE argument to core_read_registers
4967 * corelow.c (get_core_register_section): Add REGCACHE argument,
4968 use it instead of current_regcache, pass it to core_read_registers
4970 (get_core_registers): Add current_regcache as parameter to
4971 get_core_register_section calls.
4973 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
4974 use it instead of current_regcache.
4975 * armnbsd-nat.c (fetch_core_registers): Likewise.
4976 (fetch_elfcore_registers): Likewise.
4977 * core-regset.c (fetch_core_registers): Likewise.
4978 * cris-tdep.c (fetch_core_registers): Likewise.
4979 * irix5-nat.c (fetch_core_registers): Likewise.
4980 * m68klinux-nat.c (fetch_core_registers): Likewise.
4981 * mips-linux-tdep.c (fetch_core_registers): Likewise.
4982 * win32-nat.c (fetch_elf_core_registers): Likewise.
4984 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4986 * gregset.h (struct regcache): Add forward declaration.
4987 (supply_gregset): Add REGCACHE parameter, make GREGS const.
4988 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
4989 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
4990 (fill_gregset): Add REGCACHE parameter.
4991 (fill_fpregset): Likewise.
4992 (fill_fpxregset): Likewise.
4994 Update all definitions accordingly:
4995 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
4996 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
4997 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
4998 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
4999 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
5000 (supply_gregset): Add REGCACHE parameter, use it instead of
5001 current_regcache. Make GREGSETP parameter const, adapt casts.
5002 (supply_fpregset): Add REGCACHE parameter, use it instead of
5003 current_regcache. Make FPREGSETP parameter const, adapt casts.
5004 (fill_gregset): Add REGCACHE parameter, use it instead of
5006 (fill_fpregset): Likewise.
5008 Update all callers to pass in current_regcache as the new argument:
5009 * core-regset.c: Include "regcache.h".
5010 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
5011 * procfs.c: Include "regcache.h".
5012 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
5013 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
5014 (procfs_do_thread_registers): Likewise.
5015 (procfs_make_note_section): Likewise.
5016 * proc-service.c: Include "regcache.h".
5017 (ps_lgetregs): Update fill_gregset call.
5018 (ps_lsetregs): Update supply_gregset call.
5019 (ps_lgetfpregs): Update fill_fpregset call.
5020 (ps_lsetfpregs): Update supply_fpregset call.
5021 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
5022 supply_fpregset calls.
5023 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
5024 (ps_lgetregs): Update fill_gregset call.
5025 (ps_lsetregs): Update supply_gregset call.
5026 (ps_lgetfpregs): Update fill_fpregset call.
5027 (ps_lsetfpregs): Update supply_fpregset call.
5029 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
5030 fill_fpregset, and fill_fpxregset calls.
5031 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
5032 (store_regs): Update fill_gregset call.
5033 (fetch_fpregs): Update supply_fpregset call.
5034 (store_fpregs): Update fill_fpregset call.
5035 (fetch_fpxregs): Update supply_fpxregset call.
5036 (store_fpxregs): Update fill_fpxregset call.
5037 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
5038 (store_regs): Update fill_gregset call.
5039 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
5040 (store_regs): Update fill_gregset call.
5041 (fetch_fpregs): Update supply_fpregset call.
5042 (store_fpregs): Update fill_fpregset call.
5043 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5044 * s390-nat.c (fetch_regs): Update supply_gregset call.
5045 (store_regs): Update fill_gregset call.
5046 (fetch_fpregs): Update supply_fpregset call.
5047 (store_fpregs): Update fill_fpregset call.
5049 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5052 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5054 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5055 it instead of current_regcache.
5056 (parse_register_dump): Add REGCACHE parameter, pass it to
5057 supply_register callback.
5058 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5059 parse_register_dump.
5060 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5061 parse_register_dump and dumpregs callback.
5062 (monitor_wait): Pass current_regcache to parse_register_dump and
5064 (monitor_fetch_register): Pass current_regcache to
5065 monitor_supply_register.
5066 (monitor_fetch_registers): Pass current_regcache to
5068 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5069 supply_register and dumpregs callbacks.
5070 (monitor_supply_register, monitor_dump_reg_block): Update
5072 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5073 it to monitor_supply_register.
5074 * dink32-rom.c (dink32_supply_register): Likewise.
5075 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5076 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5077 instead of current_regcache.
5079 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5081 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5082 Add REGCACHE parameter. Use it instead of current_regcache.
5083 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5084 i386nto_supply_gregset and i386nto_supply_fpregset.
5085 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5086 of current_regcache.
5088 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5089 nto_supply_ helper functions.
5090 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5092 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5094 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5095 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5096 and regset_fill member function pointers.
5097 (nto_dummy_supply_regset): Adapt prototype.
5099 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5101 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5102 instead of current_regcache. Make REGS const.
5103 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5104 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5106 * shnbsd-nat.c: Include "regcache.h".
5107 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5109 (shnbsd_store_inferior_registers): Pass current_regcache to
5111 * Makefile.in (shbsd-nat.o): Update dependencies.
5113 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5115 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5116 instead of current_regcache.
5117 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5118 Make GREGSETP const, remove superfluous casts.
5119 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5120 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5122 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5123 (supply_64bit_reg): Likewise
5124 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5125 Make GREGSETP const, adapt casts accordingly.
5126 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5127 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5129 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5130 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5132 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5133 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5134 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5136 * mips-linux-nat.c: Include "regcache.h".
5137 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5138 current_regcache to mips{64}_(supply|fill)_ helper routines.
5139 (mips64_linux_regsets_fetch_registers): Likewise.
5140 (mips64_linux_regsets_store_registers): Likewise.
5142 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5143 REGCACHE argument; replace current_regcache. Make REGS const.
5144 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5145 replace current_regcache.
5146 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5147 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5148 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5149 mipsnbsd_store_inferior_registers): Pass current_regcache to
5150 mipsnbsd_(supply|fill)_... helper routines.
5152 * Makefile.in (mips-linux-nat.o): Update dependencies.
5154 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5156 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5157 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5158 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5159 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5160 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5161 * i386gnu-nat.c (store_fpregs): Likewise.
5162 * i386v4-nat.c (fill_fpregset): Likewise.
5163 * go32-nat.c (store_register, go32_store_registers): Likewise.
5165 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5167 * cris-tdep.c (supply_gregset): Rename to ...
5168 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5169 instead of current_regcache.
5170 (fetch_core_registers): Update call. Pass current_regcache.
5172 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5174 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5175 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5176 Use it instead of current_regcache.
5177 (supply_fparegset): Rename to ...
5178 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5179 Use it instead of current_regcache.
5180 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5181 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5183 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5185 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5186 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5187 use it instead of current_regcache.
5188 * alpha-tdep.h (struct regcache): Add forward declaration.
5189 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5190 alpha_fill_fp_regs): Update prototypes.
5192 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5193 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5194 * alpha-linux-nat.c: Include "regcache.h".
5195 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5196 current_regcache to alpha_supply/fill_ routines.
5198 * alphabsd-tdep.c: Include "regcache.h".
5199 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5200 pass it to alpha_supply_ routines. Make REGS const.
5201 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5202 pass it to alpha_fill_ routines.
5203 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5204 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5205 alphabsd_fill_fpreg): Update prototypes.
5207 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5208 fill_fpregset, alphabsd_fetch_inferior_registers,
5209 alphabsd_store_inferior_registers): Pass current_regcache to
5210 alphabsd_supply/fill_ routines.
5212 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5215 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5217 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5218 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5219 instead of current_regcache.
5220 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5221 REGCACHE parameter, pass it to supply_ routines.
5222 (aix_thread_fetch_registers): Pass current_regcache to
5223 fetch_regs_user_thread and fetch_regs_kernel_thread.
5225 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5226 Add REGCACHE parameter, use it instead of current_regcache.
5227 Call regcache_valid_p instead of register_cached.
5228 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5229 Also, pass REGCACHE to fill_ routines.
5230 (aix_thread_store_registers): Pass current_regcache to
5231 store_regs_user_thread and store_regs_kernel_thread.
5233 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5235 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5236 pointed to by GREGSETP.
5238 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5240 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5241 of regcache_raw_read_signed.
5242 (fill_fpregset): Use regcache_raw_collect instead of
5245 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5247 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5248 point arguments, test explicitly for use of the EABI32 ABI
5249 instead of inferring this condition from tests on register
5252 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5254 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5255 prior to allocating its location.
5257 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5259 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5260 based on mips_abi_regsize() whose result is known in advance.
5261 (mips_o64_push_dummy_call): Likewise.
5263 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5265 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5266 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5268 * mips-linux-nat.c: Include "gregset.h".
5269 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5270 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5271 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5272 fill_fpregset): Move to mips-linux-nat.c.
5274 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5276 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5278 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5279 (read_register): ... here.
5280 (deprecated_write_register_gen): Remove, inline ...
5281 (write_register): ... here.
5282 * regcache.h (deprecated_read_register_gen): Remove prototype.
5283 (deprecated_write_register_gen): Likewise.
5285 * remote-sim.c (gdbsim_store_register): Replace call to
5286 deprecated_read_register_gen with regcache_cooked_read.
5287 * target.c (debug_print_register): Replace calls to
5288 deprecated_read_register_gen and read_register with
5289 regcache_cooked_read.
5291 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5293 * hpux-thread.c (hpux_thread_store_registers): Use
5294 regcache_raw_collect, not regcache_raw_read.
5295 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5296 not regcache_raw_write.
5298 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5300 * gdbarch.sh: Remove deprecated_register_byte.
5301 * gdbarch.c, gdbarch.h: Regenerate.
5302 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5303 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5305 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5306 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5307 read-only register caches. Make REGCACHE parameter const.
5308 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5310 * mi/mi-main.c (old_regs): Remove.
5311 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5312 (register_changed_p): Reimplement to compare two register caches.
5313 (mi_cmd_data_list_changed_registers): Update caller.
5314 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5315 * mi/mi-interp.c (mi_interpreter_init): Do not call
5316 mi_setup_architecture_data.
5318 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5320 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5321 inline definition at the places the macros are used.
5322 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5324 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5326 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5328 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5329 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5330 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5331 (rs6000_aix_regset_from_core_section): New function.
5332 (rs6000_aix_init_osabi): Register it.
5333 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5334 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5335 * rs6000-nat.c (CoreRegs): Do not define type.
5336 (fetch_core_registers, rs6000_core_fns): Remove.
5337 (_initialize_core_rs6000): Do not register it. Rename to ...
5338 (_initialize_rs6000_nat): ... this.
5339 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5341 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5343 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5344 (dwarf2_read_address): Sign extend return address as required by
5345 target architecture.
5347 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5349 * solib-frv.c (lm_base): Bail out if the main executable has
5352 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5354 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5355 of FPCR register in fpregset.
5357 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5359 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5360 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5362 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5364 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5365 * rs6000-nat.c (rs6000_wait): New function.
5366 (_initialize_core_rs6000): Install it as to_wait target method.
5367 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5369 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5371 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5372 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5373 * rs6000-nat.c (super_create_inferior): New variable.
5374 (rs6000_create_inferior): Make static. Adapt argument list. Call
5375 original version of create_inferior via super_create_inferior.
5376 (_initialize_core_rs6000): Install to_create_inferior target method.
5378 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5380 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5381 (aix_thread_xfer_partial): ... this.
5382 (init_aix_thread_ops): Install to_xfer_partial instead
5383 of deprecated_xfer_memory target method.
5385 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5386 and inftarg.o, add inf-ptrace.o.
5387 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5388 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5389 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5390 (fetch_inferior_registers): Rename to ...
5391 (rs6000_fetch_inferior_registers): ... this. Make static.
5392 (store_inferior_registers): Rename to ...
5393 (rs6000_store_inferior_registers): ... this. Make static.
5394 (read_word, child_xfer_memory): Remove.
5395 (rs6000_xfer_partial): New function.
5396 (kernel_u_size): Remove.
5397 (_initialize_core_rs6000): Add inf_ptrace-based target.
5398 * Makefile.in (rs6000-nat.o): Update dependencies.
5400 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5402 * inf-ptrace.c: Include "gdb_stdint.h".
5403 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5404 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5405 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5406 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5407 (inf_ptrace_store_register): Likewise.
5408 * Makefile.in (inf-ptrace.o): Update dependencies.
5410 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5412 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5413 * configure.tgt (rs6000-*-*): Likewise.
5414 * config/rs6000/aix4.mh: Delete file.
5415 * config/rs6000/aix4.mt: Delete file.
5416 * config/rs6000/rs6000.mh: Delete file.
5417 * config/rs6000/rs6000.mt: Delete file.
5419 * config/powerpc/nm-aix.h: Delete file.
5420 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5422 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5424 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5425 Remove obsolete part of comment.
5426 (store_regs_user_thread): Use uint32_t temporaries when calling
5428 (store_regs_kernel_thread): Likewise. Add assertion to verify
5429 correct size of struct ptsprs members.
5430 (aix_thread_xfer_memory): Fix type of myaddr.
5431 (aix_thread_extra_thread_info): Fix compiler warning.
5432 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5433 (fetch_register, store_register): Adapt callers.
5435 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5437 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5439 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5441 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5443 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5444 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5445 (alpha_linux_regset_from_core_section): New function.
5446 (alpha_linux_init_abi): Install it.
5447 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5448 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5449 <sys/procfs.h>, and "gregset.h".
5450 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5451 Move from config/alpha/nm-linux.h.
5452 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5454 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5455 * alpha-nat.c: Remove #ifdef __linux__ section.
5456 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5457 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5458 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5459 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5460 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5461 (NATDEPFILES): Remove alpha-nat.o.
5462 * config/alpha/nm-linux.h: Delete file.
5463 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5464 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5465 (alpha-linux-tdep.o): Likewise.
5467 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5469 * mips-linux-nat.c: No longer include "gdbcore.h".
5470 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5471 (mips64_linux_register_addr): Likewise.
5472 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5473 mips64_linux_register_addr instead of register_addr.
5474 * mips-linux-tdep.c (mips_linux_register_addr,
5475 mips64_linux_register_addr): Move to mips-linux-nat.c.
5476 (register_addr): Remove.
5477 (register_addr_data, init_register_addr_data): Remove.
5478 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5479 (set_mips_linux_register_addr): Remove.
5480 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5481 * Makefile.in (mips-linux-nat.o): Update dependencies.
5483 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5485 * linux-nat.c (linux_register_u_offset): Remove.
5486 (linux_target_install_ops): New function.
5487 (linux_target): Use it.
5488 (linux_trad_target): New function.
5489 * linux-nat.h (linux_trad_target): Declare.
5491 * alpha-linux-nat.c: Include "gdbcore.h".
5492 (alpha_linux_register_u_offset): New function.
5493 (_initialize_alpha_linux_nat): Use linux_trad_target.
5495 * mips-linux-nat.c: Include "gdbcore.h".
5496 (mips_linux_register_u_offset): New function.
5497 (_initialize_mips_linux_nat): Use linux_trad_target.
5499 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5500 * config/arm/nm-linux.h: Delete file.
5502 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5503 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5505 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5506 * config/ia64/nm-linux.h: Delete file.
5508 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5509 * config/m32r/nm-linux.h: Delete file.
5511 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5512 * config/m68k/nm-linux.h: Delete file.
5514 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5515 * config/pa/nm-linux.h: Delete file.
5517 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5518 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5519 * config/powerpc/nm-linux.h: Delete file.
5521 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5522 * config/s390/nm-linux.h: Delete file.
5524 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5525 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5526 * config/sparc/nm-linux.h: Delete file.
5528 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5529 (mips-linux-nat.o): Likewise.
5531 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5533 * core-aout.c: Delete file.
5534 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5535 (core-aout.o): Delete rule.
5536 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5538 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5540 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5541 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5542 KERNEL_U_ADDR): Remove.
5544 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5545 (cannot_fetch_register, cannot_store_register): Remove.
5546 (fetch_register): Inline cannot_fetch_register and register_addr.
5547 (store_register): Inline cannot_store_register and register_addr.
5548 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5549 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5550 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5553 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5554 (fetch_register): Inline register_addr.
5555 (store_register): Inline register_addr.
5556 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5557 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5558 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5560 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5561 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5562 REGISTER_U_ADDR): Remove.
5564 * hppa-linux-nat.c (register_addr): Rename to ...
5565 (hppa_linux_register_addr): ... this. Make static.
5566 (fetch_register, store_register): Adapt callers.
5567 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5569 * ppc-linux-nat.c (kernel_u_size): Remove.
5570 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5572 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5573 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5575 * config/vax/nm-vax.h: Delete file.
5577 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5579 * MAINTAINERS (Write After Approval): Add myself.
5581 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5583 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5584 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5585 (m68k_linux_sigcontext_reg_offset): Fix typo.
5586 (target_is_uclinux): New.
5587 (m68k_linux_inferior_created): New.
5588 (m68k_linux_get_sigtramp_info): Check for uClinux or
5589 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5591 (_initialize_m68k_linux_tdep): Register
5592 m68k_linux_inferior_created.
5594 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5596 * win32-nat.c (win32_detach): Remove delete_command call.
5597 Resume inferior with win32_resume instead of win32_continue.
5599 2007-04-19 Jerome Guitton <guitton@adacore.com>
5601 * ser-mingw.c (fd_is_file): New function.
5602 (file_select_thread): New function.
5603 (ser_console_wait_handle): Add special handling for files.
5605 2007-04-18 Denis Pilat <denis.pilat@st.com>
5607 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5608 when missing from DW_TAG_subrange_type. Remove the handling of null
5609 return from die_type.
5611 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5613 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5614 change to rearrange some brackets.
5615 (mips_n32n64_push_dummy_call): Likewise.
5616 (mips_o32_push_dummy_call): Likewise.
5617 (mips_o64_push_dummy_call): Likewise.
5619 2007-04-18 Denis Pilat <denis.pilat@st.com>
5621 * infcmd.c (post_create_inferior): Start with a call to
5622 target_terminal_ours.
5624 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5626 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5628 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5630 (mips_o32_push_dummy_call): Likewise.
5631 (mips_o64_push_dummy_call): Likewise.
5633 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5635 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5638 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5640 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5642 (mips_o32_push_dummy_call): Likewise.
5644 2007-04-17 Andreas Schwab <schwab@suse.de>
5646 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5647 sal to be bigger than the end of the function.
5649 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5650 Nigel Stephens <nigel@mips.com>
5652 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5653 argument alignment requirements when calculating stack space
5654 required. When aligning an arg register to eight bytes
5655 boundary, align stack_offset too. Write floating-point
5656 arguments to the appropriate integer register if need go there.
5657 (mips_o64_push_dummy_call): Likewise.
5659 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5661 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5662 "sig" arguments, add "regcache" argument.
5663 * gdbarch.c, gdbarch.h: Regenerate.
5665 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5666 (handle_inferior_event): Call remove_single_step_breakpoints directly
5667 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5669 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5670 Remove handling of !insert_breakpoints_p case.
5671 * arm-tdep.c (arm_software_single_step): Likewise.
5672 * cris-tdep.c (cris_software_single_step): Likewise.
5673 * mips-tdep.c (mips_software_single_step): Likewise.
5674 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5675 * sparc-tdep.c (sparc_software_single_step): Likewise.
5676 * spu-tdep.c (spu_software_single_step): Likewise.
5678 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5679 * mips-tdep.h (mips_software_single_step): Likewise.
5680 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5681 * sparc-tdep.h (sparc_software_single_step): Likewise.
5683 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5685 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5686 when removing single-step breakpoints.
5688 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5690 * varobj.h (varobj_set_frozen): New
5691 (varobj_get_frozen): New.
5692 (varobj_update): New parameter explicit.
5693 * varobj.c (struct varobj): New fields frozen
5695 (varobj_set_frozen, varobj_get_frozen): New.
5696 (install_new_value): Don't fetch values for
5697 frozen variable object, or children thereof. Allow
5698 a frozen variable object to have non-fetched value.
5699 (varobj_update): Allow updating child variables.
5700 Don't traverse frozen children.
5701 (new_variable): Initialize the frozen field.
5702 (c_value_of_variable): Return NULL for frozen
5703 variable without any value yet.
5704 * mi/mi-cmd-var.c (varobj_update_one): New parameter
5706 (mi_cmd_var_create): Output the 'frozen' field,
5707 as soon as testsuite is adjusted to expect that field.
5708 (mi_cmd_var_set_frozen): New.
5709 (mi_cmd_var_update): Pass the 'explicit' parameter to
5711 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5712 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5714 2007-04-13 Paul Brook <paul@codesourcery.com>
5716 * target-descriptions.c (tdesc_named_type): Add ieee_single and
5718 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5720 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5722 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5723 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5724 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5725 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5726 * Makefile.in: Remove references to deleted files.
5727 * README: Do not mention deleted ROM monitor interfaces.
5728 * defs.h (enum language): Delete language_scm.
5729 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5730 (dump_subexp_body_standard): Likewise.
5731 * parse.c (operator_length_standard): Likewise.
5732 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5733 * remote-mips.c: Do not include remote-utils.h.
5734 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
5736 * value.c: Do not include scm-lang.h.
5737 (unpack_long): Delete scm_unpack call.
5738 * config/h8300/h8300.mt, config/mips/embed.mt,
5739 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5740 config/sh/embed.mt, config/sh/linux.mt: Remove references to
5742 * NEWS: Mention removed files.
5744 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5746 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5747 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5749 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5751 * NEWS: Mention removal of HP aCC support.
5753 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5755 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5756 first entry for static executables.
5757 (breakpoint_addr): Delete unused variable.
5758 (elf_locate_base): Search for _r_debug in static executables.
5759 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
5762 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5764 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5765 (bpstat_what, print_one_breakpoint, allocate_bp_location)
5766 (mention): Remove bp_through_sigtramp support.
5767 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5769 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5771 * breakpoint.c (bpstat_what): Give step-resume higher priority than
5774 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5776 * infrun.c: Doc fixes.
5777 (handle_inferior_event): Clarify debug message.
5778 (insert_step_resume_breakpoint_at_sal): Print a debug message.
5780 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5782 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5784 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5786 * config/m68k/tm-monitor.h: Delete file.
5787 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5788 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5790 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5791 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5793 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
5795 * gdbarch.sh (software_single_step): Change the return type
5796 from void to int and reformatted some comments to <= 80
5798 * gdbarch.c, gdbarch.h: Regenerated.
5799 * alpha-tdep.c (alpha_software_single_step): Likewise.
5800 * alpha-tdep.h (alpha_software_single_step): Likewise.
5801 * arm-tdep.c (arm_software_single_step): Likewise.
5802 * cris-tdep.c (cris_software_single_step): Likewise.
5803 * mips-tdep.c (mips_software_single_step): Likewise.
5804 * mips-tdep.h (mips_software_single_step): Likewise.
5805 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5806 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5807 * sparc-tdep.c (sparc_software_single_step): Likewise.
5808 * sparc-tdep.h (sparc_software_single_step): Likewise.
5809 * spu-tdep.c (spu_software_single_step): Likewise.
5810 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5811 and act accordingly.
5813 2007-04-11 Steve Ellcey <sje@cup.hp.com>
5815 * configure.ac (build_warnings): Add -Wno-char-subscripts.
5816 * configure: Regenerate.
5817 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5819 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5821 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
5823 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5825 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
5827 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
5828 distinct on the TYPE_STUB_SUPPORTED debug targets.
5829 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
5831 2007-04-11 Joel Brobecker <brobecker@adacore.com>
5833 * sparc-tdep.c (X_RS2): New macro.
5834 (sparc_skip_stack_check): New function.
5835 (sparc_analyze_prologue): Adjust PC past stack probing
5836 sequence if necessary.
5838 2007-04-10 Andreas Schwab <schwab@suse.de>
5840 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
5843 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5845 * breakpoint.c (gdb_breakpoint_query): Really return an
5847 (gdb_breakpoint): Likewise.
5848 * thread.c (gdb_list_thread_ids): Likewise.
5849 (gdb_thread_select): Likewise.
5850 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
5851 (mi_cmd_thread_list_ids): Remove bogus initialization.
5853 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5855 * Makefile.in (SFILES): Remove hpacc-abi.c.
5856 (COMMON_OBS): Remove hpacc-abi.o.
5857 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
5858 (hpacc-abi.o, hpread.o): Delete rules.
5859 * somread.c: Delete extern declarations from hpread.c.
5860 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
5861 (som_symfile_finish): Do not call hpread_symfile_finish.
5862 (som_symfile_init): Do not call hpread_symfile_init.
5863 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
5864 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
5865 * hpacc-abi.c, hpread.c: Deleted.
5867 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5869 * solib-svr4.c (enable_break): Simplify return value.
5870 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
5872 2007-04-10 Andreas Schwab <schwab@suse.de>
5874 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
5875 l_ld_size, l_next_size, l_prev_size, l_name_size.
5877 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
5878 to extract addresses from link map.
5879 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
5880 (LM_NEXT): Likewise.
5881 (LM_NAME): Likewise.
5882 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
5883 (elf_locate_base): Likewise.
5884 (open_symbol_file_object): Likewise.
5885 (svr4_fetch_objfile_link_map): Likewise.
5886 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
5887 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
5889 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
5890 (svr4_lp64_fetch_link_map_offsets): Likewise.
5892 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
5893 removed members. Set l_ld_offset to -1 if not present.
5895 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
5897 Pass stderr of program run with "target remote |"
5899 * serial.c (serial_open): Set error_fd to -1.
5900 * serial.h (struct serial): New field error_fd.
5901 (struct serial_opts): New field avail.
5902 * ser-pipe.c (pipe_open): Create another pair
5903 of sockets. Pass stderr to gdb.
5904 * ser-mingw.c (pipe_windows_open): Pass
5905 PEX_STDERR_TO_PIPE to pex_run. Initialize
5908 (_initialize_ser_windows): Hook pipe_avail.
5909 * ser-base.c (generic_readchar): Check if there's
5910 anything in stderr channel and route that to gdb_stderr.
5912 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
5914 * dbxread.c (read_ofile_symtab): Move current_objfile
5915 clearing to after end_stabs.
5917 2007-04-01 Andreas Schwab <schwab@suse.de>
5919 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
5920 gdbarch instead of current_gdbarch.
5922 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
5924 * varobj.c (varobj_create): Keep varobj value
5925 NULL when evaluating the type.
5927 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
5929 * NEWS: Mention new Windows CE support.
5931 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
5933 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
5934 the obsoletion stanza.
5935 * NEWS: Mention deleted targets.
5937 * config/sh/tm-wince.h: Remove.
5938 * config/sh/wince.mt: Remove.
5939 * config/mips/tm-wince.h: Remove.
5940 * config/mips/wince.mt: Remove.
5943 * wince-stub.c: Remove.
5944 * wince-stub.h: Remove.
5945 * Makefile.in (wince.o): Remove rule.
5946 (wince-stub.o): Likewise.
5948 * mips-tdep.c (mips_next_pc): Make static.
5949 * mips-tdep.h (mips_next_pc): Remove declaration.
5950 * arm-tdep.c (arm_pc_is_thumb): Make static.
5951 (thumb_get_next_pc): Likewise.
5952 (arm_get_next_pc): Likewise.
5953 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
5954 (arm_pc_is_thumb): Likewise.
5955 (thumb_get_next_pc): Likewise.
5956 (arm_get_next_pc): Likewise.
5958 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5960 * MAINTAINERS: Remove d10v entry.
5961 * Makefile.in (SFILES): Remove dwarfread.c.
5962 (COMMON_OBS): Remove dwarfread.o.
5963 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
5964 (remote-est.o, rom68k-rom.o): Delete.
5965 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
5966 target est, target rom68k, and DWARF 1.
5967 * configure.tgt: Mark d10v as removed.
5968 * dwarf2read.c: Doc update.
5969 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
5971 (elf_locate_sections): Do not set them.
5972 (elf_symfile_read): Do not call dwarf_build_psymtabs.
5973 * symfile.h (dwarf_build_psymtabs): Delete prototype.
5974 * config/m68k/monitor.mt (TDEPFILES): Prune.
5975 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
5976 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
5978 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5980 * doublest.c (convert_floatformat_to_doublest): Use
5981 floatformat_classify.
5982 (floatformat_is_nan): Rename to...
5983 (floatformat_classify): ...this. Return more information.
5984 * doublest.h (enum float_kind): New.
5985 (floatformat_is_nan): Replace prototype...
5986 (floatformat_classify): ...with this one.
5987 * valprint.c (print_floating): Use floatformat_classify. Handle
5990 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5992 * README: Mention ISO C library requirement.
5994 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5996 * Makefile.in (SFILES): Remove nlmread.c.
5997 (COMMON_OBS): Remove nlmread.o.
5998 (nlmread.o): Delete rule.
5999 * README: Delete reference to remote-st.c.
6000 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
6001 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
6003 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
6004 (_initialize_i386_tdep): Do not reference them.
6005 * nlmread.c: Delete file.
6006 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
6007 * target.c: Doc update.
6008 * thread.c: Delete commented include.
6009 * config/alpha/tm-alpha.h: Doc update.
6011 2007-03-30 Chris Dearman <chris@mips.com>
6013 * utils.c (string_to_core_addr): Comment typo.
6015 2007-03-30 Chris Dearman <chris@mips.com>
6017 * mips-tdep.c: Comment typo.
6019 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
6021 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
6022 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6023 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6024 * config/powerpc/nm-ppc64-linux.h: Remove file.
6025 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
6026 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
6027 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
6028 * infptrace.c (call_ptrace): Likewise.
6029 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
6030 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
6031 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
6032 (store_register): Likewise.
6034 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6036 * Makefile.in (varobj.o): Add missing dependency.
6038 2007-03-29 Michael Snyder <msnyder@access-company.com>
6040 * MAINTAINERS: Update my email address.
6042 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6044 Add support for exception handling with multiple versions of
6046 * ada-lang.c: Update general comments on how Ada exception catchpoints
6048 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6049 (__gnat_raise_nodefer_with_msg): Delete.
6050 (ada_unhandled_exception_name_addr_ftype): New type.
6051 (exception_support_info): New type.
6052 (ada_unhandled_exception_name_addr): Add forward declaration.
6053 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6054 (default_exception_support_info): New constant.
6055 (exception_support_info_fallback): Likewise.
6056 (exception_info): New global variable.
6057 (ada_exception_support_info_sniffer): New function.
6058 (ada_executable_changed_observer): Likewise.
6059 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6060 ada_unhandled_exception_name_addr.
6061 (ada_unhandled_exception_name_addr): Reimplement to match the
6062 latest Ada runtime implementation.
6063 (error_breakpoint_runtime_sym_not_found): Delete.
6064 (ada_exception_sym_name): Get the exception sym name from
6065 exception_info rather than hardcoding it.
6066 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6067 Update error handling.
6068 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6070 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6072 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6073 (remote-st.o, uw-thread.o): Delete.
6074 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6075 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6076 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6077 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6078 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6079 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6080 rs6000-*-lynxos* to an obsoletion stanza.
6081 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6082 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6083 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6084 i[34567]86-*-netware*.
6085 * NEWS: Mention deleted targets.
6087 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6088 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6089 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6090 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6091 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6092 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6093 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6094 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6095 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6096 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6097 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6098 config/rs6000/tm-rs6000ly.h: Delete files.
6100 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6102 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6103 * interps.c (clear_interpreter_hooks): Do not clear
6104 deprecated_registers_changed_hook.
6105 * regcache.c (registers_changed): Do not call it.
6106 * top.c (deprecated_registers_changed_hook): Do not define it.
6107 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6108 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6109 (tui_remove_hooks): Do not remove it.
6110 (tui_selected_frame_level_changed_hook): Check for negative level.
6111 Use get_selected_frame.
6112 (tui_registers_changed_hook): Deleted.
6114 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6116 * stabsread.c (add_undefined_type): Add extra parameter.
6117 Now handles nameless types separately.
6118 (struct nat): New type.
6119 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6120 New static variables.
6121 (read_type): Update calls to add_undefined_type.
6122 (add_undefined_type_noname): New function.
6123 (add_undefined_type_1): Renames from add_undefined_type.
6124 (cleanup_undefined_types_noname): New function.
6125 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6126 (cleanup_undefined_types): New handles nameless types separately.
6127 (_initialize_stabsread): Initialize our new static constants.
6129 2007-03-29 Denis Pilat <denis.pilat@st.com>
6131 * configure.ac: Test for signal.h.
6132 * configure, config.in: Regenerate.
6134 2007-03-29 Denis Pilat <denis.pilat@st.com>
6136 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6137 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6139 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6141 * arm-wince-tdep.c: New.
6142 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6143 (MT_CFLAGS): Delete.
6145 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6146 solib-legacy.o, solib-svr4.o, and remove wince.o.
6147 * configure.tgt (arm*-*-mingw32ce*): Add.
6148 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6149 (do_target_signal_to_host): Silence 'not used' warning.
6150 * config/arm/tm-wince.h: Remove.
6152 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6154 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6155 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6157 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6158 * config/ia64/tm-linux.h: Remove file.
6159 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6160 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6161 legacy_pc_in_sigtramp.
6162 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6163 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6164 Remove func_name argument.
6165 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6167 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6168 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6169 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6170 (HAVE_STEPPABLE_WATCHPOINT): Define.
6172 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6173 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6174 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6175 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6176 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6177 target_insert_watchpoint, target_remove_watchpoint): Remove.
6178 (FETCH_INFERIOR_REGISTERS): Define.
6179 * ia64-linux-nat.c (ia64_register_addr): Make static.
6180 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6181 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6182 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6183 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6184 (ia64_linux_stopped_by_watchpoint): Make static.
6185 (ia64_linux_can_use_hw_breakpoint): New function.
6186 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6187 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6188 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6190 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6192 * linespec.c: Include language.h.
6193 (find_methods): Add language parameter. Call
6194 lookup_symbol_in_language. Pass language down.
6195 (add_matching_methods): Likewise. Call
6196 lookup_symbol_in_language.
6197 (add_constructors): Likewise.
6198 (find_method): Pass sym_class to collect_methods.
6199 (collect_methods): Add sym_class parameter. Pass language
6201 * symtab.c (lookup_symbol): Rename to ...
6202 (lookup_symbol_in_language): ... this. Add language
6203 parameter. Use passed language instead of current_language.
6204 (lookup_symbol): New as wrapper around
6205 lookup_symbol_in_language.
6206 (lookup_symbol_aux): Add language parameter. Use passed
6207 language instead of current_language.
6208 (search_symbols): Indent.
6209 * symtab.h (enum language): Forward declare.
6210 (lookup_symbol_in_language): Declare.
6211 (lookup_symbol): Update description.
6212 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6213 * ada-lang.c (restore_language): Remove.
6214 (lookup_symbol_in_language): Remove.
6216 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6218 * breakpoint.c (bpstat_num): Add int *num parameter.
6219 * breakpoint.h (bpstat_num): Likewise.
6220 * infcmd.c (continue_command): Adjust to new bpstat_num
6222 (program_info): Likewise.
6224 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6226 * config/sh/tm-sh.h: Remove file.
6227 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6228 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6229 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6230 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6232 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6234 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6235 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6236 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6237 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6238 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6239 sequence if target_shortname is "remote".
6241 2007-03-27 Anton Blanchard <anton@samba.org>
6243 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6244 instead of wordsize when looking for the LR in a stack frame.
6246 2007-03-27 Andreas Schwab <schwab@suse.de>
6247 Daniel Jacobowitz <dan@codesourcery.com>
6249 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6250 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6251 argument. Update all callers.
6252 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6253 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6254 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6255 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6256 (dwarf2_frame_set_adjust_regnum): ...this.
6257 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6258 * rs6000-tdep.c: Include "dwarf2-frame.h".
6259 (rs6000_adjust_frame_regnum): Define.
6260 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6261 Register rs6000_adjust_frame_regnum.
6263 * Makefile.in (rs6000-tdep.o): Update dependencies.
6265 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6267 * Makefile.in: Add support for a "pdf" target.
6269 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6271 * amd64-tdep.c (amd64_init_frame_cache): New function.
6272 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6274 2007-03-26 Nigel Stephens <nigel@mips.com>
6275 Maciej W. Rozycki <macro@mips.com>
6277 * ui-out.c (ui_out_field_core_addr): Truncate address to
6278 TARGET_ADDR_BIT size before printing.
6280 2007-03-22 Nigel Stephens <nigel@mips.com>
6281 Maciej W. Rozycki <macro@mips.com>
6283 * remote-mips.c (mips_xfer_memory): Update prototype.
6285 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6287 * symfile.h: #include "symtab.h"
6289 2007-03-22 Denis Pilat <denis.pilat@st.com>
6291 * utils.c (pagination_on_command, pagination_off_command):
6292 Remove useless prototypes.
6294 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6297 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6298 instead of TYPE_NAME for object base class name.
6301 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6303 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6304 Specify frame type in calls to frame_func_unwind().
6306 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6308 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6309 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6310 (refine_prologue_limit): Delete.
6311 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6312 Assume lim_pc is set. Correct check for incomplete prologues.
6313 Do not skip clobbers of the frame pointer.
6314 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6317 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6319 * frame.c (frame_pop): Check to see whether there's a frame to
6320 which we can pop first.
6322 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6324 * MAINTAINERS (Write After Approval): Add myself.
6326 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6328 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6329 (handle_inferior_event): Remove unnecessary braces.
6330 * breakpoint.c (bpstat_what): Remove wrong comment.
6332 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6334 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6335 (spu_gdbarch_init): Install it.
6337 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6339 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6340 object types, not 0.
6342 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6344 * spu-tdep.c (spu_frame_align): New function.
6345 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6347 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6349 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6350 (spu_software_single_step): Likewise.
6351 (spu_read_pc, spu_write_pc): New functions.
6352 (spu_gdbarch_init): Install them.
6354 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6356 * cli/cli-dump.c (struct callback_data): load_offset needs to
6357 have signed long type.
6359 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6361 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6362 Revert the previous change that had some unexpected side-effects
6364 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6365 function to get the address of the calling instruction.
6367 2007-03-07 Denis Pilat <denis.pilat@st.com>
6369 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6370 get_selected_frame by deprecated_safe_get_selected_frame.
6372 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6374 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6375 "gdb_string.h". Don't include "nbsd-tdep.h".
6376 (SIZEOF_STRUCT_REG): Remove.
6377 (SHNBSD_SIZEOF_GREGS): New.
6378 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6379 (shnbsd_regset_from_core_section): New functions.
6380 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6381 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6382 shnbsd_supply_gregset, shnbsd_collect_gregset.
6383 (shnbsd_gregset): New variable.
6384 (shnbsd_init_abi): Set regset_from_core_section.
6385 (GDB_OSABI_NETBSD_CORE): New define.
6386 (shnbsd_core_osabi_sniffer): New function.
6387 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6388 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6389 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6391 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6393 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6395 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6396 length of the types referenced by the new type CV ring.
6398 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6400 * frame.c (frame_pop, frame_observer_target_changed): Call
6402 (flush_cached_frames): Rename to reinit_frame_cache and delete
6404 * frame.h (flush_cached_frames): Delete prototype and update comment.
6406 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6407 reinit_frame_cache instead of flush_cached_frames. Do not call
6408 select_frame after reinit_frame_cache.
6409 * corelow.c (core_open): Likewise.
6410 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6411 * infrun.c (prepare_to_proceed, context_switch)
6412 (handle_inferior_event): Likewise.
6413 * linux-fork.c (fork_load_infrun_state): Likewise.
6414 * ocd.c (ocd_start_remote): Likewise.
6415 * remote-e7000.c (e7000_start_remote): Likewise.
6416 * remote-mips.c (device): Likewise.
6417 * thread.c (switch_to_thread): Likewise.
6418 * tracepoint.c (finish_tfind_command): Likewise.
6419 * gdbarch.c: Regenerated.
6421 2007-02-28 Jerome Guitton <guitton@adacore.com>
6422 Joel Brobecker <brobecker@adacore.com>
6424 * gdbtypes.c (check_typedef): Do not replace stub type if
6425 the resolved type is not defined in the same objfile.
6427 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6429 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6431 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6433 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6434 symbol for Ada units when the symbol is defined using 't' rather
6435 than 'Tt' as symbol descriptor.
6437 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6439 * config/mips/tm-nbsd.h: Delete file.
6440 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6441 * config/sh/tm-nbsd.h: Delete file.
6442 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6444 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6446 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6447 unused WRONG_PARAM value since it was recently deleted.
6449 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6451 * varobj.c (varobj_update): Free temporary vectors.
6453 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6455 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6456 * config/powerpc/tm-linux.h: Delete file.
6457 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6458 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6459 (TEXT_SEGMENT_BASE): Do not redefine.
6460 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6461 from config/rs6000/tm-rs6000.h.
6462 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6463 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6464 (TEXT_SEGMENT_BASE): Remove.
6465 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6466 (rs6000_in_solib_return_trampoline): Remove.
6467 (SKIP_TRAMPOLINE_CODE): Remove.
6468 (rs6000_skip_trampoline_code): Remove.
6469 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6470 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6471 (FP0_REGNUM): Remove.
6472 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6473 (rs6000_set_host_arch_hook): Remove.
6474 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6475 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6476 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6477 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6478 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6479 * rs6000-nat.c: Include "rs6000-tdep.h".
6480 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6481 (set_host_arch): Rename to ...
6482 (rs6000_create_inferior): ... this. Make public.
6483 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6484 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6485 (rs6000_create_inferior): Remove.
6486 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6487 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6488 set_gdbarch_in_solib_return_trampoline, and
6489 set_gdbarch_skip_trampoline_code.
6490 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6491 from config/rs6000/tm-rs6000.h.
6493 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6495 * buildsym.c (record_producer): Do nothing if no producer is provided.
6497 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6499 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6500 to check changelist is non-NULL. Call error if the frontend tries
6501 to update a non-root variable.
6503 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6505 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6507 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6508 (dwarf2_frame_sniffer): Update.
6509 (dwarf2_signal_frame_this_id): New function.
6510 (dwarf2_signal_frame_unwind): Use it.
6511 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6512 * frame.c (frame_func_unwind): Add this_type argument.
6513 (get_frame_func): Update.
6514 (frame_unwind_address_in_block): Add this_type argument and check it.
6516 (get_frame_address_in_block): Update.
6517 * frame.h (enum frame_type): Move higher in the file.
6518 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6521 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6522 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6523 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6524 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6525 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6526 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6527 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6528 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6529 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6530 frame_func_unwind and frame_unwind_address_in_block to specify
6531 the frame type. Use frame_unwind_address_in_block instead of
6532 frame_pc_unwind in sniffers.
6534 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6536 * frame.c (deprecated_selected_frame): Rename to...
6537 (selected_frame): ...this. Make static.
6538 (get_selected_frame, select_frame): Update.
6539 * frame.h (deprected_select_frame): Delete.
6540 (deprecated_safe_get_selected_frame): Update comments.
6542 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6543 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6544 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6545 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6546 tui/tui.c: Replace references to deprecated_selected_frame.
6548 2007-02-27 Fred Fish <fnf@specifix.com>
6550 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6551 directly decrement the stack pointer, accumulate their operand into
6552 the stack offset, and mark the function as not being frameless.
6554 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6556 * arch-utils.c (selected_byte_order): New.
6557 * arch-utils.h (selected_byte_order): New prototype.
6558 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6560 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6562 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6563 (default_symfile_offsets): Check VMA here. Update section VMAs.
6565 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6567 * remote.c (init_remote_state): Add special handling for placeholder
6570 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6572 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6573 (filenames_h): New variable.
6574 (clean): Clean up xml-builtin.c and stamp-xml.
6575 (arm-linux-nat.o): Update.
6576 * config/arm/linux.mh (TDEP_XML): Define.
6577 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6578 (arm_linux_has_wmmx_registers): New.
6579 (GET_THREAD_ID): Fix typo.
6580 (IWMMXT_REGS_SIZE): Define.
6581 (fetch_wmmx_regs, store_wmmx_regs): New.
6582 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6583 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6584 (super_xfer_partial, arm_linux_xfer_partial): New.
6585 (_initialize_arm_linux_nat): Use them.
6586 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6587 (xml_builtin_xfer_partial): New function.
6588 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6589 * NEWS: Update mention of iWMMXt support.
6591 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6593 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6594 if there are no FPA registers.
6595 (arm_dwarf_reg_to_regnum): New function.
6596 (arm_register_type, arm_register_name): Return minimal values for
6597 unsupported registers.
6598 (arm_register_sim_regno): Handle iWMMXt registers.
6599 (arm_gdbarch_init): Record missing FPA registers if indicated by
6600 a target description. Recognize iWMMXt registers. Only register
6601 "info float" for FPA. Use ARM_NUM_REGS. Register
6602 arm_dwarf_reg_to_regnum.
6603 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6605 (struct gdbarch_tdep): Add have_fpa_registers.
6606 * features/xscale-iwmmxt.xml: Update capitalization.
6607 * regformats/arm-with-iwmmxt.dat: Regenerated.
6609 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6611 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6613 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6615 * MAINTAINERS (mep): New target.
6617 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6619 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6621 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6622 (mep-tdep.o): New rule.
6623 * configure.tgt (mep-*-*): New target.
6624 * mep-tdep.c: New file.
6625 * config/mep/mep.mt: New file.
6627 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6629 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6630 BREAKPOINT_HIT and STOP_UNKNOWN.
6632 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6634 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6636 2007-02-20 Joel Brobecker <brobecker@adacore.com>
6638 * gdb_expat.h (XMLCALL): Define if not already defined.
6640 2007-02-20 Andreas Schwab <schwab@suse.de>
6642 * Makefile.in (symfile.o): Update dependencies.
6644 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6646 * MAINTAINERS: Disable -Werror for cris simulator. Build
6647 sparc64-solaris2.10 instead of the broken sparc-elf.
6648 * solib-frv.c: Include "solib.h".
6649 * Makefile.in (solib-frv.o): Update.
6650 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6651 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6652 (xtensa_frame_this_id, xtensa_frame_prev_register)
6653 (xtensa_push_dummy_call): Use %p.
6655 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6657 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6658 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6659 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6660 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6661 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6662 (sparc-linux-tdep.o): Update.
6664 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6666 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6667 (xtensa_mask_t): Change mask field to be a separate array.
6668 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6669 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6670 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6671 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6672 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6673 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6674 (mask14, mask15): Rename to
6675 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6676 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6677 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6678 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6679 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6680 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6681 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6682 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6683 (xtensa_submask14, xtensa_submask15): New.
6684 (rmap): Follow strict aliasing rules doing static initialization.
6686 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6688 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6689 handling from here...
6690 (tdesc_register_type): ...to here.
6691 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6692 * features/arm-core.xml: Use code_ptr and data_ptr.
6694 2007-02-13 Denis Pilat <denis.pilat@st.com>
6696 * varobj.h (enum varobj_update_error): New enum.
6697 * varobj.c (struct varobj_root): Add is_valid member.
6698 (varobj_get_type): Check for invalid varobj.
6699 (varobj_get_attributes): Likewise.
6700 (variable_editable):Likewise.
6701 (varobj_update): Likewise. Use varobj_update_error.
6702 (new_root_variable): Set root varobj as valid by default.
6703 (varobj_invalidate): New function.
6704 * symfile.c (clear_symtab_users): Use varobj_invalidate.
6705 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6706 Use varobj_update_error.
6708 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
6711 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6712 Pascal language marker.
6713 * dwarf2read.c (set_cu_language): Likewise.
6715 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
6717 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6718 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6719 instead of target_terminal_init since inferior_ptid isn't set yet.
6721 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
6723 * MAINTAINERS (Write After Approval): Add myself.
6725 2007-02-09 Fred Fish <fnf@specifix.com>
6727 Based on work by Apple Computer, Inc.
6728 * event-top.c (async_request_quit): Call quit() whenever either
6729 quit_flag is set or immediate_quit is set.
6731 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6733 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6734 type to a pointer to const struct block.
6735 (ada_lookup_symbol_list): Don't cast away constness when calling
6736 remove_out_of_scope_renamings.
6738 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6740 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6741 address of 'filename'; it is always non null.
6743 2007-02-09 Joel Brobecker <brobecker@adacore.com>
6745 * exec.c (add_to_section_table): Do not discard empty sections.
6747 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6749 * features/Makefile, features/arm-with-iwmmxt.xml,
6750 features/gdbserver-regs.xsl, features/number-regs.xsl,
6751 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6752 * regformats/arm-with-iwmmxt.dat: Generate.
6753 * NEWS: Mention iWMMXt.
6755 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6757 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6758 (xml-tdesc.o): Update.
6759 * xml-support.c: Add a comment.
6760 (gdb_xml_enums_boolean): New variable.
6761 (gdb_xml_parse_attr_enum): Use strcasecmp.
6762 * xml-support.h (gdb_xml_enums_boolean): Declare.
6763 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6764 next_regnum, and current_union.
6765 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6766 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6767 (field_attributes, union_children, reg_attributes, union_attributes)
6768 (vector_attributes, feature_attributes, feature_children): New.
6769 (target_children): Make static. Add <feature>.
6770 (tdesc_elements): Make static.
6771 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6772 (struct tdesc_feature, tdesc_feature_p): New types.
6773 (struct target_desc): Add features member.
6774 (struct tdesc_arch_data, tdesc_data): New.
6775 (target_find_description): Clarify error message. Warn about
6776 ignored register descriptions.
6777 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6778 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6779 (tdesc_data_cleanup, tdesc_numbered_register)
6780 (tdesc_numbered_register_choices, tdesc_find_register)
6781 (tdesc_register_name, tdesc_register_type)
6782 (tdesc_remote_register_number, tdesc_register_reggroup_p)
6783 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6784 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6785 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6786 (tdesc_create_feature, tdesc_record_type): New.
6787 (free_target_description): Free features.
6788 (_initialize_target_descriptions): Initialize tdesc_data.
6789 * arch-utils.c (default_remote_register_number): New.
6790 * arch-utils.h (default_remote_register_number): New prototype.
6791 * target-descriptions.h (set_tdesc_pseudo_register_name)
6792 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6793 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6794 (tdesc_numbered_register, tdesc_numbered_register_choices)
6795 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6796 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6797 (tdesc_create_reg): Declare.
6798 * gdbarch.sh (remote_register_number): New entry.
6799 * gdbarch.c, gdbarch.h: Regenerate.
6800 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6801 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6803 * arm-tdep.c (arm_register_aliases): New.
6804 (arm_register_name_strings): Rename to...
6805 (arm_register_names): ...this. Make const. Delete the old version.
6806 (current_option, arm_register_byte): Delete.
6807 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
6808 (value_of_arm_user_reg): New.
6809 (arm_gdbarch_init): Verify any described registers. Call
6810 tdesc_use_registers. Don't use arm_register_byte. Create aliases
6811 for standard register names.
6812 (_initialize_arm_tdep): Do not adjust arm_register_names.
6813 * user-regs.c (struct user_reg): Add baton member.
6814 (append_user_reg, user_reg_add_builtin, user_regs_init)
6815 (user_reg_add, value_of_user_reg): Use a baton for user
6817 * std-regs.c: Update.
6818 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6819 (user_reg_add): Add baton argument.
6820 * NEWS: Mention target description register support.
6821 * features/arm-core.xml, features/arm-fpa.xml: New.
6822 * eval.c (evaluate_subexp_standard): Allow ptype $register
6823 when the program is not running.
6825 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
6827 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
6829 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6831 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
6832 info->disassembler_options to "any".
6834 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6836 * varobj.c (install_new_value): Only call value_get_print_value
6839 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6841 Reported by timeless@gmail.com:
6842 * gdb/target.c (target_flash_erase): Do not return void value.
6843 (target_flash_done): Likewise.
6844 * gdb/cli/cli-cmds.c (source_command): Likewise.
6846 2007-02-08 Fred Fish <fnf@specifix.com>
6848 Based on work by Apple Computer, Inc.
6849 * event-top.c (handle_sigint): Set quit_flag.
6850 (async_request_quit): Don't set quit_flag. Avoid calling quit()
6851 if quit_flag has already been reset.
6853 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6855 * ser-mingw.c (pipe_windows_close): Move variable initialization back
6858 2007-02-08 Fred Fish <fnf@specifix.com>
6860 * defs.h (request_quit): Remove declaration.
6861 * utils.c (request_quit): Remove definition.
6863 2007-02-08 Joel Brobecker <brobecker@gnat.com>
6864 Jan Kratochvil <jan.kratochvil@redhat.com>
6865 Daniel Jacobowitz <dan@codesourcery.com>
6867 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
6868 (skip_prologue): Allow bl->blrl used by PIC code.
6870 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6871 Daniel Jacobowitz <dan@codesourcery.com>
6873 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
6874 initialize tmp_obstack.
6875 * p-valprint.c (pascal_object_print_value_fields)
6876 (pascal_object_print_value): Likewise.
6878 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6880 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
6882 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6884 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6885 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
6887 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6889 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
6891 (tdesc_parse_xml): Cache expanded descriptions.
6893 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6895 * Makefile.in (XMLFILES): New.
6896 (COMMON_OBS): Add xml-builtin.o.
6897 (xml-builtin.c, stamp-xml): New rules.
6898 (xml-tdesc.o): Update.
6899 * features/feature_to_c.sh: New file.
6900 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
6901 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
6902 (gdb_xml_start_element): Initialize scope after possibly reallocating
6903 scopes. Move cleanup later. Handle the XInclude description
6905 (gdb_xml_end_element): Only parse the body if there is a current element.
6906 Call XML_DefaultCurrent if there is no element.
6907 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
6908 (struct xinclude_parsing_data, xinclude_start_include)
6909 (xinclude_end_include, xml_xinclude_default)
6910 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
6911 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
6912 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
6913 * xml-support.h (xml_fetch_another, xml_process_xincludes)
6914 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
6915 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
6916 XInclude directives. Use the compiled in DTD.
6917 (fetch_xml_from_file): Add baton argument. Treat it as a containing
6918 directory name. Do not warn here.
6919 (file_read_description_xml): Update call. Warn here instead. Pass
6921 (fetch_available_features_from_target): New.
6922 (target_read_description_xml): Use it.
6923 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
6925 * features/xinclude.dtd: New file.
6927 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6929 * linux-thread-db.c (check_for_thread_db): Return early if we have
6930 no libthread_db support.
6932 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6934 * mi/mi-parse.h: Include <sys/time.h>.
6936 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
6938 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
6939 instead of print_variable_value to print values.
6941 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6943 * mi/mi-main.c: Numerous formatting changes.
6944 (mi_cmd_data_write_register_values): Replace clause inadvertantly
6945 removed in my previous change.
6947 2007-02-03 Eli Zaretskii <eliz@gnu.org>
6949 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
6950 Use 1000000L instead of 1000000.
6952 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6954 Based on work by Apple Computer, Inc.
6956 * configure.ac: Test for sys/resource.h and getrusage.
6957 * configure, config.in: Regenerate.
6959 * mi/mi-main.c: Include <sys/resource.h> if present.
6960 (rusage): Declare if HAVE_GETRUSAGE.
6961 (current_command_ts, do_timings): New static variables.
6962 (timestamp, print_diff_now, print_diff, timeval_diff):
6963 New static timing functions.
6964 (mi_cmd_enable_timings): New function for new MI command.
6965 (captured_mi_execute_command, mi_execute_async_cli_command):
6966 Call timing functions.
6968 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
6971 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
6973 * mi/mi-parse.h: (mi_timestamp): New structure.
6974 (mi_parse): Add mi_timestamp* member.
6976 2007-02-02 Denis Pilat <denis.pilat@st.com>
6978 * thread.c (make_cleanup_restore_current_thread): New function.
6979 (info_threads_command): Use of make_cleanup_restore_current_thread
6980 to restore the current thread and the selected frame.
6981 (restore_selected_frame): New function.
6982 (struct current_thread_cleanup): Add frame_id field.
6983 (do_restore_current_thread_cleanup): Add restoring of the selected
6985 (make_cleanup_restore_current_thread): Likewise.
6986 (thread_apply_all_command): backup the selected frame while
6987 entering the function and restore it at exit.
6988 (thread_apply_command): Likewise.
6990 2007-02-02 Denis Pilat <denis.pilat@st.com>
6992 * MAINTAINERS (Write After Approval): Add myself to the list.
6994 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6996 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
6997 (m32r_store_register): Ditto.
6999 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
7001 * ser-mingw.c (pipe_windows_open)
7002 (pipe_windows_read, pipe_windows_write): Declare
7003 variables at the top of the function.
7005 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7007 * doublest.c (floatformat_from_length): Use the right element from
7008 gdbarch floatformats.
7009 (floatformat_from_type, extract_typed_floating)
7010 (store_typed_floating): Likewise.
7011 * doublest.h: Remove declarations for undefined floatformat arrays.
7012 * gdbarch.sh (float_format, double_format, long_double_format): Change
7014 (pformat): Update for pairs.
7015 * gdbarch.c, gdbarch.h: Regenerated.
7016 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
7017 (floatformats_ieee_double_littlebyte_bigword)
7018 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
7019 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
7020 (floatformats_vax_d): New variables.
7021 (builtin_type_ieee_single, builtin_type_ieee_double)
7022 (builtin_type_arm_ext, builtin_type_ia64_spill)
7023 (builtin_type_ia64_quad): Replace arrays with individual types.
7024 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
7025 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
7026 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
7027 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
7028 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
7029 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
7030 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
7031 unused and endian-specific types.
7032 (recursive_dump_type): Update for floatformat pairs.
7033 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
7034 (build_gdbtypes): Use build_flt.
7035 (_initialize_gdbtypes): Update set of initialized types.
7036 * gdbtypes.h: Update declarations to match gdbtypes.c.
7037 (struct main_type): Store a pointer to two floatformats.
7038 * arch-utils.c (default_float_format, default_double_format): Delete.
7039 * arch-utils.h (default_float_format, default_double_format): Delete.
7041 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7042 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7043 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7044 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7045 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7047 2007-01-29 Joel Brobecker <brobecker@adacore.com>
7049 * target.c (maintenance_print_target_stack): New function.
7050 (initialize_targets): Add new "maintenance print target-stack"
7053 2007-01-28 Mark Kettenis <kettenis@gnu.org>
7055 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7057 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7059 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7060 (struct dwarf2_loclist_baton): Likewise.
7062 2007-01-27 Eli Zaretskii <eliz@gnu.org>
7064 * cli/cli-script.c: Include breakpoint.h.
7065 (build_command_line): Require arguments only for if and while
7067 (get_command_line, execute_user_command, execute_control_command):
7068 Fix wording of warning messages.
7069 (print_command_lines): Print breakpoint commands.
7070 (execute_control_command): Call commands_from_control_command to
7071 handle the `commands' command inside a body of a flow-control
7073 (read_next_line): Recognize the `commands' command and build a
7074 command line structure for it.
7075 (recurse_read_control_structure, read_command_lines): Handle
7076 `commands' similarly to `if' and `while'.
7078 * breakpoint.c (get_number_trailer): Document the special meaning
7079 of NULL as the first argument PP.
7080 (commands_from_control_command): New function.
7082 * breakpoint.h (commands_from_control_command): Add prototype.
7084 * defs.h (commands_control): New enumerated value for enum
7085 command_control_type.
7087 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7089 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7090 (ada_exception_sal): Update accordingly.
7092 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7094 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7095 * NEWS: Describe CHAR array vs. string identifcation rules.
7097 2007-01-25 Paul Brook <paul@codesourcery.com>
7099 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7101 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7103 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7104 expression is empty, bother to return the 'optimized out' value we
7105 construct. (Thanks to Carl Burch.)
7107 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7109 * varobj.c (c_value_of_root, c_value_of_child)
7110 (cplus_describe_child): Don't call release_value.
7112 2007-01-24 Thiemo Seufer <ths@mips.com>
7114 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7117 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7119 Refactor getting children name, value and type access
7121 * varobj.c (get_type_deref): Remove.
7122 (adjust_value_for_child_access): New.
7123 (c_number_of_children): Use the above.
7124 (c_describe_child): Likewise.
7125 (enum accessibility): New.
7126 (match_accessibility): New function.
7127 (cplus_describe_child): New function.
7128 (cplus_name_of_child, cplus_value_of_child)
7129 (cplus_type_of_child): Reimplement in terms
7130 of cplus_describe_child.
7131 (cplus_number_of_children): Use
7132 adjust_value_for_child_access.
7134 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7136 Fix computation of the 'editable' attribute and
7137 value changeability for for references.
7138 * varobj.c (get_value_type): New function.
7139 (c_variable_editable): Use get_value_type.
7140 (varobj_value_is_changeable): Likewise.
7142 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7144 * source.c (find_and_open_source): Try rewriting the source
7145 path inside filename if dirname is NULL.
7147 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7149 * dwarf2read.c (add_partial_symbol): Create an extra partial
7150 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7151 (new_symbol): Likewise for symbols.
7153 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7155 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7157 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7159 * value.c (value_primitive_field): Copy the full 'location'
7160 contents, instead of assuming that copying ADDRESS will
7161 bring over everything in the union. Remove obsolete comment.
7163 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7165 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7166 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7167 (m32c_m16c_pointer_to_address): Separate code from declarations.
7169 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7171 * target.c (update_current_target): Correct typo.
7173 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7175 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7178 2007-01-11 Andrew Cagney <cagney@redhat.com>
7179 Daniel Jacobowitz <dan@codesourcery.com>
7180 Jan Kratochvil <jan.kratochvil@redhat.com>
7182 * dwarf2-frame.c (execute_cfa_program): New support of
7183 `DW_CFA_GNU_negative_offset_extended'.
7185 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7187 * NEWS: Mention flash support for "load" and new remote packets.
7189 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7191 * breakpoint.c (delete_command): Skip redundant loop iterations.
7193 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7195 * gdbarch.sh (register_type): Update comment.
7196 * gdbarch.h: Regenerated.
7197 * arch-utils.c (generic_register_size): Call register_type.
7198 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7199 * m32c-tdep.c (check_for_saved): Likewise.
7200 * mips-tdep.c (mips_print_register, print_gp_register_row)
7201 (mips_print_registers_info): Likewise.
7202 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7204 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7205 (sh64_do_register, sh64_print_register)
7206 (sh64_media_print_registers_info): Likewise.
7207 * tui/tui-regs.c (tui_register_format): Likewise.
7209 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7211 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7213 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7214 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7215 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7216 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7217 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7218 (make_symbol_completion_list): Likewise.
7220 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7221 Daniel Jacobowitz <dan@codesourcery.com>
7223 * buildsym.c (end_symtab): Use preallocated symtab if available.
7224 Fill in SYMBOL_SYMTAB.
7225 * buildsym.h (struct subfile): Add symtab member.
7226 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7227 (struct file_entry): Add symtab.
7228 (free_cu_line_header): New function.
7229 (read_file_scope): Use it. Save line_header in the cu. Process
7231 (add_file_name): Initialize new symtab member.
7232 (dwarf_decode_lines): Create symtabs for included files.
7233 (new_symbol): Set SYMBOL_SYMTAB.
7234 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7235 (search_symbols): Likewise.
7236 * symtab.h (struct symbol): Add symtab member.
7237 (SYMBOL_SYMTAB): Define.
7239 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7241 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7243 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7245 * arch-utils.c (show_endian): Correct reversed condition.
7247 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7249 * MAINTAINERS (Write After Approval): Add myself.
7251 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7252 Vladimir Prus <vladimir@codesourcery.com>
7254 Fix 'selected frame' varobjs.
7255 * varobj.c (struct varobj): Remove the error field.
7256 (varobj_set_value): Don't check var->error.
7257 (install_new_value): Don't set var->error.
7258 (varobj_update): Always pass the new value
7259 of the root via install_new_value.
7260 (create_child): Don't set error field.
7261 (new_variable): Likewise.
7262 (c_value_of_root): Always reevaluate the value
7263 of selected frame varobjs in the selected frame.
7264 Don't call reinit_frame_cache.
7266 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7268 * source.c (_initialize_source): Improve the help text of
7269 the substitute-path commands.
7271 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7273 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7274 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7275 (frv_skip_prologue): Remove prototypes.
7276 (frv_adjust_breakpoint_address): Renamed from
7277 frv_gdbarch_adjust_breakpoint_address.
7278 (frv_gdbarch_init): Adjust.
7280 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7282 * gdbarch.sh (deprecated_extract_return_value)
7283 (deprecated_store_return_value): Remove.
7284 (extract_return_value, store_return_value): Remove default values.
7285 * gdbarch.c, gdbarch.h: Regenerate.
7286 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7287 (legacy_store_return_value): Remove.
7288 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7291 * mi/mi-main.c: Remove obsolete comment.
7293 * regcache.c, regcache.h (deprecated_register_bytes)
7294 (deprecated_read_register_bytes)
7295 (deprecated_write_register_bytes): Remove.
7297 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7298 Don't forget to move destination pointer.
7300 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7302 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7304 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7306 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7307 past entry function with recent newlib.
7309 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7311 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7312 introduction. Specify -var-update more exactly.
7314 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7316 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7318 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7320 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7321 the Global Maintainers' invitation to be a global maintainer.
7323 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7325 * infrun.c (singlestep_pc): New variable.
7326 (resume): Set singlestep_pc.
7327 (context_switch): Add a debugging message. Flush the frame cache.
7328 (handle_inferior_event): Add debugging messages. Handle thread
7329 hops when a software single step has completed. Let context_switch
7330 handle flushing the frame cache.
7332 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7334 * NEWS: Mention target descriptions, "set tdesc filename",
7335 "unset tdesc filename", "show tdesc filename", and
7336 qXfer:features:read.
7337 * arch-utils.c (choose_architecture_for_target): New function.
7338 (gdbarch_info_fill): Call it.
7339 * target-descriptions.c (struct property): Make members non-const.
7340 (struct target_desc): Add arch member.
7341 (target_description_filename): New variable.
7342 (target_find_description): Try via XML first.
7343 (tdesc_architecture): New.
7344 (free_target_description, make_cleanup_free_target_description): New.
7345 (set_tdesc_property): Call xstrdup.
7346 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7347 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7348 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7349 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7350 * target-descriptions.h (tdesc_architecture)
7351 (make_cleanup_free_target_description, set_tdesc_architecture): New
7353 * Makefile.in (SFILES): Add xml-tdesc.c.
7354 (COMMON_OBS): Add xml-tdesc.o.
7355 (target-descriptions.o): Update.
7356 (xml-tdesc.o): New rule.
7357 * xml-tdesc.c, xml-tdesc.h: New files.
7358 * remote.c (PACKET_qXfer_features): New enum.
7359 (remote_protocol_features): Add qXfer:features:read.
7360 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7361 (_initialize_remote): Register qXfer:features:read.
7362 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7363 * features/gdb-target.dtd: New file.
7365 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7367 * copyright.sh: Clarify error.
7369 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7371 * symtab.c (matching_bfd_sections): Fix VMA matching for
7374 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7376 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7379 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7381 Updated copyright notices for most files.
7383 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7385 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7387 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7389 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7391 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7393 * configure, config.in: Regenerate.
7394 * defs.h (debug_file_directory): Declare.
7395 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7396 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7397 relocate it if DEBUGDIR_RELOCATABLE.
7398 * symfile.c (debug_file_directory): Make non-static.
7399 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7400 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7401 (_initialize_symfile): Don't initialize debug_file_directory here.
7403 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7405 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7408 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7410 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7411 frame_unwind_register to recurse.
7412 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7413 (alpha_heuristic_frame_prev_register): Likewise.
7414 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7415 * m32c-tdep.c (m32c_prev_register): Likewise.
7416 * frame.c (frame_register_unwind_location): Remove FIXME.
7418 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7419 Eli Zaretskii <eliz@gnu.org>
7421 * copyright.sh: New file.
7423 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7425 * configure.ac: Check for XML_StopParser.
7426 * xml-support.c (gdb_xml_body_text): Check for an error.
7427 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7428 (gdb_xml_end_element_wrapper): Likewise.
7429 * config.in, configure: Regenerated.
7431 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7433 * varobj.c (install_new_value): Always update print_value.
7434 (value_get_print_value): Immediately return NULL for missing
7437 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7439 * configure.ac: Tighten pattern for extracting value of
7440 DEPRECATED_TM_FILE from the target makefile fragment.
7441 * configure: Regenerated.
7443 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7445 * linux-nat.c (struct simple_pid_list): Add status.
7446 (add_to_pid_list): Record the PID's status.
7447 (linux_record_stopped_pid): Likewise. Make static.
7448 (pull_pid_from_list): Return the saved status.
7449 (linux_nat_handle_extended): Deleted.
7450 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7451 Make static. Handle non-SIGSTOP for a new thread's first signal.
7452 (flush_callback): Handle unexpected pending signals.
7453 (linux_nat_wait): Update calls to changed functions.
7454 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7455 Remove prototypes for newly static functions.
7457 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7459 * gdbarch.sh (value_from_register): New gdbarch function.
7460 * gdbarch.c, gdbarch.h: Regenerate.
7461 * findvar.c (default_value_from_register): New function.
7462 (value_from_register): Use gdbarch_value_from_register.
7463 * value.h (default_value_from_register): Declare.
7464 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7465 spu_value_to_register): Remove.
7466 (spu_value_from_register): New function.
7467 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7468 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7469 Call set_gdbarch_value_from_register.
7470 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7471 s390_value_to_register): Remove.
7472 (s390_value_from_register): New function.
7473 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7474 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7475 Call set_gdbarch_value_from_register.
7477 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7479 * NEWS: Add "set sysroot" and "show sysroot".
7480 * solib.c (solib_absolute_prefix): Delete. Replace
7481 all uses with gdb_sysroot.
7482 (_initialize_solib): Add "set sysroot" and "show sysroot".
7483 Make "solib-absolute-prefix" an alias to it.
7485 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7487 * frame.c (get_frame_register_bytes): New function.
7488 (put_frame_register_bytes): Likewise.
7489 * frame.h (get_frame_register_bytes): Declare.
7490 (put_frame_register_bytes): Likewise.
7491 * findvar.c (value_from_register): Always construct lval_register
7492 values. Use get_frame_register_bytes.
7493 * valops.c (value_assign): Use get_frame_register_bytes and
7494 put_frame_register_bytes.
7496 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7498 * MAINTAINERS: Update Stan Shebs' email address.
7500 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7502 * ada-lang.c (is_known_support_routine): Improve the implementation.
7504 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7506 * ada-lang.c: Add include of source.h.
7507 (is_known_support_routine): Improve the check verifying that the file
7508 associated to this frame exists.
7509 * Makefile.in (ada-lang.o): Add dependency on source.h.
7511 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7513 * ax-general.c (ax_const_l): Select proper opcode for the given
7516 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7518 * varobj.c (c_value_of_root): Don't select frame if variable
7519 object is out of scope.
7521 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7523 * varobj.c (struct varobj): New member print_value.
7524 (install_new_value): Compare last printed value with current one
7525 instead of contents.
7526 (new_variable): Initialize var->print_value to NULL.
7527 (free_variable): Free var->print_value.
7528 (value_get_print_value): New function derived from
7529 c_value_of_variable.
7530 (c_value_of_variable): Use value_get_print_value.
7532 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7534 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7536 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7538 * NEWS: Add entries for new catch commands.
7540 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7542 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7543 (add_partial_symbol): Correct identification of external references.
7544 (process_structure_scope): Likewise.
7545 (read_partial_die): Handle DW_AT_byte_size attribute.
7547 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7549 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7551 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7553 * varobj.c (get_type_deref): Fix variable objects for references to
7556 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7558 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7561 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7563 * memory-map.c (struct_memory_map_parsing_data): Remove most
7564 members. Make property_name an array.
7565 (free_memory_map_parsing_data, memory_map_start_element)
7566 (memory_map_end_element, memory_map_character_data): Delete.
7567 (memory_map_start_memory, memory_map_end_memory)
7568 (memory_map_start_property, memory_map_end_property): New functions.
7569 (property_attributes, memory_children, memory_type_enum)
7570 (memory_attributes, memory_map_children, memory_map_elements): New.
7571 (parse_memory_map): Rewrite.
7572 * xml-support.c (debug_xml): New.
7573 (xml_get_required_attribute, xml_get_integer_attribute)
7574 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7576 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7577 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7578 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7579 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7580 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7581 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7582 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7584 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7585 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7586 (enum gdb_xml_element_flag, struct gdb_xml_element)
7587 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7588 (struct gdb_xml_enum): New.
7589 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7590 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7591 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7592 (xml_get_required_attribute, xml_get_integer_attribute)
7593 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7594 * Makefile.in (xml_support_h, xml-support.o): Update.
7596 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7598 * Makefile.in (eval.o): Update dependencies.
7599 * eval.c: Include "ui-out.h" and "exceptions.h".
7600 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7601 Use value_zero if an error occurs when avoiding side effects.
7602 * varobj.c (c_value_of_root): Initialize new_val.
7604 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7606 * varobj.c (varobj_list_children): Stop if the number of children is
7608 (c_number_of_children):
7610 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7612 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7613 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7614 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7615 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7616 sizeof, instead of hardcoded constants.
7618 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7620 * CONTRIBUTE: Use sourceware.org.
7622 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7624 * buildsym.c (start_subfile): Handle producer.
7625 (record_producer): New function.
7626 * buildsym.h (struct subfile): Include producer.
7627 (record_producer): New prototype.
7628 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7629 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7630 armcc_cfa_offsets_reversed.
7631 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7632 (dwarf2_frame_find_quirks): New function.
7633 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7634 (decode_frame_entry_1): Record the CIE version. Record the
7635 augmentation. Skip armcc augmentations.
7636 * dwarf2read.c (read_file_scope): Save the producer.
7637 * symtab.h (struct symtab): Rename unused version member to
7640 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7642 * configure.ac (build_warnings): Use -Wall and
7643 -Wdeclaration-after-statement.
7644 * configure: Regenerated.
7646 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7648 Simplify access to variours properties of child
7649 variable objects in C.
7650 * varobj.c (value_struct_element_index): New function.
7651 (c_describe_child): New function.
7652 (c_name_of_child, c_value_of_child)
7653 (c_type_of_child): Rewrite to use c_describe_child.
7655 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7658 * varobj.c: Include "vec.h".
7659 (varobj_p): New typedef, declare vector of those.
7660 (struct varobj): Use vector for the 'children' member.
7661 (child_exists): Remove.
7662 (save_child_in_parent): Remove.
7663 (remove_child_from_parent): Remove.
7664 (struct varobj_child): Remove.
7665 (struct vstack): Remove.
7666 (vpush, vpop): Remove.
7667 (varobj_list_children): Adjust to work work vector.
7668 (varobj_update): Likewise. Use vectors for
7669 working stack and result.
7670 (delete_variable_1): Likewise.
7671 * Makefile.in (varobj.o): Update dependencies.
7673 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7675 Port from Apple's version.
7677 * varobj.c (type_changeable): Rename to...
7678 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7679 (is_root_p): New function. Use it everywhere.
7681 2007-01-04 Jim Blandy <jimb@codesourcery.com>
7683 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7686 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7688 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7690 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7692 * hpread.c (hpread_type_lookup): Fix compilation failure.
7694 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7696 * NEWS: New port to S+core.
7697 * MAINTAINERS (Write After Approval, Responsible Maintainers):
7700 * Makefile.in: Add dependencies for S+core files.
7701 * configure.tgt (score*, score-*-*): Add S+core target.
7702 * config/score/embed.mt: New file.
7703 * score-tdep.c: New file.
7704 * score-tdep.h: New file.
7706 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7708 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7709 the appropriate type rather than a bogus void type.
7711 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7713 * ada-lang.h (ada_find_printable_frame): Remove.
7714 (ada_exception_catchpoint_p, ada_decode_exception_location)
7715 (ada_decode_assert_location): Add declaration.
7716 * ada-lang.c: Add include of annotate.h and valprint.h.
7717 (exception_catchpoint_kind): New enum.
7718 (function_name_from_pc, is_known_support_routine)
7719 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7720 (ada_exception_name_addr_1, ada_exception_name_addr)
7721 (print_it_exception, print_one_exception, print_mention_exception)
7722 (print_it_catch_exception, print_one_catch_exception)
7723 (print_mention_catch_exception, catch_exception_breakpoint_ops)
7724 (print_it_catch_exception_unhandled)
7725 (print_one_catch_exception_unhandled)
7726 (print_mention_catch_exception_unhandled, print_it_catch_assert)
7727 (print_one_catch_assert, print_mention_catch_assert)
7728 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7729 (ada_get_next_arg, catch_ada_exception_command_split)
7730 (ada_exception_sym_name, ada_exception_sym_name)
7731 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7732 (ada_parse_catchpoint_condition, ada_exception_sal)
7733 (ada_decode_exception_location)
7734 (ada_decode_assert_location): New function.
7735 (catch_exception_unhandled_breakpoint_ops): New global variable.
7736 (catch_assert_breakpoint_ops): New global variable.
7737 * breakpoint.c: Add include of ada-lang.h.
7738 (print_one_breakpoint): Do not print the condition for Ada
7739 exception catchpoints.
7740 (create_ada_exception_breakpoint): New function.
7741 (catch_ada_exception_command, catch_assert_command): New function.
7742 (catch_command_1): Add support for the new "catch exception" and
7743 "catch assert" commands.
7744 (_initialize_breakpoint): Add help description for the new catch
7746 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7748 (breakpoint.o): Add dependency on ada-lang.h.
7750 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
7752 * coffread.c (cs_to_section): If bfd_section is found, always
7753 return its section index.
7754 (coff_symtab_read): Determine the minimal_symbol_type using the
7757 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7758 Daniel Jacobowitz <dan@codesourcery.com>
7760 * Makefile.in (top.o): Update.
7761 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7762 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7763 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7765 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7767 2007-01-03 Mark Kettenis <kettenis@gnu.org>
7769 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7770 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7772 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7774 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7775 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7776 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7777 greater than or equal to zero.
7778 * m2-typeprint.c (m2_array): Likewise.
7779 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7780 * gdbtypes.c (copy_type_recursive): Correct == typo.
7781 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7782 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7784 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7785 (default_macro_scope): Remove unused variable.
7786 * prologue-value.h (pv_area_find_reg): Don't name an argument
7788 * remote-fileio.c (remote_fio_func_map): Add missing braces.
7789 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7791 (cleanup_sigint_signal_handler): Remove casts.
7792 * valprint.c (val_print): Use a volatile local for the modified
7794 * varobj.c (languages): Remove extra array dimension.
7795 (varobj_create): Correct access to languages array.
7796 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7798 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7799 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7800 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7801 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7802 (mi_cmd_data_write_memory): Likewise.
7803 * signals/signals.c (target_signal_to_string): Cast to int before
7805 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7808 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7810 * NEWS: Mention pointer to member improvements.
7811 * Makefile.in (gnu-v3-abi.o): Delete special rule.
7812 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7813 * ada-valprint.c (ada_print_scalar): Update for new type codes.
7814 * c-typeprint.c (c_print_type): Update for new type codes.
7815 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7816 (c_type_print_base): Likewise.
7817 (c_type_print_args): Rewrite.
7818 * c-valprint.c (c_val_print): Update for new type codes. Remove
7819 support for references to members. Treat methods like functions.
7820 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
7821 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
7822 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
7823 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
7824 (struct cp_abi_ops): Add corresponding members.
7825 * cp-valprint.c (cp_print_class_method): Delete.
7826 (cp_find_class_member): New function.
7827 (cp_print_class_member): Use it. Simplify support for bogus
7829 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
7830 lookup_methodptr_type.
7831 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
7832 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
7833 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
7835 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
7836 references returned by user defined operators.
7837 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
7838 (f_type_print_varspec_suffix): Remove support for member pointers.
7839 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
7841 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
7842 (lookup_methodptr_type): New.
7843 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
7844 (recursive_dump_type): Update for new types.
7845 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
7846 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
7847 (lookup_memberptr_type, lookup_methodptr_type)
7848 (smash_to_memberptr_type): New prototypes.
7849 (smash_to_method_type): Formatting fix.
7850 (lookup_member_type, smash_to_member_type): Delete prototypes.
7851 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
7852 Do not rely on debug information for the vptr or the method's
7853 enclosing type. Handle function descriptors for IA64.
7854 (gnuv3_virtual_fn_field): Rewrite using the new functions.
7855 (gnuv3_find_method_in, gnuv3_print_method_ptr)
7856 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
7857 (gnuv3_method_ptr_to_value): New.
7858 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
7859 * hpread.c (hpread_type_lookup): Update for new types.
7860 * infcall.c (value_arg_coerce): Likewise.
7861 * m2-typeprint.c (m2_print_type): Remove explicit support
7862 for member pointers.
7863 * m2-valprint.c (m2_val_print): Likewise.
7864 * p-typeprint.c (pascal_type_print_varspec_prefix)
7865 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
7866 * p-valprint.c (pascal_val_print): Likewise.
7867 (pascal_object_print_class_method, pascal_object_print_class_member):
7869 * p-lang.h (pascal_object_print_class_method)
7870 (pascal_object_print_class_member): Delete prototypes.
7871 * stabsread.c (read_type): Update for new types.
7872 * typeprint.c (print_type_scalar): Likewise.
7873 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
7874 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
7875 argument. Construct a pointer to member if the address of a
7876 function or data member is requested.
7877 (value_cast_pointers): Don't modify the input value.
7878 (value_cast): Adjust pointer to member handling for new types.
7879 Allow null pointer to member constants. Don't modify the input
7881 (value_ind): Remove pointer to member check. Handle function
7882 descriptors for function pointers.
7883 (value_struct_elt, value_find_oload_method_list, check_field):
7884 Remove pointer to member checks.
7885 * value.c (unpack_long): Allow pointers to data members.
7886 (value_from_longest): Allow member pointers.
7887 * value.h (value_aggregate_elt): Add want_address.
7888 * varobj.c (c_variable_editable): Remove check for members.
7889 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
7890 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
7892 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
7893 * c-lang.h (cp_print_class_method): Delete prototype.
7894 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
7895 * mips-tdep.c (mips_gdbarch_init): Likewise.
7896 * gdbarch.c, gdbarch.h: Regenerated.
7898 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7900 * rs6000-tdep.c (rs6000_use_struct_convention)
7901 (rs6000_extract_return_value, rs6000_store_return_value)
7902 (rs6000_extract_struct_value_address): Remove.
7903 (rs6000_return_value): New function.
7904 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
7905 store_return_value, deprecated_extract_struct_value_address and
7906 deprecated_use_struct_convention. Use rs6000_return_value
7909 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
7911 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
7912 -display-disable, -display-enable, -display-insert and
7915 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7917 * breakpoint.c (remove_breakpoint): Remove dead code.
7919 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
7921 * varobj.c: Include block.h.
7922 (c_value_of_root): Check scope within nested statements.
7924 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7926 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
7927 regcache_cooked_write_signed instead of
7928 deprecated_write_register_bytes.
7930 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7932 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
7934 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7936 Followed the Start of New Year Procedure:
7937 * ChangeLog-2006: New file, containing all the entries for 2006.
7938 * ChangeLog: Removed all 2006 entries, and changed the reference
7939 to the previous ChangeLog to point to ChangeLog 2006.
7940 * top.c (print_gdb_version): Update copyright year.
7942 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7944 * Makefile.in (remote-sds.o): Remove.
7945 * remote-sds.c: Delete.
7947 For older changes see ChangeLog-2006.
7953 version-control: never