1 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
3 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
5 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
6 not set DEPRECATED_TM_FILE.
7 * config/arm/tm-arm.h: Delete file.
9 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
11 * MAINTAINERS (Write After Approval): Add self.
13 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
15 * buildsym.c (record_line): Remove empty lines followed by
16 end-of-sequence markers.
18 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
20 * configure.tgt: Recognize fido-*-elf.
22 2007-10-10 Joel Brobecker <brobecker@adacore.com>
26 2007-10-10 Markus Deuling <deuling@de.ibm.com>
28 * stack.c (print_frame_args, frame_info, return_command): Use
29 get_regcache_arch or get_frame_arch to get at the current architecture
30 by regcache or by frame, respectively.
32 2007-10-10 Markus Deuling <deuling@de.ibm.com>
34 * rs6000-nat.c (fetch_register, store_register)
35 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
36 get_regcache_arch to get at the current architecture by regcache.
38 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
39 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
40 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
41 current_gdbarch by gdbarch.
42 (rs6000_skip_trampoline_code, rs6000_register_to_value)
43 (rs6000_value_to_register): Use get_frame_arch to get at the current
44 architecture by frame_info.
46 2007-10-10 Markus Deuling <deuling@de.ibm.com>
48 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
49 get_regcache_arch to get at the current architecture by regcache.
51 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
52 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
53 get_regcache_arch to get at the current architecture by regcache.
55 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
56 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
57 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
58 current architecture by regcache.
60 2007-10-10 Markus Deuling <deuling@de.ibm.com>
62 * remote-mips.c (mips_wait, mips_fetch_registers)
63 (mips_store_registers): Use get_regcache_arch to get at the
64 current architecture by regcache.
66 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
67 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
68 get at the current architecture by regcache.
69 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
70 architecture by frame_info.
72 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
73 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
74 the current architecture by regcache.
76 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
77 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
78 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
79 current architecture by frame_info.
80 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
81 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
82 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
83 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
84 get at the current architecture by regcache.
86 * mips-linux-nat.c (mips_linux_register_addr)
87 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
88 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
89 (mips64_linux_regsets_fetch_registers)
90 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
91 the current architecture by regcache.
93 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
94 get at the current architecture by frame_info.
96 2007-10-10 Markus Deuling <deuling@de.ibm.com>
98 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
99 current architecture by regcache.
100 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
101 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
102 (mips_stub_frame_cache, mips_read_fp_register_single)
103 (mips_read_fp_register_double, mips_print_fp_register)
104 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
105 at the current architecture by frame_info.
106 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
107 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
108 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
109 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
110 (mips_o32_push_dummy_call, mips_o32_return_value)
111 (mips_o64_push_dummy_call, mips_o64_return_value)
112 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
115 2007-10-10 Markus Deuling <deuling@de.ibm.com>
117 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
118 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
119 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
120 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
121 (xtensa_register_write_masked, xtensa_register_read_masked)
122 (xtensa_supply_gregset, xtensa_store_return_value)
123 (xtensa_extract_return_value): Use get_regcache_arch to get at the
124 current architecture by regcache.
125 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
126 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
127 architecture by frame_info.
129 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
131 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
132 (thumb_analyze_prologue): Move pv_area_store_would_trash call
133 out of loop. Do not set cache->frameoffset.
134 (arm_scan_prologue): Use prologue-value mechanism. Do not set
135 frameoffset. Simplify framesize.
136 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
138 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
140 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
142 * target.c (update_current_target): Call setup_target_debug.
143 (push_target): Do not call it here.
145 2007-10-09 Michael Snyder <msnyder@specifix.com>
147 * MAINTAINERS: Update my email address.
149 2007-10-09 Markus Deuling <deuling@de.ibm.com>
151 * xtensa-tdep.c: Replace following current-gdbarch based macros by
153 (xtensa_pseudo_register_read)
154 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
155 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
156 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
157 (xtensa_pseudo_register_read)
158 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
159 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
160 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
161 (xtensa_frame_prev_register): NUM_AREGS.
162 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
163 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
164 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
165 (xtensa_supply_gregset, xtensa_frame_cache)
166 (xtensa_frame_prev_register): WS_REGNUM.
167 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
168 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
169 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
170 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
171 (xtensa_register_reggroup_p): REGMAP.
172 (call0_track_op): LITBASE_REGNUM.
173 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
174 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
175 (xtensa_frame_prev_register, AREG_NUMBER)
176 (xtensa_register_type): AR_BASE.
177 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
178 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
179 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
180 (xtensa_frame_cache, xtensa_frame_prev_register)
181 (xtensa_extract_return_value, xtensa_store_return_value)
182 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
183 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
184 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
185 (xtensa_frame_prev_register, xtensa_push_dummy_call)
186 (call0_frame_cache): A1_REGNUM.
187 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
188 (xtensa_push_dummy_call): A4_REGNUM.
189 (ARGS_FIRST_REG): A6_REGNUM.
190 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
191 (xtensa_frame_prev_register): A15_REGNUM.
192 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
193 them in the appropriate source file:
194 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
195 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
196 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
197 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
198 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
199 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
200 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
201 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
202 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
203 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
204 A13_REGNUM, A14_REGNUM, A15_REGNUM.
206 2007-10-09 Markus Deuling <deuling@de.ibm.com>
208 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
209 the current architecture by frame_info.
210 (h8300_frame_prev_register
211 (h8300_print_register): Replace current_gdbarch by gdbarch.
212 (h8300_print_registers_info, h8300_register_type)
213 (h8300_register_type): Likewise.
215 2007-10-09 Markus Deuling <deuling@de.ibm.com>
217 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
218 the current architecture by regcache.
219 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
220 (i386_linux_fetch_inferior_registers)
221 (i386_linux_store_inferior_registers): Likewise.
222 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
223 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
224 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
225 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
226 (i386_extract_return_value, i386_store_return_value): Likewise.
227 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
228 the current architecture by frame_info.
229 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
230 (i386_register_to_value, i386_value_to_register): Likewise.
232 2007-10-09 Markus Deuling <deuling@de.ibm.com>
234 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
235 the current architecture by regcache.
236 (monitor_store_register, monitor_store_registers): Likewise.
238 2007-10-09 Markus Deuling <deuling@de.ibm.com>
240 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
241 the current architecture by regcache.
243 2007-10-09 Markus Deuling <deuling@de.ibm.com>
245 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
248 2007-10-09 Markus Deuling <deuling@de.ibm.com>
250 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
251 architecture by frame.
252 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
253 (inside_main_func, frame_sp_unwind): Likewise.
255 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
257 * solib-svr4.c (enable_break): Add the dynamic linker also if
260 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
262 * MAINTAINERS (Write After Approval): Add self.
264 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
266 * stabsread.c (read_huge_number): Initialize local variable to 0.
268 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
270 * p-lang.h (pascal_main_name): Add declaration.
271 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
272 (GPC_MAIN_PROGRAM_NAME_2): New constants.
273 (pascal_main_name): New function.
274 * symtab.c: Include p-lang.h.
275 (find_main_name): Add call to pascal_main_name.
276 * Makefile.in (symtab.o): Add dependency on p-lang.h.
278 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
280 * stabsread.c (read_huge_number): Fix handling of octal
281 representation when the bit width is known.
282 (read_range_type): Record unsigned integral types with their size,
283 when the type size is known.
285 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
287 * MAINTAINERS (Write After Approval): Add self.
289 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
291 * breakpoint.c (print_one_breakpoint_location): ARI fix:
292 Replace asprintf by xstrprintf.
294 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
296 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
297 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
299 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
301 * linux-fork.c: Move "gdb_wait.h" include back to the position of
302 <sys/wait.h> include before last commit.
304 2007-10-08 Maciej W. Rozycki <macro@mips.com>
306 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
308 2007-10-08 Markus Deuling <deuling@de.ibm.com>
310 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
311 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
312 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
313 (store_regs_user_thread, store_regs_kernel_thread): Use
314 get_regcache_arch or get_frame_arch to get at the current architecture
315 by regcache or by frame, respectively.
317 2007-10-08 Markus Deuling <deuling@de.ibm.com>
319 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
320 (sh64_pseudo_register_read, sh64_pseudo_register_write)
321 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
322 (sh64_print_register, sh64_media_print_registers_info)
323 (sh64_compact_print_registers_info, sh64_unwind_sp)
324 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
325 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
326 (sh64_frame_prev_register): Use FRAME to recognize current
329 2007-10-08 Markus Deuling <deuling@de.ibm.com>
331 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
332 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
333 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
334 current_gdbarch by gdbarch.
335 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
336 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
337 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
338 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
339 recognize current architecture.
341 2007-10-08 Markus Deuling <deuling@de.ibm.com>
343 * remote.c (init_remote_state, fetch_register_using_p)
344 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
345 (store_register_using_P, store_registers_using_G)
346 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
347 get at the current architecture by regcache or by frame, respectively.
349 2007-10-08 Markus Deuling <deuling@de.ibm.com>
351 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
352 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
353 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
354 get_regcache_arch or get_frame_arch to get at the current architecture
355 by regcache or by frame, respectively.
356 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
357 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
358 (store_register, old_store_inferior_registers, supply_gregset)
359 (supply_fpregset, fill_fpregset): Likewise.
360 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
361 Replace current_gdbarch by gdbarch.
363 2007-10-08 Markus Deuling <deuling@de.ibm.com>
365 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
366 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
367 get_frame_arch to get at the current architecture by regcache or by
370 2007-10-08 Markus Deuling <deuling@de.ibm.com>
372 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
373 Replace current_gdbarch by gdbarch.
374 * ia64-tdep.c (ia64_frame_prev_register
375 (ia64_sigtramp_frame_prev_register)
376 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
377 get_frame_arch to get at the current architecture by regcache or by
379 * ia64-linux-nat.c (ia64_linux_fetch_register)
380 (ia64_linux_fetch_registers, ia64_linux_store_register)
381 (ia64_linux_store_registers): Likewise.
383 2007-10-08 Markus Deuling <deuling@de.ibm.com>
385 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
386 current_gdbarch by gdbarch.
387 * hppa-linux-nat.c (fetch_register, store_register)
388 (hppa_linux_fetch_inferior_registers)
389 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
390 get_frame_arch to get at the current architecture by regcache or by
392 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
393 (hppa_hpux_unwind_adjust_stub): Likewise.
394 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
395 (hppa_hpux_fetch_inferior_registers)
396 (hppa_hpux_store_inferior_registers): Likewise.
398 2007-10-08 Markus Deuling <deuling@de.ibm.com>
400 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
401 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
402 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
403 or get_frame_arch to get at the current architecture by regcache or by
405 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
406 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
407 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
408 current_gdbarch by gdbarch.
410 2007-10-08 Markus Deuling <deuling@de.ibm.com>
412 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
413 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
414 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
415 get at the current architecture by regcache or by·frame, respectively.
416 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
419 2007-10-08 Markus Deuling <deuling@de.ibm.com>
421 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
422 Use get_regcache_arch or get_frame_arch to get at the current
423 architecture by regcache or by frame, respectively.
424 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
425 * amd64-nat.c (amd64_supply_native_gregset)
426 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
428 2007-10-08 Markus Deuling <deuling@de.ibm.com>
430 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
432 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
433 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
434 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
435 get_frame_arch to get at the current architecture by regcache or by
437 * alpha-nat.c (fetch_osf_core_registers): Likewise.
439 2007-10-08 Markus Deuling <deuling@de.ibm.com>
441 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
442 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
443 current_gdbarch by gdbarch.
444 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
446 2007-10-08 Markus Deuling <deuling@de.ibm.com>
448 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
449 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
450 * regcache.c (regcache_raw_write): Use get_regcache_arch or
451 get_frame_arch to get at the current architecture by regcache or by
454 2007-10-08 Markus Deuling <deuling@de.ibm.com>
456 * findvar.c (value_of_register, locate_var_value): Use
457 get_regcache_arch or get_frame_arch to get at the current architecture
458 by regcache or by frame, respectively.
459 * findvar.c (default_value_from_register, value_from_register): Replace
460 current_gdbarch by gdbarch.
462 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
464 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
466 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
468 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
469 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
471 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
473 * remote.c (get_offsets): Only call free_symfile_segment_data if
476 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
478 * objc-exp.y: ARI fix: remove 4 PARAMS.
480 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
482 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
483 news. Mention XML support for M68K in GDB 6.7.
485 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
487 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
489 (init_vector_type): Use builtin_type_int32.
491 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
493 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
494 size to enable bi-arch generate-core-file support.
496 2007-10-02 Markus Deuling <deuling@de.ibm.com>
498 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
500 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
502 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
504 * tui/tui-win.c (tui_initialize_win): New function for
505 initializing tui's SIGWINCH signal handler.
506 * tui/tui-win.h (tui_initialize_win): Declare.
508 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
510 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
511 pointer to uintptr_t before casting to CORE_ADDR.
513 2007-10-02 Markus Deuling <deuling@de.ibm.com>
515 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
517 2007-10-02 Mark Mitchell <mark@codesourcery.com>
519 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
520 * ser-mingw.c (enum select_thread_state): New type.
521 (struct ser_console_state): Add have_started and thread_state.
522 (select_thread_wait): New function.
523 (thread_fn_type): New type.
524 (create_select_thread): New function.
525 (destroy_select_thread): Likewise.
526 (start_select_thread): Likewise.
527 (stop_select_thread): Likewise.
528 (console_select_thread): Use new functions.
529 (pipe_select_thread): Likewise.
530 (file_select_thread): Likewise.
531 (ser_console_wait_handle): Likewise.
532 (ser_console_done_wait_handle): Likewise.
533 (ser_console_close): Likewise.
534 (free_pipe_state): Likewise.
535 (pipe_wait_handle): Likewise.
536 (pipe_done_wait_handle): Likewise.
537 (struct net_windows_state): Derive from ser_console_state.
538 (net_windows_select_thread): Use new functions.
539 (net_windows_wait_handle): Likewise.
540 (net_windows_done_wait_handle): Likewise.
541 (net_windows_close): Likewise.
543 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
545 * inflow.c (terminal_ours_1): Remove useless line.
547 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
549 * mips-tdep.c (mips_read_fp_register_double): Correct check for
551 (mips_print_fp_register): Correct check for even FP registers.
552 (mips_virtual_frame_pointer): New function.
553 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
555 2007-09-30 Mike Frysinger <vapier@gentoo.org>
557 * value.h (lookup_only_internalvar): New prototype.
558 (create_internalvar): Likewise.
559 * value.c (lookup_only_internalvar): New function.
560 (create_internalvar): Likewise.
561 (lookup_internalvar): Use new lookup_only_internalvar and
562 create_internalvar functions.
563 * parse.c (write_dollar_variable): Look up $ symbols in internal
564 table first rather than last.
566 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
568 * linux-nat.c (linux_nat_new_thread): New variable.
569 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
570 linux_nat_switch_fork.
571 (lwp_list): Make public.
572 (add_lwp): Call linux_nat_new_thread.
573 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
575 (resume_callback): Clear lp->siginfo. Remove unused variable.
576 (linux_nat_resume): Assert that the LWP list is already initialized.
579 (stop_wait_callback, linux_nat_wait): Call it.
580 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
581 * linux-nat.h (struct lwp_info): Add siginfo.
582 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
585 * amd64-linux-nat.c (amd64_linux_dr): New.
586 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
587 (amd64_linux_dr_set): Take a PTID argument.
588 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
589 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
590 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
591 (amd64_linux_new_thread): New.
592 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
593 * i386-linux-nat.c (i386_linux_dr): New.
594 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
595 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
596 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
597 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
598 (i386_linux_new_thread): New.
599 (i386_linux_resume): Remove unnecessary PID check.
600 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
601 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
602 (fetch_debug_register, fetch_debug_register_pair): Delete.
603 (debug_registers): New.
604 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
605 ALL_LWPS and debug_registers.
606 (ia64_linux_new_thread): New.
607 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
608 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
609 * ppc-linux-nat.c (last_stopped_data_address): Delete.
610 (saved_dabr_value): New.
611 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
613 (ppc_linux_new_thread): New.
614 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
615 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
616 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
617 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
619 (s390_fix_watch_points): Take a PTID argument.
620 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
621 (_initialize_s390_nat): Call linux_nat_set_new_thread.
623 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
624 Jeff Johnston <jjohnstn@redhat.com>
626 * breakpoint.c (watchpoints_triggered): New.
627 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
628 Check watchpoint_triggered instead. Combine handling for software
629 and hardware watchpoints. Do not use target_stopped_data_address
630 here. Always check a watchpoint if its scope breakpoint triggers.
631 Do not stop for thread or overlay events. Improve check for
632 triggered watchpoints without a value change.
633 (watch_command_1): Insert the scope breakpoint first. Link the
634 scope breakpoint to the watchpoint.
635 * breakpoint.h (enum watchpoint_triggered): New.
636 (struct breakpoint): Add watchpoint_triggered.
637 (bpstat_stop_status): Update prototype.
638 (watchpoints_triggered): Declare.
639 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
640 (stepped_after_stopped_by_watchpoint): Delete.
641 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
642 local. Handle infwait_step_watch_state. Update calls to
643 bpstat_stop_status. Use watchpoints_triggered to check
645 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
646 (remote_stopped_data_address): Do not check it.
648 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
650 * configure.ac: Add $LIBINTL when testing libbfd.
651 * configure: Regenerated.
653 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
655 * NEW: Mention pending breakpoint changes and
656 support for breakpoints at multiple locations.
658 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
660 * arm-linux-tdep.c (arm_linux_software_single_step): New.
661 (arm_linux_init_abi): Use it.
662 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
664 * arm-tdep.h (arm_get_next_pc): Declare.
665 * Makefile.in (arm-linux-tdep.o): Update.
667 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
669 * varobj.c (install_new_value): Don't
670 call value_get_print_value when a value is
671 lazy. Update the print_value member in a
674 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
676 * breakpoint.c (create_breakpoint): Set
677 condition on each location, not on the first
678 location of breakpoint.
680 2007-09-26 Jim Blandy <jimb@codesourcery.com>
682 * remote.c (getpkt_sane): Fix error message. No animals were
683 harmed in the making of this debugger.
685 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
687 * p-typeprint.c: Fix 11 ARI reported problems.
688 (pascal_print_type): Fix 4 operator at end of line.
689 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
690 using strncmp function.
691 (pascal_type_print_base): Fix 2 operator at end of line.
692 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
693 using strncmp function.
696 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
699 dwarf2read.c (read_subroutine_type):
700 All pascal functions are prototyped.
702 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
705 p-valprint.c (pascal_val_print): correct current language check.
706 Also print array of char as strings.
709 2007-09-26 David Ung <davidu@mips.com>
710 Maciej W. Rozycki <macro@mips.com>
712 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
714 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
716 * p-exp.y: Fix 12 ARI reported problems.
717 (name_not_typename): Fix 2 operator at end of line issues.
718 (yylex): Fix 3 operator at end of line issues.
719 Replace 7 DEPRECATED_STREQ macros using strcmp function.
721 2007-09-25 David Ung <davidu@mips.com>
722 Maciej W. Rozycki <macro@mips.com>
724 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
725 rules return composite types in registers as appropriate.
727 2007-09-24 Jim Blandy <jimb@codesourcery.com>
729 * symfile.h (struct symfile_segment_data): Doc fixes.
730 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
731 Assert that we were passed some loaded segment addresses,
732 and that sections' segment numbers are valid.
733 Simplify offset calculation.
734 * remote.c (get_offsets): Clarify selection of relocate-by-segment
735 strategy, and set num_segments correctly. Delete redundant
736 assignments to do_sections.
738 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
740 * frame.c (get_prev_frame_1): Also check for PC in the same register.
742 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
744 * breakpoint.c (remove_sal): New.
745 (expand_line_sal_maybe): New.
746 (create_breakpoints): Call expand_line_sal_maybe.
747 (clear_command): Add comment.
748 (breakpoint_re_set_one): Call expand_line_sal_maybe.
749 * linespec.c (decode_indirect): Set explicit_pc to 1.
750 (decode_all_digits): Set explicit_line to 1.
751 (append_expanded_sal): New.
752 (expand_line_sal): New.
753 * linespec.h (expand_line_sal): Declare.
754 * symtab.c (init_sal): Initialize explicit_pc
756 * symtab.h (struct symtab_and_line): New fields
757 explicit_pc and explicit_line.
759 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
761 * infcall.c (call_function_by_hand): Handle language-specific
762 pass and return by reference.
764 * cp-abi.c (cp_pass_by_reference): New.
765 * cp-abi.h (cp_pass_by_reference): Declare.
766 (struct cp_abi_ops): Add pass_by_reference.
767 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
768 (init_gnuv3_ops): Set pass_by_reference.
770 * language.c (language_pass_by_reference): New.
771 (default_pass_by_reference): New.
772 (unknown_language_defn, auto_language_defn, local_language_defn): Add
773 default_pass_by_reference.
774 * langauge.h (struct language_defn): Add la_pass_by_reference.
775 (language_pass_by_reference, default_pass_by_reference): Declare.
776 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
777 * c-lang.c (c_language_defn, asm_language_defn)
778 (minimal_language_defn): Likewise.
779 (cplus_language_defn): Add cp_pass_by_reference.
780 * f-lang.c (f_language_defn): Add default_pass_by_reference.
781 * jv-lang.c (java_language_defn): Likewise.
782 * m2-lang.c (m2_language_defn): Likewise.
783 * objc-lang.c (objc_language_defn): Likewise.
784 * p-lang.c (pascal_language_defn): Likewise.
785 * scm-lang.c (scm_language_defn): Likewise
787 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
789 Allow a code breakpoint to have several locations
791 * breakpoint.h (enum enable_state): Remove the
792 bp_shlib_disabled enumerator.
793 (struct bp_location): New members shlib_disabled,
794 global_next, enabled and function_name.
795 Rename pending to condition_not_parsed.
797 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
798 (ALL_BP_LOCATIONS_SAFE): Likewise.
799 (breakpoint_enabled): Don't check for pending.
800 (condition_command): Free and update all locations of
802 (insert_bp_location): Adjust.
803 (software_breakpoint_inserted_here_p): Don't care
804 if breakpoint is enabled, as soon as it's inserted.
805 (print_it_typical): Print bpstat's location, not
806 bpstat's breakpoint's location.
807 (bpstat_stop_status): Iterate over all locations, not
809 (print_breakpoint_location): New.
810 (print_one_breakpoint): Renamed to
811 (print_one_breakpoint_location): ...this. Take
812 parameters to describe which location is being
813 printed. Modify code to properly print header
814 for several locations and individual locations.
815 (print_one_breakpoint): Print all locations.
816 (breakpoint_has_pc): New.
817 (describe_other_breakpoints): Use the above.
818 (check_duplicates): Renamed to...
819 (check_duplicates_for): .. this.
820 (check_duplicates): Use check_duplicates_for.
821 (allocate_bp_location): Adjust.
822 (set_raw_breakpoint_without_location): New,
823 extracted from set_raw_breakpoint.
824 (set_breakpoint_location_function): New.
825 (set_raw_breakpoint): Use
826 set_raw_breakpoint_without_location.
827 (make_breakpoint_permanent): Mark all locations
829 (disable_breakpoints_in_shlibs): Iterate over
831 (disable_breakpoints_in_unloaded_shlib): Likewise.
832 (re_enable_breakpoints_in_shlibs): Likewise.
833 (mention): Say "pending" when breakpoint has
834 zero locations. If breakpoint has more than one
836 (add_location_to_breakpoint): New.
837 (create_breakpoint): Accept symtabs_and_lines, not
838 symtab_and_line. Pass extra sals to
839 add_location_to_breakpoint.
840 (create_breakpoints): Pass symtabs_and_lines to
842 (break_command_1): Make pending breakpoints
844 (do_captured_breakpoint): Remove wrong allocation.
845 (clear_command): Iterate over all locations.
846 (unlink_locations_from_global_list): Renamed
847 from unlink_location_from_global_list. Remove
849 (delete_breakpoint): Remove all locations.
850 Iterate over all locations when deciding which
851 other location to re-enable.
852 (all_locations_are_pending): New.
853 (update_breakpoint_locations): Renamed from
854 update_breakpoint_location. Try to match old
855 and new locations using names of containing
857 (breakpoint_re_set_one): Adjust.
858 (find_location_by_number): New.
859 (disable_command): Allow disabling individual location.
860 (enable_command): Allow enabling individual location.
861 * breakpoint.c: Adjust all uses of breakpoint's
862 enable state to for bp_shlib_disabled change.
864 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
866 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
867 (resolve_pending_breakpoint): Remove.
868 (re_enable_breakpoints_in_shlibs): Remove.
869 (unlink_locations_from_global_list): New.
870 (update_breakpoint_locations): New.
871 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
872 Use parse_condition and update_breakpoint_location to
873 reset breakpoint. Ignore 'symbol not found' error from
875 (breakpoint_re_set): Don't emit newline before the
876 reason why breakpoint is not reset.
877 (do_enable_breakpoint): Don't specially process pending
879 (free_bp_location): New.
880 (break_command_1): For pending breakpoints, initialize
881 all fields of a sal with zeroes.
882 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
883 * infcmd.c (post_create_inferior): Don't call
884 re_enable_breakpoints_in_shlibs.
885 * infrun.c (handle_inferior_event): Likewise.
886 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
887 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
888 * win32-nat.c (get_win32_debug_event): Likewise.
890 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
892 * breakpoint.c (create_breakpoint): Split from
893 create_breakpoints, implementing most of its logic.
894 Take just a single sal, single address string and
895 single condition. Do not take parsed condition at
897 (create_breakpoints): Just call create_breakpoint
899 (find_condition_and_thread): New.
900 (break_command_1): Use find_condition_and_thread.
901 Do not keep parsed conditions.
902 (do_captured_breakpoint): Don't convert
903 condition string to struct expression.
905 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
907 * breakpoint.h (struct breakpoint): Move the cond
909 (struct bp_location): Here.
910 * breakpoint.c (condition_command, bpstat_stop_status)
911 (print_one_breakpoint, allocate_bp_location)
912 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
913 (create_exec_event_catchpoint, create_breakpoints)
914 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
915 (create_ada_exception_breakpoint, set_breakpoint_sal)
916 (delete_breakpoint, breakpoint_re_set_one): Adjust.
917 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
919 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
921 Associate bp_stat with bp_location, not breakpoint.
922 * breakpoint.h (breakpoint_at): Change type
924 * breakpoint.c (bpstat_alloc): Take bp_location,
926 (bpstat_find_breakpoint): Look at bpstat's location's
927 owner, not at bpstat->breakpoint_at.
928 (bpstat_find_step_resume_breakpoint): Likewise.
929 (bpstat_num): Likewise.
930 (print_it_typical): Likewise.
931 (print_bp_stop_message): Likewise.
932 (watchpoint_check): Likewise.
933 (bpstat_what): Likewise.
934 (bpstat_get_triggered_catchpoints): Likewise.
935 (breakpoint_auto_delete): Likewise.
936 (delete_breakpoint): Likewise.
937 (bpstat_stop_status): Pass location, not breakpoint,
938 to bpstat_alloc. Look at bpstat's location's
939 owner, not at bpstat->breakpoint_at.
941 2007-09-21 Jim Blandy <jimb@codesourcery.com>
943 * macrotab.h (new_macro_table): Document that removing information
944 from an obstack/bcache-managed macro table leaks memory.
945 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
946 that data is never freed in obstack/bcache-managed macro tables,
947 just leak the storage.
948 (macro_undef): If we're undefining a macro at exactly the same
949 source location that we defined it, simply remove the definition
952 2007-09-21 Joel Brobecker <brobecker@adacore.com>
954 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
955 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
956 Adjust the struct sym_fns object accordingly by setting
957 the new field to NULL.
958 * xcoffread.c (aix_process_linenos): Make static.
959 (xcoff_sym_fns): Set new field to aix_process_linenos.
960 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
961 by call to new the new sym_fns sym_read_linetable function.
962 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
963 * config/rs6000/tm-rs6000.h: Delete.
965 2007-09-21 David Ung <davidu@mips.com>
966 Maciej W. Rozycki <macro@mips.com>
968 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
969 rules do not treat composite types specially.
971 2007-09-20 Maciej W. Rozycki <macro@mips.com>
973 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
974 (mips16_in_function_epilogue_p): Likewise.
975 (mips_in_function_epilogue_p): Likewise.
976 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
978 2007-09-19 Joel Brobecker <brobecker@adacore.com>
980 * configure.ac: Add check for "etext".
981 * configure, config.in: Regenerate.
982 * maint.c (TEXTEND): Only define if either _etext or etext
984 Disable the profiling functionality if TEXTEND is not defined.
986 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
988 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
989 address register. Correct the call to frame_id_build.
990 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
993 2007-09-18 Joel Brobecker <brobecker@adacore.com>
995 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
996 the linetable past the function end.
998 2007-09-18 James E. Wilson <wilson@specifix.com>
1000 * MAINTAINERS: Update my email address.
1002 2007-09-18 Jerome Guitton <guitton@adacore.com>
1004 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
1005 (inf_ttrace_delete_dying_threads_callback): New function.
1006 (inf_ttrace_resume): After resuming the execution, iterate over
1007 the dying threads to delete them for the thread list.
1008 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
1009 mark the corresponding thread as dying instead of removing it
1010 from the thread list.
1011 (inf_ttrace_thread_alive): return 0 for dying threads.
1013 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1015 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
1016 that return_frame is not null.
1018 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1020 * solib-svr4.c: Add include of "auxv.h".
1021 (enable_break): Use the AT_BASE auxiliary entry if available.
1022 * Makefile.in (solib-svr4.o): Update dependencies.
1024 2007-09-17 Joel Brobecker <brobecker@adacore.com>
1026 * NEWS: Create a new section for the next release branch.
1027 Rename the section of the current branch, now that it has
1030 2007-09-17 Jerome Guitton <guitton@adacore.com>
1032 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
1033 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
1035 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
1037 * mi/mi-cmds.c (mi_cmds): Register -list-features.
1038 * mi/mi-cmds.h (mi_cmd_list_features): New.
1039 * mi/mi-main.c (mi_cmd_list_features): New.
1041 2007-09-11 Joel Brobecker <brobecker@adacore.com>
1043 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
1044 * version.in: Bump version to 6.7.50-20070911-cvs.
1046 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1048 * thread.c (free_thread): Do not delete the step resume breakpoint
1051 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
1053 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
1054 * corelow.c (core_read_description): New.
1055 (init_core_ops): Set to_read_description.
1056 * gdbarch.sh: Add gdbarch_core_read_description.
1057 * mips-linux-tdep.c (mips_linux_core_read_description): New.
1058 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
1059 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
1060 (mips_register_g_packet_guesses): Use them.
1061 (_initialize_mips_tdep): Initialize them.
1062 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
1063 * gdbarch.h, gdbarch.c: Regenerated.
1065 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1067 * infrun.c (stepping_past_breakpoint): New global variable.
1068 (stepping_past_breakpoint_ptid): Likewise.
1069 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
1070 Only switch threads if we need to single-step over a breakpoint hit
1071 in the previously selected thread. If stepping, remember previous
1072 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
1073 switch_to_thread instead of copying its contents.
1074 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
1075 prepare_to_proceed returns true.
1076 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
1077 (context_switch): Call switch_to_thread.
1078 (handle_inferior_event): Switch back to previous thread if requested
1079 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
1080 * gdbthread.h (switch_to_thread): Add prototype.
1081 * thread.c (switch_to_thread): Make global.
1083 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
1085 * p-valprint.c: Fix 7 ARI reported problems.
1086 (pascal_val_print): Fix one operator at end of line issue.
1087 Use paddress function to remove use of
1088 deprecated_print_address_numeric function (2 times).
1089 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
1090 (pascal_value_print): Fix 3 operator at end of line issues.
1092 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
1095 * arm-tdep.c (arm_in_call_stub): Delete.
1096 (arm_skip_stub): Handle from_arm and from_thumb stubs.
1098 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
1100 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
1103 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1104 Jim Blandy <jimb@codesourcery.com>
1106 * NEWS: Update description of string changes. Mention print/s.
1107 * c-valprint.c (textual_element_type): New.
1108 (c_val_print): Use it. Do not skip address printing for pointers
1109 with a string format.
1110 (c_value_print): Doc update.
1111 * dwarf2read.c (read_array_type): Use make_vector_type.
1112 * gdbtypes.c (make_vector_type): New.
1113 (init_vector_type): Use it.
1114 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1115 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1116 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1117 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1118 (make_vector_type): New.
1119 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1120 Call the language print routine for string format.
1121 (print_scalar_formatted): Call val_print for string format. Handle
1122 unsigned original types for char format.
1123 (validate_format): Do not reject string format.
1124 * stabsread.c (read_type): Use make_vector_type.
1125 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1127 2007-09-04 Michael Snyder <msnyder@access-company.com>
1129 * expprint.c (print_subexp_standard): Check strchr for null.
1130 * Makefile.in (expprint.o): Depend on gdb_assert.h.
1132 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1134 * stabsread.c (patch_block_status): Guard against null.
1135 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1137 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1139 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
1140 in internal error message.
1142 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1143 Daniel Jacobowitz <dan@codesourcery.com>
1145 * infcmd.c (post_create_inferior): Update comment.
1146 (run_command_1): Always call post_create_inferior with 0 as
1149 * i386-cygwin-tdep.h: New.
1150 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1151 (win32_xfer_shared_library): Make it extern.
1153 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1155 (win32_so_ops): Delete.
1156 (get_relocated_section_addrs): Delete.
1157 (solib_symbols_add): Delete.
1158 (register_loaded_dll): Delete.
1159 (win32_make_so): New.
1160 (handle_load_dll): Use win32_make_so.
1161 (win32_free_so): Free the passed in so.
1162 (win32_relocate_section_addresses): Delete.
1163 (win32_solib_create_inferior_hook): Delete.
1164 (handle_unload_dll): Don't add PE offset here. Free so with
1165 win32_free_so instead of free_so.
1166 (win32_special_symbol_handling): Delete.
1167 (get_win32_debug_event): Remove unneeded calls. Set state to
1168 TARGET_WAITKIND_LOADED on a dll unload.
1169 (do_initial_win32_stuff): Clear cygwin_load_start and
1171 (map_code_section_args): Delete.
1172 (dll_code_sections_add): Delete.
1173 (core_section_load_dll_symbols): Delete.
1174 (win32_xfer_shared_libraries): New.
1175 (win32_current_sos): Delete.
1176 (win32_xfer_partial): New.
1177 (open_symbol_file_object): Delete.
1178 (in_dynsym_resolve_code): Delete.
1179 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1180 of win32_ops. Remove win32_so_ops settings. Don't set
1181 current_target_so_ops here.
1183 * Makefile.in (i386_cygwin_tdep_h): New variable.
1184 (i386-cygwin-tdep.o): Update dependencies.
1185 (win32-nat.o): Update dependencies.
1187 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
1188 Daniel Jacobowitz <dan@codesourcery.com>
1190 * gdbarch.sh (core_xfer_shared_libraries): New.
1192 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1194 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1196 * xml-support.c (gdb_xml_parse): Debug output tweaks.
1197 (xml_escape_text): New.
1198 * xml-support.h (xml_escape_text): Declare.
1200 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1201 * config/i386/cygwin.mt (TDEPFILES): ... here.
1203 * win32-nat.c: (fetch_elf_core_registers): Delete.
1204 (win32_elf_core_fn): Delete.
1205 (_initialize_core_win32): Delete.
1207 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1208 "xml-support.h" and "gdbcore.h".
1209 (i386_win32_gregset_reg_offset): New.
1210 (I386_WIN32_SIZEOF_GREGSET): New.
1211 (i386_win32_regset_from_core_section): New.
1212 (win32_xfer_shared_library): New.
1213 (struct cpms_data): New.
1214 (core_process_module_section): New.
1215 (win32_core_xfer_shared_libraries): New.
1216 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1217 gregset_num_regs, sizeof_gregset members of tdep. Register
1218 regset_from_core_section and core_xfer_shared_libraries callbacks.
1220 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1221 * gdbarch.h, gdbarch.c: Regenerate.
1223 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1225 * corelow.c (core_xfer_partial): Pass writebuf to
1226 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1228 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
1230 * arm-tdep.h (arm_skip_stub): Declare.
1231 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
1233 (arm_pe_skip_trampoline_code): New function.
1234 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1235 gdbarch_skip_trampoline_code callback.
1236 * Makefile.in (arm-wince-tdep.o): Update dependencies.
1238 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1240 * MAINTAINERS: Move Fred Fish to Past Maintainers.
1242 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1244 * configure.ac: Add --with-expat.
1245 * configure: Regenerated.
1247 2007-09-03 Andreas Schwab <schwab@suse.de>
1249 * configure.ac: Accept --with-system-readline.
1250 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1251 * configure: Regenerate.
1252 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1254 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1256 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
1257 Daniel Jacobowitz <dan@codesourcery.com>
1259 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1261 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1263 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1265 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1267 * top.c (print_gdb_version): Update for GPL version 3.
1269 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1271 * NEWS: Mention the build-id .debug files verification.
1273 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1275 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1277 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1279 * Makefile.in (symfile.o): Update dependencies.
1280 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1281 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1282 (struct build_id): New structure.
1283 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1284 (find_separate_debug_file): New variable BUILD_ID.
1285 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1287 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1289 * varobj.c (struct varobj): Fix comment
1290 for the type member not to lie when it can be
1293 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1295 Implement -var-info-path-expression.
1297 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1299 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1300 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1301 * varobj.c (struct varobj): New field 'path_expr'.
1302 (c_path_expr_of_child, cplus_path_expr_of_child)
1303 (java_path_expr_of_child): New.
1304 (struct language_specific): New field path_expr_of_child.
1305 (varobj_create): Initialize the path_expr field.
1306 (varobj_get_path_expr): New.
1307 (new_variable): Initialize the path_expr field.
1308 (free_variable): Free the path_expr field.
1309 (adjust_value_for_children_access): New parameter
1311 (c_number_of_children): Adjust.
1312 (c_describe_child): New parameter CFULL_EXPRESSION.
1313 Compute full expression.
1314 (c_value_of_child, c_type_of_child): Adjust.
1315 (cplus_number_of_children): Adjust.
1316 (cplus_describe_child): New parameter CFULL_EXPRESSION.
1317 Compute full expression.
1318 (cplus_name_of_child, cplus_value_of_child)
1319 (cplus_type_of_child): Adjust.
1320 * varobj.h (varobj_get_path_expr): Declare.
1322 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
1324 * mi/mi-cmd-var.c (print_varobj): If a varobj
1325 type is NULL, don't try to print it.
1327 2007-08-30 Alan Modra <amodra@bigpond.net.au>
1329 * ppc-linux-nat.c (right_fill_reg): Delete.
1330 (supply_gregset): Use ppc_supply_gregset.
1331 (supply_fpregset): Use ppc_supply_fpregset.
1332 (fill_gregset): Use ppc_collect_gregset.
1333 (fill_fpregset): Use ppc_collect_fpregset.
1334 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1335 (right_supply_register, ppc_linux_supply_gregset): Delete.
1336 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1337 (ppc_linux_supply_fpregset): Delete.
1338 (ppc_linux_collect_gregset): New function.
1339 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1340 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1341 ppc_linux_supply_gregset, and ppc_collect_gregset.
1342 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1343 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1344 (ppc_linux_regset_from_core_section): Update.
1345 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1346 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1347 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1348 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1349 (ppcobsd_collect_gregset): Likewise.
1350 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1351 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1352 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1353 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1354 (rs6000_aix64_reg_offsets): Likewise.
1355 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1356 ppc_floating_point_unit_p.
1357 (rs6000_aix_collect_regset): Similarly.
1358 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
1359 when regsize is larger than regcache register size.
1360 (ppc_collect_reg): Similarly zero pad when regsize is larger than
1361 regcache register size.
1362 (ppc_greg_offset): New function, split out from..
1363 (ppc_supply_gregset): ..here. Separate code handling all regs from
1364 single reg case. Correct xer offset.
1365 (ppc_fpreg_offset): New function, split out from..
1366 (ppc_supply_fpregset): ..here. Separate code handling all regs from
1368 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1369 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1370 a fp unit, instead return if no fp.
1372 2007-08-29 Jim Blandy <jimb@codesourcery.com>
1374 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1375 this code has not been compiled for two years.
1377 2007-08-29 Michael Snyder <msnyder@access-company.com>
1379 * event-top.c (gdb_readline2): Return after EOF.
1381 2007-08-29 Joel Brobecker <brobecker@adacore.com>
1383 * symtab.c: Remove a function that has been commented out 3 years ago.
1385 2007-08-29 Randolph Chung <tausq@debian.org>
1387 * hppa-tdep.c (hppa32_cannot_fetch_register)
1388 (hppa64_cannot_fetch_register): New functions.
1389 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1390 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1392 2007-08-28 Michael Snyder <msnyder@access-company.com>
1394 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
1395 check for null before calling check_typedef.
1397 * NEWS: Mention Coverity bug fixes.
1399 2007-08-27 Markus Deuling <deuling@de.ibm.com>
1401 * spu-tdep.c (spu_pointer_to_address): New function.
1402 (spu_integer_to_address): Likewise.
1403 (spu_gdbarch_init): Add spu_pointer_to_address and
1404 spu_integer_to_address to gdbarch.
1406 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
1408 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1410 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1412 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1413 that contains the GDB license.
1414 * copying.awk: Adjust to the GPLv3 wording.
1415 * copying.c: Regenerate.
1417 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1419 * copying.awk: Protoization, and i18n markup.
1421 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1423 * config/djgpp/djconfig.sh: Switch license to GPLv3.
1424 * copyright.sh: Likewise.
1425 * gdb-events.sh: Likewise.
1426 * gdb_gcore.sh: Likewise.
1427 * gdb_mbuild.sh: Likewise.
1428 * gdbarch.sh: Likewise.
1429 * observer.sh: Likewise.
1430 * features/feature_to_c.sh: Likewise.
1431 * regformats/regdat.sh: Likewise.
1433 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1435 Switch the license of all .c files to GPLv3.
1436 Switch the license of all .h files to GPLv3.
1437 Switch the license of all .cc files to GPLv3.
1439 2007-08-23 Joel Brobecker <brobecker@adacore.com>
1441 * configure.ac: Switch license to GPLv3.
1443 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1445 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1446 determine the file's FPU type.
1448 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1450 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1451 (mips_n32n64_push_dummy_call): Always increment float_argreg along
1452 with argreg. Use mips_n32n64_fp_arg_chunk_p.
1454 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
1456 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1458 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
1459 (elf_lookup_lib_symbol): Fix formatting.
1461 2007-08-21 Michael Snyder <msnyder@access-company.com>
1463 * dbxread.c (read_dbx_symtab): Guard null deref.
1466 * valops.c (find_overload_match): Guard against NULL.
1468 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1470 * MAINTAINERS (Patch Champions): Remove self.
1472 2007-08-21 Chris Smith <chris.smith@st.com>
1474 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1477 2007-08-18 Michael Snyder <msnyder@access-company.com>
1479 * stabsread.c (dbx_lookup_type): Memory leak.
1481 * event-loop.c (delete_async_signal_handler): Move pointer null
1482 test to before pointer dereference.
1484 * ui-out.c (append_header_to_list): Possible cut and paste error.
1486 * MAINTAINERS: white space tweak.
1488 2007-08-17 Michael Snyder <msnyder@access-company.com>
1490 * stack.c (print_frame): Memory leak.
1492 * completer.c (filename_completer): Avoid memory leak.
1493 Remove unnecessary nested block.
1495 * c-exp.y (parse_number): Memory leak.
1497 * completer.c (location_completer): Must free 'fn_list', except
1498 in the one case where it is returned (as 'list').
1500 * varobj.c (value_of_root): Memory leak.
1502 * gdbtypes.h (virtual_base_list): Remove export decl.
1503 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
1504 (virtual_base_index): Memory leak.
1505 (virtual_base_index_skip_primaries): Ditto.
1507 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
1509 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1510 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1511 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1512 (xtensa_read_register): New function.
1513 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1514 (xtensa_insn_kind): New types.
1515 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1516 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1517 (xtensa_verify_config, xtensa_pseudo_register_read)
1518 (xtensa_pseudo_register_write, xtensa_extract_return_value)
1519 (xtensa_store_return_value)
1520 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1521 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1522 (xtensa_frame_this_id, xtensa_frame_prev_register)
1523 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1524 (call0_frame_cache, call0_frame_get_reg_at_entry)
1525 (call0_classify_opcode, call0_track_op)
1526 (call0_analyze_prologue, call0_frame_cache): New functions.
1528 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
1530 * breakpoint.c (bpstat_free): New.
1531 (bpstat_clear): Use bpstat_free.
1532 (delete_breakpoint): Document why we cannot
1533 remove bpstats from stop_bpstat.
1534 * breakpoint.h (bpstat_free): Declare.
1536 2007-08-16 Michael Snyder <msnyder@access-company.com>
1538 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1540 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1541 Joel Brobecker <brobecker@adacore.com>
1543 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1545 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
1546 Joel Brobecker <brobecker@adacore.com>
1548 * ada-lang.c (possible_user_operator_p): Alternative fix to last
1549 checkin guarding against NULL.
1551 2007-08-14 Michael Snyder <msnyder@access-company.com>
1553 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1554 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1555 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1556 go at beginning of new line.
1558 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1559 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1560 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1561 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1562 tui-winsource.h, tui.c, tui.h: Function declarations and
1563 definitions, wrap long lines.
1565 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1566 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1567 Reformat block comments to GNU standard.
1569 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1570 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1571 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1572 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1573 tui.c, tui.h: Comment reformatting to coding standard (capitals,
1574 spaces after periods, etc).
1576 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1577 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1578 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1579 tui-winsource.h: Whitespace changes, fix pointer declarations
1582 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1583 Michael Snyder <msnyder@access-company.com>
1585 * ada-lang.c (field_alignment): Guard against NULL.
1587 2007-08-14 Joel Brobecker <brobecker@adacore.com>
1589 * MAINTAINERS (Global Maintainers): Add self.
1591 2007-08-14 Michael Snyder <msnyder@access-company.com>
1593 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1595 * ada-lang.c (possible_user_operator_p): Guard against NULL.
1597 * varobj.c (cplus_describe_child): Guard against null.
1598 Use "NULL" instead of "0" to initialize pointers.
1600 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1602 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1603 to match any gdbarch with matching OSABI. Set default ABI and FPU
1604 after running the OSABI handler.
1606 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
1608 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1609 * config/i386/linux.mt (TDEPFILES): ...to here.
1611 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1613 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1614 the 'silent' parameter and code to implement that.
1615 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1617 * win32-nat.c: Adjust.
1620 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
1622 * breakpoint.c (update_breakpoints_after_exec): Don't
1623 set address to zero.
1625 2007-08-13 Michael Snyder <msnyder@access-company.com>
1627 * valops.c: Whitespace clean-up.
1629 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1631 * event-top.c (command_line_handler): Memory leak.
1633 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1634 No need to make copy.
1636 * source.c (find_source_lines): Require symtab 's'.
1638 2007-08-11 Michael Snyder <msnyder@access-company.com>
1640 * completer.c: Spelling fix in comments.
1642 2007-08-10 Michael Snyder <msnyder@access-company.com>
1644 * gdbtypes.c: Coding standard cleanup.
1645 * gdbtypes.c: Comment/whitespace cleanup.
1647 * stabsread.c (read_huge_number): Attempt to compute value before
1648 values that it depends on.
1650 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1651 (decode_objc): Use "NULL" instead of 0.
1652 (find_method): Ditto.
1653 (decode_all_digits): Ditto.
1654 (decode_dollar): Ditto.
1656 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1658 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1660 * solib-svr4.c (enable_break): Don't free tmp_pathname until
1663 * completer.c: Comment/whitespace cleanup.
1665 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1667 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1669 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
1671 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1672 allocated file descriptors.
1674 2007-08-10 Joel Brobecker <brobecker@adacore.com>
1676 * Makefile.in: Minor cleanup throughout; add some missing variables,
1677 add some missing rules, remove some rules that are no longer needed,
1678 and fix the dependencies in several rules.
1680 2007-08-10 Ludovic Courtès <ludo@gnu.org>
1682 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1683 (scm_lang_h, scm_tags_h): New.
1684 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1685 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1686 * defs.h (enum language): Add `language_scm'.
1688 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1691 2007-08-09 Ludovic Courtès <ludo@gnu.org>
1693 * MAINTAINERS (Write After Approval): Add myself.
1695 2007-08-09 Michael Snyder <msnyder@access-company.com>
1697 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1699 2007-08-09 Joel Brobecker <brobecker@adacore.com>
1701 * solib-som.c (som_relocate_section_addresses): Stop saving
1702 the $CODE$ section in the so_list structure.
1704 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
1706 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1707 (xtensa_register_group_t): Add entries for coprocessors.
1708 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1709 (xtensa_add_reggroups): Likewise.
1710 (xtensa_register_reggroup_p): Likewise.
1711 (xtensa_coprocessor_register_group): New function.
1714 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1716 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1718 2007-08-08 Michael Snyder <msnyder@access-company.com>
1720 * target.c (target_read_string): Guard against null.
1722 * varobj.c (value_of_root): Move alloc after return to avoid leak.
1724 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
1725 (tui_set_layout_for_display_command): Mem leak.
1727 * top.c (command_line_input): Memory leak.
1729 * solib-svr4.c (open_symbol_file_object): Memory leak.
1730 (svr4_current_sos): Ditto.
1731 (enable_break): Ditto.
1733 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1735 * dwarf2read.c (add_partial_symbol): Memory leak.
1737 2007-08-06 Michael Snyder <msnyder@access-company.com>
1739 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1741 2007-08-05 Jim Blandy <jimb@codesourcery.com>
1743 * macroexp.c (init_buffer): Remove testing code that overrides the
1744 caller's length guess.
1745 (gather_arguments): Use a larger initial size, now that the vector
1746 growth code has been exercised.
1748 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
1750 * solib-target.c (solib_target_relocate_section_addresses): Add
1751 orig_delta to addr_high.
1753 2007-08-04 Michael Snyder <msnyder@access-company.com>
1755 * remote-fileio.c (remote_fileio_func_write): Memory leak.
1757 * breakpoint.c (print_one_breakpoint): Off by one error.
1759 * tracepoint.c (add_register): Off by one error.
1760 (stringify_collection_list): Free malloc buffer.
1762 2007-08-03 Michael Snyder <msnyder@access-company.com>
1764 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1765 stop memory leak, straighten out cleanups.
1767 * jv-lang.c (java_link_class_type): Guard against NULL.
1769 2007-08-02 Michael Snyder <msnyder@access-company.com>
1771 * gdbtypes.c (create_set_type): Test should only be done within
1772 the preceeding if block. Otherwise, variable is uninitialized.
1774 * gdbtypes.c (check_typedef): Guard NULL.
1776 2007-08-01 Michael Snyder <msnyder@access-company.com>
1778 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
1779 avoid dereference in lookup_cmd_1.
1781 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
1782 clean up long lines.
1783 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1784 (tui_alloc_win_info): Ditto.
1785 (tui_add_content_elements): Ditto.
1786 * tui/tui-file.c (tui_file_magic): Ditto.
1788 2007-07-31 Michael Snyder <msnyder@access-company.com>
1790 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1791 True and false paths are mutually exclusive.
1793 * event-top.c (command_line_handler): Add pedantic return.
1795 * f-valprint.c (info_common_command): Bail out to prevent null
1796 pointer deref. Break up a long line.
1798 * exec.c (xfer_memory): Remove redundant condition from 'if'.
1800 * symfile.c (reread_separate_symbols): Free xmalloced memory.
1802 * printcmd.c (build_address_symbolic): Remove dead code and dead
1805 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
1807 * linespec.c (minsym_found): Advance to the next line if possible.
1809 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
1811 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
1812 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
1813 solib-svr4.o, and add solib-target.o
1815 2007-07-27 Michael Snyder <msnyder@access-company.com>
1817 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
1819 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
1821 * MAINTAINERS (Write After Approval): Add myself.
1823 2007-07-26 Maciej W. Rozycki <macro@mips.com>
1825 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
1828 2007-07-25 Maciej W. Rozycki <macro@mips.com>
1830 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
1832 2007-07-24 Michael Snyder <msnyder@access-company.com>
1834 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
1835 'buffer' must cover both branches that call strcmp (Coverity).
1837 * stack.c (print_frame_args): Check return value of lookup_symbol.
1839 * ax-gdb.c (find_field): Guard against null ptr.
1841 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1843 * regformats/reg-spu.dat: Fix order of npc, id registers.
1845 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
1847 * target.c (memory_xfer_partial): Accesses to unmapped overlay
1848 sections should always go to the executable file.
1850 2004-07-20 Chris Dearman <chris@mips.com>
1852 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
1853 prologue instructions.
1855 2007-07-20 Maciej W. Rozycki <macro@mips.com>
1857 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
1860 2007-07-20 Chris Dearman <chris@mips.com>
1861 Maciej W. Rozycki <macro@mips.com>
1863 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
1866 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
1867 Daniel Jacobowitz <dan@codesourcery.com>
1869 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
1870 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
1872 * NEWS: Mention gdbserver DLL support.
1874 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
1876 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
1878 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
1880 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
1883 2007-07-13 Kevin Buettner <kevinb@redhat.com>
1885 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
1888 2007-07-12 Kevin Buettner <kevinb@redhat.com>
1890 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
1891 (mep_analyze_prologue): Add case for BRA instruction.
1893 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
1895 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
1897 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
1899 * breakpoint.c: Include "top.h".
1900 (breakpoint_1): Don't set convenience variable $_ if server prefix
1902 (_initialize_breakpoint): Describe this behaviour in command help.
1904 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
1906 * solib-target.c (library_list_start_segment): Cast address to
1909 2007-07-06 Mark Kettenis <kettenis@gnu.org>
1911 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
1912 for terminated processes.
1914 2007-07-05 Michael Snyder <msnyder@access-company.com>
1916 * event-top.c (cli_command_loop): Prompt string can (and should)
1917 be freed after call to readline (Coverity). Also move local var
1918 declarations into block where they are used.
1920 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
1921 should) be freed after call to readline (Coverity). Also move
1922 local var declarations into block where they are used.
1924 2007-07-03 Andreas Schwab <schwab@suse.de>
1926 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
1929 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
1930 Thiago Bauermann <bauerman@br.ibm.com>
1931 Joseph S. Myers <joseph@codesourcery.com>
1932 Daniel Jacobowitz <dan@codesourcery.com>
1934 * remote.c (remote_check_symbols): Use
1935 gdbarch_convert_from_func_ptr_addr.
1936 * infcall.c (find_function_addr): Handle function descriptors
1937 without debugging information.
1938 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
1939 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
1940 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
1941 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
1942 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
1943 allow SEC_CODE and SEC_DATA.
1944 (enable_break): Update calls. Pass current_target to solib_add.
1945 Use gdbarch_convert_from_func_ptr_addr.
1947 2007-07-03 Ilko Iliev <iliev@ronetix.at>
1948 Daniel Jacobowitz <dan@codesourcery.com>
1950 * symfile.c (print_transfer_performance): Avoid integer overflow.
1953 2007-07-03 Markus Deuling <deuling@de.ibm.com>
1955 * cp-namespace.c (lookup_symbol_file): Add block to
1956 lookup_symbol_global call.
1957 * Makefile.in (solist_h): Add dependency on symtab header.
1958 (symtab.o): Add dependency on solist header.
1959 * solib.c (solib_global_lookup): New function.
1960 * solib-svr4.c (scan_dyntag): Likewise.
1961 (elf_locate_base): Call helper routine scan_dyntag.
1962 (elf_lookup_lib_symbol): New function.
1963 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
1964 * solist.h (symtab.h): New include.
1965 (struct target_so_ops): New member lookup_lib_global_symbol.
1966 (solib_global_lookup): New prototype.
1967 * symtab.c: New include solist.h.
1968 (lookup_objfile_from_block): New function.
1969 (lookup_global_symbol_from_objfile): New function.
1970 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
1971 (lookup_symbol_global): Call library-specific lookup procedure.
1972 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
1974 * NEWS: Document framework.
1976 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1978 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
1981 * cli/cli-script.c (build_command_line): Update NULL check.
1983 2007-07-02 Michael Snyder <msnyder@access-company.com>
1985 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
1987 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1989 * Makefile.in (XMLFILES): Add library-list.dtd.
1990 (ALLDEPFILES): Add solib-target.o.
1991 (solib-target.o): New rule.
1992 * remote.c (PACKET_qXfer_libraries): New constant.
1993 (remote_protocol_features): Add qXfer:libraries:read.
1994 (remote_wait): Recognize library stop replies.
1995 (remote_async_wait): Likewise. Fix typo.
1996 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1997 (init_remote_async_ops): Fix typo.
1998 (_initialize_remote): Register "set remote library-info-packet".
1999 * solib-som.c (som_current_sos): Set addr_low and addr_high.
2000 * solib-target.c: New file.
2001 * solib.c (solib_map_sections): Use addr_low and addr_high instead
2003 (info_sharedlibrary_command): Likewise.
2004 (solib_add_library, solib_remove_library): New.
2005 * solist.h (struct so_list): Replace textsection with addr_low and
2007 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
2008 * NEWS: Describe new qXfer:libraries:read and shared library
2010 * features/library-list.dtd: New.
2012 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2014 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
2015 (start_remote): Use STOP_QUIETLY_REMOTE.
2016 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
2017 support on a SOLIB_ADD definition. Update breakpoints_inserted.
2018 Update to match shared library event breakpoint support. Only
2019 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
2020 (normal_stop): Handle TARGET_WAITKIND_LOADED.
2021 * fork-child.c (startup_inferior): Do not set
2022 inferior_ignoring_startup_exec_events
2023 * inferior.h (inferior_ignoring_startup_exec_events): Delete
2025 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
2027 2007-07-02 Markus Deuling <deuling@de.ibm.com>
2029 * breakpoint.c (insert_bp_location): Remove dead code
2030 (DISABLE_UNSETTABLE_BREAK).
2031 (disable_breakpoints_in_shlibs)
2032 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
2034 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2036 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
2037 Call insert_bp_location.
2039 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
2041 * core-regset.c (fetch_core_registers): Work around gcc 3.4
2044 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2046 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
2049 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2051 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
2052 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
2053 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
2054 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
2055 to display_gdb_prompt.
2057 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2060 * target.c (memory_xfer_partial): Do not continue past targets with
2063 2007-06-30 Andreas Schwab <schwab@suse.de>
2065 * m68k-tdep.c (m68k_ps_type): New.
2066 (m68k_init_types): New.
2067 (m68k_register_type): Use m68k_ps_type for PS register.
2068 (_initialize_m68k_tdep): Call m68k_init_types.
2070 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
2071 from the generic m68k arch.
2073 2007-06-28 Michael Snyder <msnyder@access-company.com>
2075 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
2078 * linux-thread-db.c (thread_db_get_thread_local_address): Add
2079 gdb_assert before using return value of find_thread_pid (Coverity).
2081 * source.c (unset_substitute_path_command): Plug leak (Coverity).
2083 * cli/cli-script.c (build_command_line): Add null pointer guard
2086 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
2088 * linux-thread-db.c (thread_db_attach): Delete.
2089 (thread_db_detach): Typo fix. Call target_mourn_inferior
2090 instead of fixing up proc_handle.
2091 (have_threads_callback, have_threads): New functions.
2092 (thread_db_wait): Remove dead proc_handle.pid check. Only
2093 translate PTIDs if we have registered threads. Check for new
2094 threads if we have none.
2095 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
2096 (find_new_threads_callback): Only enable event reporting if TID == 0.
2097 (same_ptid_callback): New.
2098 (thread_db_get_thread_local_address): Check for new threads.
2099 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
2100 or to_post_startup_inferior.
2102 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2104 * infrun.c (adjust_pc_after_break): Do not assume software single-step
2105 is always active if SOFTWARE_SINGLE_STEP_P is true.
2106 (resume): Use gdbarch_software_single_step[_p] instead of
2107 SOFTWARE_SINGLE_STEP[_P].
2108 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
2110 * gdbarch.sh (software_single_step): Remove target macro.
2111 * gdbarch.h, gdbarch.c: Regenerate.
2113 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2115 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2116 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2117 (struct gdbarch_swap, struct gdbarch_swap_registration,
2118 struct gdbarch_swap_registry, gdbarch_swap_registry,
2119 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2120 current_gdbarch_swap_in_hack): Remove.
2121 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2122 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2123 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2124 (deprecated_current_gdbarch_select_hack): Likewise.
2125 * gdbarch.h, gdbarch.c: Regenerate.
2127 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2129 * infrun.c (clear_proceed_status): Clean up stop_registers.
2130 (normal_stop): Allocate regcache for stop_registers.
2131 (struct inferior_status): Remove stop_registers member.
2132 (save_inferior_status): Do not save stop_registers.
2133 (restore_inferior_status): Do not restore stop_registers.
2134 (discard_inferior_status): Do not discard stop_registers.
2135 (build_infrun): Remove.
2136 (_initialize_infrun): Do not swap stop_registers.
2138 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2140 * remote.c (remote_address_masked): If remote_address_size is zero,
2141 default to target address size.
2142 (build_remote_gdbarch_data): Remove.
2143 (_initialize_remote): Do not swap remote_address_size.
2145 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2147 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2148 builtin_type_char, builtin_type_short, builtin_type_int,
2149 builtin_type_long, builtin_type_signed_char,
2150 builtin_type_unsigned_char, builtin_type_unsigned_short,
2151 builtin_type_unsigned_int, builtin_type_unsigned_long,
2152 builtin_type_float, builtin_type_double, builtin_type_long_double,
2153 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2154 builtin_type_bool, builtin_type_long_long,
2155 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2156 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2157 variable declaration with compatibility macro.
2158 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2159 builtin_type_char, builtin_type_short, builtin_type_int,
2160 builtin_type_long, builtin_type_signed_char,
2161 builtin_type_unsigned_char, builtin_type_unsigned_short,
2162 builtin_type_unsigned_int, builtin_type_unsigned_long,
2163 builtin_type_float, builtin_type_double, builtin_type_long_double,
2164 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2165 builtin_type_bool, builtin_type_long_long,
2166 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2167 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2168 (build_gdbtypes): Remove.
2169 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2170 opaque-type-resolution command here. Do not call
2171 deprecated_register_gdbarch_swap.
2173 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2175 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2176 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2177 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2179 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2180 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2181 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2182 (build_parse): Remove.
2183 (_initialize_parse): Do not call build_parse. Do not register
2184 msym_ types for gdbarch-swapping.
2186 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2187 instead of creating private type.
2189 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2190 (_initialize_xcoffread): Do not initialized them.
2191 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2193 * mdebugread.c (nodebug_func_symbol_type): Remove.
2194 (nodebug_var_symbol_type): Remove.
2195 (_initialize_mdebugread): Do not initialize them.
2196 (parse_symbol): Use builtin nodebug_ type instead of them.
2197 (parse_procedure): Likewise.
2199 2007-06-21 Chris Dearman <chris@mips.com>
2201 * printcmd.c (do_one_display): If display/i, start with an initial
2202 line feed to avoid bad layout if there is a branch delay slot.
2204 2007-06-21 Nigel Stephens <nigel@mips.com>
2205 Maciej W. Rozycki <macro@mips.com>
2207 * disasm.c (gdb_print_insn): Return the number of branch delay
2208 slot instructions too.
2209 * disasm.h (gdb_print_insn): Update prototype.
2210 * printcmd.c (branch_delay_insns): New variable to record the
2211 number of delay slot instructions after disassembling a branch.
2212 (print_formatted): Record the number of branch delay slot
2214 (do_examine): When disassembling, if the last instruction
2215 disassembled has any branch delay slots, then bump the count so
2216 that they get disassembled too.
2217 * tui/tui-disasm.c (tui_disassemble): Update the call to
2219 * NEWS: Document the new behaviour.
2221 2007-06-21 Andreas Schwab <schwab@suse.de>
2223 * regcache.c (write_pc_pid): Restore missing else.
2225 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
2227 * regcache.c (regcache_print): Use get_current_regcache ()
2228 instead of current_regcache.
2230 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
2233 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2234 instead of bfd_make_section_anyway.
2235 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
2236 when clearing SEC_LOAD.
2238 2007-06-19 Joseph Myers <joseph@codesourcery.com>
2240 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2241 registers for big-endian.
2243 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2245 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2246 * disasm.c (dump_insns, gdb_print_insn): Likewise.
2247 * gdbarch.c, gdbarch.h: Regenerate.
2249 2007-06-19 Markus Deuling <deuling@de.ibm.com>
2251 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2252 gdbarch_believe_pcc_promotion.
2253 * stabsread.c (define_symbol): Likewise.
2254 Remove unnecessary definition.
2255 * coffread.c (process_coff_symbol): Remove unnecessary code.
2256 * gdbarch.c, gdbarch.h: Regenerate.
2258 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
2260 * configure.ac: Do not use ${objdir}.
2261 * configure: Regenerated.
2263 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
2265 * gdbarch.sh (deprecated_register_size): Remove.
2266 * gdbarch.h, gdbarch.c: Regenerate.
2268 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2269 by INT_REGISTER_SIZE.
2270 (thumb_get_next_pc, arm_return_in_memory): Likewise.
2271 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2272 * ia64-tdep.c (ia64_gdbarch_init): Do not call
2273 set_gdbarch_deprecated_register_size.
2275 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2277 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2278 gdbarch_deprecated_fp_regnum.
2279 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2280 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2281 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2282 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2284 * gdbarch.c, gdbarch.h: Regenerate.
2286 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2288 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2289 gdbarch_extract_return_value.
2290 * value.c (generic_use_struct_convention): Likewise (comment).
2291 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2292 * arch-utils.c (legacy_return_value): Likewise.
2293 * arch-utils.h (legacy_return_value): Likewise (comment).
2294 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2295 gdbarch_store_return_value.
2296 * stack.c (return_command): Likewise (comment).
2297 * arch-utils.h (legacy_return_value): Likewise (comment).
2298 * arch-utils.c (legacy_return_value): Likewise.
2299 * gdbarch.c, gdbarch.h: Regenerate.
2301 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2303 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2304 gdbarch_deprecated_use_struct_convention.
2305 * arch-utils.c (legacy_return_value): Likewise.
2306 * gdbarch.c, gdbarch.h: Regenerate.
2308 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2310 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2311 gdbarch_deprecated_function_start_offset.
2312 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2313 * linespec.c (minsym_found): Likewise.
2314 * infrun.c (handle_inferior_event): Likewise.
2315 * infcall.c (find_function_addr): Likewise.
2316 * cli/cli-cmds.c (disassemble_command): Likewise.
2317 * gdbarch.c, gdbarch.h: Regenerate.
2319 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2321 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2322 gdbarch_deprecated_reg_struct_has_addr.
2323 * infcall.c (call_function_by_hand): Likewise.
2324 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2325 * gdbarch_deprecated_reg_struct_has_addr_p.
2326 * infcall.c (call_function_by_hand): Likewise.
2327 * gdbarch.c, gdbarch.h: Regenerate.
2329 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2331 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2332 * sh-tdep.c (sh_extract_struct_value_address): Remove.
2333 (sh_gdbarch_init): Remove
2334 set_gdbarch_deprecated_extract_struct_value_address.
2335 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2336 (sh64_gdbarch_init): Remove
2337 set_gdbarch_deprecated_extract_struct_value_address.
2338 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2339 (ia64_gdbarch_init): Remove
2340 set_gdbarch_deprecated_extract_struct_value_address.
2341 * frv-tdep.c (frv_extract_struct_value_address): Remove.
2342 (frv_gdbarch_init): Remove
2343 set_gdbarch_deprecated_extract_struct_value_address.
2344 * gdbarch.c, gdbarch.h: Regenerate.
2346 2007-06-18 Markus Deuling <deuling@de.ibm.com>
2348 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2349 * v850-tdep.c (v850_unwind_sp): Likewise.
2350 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2351 * stack.c (frame_info): Likewise.
2352 * stabsread.c (define_symbol): Likewise.
2353 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2354 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2355 (sh_unwind_sp): Likewise.
2356 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2357 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2358 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2359 (rs6000_frame_cache): Likewise.
2360 * rs6000-nat.c (store_register): Likewise.
2361 * remote-mips.c (mips_wait): Likewise.
2362 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2363 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2364 (ppc64_sysv_abi_push_dummy_call): Likewise.
2365 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2366 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2367 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2368 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2369 * m32r-rom.c (m32r_supply_register): Likewise.
2370 * frame.c (frame_sp_unwind): Likewise.
2371 * mips-tdep.c (mips_insn16_frame_cache)
2372 (mips_insn32_frame_cache): Likewise (comment).
2373 * m68klinux-nat.c (supply_gregset): Likewise.
2374 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2375 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2376 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2377 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2378 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2379 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2380 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2381 (cris_register_type, crisv32_register_type)
2382 (cris_dwarf2_frame_init_reg): Likewise.
2383 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2384 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2385 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2386 * libunwind-frame.c (libunwind_frame_cache): Likewise.
2388 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2389 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2390 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2391 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2392 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2393 * v850-tdep.c (v850_unwind_pc): Likewise.
2394 * stack.c (frame_info): Likewise.
2395 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2396 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2397 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2398 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2399 (sh_dsp_show_regs): Likewise.
2400 * shnbsd-tdep.c (shnbsd_supply_gregset)
2401 (shnbsd_collect_gregset): Likewise.
2402 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2403 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2404 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2405 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2406 (6000_register_reggroup_p, rs6000_unwind_pc)
2407 (rs6000_frame_cache): Likewise.
2408 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2409 (rs6000_store_inferior_registers): Likewise.
2410 * remote-mips.c (mips_wait, mips_load): Likewise.
2411 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2412 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2413 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2414 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2415 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2416 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2417 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2418 (store_ppc_registers, fill_gregset): Likewise.
2419 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2420 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2421 * mipsnbsd-nat.c (getregs_supplies): Likewise.
2422 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2423 * m68klinux-nat.c (supply_gregset): Likewise.
2424 * irix5-nat.c (fill_gregset): Likewise.
2425 * i386-tdep.c (i386_unwind_pc): Likewise.
2426 * i386-linux-nat.c (i386_linux_resume): Likewise.
2427 * frame.c (get_prev_frame_1): Likewise.
2428 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2429 * dbug-rom.c (dbug_supply_register): Likewise.
2430 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2431 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2432 (cris_register_type, crisv32_register_type, crisv32_register_name)
2433 (cris_dwarf2_frame_init_reg, find_step_target)
2434 (cris_software_single_step, cris_supply_gregset)
2435 (cris_regnums): Likewise.
2436 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2437 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2438 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2439 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2440 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2442 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2443 * dbug-rom.c (dbug_supply_register): Likewise.
2444 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2445 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2446 * win32-nat.c (win32_resume): Likewise.
2447 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2448 * m68k-tdep.c (m68k_register_type): Likewise.
2449 * m68klinux-nat.c (supply_gregset): Likewise.
2451 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2452 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2453 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2454 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2455 (fv_reg_base_num, dr_reg_base_num): Likewise.
2456 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2457 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2458 (sh64_extract_return_value, sh64_store_return_value)
2459 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2460 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2461 * procfs.c (procfs_fetch_registers, procfs_store_registers)
2462 (invalidate_cache): Likewise.
2463 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2464 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2465 (mipsnbsd_fill_fpreg): Likewise.
2466 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2467 (mipsnbsd_store_inferior_registers): Likewise.
2468 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2469 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2470 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2471 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2472 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2473 (fill_fpregset): Likewise.
2474 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2475 * i386-tdep.h (struct_return): Likewise (comment).
2476 * i386-nto-tdep.c (i386nto_register_area): Likewise.
2477 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2478 (go32_store_registers): Likewise.
2479 * alpha-tdep.c (alpha_next_pc): Likewise.
2480 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2481 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2482 (alphabsd_store_inferior_registers): Likewise.
2483 * core-regset.c (fetch_core_registers): Likewise.
2484 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2486 * gdbarch.c, gdbarch.h: Regenerate.
2488 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
2490 * coffread.c (coff_sym_fns): Add default_symfile_segments.
2491 * dbxread.c (start_psymtab): Check HAVE_ELF.
2492 (aout_sym_fns): Likewise.
2493 * elfread.c (elf_symfile_segments): New.
2494 (elf_sym_fns): Add elf_symfile_segments.
2495 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2496 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2497 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
2498 * somread.c (som_sym_fns): Use default_symfile_segments.
2499 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2500 (init_objfile_sect_indices): Call symfile_find_segment_sections.
2501 (default_symfile_segments): New function.
2502 (syms_from_objfile): Update call to find_sym_fns.
2503 (symfile_get_segment_data, free_symfile_segment_data): New.
2504 (symfile_map_offsets_to_segments): New.
2505 (symfile_find_segment_sections): New.
2506 * symfile.h (struct symfile_segment_data): New.
2507 (struct sym_fns): Add sym_segments.
2508 (default_symfile_segments, symfile_get_segment_data)
2509 (free_symfile_segment_data): New prototypes.
2510 (symfile_map_offsets_to_segments): Likewise.
2511 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2512 * Makefile.in (COMMON_OBS): Remove elfread.o.
2513 (elf_internal_h): New.
2514 (elfread.o): Update.
2515 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2517 * config.in, configure: Regenerated.
2518 * NEWS: Mention qOffsets changes.
2520 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2522 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2523 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2524 Replace global variable declaration with compatibility macro.
2525 (struct builtin_m2_type): New data type.
2526 (builtin_m2_type): Add prototype.
2527 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2528 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2529 Remove global variables.
2530 (m2_language_arch_info): Use builtin_m2_type instead of variables.
2531 (build_m2_types): New function.
2532 (m2_type_data): New variable.
2533 (builtin_m2_type): New function.
2534 (_initialize_m2_language): Do not build data types. Register
2535 m2_type_data per-gdbarch data.
2537 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2539 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2540 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2541 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2542 builtin_type_f_real_s8, builtin_type_f_real_s16,
2543 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2544 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2545 variable declaration with compatibility macro.
2546 (struct builtin_f_type): New data type.
2547 (builtin_f_type): Add prototype.
2548 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2549 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2550 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2551 builtin_type_f_real_s8, builtin_type_f_real_s16,
2552 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2553 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2554 (f_language_arch_info): Use builtin_f_type instead of variables.
2555 (build_fortran_types): Build builtin_f_type structure instead of
2556 setting global type variables.
2557 (f_type_data): New variable.
2558 (builtin_f_type): New function.
2559 (_initialize_f_language): Do not call build_fortran_types. Do not
2560 swap global type variables. Register f_type_data per-gdbarch data.
2562 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2564 * f-lang.c (_initialize_f_language): Do not initialize or
2565 swap builtin_type_string.
2567 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2569 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2570 value_of_builtin_frame_reg): Remove.
2571 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
2572 inactive call to value_of_builtin_frame_reg.
2574 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2576 * gdbarch.sh (bfd_vma_bit): Remove.
2577 * gdbarch.c, gdbarch.h: Regenerate.
2579 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2580 * gdbtypes.h (builtin_bfd_vma_type): Remove.
2581 (build_gdbtypes): Do not initialize it.
2582 (_initialize_gdbtypes): Do not swap it.
2584 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2586 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
2587 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2588 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2589 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2590 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2591 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2592 builtin_type_vec64, builtin_type_vec128): Remove.
2593 (init_simd_type): Remove.
2594 (init_vector_type): Make global.
2595 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2596 (build_gdbtypes): Do not build vector types.
2597 (_initialize_gdbtypes): Do not swap vector types.
2598 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
2599 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2600 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2601 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2602 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
2603 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2604 builtin_type_vec64, builtin_type_vec128): Remove declarations.
2605 (init_vector_type): Add prototype.
2607 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2608 i386_sse_type members.
2609 (i386_mmx_type, i386_sse_type): Change from variables to functions.
2610 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2611 (i386_init_types): Do not build vector types.
2612 (i386_mmx_type, i386_sse_type): New functions.
2613 (i386_register_type): Call them instead of using global variables.
2614 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2615 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2616 of using global variable.
2618 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2619 and ppc_builtin_type_vec128 members.
2620 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2621 (rs6000_builtin_type_vec128): Likewise.
2622 (rs6000_register_type): Call them instead of using builtin_type_vec64
2623 and builtin_type_vec128.
2624 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2626 * spu-tdep.c (struct gdbarch_tdep): New data type.
2627 (spu_builtin_type_vec128): Remove variable.
2628 (spu_builtin_type_vec128): New function.
2629 (spu_register_type): Call it instead of using global variable.
2630 (spu_gdbarch_init): Allocate tdep structure.
2631 (spu_init_vector_type): Remove function.
2632 (_initialize_spu_tdep): Do not call it.
2634 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2636 * amd64-tdep.c (struct amd64_register_info): Remove.
2637 (amd64_register_info): Remove.
2638 (amd64_register_names): New static variable.
2639 (AMD64_NUM_REGS): Use amd64_register_names instead of
2640 amd64_register_info.
2641 (amd64_register_name): Likewise.
2642 (amd64_register_type): Do not refer to amd64_register_info.
2644 * s390-tdep.c (struct s390_register_info): Remove.
2645 (s390_register_info): Remove.
2646 (s390_register_name): Do not refer to s390_register_info.
2647 (s390_register_type): Likewise.
2649 * sparc64-tdep.c (struct sparc64_register_info): Remove.
2650 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2651 (sparc64_register_names, sparc64_pseudo_register_names): New.
2652 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2653 sparc64_register_names and sparc64_pseudo_register_names instead of
2654 sparc64_register_info and sparc64_pseudo_register_info.
2655 (sparc64_register_name): Likewise.
2656 (sparc64_register_type): Do not refer to sparc64_register_info
2657 and sparc64_pseudo_register_info.
2659 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2661 * c-lang.c (cplus_builtin_types): Remove.
2662 (enum cplus_primitive_types): New data type.
2663 (cplus_language_arch_info): New function.
2664 (cplus_language_defn): Set la_language_arch_info member. Do not set
2665 la_builtin_type_vector and string_char_type members.
2667 * f-lang.c (f_builtin_types): Remove.
2668 (enum f_primitive_types): New data type.
2669 (f_language_arch_info): New function.
2670 (f_language_de): Set la_language_arch_info member. Do not set
2671 la_builtin_type_vector and string_char_type members.
2673 * m2-lang.c (m2_builtin_types): Remove.
2674 (enum m2_primitive_types): New data type.
2675 (m2_language_arch_info): New function.
2676 (m2_language_defn): Set la_language_arch_info member. Do not set
2677 la_builtin_type_vector and string_char_type members.
2679 * objc-lang.c (objc_builtin_types): Remove.
2680 (objc_language): Set la_language_arch_info member. Do not set
2681 la_builtin_type_vector and string_char_type members.
2683 * p-lang.c (pascal_builtin_types): Remove.
2684 (enum pascal_primitive_types): New data type.
2685 (pascal_language_arch_info): New function.
2686 (pascal_language_defn): Set la_language_arch_info member. Do not set
2687 la_builtin_type_vector and string_char_type members.
2689 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2691 * regcache.c (struct regcache): Add ptid_t member.
2692 (regcache_xmalloc): Initialize it.
2693 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2694 (regcache_dup): Likewise.
2695 (regcache_dup_no_passthrough): Likewise.
2696 (current_regcache): Make static.
2697 (registers_ptid): Remove variable.
2698 (get_thread_regcache): New function.
2699 (get_current_regcache): New function.
2700 (registers_changed): Implement by freeing current regcache.
2701 (regcache_raw_read): Do not refer to current_regcache. Set
2702 inferior_ptid to regcache->ptid while calling target routines.
2703 (regcache_raw_write): Likewise.
2704 (regcache_raw_supply): Do not refer to current_regcache.
2705 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
2706 (write_pc_pid): Likewise.
2707 (build_regcache): Remove.
2708 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2709 or deprecated_register_gdbarch_swap. Do not initialize
2711 * regcache.h (get_current_regcache): Add prototype.
2712 (get_thread_regcache): Likewise.
2713 (current_regcache): Remove declaration.
2715 * corelow.c (core_open): Replace current_regcache by
2716 get_current_regcache ().
2717 * frame.c (frame_pop): Likewise.
2718 (put_frame_register): Likewise.
2719 (get_current_frame, create_new_frame): Likewise.
2720 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2721 * stack.c (return_command): Likewise.
2722 * infcall.c (call_function_by_hand): Likewise.
2723 * infrun.c (resume): Likewise.
2724 (save_inferior_status, restore_inferior_status): Likewise.
2725 * linux-fork.c (fork_load_infrun_state): Likewise.
2726 (fork_save_infrun_state): Likewise.
2727 * win32-nat.c (win32_resume): Likewise.
2728 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2729 * monitor.c (monitor_wait): Likewise.
2730 * remote.c (remote_wait): Likewise.
2731 * remote-mips.c (mips_wait): Likewise.
2733 * bsd-kvm.c (bsd_kvm_open): Likewise
2734 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2735 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2736 * i386-linux-nat.c (i386_linux_resume): Likewise.
2737 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2738 (ia64_linux_stopped_data_address): Likewise.
2740 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2741 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2742 * mep-tdep.c (current_me_module, current_options): Likewise.
2743 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2745 * linux-nat.c (linux_nat_do_thread_registers): Use thread
2746 regcache instead of current_regcache. Call target_fetch_registers.
2747 (linux_nat_corefile_thread_callback): Update call site.
2748 (linux_nat_do_registers): Likewise.
2749 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2750 of current_regcache.
2751 (procfs_make_note_section): Likewise.
2752 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2753 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2754 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2755 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2757 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2759 * regcache.c (read_register, read_register_pid): Remove.
2760 (write_register, write_register_pid): Likewise.
2761 * regcache.h (read_register, read_register_pid): Remove prototype.
2762 (write_register, write_register_pid): Likewise.
2764 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2766 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
2767 (write_pc): Likewise. Remove default implementation, add predicate.
2768 * gdbarch.c, gdbarch.h: Regenerate.
2769 * regcache.c (read_pc_pid): Use current regcache instead of calling
2771 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2773 (generic_target_write_pc): Remove.
2774 * inferior.h (generic_target_write_pc): Remove.
2775 * frv-tdep.c (frv_gdbarch_init): Do not install it.
2776 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2777 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2778 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2779 * sh-tdep.c (sh_gdbarch_init): Likewise.
2780 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2782 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
2783 argument. Use REGCACHE instead of calling read_register_pid.
2784 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2785 * hppa-tdep.c (hppa_read_pc): Likewise.
2786 * hppa-tdep.h (hppa_read_pc): Likewise.
2787 * ia64-tdep.c (ia64_read_pc): Likewise.
2788 * m32r-tdep.c (m32r_read_pc): Likewise.
2789 * mep-tdep.c (mep_read_pc): Likewise.
2790 * mn10300-tdep.c (mn10300_read_pc): Likewise.
2791 * spu-tdep.c (spu_read_pc): Likewise.
2793 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
2794 argument. Use REGCACHE instead of calling write_register_pid.
2795 * avr-tdep.c (avr_write_pc): Likewise.
2796 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
2797 * hppa-tdep.c (hppa_write_pc): Likewise.
2798 * hppa-tdep.h (hppa_write_pc): Likewise.
2799 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
2800 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
2801 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
2802 * ia64-tdep.c (ia64_write_pc): Likewise.
2803 * ia64-tdep.h (ia64_write_pc): Likewise.
2804 * m32r-tdep.c (m32r_write_pc): Likewise.
2805 * m88k-tdep.c (m88k_write_pc): Likewise.
2806 * mep-tdep.c (mep_write_pc): Likewise.
2807 * mips-tdep.c (mips_write_pc): Likewise.
2808 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2809 * mn10300-tdep.c (mn10300_write_pc): Likewise.
2810 * sparc-tdep.c (sparc_write_pc): Likewise.
2811 * spu-tdep.c (spu_write_pc): Likewise.
2813 * mips-tdep.c (read_signed_register): Remove.
2814 (read_signed_register_pid): Likewise.
2815 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
2816 Use REGCACHE instead of calling read_signed_register_pid.
2818 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2820 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
2821 * gdbarch.c, gdbarch.h: Regenerate.
2822 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
2823 (push_dummy_code): Likewise. Pass it to callee.
2824 (call_function_by_hand): Pass current regcache to push_dummy_code.
2826 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
2827 argument. Use it instead of current_regcache.
2829 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
2830 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2832 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2834 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
2835 * gdbarch.c, gdbarch.h: Regenerate.
2836 * infrun.c (handle_inferior_event): Pass current frame to
2837 gdbarch_get_longjmp_target.
2839 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
2840 Read registers from FRAME instead of using read_register.
2841 Use get_frame_arch instead of current_gdbarch.
2842 * arm-tdep.c (arm_get_longjmp_target): Likewise.
2843 * i386-tdep.c (i386_get_longjmp_target): Likewise.
2844 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2845 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
2846 (mips64_linux_get_longjmp_target): Likewise.
2847 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2849 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2851 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
2852 * gdbarch.c, gdbarch.h: Regenerate.
2853 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
2854 * arch-utils.h (generic_skip_trampoline_code): Likewise.
2855 * infrun.c (handle_inferior_event): Pass current frame to
2856 gdbarch_skip_trampoline_code and skip_language_trampoline.
2858 * language.c (unk_lang_trampoline): Add FRAME argument.
2859 (skip_language_trampoline): Add FRAME argument. Pass it to
2860 skip_trampoline callback.
2861 * language.h: Add forward declaration of struct frame_info.
2862 (struct language_defn): Add FRAME argument to skip_trampoline.
2863 (skip_language_trampoline): Add FRAME argument.
2864 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
2865 to skip_trampoline callback.
2866 * cp-abi.h: Add forward declaration of struct frame_info.
2867 (cplus_skip_trampoline): Add FRAME argument.
2868 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
2869 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
2870 to gdbarch_skip_trampoline_code.
2871 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
2872 to gdbarch_skip_trampoline_code.
2874 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
2875 * symtab.h (find_solib_trampoline_target): Likewise.
2876 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
2877 find_solib_trampoline_target.
2879 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
2880 from FRAME instead of calling read_register.
2882 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
2883 argument. Read registers from FRAME instead of using read_register.
2884 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
2885 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
2887 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
2890 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
2892 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
2893 registers from FRAME instead of using read_signed_register.
2895 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
2897 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
2898 instead of using read_register.
2899 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
2900 ppc64_standard_linkage_target.
2901 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
2902 Pass it to find_solib_trampoline_target. Read registers from FRAME
2903 instead of using read_register.
2905 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
2908 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2910 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
2912 * gdbarch.c, gdbarch.h: Regenerate.
2913 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
2915 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
2916 registers from FRAME instead of using read_register.
2917 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2918 to alpha_next_pc. Use get_frame_pc instead of read_pc.
2919 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
2922 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
2923 from FRAME instead of using read_register.
2924 (thumb_get_next_pc): Likewise.
2925 (arm_get_next_pc): Likewise.
2926 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2927 to arm_get_next_pc. Use get_frame_pc instead of read_register.
2928 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
2931 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
2932 from FRAME instead of using read_register.
2933 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2934 to find_step_target.
2936 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
2937 from FRAME instead of using read_register / read_signed_register.
2938 (extended_mips16_next_pc): Likewise.
2939 (mips16_next_pc): Likewise.
2940 (mips_next_pc): Likewise.
2941 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2942 to mips_next_pc. Use get_frame_pc instead of read_pc.
2943 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
2946 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
2947 of current frame. Read registers from FRAME.
2948 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
2949 branch_dest. Use get_frame_pc instead of read_pc.
2950 (rs6000_software_single_step): Likewise.
2951 (bl_to_blrl_insn_p): Do not call branch_dest.
2952 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
2955 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
2956 Read registers from FRAME instead of current regcache.
2957 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
2958 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
2959 * sparc-tdep.c (sparc_address_from_register): Remove.
2960 (sparc_analyze_control_transfer): Pass FRAME argument instead of
2961 GDBARCH. Pass FRAME to step_trap callback.
2962 (sparc_step_trap): Add FRAME argument.
2963 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
2964 to sparc_analyze_control_transfer. Read registers from FRAME instead
2965 of calling sparc_address_from_register.
2966 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
2968 (sparc_address_from_register): Remove prototype.
2969 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
2970 (sparcnbsd_step_trap): Add FRAME argument.
2972 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
2973 by FRAME. Read registers from FRAME instead of REGCACHE.
2975 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2977 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
2978 instead of calling read_register.
2980 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
2981 calling write_register.
2983 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
2984 calling write_register.
2986 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
2987 instead of calling read_register.
2988 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
2989 instead of calling read_register and write_register.
2991 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
2992 instead of current_regcache.
2994 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
2995 of calling write_register.
2996 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
2997 parameter instead of current_regcache.
2999 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
3000 instead of calling read_register.
3001 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
3002 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
3003 (mips_n32n64_push_dummy_call): Likewise.
3004 (mips_o32_push_dummy_call): Likewise.
3005 (mips_o64_push_dummy_call): Likewise.
3007 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
3008 parameter instead of current_regcache.
3010 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
3011 Use it instead of read_register and write_register.
3012 (xtensa_register_read_masked): Likewise.
3013 (xtensa_pseudo_register_read): Update call.
3014 (xtensa_pseudo_register_write): Likewise.
3015 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
3016 instead of calling read_register.
3017 (xtensa_push_dummy_call): Update comment.
3019 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3021 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
3022 by frame_unwind_register_signed calls.
3023 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
3024 frame allocations when called with NULL NEXT_FRAME parameter.
3025 (read_next_frame_reg): Remove.
3027 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
3028 instead of reading the FPSCR register.
3029 (sh_frame_cache): Pass unwound FPSCR register value to
3030 sh_analyze_prologue.
3031 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
3033 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
3034 instead of reading the CTBP register.
3035 (v850_frame_cache): Pass unwound CTBP register value to
3036 v850_analyze_prologue.
3038 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3040 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
3041 * sh-tdep.c (sh_show_regs): Likewise.
3042 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
3043 (sh_generic_show_regs): Add FRAME parameter. Use register
3044 values from that frame instead of calling read_register.
3045 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
3046 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
3047 sh_dsp_show_regs): Likewise.
3048 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
3049 sh64_show_regs): Likewise.
3051 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3053 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
3054 current regcache instead of calling read_register.
3056 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3058 * mep-tdep.c (current_me_module): Read from current regcache
3059 instead of calling read_register.
3060 (current_options): Likewise.
3062 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3064 * cris-tdep.c (cris_stopped_data_address): Read register values
3065 from current frame instead of calling read_register.
3066 * frv-tdep.c (frv_stopped_data_address): Likewise.
3068 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3070 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
3071 instead of write_register (PC_REGNUM, ...).
3073 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3075 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
3076 explaining why the PC adjustment code is necessary.
3078 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
3080 * m68k-tdep.h (enum m68k_flavour): New.
3081 (struct gdbarch_tdep): New fields
3082 float_return, flavour and fpregs_present.
3083 * m68k-tdep.c (m68k_register_type): Use
3084 fpregs_present and conditionalize floating
3085 registers type on flavour.
3086 (m68k_register_names): New.
3087 (m68k_register_name): Use the above.
3088 (m68k_convert_register_p): Consult fpregs_present.
3089 (m68k_register_to_value, m68k_value_to_register):
3090 Use register_type to obtain the type of floating
3092 (m68k_svr4_extract_return_value): Check tdep->float_return.
3093 Use register_type to get the type of floating
3095 (m68k_svr4_store_return_value): Likewise.
3096 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
3097 (m68k_analyze_register_saves): Likewise.
3098 (m68k_gdbarch_init): Extract infromation
3099 from XML description, if present. Guess coldfire by
3100 looking at the file, if present. Conditionalize
3101 setting of long double format. Set decr_pc_after_break
3102 to 2 on coldfire and fido. Enable XML-driven
3103 register description.
3104 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
3105 size of tdep->fpreg_type, as opposed to hardcoded value.
3106 * Makefile.in (m68k-tdep.o): Update dependencies.
3108 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
3110 * NEWS: Mention "info spu" commands and qXfer:spu:read and
3111 qXfer:spu:write remote packet types.
3113 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3115 * xml-tdesc.c (tdesc_start_target): New.
3116 (target_attributes): New.
3117 (tdesc_elements): Use it.
3118 * features/gdb-target.dtd: Add #FIXED version attribute for
3121 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
3123 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3125 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
3127 * fork-child.c (fork_inferior): Update comment.
3129 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3131 * features/Makefile: Generate regformats for mips-linux and
3133 * features/sort-regs.xsl: Correct typo.
3134 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3135 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3138 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3140 * config/mips/linux.mh (TDEP_XML): New.
3141 * features/mips-linux.xml, features/mips64-linux.xml: New files.
3142 * mips-linux-nat.c (mips_linux_register_addr): Handle
3143 MIPS_RESTART_REGNUM.
3144 (mips64_linux_register_addr): Likewise.
3145 (super_xfer_partial, mips_linux_xfer_partial): New.
3146 (_initialize_mips_linux_nat): Add them to the target_ops.
3147 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3148 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3149 (mips_linux_o32_sigframe_init)
3150 (mips_linux_n32n64_sigframe_init): Likewise.
3151 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3152 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
3153 "org.gnu.gdb.mips.linux" feature.
3154 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3155 (mips_linux_restart_reg_p): New prototype.
3156 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3157 initialization routine.
3158 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3160 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3162 * Makefile.in (mips-tdep.o): Update.
3163 * mips-tdep.c (struct register_alias, mips_o32_aliases)
3164 (mips_n32_n64_aliases, mips_register_aliases): New.
3165 (mips_register_name): Call tdesc_register_name.
3166 (mips_tdesc_register_reggroup_p): New.
3167 (mips_pseudo_register_type, value_of_mips_user_reg): New.
3168 (mips_gdbarch_init): Add target-described register support.
3169 Register aliases for register names.
3170 * target-descriptions.c (tdesc_register_name): Make global.
3171 (tdesc_register_in_reggroup_p): New function, broken out from
3172 tdesc_register_reggroup_p.
3173 (tdesc_register_reggroup_p): Use it.
3174 * target-descriptions.h (tdesc_register_name)
3175 (tdesc_register_in_reggroup_p): New prototypes.
3176 * NEWS: Correct formatting. Mention MIPS register support.
3177 * features/mips-cp0.xml, features/mips-fpu.xml,
3178 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3179 features/mips64-cpu.xml: New files.
3181 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3183 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3184 * valops.c (value_cast): Likewise.
3185 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3186 * ui-out.c (ui_out_field_core_addr): Likewise.
3187 * tracepoint.c (tracepoints_info): Likewise.
3188 * symtab.c (print_msymbol_info): Likewise.
3189 * solib-irix.c (irix_current_sos)
3190 (irix_open_symbol_file_object): Likewise.
3191 * remote.c (build_remote_gdbarch_data): Likewise.
3192 * prologue-value.c (make_pv_area): Likewise.
3193 * procfs.c (info_mappings_callback): Likewise.
3194 * printcmd.c (print_scalar_formatted)
3195 (deprecated_print_address_numeric): Likewise.
3196 * memattr.c (mem_info_command): Likewise.
3197 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3198 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3199 * exec.c (print_section_info): Likewise.
3200 * dwarf2read.c (read_subrange_type): Likewise.
3201 * dwarf2loc.c (find_location_expression): Likewise.
3202 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3203 (signed_address_type, execute_stack_op): Likewise.
3204 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3205 * gdbarch.c, gdbarch.h: Regenerate.
3207 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3209 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3210 * arch-utils.c (show_architecture): Likewise.
3211 * remote-mips.c (mips_open): Likewise
3212 * nto-tdep.c (nto_find_and_open_solib)
3213 (nto_init_solib_absolute_prefix): Likewise.
3214 * nto-procfs (procfs_open): Likewise.
3215 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3216 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3217 * gdbarch.c, gdbarch.h: Regenerate.
3219 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3221 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3222 * gdbtypes.c (build_flt): Likewise.
3223 * gdbarch.c, gdbarch.h: Regenerate.
3225 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3227 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3228 gdbarch_breakpoint_from_pc.
3229 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3230 * remote.c (remote_insert_breakpoint)
3231 (remote_insert_hw_breakpoint): Likewise.
3232 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3233 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3234 * breakpoint.h (bp_target_info): Likewise (comment).
3235 * breakpoint.c (read_memory_nobpt): Likewise.
3236 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3237 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3238 * gdbarch.c, gdbarch.h: Regenerate.
3240 2007-06-13 Markus Deuling <deuling@de.ibm.com>
3242 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3243 * solib-svr4.c (svr4_truncate_ptr): Likewise.
3244 * solib-pa64.c (read_dynamic_info): Likewise.
3245 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3246 * solib.c (info_sharedlibrary_command): Likewise.
3247 * s390-nat.c (SUBOFF): Likewise.
3248 * p-valprint.c (pascal_val_print): Likewise.
3249 * procfs.c (info_proc_mappings): Likewise.
3250 * printcmd.c (decode_format): Likewise.
3251 * nto-tdep.c (nto_truncate_ptr): Likewise.
3252 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3253 (mips64_linux_get_longjmp_target): Likewise.
3254 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3255 * jv-valprint.c (java_value_print): Likewise.
3256 * jv-lang.c (get_java_object_header_size): Likewise.
3257 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3258 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3259 (hppa_hpux_unwind_adjust_stub): Likewise.
3260 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3261 * gdbtypes.c (make_pointer_type, make_reference_type)
3262 (smash_to_memberptr_type): Likewise.
3263 * gdbarch.c, gdbarch.h: Regenerate.
3265 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3267 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3268 (print_gp_register_row): Stop before printing a register bigger
3269 than the ABI register size.
3270 (mips_print_registers_info): Update call to mips_print_register.
3272 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3274 * expression.h (enum exp_opcode): Document a register name for
3276 * parse.c (write_dollar_variable): Write the register name for
3278 (operator_length_standard): Expect the register name following
3280 * ada-lang.c (resolve_subexp): Likewise.
3281 * ax-gdb.c (gen_expr): Likewise.
3282 * eval.c (evaluate_subexp_standard): Likewise.
3283 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3285 * tracepoint.c (encode_actions): Likewise.
3287 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
3289 * utils.c (set_screen_size): Use INT_MAX for default columns.
3291 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3293 * remote.c (remote_protocol_features): Add qXfer:spu:read and
3294 qXfer:spu:write packet types.
3296 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3298 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3299 * gdbarch.c, gdbarch.h: Regenerate.
3301 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3303 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3304 gdbarch_stab_reg_to_regnum.
3305 * stabsread.c (define_symbol): Likewise.
3306 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3307 gdbarch_ecoff_reg_to_regnum.
3308 * mdebugread.c (parse_symbol): Likewise.
3309 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3310 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3311 gdbarch_dwarf_reg_to_regnum.
3312 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3313 * coffread.c (process_coff_symbol): Likewise.
3314 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3315 gdbarch_dwarf2_reg_to_regnum.
3316 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3317 (locexpr_describe_location): Likewise.
3318 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3319 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3320 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3321 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3322 * gdbarch.c, gdbarch.h: Regenerate.
3324 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3326 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3327 gdbarch_smash_text_address.
3328 * somread.c (som_symtab_read): Likewise.
3329 * elfread.c (record_minimal_symbol): Likewise.
3330 * dbxread.c (process_one_symbol): Likewise.
3331 * coffread.c (coff_symtab_read): Likewise.
3332 * gdbarch.c, gdbarch.h: Regenerate.
3334 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3336 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3337 * findvar.c (value_from_register): Likewise.
3338 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3339 * valops.c (value_assign): Likewise.
3340 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3341 gdbarch_convert_register_p.
3342 * findvar.c (value_from_register): Likewise.
3343 * valops.c (value_assign): Likewise.
3344 * gdbarch.c, gdbarch.h: Regenerate.
3346 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3348 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3349 gdbarch_register_sim_regno.
3350 * sim-regno.h (sim_regno): Likewise (comment).
3351 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3352 * gdbarch.c, gdbarch.h: Regenerate.
3354 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3356 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3357 gdbarch_virtual_frame_pointer.
3358 * tracepoint.c (encode_actions): Likewise.
3359 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3360 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3361 * gdbarch.c, gdbarch.h: Regenerate.
3363 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3365 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3366 * p-lang.c (pascal_create_fundamental_type): Likewise.
3367 * objc-lang.c (objc_create_fundamental_type): Likewise.
3368 * mdebugread.c (_initialize_mdebugread): Likewise.
3369 * m2-lang.c (m2_create_fundamental_type)
3370 (_initialize_m2_language): Likewise.
3371 * gdbtypes.c (build_gdbtypes): Likewise.
3372 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3373 * doublest.c (floatformat_from_length): Likewise.
3374 * c-lang.c (c_create_fundamental_type): Likewise.
3375 * ada-lang.c (ada_create_fundamental_type)
3376 (ada_language_arch_info): Likewise.
3377 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3378 * value.c (unpack_double): Likewise (comment).
3379 * gdbtypes.c (build_gdbtypes): Likewise.
3380 * doublest.c (floatformat_from_length): Likewise.
3381 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3382 * valarith.c (value_binop): Likewise.
3383 * p-lang.c (pascal_create_fundamental_type): Likewise.
3384 * objc-lang.c (objc_create_fundamental_type): Likewise.
3385 * mdebugread.c (_initialize_mdebugread): Likewise.
3386 * m2-lang.c (m2_create_fundamental_type): Likewise.
3387 * gdbtypes.c (build_gdbtypes): Likewise.
3388 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3389 * doublest.c (floatformat_from_length): Likewise.
3390 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3391 * c-lang.c (c_create_fundamental_type): Likewise.
3392 * ada-lex.l (processReal): Likewise.
3393 * ada-lang.c (ada_create_fundamental_type)
3394 (ada_language_arch_info): Likewise.
3395 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3396 * value.c (unpack_double): Likewise (comment).
3397 * gdbtypes.c (build_gdbtypes): Likewise.
3398 * doublest.c (floatformat_from_length): Likewise.
3399 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3400 gdbarch_long_double_bit.
3401 * p-lang.c (pascal_create_fundamental_type): Likewise.
3402 * objc-lang.c (objc_create_fundamental_type): Likewise.
3403 * m2-lang.c (m2_create_fundamental_type): Likewise.
3404 * gdbtypes.c (build_gdbtypes): Likewise.
3405 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3406 * doublest.c (floatformat_from_length): Likewise.
3407 * c-lang.c (c_create_fundamental_type): Likewise.
3408 * ada-lex.l (processReal): Likewise.
3409 * ada-lang.c (ada_create_fundamental_type)
3410 (ada_language_arch_info): Likewise.
3411 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3412 gdbarch_long_double_format.
3413 * gdbtypes.c (build_gdbtypes): Likewise.
3414 * doublest.c (floatformat_from_length): Likewise.
3415 * gdbarch.c, gdbarch.h: Regenerate.
3417 2007-06-12 Markus Deuling <deuling@de.ibm.com>
3419 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3420 * ada-lang.c (ada_create_fundamental_type)
3421 (ada_language_arch_info): Likewise.
3422 * c-lang.c (c_create_fundamental_type): Likewise.
3423 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3424 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3425 * m2-lang.c (m2_create_fundamental_type): Likewise.
3426 * objc-lang.c (objc_create_fundamental_type): Likewise.
3427 * p-lang.c (pascal_create_fundamental_type): Likewise.
3428 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3429 * c-exp.y (parse_number): Likewise.
3430 * objc-exp.y (parse_number): Likewise.
3431 * ada-lex.l (processInt): Likewise.
3432 * f-exp.y (parse_number): Likewise.
3433 * p-exp.y (parse_number): Likewise.
3434 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3435 (gdbtypes_post_init, build_gdbtypes): Likewise.
3436 * p-lang.c (pascal_create_fundamental_type): Likewise.
3437 * parse.c (build_parse): Likewise.
3438 * xcoffread.c (_initialize_xcoffread): Likewise.
3439 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3440 (read_range_type): Likewise.
3441 * objc-lang.c (objc_create_fundamental_type): Likewise.
3442 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3443 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3444 (m2_create_fundamental_type): Likewise.
3445 * c-lang.c (c_create_fundamental_type): Likewise.
3446 * coffread.c (coff_read_enum_type): Likewise.
3447 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3448 * dwarf2read.c (new_symbol): Likewise.
3449 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3450 * c-exp.y (parse_number): Likewise.
3451 * objc-exp.y (parse_number): Likewise.
3452 * ada-lex.l (processInt): Likewise.
3453 * f-exp.y (parse_number): Likewise.
3454 * p-exp.y (parse_number): Likewise.
3455 * valarith.c (value_binop): Likewise.
3456 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3457 * ada-lang.c (ada_create_fundamental_type)
3458 (ada_language_arch_info): Likewise.
3459 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3460 * symfile.c (TARGET_LONG_BYTES): Likewise.
3461 * p-lang.c (pascal_create_fundamental_type): Likewise.
3462 * objc-lang.c (objc_create_fundamental_type): Likewise.
3463 * m2-lang.c (m2_create_fundamental_type): Likewise.
3464 * f-lang.c (f_create_fundamental_type): Likewise.
3465 * c-lang.c (c_create_fundamental_type): Likewise.
3466 * coffread.c (decode_base_type): Likewise.
3467 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3468 * c-exp.y (parse_number): Likewise.
3469 * objc-exp.y (parse_number): Likewise.
3470 * p-exp.y (parse_number): Likewise.
3471 * ada-lang.c (ada_create_fundamental_type)
3472 (ada_language_arch_info): Likewise.
3473 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3474 * stabsread.c (read_range_type): Likewise.
3475 * p-lang.c (pascal_create_fundamental_type): Likewise.
3476 * objc-lang.c (objc_create_fundamental_type): Likewise.
3477 * m2-lang.c (m2_create_fundamental_type): Likewise.
3478 * f-lang.c (f_create_fundamental_type): Likewise.
3479 * c-lang.c (c_create_fundamental_type): Likewise.
3480 * gdbarch.c, gdbarch.h: Regenerate.
3482 2007-06-12 Andreas Schwab <schwab@suse.de>
3484 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3485 (struct frame_unwind): Add dealloc_cache.
3486 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3488 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3489 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3490 (libunwind_frame_unwind): Set dealloc_cache.
3491 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3493 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3494 Markus Deuling <deuling@de.ibm.com>
3496 * remote.c (remote_write_qxfer): New function.
3497 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3498 (remote_read_qxfer): Do not cache empty objects.
3499 (_initialize_remote): Add PACKET_qXfer_spu_read and
3500 PACKET_qXfer_spu_write.
3502 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3504 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3505 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3507 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3508 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3509 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3510 * spu-tdep.c (infospucmdlist): New variable.
3511 (spu_register_name): Handle additional pseudo registers.
3512 (spu_register_type): Likewise.
3513 (spu_pseudo_register_read): Likewise.
3514 (spu_pseudo_register_write): Likewise.
3515 (spu_pseudo_register_read_spu): New function.
3516 (spu_pseudo_register_write_spu): Likewise.
3517 (info_spu_event_command): New function.
3518 (info_spu_signal_command): Likewise.
3519 (info_spu_mailbox_list): Likewise.
3520 (info_spu_mailbox_command): Likewise.
3521 (spu_mfc_get_bitfield): Likewise.
3522 (info_spu_dma_cmdlist): Likewise.
3523 (info_spu_dma_command): Likewise.
3524 (info_spu_proxydma_command): Likewise.
3525 (info_spu_command): Likewise.
3526 (_initialize_spu_tdep): Install "info spu" commands.
3528 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3530 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3531 accessing non-seekable spufs files.
3533 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3535 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3536 gdbarch_skip_trampoline_code.
3537 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3538 * objc-lang.c (objc_skip_trampoline)
3539 (objc_submethod_helper_data): Likewise.
3540 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3541 * infrun.c (handle_inferior_event): Likewise.
3542 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3543 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3544 gdbarch_in_solib_return_trampoline.
3545 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3546 * infrun.c (handle_inferior_event): Likewise.
3547 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3548 * gdbarch.c, gdbarch.h: Regenerate.
3550 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3552 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3553 * symtab.c (find_function_start_sal, in_prologue): Likewise.
3554 * linespec.c (minsym_found): Likewise.
3555 * infrun.c (step_into_function): Likewise.
3556 * gdbarch.c, gdbarch.h: Regenerate.
3558 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3560 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3561 * valops.c (value_allocate_space_in_inferior): Likewise.
3562 * gdbarch.c, gdbarch.h: Regenerate.
3564 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3566 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3567 gdbarch_memory_insert_breakpoint.
3568 * mem-break.c (memory_insert_breakpoint): Likewise.
3569 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3570 gdbarch_memory_remove_breakpoint.
3571 * mem-break.c (memory_remove_breakpoint): Likewise.
3572 * gdbarch.c, gdbarch.h: Regenerate.
3574 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3576 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3577 gdbarch_fetch_tls_load_module_address.
3578 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3579 gdbarch_fetch_tls_load_module_address_p.
3580 * gdbarch.c, gdbarch.h: Regenerate.
3582 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3584 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3585 gdbarch_decr_pc_after_break.
3586 * tracepoint.c (trace_dump_command): Likewise.
3587 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3588 * linux-thread-db.c (check_event): Likewise.
3589 * linux-nat.c (cancel_breakpoints_callback): Likewise.
3590 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3591 * frame.h: Likewise (comment).
3592 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3593 * aix-thread.c (aix_thread_wait): Likewise.
3594 * gdbarch.c, gdbarch.h: Regenerate.
3596 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3598 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3599 gdbarch_address_class_type_flags.
3600 * dwarf2read.c (read_tag_pointer_type): Likewise.
3601 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3602 gdbarch_address_class_type_flags_p.
3603 * dwarf2read.c (read_tag_pointer_type): Likewise.
3604 * gdbarch.c, gdbarch.h: Regenerate.
3606 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3608 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3609 * value.c (value_as_address): Likewise (comment).
3610 * remote-mips.c (common_breakpoint): Likewise.
3611 * regcache.c (read_pc_pid): Likewise.
3612 * printcmd.c (do_one_display): Likewise.
3613 * monitor.c (monitor_write_memory, monitor_read_memory)
3614 (monitor_insert_breakpoint): Likewise.
3615 * mips-tdep.c (heuristic_proc_start): Likewise.
3616 * infrun.c (insert_step_resume_breakpoint_at_frame)
3617 (insert_step_resume_breakpoint_at_caller): Likewise.
3618 * buildsym.c (record_line): Likewise.
3619 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3620 (arm_get_next_pc): Likewise.
3621 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3622 (store_regs): Likewise.
3623 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3624 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3625 * gdbarch.c, gdbarch.h: Regenerate.
3627 2007-06-09 Markus Deuling <deuling@de.ibm.com>
3629 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3630 * tracepoint.c (scope_info): Likewise.
3631 * target.c (debug_print_register): Likewise.
3632 * stack.c (frame_info): Likewise.
3633 * sh-tdep.c (sh_register_reggroup_p): Likewise.
3634 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3635 (sh64_media_print_registers_info)
3636 (sh64_compact_print_registers_info): Likewise.
3637 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3638 * remote-sim.c (gdbsim_fetch_register): Likewise.
3639 * remote.c (packet_reg): Likewise (comment).
3640 * reggroups.c (default_register_reggroup_p): Likewise.
3641 * regcache.c (regcache_dump): Likewise.
3642 * printcmd.c (address_info): Likewise.
3643 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3644 * mt-dep.c (mt_registers_info): Likewise.
3645 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3646 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3647 (mips_read_fp_register_double, mips_print_fp_register)
3648 (mips_print_register, print_gp_register_row, mips_print_registers_info)
3649 (mips_register_sim_regno): Likewise.
3650 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3651 * inf-ptrace.c (inf_ptrace_fetch_register)
3652 (inf_ptrace_store_register): Likewise.
3653 * infcmd.c (default_print_registers_info): Likewise.
3654 * ia64-linux-nat.c (ia64_linux_fetch_register)
3655 (ia64_linux_store_register): Likewise.
3656 * i386-linux-nat.c (fetch_register, store_register): Likewise.
3657 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3658 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3659 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3660 (hppa_hpux_store_register): Likewise.
3661 * findvar.c (locate_var_value): Likewise.
3662 * dwarf2loc.c (locexpr_describe_location): Likewise.
3663 * dwarf2-frame.c (execute_cfa_program): Likewise.
3664 * arm-tdep.c (arm_push_dummy_call): Likewise.
3665 * arch-utils.c (legacy_register_sim_regno): Likewise.
3666 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3667 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3668 * mi/mi-main.c (mi_cmd_data_list_register_names)
3669 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3670 (mi_cmd_data_write_register_values): Likewise.
3671 * gdbarch.c, gdbarch.h: Regenerate.
3673 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3675 * target-memory.c (blocks_to_erase): Correct off-by-one error.
3677 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
3679 * remote.c (process_g_packet): Don't check size.
3680 * gdbarch.sh: Remove register_bytes_ok.
3681 * gdbarch.c: Regenerated.
3682 * gdbarch.h: Regenerated.
3683 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3684 (m68k_register_bytes_ok): Remove.
3685 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3687 2007-06-06 Andreas Schwab <schwab@suse.de>
3689 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3690 (destroy_addr_space_name): Define.
3691 (libunwind_load): Get address of destroy_addr_space function.
3692 (libunwind_frame_cache): Destroy unw_addr_space_t object before
3693 returning unsuccessfully.
3694 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3696 (libunwind_sigtramp_frame_sniffer): Likewise.
3697 (libunwind_get_reg_special): Likewise.
3699 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3701 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3702 gdbarch_fetch_pointer_argument.
3703 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3704 * gdbarch.c, gdbarch.h: Regenerate.
3706 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3708 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3709 gdbarch_have_nonsteppable_watchpoint.
3710 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3711 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3712 gdbarch_cannot_step_breakpoint.
3713 * infrun.c (resume): Likewise.
3714 * gdbarch.c, gdbarch.h: Regenerate.
3716 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3718 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3719 * stack.c (print_frame_args): Likewise.
3720 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3721 * stack.c (print_args_stub, frame_info): Likewise.
3722 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3723 * stack.c (print_args_stub, frame_info): Likewise.
3724 * gdbarch.c, gdbarch.h: Regenerate.
3726 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3728 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3729 gdbarch_coff_make_msymbol_special.
3730 * coffread.c (coff_symtab_read): Likewise.
3731 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3732 gdbarch_elf_make_msymbol_special.
3733 * elfread.c (elf_symtab_read): Likewise.
3734 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3735 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3736 * gdbarch.c, gdbarch.h: Regenerate.
3738 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3740 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3741 gdbarch_frame_red_zone_size.
3742 * gdbarch.c, gdbarch.h: Regenerate.
3744 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3746 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3747 * infcall.c (call_function_by_hand): Likewise.
3748 * gcore.c (derive_stack_segment): Likewise.
3749 * frame.c (frame_id_inner): Likewise.
3750 * arch-utils.c (core_addr_lessthan): Likewise (comment).
3751 * ada-lang.c (ensure_lval): Likewise.
3752 * gdbarch.c, gdbarch.h: Regenerate.
3754 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3756 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3757 gdbarch_address_to_pointer.
3758 * findvar.c (store_typed_address): Likewise.
3759 * gdbtypes.c (make_pointer_type): Likewise (comment).
3760 * procfs.c (procfs_address_to_host_pointer): Likewise.
3761 * std-regs.c (value_of_builtin_frame_reg): Likewise.
3762 (value_of_builtin_frame_fp_reg): Likewise.
3763 (value_of_builtin_frame_pc_reg): Likewise.
3764 * utils.c (paddress): Likewise (comment).
3765 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3766 gdbarch_pointer_to_address.
3767 * findvar.c (extract_typed_address): Likewise.
3768 * gdbtypes.c (make_pointer_type): Likewise (comment).
3769 * valops.c (value_cast): Likewise (comment).
3770 * gdbarch.c, gdbarch.h: Regenerate.
3772 2007-06-06 Markus Deuling <deuling@de.ibm.com>
3774 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3775 * infrun.c (handle_inferior_event): Likewise.
3776 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3777 gdbarch_get_longjmp_target_p.
3778 * breakpoint.c (breakpoint_re_set): Likewise.
3779 * infrun.c (handle_inferior_event): Likewise.
3780 * gdbarch.c, gdbarch.h: Regenerate.
3782 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3784 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3785 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3786 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3787 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3788 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3789 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3790 find_stub_with_shl_get, cover_find_stub_with_shl_get,
3791 initialize_hp_cxx_exception_support, child_enable_exception_callback,
3792 current_ex_event, child_get_current_exception_event): Remove.
3793 (hppa_hpux_inferior_created): Remove.
3794 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3796 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
3797 (deprecated_exception_support_initialized): Remove.
3798 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
3799 (deprecated_exception_support_initialized): Remove.
3800 (breakpoint_init_inferior): Remove handling of non-zero
3801 deprecated_exception_catchpoints_are_fragile.
3803 * symtab.h (deprecated_hp_som_som_object_present): Remove.
3804 * symtab.c (deprecated_hp_som_som_object_present): Remove.
3805 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
3806 deprecated_hp_som_som_object_present.
3807 * eval.c (evaluate_subexp_standard): Likewise.
3808 * valops.c (value_cast): Likewise.
3810 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
3811 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
3812 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
3814 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3816 * objfiles.h (ImportEntry, ExportEntry): Remove types.
3817 (struct objfile): Remove import_list, import_list_size,
3818 export_list, export_list_size members.
3819 (is_in_import_list): Remove prototype.
3820 * objfiles.c (is_in_import_list): Remove.
3821 * somread.c (init_import_symbols, init_export_symbols): Remove.
3822 (som_symfile_read): Do not call init_import_symbols. Do not
3823 set objfile->export_list and objfile->export_list_size.
3825 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3827 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
3828 Use the original objfile if necessary.
3830 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
3832 * defs.h (ldirname): New prototype.
3833 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
3835 * utils.c (ldirname): New function.
3836 * xml-tdesc.c (file_read_description_xml): Use ldirname.
3838 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3840 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
3842 2007-06-01 Joel Brobecker <brobecker@adacore.com>
3844 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
3846 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3848 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
3850 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
3852 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
3853 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
3854 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
3855 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
3856 (ppc_linux_in_sigtramp, insn_is_sigreturn,
3857 ppc_linux_at_sigtramp_return_path): Remove.
3859 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3861 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
3862 (xtensa_register_write_masked, xtensa_register_read_masked)
3863 (xtensa_extract_return_value, xtensa_store_return_value
3864 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
3865 TARGET_BYTE_ORDER by gdbarch_byte_order.
3866 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
3867 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
3868 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
3869 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
3870 (sh64_push_dummy_call, sh64_extract_return_value)
3871 (sh64_store_return_value, sh64_register_convert_to_virtual)
3872 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
3873 (sh64_pseudo_register_write, sh64_do_fp_register)
3874 (sh64_frame_prev_register): Likewise.
3875 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
3876 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
3877 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
3878 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
3879 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3880 * ppc-linux-nat.c (store_register): Likewise.
3881 * nto-tdep.c (nto_find_and_open_solib)
3882 (nto_init_solib_absolute_prefix): Likewise.
3883 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
3884 (mips_convert_register_p, mips_eabi_push_dummy_call)
3885 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
3886 (mips_o32_push_dummy_call, mips_o32_return_value)
3887 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
3888 (mips_read_fp_register_single, mips_read_fp_register_double)
3889 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
3890 (mips_breakpoint_from_pc): Likewise.
3891 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
3892 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
3893 (mips_linux_o32_sigframe_init): Likewise.
3894 * m32r-tdep.c (m32r_memory_insert_breakpoint)
3895 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
3896 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
3897 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
3898 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
3899 * coffread.c (process_coff_symbol): Likewise.
3900 * arm-tdep.c (convert_from_extended, convert_to_extended)
3901 (gdb_print_insn_arm): Likewise.
3903 2007-05-31 Markus Deuling <deuling@de.ibm.com>
3905 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
3906 * i386-tdep.c (i386_dbx_reg_to_regnum)
3907 (i386_svr4_reg_to_regnum): Likewise.
3908 * inf-ptrace.c (inf_ptrace_fetch_registers)
3909 (inf_ptrace_store_registers): Likewise.
3910 * corelow.c (get_core_registers): Likewise.
3911 * i386-linux-nat.c (supply_gregset, fill_gregset)
3912 (i386_linux_fetch_inferior_registers)
3913 (i386_linux_store_inferior_registers): Likewise.
3914 * remote.c (init_remote_state,packet_reg_from_regnum)
3915 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
3916 (remote_prepare_to_store,store_registers_using_G)
3917 (remote_store_registers,remote_arch_state): Likewise.
3918 * tracepoint.c (encode_actions): Likewise.
3919 * mi/mi-main.c (mi_cmd_data_list_register_names)
3920 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3921 (mi_cmd_data_write_register_values): Likewise.
3922 * tui/tui-regs.c (tui_show_register_group)
3923 (tui_show_register_group): Likewise.
3924 * xtensa-tdep.h (FP_ALIAS): Likewise.
3925 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
3926 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
3927 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
3928 * win32-nat.c (do_win32_fetch_inferior_registers)
3929 (do_win32_store_inferior_registers,fetch_elf_core_registers
3930 * user-regs.h: Likewise (comment).
3931 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3932 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3933 * target-descriptions.h: Likewise (comment).
3934 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
3935 * target.c (debug_print_register): Likewise.
3936 * stack.c (frame_info): Likewise.
3937 * stabsread.c (define_symbol): Likewise.
3938 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
3939 (sh64_media_print_registers_info)
3940 (sh64_compact_print_registers_info): Likewise.
3941 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3942 * rs6000-nat.c (fetch_register,store_register): Likewise.
3943 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
3944 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
3945 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
3946 * remote-m32r-sdi.c (m32r_fetch_registers)
3947 (m32r_store_registers): Likewise.
3948 * reggroups.c (default_register_reggroup_p): Likewise.
3949 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
3950 (regcache_restore,regcache_dump): Likewise.
3951 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
3952 * mips-tdep.c (mips_xfer_register,mips_register_name)
3953 (mips_register_reggroup_p,mips_pseudo_register_read)
3954 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
3955 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
3956 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
3957 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
3958 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
3959 (print_gp_register_row,mips_print_registers_info)
3960 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3961 (mips_register_sim_regno): Likewise.
3962 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
3963 (mips_linux_n32n64_sigframe_init): Likewise.
3964 * mips-linux-nat.c (mips_linux_register_addr)
3965 (mips64_linux_register_addr): Likewise.
3966 * findvar.c (value_of_register): Likewise.
3967 * infcmd.c (default_print_registers_info,registers_info)
3968 (print_vector_info,print_float_info): Likewise.
3969 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
3970 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3971 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3972 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
3973 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3974 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
3975 (ia64_cannot_store_register,ia64_linux_fetch_registers)
3976 (ia64_linux_store_registers): Likewise.
3977 * hpux-thread.c (hpux_thread_fetch_registers)
3978 (hpux_thread_store_registers): Likewise.
3979 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
3980 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
3981 (h8300_register_type): Likewise.
3982 * dwarf2-frame.c (dwarf2_frame_cache)
3983 (dwarf2_frame_state_alloc_regs): Likewise.
3984 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
3985 (cris_cannot_store_register,crisv32_cannot_fetch_register)
3986 (crisv32_cannot_store_register,cris_register_name): Likewise.
3987 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
3988 * arch-utils.c (legacy_register_sim_regno)
3989 (legacy_virtual_frame_pointer): Likewise.
3990 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
3991 * arm-tdep.h: Likewise (comment).
3992 * frv-tdep.c (frv_register_sim_regno): Likewise.
3993 * m68klinux-nat.c (old_fetch_inferior_registers)
3994 (old_store_inferior_registers): Likewise.
3995 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3996 * irix5-nat.c (fetch_core_registers): Likewise.
3997 * hppa-tdep.c (hppa_frame_cache): Likewise.
3998 * hppa-linux-nat.c (hppa_linux_register_addr)
3999 (hppa_linux_fetch_inferior_registers)
4000 (hppa_linux_store_inferior_registers): Likewise.
4001 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
4002 (hppa_hpux_store_inferior_registers): Likewise.
4003 * amd64-nat.c (amd64_native_gregset_reg_offset)
4004 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
4005 * dbug-rom.c (dbug_regname): Likewise.
4006 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
4007 (HARD_PAGE_REGNUM (comment)): Likewise.
4008 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
4009 * i386-tdep.c (i386_dbx_reg_to_regnum)
4010 (i386_svr4_reg_to_regnum): Likewise.
4011 * mi/mi-main.c (mi_cmd_data_list_register_names)
4012 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
4013 (mi_cmd_data_write_register_values): Likewise.
4014 * gdbarch.c, gdbarch.h: Regenerate.
4015 * tui/tui-regs.c (tui_show_register_group): Likewise.
4016 * xtensa-tdep.h (FP_ALIAS): Likewise.
4017 * user-regs.h: Likewise (comment).
4018 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
4019 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
4020 * target-descriptions.h: Likewise (comment).
4021 * target.c (debug_print_register): Likewise.
4022 * stack.c (frame_info): Likewise.
4023 * stabsread.c (define_symbol): Likewise.
4024 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
4025 (sh64_compact_print_registers_info): Likewise.
4026 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
4027 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
4028 (regcache_restore,regcache_dump): Likewise.
4029 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
4030 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4031 (mips_stab_reg_to_regnum): Likewise.
4032 * findvar.c (value_of_register): Likewise.
4033 * infcmd.c (default_print_registers_info,registers_info)
4034 (print_vector_info,print_float_info): Likewise.
4035 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
4036 * h8300-tdep.c (h8300_register_type): Likewise.
4037 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4038 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
4039 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
4040 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
4041 * parse.c: Remove comment.
4042 * gdbarch.c, gdbarch.h: Regenerate
4044 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4046 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
4047 gdbarch_cannot_fetch_register.
4048 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4049 * hppa-linux-nat.c (fetch_register): Likewise.
4050 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4051 * m68klinux-nat.c (fetch_register): Likewise.
4052 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
4054 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
4055 gdbarch_cannot_store_register.
4056 * hppa-linux-nat.c (store_register): Likewise.
4057 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
4058 * regcache.c (regcache_raw_write): Likewise.
4059 * m68klinux-nat.c (store_register): Likewise.
4060 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
4061 * gdbarch.c, gdbarch.h: Regenerate.
4063 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4065 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
4066 * gdbarch.c, gdbarch.h: Regenerate.
4068 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4070 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
4071 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4072 * gdbarch.c, gdbarch.h: Regenerate.
4074 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4076 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
4077 * ax-gdb.c (gen_bitfield_ref): Likewise.
4078 * mi/mi-main.c (get_register): Likewise.
4079 * findvar.c (default_value_from_register, extract_signed_integer)
4080 (extract_unsigned_integer, extract_long_unsigned_integer)
4081 (store_signed_integer, store_unsigned_integer): Likewise.
4082 * regcache.c (regcache_dump): Likewise.
4083 * value.c (lookup_internalvar, value_of_internalvar)
4084 (set_internalvar): Likewise.
4086 * valprint.c (print_binary_chars, print_octal_chars)
4087 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
4088 * infcmd.c (default_print_registers_info): Likewise.
4089 * arch-utils.c (selected_byte_order, show_endian): Likewise.
4090 * stabsread.c (define_symbol): Likewise.
4091 * doublest.c (floatformat_from_length, floatformat_from_type)
4092 (extract_typed_floating, store_typed_floating): Likewise.
4093 * gdbarch.c, gdbarch.h: Regenerate.
4095 2007-05-31 Markus Deuling <deuling@de.ibm.com>
4097 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
4098 gdbarch_call_dummy_location.
4099 * infcall.c (call_function_by_hand): Likewise.
4100 * inferior.h: Change comment.
4101 * arch-utils.c: Change comment.
4102 * gdbarch.c, gdbarch.h: Regenerate.
4104 2007-05-28 Joel Brobecker <brobecker@adacore.com>
4106 * solib-aix5.c: Delete.
4107 * Makefile.in (solib-aix5.o): Delete rule.
4109 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
4111 * breakpoint.h (enum bpstat_what_main_action): Remove
4112 BPSTAT_WHAT_THROUGH_SIGTRAMP.
4113 * infrun.c (process_event_stop_test): Do not check for it.
4115 2007-05-22 Chris Dearman <chris@mips.com>
4116 Maciej W. Rozycki <macro@mips.com>
4118 * ser-unix.c (show_serial_hwflow): New function.
4119 (hardwire_raw): Add hardware flow control support.
4120 (_initialize_ser_hardwire): Add "set/show remoteflow".
4121 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4122 * NEWS: Document the new command.
4124 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4126 * config/i386/tm-linux.h (sys_quotactl): Do not define.
4127 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4128 define for i[[3456]]86-*-linux* native configurations.
4129 * config.in, configure: Regenerate.
4131 2007-05-19 Joel Brobecker <brobecker@adacore.com>
4133 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4134 a core file. Add comment in the function description.
4136 2007-05-18 Caroline Tice <ctice@apple.com>
4138 * c-valprint.c (c_value_print): If the initialized field of the
4139 value struct is 0, print out "[uninitialized]" before the value.
4140 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
4141 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
4142 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4143 ctx->initialized appropriately. Verify no location op follows
4145 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4146 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
4147 set_value_initialized.
4148 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4149 (decode_locdesc): Add case for DW_OP_GNU_uninit.
4150 * value.c (struct value): New field, initialized.
4151 (allocate_value): Initialize new field.
4152 (set_value_initialized): New function.
4153 (value_initialized): New function.
4154 * value.h (value_initialized): New extern declaration.
4155 (set_value_initialized): Likewise.
4157 2007-05-18 Caroline Tice <ctice@apple.com>
4159 * MAINTAINERS (Write After Approval): Add self.
4161 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4163 * gdbtypes.c (make_reference_type): Preserve the type chain
4164 and set the length of all the variants of the pointer type.
4166 2007-05-17 Joel Brobecker <brobecker@adacore.com>
4168 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4169 and set the length of all the variants of the pointer type.
4171 2007-05-17 Maciej W. Rozycki <macro@mips.com>
4173 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4175 (mips_o64_push_dummy_call): Reformat a comment.
4177 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
4179 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4180 (score_prologue_frame_base_address): Return fp to keep gdb print
4181 local variables correctly when debugging information is stabs.
4183 (score_analyze_prologue): For software watchpoint, fetch all the
4184 instructions from range [startaddr, pc] once and identify them locally
4185 to reduce memory access.
4186 (score_malloc_and_get_memblock, score_free_memblock)
4187 (score_adjust_memblock_ptr): New functions.
4188 (score_fetch_inst): Fetch single instruction or mutiple instructions.
4190 (score_target_can_use_watch, score_stopped_by_watch)
4191 (score_target_insert_watchpoint, score_target_remove_watchpoint)
4192 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4193 New functions for remote & local hw-watchpoint and hw-breakpoint.
4195 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
4197 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4198 declarations as well.
4200 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4202 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4203 * config/arm/tm-embed.h: Delete file.
4205 * arm-tdep.h (arm_software_single_step): Declare.
4206 * arm-tdep.c (arm_software_single_step): Make global.
4207 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4209 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4210 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4211 * armobsd-tdep.c (armobsd_init_abi): ... here ...
4212 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4214 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4215 allow defines to be overriden by TM file.
4216 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
4217 change default to {0xbe,0xbe}.
4218 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4219 arm_obsd_thumb_be_breakpoint): New global variables.
4220 (armobsd_init_abi): Override tdep->thumb_breakpoint and
4221 tdep->thumb_breakpoint_size.
4222 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4223 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
4224 tdep->thumb_breakpoint_size.
4226 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4228 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4230 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4233 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4234 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4235 (mips_stack_argsize_string, mips_stack_argsize): Delete.
4236 (mips_abi_regsize): Simplify.
4237 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4238 (mips_n32n64_return_value, mips_o32_push_dummy_call)
4239 (mips_o32_return_value, mips_o64_push_dummy_call)
4240 (mips_o64_return_value): Propogate constant register sizes. Use the
4241 ABI register size instead of mips_stack_argsize.
4242 (mips_dump_tdep): Don't print mips_stack_argsize.
4243 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4246 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
4248 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4249 * config/mips/tm-linux.h: Delete.
4250 * mips-linux-tdep.c (mips_svr4_so_ops): New.
4251 (mips_linux_in_dynsym_resolve_code): Make static. Use
4252 svr4_in_dynsym_resolve_code.
4253 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
4255 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4257 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4258 * Makefile.in (mips-linux-tdep.o): Update.
4259 * solib.c (set_solib_ops): New.
4260 (current_target_so_ops): Update comment.
4261 * solib.h (set_solib_ops): New prototype.
4263 2007-05-16 Chris Dearman <chris@mips.com>
4265 * printcmd.c (do_examine): Fix typos in a comment.
4267 2007-05-16 Richard Sandiford <richard@codesourcery.com>
4269 * configure.ac: Allow sysroots to be relocated under $prefix as
4270 well as $exec_prefix.
4271 * configure: Regenerate.
4273 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4275 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4276 (offsetof): Do not define.
4277 (find_stub_with_shl_get): Use numerical value 3 instead of
4278 symbolic value TYPE_PROCEDURE.
4280 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4282 * gdb_proc_service.h (paddr_t): Delete typedef.
4283 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4284 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
4285 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
4286 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4287 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4288 * Makefile.in (proc-service.o): Update.
4290 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4292 * Makefile.in (mips-tdep.o): Update.
4293 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4296 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4298 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4299 instead of store_typed_address.
4300 * value.c (pack_long): New.
4301 (value_from_longest): Use it.
4302 * value.h (pack_long): New prototype.
4304 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4306 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
4307 DW_EH_PE_signed if appropriate.
4309 2007-05-14 Paul Brook <paul@codesourcery.com>
4310 Daniel Jacobowitz <dan@codesourcery.com>
4312 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4314 (dwarf_decode_lines): Check for line info without a file.
4316 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4318 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4321 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4323 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4325 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4327 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4329 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4331 * gdbarch.sh (read_sp): Remove.
4332 * gdbarch.c, gdbarch.h: Regenerate.
4333 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4335 * avr-tdep.c (avr_read_sp): Remove.
4336 (avr_unwind_sp): New function.
4337 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4338 * mips-tdep.c (mips_read_sp): Remove.
4339 (mips_unwind_sp): New function.
4340 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4341 * score-tdep.c (score_read_unsigned_register): Remove.
4342 (score_read_sp): Remove.
4343 (score_unwind_sp): New function.
4344 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4346 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
4348 * buildsym.c (start_subfile): Handle absolute pathnames
4349 while comparing subfile names.
4351 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4353 * hppa-hpux-tdep.c: Include "regcache.h".
4354 * hppa-linux-tdep.c: Likewise.
4355 * hppa-tdep.c: Include "gdb_stdint.h".
4356 (find_unwind_entry): Cast host pointer to uintptr_t before passing
4358 * Makefile.in: Update dependencies.
4360 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4362 * blockframe.c: Remove obsolete comments.
4363 * alpha-nat.c (fetch_osf_core_registers): Update comment.
4364 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4365 * hppa-tdep.h (enum hppa_regnum): Likewise.
4366 * mips-tdep.h: Likewise.
4367 * m68hc11-tdep.c: Likewise.
4369 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4371 * inferior.h (read_sp): Remove prototype.
4372 * regcache.c (read_sp): Remove.
4373 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4374 * infcall.c (call_function_by_hand): Likewise.
4375 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4377 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4379 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4381 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
4382 instead of read_register and read_register_pid.
4384 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
4385 argument instead of PTID. Use regcache functions instead of
4387 (ia64_linux_insert_watchpoint): Update call.
4388 (ia64_linux_stopped_data_address): Use regcache functions
4389 instead of read_register_pid and write_register_pid.
4391 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4393 * libunwind-frame.h (struct regcache): Add forward declaration.
4394 (libunwind_get_reg_special): Add REGCACHE argument.
4395 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4396 argument. Pass it to unw_init_remote_p.
4398 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4399 libunwind_get_reg_special.
4400 (ia64_access_reg): Remove "write" case.
4401 (ia64_access_fpreg): Likewise. Read from next_frame passed
4402 as callback argument instead of from current_regcache.
4403 (ia64_access_rse_reg): Remove "write" case. Read from regcache
4404 passed as callback argument instead of from current_regcache.
4405 (ia64_access_rse_fpreg): New function.
4406 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4408 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4410 * NEWS: Mention SPU overlay support.
4412 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4414 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4416 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4418 * breakpoint.c (remove_breakpoint): Do not remove software
4419 breakpoints in unmapped overlay sections.
4421 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4423 * spu-tdep.c: Include "observer.h".
4424 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4425 (spu_overlay_data): New variable.
4426 (struct spu_overlay_table): New type.
4427 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4428 spu_overlay_new_objfile): New functions.
4429 (spu_gdbarch_init): Install spu_overlay_update.
4430 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
4431 allocate spu_overlay_data objfile data.
4433 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4435 * gdbarch.sh (overlay_update): New gdbarch function.
4436 (struct obj_section): Add forward declaration.
4437 * gdbarch.c, gdbarch.h: Regenerate.
4439 * symfile.c (simple_overlay_update): Make global.
4440 (target_overlay_update): Remove variable.
4441 (overlay_is_mapped): Call gdbarch_overlay_update instead of
4442 target_overlay_update.
4443 (overlay_load_command): Likewise.
4444 * symfile.h (struct obj_section): Add forward declaration.
4445 (simple_overlay_update): Add prototype.
4447 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4449 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4451 * observer.sh: Add "struct objfile" forward declaration.
4452 * target.h (deprecated_target_new_objfile_hook): Remove.
4453 * symfile.c (deprecated_target_new_objfile_hook): Remove.
4454 (clear_symtab_users): Call observer_notify_new_objfile.
4455 (symbol_file_add_with_addrs_or_offsets): Likewise.
4456 * rs6000-nat.c: Include "observer.h".
4457 (vmap_ldinfo): Call observer_notify_new_objfile.
4458 (xcoff_relocate_core): Likewise.
4459 * remote.c (remote_new_objfile_chain): Remove.
4460 (remote_new_objfile): Do not call remote_new_objfile_chain.
4461 (_initialize_remote): Use observer_attach_new_objfile.
4462 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4463 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4464 (_initialize_tui_hooks): Use observer_attach_new_objfile.
4465 * aix-thread.c: Include "observer.h".
4466 (target_new_objfile_chain): Remove.
4467 (new_objfile): Do not call target_new_objfile_chain.
4468 (_initialize_aix_thread): Use observer_attach_new_objfile.
4469 * hpux-thread.c: Include "observer.h"
4470 (target_new_objfile_chain): Remove.
4471 (hpux_thread_new_objfile): Make static. Do not call
4472 target_new_objfile_chain.
4473 (_initialize_hpux_thread): Use observer_attach_new_objfile.
4474 * linux-thread-db.c: Include "observer.h".
4475 (target_new_objfile_chain): Remove.
4476 (thread_db_new_objfile): Do not call target_new_objfile_chain.
4477 (_initialize_thread_db): Use observer_attach_new_objfile.
4478 * sol-thread.c: Include "observer.h".
4479 (target_new_objfile_chain): Remove.
4480 (sol_thread_new_objfile): Make static. Do not call
4481 target_new_objfile_chain.
4482 (_initialize_sol_thread): Use observer_attach_new_objfile.
4483 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4484 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4487 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4489 * gdbarch.sh (remote_translate_xfer_address): Remove.
4490 * gdbarch.h, gdbarch.c: Regenerate.
4491 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4492 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4493 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4494 call gdbarch_remote_translate_xfer_address.
4495 * frv-tdep.c (frv_gdbarch_init): Do not call
4496 set_gdbarch_remote_translate_xfer_address.
4497 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4498 (ia64_gdbarch_init): Do not install it.
4500 2007-05-11 Bob Wilson <bob.wilson@acm.org>
4502 * NEWS: Mention change in handling the -tui option.
4504 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
4506 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4509 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4511 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4512 (breakpoint_inserted_here_p): Call it.
4513 (software_breakpoint_inserted_here_p): Likewise.
4515 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
4517 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4518 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4519 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
4520 (inf_ptrace_store_register): Likewise.
4521 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4522 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4524 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4526 * linux-nat.c (linux_trad_target): Adapt parameter list.
4527 * linux-nat.h (linux_trad_target): Likewise.
4529 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4531 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4532 (mips_linux_cannot_store_register): Likewise.
4533 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4534 Return (CORE_ADDR) -1 for registers that cannot be fetched or
4535 stored via ptrace. Use GDBARCH instead of current_gdbarch.
4536 (mips64_linux_register_addr): Likewise.
4537 (mips_linux_register_u_offset): Adapt parameter list. Pass
4538 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4540 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4541 * config/mips/nm-linux.h: Delete file.
4543 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
4545 * remote.c (remote_detach): Error out if remote can't detach.
4547 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
4549 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4550 instruction's opcode in the "opcode" variable and declares new
4551 variable "closing_insn".
4553 2007-05-10 Chris Dearman <chris@mips.com>
4554 Maciej W. Rozycki <macro@mips.com>
4556 * cli/cli-setshow.c (do_setshow_command): Remove trailing
4557 whitespace when setting a var_filename.
4559 2007-05-09 Bob Wilson <bob.wilson@acm.org>
4561 * main.c (captured_main): Recognize -tui option and print an error
4562 message when the TUI is not configured.
4564 2007-05-09 Andreas Schwab <schwab@suse.de>
4566 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4567 set removed members.
4568 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4570 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4572 * gdbarch.sh (deprecated_store_struct_return): Remove.
4573 * gdbarch.c, gdbarch.h: Regenerate.
4574 * frv-tdep.c (frv_store_struct_return): Remove.
4575 (frv_gdbarch_init): Do not install it.
4577 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4579 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4580 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4581 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4583 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4585 * spu-linux-nat.c: Include "gdb_stdint.h".
4586 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4587 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4588 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4589 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4590 (spu_child_wait): Mark up string for translation.
4592 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
4593 Luis Machado <luisgpm@br.ibm.com>
4595 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4596 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4597 BC_INSTRUCTION): Define.
4598 (deal_with_atomic_sequence): New function.
4599 (rs6000_software_single_step): Call deal_with_atomic_sequence.
4600 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4601 gdbarch_software_single_step routine.
4603 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4605 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4606 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4607 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4608 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4609 spu_child_post_attach, spu_fetch_inferior_registers,
4610 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4611 memory addresses as ULONGEST, not CORE_ADDR.
4613 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
4615 * gdbarch.sh: Add skip_permanent_breakpoint callback.
4616 * gdbarch.h, gdbarch.c: Regenerate.
4618 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4619 (resume): Call gdbarch_skip_permanent_breakpoint instead of
4620 SKIP_PERMANENT_BREAKPOINT. Inline default case.
4622 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4623 Add REGCACHE argument. Use it instead of read/write_register.
4624 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4626 * config/pa/tm-hppah.h: Delete file.
4627 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4628 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4630 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4632 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4633 * NEWS: Mention improved C++ thunk support.
4634 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4635 * cp-abi.c (cplus_skip_trampoline): New.
4636 * cp-abi.h (cplus_skip_trampoline): New prototype.
4637 (struct cp_abi_ops): Add skip_trampoline member.
4638 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4639 (init_gnuv3_ops): Set skip_trampoline.
4641 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4643 * rs6000-tdep.c (struct frame_extra_info): Delete.
4645 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
4647 * linux-thread-db.c: Update some FIXME comments.
4648 (thread_db_xfer_partial): Delete.
4649 (init_thread_db_ops): Do not set to_xfer_partial.
4651 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4653 * inftarg.c, infptrace.c: Remove files.
4654 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4655 (inftarg.o, infptrace.o): Remove rules.
4656 * gdbcore.h (register_addr): Remove prototype.
4657 * inferior.h (kill_inferior, store_inferior_registers,
4658 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4659 call_ptrace, pre_fork_inferior): Remove prototypes.
4660 * target.h (child_xfer_memory, child_pid_to_exec_file,
4661 child_core_file_to_sym_file, child_post_attach,
4662 child_post_startup_inferior, child_acknowledge_created_inferior,
4663 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4664 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4665 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4666 child_follow_fork, child_reported_exec_events_per_exec_call,
4667 child_has_exited, child_thread_alive): Remove prototypes.
4669 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4671 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4672 (sparc_store_inferior_registers): Likewise.
4673 * sparc-nat.c (fetch_inferior_registers): Rename to ...
4674 (sparc_fetch_inferior_registers): ... this.
4675 (store_inferior_registers): Rename to ...
4676 (sparc_store_inferior_registers): ... this.
4677 (sparc_target): Update callback names.
4678 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
4679 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
4681 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4683 * linux-nat.c (child_post_attach): Rename to ...
4684 (linux_child_post_attach): ... this. Make static.
4685 (child_follow_fork): Rename to ...
4686 (linux_child_follow_fork): ... this. Make static.
4687 (child_insert_fork_catchpoint): Rename to ...
4688 (linux_child_insert_fork_catchpoint): ... this. Make static.
4689 (child_insert_vfork_catchpoint): Rename to ...
4690 (linux_child_insert_vfork_catchpoint): ... this. Make static.
4691 (child_insert_exec_catchpoint): Rename to ...
4692 (linux_child_insert_exec_catchpoint): ... this. Make static.
4693 (child_pid_to_exec_file): Rename to ...
4694 (linux_child_pid_to_exec_file): ... this. Make static.
4696 (linux_handle_extended_wait): Update call.
4697 (linux_xfer_partial): Update callback routine names.
4699 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4701 * configure.host (alpha*-*-osf[12]*): Remove support.
4702 * NEWS: Mention removed configurations.
4704 * config/alpha/alpha-osf1.mh: Delete file.
4705 * config/alpha/alpha-osf2.mh: Delete file.
4706 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4708 * config/alpha/nm-osf.h: Delete file.
4709 * config/alpha/nm-osf2.h: Delete file.
4710 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4711 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4712 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4714 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4715 (register_addr, kernel_u_size): Remove.
4716 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4718 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4720 * regcache.c (regcache_invalidate): New function.
4721 (register_cached): Remove.
4722 (set_register_cached): Remove.
4723 (deprecated_registers_fetched): Remove.
4724 (registers_changed): Use regcache_invalidate instead
4725 of set_register_cached.
4726 (regcache_raw_read): Update comment.
4728 * regcache.h (regcache_invalidate): Add prototype.
4729 (register_cached): Remove.
4730 (set_register_cached): Remove.
4731 (deprecated_registers_fetched): Remove.
4733 * findvar.c (value_of_register): Do not call register_cached.
4734 * frame.c (frame_register): Likewise.
4735 * tui/tui-regs.c (tui_get_register): Likewise.
4737 * remote.c (fetch_register_using_p): Do not call set_register_cached.
4738 (process_g_packet): Likewise.
4739 (remote_fetch_registers): Likewise.
4740 * remote-sim.c (gdbsim_fetch_register): Likewise.
4741 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4742 by regcache_invalidate.
4743 (mt_pseudo_register_write): Likewise.
4744 * sh-tdep.c (sh_pseudo_register_write): Likewise.
4746 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4747 call by loop over regcache_raw_supply (..., NULL).
4749 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4751 * target.h (struct target_ops): Add REGCACHE parameter to
4752 to_prepare_to_store.
4753 (target_prepare_to_store): Likewise.
4754 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4755 (update_current_target): Adapt prepare_to_store de_fault rule.
4757 * regcache.c (regcache_raw_write): Pass regcache to
4758 target_prepare_to_store.
4760 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4761 Do not call CHILD_PREPARE_TO_STORE.
4762 * gnu-nat.c (gnu_prepare_to_store): Likewise.
4763 * procfs.c (procfs_prepare_to_store): Likewise.
4765 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4766 * go32-nat.c (go32_prepare_to_store): Likewise.
4767 * monitor.c (monitor_prepare_to_store): Likewise.
4768 * nto-procfs.c (procfs_prepare_to_store): Likewise.
4769 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4770 * remote-mips.c (mips_prepare_to_store): Likewise.
4771 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4772 * win32-nat.c (win32_prepare_to_store): Likewise.
4774 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4775 Use it instead of current_regcache.
4777 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4778 parameter. Pass it on to next target.
4779 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4781 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4783 * target.h (struct regcache): Add forward declaration.
4784 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4785 and to_store_registers target operations.
4786 (target_fetch_registers, target_store_registers): Update.
4788 * regcache.c (regcache_raw_read): Replace register_cached by
4789 regcache_valid_p. Pass regcache to target_fetch_registers.
4790 (regcache_raw_write): Pass regcache to target_store_registers.
4792 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4793 store_regs, store_wmmx_regs): Replace register_cached by
4796 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
4797 to target_fetch_registers calls.
4798 * corelow.c (core_open): Likewise.
4799 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
4800 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4801 ps_lsetfpregs): Likewise.
4802 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4803 ps_lsetfpregs): Likewise.
4804 * win32-nat.c (win32_resume): Likewise.
4805 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
4806 to target_store_registers call.
4807 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4809 * inferior.h (store_inferior_registers): Update prototype.
4810 (fetch_inferior_registers): Likewise.
4811 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
4812 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
4813 Update function pointer signatures.
4815 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
4816 use it instead of current_regcache, update calls.
4817 (aix_thread_store_registers): Likewise.
4818 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4819 (alphabsd_store_inferior_registers): Likewise.
4820 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4821 (amd64bsd_store_inferior_registers): Likewise.
4822 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
4823 (amd64_linux_store_inferior_registers): Likewise.
4824 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
4825 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
4826 fetch_wmmx_regs, store_wmmx_regs): Likewise.
4827 (arm_linux_fetch_inferior_registers): Likewise.
4828 (arm_linux_store_inferior_registers): Likewise.
4829 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4830 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
4831 (store_register, store_regs, store_fp_register, store_fp_regs,
4832 armnbsd_store_registers): Likewise.
4833 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
4834 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4835 (bsd_uthread_store_registers): Likewise.
4836 * corelow.c (get_core_registers): Likewise.
4837 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
4838 go32_store_registers): Likewise.
4839 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
4840 (hppabsd_store_registers): Likewise.
4841 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
4842 (hppa_hpux_fetch_inferior_registers): Likewise.
4843 (hppa_hpux_store_register): Likewise.
4844 (hppa_hpux_store_inferior_registers): Likewise.
4845 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4846 (hppa_linux_fetch_inferior_registers): Likewise.
4847 (hppa_linux_store_inferior_registers): Likewise.
4848 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
4849 (hpux_thread_store_registers): Likewise.
4850 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
4851 (i386bsd_store_inferior_registers): Likewise.
4852 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
4853 gnu_store_registers): Likewise.
4854 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
4855 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
4857 (i386_linux_fetch_inferior_registers): Likewise.
4858 (i386_linux_store_inferior_registers): Likewise.
4859 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4860 (ia64_linux_fetch_registers): Likewise.
4861 (ia64_linux_store_register): Likewise.
4862 (ia64_linux_store_registers): Likewise.
4863 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4864 (inf_child_store_inferior_registers): Likewise.
4865 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4866 (inf_ptrace_fetch_registers): Likewise.
4867 (inf_ptrace_store_register): Likewise.
4868 (inf_ptrace_store_registers): Likewise.
4869 * infptrace.c (fetch_register, store_register): Likewise.
4870 (fetch_inferior_registers, store_inferior_registers): Likewise.
4871 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
4872 (m32r_linux_fetch_inferior_registers): Likewise.
4873 (m32r_linux_store_inferior_registers): Likewise.
4874 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
4875 (m68kbsd_store_inferior_registers): Likewise.
4876 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
4877 store_register, old_store_inferior_registers, fetch_regs, store_regs,
4878 fetch_fpregs, store_fpregs): Likewise.
4879 (m68k_linux_fetch_inferior_registers): Likewise.
4880 (m68k_linux_store_inferior_registers): Likewise.
4881 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
4882 (m88kbsd_store_inferior_registers): Likewise.
4883 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
4884 (mips64obsd_store_inferior_registers): Likewise.
4885 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
4886 (mips64_linux_regsets_store_registers): Likewise.
4887 (mips64_linux_fetch_registers): Likewise.
4888 (mips64_linux_store_registers): Likewise.
4889 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4890 (mipsnbsd_store_inferior_registers): Likewise.
4891 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
4892 (monitor_fetch_registers, monitor_store_registers): Likewise.
4893 * nto-procfs.c (procfs_fetch_registers): Likewise.
4894 (procfs_store_registers): Likewise.
4895 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
4896 fetch_register, supply_vrregset, fetch_altivec_registers,
4897 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
4898 (store_altivec_register, store_spe_register, store_register,
4899 fill_vrregset, store_altivec_registers, store_ppc_registers,
4900 ppc_linux_store_inferior_registers): Likewise.
4901 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
4902 (ppcnbsd_store_inferior_registers): Likewise.
4903 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
4904 (ppcobsd_store_registers): Likewise.
4905 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4906 * remote.c (fetch_register_using_p, process_g_packet,
4907 fetch_registers_using_g, remote_fetch_registers): Likewise.
4908 (store_register_using_P, store_registers_using_G,
4909 remote_store_registers): Likewise.
4910 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
4911 m32r_store_register, m32r_store_register): Likewise.
4912 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
4913 * remote-sim.c (gdbsim_fetch_register): Likewise.
4914 (gdbsim_store_register): Likewise.
4915 * rs6000-nat.c (fetch_register, store_register): Likewise.
4916 (rs6000_fetch_inferior_registers): Likewise.
4917 (rs6000_store_inferior_registers): Likewise.
4918 * s390-nat.c (fetch_regs, store_regs): Likewise.
4919 (fetch_fpregs, store_fpregs): Likewise.
4920 (s390_linux_fetch_inferior_registers): Likewise.
4921 (s390_linux_store_inferior_registers): Likewise.
4922 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4923 (shnbsd_store_inferior_registers): Likewise.
4924 * sol-thread.c (sol_thread_fetch_registers): Likewise.
4925 (sol_thread_store_registers): Likewise.
4926 * sparc-nat.c (fetch_inferior_registers): Likewise.
4927 (store_inferior_registers): Likewise.
4928 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4929 (spu_store_inferior_registers): Likewise.
4930 * target.c (debug_print_register): Likewise.
4931 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
4932 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
4933 (vaxbsd_store_inferior_registers): Likewise.
4934 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
4935 (win32_fetch_inferior_registers): Likewise.
4936 (win32_store_inferior_registers): Likewise.
4938 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4940 * gdbcore.h (struct regcache): Add forward declaration.
4941 (struct core_fns): Add REGCACHE argument to core_read_registers
4943 * corelow.c (get_core_register_section): Add REGCACHE argument,
4944 use it instead of current_regcache, pass it to core_read_registers
4946 (get_core_registers): Add current_regcache as parameter to
4947 get_core_register_section calls.
4949 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
4950 use it instead of current_regcache.
4951 * armnbsd-nat.c (fetch_core_registers): Likewise.
4952 (fetch_elfcore_registers): Likewise.
4953 * core-regset.c (fetch_core_registers): Likewise.
4954 * cris-tdep.c (fetch_core_registers): Likewise.
4955 * irix5-nat.c (fetch_core_registers): Likewise.
4956 * m68klinux-nat.c (fetch_core_registers): Likewise.
4957 * mips-linux-tdep.c (fetch_core_registers): Likewise.
4958 * win32-nat.c (fetch_elf_core_registers): Likewise.
4960 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
4962 * gregset.h (struct regcache): Add forward declaration.
4963 (supply_gregset): Add REGCACHE parameter, make GREGS const.
4964 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
4965 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
4966 (fill_gregset): Add REGCACHE parameter.
4967 (fill_fpregset): Likewise.
4968 (fill_fpxregset): Likewise.
4970 Update all definitions accordingly:
4971 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
4972 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
4973 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
4974 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
4975 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
4976 (supply_gregset): Add REGCACHE parameter, use it instead of
4977 current_regcache. Make GREGSETP parameter const, adapt casts.
4978 (supply_fpregset): Add REGCACHE parameter, use it instead of
4979 current_regcache. Make FPREGSETP parameter const, adapt casts.
4980 (fill_gregset): Add REGCACHE parameter, use it instead of
4982 (fill_fpregset): Likewise.
4984 Update all callers to pass in current_regcache as the new argument:
4985 * core-regset.c: Include "regcache.h".
4986 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
4987 * procfs.c: Include "regcache.h".
4988 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
4989 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
4990 (procfs_do_thread_registers): Likewise.
4991 (procfs_make_note_section): Likewise.
4992 * proc-service.c: Include "regcache.h".
4993 (ps_lgetregs): Update fill_gregset call.
4994 (ps_lsetregs): Update supply_gregset call.
4995 (ps_lgetfpregs): Update fill_fpregset call.
4996 (ps_lsetfpregs): Update supply_fpregset call.
4997 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
4998 supply_fpregset calls.
4999 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
5000 (ps_lgetregs): Update fill_gregset call.
5001 (ps_lsetregs): Update supply_gregset call.
5002 (ps_lgetfpregs): Update fill_fpregset call.
5003 (ps_lsetfpregs): Update supply_fpregset call.
5005 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
5006 fill_fpregset, and fill_fpxregset calls.
5007 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
5008 (store_regs): Update fill_gregset call.
5009 (fetch_fpregs): Update supply_fpregset call.
5010 (store_fpregs): Update fill_fpregset call.
5011 (fetch_fpxregs): Update supply_fpxregset call.
5012 (store_fpxregs): Update fill_fpxregset call.
5013 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
5014 (store_regs): Update fill_gregset call.
5015 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
5016 (store_regs): Update fill_gregset call.
5017 (fetch_fpregs): Update supply_fpregset call.
5018 (store_fpregs): Update fill_fpregset call.
5019 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
5020 * s390-nat.c (fetch_regs): Update supply_gregset call.
5021 (store_regs): Update fill_gregset call.
5022 (fetch_fpregs): Update supply_fpregset call.
5023 (store_fpregs): Update fill_fpregset call.
5025 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
5028 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5030 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
5031 it instead of current_regcache.
5032 (parse_register_dump): Add REGCACHE parameter, pass it to
5033 supply_register callback.
5034 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
5035 parse_register_dump.
5036 (monitor_dump_regs): Add REGCACHE parameter, pass it to
5037 parse_register_dump and dumpregs callback.
5038 (monitor_wait): Pass current_regcache to parse_register_dump and
5040 (monitor_fetch_register): Pass current_regcache to
5041 monitor_supply_register.
5042 (monitor_fetch_registers): Pass current_regcache to
5044 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
5045 supply_register and dumpregs callbacks.
5046 (monitor_supply_register, monitor_dump_reg_block): Update
5048 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
5049 it to monitor_supply_register.
5050 * dink32-rom.c (dink32_supply_register): Likewise.
5051 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
5052 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
5053 instead of current_regcache.
5055 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5057 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
5058 Add REGCACHE parameter. Use it instead of current_regcache.
5059 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
5060 i386nto_supply_gregset and i386nto_supply_fpregset.
5061 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
5062 of current_regcache.
5064 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
5065 nto_supply_ helper functions.
5066 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
5068 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
5070 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
5071 supply_greget, supply_fpregset, supply_altregset, supply_regset,
5072 and regset_fill member function pointers.
5073 (nto_dummy_supply_regset): Adapt prototype.
5075 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5077 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
5078 instead of current_regcache. Make REGS const.
5079 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
5080 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
5082 * shnbsd-nat.c: Include "regcache.h".
5083 (shnbsd_fetch_inferior_registers): Pass current_regcache to
5085 (shnbsd_store_inferior_registers): Pass current_regcache to
5087 * Makefile.in (shbsd-nat.o): Update dependencies.
5089 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5091 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
5092 instead of current_regcache.
5093 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
5094 Make GREGSETP const, remove superfluous casts.
5095 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5096 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
5098 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5099 (supply_64bit_reg): Likewise
5100 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
5101 Make GREGSETP const, adapt casts accordingly.
5102 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
5103 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
5105 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
5106 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
5108 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
5109 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
5110 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
5112 * mips-linux-nat.c: Include "regcache.h".
5113 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5114 current_regcache to mips{64}_(supply|fill)_ helper routines.
5115 (mips64_linux_regsets_fetch_registers): Likewise.
5116 (mips64_linux_regsets_store_registers): Likewise.
5118 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5119 REGCACHE argument; replace current_regcache. Make REGS const.
5120 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5121 replace current_regcache.
5122 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5123 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5124 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5125 mipsnbsd_store_inferior_registers): Pass current_regcache to
5126 mipsnbsd_(supply|fill)_... helper routines.
5128 * Makefile.in (mips-linux-nat.o): Update dependencies.
5130 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5132 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5133 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5134 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5135 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5136 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5137 * i386gnu-nat.c (store_fpregs): Likewise.
5138 * i386v4-nat.c (fill_fpregset): Likewise.
5139 * go32-nat.c (store_register, go32_store_registers): Likewise.
5141 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5143 * cris-tdep.c (supply_gregset): Rename to ...
5144 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
5145 instead of current_regcache.
5146 (fetch_core_registers): Update call. Pass current_regcache.
5148 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5150 * arnmnbsd-nat.c (supply_gregset): Rename to ...
5151 (arm_supply_gregset): ... this. Add REGCACHE parameter.
5152 Use it instead of current_regcache.
5153 (supply_fparegset): Rename to ...
5154 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
5155 Use it instead of current_regcache.
5156 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
5157 (fetch_core_registers, fetch_elfcore_registers): Likewise.
5159 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5161 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5162 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5163 use it instead of current_regcache.
5164 * alpha-tdep.h (struct regcache): Add forward declaration.
5165 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5166 alpha_fill_fp_regs): Update prototypes.
5168 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5169 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5170 * alpha-linux-nat.c: Include "regcache.h".
5171 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5172 current_regcache to alpha_supply/fill_ routines.
5174 * alphabsd-tdep.c: Include "regcache.h".
5175 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5176 pass it to alpha_supply_ routines. Make REGS const.
5177 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5178 pass it to alpha_fill_ routines.
5179 * alphabsd-tdep.h (struct regcache): Add forward declaration.
5180 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5181 alphabsd_fill_fpreg): Update prototypes.
5183 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5184 fill_fpregset, alphabsd_fetch_inferior_registers,
5185 alphabsd_store_inferior_registers): Pass current_regcache to
5186 alphabsd_supply/fill_ routines.
5188 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5191 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5193 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5194 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5195 instead of current_regcache.
5196 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5197 REGCACHE parameter, pass it to supply_ routines.
5198 (aix_thread_fetch_registers): Pass current_regcache to
5199 fetch_regs_user_thread and fetch_regs_kernel_thread.
5201 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5202 Add REGCACHE parameter, use it instead of current_regcache.
5203 Call regcache_valid_p instead of register_cached.
5204 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5205 Also, pass REGCACHE to fill_ routines.
5206 (aix_thread_store_registers): Pass current_regcache to
5207 store_regs_user_thread and store_regs_kernel_thread.
5209 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5211 * m32r-linux-nat.c (supply_gregset): Do not modify contents
5212 pointed to by GREGSETP.
5214 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5216 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5217 of regcache_raw_read_signed.
5218 (fill_fpregset): Use regcache_raw_collect instead of
5221 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5223 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5224 point arguments, test explicitly for use of the EABI32 ABI
5225 instead of inferring this condition from tests on register
5228 2007-05-03 Kevin Buettner <kevinb@redhat.com>
5230 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5231 prior to allocating its location.
5233 2007-05-02 Maciej W. Rozycki <macro@mips.com>
5235 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5236 based on mips_abi_regsize() whose result is known in advance.
5237 (mips_o64_push_dummy_call): Likewise.
5239 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5241 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5242 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5244 * mips-linux-nat.c: Include "gregset.h".
5245 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5246 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
5247 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5248 fill_fpregset): Move to mips-linux-nat.c.
5250 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5252 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5254 * regcache.c (deprecated_read_register_gen): Remove, inline ...
5255 (read_register): ... here.
5256 (deprecated_write_register_gen): Remove, inline ...
5257 (write_register): ... here.
5258 * regcache.h (deprecated_read_register_gen): Remove prototype.
5259 (deprecated_write_register_gen): Likewise.
5261 * remote-sim.c (gdbsim_store_register): Replace call to
5262 deprecated_read_register_gen with regcache_cooked_read.
5263 * target.c (debug_print_register): Replace calls to
5264 deprecated_read_register_gen and read_register with
5265 regcache_cooked_read.
5267 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5269 * hpux-thread.c (hpux_thread_store_registers): Use
5270 regcache_raw_collect, not regcache_raw_read.
5271 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5272 not regcache_raw_write.
5274 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5276 * gdbarch.sh: Remove deprecated_register_byte.
5277 * gdbarch.c, gdbarch.h: Regenerate.
5278 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5279 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5281 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5282 * regcache.c (regcache_valid_p): Allow to query cooked registers in
5283 read-only register caches. Make REGCACHE parameter const.
5284 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5286 * mi/mi-main.c (old_regs): Remove.
5287 (mi_setup_architecture_data, _initialize_mi_main): Remove.
5288 (register_changed_p): Reimplement to compare two register caches.
5289 (mi_cmd_data_list_changed_registers): Update caller.
5290 * mi/mi-main.h (mi_setup_architecture_data): Remove.
5291 * mi/mi-interp.c (mi_interpreter_init): Do not call
5292 mi_setup_architecture_data.
5294 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5296 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5297 inline definition at the places the macros are used.
5298 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5300 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5302 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5304 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5305 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5306 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5307 (rs6000_aix_regset_from_core_section): New function.
5308 (rs6000_aix_init_osabi): Register it.
5309 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5310 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
5311 * rs6000-nat.c (CoreRegs): Do not define type.
5312 (fetch_core_registers, rs6000_core_fns): Remove.
5313 (_initialize_core_rs6000): Do not register it. Rename to ...
5314 (_initialize_rs6000_nat): ... this.
5315 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5317 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5319 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5320 (dwarf2_read_address): Sign extend return address as required by
5321 target architecture.
5323 2007-04-27 Kevin Buettner <kevinb@redhat.com>
5325 * solib-frv.c (lm_base): Bail out if the main executable has
5328 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5330 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5331 of FPCR register in fpregset.
5333 2007-04-27 Maciej W. Rozycki <macro@mips.com>
5335 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5336 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5338 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5340 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5341 * rs6000-nat.c (rs6000_wait): New function.
5342 (_initialize_core_rs6000): Install it as to_wait target method.
5343 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5345 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5347 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5348 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5349 * rs6000-nat.c (super_create_inferior): New variable.
5350 (rs6000_create_inferior): Make static. Adapt argument list. Call
5351 original version of create_inferior via super_create_inferior.
5352 (_initialize_core_rs6000): Install to_create_inferior target method.
5354 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5356 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5357 (aix_thread_xfer_partial): ... this.
5358 (init_aix_thread_ops): Install to_xfer_partial instead
5359 of deprecated_xfer_memory target method.
5361 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5362 and inftarg.o, add inf-ptrace.o.
5363 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5364 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5365 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5366 (fetch_inferior_registers): Rename to ...
5367 (rs6000_fetch_inferior_registers): ... this. Make static.
5368 (store_inferior_registers): Rename to ...
5369 (rs6000_store_inferior_registers): ... this. Make static.
5370 (read_word, child_xfer_memory): Remove.
5371 (rs6000_xfer_partial): New function.
5372 (kernel_u_size): Remove.
5373 (_initialize_core_rs6000): Add inf_ptrace-based target.
5374 * Makefile.in (rs6000-nat.o): Update dependencies.
5376 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5378 * inf-ptrace.c: Include "gdb_stdint.h".
5379 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
5380 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5381 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5382 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5383 (inf_ptrace_store_register): Likewise.
5384 * Makefile.in (inf-ptrace.o): Update dependencies.
5386 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5388 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5389 * configure.tgt (rs6000-*-*): Likewise.
5390 * config/rs6000/aix4.mh: Delete file.
5391 * config/rs6000/aix4.mt: Delete file.
5392 * config/rs6000/rs6000.mh: Delete file.
5393 * config/rs6000/rs6000.mt: Delete file.
5395 * config/powerpc/nm-aix.h: Delete file.
5396 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5398 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5400 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5401 Remove obsolete part of comment.
5402 (store_regs_user_thread): Use uint32_t temporaries when calling
5404 (store_regs_kernel_thread): Likewise. Add assertion to verify
5405 correct size of struct ptsprs members.
5406 (aix_thread_xfer_memory): Fix type of myaddr.
5407 (aix_thread_extra_thread_info): Fix compiler warning.
5408 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5409 (fetch_register, store_register): Adapt callers.
5411 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
5413 * vec.h (vec_free): Rename to vec_free_. Adapt users.
5415 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5417 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5419 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5420 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5421 (alpha_linux_regset_from_core_section): New function.
5422 (alpha_linux_init_abi): Install it.
5423 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
5424 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5425 <sys/procfs.h>, and "gregset.h".
5426 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5427 Move from config/alpha/nm-linux.h.
5428 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5430 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5431 * alpha-nat.c: Remove #ifdef __linux__ section.
5432 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5433 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5434 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5435 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5436 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5437 (NATDEPFILES): Remove alpha-nat.o.
5438 * config/alpha/nm-linux.h: Delete file.
5439 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5440 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5441 (alpha-linux-tdep.o): Likewise.
5443 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5445 * mips-linux-nat.c: No longer include "gdbcore.h".
5446 (mips_linux_register_addr): Move from mips-linux-tdep.c.
5447 (mips64_linux_register_addr): Likewise.
5448 (mips_linux_register_u_offset): Call mips_linux_register_addr or
5449 mips64_linux_register_addr instead of register_addr.
5450 * mips-linux-tdep.c (mips_linux_register_addr,
5451 mips64_linux_register_addr): Move to mips-linux-nat.c.
5452 (register_addr): Remove.
5453 (register_addr_data, init_register_addr_data): Remove.
5454 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5455 (set_mips_linux_register_addr): Remove.
5456 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5457 * Makefile.in (mips-linux-nat.o): Update dependencies.
5459 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5461 * linux-nat.c (linux_register_u_offset): Remove.
5462 (linux_target_install_ops): New function.
5463 (linux_target): Use it.
5464 (linux_trad_target): New function.
5465 * linux-nat.h (linux_trad_target): Declare.
5467 * alpha-linux-nat.c: Include "gdbcore.h".
5468 (alpha_linux_register_u_offset): New function.
5469 (_initialize_alpha_linux_nat): Use linux_trad_target.
5471 * mips-linux-nat.c: Include "gdbcore.h".
5472 (mips_linux_register_u_offset): New function.
5473 (_initialize_mips_linux_nat): Use linux_trad_target.
5475 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5476 * config/arm/nm-linux.h: Delete file.
5478 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5479 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5481 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5482 * config/ia64/nm-linux.h: Delete file.
5484 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5485 * config/m32r/nm-linux.h: Delete file.
5487 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5488 * config/m68k/nm-linux.h: Delete file.
5490 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5491 * config/pa/nm-linux.h: Delete file.
5493 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5494 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5495 * config/powerpc/nm-linux.h: Delete file.
5497 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5498 * config/s390/nm-linux.h: Delete file.
5500 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5501 * config/sparc/linux64.mh (NAT_FILE): Likewise.
5502 * config/sparc/nm-linux.h: Delete file.
5504 * Makefile.in (alpha-linux-nat.o): Update dependencies.
5505 (mips-linux-nat.o): Likewise.
5507 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5509 * core-aout.c: Delete file.
5510 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5511 (core-aout.o): Delete rule.
5512 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5514 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5516 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5517 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5518 KERNEL_U_ADDR): Remove.
5520 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5521 (cannot_fetch_register, cannot_store_register): Remove.
5522 (fetch_register): Inline cannot_fetch_register and register_addr.
5523 (store_register): Inline cannot_store_register and register_addr.
5524 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5525 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5526 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5529 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5530 (fetch_register): Inline register_addr.
5531 (store_register): Inline register_addr.
5532 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5533 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5534 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5536 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5537 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5538 REGISTER_U_ADDR): Remove.
5540 * hppa-linux-nat.c (register_addr): Rename to ...
5541 (hppa_linux_register_addr): ... this. Make static.
5542 (fetch_register, store_register): Adapt callers.
5543 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5545 * ppc-linux-nat.c (kernel_u_size): Remove.
5546 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5548 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5549 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5551 * config/vax/nm-vax.h: Delete file.
5553 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5555 * MAINTAINERS (Write After Approval): Add myself.
5557 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
5559 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5560 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5561 (m68k_linux_sigcontext_reg_offset): Fix typo.
5562 (target_is_uclinux): New.
5563 (m68k_linux_inferior_created): New.
5564 (m68k_linux_get_sigtramp_info): Check for uClinux or
5565 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
5567 (_initialize_m68k_linux_tdep): Register
5568 m68k_linux_inferior_created.
5570 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
5572 * win32-nat.c (win32_detach): Remove delete_command call.
5573 Resume inferior with win32_resume instead of win32_continue.
5575 2007-04-19 Jerome Guitton <guitton@adacore.com>
5577 * ser-mingw.c (fd_is_file): New function.
5578 (file_select_thread): New function.
5579 (ser_console_wait_handle): Add special handling for files.
5581 2007-04-18 Denis Pilat <denis.pilat@st.com>
5583 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5584 when missing from DW_TAG_subrange_type. Remove the handling of null
5585 return from die_type.
5587 2007-04-18 Maciej W. Rozycki <macro@mips.com>
5589 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5590 change to rearrange some brackets.
5591 (mips_n32n64_push_dummy_call): Likewise.
5592 (mips_o32_push_dummy_call): Likewise.
5593 (mips_o64_push_dummy_call): Likewise.
5595 2007-04-18 Denis Pilat <denis.pilat@st.com>
5597 * infcmd.c (post_create_inferior): Start with a call to
5598 target_terminal_ours.
5600 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5602 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5604 (mips_n32n64_push_dummy_call): Likewise. Reformat some
5606 (mips_o32_push_dummy_call): Likewise.
5607 (mips_o64_push_dummy_call): Likewise.
5609 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5611 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5614 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5616 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5618 (mips_o32_push_dummy_call): Likewise.
5620 2007-04-17 Andreas Schwab <schwab@suse.de>
5622 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5623 sal to be bigger than the end of the function.
5625 2007-04-17 Maciej W. Rozycki <macro@mips.com>
5626 Nigel Stephens <nigel@mips.com>
5628 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5629 argument alignment requirements when calculating stack space
5630 required. When aligning an arg register to eight bytes
5631 boundary, align stack_offset too. Write floating-point
5632 arguments to the appropriate integer register if need go there.
5633 (mips_o64_push_dummy_call): Likewise.
5635 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5637 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5638 "sig" arguments, add "regcache" argument.
5639 * gdbarch.c, gdbarch.h: Regenerate.
5641 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5642 (handle_inferior_event): Call remove_single_step_breakpoints directly
5643 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5645 * alpha-tdep.c (alpha_software_single_step): Update argument list.
5646 Remove handling of !insert_breakpoints_p case.
5647 * arm-tdep.c (arm_software_single_step): Likewise.
5648 * cris-tdep.c (cris_software_single_step): Likewise.
5649 * mips-tdep.c (mips_software_single_step): Likewise.
5650 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5651 * sparc-tdep.c (sparc_software_single_step): Likewise.
5652 * spu-tdep.c (spu_software_single_step): Likewise.
5654 * alpha-tdep.h (alpha_software_single_step): Update prototype.
5655 * mips-tdep.h (mips_software_single_step): Likewise.
5656 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5657 * sparc-tdep.h (sparc_software_single_step): Likewise.
5659 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
5661 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5662 when removing single-step breakpoints.
5664 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
5666 * varobj.h (varobj_set_frozen): New
5667 (varobj_get_frozen): New.
5668 (varobj_update): New parameter explicit.
5669 * varobj.c (struct varobj): New fields frozen
5671 (varobj_set_frozen, varobj_get_frozen): New.
5672 (install_new_value): Don't fetch values for
5673 frozen variable object, or children thereof. Allow
5674 a frozen variable object to have non-fetched value.
5675 (varobj_update): Allow updating child variables.
5676 Don't traverse frozen children.
5677 (new_variable): Initialize the frozen field.
5678 (c_value_of_variable): Return NULL for frozen
5679 variable without any value yet.
5680 * mi/mi-cmd-var.c (varobj_update_one): New parameter
5682 (mi_cmd_var_create): Output the 'frozen' field,
5683 as soon as testsuite is adjusted to expect that field.
5684 (mi_cmd_var_set_frozen): New.
5685 (mi_cmd_var_update): Pass the 'explicit' parameter to
5687 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5688 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5690 2007-04-13 Paul Brook <paul@codesourcery.com>
5692 * target-descriptions.c (tdesc_named_type): Add ieee_single and
5694 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5696 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5698 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5699 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5700 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5701 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5702 * Makefile.in: Remove references to deleted files.
5703 * README: Do not mention deleted ROM monitor interfaces.
5704 * defs.h (enum language): Delete language_scm.
5705 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5706 (dump_subexp_body_standard): Likewise.
5707 * parse.c (operator_length_standard): Likewise.
5708 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5709 * remote-mips.c: Do not include remote-utils.h.
5710 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
5712 * value.c: Do not include scm-lang.h.
5713 (unpack_long): Delete scm_unpack call.
5714 * config/h8300/h8300.mt, config/mips/embed.mt,
5715 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5716 config/sh/embed.mt, config/sh/linux.mt: Remove references to
5718 * NEWS: Mention removed files.
5720 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5722 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5723 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5725 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5727 * NEWS: Mention removal of HP aCC support.
5729 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5731 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5732 first entry for static executables.
5733 (breakpoint_addr): Delete unused variable.
5734 (elf_locate_base): Search for _r_debug in static executables.
5735 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
5738 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5740 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5741 (bpstat_what, print_one_breakpoint, allocate_bp_location)
5742 (mention): Remove bp_through_sigtramp support.
5743 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5745 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5747 * breakpoint.c (bpstat_what): Give step-resume higher priority than
5750 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
5752 * infrun.c: Doc fixes.
5753 (handle_inferior_event): Clarify debug message.
5754 (insert_step_resume_breakpoint_at_sal): Print a debug message.
5756 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5758 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5760 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
5762 * config/m68k/tm-monitor.h: Delete file.
5763 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5764 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5766 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5767 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5769 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
5771 * gdbarch.sh (software_single_step): Change the return type
5772 from void to int and reformatted some comments to <= 80
5774 * gdbarch.c, gdbarch.h: Regenerated.
5775 * alpha-tdep.c (alpha_software_single_step): Likewise.
5776 * alpha-tdep.h (alpha_software_single_step): Likewise.
5777 * arm-tdep.c (arm_software_single_step): Likewise.
5778 * cris-tdep.c (cris_software_single_step): Likewise.
5779 * mips-tdep.c (mips_software_single_step): Likewise.
5780 * mips-tdep.h (mips_software_single_step): Likewise.
5781 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5782 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5783 * sparc-tdep.c (sparc_software_single_step): Likewise.
5784 * sparc-tdep.h (sparc_software_single_step): Likewise.
5785 * spu-tdep.c (spu_software_single_step): Likewise.
5786 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5787 and act accordingly.
5789 2007-04-11 Steve Ellcey <sje@cup.hp.com>
5791 * configure.ac (build_warnings): Add -Wno-char-subscripts.
5792 * configure: Regenerate.
5793 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5795 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5797 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
5799 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5801 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
5803 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
5804 distinct on the TYPE_STUB_SUPPORTED debug targets.
5805 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
5807 2007-04-11 Joel Brobecker <brobecker@adacore.com>
5809 * sparc-tdep.c (X_RS2): New macro.
5810 (sparc_skip_stack_check): New function.
5811 (sparc_analyze_prologue): Adjust PC past stack probing
5812 sequence if necessary.
5814 2007-04-10 Andreas Schwab <schwab@suse.de>
5816 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
5819 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5821 * breakpoint.c (gdb_breakpoint_query): Really return an
5823 (gdb_breakpoint): Likewise.
5824 * thread.c (gdb_list_thread_ids): Likewise.
5825 (gdb_thread_select): Likewise.
5826 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
5827 (mi_cmd_thread_list_ids): Remove bogus initialization.
5829 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5831 * Makefile.in (SFILES): Remove hpacc-abi.c.
5832 (COMMON_OBS): Remove hpacc-abi.o.
5833 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
5834 (hpacc-abi.o, hpread.o): Delete rules.
5835 * somread.c: Delete extern declarations from hpread.c.
5836 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
5837 (som_symfile_finish): Do not call hpread_symfile_finish.
5838 (som_symfile_init): Do not call hpread_symfile_init.
5839 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
5840 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
5841 * hpacc-abi.c, hpread.c: Deleted.
5843 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
5845 * solib-svr4.c (enable_break): Simplify return value.
5846 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
5848 2007-04-10 Andreas Schwab <schwab@suse.de>
5850 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
5851 l_ld_size, l_next_size, l_prev_size, l_name_size.
5853 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
5854 to extract addresses from link map.
5855 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
5856 (LM_NEXT): Likewise.
5857 (LM_NAME): Likewise.
5858 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
5859 (elf_locate_base): Likewise.
5860 (open_symbol_file_object): Likewise.
5861 (svr4_fetch_objfile_link_map): Likewise.
5862 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
5863 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
5865 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
5866 (svr4_lp64_fetch_link_map_offsets): Likewise.
5868 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
5869 removed members. Set l_ld_offset to -1 if not present.
5871 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
5873 Pass stderr of program run with "target remote |"
5875 * serial.c (serial_open): Set error_fd to -1.
5876 * serial.h (struct serial): New field error_fd.
5877 (struct serial_opts): New field avail.
5878 * ser-pipe.c (pipe_open): Create another pair
5879 of sockets. Pass stderr to gdb.
5880 * ser-mingw.c (pipe_windows_open): Pass
5881 PEX_STDERR_TO_PIPE to pex_run. Initialize
5884 (_initialize_ser_windows): Hook pipe_avail.
5885 * ser-base.c (generic_readchar): Check if there's
5886 anything in stderr channel and route that to gdb_stderr.
5888 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
5890 * dbxread.c (read_ofile_symtab): Move current_objfile
5891 clearing to after end_stabs.
5893 2007-04-01 Andreas Schwab <schwab@suse.de>
5895 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
5896 gdbarch instead of current_gdbarch.
5898 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
5900 * varobj.c (varobj_create): Keep varobj value
5901 NULL when evaluating the type.
5903 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
5905 * NEWS: Mention new Windows CE support.
5907 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
5909 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
5910 the obsoletion stanza.
5911 * NEWS: Mention deleted targets.
5913 * config/sh/tm-wince.h: Remove.
5914 * config/sh/wince.mt: Remove.
5915 * config/mips/tm-wince.h: Remove.
5916 * config/mips/wince.mt: Remove.
5919 * wince-stub.c: Remove.
5920 * wince-stub.h: Remove.
5921 * Makefile.in (wince.o): Remove rule.
5922 (wince-stub.o): Likewise.
5924 * mips-tdep.c (mips_next_pc): Make static.
5925 * mips-tdep.h (mips_next_pc): Remove declaration.
5926 * arm-tdep.c (arm_pc_is_thumb): Make static.
5927 (thumb_get_next_pc): Likewise.
5928 (arm_get_next_pc): Likewise.
5929 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
5930 (arm_pc_is_thumb): Likewise.
5931 (thumb_get_next_pc): Likewise.
5932 (arm_get_next_pc): Likewise.
5934 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5936 * MAINTAINERS: Remove d10v entry.
5937 * Makefile.in (SFILES): Remove dwarfread.c.
5938 (COMMON_OBS): Remove dwarfread.o.
5939 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
5940 (remote-est.o, rom68k-rom.o): Delete.
5941 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
5942 target est, target rom68k, and DWARF 1.
5943 * configure.tgt: Mark d10v as removed.
5944 * dwarf2read.c: Doc update.
5945 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
5947 (elf_locate_sections): Do not set them.
5948 (elf_symfile_read): Do not call dwarf_build_psymtabs.
5949 * symfile.h (dwarf_build_psymtabs): Delete prototype.
5950 * config/m68k/monitor.mt (TDEPFILES): Prune.
5951 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
5952 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
5954 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5956 * doublest.c (convert_floatformat_to_doublest): Use
5957 floatformat_classify.
5958 (floatformat_is_nan): Rename to...
5959 (floatformat_classify): ...this. Return more information.
5960 * doublest.h (enum float_kind): New.
5961 (floatformat_is_nan): Replace prototype...
5962 (floatformat_classify): ...with this one.
5963 * valprint.c (print_floating): Use floatformat_classify. Handle
5966 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5968 * README: Mention ISO C library requirement.
5970 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5972 * Makefile.in (SFILES): Remove nlmread.c.
5973 (COMMON_OBS): Remove nlmread.o.
5974 (nlmread.o): Delete rule.
5975 * README: Delete reference to remote-st.c.
5976 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
5977 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
5979 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
5980 (_initialize_i386_tdep): Do not reference them.
5981 * nlmread.c: Delete file.
5982 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
5983 * target.c: Doc update.
5984 * thread.c: Delete commented include.
5985 * config/alpha/tm-alpha.h: Doc update.
5987 2007-03-30 Chris Dearman <chris@mips.com>
5989 * utils.c (string_to_core_addr): Comment typo.
5991 2007-03-30 Chris Dearman <chris@mips.com>
5993 * mips-tdep.c: Comment typo.
5995 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
5997 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
5998 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5999 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
6000 * config/powerpc/nm-ppc64-linux.h: Remove file.
6001 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
6002 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
6003 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
6004 * infptrace.c (call_ptrace): Likewise.
6005 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
6006 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
6007 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
6008 (store_register): Likewise.
6010 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6012 * Makefile.in (varobj.o): Add missing dependency.
6014 2007-03-29 Michael Snyder <msnyder@access-company.com>
6016 * MAINTAINERS: Update my email address.
6018 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6020 Add support for exception handling with multiple versions of
6022 * ada-lang.c: Update general comments on how Ada exception catchpoints
6024 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
6025 (__gnat_raise_nodefer_with_msg): Delete.
6026 (ada_unhandled_exception_name_addr_ftype): New type.
6027 (exception_support_info): New type.
6028 (ada_unhandled_exception_name_addr): Add forward declaration.
6029 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6030 (default_exception_support_info): New constant.
6031 (exception_support_info_fallback): Likewise.
6032 (exception_info): New global variable.
6033 (ada_exception_support_info_sniffer): New function.
6034 (ada_executable_changed_observer): Likewise.
6035 (ada_unhandled_exception_name_addr_from_raise): Renamed from
6036 ada_unhandled_exception_name_addr.
6037 (ada_unhandled_exception_name_addr): Reimplement to match the
6038 latest Ada runtime implementation.
6039 (error_breakpoint_runtime_sym_not_found): Delete.
6040 (ada_exception_sym_name): Get the exception sym name from
6041 exception_info rather than hardcoding it.
6042 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
6043 Update error handling.
6044 * Makefile.in (ada-lang.o): Add dependency on observer.h.
6046 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6048 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
6049 (remote-st.o, uw-thread.o): Delete.
6050 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
6051 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6052 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
6053 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
6054 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
6055 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
6056 rs6000-*-lynxos* to an obsoletion stanza.
6057 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
6058 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
6059 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
6060 i[34567]86-*-netware*.
6061 * NEWS: Mention deleted targets.
6063 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
6064 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
6065 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
6066 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
6067 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
6068 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
6069 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
6070 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
6071 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
6072 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
6073 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
6074 config/rs6000/tm-rs6000ly.h: Delete files.
6076 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
6078 * defs.h (deprecated_registers_changed_hook): Delete declaration.
6079 * interps.c (clear_interpreter_hooks): Do not clear
6080 deprecated_registers_changed_hook.
6081 * regcache.c (registers_changed): Do not call it.
6082 * top.c (deprecated_registers_changed_hook): Do not define it.
6083 * mi/mi-interp.c (mi_command_loop): Do not clear it.
6084 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
6085 (tui_remove_hooks): Do not remove it.
6086 (tui_selected_frame_level_changed_hook): Check for negative level.
6087 Use get_selected_frame.
6088 (tui_registers_changed_hook): Deleted.
6090 2007-03-29 Joel Brobecker <brobecker@adacore.com>
6092 * stabsread.c (add_undefined_type): Add extra parameter.
6093 Now handles nameless types separately.
6094 (struct nat): New type.
6095 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
6096 New static variables.
6097 (read_type): Update calls to add_undefined_type.
6098 (add_undefined_type_noname): New function.
6099 (add_undefined_type_1): Renames from add_undefined_type.
6100 (cleanup_undefined_types_noname): New function.
6101 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
6102 (cleanup_undefined_types): New handles nameless types separately.
6103 (_initialize_stabsread): Initialize our new static constants.
6105 2007-03-29 Denis Pilat <denis.pilat@st.com>
6107 * configure.ac: Test for signal.h.
6108 * configure, config.in: Regenerate.
6110 2007-03-29 Denis Pilat <denis.pilat@st.com>
6112 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
6113 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6115 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
6117 * arm-wince-tdep.c: New.
6118 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6119 (MT_CFLAGS): Delete.
6121 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6122 solib-legacy.o, solib-svr4.o, and remove wince.o.
6123 * configure.tgt (arm*-*-mingw32ce*): Add.
6124 * signals/signals.c [HAVE_SIGNAL_H]: Check.
6125 (do_target_signal_to_host): Silence 'not used' warning.
6126 * config/arm/tm-wince.h: Remove.
6128 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
6130 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6131 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6133 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6134 * config/ia64/tm-linux.h: Remove file.
6135 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6136 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6137 legacy_pc_in_sigtramp.
6138 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6139 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6140 Remove func_name argument.
6141 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6143 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6144 * target.c (update_current_target): Add to_have_steppable_watchpoint.
6145 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
6146 (HAVE_STEPPABLE_WATCHPOINT): Define.
6148 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6149 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6150 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6151 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6152 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6153 target_insert_watchpoint, target_remove_watchpoint): Remove.
6154 (FETCH_INFERIOR_REGISTERS): Define.
6155 * ia64-linux-nat.c (ia64_register_addr): Make static.
6156 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6157 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
6158 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
6159 (ia64_linux_stopped_data_address): Make static. Add target_ops.
6160 (ia64_linux_stopped_by_watchpoint): Make static.
6161 (ia64_linux_can_use_hw_breakpoint): New function.
6162 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6163 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6164 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6166 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
6168 * linespec.c: Include language.h.
6169 (find_methods): Add language parameter. Call
6170 lookup_symbol_in_language. Pass language down.
6171 (add_matching_methods): Likewise. Call
6172 lookup_symbol_in_language.
6173 (add_constructors): Likewise.
6174 (find_method): Pass sym_class to collect_methods.
6175 (collect_methods): Add sym_class parameter. Pass language
6177 * symtab.c (lookup_symbol): Rename to ...
6178 (lookup_symbol_in_language): ... this. Add language
6179 parameter. Use passed language instead of current_language.
6180 (lookup_symbol): New as wrapper around
6181 lookup_symbol_in_language.
6182 (lookup_symbol_aux): Add language parameter. Use passed
6183 language instead of current_language.
6184 (search_symbols): Indent.
6185 * symtab.h (enum language): Forward declare.
6186 (lookup_symbol_in_language): Declare.
6187 (lookup_symbol): Update description.
6188 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6189 * ada-lang.c (restore_language): Remove.
6190 (lookup_symbol_in_language): Remove.
6192 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
6194 * breakpoint.c (bpstat_num): Add int *num parameter.
6195 * breakpoint.h (bpstat_num): Likewise.
6196 * infcmd.c (continue_command): Adjust to new bpstat_num
6198 (program_info): Likewise.
6200 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6202 * config/sh/tm-sh.h: Remove file.
6203 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6204 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6205 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6206 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6208 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6210 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6211 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6212 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6213 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6214 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6215 sequence if target_shortname is "remote".
6217 2007-03-27 Anton Blanchard <anton@samba.org>
6219 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6220 instead of wordsize when looking for the LR in a stack frame.
6222 2007-03-27 Andreas Schwab <schwab@suse.de>
6223 Daniel Jacobowitz <dan@codesourcery.com>
6225 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6226 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
6227 argument. Update all callers.
6228 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6229 (dwarf2_frame_set_eh_frame_regnum): Rename to...
6230 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
6231 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6232 (dwarf2_frame_set_adjust_regnum): ...this.
6233 (dwarf2_frame_eh_frame_regnum): Delete prototype.
6234 * rs6000-tdep.c: Include "dwarf2-frame.h".
6235 (rs6000_adjust_frame_regnum): Define.
6236 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6237 Register rs6000_adjust_frame_regnum.
6239 * Makefile.in (rs6000-tdep.o): Update dependencies.
6241 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
6243 * Makefile.in: Add support for a "pdf" target.
6245 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
6247 * amd64-tdep.c (amd64_init_frame_cache): New function.
6248 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6250 2007-03-26 Nigel Stephens <nigel@mips.com>
6251 Maciej W. Rozycki <macro@mips.com>
6253 * ui-out.c (ui_out_field_core_addr): Truncate address to
6254 TARGET_ADDR_BIT size before printing.
6256 2007-03-22 Nigel Stephens <nigel@mips.com>
6257 Maciej W. Rozycki <macro@mips.com>
6259 * remote-mips.c (mips_xfer_memory): Update prototype.
6261 2007-03-22 Joel Brobecker <brobecker@adacore.com>
6263 * symfile.h: #include "symtab.h"
6265 2007-03-22 Denis Pilat <denis.pilat@st.com>
6267 * utils.c (pagination_on_command, pagination_off_command):
6268 Remove useless prototypes.
6270 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
6273 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
6274 instead of TYPE_NAME for object base class name.
6277 2007-03-19 Kevin Buettner <kevinb@redhat.com>
6279 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6280 Specify frame type in calls to frame_func_unwind().
6282 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
6284 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6285 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6286 (refine_prologue_limit): Delete.
6287 (skip_prologue): Don't call it. Use extract_unsigned_integer.
6288 Assume lim_pc is set. Correct check for incomplete prologues.
6289 Do not skip clobbers of the frame pointer.
6290 * symtab.c (skip_prologue_using_sal): Fail if there is only one
6293 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6295 * frame.c (frame_pop): Check to see whether there's a frame to
6296 which we can pop first.
6298 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
6300 * MAINTAINERS (Write After Approval): Add myself.
6302 2007-03-09 Markus Deuling <deuling@de.ibm.com>
6304 * infrun.c (breakpoints_failed): Remove unnecessary variable.
6305 (handle_inferior_event): Remove unnecessary braces.
6306 * breakpoint.c (bpstat_what): Remove wrong comment.
6308 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
6310 * spu-tdep.c (spu_in_function_epilogue_p): New function.
6311 (spu_gdbarch_init): Install it.
6313 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6315 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6316 object types, not 0.
6318 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6320 * spu-tdep.c (spu_frame_align): New function.
6321 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
6323 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6325 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6326 (spu_software_single_step): Likewise.
6327 (spu_read_pc, spu_write_pc): New functions.
6328 (spu_gdbarch_init): Install them.
6330 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
6332 * cli/cli-dump.c (struct callback_data): load_offset needs to
6333 have signed long type.
6335 2007-03-07 Joel Brobecker <brobecker@adacore.com>
6337 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6338 Revert the previous change that had some unexpected side-effects
6340 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6341 function to get the address of the calling instruction.
6343 2007-03-07 Denis Pilat <denis.pilat@st.com>
6345 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6346 get_selected_frame by deprecated_safe_get_selected_frame.
6348 2007-03-02 Mark Kettenis <kettenis@gnu.org>
6350 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6351 "gdb_string.h". Don't include "nbsd-tdep.h".
6352 (SIZEOF_STRUCT_REG): Remove.
6353 (SHNBSD_SIZEOF_GREGS): New.
6354 (shnbsd_supply_gregset, shnbsd_collect_gregset)
6355 (shnbsd_regset_from_core_section): New functions.
6356 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6357 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6358 shnbsd_supply_gregset, shnbsd_collect_gregset.
6359 (shnbsd_gregset): New variable.
6360 (shnbsd_init_abi): Set regset_from_core_section.
6361 (GDB_OSABI_NETBSD_CORE): New define.
6362 (shnbsd_core_osabi_sniffer): New function.
6363 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6364 * Makefile.in (shnbsd-tdep.o): Update dependencies.
6365 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6367 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6369 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6371 * gdbtypes.c (replace_type): Fix typo that caused us to not update
6372 length of the types referenced by the new type CV ring.
6374 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6376 * frame.c (frame_pop, frame_observer_target_changed): Call
6378 (flush_cached_frames): Rename to reinit_frame_cache and delete
6380 * frame.h (flush_cached_frames): Delete prototype and update comment.
6382 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6383 reinit_frame_cache instead of flush_cached_frames. Do not call
6384 select_frame after reinit_frame_cache.
6385 * corelow.c (core_open): Likewise.
6386 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6387 * infrun.c (prepare_to_proceed, context_switch)
6388 (handle_inferior_event): Likewise.
6389 * linux-fork.c (fork_load_infrun_state): Likewise.
6390 * ocd.c (ocd_start_remote): Likewise.
6391 * remote-e7000.c (e7000_start_remote): Likewise.
6392 * remote-mips.c (device): Likewise.
6393 * thread.c (switch_to_thread): Likewise.
6394 * tracepoint.c (finish_tfind_command): Likewise.
6395 * gdbarch.c: Regenerated.
6397 2007-02-28 Jerome Guitton <guitton@adacore.com>
6398 Joel Brobecker <brobecker@adacore.com>
6400 * gdbtypes.c (check_typedef): Do not replace stub type if
6401 the resolved type is not defined in the same objfile.
6403 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6405 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6407 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6409 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6410 symbol for Ada units when the symbol is defined using 't' rather
6411 than 'Tt' as symbol descriptor.
6413 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6415 * config/mips/tm-nbsd.h: Delete file.
6416 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6417 * config/sh/tm-nbsd.h: Delete file.
6418 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6420 2007-02-28 Joel Brobecker <brobecker@adacore.com>
6422 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6423 unused WRONG_PARAM value since it was recently deleted.
6425 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
6427 * varobj.c (varobj_update): Free temporary vectors.
6429 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6431 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6432 * config/powerpc/tm-linux.h: Delete file.
6433 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6434 (PROCESS_LINENUMBER_HOOK): Do not undefine.
6435 (TEXT_SEGMENT_BASE): Do not redefine.
6436 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6437 from config/rs6000/tm-rs6000.h.
6438 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6439 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6440 (TEXT_SEGMENT_BASE): Remove.
6441 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6442 (rs6000_in_solib_return_trampoline): Remove.
6443 (SKIP_TRAMPOLINE_CODE): Remove.
6444 (rs6000_skip_trampoline_code): Remove.
6445 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6446 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6447 (FP0_REGNUM): Remove.
6448 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6449 (rs6000_set_host_arch_hook): Remove.
6450 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6451 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6452 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6453 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6454 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6455 * rs6000-nat.c: Include "rs6000-tdep.h".
6456 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6457 (set_host_arch): Rename to ...
6458 (rs6000_create_inferior): ... this. Make public.
6459 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6460 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6461 (rs6000_create_inferior): Remove.
6462 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6463 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6464 set_gdbarch_in_solib_return_trampoline, and
6465 set_gdbarch_skip_trampoline_code.
6466 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6467 from config/rs6000/tm-rs6000.h.
6469 2007-02-27 Joel Brobecker <brobecker@adacore.com>
6471 * buildsym.c (record_producer): Do nothing if no producer is provided.
6473 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
6475 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
6476 to check changelist is non-NULL. Call error if the frontend tries
6477 to update a non-root variable.
6479 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6481 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6483 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6484 (dwarf2_frame_sniffer): Update.
6485 (dwarf2_signal_frame_this_id): New function.
6486 (dwarf2_signal_frame_unwind): Use it.
6487 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6488 * frame.c (frame_func_unwind): Add this_type argument.
6489 (get_frame_func): Update.
6490 (frame_unwind_address_in_block): Add this_type argument and check it.
6492 (get_frame_address_in_block): Update.
6493 * frame.h (enum frame_type): Move higher in the file.
6494 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6497 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6498 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6499 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6500 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6501 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6502 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6503 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6504 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6505 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6506 frame_func_unwind and frame_unwind_address_in_block to specify
6507 the frame type. Use frame_unwind_address_in_block instead of
6508 frame_pc_unwind in sniffers.
6510 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6512 * frame.c (deprecated_selected_frame): Rename to...
6513 (selected_frame): ...this. Make static.
6514 (get_selected_frame, select_frame): Update.
6515 * frame.h (deprected_select_frame): Delete.
6516 (deprecated_safe_get_selected_frame): Update comments.
6518 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6519 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6520 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6521 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6522 tui/tui.c: Replace references to deprecated_selected_frame.
6524 2007-02-27 Fred Fish <fnf@specifix.com>
6526 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
6527 directly decrement the stack pointer, accumulate their operand into
6528 the stack offset, and mark the function as not being frameless.
6530 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6532 * arch-utils.c (selected_byte_order): New.
6533 * arch-utils.h (selected_byte_order): New prototype.
6534 * remote-sim.c (gdbsim_open): Use selected_byte_order.
6536 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6538 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
6539 (default_symfile_offsets): Check VMA here. Update section VMAs.
6541 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6543 * remote.c (init_remote_state): Add special handling for placeholder
6546 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6548 * Makefile.in (XMLFILES): Include $(TDEP_XML).
6549 (filenames_h): New variable.
6550 (clean): Clean up xml-builtin.c and stamp-xml.
6551 (arm-linux-nat.o): Update.
6552 * config/arm/linux.mh (TDEP_XML): Define.
6553 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6554 (arm_linux_has_wmmx_registers): New.
6555 (GET_THREAD_ID): Fix typo.
6556 (IWMMXT_REGS_SIZE): Define.
6557 (fetch_wmmx_regs, store_wmmx_regs): New.
6558 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6559 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6560 (super_xfer_partial, arm_linux_xfer_partial): New.
6561 (_initialize_arm_linux_nat): Use them.
6562 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6563 (xml_builtin_xfer_partial): New function.
6564 * xml-support.h (xml_builtin_xfer_partial): New prototype.
6565 * NEWS: Update mention of iWMMXt support.
6567 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6569 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6570 if there are no FPA registers.
6571 (arm_dwarf_reg_to_regnum): New function.
6572 (arm_register_type, arm_register_name): Return minimal values for
6573 unsupported registers.
6574 (arm_register_sim_regno): Handle iWMMXt registers.
6575 (arm_gdbarch_init): Record missing FPA registers if indicated by
6576 a target description. Recognize iWMMXt registers. Only register
6577 "info float" for FPA. Use ARM_NUM_REGS. Register
6578 arm_dwarf_reg_to_regnum.
6579 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6581 (struct gdbarch_tdep): Add have_fpa_registers.
6582 * features/xscale-iwmmxt.xml: Update capitalization.
6583 * regformats/arm-with-iwmmxt.dat: Regenerated.
6585 2007-02-24 Kevin Buettner <kevinb@redhat.com>
6587 * NEWS (New targets): Add entry for the Toshiba Media Processor.
6589 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6591 * MAINTAINERS (mep): New target.
6593 2007-02-23 Kevin Buettner <kevinb@redhat.com>
6595 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6597 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6598 (mep-tdep.o): New rule.
6599 * configure.tgt (mep-*-*): New target.
6600 * mep-tdep.c: New file.
6601 * config/mep/mep.mt: New file.
6603 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6605 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6606 BREAKPOINT_HIT and STOP_UNKNOWN.
6608 2007-02-22 Markus Deuling <deuling@de.ibm.com>
6610 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
6612 2007-02-20 Joel Brobecker <brobecker@adacore.com>
6614 * gdb_expat.h (XMLCALL): Define if not already defined.
6616 2007-02-20 Andreas Schwab <schwab@suse.de>
6618 * Makefile.in (symfile.o): Update dependencies.
6620 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6622 * MAINTAINERS: Disable -Werror for cris simulator. Build
6623 sparc64-solaris2.10 instead of the broken sparc-elf.
6624 * solib-frv.c: Include "solib.h".
6625 * Makefile.in (solib-frv.o): Update.
6626 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6627 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6628 (xtensa_frame_this_id, xtensa_frame_prev_register)
6629 (xtensa_push_dummy_call): Use %p.
6631 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6633 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6634 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6635 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6636 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6637 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6638 (sparc-linux-tdep.o): Update.
6640 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
6642 * xtensa-tdep.h (xtensa_reg_mask_t): New.
6643 (xtensa_mask_t): Change mask field to be a separate array.
6644 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6645 (xtensa_pseudo_register_write, xtensa_unwind_pc)
6646 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6647 (xtensa_breakpoint_from_pc): Remove implicit type casting.
6648 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6649 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6650 (mask14, mask15): Rename to
6651 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6652 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6653 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6654 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6655 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6656 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6657 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6658 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6659 (xtensa_submask14, xtensa_submask15): New.
6660 (rmap): Follow strict aliasing rules doing static initialization.
6662 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
6664 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6665 handling from here...
6666 (tdesc_register_type): ...to here.
6667 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6668 * features/arm-core.xml: Use code_ptr and data_ptr.
6670 2007-02-13 Denis Pilat <denis.pilat@st.com>
6672 * varobj.h (enum varobj_update_error): New enum.
6673 * varobj.c (struct varobj_root): Add is_valid member.
6674 (varobj_get_type): Check for invalid varobj.
6675 (varobj_get_attributes): Likewise.
6676 (variable_editable):Likewise.
6677 (varobj_update): Likewise. Use varobj_update_error.
6678 (new_root_variable): Set root varobj as valid by default.
6679 (varobj_invalidate): New function.
6680 * symfile.c (clear_symtab_users): Use varobj_invalidate.
6681 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6682 Use varobj_update_error.
6684 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
6687 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6688 Pascal language marker.
6689 * dwarf2read.c (set_cu_language): Likewise.
6691 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
6693 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6694 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6695 instead of target_terminal_init since inferior_ptid isn't set yet.
6697 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
6699 * MAINTAINERS (Write After Approval): Add myself.
6701 2007-02-09 Fred Fish <fnf@specifix.com>
6703 Based on work by Apple Computer, Inc.
6704 * event-top.c (async_request_quit): Call quit() whenever either
6705 quit_flag is set or immediate_quit is set.
6707 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6709 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6710 type to a pointer to const struct block.
6711 (ada_lookup_symbol_list): Don't cast away constness when calling
6712 remove_out_of_scope_renamings.
6714 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6716 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6717 address of 'filename'; it is always non null.
6719 2007-02-09 Joel Brobecker <brobecker@adacore.com>
6721 * exec.c (add_to_section_table): Do not discard empty sections.
6723 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6725 * features/Makefile, features/arm-with-iwmmxt.xml,
6726 features/gdbserver-regs.xsl, features/number-regs.xsl,
6727 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6728 * regformats/arm-with-iwmmxt.dat: Generate.
6729 * NEWS: Mention iWMMXt.
6731 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6733 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6734 (xml-tdesc.o): Update.
6735 * xml-support.c: Add a comment.
6736 (gdb_xml_enums_boolean): New variable.
6737 (gdb_xml_parse_attr_enum): Use strcasecmp.
6738 * xml-support.h (gdb_xml_enums_boolean): Declare.
6739 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6740 next_regnum, and current_union.
6741 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6742 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6743 (field_attributes, union_children, reg_attributes, union_attributes)
6744 (vector_attributes, feature_attributes, feature_children): New.
6745 (target_children): Make static. Add <feature>.
6746 (tdesc_elements): Make static.
6747 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6748 (struct tdesc_feature, tdesc_feature_p): New types.
6749 (struct target_desc): Add features member.
6750 (struct tdesc_arch_data, tdesc_data): New.
6751 (target_find_description): Clarify error message. Warn about
6752 ignored register descriptions.
6753 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6754 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6755 (tdesc_data_cleanup, tdesc_numbered_register)
6756 (tdesc_numbered_register_choices, tdesc_find_register)
6757 (tdesc_register_name, tdesc_register_type)
6758 (tdesc_remote_register_number, tdesc_register_reggroup_p)
6759 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6760 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6761 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6762 (tdesc_create_feature, tdesc_record_type): New.
6763 (free_target_description): Free features.
6764 (_initialize_target_descriptions): Initialize tdesc_data.
6765 * arch-utils.c (default_remote_register_number): New.
6766 * arch-utils.h (default_remote_register_number): New prototype.
6767 * target-descriptions.h (set_tdesc_pseudo_register_name)
6768 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6769 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6770 (tdesc_numbered_register, tdesc_numbered_register_choices)
6771 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6772 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6773 (tdesc_create_reg): Declare.
6774 * gdbarch.sh (remote_register_number): New entry.
6775 * gdbarch.c, gdbarch.h: Regenerate.
6776 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6777 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6779 * arm-tdep.c (arm_register_aliases): New.
6780 (arm_register_name_strings): Rename to...
6781 (arm_register_names): ...this. Make const. Delete the old version.
6782 (current_option, arm_register_byte): Delete.
6783 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
6784 (value_of_arm_user_reg): New.
6785 (arm_gdbarch_init): Verify any described registers. Call
6786 tdesc_use_registers. Don't use arm_register_byte. Create aliases
6787 for standard register names.
6788 (_initialize_arm_tdep): Do not adjust arm_register_names.
6789 * user-regs.c (struct user_reg): Add baton member.
6790 (append_user_reg, user_reg_add_builtin, user_regs_init)
6791 (user_reg_add, value_of_user_reg): Use a baton for user
6793 * std-regs.c: Update.
6794 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6795 (user_reg_add): Add baton argument.
6796 * NEWS: Mention target description register support.
6797 * features/arm-core.xml, features/arm-fpa.xml: New.
6798 * eval.c (evaluate_subexp_standard): Allow ptype $register
6799 when the program is not running.
6801 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
6803 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
6805 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6807 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
6808 info->disassembler_options to "any".
6810 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6812 * varobj.c (install_new_value): Only call value_get_print_value
6815 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6817 Reported by timeless@gmail.com:
6818 * gdb/target.c (target_flash_erase): Do not return void value.
6819 (target_flash_done): Likewise.
6820 * gdb/cli/cli-cmds.c (source_command): Likewise.
6822 2007-02-08 Fred Fish <fnf@specifix.com>
6824 Based on work by Apple Computer, Inc.
6825 * event-top.c (handle_sigint): Set quit_flag.
6826 (async_request_quit): Don't set quit_flag. Avoid calling quit()
6827 if quit_flag has already been reset.
6829 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6831 * ser-mingw.c (pipe_windows_close): Move variable initialization back
6834 2007-02-08 Fred Fish <fnf@specifix.com>
6836 * defs.h (request_quit): Remove declaration.
6837 * utils.c (request_quit): Remove definition.
6839 2007-02-08 Joel Brobecker <brobecker@gnat.com>
6840 Jan Kratochvil <jan.kratochvil@redhat.com>
6841 Daniel Jacobowitz <dan@codesourcery.com>
6843 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
6844 (skip_prologue): Allow bl->blrl used by PIC code.
6846 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6847 Daniel Jacobowitz <dan@codesourcery.com>
6849 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
6850 initialize tmp_obstack.
6851 * p-valprint.c (pascal_object_print_value_fields)
6852 (pascal_object_print_value): Likewise.
6854 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
6856 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
6858 2007-02-08 Mark Kettenis <kettenis@gnu.org>
6860 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6861 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
6863 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6865 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
6867 (tdesc_parse_xml): Cache expanded descriptions.
6869 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
6871 * Makefile.in (XMLFILES): New.
6872 (COMMON_OBS): Add xml-builtin.o.
6873 (xml-builtin.c, stamp-xml): New rules.
6874 (xml-tdesc.o): Update.
6875 * features/feature_to_c.sh: New file.
6876 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
6877 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
6878 (gdb_xml_start_element): Initialize scope after possibly reallocating
6879 scopes. Move cleanup later. Handle the XInclude description
6881 (gdb_xml_end_element): Only parse the body if there is a current element.
6882 Call XML_DefaultCurrent if there is no element.
6883 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
6884 (struct xinclude_parsing_data, xinclude_start_include)
6885 (xinclude_end_include, xml_xinclude_default)
6886 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
6887 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
6888 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
6889 * xml-support.h (xml_fetch_another, xml_process_xincludes)
6890 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
6891 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
6892 XInclude directives. Use the compiled in DTD.
6893 (fetch_xml_from_file): Add baton argument. Treat it as a containing
6894 directory name. Do not warn here.
6895 (file_read_description_xml): Update call. Warn here instead. Pass
6897 (fetch_available_features_from_target): New.
6898 (target_read_description_xml): Use it.
6899 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
6901 * features/xinclude.dtd: New file.
6903 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6905 * linux-thread-db.c (check_for_thread_db): Return early if we have
6906 no libthread_db support.
6908 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
6910 * mi/mi-parse.h: Include <sys/time.h>.
6912 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
6914 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
6915 instead of print_variable_value to print values.
6917 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6919 * mi/mi-main.c: Numerous formatting changes.
6920 (mi_cmd_data_write_register_values): Replace clause inadvertantly
6921 removed in my previous change.
6923 2007-02-03 Eli Zaretskii <eliz@gnu.org>
6925 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
6926 Use 1000000L instead of 1000000.
6928 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
6930 Based on work by Apple Computer, Inc.
6932 * configure.ac: Test for sys/resource.h and getrusage.
6933 * configure, config.in: Regenerate.
6935 * mi/mi-main.c: Include <sys/resource.h> if present.
6936 (rusage): Declare if HAVE_GETRUSAGE.
6937 (current_command_ts, do_timings): New static variables.
6938 (timestamp, print_diff_now, print_diff, timeval_diff):
6939 New static timing functions.
6940 (mi_cmd_enable_timings): New function for new MI command.
6941 (captured_mi_execute_command, mi_execute_async_cli_command):
6942 Call timing functions.
6944 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
6947 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
6949 * mi/mi-parse.h: (mi_timestamp): New structure.
6950 (mi_parse): Add mi_timestamp* member.
6952 2007-02-02 Denis Pilat <denis.pilat@st.com>
6954 * thread.c (make_cleanup_restore_current_thread): New function.
6955 (info_threads_command): Use of make_cleanup_restore_current_thread
6956 to restore the current thread and the selected frame.
6957 (restore_selected_frame): New function.
6958 (struct current_thread_cleanup): Add frame_id field.
6959 (do_restore_current_thread_cleanup): Add restoring of the selected
6961 (make_cleanup_restore_current_thread): Likewise.
6962 (thread_apply_all_command): backup the selected frame while
6963 entering the function and restore it at exit.
6964 (thread_apply_command): Likewise.
6966 2007-02-02 Denis Pilat <denis.pilat@st.com>
6968 * MAINTAINERS (Write After Approval): Add myself to the list.
6970 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6972 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
6973 (m32r_store_register): Ditto.
6975 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
6977 * ser-mingw.c (pipe_windows_open)
6978 (pipe_windows_read, pipe_windows_write): Declare
6979 variables at the top of the function.
6981 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6983 * doublest.c (floatformat_from_length): Use the right element from
6984 gdbarch floatformats.
6985 (floatformat_from_type, extract_typed_floating)
6986 (store_typed_floating): Likewise.
6987 * doublest.h: Remove declarations for undefined floatformat arrays.
6988 * gdbarch.sh (float_format, double_format, long_double_format): Change
6990 (pformat): Update for pairs.
6991 * gdbarch.c, gdbarch.h: Regenerated.
6992 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
6993 (floatformats_ieee_double_littlebyte_bigword)
6994 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
6995 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
6996 (floatformats_vax_d): New variables.
6997 (builtin_type_ieee_single, builtin_type_ieee_double)
6998 (builtin_type_arm_ext, builtin_type_ia64_spill)
6999 (builtin_type_ia64_quad): Replace arrays with individual types.
7000 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
7001 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
7002 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
7003 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
7004 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
7005 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
7006 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
7007 unused and endian-specific types.
7008 (recursive_dump_type): Update for floatformat pairs.
7009 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
7010 (build_gdbtypes): Use build_flt.
7011 (_initialize_gdbtypes): Update set of initialized types.
7012 * gdbtypes.h: Update declarations to match gdbtypes.c.
7013 (struct main_type): Store a pointer to two floatformats.
7014 * arch-utils.c (default_float_format, default_double_format): Delete.
7015 * arch-utils.h (default_float_format, default_double_format): Delete.
7017 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7018 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
7019 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
7020 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
7021 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
7023 2007-01-29 Joel Brobecker <brobecker@adacore.com>
7025 * target.c (maintenance_print_target_stack): New function.
7026 (initialize_targets): Add new "maintenance print target-stack"
7029 2007-01-28 Mark Kettenis <kettenis@gnu.org>
7031 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
7033 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
7035 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
7036 (struct dwarf2_loclist_baton): Likewise.
7038 2007-01-27 Eli Zaretskii <eliz@gnu.org>
7040 * cli/cli-script.c: Include breakpoint.h.
7041 (build_command_line): Require arguments only for if and while
7043 (get_command_line, execute_user_command, execute_control_command):
7044 Fix wording of warning messages.
7045 (print_command_lines): Print breakpoint commands.
7046 (execute_control_command): Call commands_from_control_command to
7047 handle the `commands' command inside a body of a flow-control
7049 (read_next_line): Recognize the `commands' command and build a
7050 command line structure for it.
7051 (recurse_read_control_structure, read_command_lines): Handle
7052 `commands' similarly to `if' and `while'.
7054 * breakpoint.c (get_number_trailer): Document the special meaning
7055 of NULL as the first argument PP.
7056 (commands_from_control_command): New function.
7058 * breakpoint.h (commands_from_control_command): Add prototype.
7060 * defs.h (commands_control): New enumerated value for enum
7061 command_control_type.
7063 2007-01-26 Joel Brobecker <brobecker@adacore.com>
7065 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
7066 (ada_exception_sal): Update accordingly.
7068 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7070 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
7071 * NEWS: Describe CHAR array vs. string identifcation rules.
7073 2007-01-25 Paul Brook <paul@codesourcery.com>
7075 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
7077 2007-01-24 Jim Blandy <jimb@codesourcery.com>
7079 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
7080 expression is empty, bother to return the 'optimized out' value we
7081 construct. (Thanks to Carl Burch.)
7083 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7085 * varobj.c (c_value_of_root, c_value_of_child)
7086 (cplus_describe_child): Don't call release_value.
7088 2007-01-24 Thiemo Seufer <ths@mips.com>
7090 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
7093 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7095 Refactor getting children name, value and type access
7097 * varobj.c (get_type_deref): Remove.
7098 (adjust_value_for_child_access): New.
7099 (c_number_of_children): Use the above.
7100 (c_describe_child): Likewise.
7101 (enum accessibility): New.
7102 (match_accessibility): New function.
7103 (cplus_describe_child): New function.
7104 (cplus_name_of_child, cplus_value_of_child)
7105 (cplus_type_of_child): Reimplement in terms
7106 of cplus_describe_child.
7107 (cplus_number_of_children): Use
7108 adjust_value_for_child_access.
7110 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
7112 Fix computation of the 'editable' attribute and
7113 value changeability for for references.
7114 * varobj.c (get_value_type): New function.
7115 (c_variable_editable): Use get_value_type.
7116 (varobj_value_is_changeable): Likewise.
7118 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7120 * source.c (find_and_open_source): Try rewriting the source
7121 path inside filename if dirname is NULL.
7123 2007-01-24 Joel Brobecker <brobecker@adacore.com>
7125 * dwarf2read.c (add_partial_symbol): Create an extra partial
7126 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7127 (new_symbol): Likewise for symbols.
7129 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
7131 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7133 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
7135 * value.c (value_primitive_field): Copy the full 'location'
7136 contents, instead of assuming that copying ADDRESS will
7137 bring over everything in the union. Remove obsolete comment.
7139 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
7141 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7142 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7143 (m32c_m16c_pointer_to_address): Separate code from declarations.
7145 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
7147 * target.c (update_current_target): Correct typo.
7149 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
7151 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7154 2007-01-11 Andrew Cagney <cagney@redhat.com>
7155 Daniel Jacobowitz <dan@codesourcery.com>
7156 Jan Kratochvil <jan.kratochvil@redhat.com>
7158 * dwarf2-frame.c (execute_cfa_program): New support of
7159 `DW_CFA_GNU_negative_offset_extended'.
7161 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7163 * NEWS: Mention flash support for "load" and new remote packets.
7165 2007-01-21 Markus Deuling <deuling@de.ibm.com>
7167 * breakpoint.c (delete_command): Skip redundant loop iterations.
7169 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7171 * gdbarch.sh (register_type): Update comment.
7172 * gdbarch.h: Regenerated.
7173 * arch-utils.c (generic_register_size): Call register_type.
7174 * ia64-tdep.c (ia64_extract_return_value): Likewise.
7175 * m32c-tdep.c (check_for_saved): Likewise.
7176 * mips-tdep.c (mips_print_register, print_gp_register_row)
7177 (mips_print_registers_info): Likewise.
7178 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7180 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7181 (sh64_do_register, sh64_print_register)
7182 (sh64_media_print_registers_info): Likewise.
7183 * tui/tui-regs.c (tui_register_format): Likewise.
7185 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
7187 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7189 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7190 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7191 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7192 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7193 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7194 (make_symbol_completion_list): Likewise.
7196 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7197 Daniel Jacobowitz <dan@codesourcery.com>
7199 * buildsym.c (end_symtab): Use preallocated symtab if available.
7200 Fill in SYMBOL_SYMTAB.
7201 * buildsym.h (struct subfile): Add symtab member.
7202 * dwarf2read.c (struct dwarf2_cu): Add line_header.
7203 (struct file_entry): Add symtab.
7204 (free_cu_line_header): New function.
7205 (read_file_scope): Use it. Save line_header in the cu. Process
7207 (add_file_name): Initialize new symtab member.
7208 (dwarf_decode_lines): Create symtabs for included files.
7209 (new_symbol): Set SYMBOL_SYMTAB.
7210 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7211 (search_symbols): Likewise.
7212 * symtab.h (struct symbol): Add symtab member.
7213 (SYMBOL_SYMTAB): Define.
7215 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7217 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7219 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
7221 * arch-utils.c (show_endian): Correct reversed condition.
7223 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7225 * MAINTAINERS (Write After Approval): Add myself.
7227 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
7228 Vladimir Prus <vladimir@codesourcery.com>
7230 Fix 'selected frame' varobjs.
7231 * varobj.c (struct varobj): Remove the error field.
7232 (varobj_set_value): Don't check var->error.
7233 (install_new_value): Don't set var->error.
7234 (varobj_update): Always pass the new value
7235 of the root via install_new_value.
7236 (create_child): Don't set error field.
7237 (new_variable): Likewise.
7238 (c_value_of_root): Always reevaluate the value
7239 of selected frame varobjs in the selected frame.
7240 Don't call reinit_frame_cache.
7242 2007-01-15 Joel Brobecker <brobecker@adacore.com>
7244 * source.c (_initialize_source): Improve the help text of
7245 the substitute-path commands.
7247 2007-01-14 Mark Kettenis <kettenis@gnu.org>
7249 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7250 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7251 (frv_skip_prologue): Remove prototypes.
7252 (frv_adjust_breakpoint_address): Renamed from
7253 frv_gdbarch_adjust_breakpoint_address.
7254 (frv_gdbarch_init): Adjust.
7256 2007-01-13 Mark Kettenis <kettenis@gnu.org>
7258 * gdbarch.sh (deprecated_extract_return_value)
7259 (deprecated_store_return_value): Remove.
7260 (extract_return_value, store_return_value): Remove default values.
7261 * gdbarch.c, gdbarch.h: Regenerate.
7262 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7263 (legacy_store_return_value): Remove.
7264 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7267 * mi/mi-main.c: Remove obsolete comment.
7269 * regcache.c, regcache.h (deprecated_register_bytes)
7270 (deprecated_read_register_bytes)
7271 (deprecated_write_register_bytes): Remove.
7273 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7274 Don't forget to move destination pointer.
7276 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7278 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7280 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
7282 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7283 past entry function with recent newlib.
7285 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
7287 * gdb.texinfo (GDB/MI Variable Objects): Improve the
7288 introduction. Specify -var-update more exactly.
7290 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
7292 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7294 2007-01-10 Jim Blandy <jimb@codesourcery.com>
7296 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7297 the Global Maintainers' invitation to be a global maintainer.
7299 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
7301 * infrun.c (singlestep_pc): New variable.
7302 (resume): Set singlestep_pc.
7303 (context_switch): Add a debugging message. Flush the frame cache.
7304 (handle_inferior_event): Add debugging messages. Handle thread
7305 hops when a software single step has completed. Let context_switch
7306 handle flushing the frame cache.
7308 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7310 * NEWS: Mention target descriptions, "set tdesc filename",
7311 "unset tdesc filename", "show tdesc filename", and
7312 qXfer:features:read.
7313 * arch-utils.c (choose_architecture_for_target): New function.
7314 (gdbarch_info_fill): Call it.
7315 * target-descriptions.c (struct property): Make members non-const.
7316 (struct target_desc): Add arch member.
7317 (target_description_filename): New variable.
7318 (target_find_description): Try via XML first.
7319 (tdesc_architecture): New.
7320 (free_target_description, make_cleanup_free_target_description): New.
7321 (set_tdesc_property): Call xstrdup.
7322 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7323 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7324 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7325 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7326 * target-descriptions.h (tdesc_architecture)
7327 (make_cleanup_free_target_description, set_tdesc_architecture): New
7329 * Makefile.in (SFILES): Add xml-tdesc.c.
7330 (COMMON_OBS): Add xml-tdesc.o.
7331 (target-descriptions.o): Update.
7332 (xml-tdesc.o): New rule.
7333 * xml-tdesc.c, xml-tdesc.h: New files.
7334 * remote.c (PACKET_qXfer_features): New enum.
7335 (remote_protocol_features): Add qXfer:features:read.
7336 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7337 (_initialize_remote): Register qXfer:features:read.
7338 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7339 * features/gdb-target.dtd: New file.
7341 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7343 * copyright.sh: Clarify error.
7345 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7347 * symtab.c (matching_bfd_sections): Fix VMA matching for
7350 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7352 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7355 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7357 Updated copyright notices for most files.
7359 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7361 * copyright.sh (prunes): Add step-line.inp and step-line.c.
7363 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7365 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7367 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7369 * configure, config.in: Regenerate.
7370 * defs.h (debug_file_directory): Declare.
7371 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
7372 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
7373 relocate it if DEBUGDIR_RELOCATABLE.
7374 * symfile.c (debug_file_directory): Make non-static.
7375 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7376 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7377 (_initialize_symfile): Don't initialize debug_file_directory here.
7379 2007-01-09 Jim Blandy <jimb@codesourcery.com>
7381 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7384 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7386 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7387 frame_unwind_register to recurse.
7388 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7389 (alpha_heuristic_frame_prev_register): Likewise.
7390 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7391 * m32c-tdep.c (m32c_prev_register): Likewise.
7392 * frame.c (frame_register_unwind_location): Remove FIXME.
7394 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7395 Eli Zaretskii <eliz@gnu.org>
7397 * copyright.sh: New file.
7399 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
7401 * configure.ac: Check for XML_StopParser.
7402 * xml-support.c (gdb_xml_body_text): Check for an error.
7403 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7404 (gdb_xml_end_element_wrapper): Likewise.
7405 * config.in, configure: Regenerated.
7407 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7409 * varobj.c (install_new_value): Always update print_value.
7410 (value_get_print_value): Immediately return NULL for missing
7413 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7415 * configure.ac: Tighten pattern for extracting value of
7416 DEPRECATED_TM_FILE from the target makefile fragment.
7417 * configure: Regenerated.
7419 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7421 * linux-nat.c (struct simple_pid_list): Add status.
7422 (add_to_pid_list): Record the PID's status.
7423 (linux_record_stopped_pid): Likewise. Make static.
7424 (pull_pid_from_list): Return the saved status.
7425 (linux_nat_handle_extended): Deleted.
7426 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7427 Make static. Handle non-SIGSTOP for a new thread's first signal.
7428 (flush_callback): Handle unexpected pending signals.
7429 (linux_nat_wait): Update calls to changed functions.
7430 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7431 Remove prototypes for newly static functions.
7433 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7435 * gdbarch.sh (value_from_register): New gdbarch function.
7436 * gdbarch.c, gdbarch.h: Regenerate.
7437 * findvar.c (default_value_from_register): New function.
7438 (value_from_register): Use gdbarch_value_from_register.
7439 * value.h (default_value_from_register): Declare.
7440 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7441 spu_value_to_register): Remove.
7442 (spu_value_from_register): New function.
7443 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7444 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7445 Call set_gdbarch_value_from_register.
7446 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7447 s390_value_to_register): Remove.
7448 (s390_value_from_register): New function.
7449 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7450 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7451 Call set_gdbarch_value_from_register.
7453 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7455 * NEWS: Add "set sysroot" and "show sysroot".
7456 * solib.c (solib_absolute_prefix): Delete. Replace
7457 all uses with gdb_sysroot.
7458 (_initialize_solib): Add "set sysroot" and "show sysroot".
7459 Make "solib-absolute-prefix" an alias to it.
7461 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7463 * frame.c (get_frame_register_bytes): New function.
7464 (put_frame_register_bytes): Likewise.
7465 * frame.h (get_frame_register_bytes): Declare.
7466 (put_frame_register_bytes): Likewise.
7467 * findvar.c (value_from_register): Always construct lval_register
7468 values. Use get_frame_register_bytes.
7469 * valops.c (value_assign): Use get_frame_register_bytes and
7470 put_frame_register_bytes.
7472 2007-01-08 Jim Blandy <jimb@codesourcery.com>
7474 * MAINTAINERS: Update Stan Shebs' email address.
7476 2007-01-07 Joel Brobecker <brobecker@adacore.com>
7478 * ada-lang.c (is_known_support_routine): Improve the implementation.
7480 2007-01-06 Joel Brobecker <brobecker@adacore.com>
7482 * ada-lang.c: Add include of source.h.
7483 (is_known_support_routine): Improve the check verifying that the file
7484 associated to this frame exists.
7485 * Makefile.in (ada-lang.o): Add dependency on source.h.
7487 2007-01-07 Jim Blandy <jimb@codesourcery.com>
7489 * ax-general.c (ax_const_l): Select proper opcode for the given
7492 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
7494 * varobj.c (c_value_of_root): Don't select frame if variable
7495 object is out of scope.
7497 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7499 * varobj.c (struct varobj): New member print_value.
7500 (install_new_value): Compare last printed value with current one
7501 instead of contents.
7502 (new_variable): Initialize var->print_value to NULL.
7503 (free_variable): Free var->print_value.
7504 (value_get_print_value): New function derived from
7505 c_value_of_variable.
7506 (c_value_of_variable): Use value_get_print_value.
7508 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7510 * i386-tdep.c (i386_analyze_stack_align): Add comment.
7512 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7514 * NEWS: Add entries for new catch commands.
7516 2007-01-05 Joel Brobecker <brobecker@adacore.com>
7518 * dwarf2read.c (partial_die_info): Add field has_byte_size.
7519 (add_partial_symbol): Correct identification of external references.
7520 (process_structure_scope): Likewise.
7521 (read_partial_die): Handle DW_AT_byte_size attribute.
7523 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
7525 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7527 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
7529 * varobj.c (get_type_deref): Fix variable objects for references to
7532 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7534 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
7537 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7539 * memory-map.c (struct_memory_map_parsing_data): Remove most
7540 members. Make property_name an array.
7541 (free_memory_map_parsing_data, memory_map_start_element)
7542 (memory_map_end_element, memory_map_character_data): Delete.
7543 (memory_map_start_memory, memory_map_end_memory)
7544 (memory_map_start_property, memory_map_end_property): New functions.
7545 (property_attributes, memory_children, memory_type_enum)
7546 (memory_attributes, memory_map_children, memory_map_elements): New.
7547 (parse_memory_map): Rewrite.
7548 * xml-support.c (debug_xml): New.
7549 (xml_get_required_attribute, xml_get_integer_attribute)
7550 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7552 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7553 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7554 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7555 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7556 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7557 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7558 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7560 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7561 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7562 (enum gdb_xml_element_flag, struct gdb_xml_element)
7563 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7564 (struct gdb_xml_enum): New.
7565 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7566 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7567 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7568 (xml_get_required_attribute, xml_get_integer_attribute)
7569 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7570 * Makefile.in (xml_support_h, xml-support.o): Update.
7572 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7574 * Makefile.in (eval.o): Update dependencies.
7575 * eval.c: Include "ui-out.h" and "exceptions.h".
7576 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7577 Use value_zero if an error occurs when avoiding side effects.
7578 * varobj.c (c_value_of_root): Initialize new_val.
7580 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7582 * varobj.c (varobj_list_children): Stop if the number of children is
7584 (c_number_of_children):
7586 2007-01-04 Mark Kettenis <kettenis@gnu.org>
7588 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7589 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7590 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7591 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7592 sizeof, instead of hardcoded constants.
7594 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7596 * CONTRIBUTE: Use sourceware.org.
7598 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7600 * buildsym.c (start_subfile): Handle producer.
7601 (record_producer): New function.
7602 * buildsym.h (struct subfile): Include producer.
7603 (record_producer): New prototype.
7604 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7605 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7606 armcc_cfa_offsets_reversed.
7607 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7608 (dwarf2_frame_find_quirks): New function.
7609 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
7610 (decode_frame_entry_1): Record the CIE version. Record the
7611 augmentation. Skip armcc augmentations.
7612 * dwarf2read.c (read_file_scope): Save the producer.
7613 * symtab.h (struct symtab): Rename unused version member to
7616 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
7618 * configure.ac (build_warnings): Use -Wall and
7619 -Wdeclaration-after-statement.
7620 * configure: Regenerated.
7622 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7624 Simplify access to variours properties of child
7625 variable objects in C.
7626 * varobj.c (value_struct_element_index): New function.
7627 (c_describe_child): New function.
7628 (c_name_of_child, c_value_of_child)
7629 (c_type_of_child): Rewrite to use c_describe_child.
7631 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7634 * varobj.c: Include "vec.h".
7635 (varobj_p): New typedef, declare vector of those.
7636 (struct varobj): Use vector for the 'children' member.
7637 (child_exists): Remove.
7638 (save_child_in_parent): Remove.
7639 (remove_child_from_parent): Remove.
7640 (struct varobj_child): Remove.
7641 (struct vstack): Remove.
7642 (vpush, vpop): Remove.
7643 (varobj_list_children): Adjust to work work vector.
7644 (varobj_update): Likewise. Use vectors for
7645 working stack and result.
7646 (delete_variable_1): Likewise.
7647 * Makefile.in (varobj.o): Update dependencies.
7649 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
7651 Port from Apple's version.
7653 * varobj.c (type_changeable): Rename to...
7654 (varobj_value_is_changeable_p): ...this. Adjust all callers.
7655 (is_root_p): New function. Use it everywhere.
7657 2007-01-04 Jim Blandy <jimb@codesourcery.com>
7659 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7662 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7664 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7666 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7668 * hpread.c (hpread_type_lookup): Fix compilation failure.
7670 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
7672 * NEWS: New port to S+core.
7673 * MAINTAINERS (Write After Approval, Responsible Maintainers):
7676 * Makefile.in: Add dependencies for S+core files.
7677 * configure.tgt (score*, score-*-*): Add S+core target.
7678 * config/score/embed.mt: New file.
7679 * score-tdep.c: New file.
7680 * score-tdep.h: New file.
7682 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7684 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7685 the appropriate type rather than a bogus void type.
7687 2007-01-04 Joel Brobecker <brobecker@adacore.com>
7689 * ada-lang.h (ada_find_printable_frame): Remove.
7690 (ada_exception_catchpoint_p, ada_decode_exception_location)
7691 (ada_decode_assert_location): Add declaration.
7692 * ada-lang.c: Add include of annotate.h and valprint.h.
7693 (exception_catchpoint_kind): New enum.
7694 (function_name_from_pc, is_known_support_routine)
7695 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7696 (ada_exception_name_addr_1, ada_exception_name_addr)
7697 (print_it_exception, print_one_exception, print_mention_exception)
7698 (print_it_catch_exception, print_one_catch_exception)
7699 (print_mention_catch_exception, catch_exception_breakpoint_ops)
7700 (print_it_catch_exception_unhandled)
7701 (print_one_catch_exception_unhandled)
7702 (print_mention_catch_exception_unhandled, print_it_catch_assert)
7703 (print_one_catch_assert, print_mention_catch_assert)
7704 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7705 (ada_get_next_arg, catch_ada_exception_command_split)
7706 (ada_exception_sym_name, ada_exception_sym_name)
7707 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7708 (ada_parse_catchpoint_condition, ada_exception_sal)
7709 (ada_decode_exception_location)
7710 (ada_decode_assert_location): New function.
7711 (catch_exception_unhandled_breakpoint_ops): New global variable.
7712 (catch_assert_breakpoint_ops): New global variable.
7713 * breakpoint.c: Add include of ada-lang.h.
7714 (print_one_breakpoint): Do not print the condition for Ada
7715 exception catchpoints.
7716 (create_ada_exception_breakpoint): New function.
7717 (catch_ada_exception_command, catch_assert_command): New function.
7718 (catch_command_1): Add support for the new "catch exception" and
7719 "catch assert" commands.
7720 (_initialize_breakpoint): Add help description for the new catch
7722 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7724 (breakpoint.o): Add dependency on ada-lang.h.
7726 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
7728 * coffread.c (cs_to_section): If bfd_section is found, always
7729 return its section index.
7730 (coff_symtab_read): Determine the minimal_symbol_type using the
7733 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7734 Daniel Jacobowitz <dan@codesourcery.com>
7736 * Makefile.in (top.o): Update.
7737 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7738 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7739 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7741 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7743 2007-01-03 Mark Kettenis <kettenis@gnu.org>
7745 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7746 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7748 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7750 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7751 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7752 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7753 greater than or equal to zero.
7754 * m2-typeprint.c (m2_array): Likewise.
7755 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7756 * gdbtypes.c (copy_type_recursive): Correct == typo.
7757 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7758 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7760 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7761 (default_macro_scope): Remove unused variable.
7762 * prologue-value.h (pv_area_find_reg): Don't name an argument
7764 * remote-fileio.c (remote_fio_func_map): Add missing braces.
7765 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7767 (cleanup_sigint_signal_handler): Remove casts.
7768 * valprint.c (val_print): Use a volatile local for the modified
7770 * varobj.c (languages): Remove extra array dimension.
7771 (varobj_create): Correct access to languages array.
7772 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7774 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7775 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7776 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7777 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7778 (mi_cmd_data_write_memory): Likewise.
7779 * signals/signals.c (target_signal_to_string): Cast to int before
7781 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7784 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
7786 * NEWS: Mention pointer to member improvements.
7787 * Makefile.in (gnu-v3-abi.o): Delete special rule.
7788 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7789 * ada-valprint.c (ada_print_scalar): Update for new type codes.
7790 * c-typeprint.c (c_print_type): Update for new type codes.
7791 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7792 (c_type_print_base): Likewise.
7793 (c_type_print_args): Rewrite.
7794 * c-valprint.c (c_val_print): Update for new type codes. Remove
7795 support for references to members. Treat methods like functions.
7796 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
7797 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
7798 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
7799 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
7800 (struct cp_abi_ops): Add corresponding members.
7801 * cp-valprint.c (cp_print_class_method): Delete.
7802 (cp_find_class_member): New function.
7803 (cp_print_class_member): Use it. Simplify support for bogus
7805 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
7806 lookup_methodptr_type.
7807 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
7808 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
7809 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
7811 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
7812 references returned by user defined operators.
7813 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
7814 (f_type_print_varspec_suffix): Remove support for member pointers.
7815 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
7817 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
7818 (lookup_methodptr_type): New.
7819 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
7820 (recursive_dump_type): Update for new types.
7821 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
7822 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
7823 (lookup_memberptr_type, lookup_methodptr_type)
7824 (smash_to_memberptr_type): New prototypes.
7825 (smash_to_method_type): Formatting fix.
7826 (lookup_member_type, smash_to_member_type): Delete prototypes.
7827 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
7828 Do not rely on debug information for the vptr or the method's
7829 enclosing type. Handle function descriptors for IA64.
7830 (gnuv3_virtual_fn_field): Rewrite using the new functions.
7831 (gnuv3_find_method_in, gnuv3_print_method_ptr)
7832 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
7833 (gnuv3_method_ptr_to_value): New.
7834 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
7835 * hpread.c (hpread_type_lookup): Update for new types.
7836 * infcall.c (value_arg_coerce): Likewise.
7837 * m2-typeprint.c (m2_print_type): Remove explicit support
7838 for member pointers.
7839 * m2-valprint.c (m2_val_print): Likewise.
7840 * p-typeprint.c (pascal_type_print_varspec_prefix)
7841 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
7842 * p-valprint.c (pascal_val_print): Likewise.
7843 (pascal_object_print_class_method, pascal_object_print_class_member):
7845 * p-lang.h (pascal_object_print_class_method)
7846 (pascal_object_print_class_member): Delete prototypes.
7847 * stabsread.c (read_type): Update for new types.
7848 * typeprint.c (print_type_scalar): Likewise.
7849 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
7850 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
7851 argument. Construct a pointer to member if the address of a
7852 function or data member is requested.
7853 (value_cast_pointers): Don't modify the input value.
7854 (value_cast): Adjust pointer to member handling for new types.
7855 Allow null pointer to member constants. Don't modify the input
7857 (value_ind): Remove pointer to member check. Handle function
7858 descriptors for function pointers.
7859 (value_struct_elt, value_find_oload_method_list, check_field):
7860 Remove pointer to member checks.
7861 * value.c (unpack_long): Allow pointers to data members.
7862 (value_from_longest): Allow member pointers.
7863 * value.h (value_aggregate_elt): Add want_address.
7864 * varobj.c (c_variable_editable): Remove check for members.
7865 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
7866 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
7868 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
7869 * c-lang.h (cp_print_class_method): Delete prototype.
7870 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
7871 * mips-tdep.c (mips_gdbarch_init): Likewise.
7872 * gdbarch.c, gdbarch.h: Regenerated.
7874 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7876 * rs6000-tdep.c (rs6000_use_struct_convention)
7877 (rs6000_extract_return_value, rs6000_store_return_value)
7878 (rs6000_extract_struct_value_address): Remove.
7879 (rs6000_return_value): New function.
7880 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
7881 store_return_value, deprecated_extract_struct_value_address and
7882 deprecated_use_struct_convention. Use rs6000_return_value
7885 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
7887 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
7888 -display-disable, -display-enable, -display-insert and
7891 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7893 * breakpoint.c (remove_breakpoint): Remove dead code.
7895 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
7897 * varobj.c: Include block.h.
7898 (c_value_of_root): Check scope within nested statements.
7900 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7902 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
7903 regcache_cooked_write_signed instead of
7904 deprecated_write_register_bytes.
7906 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7908 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
7910 2007-01-01 Joel Brobecker <brobecker@adacore.com>
7912 Followed the Start of New Year Procedure:
7913 * ChangeLog-2006: New file, containing all the entries for 2006.
7914 * ChangeLog: Removed all 2006 entries, and changed the reference
7915 to the previous ChangeLog to point to ChangeLog 2006.
7916 * top.c (print_gdb_version): Update copyright year.
7918 2007-01-01 Mark Kettenis <kettenis@gnu.org>
7920 * Makefile.in (remote-sds.o): Remove.
7921 * remote-sds.c: Delete.
7923 For older changes see ChangeLog-2006.
7929 version-control: never